addCourse.vue 485 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296
  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. <el-breadcrumb
  10. separator-class="el-icon-arrow-right"
  11. >
  12. <el-breadcrumb-item
  13. :to="{
  14. path:
  15. '/course?userid=' +
  16. userid +
  17. '&oid=' +
  18. oid +
  19. '&org=' +
  20. org +
  21. '&role=' +
  22. role,
  23. }"
  24. >课程管理</el-breadcrumb-item
  25. >
  26. <el-breadcrumb-item>
  27. <span style="color: rgb(15, 126, 255)">添加课程</span>
  28. </el-breadcrumb-item>
  29. </el-breadcrumb>
  30. </div>
  31. </div>
  32. <div
  33. class="rightBox"
  34. style="padding: 30px 10px;"
  35. v-if="this.steps == 1"
  36. @mousewheel="scrollChange"
  37. >
  38. <div
  39. class="updateMask"
  40. :style="{
  41. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  42. }"
  43. v-if="cid && userid != courseUserid && role != '1'"
  44. ></div>
  45. <div class="whiteBg">
  46. <div class="basic_box">
  47. <div class="course_input_box">
  48. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon.png" /></div>
  49. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  50. style="border: 1px solid #CAD1DC;background: #fcfcfc;" />
  51. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"></el-switch>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="whiteBg">
  56. <div class="basic_box">
  57. <div class="big_box">
  58. <div class="left_first">
  59. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  60. <span>类型</span>
  61. <!-- 学科+ 主题+ 未来+ -->
  62. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  63. style="display: flex; align-items: center">
  64. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  65. <el-radio :label="item.name">{{
  66. item.name
  67. }}</el-radio>
  68. </div>
  69. </el-radio-group>
  70. </div>
  71. <div class="both">
  72. <div class="choose">
  73. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  74. <span v-if="CourseTypeJson[item.id].length > 0 &&
  75. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  76. ? pTypeCheck.indexOf(item.id) != -1
  77. : true)
  78. ">{{ item.name }}:</span>
  79. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  80. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  81. ? pTypeCheck.indexOf(item.id) != -1
  82. : true)
  83. ">
  84. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  85. item1.name }}</el-checkbox>
  86. </el-checkbox-group>
  87. <!-- <div
  88. v-else
  89. style="font-size: 14px; margin-left: -8px"
  90. >
  91. 暂无
  92. </div> -->
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="right_first">
  98. <div class="ai_box">
  99. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  100. </div>
  101. <div>
  102. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  103. <img src="../../../assets/icon/addPoster.png" alt="" />
  104. <div>点击添加封面</div>
  105. </div>
  106. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  107. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  108. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  109. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  110. <i class="el-icon-plus"></i>
  111. </el-upload>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="whiteBg">
  118. <div class="wb_j_box">
  119. <div class="wb_j_box_content">
  120. <button class="c_pub_button_add pub_btn_add_img" @click="
  121. (dialogVisibleClass = true),
  122. (classSearch = ''),
  123. (gradeId = ''),
  124. getClass()
  125. ">添加班级</button>
  126. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  127. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  128. getClassC(tc) }}</span>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. <div
  134. class="whiteBg"
  135. style="border-radius: 0; margin-top: 15px"
  136. v-if="false"
  137. >
  138. <div class="right_title">课程简要描述</div>
  139. <div style="width: 95%; padding: 15px 0px 15px 20px">
  140. <div style="width: 55%">
  141. <textarea
  142. rows="8"
  143. class="binfo_input"
  144. cols
  145. v-model="courseText"
  146. ></textarea>
  147. </div>
  148. </div>
  149. </div>
  150. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  151. <div class="right_title">
  152. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" /></div>
  153. <span style="margin:0 10px">上传课程内容</span>
  154. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px">智能粘贴</button>
  155. </div>
  156. <div style="padding: 0 0 0 20px; display: flex">
  157. <div class="course_left">
  158. <div class="stepsBottom2">
  159. <!-- <div class="navTop">辅助导航</div> -->
  160. <div class="navBottom">
  161. <div
  162. class="navTask"
  163. :class="{
  164. isNavTask:
  165. isClickColor > 0 && isClickColor == tIndex + 1,
  166. }"
  167. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  168. .taskJson"
  169. :key="tIndex"
  170. @click="goToTask(tIndex)"
  171. >
  172. <div class="nt_taskBox">
  173. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  174. <div class="nt_taskName">
  175. <el-tooltip effect="light" :content="t.task" placement="top">
  176. <span>{{ t.task }}</span>
  177. </el-tooltip>
  178. </div>
  179. </div>
  180. <div
  181. class="moveBtn"
  182. v-if="
  183. unitJson[unitIndex].chapterInfo[0].taskJson.length >
  184. 1
  185. "
  186. >
  187. <div
  188. class="chapter_upload_up"
  189. @click.stop="taskMove(1, tIndex)"
  190. ></div>
  191. <div
  192. class="chapter_upload_down"
  193. @click.stop="taskMove(2, tIndex)"
  194. ></div>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <div class="basic_box2">
  201. <div
  202. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  203. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  204. :key="index"
  205. >
  206. <div
  207. class="taskBorder"
  208. :style="{
  209. minHeight: unitJson[unitIndex].easy && 'unset',
  210. }"
  211. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  212. :key="itemTaskIndex"
  213. >
  214. <div v-if="unitJson[unitIndex].easy != 1">
  215. <div
  216. :style="{
  217. marginBottom:
  218. unitJson[unitIndex].easy == 3 ||
  219. (unitJson[unitIndex].easy == 5 &&
  220. itemTask.taskType == 1)
  221. ? '75px'
  222. : '0',
  223. }"
  224. >
  225. <div
  226. class="chapter_contentbox"
  227. style="
  228. flex-direction: row;
  229. justify-content: flex-start;
  230. align-items: center;
  231. "
  232. >
  233. <div
  234. :id="'task' + itemTaskIndex"
  235. class="cc_title"
  236. >
  237. 任务{{ itemTaskIndex + 1 }}
  238. </div>
  239. <div class="cc_input">
  240. <input
  241. type="text"
  242. placeholder="输入任务名称"
  243. class="binfo_input"
  244. style="border-radius: 4px"
  245. v-model="
  246. unitJson[unitIndex].chapterInfo[0].taskJson[
  247. itemTaskIndex
  248. ].task
  249. "
  250. />
  251. <div v-if="!itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  252. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  253. </div>
  254. <div
  255. class="remove"
  256. v-if="item.taskJson.length > 1"
  257. @click="deleteTask(itemTaskIndex)"
  258. ></div>
  259. </div>
  260. </div>
  261. </div>
  262. <div style="margin: 25px 0" v-if="!itemTask.isFold2">
  263. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  264. itemTaskIndex
  265. ].taskDetail
  266. " @change="change"></editor-bar> -->
  267. <textarea
  268. rows="2"
  269. class="binfo_input"
  270. placeholder="请输入任务描述"
  271. cols
  272. v-model="
  273. unitJson[unitIndex].chapterInfo[0].taskJson[
  274. itemTaskIndex
  275. ].taskDetail
  276. "
  277. ></textarea>
  278. </div>
  279. <div
  280. class="basic_box"
  281. style="
  282. padding: 0 !important;
  283. "
  284. >
  285. <div
  286. style="
  287. display: flex;
  288. margin: 0 0 20px 0;
  289. flex-direction: row;
  290. justify-content: flex-start;
  291. align-items: center;
  292. "
  293. >
  294. <div class="lineTitle">学习内容</div>
  295. </div>
  296. <div>
  297. <div
  298. class="add_chapters_box add_c_none"
  299. v-if="
  300. itemTask.chapterData &&
  301. itemTask.chapterData.length == 0
  302. "
  303. ><img src="../../../assets/icon/new/c_none.png" alt /></div>
  304. <div
  305. v-else
  306. class="add_chapters_box"
  307. style="display: flex; flex-direction: column"
  308. >
  309. <div
  310. class="chapter_upload"
  311. v-for="(item1, index1) in itemTask.chapterData"
  312. :key="item1.id"
  313. @click="
  314. getChapterData(
  315. $event,
  316. unitIndex,
  317. index,
  318. index1,
  319. item1.type
  320. )
  321. "
  322. >
  323. <div
  324. class="chapter_upload_t"
  325. style="width: 100%"
  326. ></div>
  327. <div
  328. class="chapter_upload_o"
  329. style="
  330. position: relative;
  331. display: flex;
  332. align-items: center;
  333. "
  334. >
  335. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  336. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  337. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  338. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  339. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  340. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  341. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  342. </div>
  343. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  344. </div>
  345. </div>
  346. <div class="chapter_upload_n">
  347. <input v-if="item1.type == 2 ||
  348. item1.type == 3 ||
  349. item1.type == 12 ||
  350. item1.type == 13 ||
  351. item1.type == 7
  352. " v-model="item1.name" :placeholder="item1.name" @change="
  353. updataVideoT(
  354. $event,
  355. unitIndex,
  356. itemTaskIndex,
  357. index1
  358. )
  359. " style="
  360. border: none;
  361. outline: none;
  362. width: 80%;
  363. minwidth: 215px;
  364. z-index: 99;
  365. font-size: 14px;
  366. white-space: nowrap;
  367. overflow: hidden;
  368. text-overflow: ellipsis;
  369. " />
  370. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  371. border: none;
  372. outline: none;
  373. width: 80%;
  374. white-space: nowrap;
  375. overflow: hidden;
  376. text-overflow: ellipsis;
  377. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  378. <input :placeholder="item1.title ? item1.title : '链接'
  379. " v-if="item1.type == 8" style="
  380. border: none;
  381. outline: none;
  382. width: 80%;
  383. white-space: nowrap;
  384. overflow: hidden;
  385. text-overflow: ellipsis;
  386. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  387. </div>
  388. <div class="chapter_upload_ic">
  389. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  390. </div>
  391. <div class="chapter_upload_ud" style="z-index: 99">
  392. <div class="chapter_upload_up" @click="
  393. upCd(
  394. $event,
  395. unitIndex,
  396. index,
  397. itemTaskIndex,
  398. index1
  399. )
  400. "></div>
  401. <div class="chapter_upload_down" @click="
  402. downCd(
  403. $event,
  404. unitIndex,
  405. index,
  406. itemTaskIndex,
  407. index1
  408. )
  409. "></div>
  410. </div>
  411. <div class="chapter_upload_ic_r" @click.stop="
  412. deleteChapterData(
  413. $event,
  414. unitIndex,
  415. index,
  416. index1,
  417. itemTaskIndex
  418. )
  419. ">
  420. <div></div>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. </div>
  427. <div class="add_info_box">
  428. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  429. 添加文件
  430. <input
  431. type="file"
  432. accept="*"
  433. style="display: none"
  434. v-if="inputShow"
  435. @change="
  436. beforeUpload2(
  437. $event,
  438. unitIndex,
  439. 13,
  440. itemTaskIndex
  441. )
  442. "
  443. />
  444. </button>
  445. <!-- <button class="info_btn" @click="addImg($event)">
  446. 添加视频
  447. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  448. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  449. " />
  450. </button>
  451. <button class="info_btn" @click="addImg($event)">
  452. 添加文档
  453. <input type="file"
  454. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  455. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  456. " />
  457. </button> -->
  458. <button
  459. class="c_pub_button_add pub_btn_add_img"
  460. @click="addAttText(itemTaskIndex)"
  461. >
  462. 添加图文
  463. </button>
  464. <button
  465. class="c_pub_button_add pub_btn_add_img"
  466. @click="openLine(itemTaskIndex)"
  467. >
  468. 添加链接
  469. </button>
  470. <button
  471. class="c_pub_button_add pub_btn_add_img"
  472. @click="pasteLine(itemTaskIndex)"
  473. >
  474. 嵌入代码
  475. </button>
  476. <button
  477. class="c_pub_button_add pub_btn_add_img"
  478. @click="openSource(itemTaskIndex)"
  479. >
  480. 添加资源
  481. </button>
  482. <!-- <button class="info_btn" @click="addImg($event)">
  483. 其他附件
  484. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  485. " />
  486. </button> -->
  487. </div>
  488. <div
  489. v-if="
  490. unitJson[unitIndex].chapterInfo[0].taskJson[
  491. itemTaskIndex
  492. ].proVisible
  493. "
  494. class="mask"
  495. >
  496. <div class="progressBox">
  497. <!-- <div id="closePro" class="closeCss">
  498. <img src="../../../../assets/icon/close.png" alt />
  499. </div> -->
  500. <div class="lbox">
  501. <img
  502. src="../../../assets/loading.gif"
  503. />上传中,请稍后
  504. </div>
  505. <div style="margin-bottom: 10px">
  506. <span
  507. >{{
  508. unitJson[unitIndex].chapterInfo[0].taskJson[
  509. itemTaskIndex
  510. ].isFinishSize
  511. }}M</span
  512. >
  513. /
  514. <span
  515. >{{
  516. unitJson[unitIndex].chapterInfo[0].taskJson[
  517. itemTaskIndex
  518. ].isAllSize
  519. }}M</span
  520. >
  521. </div>
  522. <el-progress
  523. :text-inside="true"
  524. :stroke-width="20"
  525. :percentage="
  526. unitJson[unitIndex].chapterInfo[0].taskJson[
  527. itemTaskIndex
  528. ].progress
  529. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  530. itemTaskIndex
  531. ].progress
  532. : 0
  533. "
  534. style="width: 80%"
  535. ></el-progress>
  536. </div>
  537. </div>
  538. </div>
  539. <div class="toolChoose" style="margin: 20px 0">
  540. <div class="tools">
  541. <div
  542. class="leftTools"
  543. style="
  544. width: 100%;
  545. "
  546. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  547. :key="toolIndex"
  548. >
  549. <div>
  550. <textarea
  551. rows="3"
  552. type="text"
  553. placeholder="添加工具描述"
  554. class="binfo_input"
  555. style="
  556. margin: 0 0 20px 0;
  557. "
  558. v-model="itemTool.toolDetail"
  559. ></textarea>
  560. </div>
  561. <div
  562. style="
  563. display: flex;
  564. flex-direction: row;
  565. align-items: baseline;
  566. flex-wrap: nowrap;
  567. justify-content: flex-start;
  568. position: relative;
  569. "
  570. >
  571. <div
  572. style="margin-right: 20px; font-weight: bold"
  573. >
  574. 步骤 {{ toolIndex + 1 }} :
  575. </div>
  576. <div class="chooseWho">
  577. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  578. " @click="(itemTool.toolType = 0), $forceUpdate()">
  579. 互动类
  580. </div>
  581. <div
  582. :class="
  583. itemTool.toolType == 1
  584. ? 'isChooseActive'
  585. : ''
  586. "
  587. @click="
  588. (itemTool.toolType = 1), $forceUpdate()
  589. "
  590. >
  591. 思维类
  592. </div>
  593. <div
  594. :class="
  595. itemTool.toolType == 6
  596. ? 'isChooseActive'
  597. : ''
  598. "
  599. @click="
  600. (itemTool.toolType = 6), $forceUpdate()
  601. "
  602. >
  603. 协作类
  604. </div>
  605. <div
  606. :class="
  607. itemTool.toolType == 2
  608. ? 'isChooseActive'
  609. : ''
  610. "
  611. @click="
  612. (itemTool.toolType = 2), $forceUpdate()
  613. "
  614. >
  615. 测评类
  616. </div>
  617. <div
  618. :class="
  619. itemTool.toolType == 7
  620. ? 'isChooseActive'
  621. : ''
  622. "
  623. @click="
  624. (itemTool.toolType = 7), $forceUpdate()
  625. "
  626. >
  627. 评价类
  628. </div>
  629. <div
  630. :class="
  631. itemTool.toolType == 3
  632. ? 'isChooseActive'
  633. : ''
  634. "
  635. @click="
  636. (itemTool.toolType = 3), $forceUpdate()
  637. "
  638. >
  639. 学科类
  640. </div>
  641. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  642. " @click="(itemTool.toolType = 5), $forceUpdate()">
  643. 学科类
  644. </div>
  645. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  646. " @click="(itemTool.toolType = 4), $forceUpdate()">
  647. 其他
  648. </div> -->
  649. </div>
  650. <div
  651. class="remove"
  652. @click="deleteTool(itemTaskIndex, toolIndex)"
  653. v-if="itemTask.toolChoose.length > 1"
  654. style="position: absolute; right: 0"
  655. ></div>
  656. </div>
  657. <div style="min-height: 163px">
  658. <div
  659. class="toolSort"
  660. v-if="itemTool.toolType == 0"
  661. >
  662. <!-- <div class="tool">
  663. <div
  664. class="whiteBIcon"
  665. @click="addTools(8, itemTaskIndex, toolIndex)"
  666. >
  667. <img src="../../../assets/icon/secondToolList/library.png" alt />
  668. <div style="margin: 5px 0">素材库</div>
  669. </div>
  670. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  671. <img
  672. src="../../../assets/icon/checkNo.png"
  673. alt
  674. v-if="itemTool.tool.indexOf(8) == -1"
  675. />
  676. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  677. alt /><span>已选择</span></div>
  678. </div>
  679. </div>-->
  680. <!-- <div class="tool">
  681. <div
  682. class="whiteBIcon"
  683. @click="addTools(17, itemTaskIndex, toolIndex)"
  684. >
  685. <img
  686. src="../../../assets/icon/secondToolList/library.png"
  687. alt
  688. />
  689. <div style="margin: 5px 0">学习资料</div>
  690. </div>
  691. <div
  692. class="check"
  693. @click="addTools(17, itemTaskIndex, toolIndex)"
  694. >
  695. <img
  696. src="../../../assets/icon/checkNo.png"
  697. alt
  698. v-if="itemTool.tool.indexOf(17) == -1"
  699. />
  700. <img
  701. src="../../../assets/icon/checkedIs.png"
  702. alt
  703. v-else
  704. />
  705. </div>10
  706. </div> -->
  707. <div class="tool">
  708. <div
  709. class="whiteBIcon"
  710. @click="
  711. openTools(itemTaskIndex, 10, toolIndex)
  712. "
  713. >
  714. <img
  715. src="../../../assets/icon/thirdToolList/time.png"
  716. alt
  717. />
  718. <div style="margin: 5px 0">倒计时</div>
  719. </div>
  720. <div
  721. class="check"
  722. @click="
  723. addTools(10, itemTaskIndex, toolIndex)
  724. "
  725. >
  726. <img
  727. src="../../../assets/icon/checkNo.png"
  728. alt
  729. v-if="itemTool.tool.indexOf(10) == -1"
  730. />
  731. <div class="checkDiv" v-else>
  732. <img
  733. src="../../../assets/icon/checkedIs.png"
  734. alt
  735. /><span>已选择</span>
  736. </div>
  737. </div>
  738. </div>
  739. <!-- <div class="tool">
  740. <div
  741. class="whiteBIcon"
  742. @click="
  743. openTools(itemTaskIndex, 49, toolIndex)
  744. "
  745. >
  746. <img
  747. src="../../../assets/icon/fourthToolList/group.png"
  748. alt
  749. />
  750. <div style="margin: 5px 0">学生分组</div>
  751. </div>
  752. <div
  753. class="check"
  754. @click="
  755. addTools(49, itemTaskIndex, toolIndex)
  756. "
  757. >
  758. <img
  759. src="../../../assets/icon/checkNo.png"
  760. alt
  761. v-if="itemTool.tool.indexOf(49) == -1"
  762. />
  763. <div class="checkDiv" v-else>
  764. <img
  765. src="../../../assets/icon/checkedIs.png"
  766. alt
  767. /><span>已选择</span>
  768. </div>
  769. </div>
  770. </div> -->
  771. <!-- <div class="tool">
  772. <div
  773. class="whiteBIcon"
  774. @click="
  775. openTools(itemTaskIndex, 62, toolIndex)
  776. "
  777. >
  778. <img
  779. src="../../../assets/icon/fourthToolList/interVideo.png"
  780. alt
  781. />
  782. <div style="margin: 5px 0">交互视频</div>
  783. </div>
  784. <div
  785. class="check"
  786. @click="
  787. addTools(62, itemTaskIndex, toolIndex)
  788. "
  789. >
  790. <img
  791. src="../../../assets/icon/checkNo.png"
  792. alt
  793. v-if="itemTool.tool.indexOf(62) == -1"
  794. />
  795. <div class="checkDiv" v-else>
  796. <img
  797. src="../../../assets/icon/checkedIs.png"
  798. alt
  799. /><span>已选择</span>
  800. </div>
  801. </div>
  802. </div> -->
  803. </div>
  804. <div
  805. class="toolSort"
  806. v-if="itemTool.toolType == 1"
  807. >
  808. <div class="tool">
  809. <div
  810. class="whiteBIcon"
  811. @click="
  812. addTools(7, itemTaskIndex, toolIndex)
  813. "
  814. >
  815. <img
  816. src="../../../assets/icon/secondToolList/mindNetwork.png"
  817. alt
  818. />
  819. <div style="margin: 5px 0">思维网格</div>
  820. </div>
  821. <div
  822. class="check"
  823. @click="
  824. addTools(7, itemTaskIndex, toolIndex)
  825. "
  826. >
  827. <img
  828. src="../../../assets/icon/checkNo.png"
  829. alt
  830. v-if="itemTool.tool.indexOf(7) == -1"
  831. />
  832. <div class="checkDiv" v-else>
  833. <img
  834. src="../../../assets/icon/checkedIs.png"
  835. alt
  836. /><span>已选择</span>
  837. </div>
  838. </div>
  839. </div>
  840. <div class="tool">
  841. <div
  842. class="whiteBIcon"
  843. @click="
  844. openTools(itemTaskIndex, 1, toolIndex)
  845. "
  846. >
  847. <img
  848. src="../../../assets/icon/secondToolList/whiteBoard.png"
  849. alt
  850. />
  851. <div style="margin: 5px 0">电子白板</div>
  852. </div>
  853. <div
  854. class="check"
  855. @click="
  856. addTools(1, itemTaskIndex, toolIndex)
  857. "
  858. >
  859. <img
  860. src="../../../assets/icon/checkNo.png"
  861. alt
  862. v-if="itemTool.tool.indexOf(1) == -1"
  863. />
  864. <div class="checkDiv" v-else>
  865. <img
  866. src="../../../assets/icon/checkedIs.png"
  867. alt
  868. /><span>已选择</span>
  869. </div>
  870. </div>
  871. </div>
  872. <!-- <div class="tool">
  873. <div
  874. class="whiteBIcon"
  875. @click="addTools(2, itemTaskIndex, toolIndex)"
  876. >
  877. <img
  878. src="../../../assets/icon/secondToolList/note.png"
  879. alt
  880. />
  881. <div style="margin: 5px 0">便签</div>
  882. </div>
  883. <div
  884. class="check"
  885. @click="addTools(2, itemTaskIndex, toolIndex)"
  886. >
  887. <img
  888. src="../../../assets/icon/checkNo.png"
  889. alt
  890. v-if="itemTool.tool.indexOf(2) == -1"
  891. />
  892. <div class="checkDiv" v-else>
  893. <img
  894. src="../../../assets/icon/checkedIs.png"
  895. alt
  896. /><span>已选择</span>
  897. </div>
  898. </div>
  899. </div> -->
  900. <!-- <div class="tool">
  901. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  902. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  903. <div style="margin: 5px 0">协同文档</div>
  904. </div>
  905. <div
  906. class="check"
  907. @click="addTools(6, itemTaskIndex, toolIndex)"
  908. >
  909. <img
  910. src="../../../assets/icon/checkNo.png"
  911. alt
  912. v-if="itemTool.tool.indexOf(6) == -1"
  913. />
  914. <div class="checkDiv" v-else>
  915. <img
  916. src="../../../assets/icon/checkedIs.png"
  917. alt
  918. /><span>已选择</span>
  919. </div>
  920. </div>
  921. </div> -->
  922. <div class="tool">
  923. <div
  924. class="whiteBIcon"
  925. @click="
  926. openTools(itemTaskIndex, 52, toolIndex)
  927. "
  928. >
  929. <img
  930. src="../../../assets/icon/fourthToolList/text.png"
  931. alt
  932. />
  933. <div style="margin: 5px 0">文档</div>
  934. </div>
  935. <div
  936. class="check"
  937. @click="
  938. addTools(52, itemTaskIndex, toolIndex)
  939. "
  940. >
  941. <img
  942. src="../../../assets/icon/checkNo.png"
  943. alt
  944. v-if="itemTool.tool.indexOf(52) == -1"
  945. />
  946. <div class="checkDiv" v-else>
  947. <img
  948. src="../../../assets/icon/checkedIs.png"
  949. alt
  950. /><span>已选择</span>
  951. </div>
  952. </div>
  953. </div>
  954. <div class="tool">
  955. <div
  956. class="whiteBIcon"
  957. @click="
  958. openTools(itemTaskIndex, 3, toolIndex)
  959. "
  960. >
  961. <img
  962. src="../../../assets/icon/secondToolList/mindMapping.png"
  963. alt
  964. />
  965. <div style="margin: 5px 0">思维导图</div>
  966. </div>
  967. <div
  968. class="check"
  969. @click="
  970. addTools(3, itemTaskIndex, toolIndex)
  971. "
  972. >
  973. <img
  974. src="../../../assets/icon/checkNo.png"
  975. alt
  976. v-if="itemTool.tool.indexOf(3) == -1"
  977. />
  978. <div class="checkDiv" v-else>
  979. <img
  980. src="../../../assets/icon/checkedIs.png"
  981. alt
  982. /><span>已选择</span>
  983. </div>
  984. </div>
  985. </div>
  986. <div class="tool">
  987. <div
  988. class="whiteBIcon"
  989. @click="
  990. openTools(itemTaskIndex, 48, toolIndex)
  991. "
  992. >
  993. <img
  994. src="../../../assets/icon/fourthToolList/table.png"
  995. alt
  996. />
  997. <div style="margin: 5px 0">表格</div>
  998. </div>
  999. <div
  1000. class="check"
  1001. @click="
  1002. addTools(48, itemTaskIndex, toolIndex)
  1003. "
  1004. >
  1005. <img
  1006. src="../../../assets/icon/checkNo.png"
  1007. alt
  1008. v-if="itemTool.tool.indexOf(48) == -1"
  1009. />
  1010. <div class="checkDiv" v-else>
  1011. <img
  1012. src="../../../assets/icon/checkedIs.png"
  1013. alt
  1014. /><span>已选择</span>
  1015. </div>
  1016. </div>
  1017. </div>
  1018. </div>
  1019. <div
  1020. class="toolSort"
  1021. v-if="itemTool.toolType == 6"
  1022. >
  1023. <div class="tool">
  1024. <div
  1025. class="whiteBIcon"
  1026. @click="
  1027. openTools(itemTaskIndex, 49, toolIndex)
  1028. "
  1029. >
  1030. <img
  1031. src="../../../assets/icon/fourthToolList/group.png"
  1032. alt
  1033. />
  1034. <div style="margin: 5px 0">学生分组</div>
  1035. </div>
  1036. <div
  1037. class="check"
  1038. @click="
  1039. addTools(49, itemTaskIndex, toolIndex)
  1040. "
  1041. >
  1042. <img
  1043. src="../../../assets/icon/checkNo.png"
  1044. alt
  1045. v-if="itemTool.tool.indexOf(49) == -1"
  1046. />
  1047. <div class="checkDiv" v-else>
  1048. <img
  1049. src="../../../assets/icon/checkedIs.png"
  1050. alt
  1051. /><span>已选择</span>
  1052. </div>
  1053. </div>
  1054. </div>
  1055. </div>
  1056. <div
  1057. class="toolSort"
  1058. v-if="itemTool.toolType == 2"
  1059. >
  1060. <!-- <div class="tool">
  1061. <div
  1062. class="whiteBIcon"
  1063. @click="addTools(5, itemTaskIndex, toolIndex)"
  1064. >
  1065. <img
  1066. src="../../../assets/icon/thirdToolList/score.png"
  1067. alt
  1068. />
  1069. <div style="margin: 5px 0">量规评分</div>
  1070. </div>
  1071. <div
  1072. class="check"
  1073. @click="addTools(5, itemTaskIndex, toolIndex)"
  1074. >
  1075. <img
  1076. src="../../../assets/icon/checkNo.png"
  1077. alt
  1078. v-if="itemTool.tool.indexOf(5) == -1"
  1079. />
  1080. <img
  1081. src="../../../assets/icon/checkedIs.png"
  1082. alt
  1083. v-else
  1084. />
  1085. </div>
  1086. </div>-->
  1087. <div class="tool">
  1088. <div
  1089. class="whiteBIcon"
  1090. @click="
  1091. openTools(itemTaskIndex, 4, toolIndex)
  1092. "
  1093. >
  1094. <img
  1095. src="../../../assets/icon/thirdToolList/ask.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">问卷调查</div>
  1099. </div>
  1100. <div
  1101. class="check"
  1102. @click="
  1103. addTools(4, itemTaskIndex, toolIndex)
  1104. "
  1105. >
  1106. <img
  1107. src="../../../assets/icon/checkNo.png"
  1108. alt
  1109. v-if="itemTool.tool.indexOf(4) == -1"
  1110. />
  1111. <div class="checkDiv" v-else>
  1112. <img
  1113. src="../../../assets/icon/checkedIs.png"
  1114. alt
  1115. /><span>已选择</span>
  1116. </div>
  1117. </div>
  1118. </div>
  1119. <div class="tool">
  1120. <div
  1121. class="whiteBIcon"
  1122. @click="
  1123. openTools(itemTaskIndex, 45, toolIndex)
  1124. "
  1125. >
  1126. <img
  1127. src="../../../assets/icon/thirdToolList/choose.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">选择题</div>
  1131. </div>
  1132. <div
  1133. class="check"
  1134. @click="
  1135. addTools(45, itemTaskIndex, toolIndex)
  1136. "
  1137. >
  1138. <img
  1139. src="../../../assets/icon/checkNo.png"
  1140. alt
  1141. v-if="itemTool.tool.indexOf(45) == -1"
  1142. />
  1143. <div class="checkDiv" v-else>
  1144. <img
  1145. src="../../../assets/icon/checkedIs.png"
  1146. alt
  1147. /><span>已选择</span>
  1148. </div>
  1149. </div>
  1150. </div>
  1151. <div class="tool">
  1152. <div
  1153. class="whiteBIcon"
  1154. @click="
  1155. openTools(itemTaskIndex, 15, toolIndex)
  1156. "
  1157. >
  1158. <img
  1159. src="../../../assets/icon/thirdToolList/answer.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">问答工具</div>
  1163. </div>
  1164. <div
  1165. class="check"
  1166. @click="
  1167. addTools(15, itemTaskIndex, toolIndex)
  1168. "
  1169. >
  1170. <img
  1171. src="../../../assets/icon/checkNo.png"
  1172. alt
  1173. v-if="itemTool.tool.indexOf(15) == -1"
  1174. />
  1175. <div class="checkDiv" v-else>
  1176. <img
  1177. src="../../../assets/icon/checkedIs.png"
  1178. alt
  1179. /><span>已选择</span>
  1180. </div>
  1181. </div>
  1182. </div>
  1183. <div class="tool">
  1184. <div
  1185. class="whiteBIcon"
  1186. @click="
  1187. addTools(16, itemTaskIndex, toolIndex)
  1188. "
  1189. >
  1190. <img
  1191. src="../../../assets/icon/thirdToolList/work.png"
  1192. alt
  1193. />
  1194. <div style="margin: 5px 0">作业提交</div>
  1195. </div>
  1196. <div
  1197. class="check"
  1198. @click="
  1199. addTools(16, itemTaskIndex, toolIndex)
  1200. "
  1201. >
  1202. <img
  1203. src="../../../assets/icon/checkNo.png"
  1204. alt
  1205. v-if="itemTool.tool.indexOf(16) == -1"
  1206. />
  1207. <div class="checkDiv" v-else>
  1208. <img
  1209. src="../../../assets/icon/checkedIs.png"
  1210. alt
  1211. /><span>已选择</span>
  1212. </div>
  1213. </div>
  1214. </div>
  1215. <div class="tool">
  1216. <div
  1217. class="whiteBIcon"
  1218. @click="
  1219. addTools(50, itemTaskIndex, toolIndex)
  1220. "
  1221. >
  1222. <img
  1223. src="../../../assets/icon/thirdToolList/plwork.png"
  1224. alt
  1225. />
  1226. <div style="margin: 5px 0">批量上传</div>
  1227. </div>
  1228. <div
  1229. class="check"
  1230. @click="
  1231. addTools(50, itemTaskIndex, toolIndex)
  1232. "
  1233. >
  1234. <img
  1235. src="../../../assets/icon/checkNo.png"
  1236. alt
  1237. v-if="itemTool.tool.indexOf(50) == -1"
  1238. />
  1239. <div class="checkDiv" v-else>
  1240. <img
  1241. src="../../../assets/icon/checkedIs.png"
  1242. alt
  1243. /><span>已选择</span>
  1244. </div>
  1245. </div>
  1246. </div>
  1247. <!-- <div class="tool">
  1248. <div
  1249. class="whiteBIcon"
  1250. @click="
  1251. openTools(itemTaskIndex, 40, toolIndex)
  1252. "
  1253. >
  1254. <img
  1255. src="../../../assets/icon/thirdToolList/eval.png"
  1256. alt
  1257. />
  1258. <div style="margin: 5px 0">个人评价</div>
  1259. </div>
  1260. <div
  1261. class="check"
  1262. @click="
  1263. addTools(40, itemTaskIndex, toolIndex)
  1264. "
  1265. >
  1266. <img
  1267. src="../../../assets/icon/checkNo.png"
  1268. alt
  1269. v-if="itemTool.tool.indexOf(40) == -1"
  1270. />
  1271. <div class="checkDiv" v-else>
  1272. <img
  1273. src="../../../assets/icon/checkedIs.png"
  1274. alt
  1275. /><span>已选择</span>
  1276. </div>
  1277. </div>
  1278. </div> -->
  1279. <div class="tool">
  1280. <div
  1281. class="whiteBIcon"
  1282. @click="
  1283. openTools(itemTaskIndex, 41, toolIndex)
  1284. "
  1285. >
  1286. <img
  1287. src="../../../assets/icon/thirdToolList/select.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">选择填空</div>
  1291. </div>
  1292. <div
  1293. class="check"
  1294. @click="
  1295. addTools(41, itemTaskIndex, toolIndex)
  1296. "
  1297. >
  1298. <img
  1299. src="../../../assets/icon/checkNo.png"
  1300. alt
  1301. v-if="itemTool.tool.indexOf(41) == -1"
  1302. />
  1303. <div class="checkDiv" v-else>
  1304. <img
  1305. src="../../../assets/icon/checkedIs.png"
  1306. alt
  1307. /><span>已选择</span>
  1308. </div>
  1309. </div>
  1310. </div>
  1311. <div class="tool">
  1312. <div
  1313. class="whiteBIcon"
  1314. @click="
  1315. openTools(itemTaskIndex, 47, toolIndex)
  1316. "
  1317. >
  1318. <img
  1319. src="../../../assets/icon/fourthToolList/conSentences.png"
  1320. alt
  1321. />
  1322. <div style="margin: 5px 0">连词成句</div>
  1323. </div>
  1324. <div
  1325. class="check"
  1326. @click="
  1327. addTools(47, itemTaskIndex, toolIndex)
  1328. "
  1329. >
  1330. <img
  1331. src="../../../assets/icon/checkNo.png"
  1332. alt
  1333. v-if="itemTool.tool.indexOf(47) == -1"
  1334. />
  1335. <div class="checkDiv" v-else>
  1336. <img
  1337. src="../../../assets/icon/checkedIs.png"
  1338. alt
  1339. /><span>已选择</span>
  1340. </div>
  1341. </div>
  1342. </div>
  1343. <!-- <div class="tool">
  1344. <div
  1345. class="whiteBIcon"
  1346. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1347. >
  1348. <img
  1349. src="../../../assets/icon/thirdToolList/mp3.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">上传音频</div>
  1353. </div>
  1354. <div
  1355. class="check"
  1356. @click="addTools(42, itemTaskIndex, toolIndex)"
  1357. >
  1358. <img
  1359. src="../../../assets/icon/checkNo.png"
  1360. alt
  1361. v-if="itemTool.tool.indexOf(42) == -1"
  1362. />
  1363. <img
  1364. src="../../../assets/icon/checkedIs.png"
  1365. alt
  1366. v-else
  1367. />
  1368. </div>
  1369. </div> -->
  1370. </div>
  1371. <div
  1372. class="toolSort"
  1373. v-if="itemTool.toolType == 3"
  1374. >
  1375. <div class="tool">
  1376. <div
  1377. class="whiteBIcon"
  1378. @click="
  1379. addTools(18, itemTaskIndex, toolIndex)
  1380. "
  1381. >
  1382. <img
  1383. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  1384. alt
  1385. />
  1386. <div style="margin: 5px 0">训练平台</div>
  1387. </div>
  1388. <div
  1389. class="check"
  1390. @click="
  1391. addTools(18, itemTaskIndex, toolIndex)
  1392. "
  1393. >
  1394. <img
  1395. src="../../../assets/icon/checkNo.png"
  1396. alt
  1397. v-if="itemTool.tool.indexOf(18) == -1"
  1398. />
  1399. <div class="checkDiv" v-else>
  1400. <img
  1401. src="../../../assets/icon/checkedIs.png"
  1402. alt
  1403. /><span>已选择</span>
  1404. </div>
  1405. </div>
  1406. </div>
  1407. <div class="tool">
  1408. <div
  1409. class="whiteBIcon"
  1410. @click="
  1411. addTools(21, itemTaskIndex, toolIndex)
  1412. "
  1413. >
  1414. <img
  1415. src="../../../assets/icon/fourthToolList/program.png"
  1416. alt
  1417. />
  1418. <div style="margin: 5px 0">编程平台</div>
  1419. </div>
  1420. <div
  1421. class="check"
  1422. @click="
  1423. addTools(21, itemTaskIndex, toolIndex)
  1424. "
  1425. >
  1426. <img
  1427. src="../../../assets/icon/checkNo.png"
  1428. alt
  1429. v-if="itemTool.tool.indexOf(21) == -1"
  1430. />
  1431. <div class="checkDiv" v-else>
  1432. <img
  1433. src="../../../assets/icon/checkedIs.png"
  1434. alt
  1435. /><span>已选择</span>
  1436. </div>
  1437. </div>
  1438. </div>
  1439. <div class="tool">
  1440. <div
  1441. class="whiteBIcon"
  1442. @click="
  1443. addTools(22, itemTaskIndex, toolIndex)
  1444. "
  1445. >
  1446. <img
  1447. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  1448. alt
  1449. />
  1450. <div style="margin: 5px 0">AI体验</div>
  1451. </div>
  1452. <div
  1453. class="check"
  1454. @click="
  1455. addTools(22, itemTaskIndex, toolIndex)
  1456. "
  1457. >
  1458. <img
  1459. src="../../../assets/icon/checkNo.png"
  1460. alt
  1461. v-if="itemTool.tool.indexOf(22) == -1"
  1462. />
  1463. <div class="checkDiv" v-else>
  1464. <img
  1465. src="../../../assets/icon/checkedIs.png"
  1466. alt
  1467. /><span>已选择</span>
  1468. </div>
  1469. </div>
  1470. </div>
  1471. <div class="tool">
  1472. <div
  1473. class="whiteBIcon"
  1474. @click="
  1475. addTools(23, itemTaskIndex, toolIndex)
  1476. "
  1477. >
  1478. <img
  1479. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  1480. alt
  1481. />
  1482. <div style="margin: 5px 0">Python</div>
  1483. </div>
  1484. <div
  1485. class="check"
  1486. @click="
  1487. addTools(23, itemTaskIndex, toolIndex)
  1488. "
  1489. >
  1490. <img
  1491. src="../../../assets/icon/checkNo.png"
  1492. alt
  1493. v-if="itemTool.tool.indexOf(23) == -1"
  1494. />
  1495. <div class="checkDiv" v-else>
  1496. <img
  1497. src="../../../assets/icon/checkedIs.png"
  1498. alt
  1499. /><span>已选择</span>
  1500. </div>
  1501. </div>
  1502. </div>
  1503. <div class="tool">
  1504. <div
  1505. class="whiteBIcon"
  1506. @click="
  1507. addTools(24, itemTaskIndex, toolIndex)
  1508. "
  1509. >
  1510. <img
  1511. src="../../../assets/icon/fourthToolList/AIprogram.png"
  1512. alt
  1513. />
  1514. <div style="margin: 5px 0">AI平台</div>
  1515. </div>
  1516. <div
  1517. class="check"
  1518. @click="
  1519. addTools(24, itemTaskIndex, toolIndex)
  1520. "
  1521. >
  1522. <img
  1523. src="../../../assets/icon/checkNo.png"
  1524. alt
  1525. v-if="itemTool.tool.indexOf(24) == -1"
  1526. />
  1527. <div class="checkDiv" v-else>
  1528. <img
  1529. src="../../../assets/icon/checkedIs.png"
  1530. alt
  1531. /><span>已选择</span>
  1532. </div>
  1533. </div>
  1534. </div>
  1535. <!-- <div class="tool">
  1536. <div
  1537. class="whiteBIcon"
  1538. @click="
  1539. addTools(32, itemTaskIndex, toolIndex)
  1540. "
  1541. >
  1542. <img
  1543. src="../../../assets/icon/thirdToolList/code.png"
  1544. alt
  1545. />
  1546. <div style="margin: 5px 0">源码编辑</div>
  1547. </div>
  1548. <div
  1549. class="check"
  1550. @click="
  1551. addTools(32, itemTaskIndex, toolIndex)
  1552. "
  1553. >
  1554. <img
  1555. src="../../../assets/icon/checkNo.png"
  1556. alt
  1557. v-if="itemTool.tool.indexOf(32) == -1"
  1558. />
  1559. <div class="checkDiv" v-else>
  1560. <img
  1561. src="../../../assets/icon/checkedIs.png"
  1562. alt
  1563. /><span>已选择</span>
  1564. </div>
  1565. </div>
  1566. </div> -->
  1567. <div class="tool">
  1568. <div
  1569. class="whiteBIcon"
  1570. @click="openTools(itemTaskIndex, 57, toolIndex)"
  1571. >
  1572. <img
  1573. src="../../../assets/icon/fourthToolList/cocopi.png"
  1574. alt
  1575. />
  1576. <div style="margin: 5px 0">CocoPi</div>
  1577. </div>
  1578. <div
  1579. class="check"
  1580. @click="
  1581. addTools(57, itemTaskIndex, toolIndex)
  1582. "
  1583. >
  1584. <img
  1585. src="../../../assets/icon/checkNo.png"
  1586. alt
  1587. v-if="itemTool.tool.indexOf(57) == -1"
  1588. />
  1589. <div class="checkDiv" v-else>
  1590. <img
  1591. src="../../../assets/icon/checkedIs.png"
  1592. alt
  1593. /><span>已选择</span>
  1594. </div>
  1595. </div>
  1596. </div>
  1597. <div class="tool">
  1598. <div
  1599. class="whiteBIcon"
  1600. @click="
  1601. addTools(63, itemTaskIndex, toolIndex)
  1602. "
  1603. >
  1604. <img
  1605. src="../../../assets/icon/fourthToolList/Wood.png"
  1606. alt
  1607. />
  1608. <div style="margin: 5px 0">海龟编程</div>
  1609. </div>
  1610. <div
  1611. class="check"
  1612. @click="
  1613. addTools(63, itemTaskIndex, toolIndex)
  1614. "
  1615. >
  1616. <img
  1617. src="../../../assets/icon/checkNo.png"
  1618. alt
  1619. v-if="itemTool.tool.indexOf(63) == -1"
  1620. />
  1621. <div class="checkDiv" v-else>
  1622. <img
  1623. src="../../../assets/icon/checkedIs.png"
  1624. alt
  1625. /><span>已选择</span>
  1626. </div>
  1627. </div>
  1628. </div>
  1629. </div>
  1630. <div
  1631. class="toolSort"
  1632. v-if="itemTool.toolType == 5"
  1633. >
  1634. <div class="tool">
  1635. <div
  1636. class="whiteBIcon"
  1637. @click="
  1638. addTools(28, itemTaskIndex, toolIndex)
  1639. "
  1640. >
  1641. <img
  1642. src="../../../assets/icon/secondToolList/translation.png"
  1643. alt
  1644. />
  1645. <div style="margin: 5px 0">翻译</div>
  1646. </div>
  1647. <div
  1648. class="check"
  1649. @click="
  1650. addTools(28, itemTaskIndex, toolIndex)
  1651. "
  1652. >
  1653. <img
  1654. src="../../../assets/icon/checkNo.png"
  1655. alt
  1656. v-if="itemTool.tool.indexOf(28) == -1"
  1657. />
  1658. <div class="checkDiv" v-else>
  1659. <img
  1660. src="../../../assets/icon/checkedIs.png"
  1661. alt
  1662. /><span>已选择</span>
  1663. </div>
  1664. </div>
  1665. </div>
  1666. <div class="tool">
  1667. <div
  1668. class="whiteBIcon"
  1669. @click="
  1670. addTools(37, itemTaskIndex, toolIndex)
  1671. "
  1672. >
  1673. <img
  1674. src="../../../assets/icon/secondToolList/mohe.png"
  1675. alt
  1676. />
  1677. <div style="margin: 5px 0">魔盒识字</div>
  1678. </div>
  1679. <div
  1680. class="check"
  1681. @click="
  1682. addTools(37, itemTaskIndex, toolIndex)
  1683. "
  1684. >
  1685. <img
  1686. src="../../../assets/icon/checkNo.png"
  1687. alt
  1688. v-if="itemTool.tool.indexOf(37) == -1"
  1689. />
  1690. <div class="checkDiv" v-else>
  1691. <img
  1692. src="../../../assets/icon/checkedIs.png"
  1693. alt
  1694. /><span>已选择</span>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <div class="tool">
  1699. <div
  1700. class="whiteBIcon"
  1701. @click="
  1702. addTools(38, itemTaskIndex, toolIndex)
  1703. "
  1704. >
  1705. <img
  1706. src="../../../assets/icon/secondToolList/24game.png"
  1707. alt
  1708. />
  1709. <div style="margin: 5px 0">24点</div>
  1710. </div>
  1711. <div
  1712. class="check"
  1713. @click="
  1714. addTools(38, itemTaskIndex, toolIndex)
  1715. "
  1716. >
  1717. <img
  1718. src="../../../assets/icon/checkNo.png"
  1719. alt
  1720. v-if="itemTool.tool.indexOf(38) == -1"
  1721. />
  1722. <div class="checkDiv" v-else>
  1723. <img
  1724. src="../../../assets/icon/checkedIs.png"
  1725. alt
  1726. /><span>已选择</span>
  1727. </div>
  1728. </div>
  1729. </div>
  1730. <div class="tool">
  1731. <div
  1732. class="whiteBIcon"
  1733. @click="
  1734. addTools(31, itemTaskIndex, toolIndex)
  1735. "
  1736. >
  1737. <img
  1738. src="../../../assets/icon/secondToolList/networkPanel.png"
  1739. alt
  1740. />
  1741. <div style="margin: 5px 0">数学画板</div>
  1742. </div>
  1743. <div
  1744. class="check"
  1745. @click="
  1746. addTools(31, itemTaskIndex, toolIndex)
  1747. "
  1748. >
  1749. <img
  1750. src="../../../assets/icon/checkNo.png"
  1751. alt
  1752. v-if="itemTool.tool.indexOf(31) == -1"
  1753. />
  1754. <div class="checkDiv" v-else>
  1755. <img
  1756. src="../../../assets/icon/checkedIs.png"
  1757. alt
  1758. /><span>已选择</span>
  1759. </div>
  1760. </div>
  1761. </div>
  1762. <div class="tool">
  1763. <div
  1764. class="whiteBIcon"
  1765. @click="
  1766. addTools(39, itemTaskIndex, toolIndex)
  1767. "
  1768. >
  1769. <img
  1770. src="../../../assets/icon/secondToolList/GeoGebra.png"
  1771. alt
  1772. />
  1773. <div style="margin: 5px 0">GeoGebra</div>
  1774. </div>
  1775. <div
  1776. class="check"
  1777. @click="
  1778. addTools(39, itemTaskIndex, toolIndex)
  1779. "
  1780. >
  1781. <img
  1782. src="../../../assets/icon/checkNo.png"
  1783. alt
  1784. v-if="itemTool.tool.indexOf(39) == -1"
  1785. />
  1786. <div class="checkDiv" v-else>
  1787. <img
  1788. src="../../../assets/icon/checkedIs.png"
  1789. alt
  1790. /><span>已选择</span>
  1791. </div>
  1792. </div>
  1793. </div>
  1794. <div class="tool">
  1795. <div
  1796. class="whiteBIcon"
  1797. @click="
  1798. addTools(58, itemTaskIndex, toolIndex)
  1799. "
  1800. >
  1801. <img
  1802. src="../../../assets/icon/fourthToolList/car.png"
  1803. alt
  1804. />
  1805. <div style="margin: 5px 0">模拟驾驶</div>
  1806. </div>
  1807. <div
  1808. class="check"
  1809. @click="
  1810. addTools(58, itemTaskIndex, toolIndex)
  1811. "
  1812. >
  1813. <img
  1814. src="../../../assets/icon/checkNo.png"
  1815. alt
  1816. v-if="itemTool.tool.indexOf(58) == -1"
  1817. />
  1818. <div class="checkDiv" v-else>
  1819. <img
  1820. src="../../../assets/icon/checkedIs.png"
  1821. alt
  1822. /><span>已选择</span>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. <div class="tool">
  1827. <div
  1828. class="whiteBIcon"
  1829. @click="
  1830. addTools(59, itemTaskIndex, toolIndex)
  1831. "
  1832. >
  1833. <img
  1834. src="../../../assets/icon/fourthToolList/lineSearch.png"
  1835. alt
  1836. />
  1837. <div style="margin: 5px 0">路径搜索</div>
  1838. </div>
  1839. <div
  1840. class="check"
  1841. @click="
  1842. addTools(59, itemTaskIndex, toolIndex)
  1843. "
  1844. >
  1845. <img
  1846. src="../../../assets/icon/checkNo.png"
  1847. alt
  1848. v-if="itemTool.tool.indexOf(59) == -1"
  1849. />
  1850. <div class="checkDiv" v-else>
  1851. <img
  1852. src="../../../assets/icon/checkedIs.png"
  1853. alt
  1854. /><span>已选择</span>
  1855. </div>
  1856. </div>
  1857. </div>
  1858. <div class="tool">
  1859. <div
  1860. class="whiteBIcon"
  1861. @click="
  1862. addTools(60, itemTaskIndex, toolIndex)
  1863. "
  1864. >
  1865. <img
  1866. src="../../../assets/icon/fourthToolList/deepLearning.png"
  1867. alt
  1868. />
  1869. <div style="margin: 5px 0">深度学习</div>
  1870. </div>
  1871. <div
  1872. class="check"
  1873. @click="
  1874. addTools(60, itemTaskIndex, toolIndex)
  1875. "
  1876. >
  1877. <img
  1878. src="../../../assets/icon/checkNo.png"
  1879. alt
  1880. v-if="itemTool.tool.indexOf(60) == -1"
  1881. />
  1882. <div class="checkDiv" v-else>
  1883. <img
  1884. src="../../../assets/icon/checkedIs.png"
  1885. alt
  1886. /><span>已选择</span>
  1887. </div>
  1888. </div>
  1889. </div>
  1890. <div class="tool">
  1891. <div
  1892. class="whiteBIcon"
  1893. @click="
  1894. addTools(61, itemTaskIndex, toolIndex)
  1895. "
  1896. >
  1897. <img
  1898. src="../../../assets/icon/fourthToolList/allHistory.png"
  1899. alt
  1900. />
  1901. <div style="margin: 5px 0">全历史</div>
  1902. </div>
  1903. <div
  1904. class="check"
  1905. @click="
  1906. addTools(61, itemTaskIndex, toolIndex)
  1907. "
  1908. >
  1909. <img
  1910. src="../../../assets/icon/checkNo.png"
  1911. alt
  1912. v-if="itemTool.tool.indexOf(61) == -1"
  1913. />
  1914. <div class="checkDiv" v-else>
  1915. <img
  1916. src="../../../assets/icon/checkedIs.png"
  1917. alt
  1918. /><span>已选择</span>
  1919. </div>
  1920. </div>
  1921. </div>
  1922. </div>
  1923. <div
  1924. class="toolSort"
  1925. v-if="itemTool.toolType == 7"
  1926. >
  1927. <div class="tool">
  1928. <div
  1929. class="whiteBIcon"
  1930. @click="
  1931. openTools(itemTaskIndex, 40, toolIndex)
  1932. "
  1933. >
  1934. <img
  1935. src="../../../assets/icon/thirdToolList/eval.png"
  1936. alt
  1937. />
  1938. <div style="margin: 5px 0">个人评价</div>
  1939. </div>
  1940. <div
  1941. class="check"
  1942. @click="
  1943. addTools(40, itemTaskIndex, toolIndex)
  1944. "
  1945. >
  1946. <img
  1947. src="../../../assets/icon/checkNo.png"
  1948. alt
  1949. v-if="itemTool.tool.indexOf(40) == -1"
  1950. />
  1951. <div class="checkDiv" v-else>
  1952. <img
  1953. src="../../../assets/icon/checkedIs.png"
  1954. alt
  1955. /><span>已选择</span>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. </div>
  1960. <div
  1961. class="toolSort"
  1962. v-if="itemTool.toolType == 4"
  1963. >
  1964. <div class="tool">
  1965. <div
  1966. class="whiteBIcon"
  1967. @click="
  1968. addTools(26, itemTaskIndex, toolIndex)
  1969. "
  1970. >
  1971. <img
  1972. src="../../../assets/icon/thirdToolList/courseDesign.png"
  1973. alt
  1974. />
  1975. <div style="margin: 5px 0">课程设计</div>
  1976. </div>
  1977. <div
  1978. class="check"
  1979. @click="
  1980. addTools(26, itemTaskIndex, toolIndex)
  1981. "
  1982. >
  1983. <img
  1984. src="../../../assets/icon/checkNo.png"
  1985. alt
  1986. v-if="itemTool.tool.indexOf(26) == -1"
  1987. />
  1988. <div class="checkDiv" v-else>
  1989. <img
  1990. src="../../../assets/icon/checkedIs.png"
  1991. alt
  1992. /><span>已选择</span>
  1993. </div>
  1994. </div>
  1995. </div>
  1996. <div class="tool">
  1997. <div
  1998. class="whiteBIcon"
  1999. @click="
  2000. addTools(25, itemTaskIndex, toolIndex)
  2001. "
  2002. >
  2003. <img
  2004. src="../../../assets/icon/thirdToolList/evalua.png"
  2005. alt
  2006. />
  2007. <div style="margin: 5px 0">目标管理</div>
  2008. </div>
  2009. <div
  2010. class="check"
  2011. @click="
  2012. addTools(25, itemTaskIndex, toolIndex)
  2013. "
  2014. >
  2015. <img
  2016. src="../../../assets/icon/checkNo.png"
  2017. alt
  2018. v-if="itemTool.tool.indexOf(25) == -1"
  2019. />
  2020. <div class="checkDiv" v-else>
  2021. <img
  2022. src="../../../assets/icon/checkedIs.png"
  2023. alt
  2024. /><span>已选择</span>
  2025. </div>
  2026. </div>
  2027. </div>
  2028. <!-- <div class="tool">
  2029. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2030. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  2031. <div style="margin: 5px 0">汉字宫</div>
  2032. </div>
  2033. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2034. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2035. <div class="checkDiv" v-else>
  2036. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2037. </div>
  2038. </div>
  2039. </div> -->
  2040. </div>
  2041. </div>
  2042. </div>
  2043. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2044. <div class="addToolImg">
  2045. <img src="../../../assets/icon/add.png" alt />
  2046. </div>
  2047. <div>添加工具</div>
  2048. </div>
  2049. </div>
  2050. </div>
  2051. </div>
  2052. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2053. <div>
  2054. <img src="../../../assets/icon/new/addStage.png" alt />
  2055. <span>添加任务</span>
  2056. </div>
  2057. </div>
  2058. </div>
  2059. </div>
  2060. </div>
  2061. </div>
  2062. </div>
  2063. <div class="rightBox" v-if="this.steps == 2">
  2064. <div
  2065. class="basic_box"
  2066. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  2067. >
  2068. <div
  2069. class="right_title"
  2070. style="border: none; margin: 0; padding: 0"
  2071. >
  2072. 请选择合适的课程模板
  2073. </div>
  2074. <div class="wordbox">
  2075. <div
  2076. class="wordTeacher"
  2077. v-for="(aa, indexF) in templateArray"
  2078. :key="indexF"
  2079. @click="checkTemplate(aa)"
  2080. >
  2081. <div class="wordPic">
  2082. <img src="../../../assets/icon/wordMub.png" alt />
  2083. </div>
  2084. <div
  2085. style="
  2086. margin-top: 10px;
  2087. line-height: 19px;
  2088. overflow: hidden;
  2089. text-overflow: ellipsis;
  2090. white-space: nowrap;
  2091. padding: 0 20px;
  2092. "
  2093. >
  2094. {{ aa.title }}
  2095. </div>
  2096. </div>
  2097. <div class="wordTeacher" @click="checkTemplate2()">
  2098. <div class="wordPic">
  2099. <img src="../../../assets/icon/wordMub.png" alt />
  2100. </div>
  2101. <div
  2102. style="
  2103. margin-top: 10px;
  2104. line-height: 19px;
  2105. overflow: hidden;
  2106. text-overflow: ellipsis;
  2107. white-space: nowrap;
  2108. padding: 0 20px;
  2109. "
  2110. >
  2111. 任务模式
  2112. </div>
  2113. </div>
  2114. <div class="wordTeacher" @click="checkTemplate3()">
  2115. <div class="wordPic">
  2116. <img src="../../../assets/icon/wordMub.png" alt />
  2117. </div>
  2118. <div
  2119. style="
  2120. margin-top: 10px;
  2121. line-height: 19px;
  2122. overflow: hidden;
  2123. text-overflow: ellipsis;
  2124. white-space: nowrap;
  2125. padding: 0 20px;
  2126. "
  2127. >
  2128. 简易模式
  2129. </div>
  2130. </div>
  2131. <div class="wordTeacher" @click="pasteStage()">
  2132. <div class="wordPic">
  2133. <img src="../../../assets/icon/wordMub.png" alt />
  2134. </div>
  2135. <div
  2136. style="
  2137. margin-top: 10px;
  2138. line-height: 19px;
  2139. overflow: hidden;
  2140. text-overflow: ellipsis;
  2141. white-space: nowrap;
  2142. padding: 0 20px;
  2143. "
  2144. >
  2145. 智能粘贴模式
  2146. </div>
  2147. </div>
  2148. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  2149. <div class="wordPic">
  2150. <img src="../../../assets/icon/wordMub.png" alt />
  2151. </div>
  2152. <div style="
  2153. margin-top: 10px;
  2154. line-height: 19px;
  2155. overflow: hidden;
  2156. text-overflow: ellipsis;
  2157. white-space: nowrap;
  2158. padding: 0 20px;
  2159. ">
  2160. 未来小学课程设计
  2161. </div>
  2162. </div> -->
  2163. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  2164. <div class="wordPic">
  2165. <img src="../../../assets/icon/wordMub.png" alt />
  2166. </div>
  2167. <div style="
  2168. margin-top: 10px;
  2169. line-height: 19px;
  2170. overflow: hidden;
  2171. text-overflow: ellipsis;
  2172. white-space: nowrap;
  2173. padding: 0 20px;
  2174. ">
  2175. 我的课程
  2176. </div>
  2177. </div> -->
  2178. </div>
  2179. </div>
  2180. </div>
  2181. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  2182. <div class="basic_box">
  2183. <div
  2184. style="
  2185. display: flex;
  2186. flex-direction: row;
  2187. align-items: center;
  2188. position: sticky;
  2189. top: 0;
  2190. background: #fff;
  2191. z-index: 99;
  2192. width: 100%;
  2193. padding: 0 20px 0 20px;
  2194. box-sizing: border-box;
  2195. "
  2196. >
  2197. <div class="cru_selectBox">
  2198. <div
  2199. v-for="(item, index) in unitJson"
  2200. :key="index"
  2201. class="cru_select"
  2202. :class="unitIndex == index ? 'cru_selected' : ''"
  2203. @click="unitSet(index)"
  2204. >
  2205. <!-- item.dyName ? item.dyName : -->
  2206. {{ "第" + (index + 1) + "阶段" }}
  2207. </div>
  2208. <img
  2209. src="../../../assets/line.png"
  2210. class="cru_line"
  2211. :style="{
  2212. left: offsetLetfPx + 'px',
  2213. }"
  2214. />
  2215. </div>
  2216. <div
  2217. class="addStageImg"
  2218. @click="addunit()"
  2219. v-if="
  2220. !(unitJson[unitJson.length - 1].easy == 4) &&
  2221. !(unitJson[unitJson.length - 1].easy == 6)
  2222. "
  2223. >
  2224. <img src="../../../assets/icon/add.png" alt />
  2225. </div>
  2226. </div>
  2227. <div
  2228. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  2229. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  2230. :key="index"
  2231. >
  2232. <div>
  2233. <div class="chapter_contentbox">
  2234. <div>第{{ unitIndex + 1 }}阶段</div>
  2235. <div>
  2236. <input
  2237. type="text"
  2238. placeholder="阶段标题"
  2239. class="binfo_input"
  2240. v-model="unitJson[unitIndex].dyName"
  2241. />
  2242. </div>
  2243. <div
  2244. v-if="
  2245. unitJson.length > 1 &&
  2246. !(unitJson[unitJson.length - 1].easy == 4) &&
  2247. !(unitJson[unitJson.length - 1].easy == 6)
  2248. "
  2249. @click="deleteUnit(unitIndex)"
  2250. ></div>
  2251. </div>
  2252. </div>
  2253. <div
  2254. v-if="!unitJson[unitIndex].easy"
  2255. style="
  2256. margin: 50px 0px 10px;
  2257. font-size: 1.5em;
  2258. font-weight: 700;
  2259. color: #0f7eff;
  2260. "
  2261. >
  2262. 添加任务
  2263. </div>
  2264. <div
  2265. class="taskBorder"
  2266. :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  2267. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  2268. :key="itemTaskIndex"
  2269. >
  2270. <div v-if="unitJson[unitIndex].easy != 1">
  2271. <div
  2272. :style="{
  2273. marginBottom:
  2274. unitJson[unitIndex].easy == 3 ||
  2275. (unitJson[unitIndex].easy == 5 &&
  2276. itemTask.taskType == 1)
  2277. ? '75px'
  2278. : '0',
  2279. }"
  2280. >
  2281. <div
  2282. style="font-size: 22px; color: #8e8e8e"
  2283. :id="'task' + itemTaskIndex"
  2284. >
  2285. 任务{{ itemTaskIndex + 1 }}
  2286. </div>
  2287. <div
  2288. class="chapter_contentbox"
  2289. style="
  2290. flex-direction: row;
  2291. justify-content: flex-start;
  2292. align-items: center;
  2293. "
  2294. >
  2295. <div
  2296. style="
  2297. border-left: 6px solid #5699e8;
  2298. height: 20px;
  2299. padding-left: 10px;
  2300. line-height: 22px;
  2301. "
  2302. >
  2303. 任务名称
  2304. </div>
  2305. <div>
  2306. <input
  2307. type="text"
  2308. placeholder="输入任务名称"
  2309. class="binfo_input"
  2310. style="border-radius: 4px"
  2311. v-model="
  2312. unitJson[unitIndex].chapterInfo[0].taskJson[
  2313. itemTaskIndex
  2314. ].task
  2315. "
  2316. />
  2317. </div>
  2318. <div
  2319. class="remove"
  2320. v-if="
  2321. item.taskJson.length > 1 &&
  2322. (!unitJson[unitIndex].easy ||
  2323. unitJson[unitIndex].easy == 6)
  2324. "
  2325. @click="deleteTask(itemTaskIndex)"
  2326. style="position: absolute; right: 55px"
  2327. ></div>
  2328. </div>
  2329. <div
  2330. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2331. style="
  2332. display: flex;
  2333. margin: 0 0 20px 0;
  2334. flex-direction: row;
  2335. justify-content: flex-start;
  2336. align-items: center;
  2337. width: 70.5% !important;
  2338. padding-top: 30px;
  2339. "
  2340. >
  2341. <div class="lineTitle">任务描述</div>
  2342. </div>
  2343. <div
  2344. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2345. >
  2346. <editor-bar
  2347. style="width: 90% !important; margin: 0"
  2348. placeholder="请输入任务描述"
  2349. v-model="
  2350. unitJson[unitIndex].chapterInfo[0].taskJson[
  2351. itemTaskIndex
  2352. ].taskDetail
  2353. "
  2354. @change="change"
  2355. ></editor-bar>
  2356. <!-- <textarea
  2357. rows="6"
  2358. class="binfo_input"
  2359. placeholder="请输入任务描述"
  2360. cols
  2361. style="width: 70.5% !important; height: 120px"
  2362. v-model="
  2363. unitJson[unitIndex].chapterInfo[0].taskJson[
  2364. itemTaskIndex
  2365. ].taskDetail
  2366. "
  2367. ></textarea>-->
  2368. </div>
  2369. </div>
  2370. </div>
  2371. <div
  2372. v-if="
  2373. !unitJson[unitIndex].easy ||
  2374. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2375. "
  2376. class="basic_box"
  2377. style="
  2378. margin: 0;
  2379. min-height: 0;
  2380. width: 90% !important;
  2381. padding-top: 10px !important;
  2382. "
  2383. >
  2384. <div
  2385. style="
  2386. display: flex;
  2387. margin: 0 0 20px 0;
  2388. flex-direction: row;
  2389. justify-content: flex-start;
  2390. align-items: center;
  2391. "
  2392. >
  2393. <div class="lineTitle">学习内容</div>
  2394. </div>
  2395. <div>
  2396. <div
  2397. class="add_chapters_box"
  2398. v-if="
  2399. itemTask.chapterData &&
  2400. itemTask.chapterData.length == 0
  2401. "
  2402. style="height: 185px"
  2403. ></div>
  2404. <div
  2405. v-else
  2406. class="add_chapters_box"
  2407. style="display: flex; flex-direction: column"
  2408. >
  2409. <div
  2410. class="chapter_upload"
  2411. v-for="(item1, index1) in itemTask.chapterData"
  2412. :key="item1.id"
  2413. @click="
  2414. getChapterData(
  2415. $event,
  2416. unitIndex,
  2417. index,
  2418. index1,
  2419. item1.type
  2420. )
  2421. "
  2422. >
  2423. <div
  2424. class="chapter_upload_t"
  2425. style="width: 100%"
  2426. ></div>
  2427. <div
  2428. class="chapter_upload_o"
  2429. style="
  2430. position: relative;
  2431. display: flex;
  2432. align-items: center;
  2433. "
  2434. >
  2435. <div
  2436. class="chapter_upload_l"
  2437. style="padding: 1px 0 0 10px"
  2438. >
  2439. <div
  2440. v-if="item1.type == 2"
  2441. class="chapter_upload_l_i1"
  2442. ></div>
  2443. <div
  2444. v-if="
  2445. item1.type == 3 ||
  2446. item1.type == 12 ||
  2447. item1.type == 13 ||
  2448. item1.type == 6 ||
  2449. item1.type == 7
  2450. "
  2451. class="chapter_upload_l_i5"
  2452. style="margin-left: 1px"
  2453. ></div>
  2454. <div
  2455. v-if="item1.type == 8"
  2456. class="chapter_upload_l_i8"
  2457. style="margin-left: 1px"
  2458. ></div>
  2459. </div>
  2460. <div
  2461. class="chapter_upload_ic"
  2462. style="
  2463. cursor: pointer;
  2464. position: absolute;
  2465. width: 45px;
  2466. right: 0;
  2467. top: 0;
  2468. "
  2469. >
  2470. <div class="chapter_upload_ic_l"></div>
  2471. <div
  2472. class="chapter_upload_ic_r"
  2473. style="position: absolute"
  2474. @click.stop="
  2475. deleteChapterData(
  2476. $event,
  2477. unitIndex,
  2478. index,
  2479. index1,
  2480. itemTaskIndex
  2481. )
  2482. "
  2483. >
  2484. <div></div>
  2485. </div>
  2486. </div>
  2487. <div class="chapter_upload_n">
  2488. <input
  2489. v-if="
  2490. item1.type == 2 ||
  2491. item1.type == 3 ||
  2492. item1.type == 12 ||
  2493. item1.type == 13 ||
  2494. item1.type == 7
  2495. "
  2496. :placeholder="item1.name"
  2497. @change="
  2498. updataVideoT(
  2499. $event,
  2500. unitIndex,
  2501. chapterIndex,
  2502. index1
  2503. )
  2504. "
  2505. style="
  2506. border: none;
  2507. outline: none;
  2508. width: 80%;
  2509. minwidth: 215px;
  2510. z-index: 99;
  2511. font-size: 14px;
  2512. white-space: nowrap;
  2513. overflow: hidden;
  2514. text-overflow: ellipsis;
  2515. "
  2516. />
  2517. <input
  2518. :placeholder="item1.name"
  2519. v-if="item1.type == 6"
  2520. style="
  2521. border: none;
  2522. outline: none;
  2523. width: 80%;
  2524. white-space: nowrap;
  2525. overflow: hidden;
  2526. text-overflow: ellipsis;
  2527. "
  2528. readonly="true"
  2529. @click="selectAttText(itemTaskIndex, index1)"
  2530. />
  2531. <input
  2532. :placeholder="
  2533. item1.title ? item1.title : '链接'
  2534. "
  2535. v-if="item1.type == 8"
  2536. style="
  2537. border: none;
  2538. outline: none;
  2539. width: 80%;
  2540. white-space: nowrap;
  2541. overflow: hidden;
  2542. text-overflow: ellipsis;
  2543. "
  2544. readonly="true"
  2545. @click="selectLine(itemTaskIndex, index1)"
  2546. />
  2547. <div
  2548. class="chapter_upload_ud"
  2549. style="z-index: 99"
  2550. >
  2551. <div
  2552. class="chapter_upload_up"
  2553. @click="
  2554. upCd(
  2555. $event,
  2556. unitIndex,
  2557. index,
  2558. itemTaskIndex,
  2559. index1
  2560. )
  2561. "
  2562. ></div>
  2563. <div
  2564. class="chapter_upload_down"
  2565. @click="
  2566. downCd(
  2567. $event,
  2568. unitIndex,
  2569. index,
  2570. itemTaskIndex,
  2571. index1
  2572. )
  2573. "
  2574. ></div>
  2575. </div>
  2576. </div>
  2577. </div>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. <div class="add_info_box">
  2582. <button class="info_btn" @click="addImg($event)">
  2583. 添加文件
  2584. <input
  2585. type="file"
  2586. accept="*"
  2587. style="display: none"
  2588. v-if="inputShow"
  2589. @change="
  2590. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2591. "
  2592. />
  2593. </button>
  2594. <!-- <button class="info_btn" @click="addImg($event)">
  2595. 添加视频
  2596. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2597. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2598. " />
  2599. </button>
  2600. <button class="info_btn" @click="addImg($event)">
  2601. 添加文档
  2602. <input type="file"
  2603. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2604. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2605. " />
  2606. </button> -->
  2607. <button
  2608. class="info_btn"
  2609. @click="addAttText(itemTaskIndex)"
  2610. >
  2611. 添加图文
  2612. </button>
  2613. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2614. 添加链接
  2615. </button>
  2616. <button
  2617. class="info_btn"
  2618. @click="pasteLine(itemTaskIndex)"
  2619. >
  2620. 嵌入代码
  2621. </button>
  2622. <button
  2623. class="info_btn"
  2624. @click="openSource(itemTaskIndex)"
  2625. >
  2626. 添加资源
  2627. </button>
  2628. <!-- <button class="info_btn" @click="addImg($event)">
  2629. 其他附件
  2630. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2631. " />
  2632. </button> -->
  2633. </div>
  2634. <div
  2635. v-if="
  2636. unitJson[unitIndex].chapterInfo[0].taskJson[
  2637. itemTaskIndex
  2638. ].proVisible
  2639. "
  2640. class="mask"
  2641. >
  2642. <div class="progressBox">
  2643. <!-- <div id="closePro" class="closeCss">
  2644. <img src="../../../../assets/icon/close.png" alt />
  2645. </div> -->
  2646. <div class="lbox">
  2647. <img
  2648. src="../../../assets/loading.gif"
  2649. />上传中,请稍后
  2650. </div>
  2651. <div style="margin-bottom: 10px">
  2652. <span
  2653. >{{
  2654. unitJson[unitIndex].chapterInfo[0].taskJson[
  2655. itemTaskIndex
  2656. ].isFinishSize
  2657. }}M</span
  2658. >
  2659. /
  2660. <span
  2661. >{{
  2662. unitJson[unitIndex].chapterInfo[0].taskJson[
  2663. itemTaskIndex
  2664. ].isAllSize
  2665. }}M</span
  2666. >
  2667. </div>
  2668. <el-progress
  2669. :text-inside="true"
  2670. :stroke-width="20"
  2671. :percentage="
  2672. unitJson[unitIndex].chapterInfo[0].taskJson[
  2673. itemTaskIndex
  2674. ].progress
  2675. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2676. itemTaskIndex
  2677. ].progress
  2678. : 0
  2679. "
  2680. style="width: 80%"
  2681. ></el-progress>
  2682. </div>
  2683. </div>
  2684. </div>
  2685. <div
  2686. v-if="
  2687. unitJson[unitIndex].easy == 1 ||
  2688. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2689. "
  2690. class="basic_box"
  2691. style="
  2692. margin: 0 auto;
  2693. min-height: 0;
  2694. width: 95% !important;
  2695. padding: 20px 10px 10px;
  2696. "
  2697. >
  2698. <div>
  2699. <div
  2700. class="add_chapters_box"
  2701. v-if="
  2702. itemTask.chapterData &&
  2703. itemTask.chapterData.length == 0
  2704. "
  2705. style="height: 185px"
  2706. ></div>
  2707. <div
  2708. v-else
  2709. class="add_chapters_box"
  2710. style="display: flex; flex-direction: column"
  2711. >
  2712. <div
  2713. v-for="(item1, index1) in itemTask.chapterData"
  2714. :key="item1.id"
  2715. >
  2716. <div
  2717. class="chapter_upload"
  2718. @click="
  2719. getChapterData(
  2720. $event,
  2721. unitIndex,
  2722. index,
  2723. index1,
  2724. item1.type
  2725. )
  2726. "
  2727. >
  2728. <div
  2729. class="chapter_upload_t"
  2730. style="width: 100%"
  2731. ></div>
  2732. <div
  2733. class="chapter_upload_o"
  2734. style="
  2735. position: relative;
  2736. display: flex;
  2737. align-items: center;
  2738. "
  2739. >
  2740. <div
  2741. class="chapter_upload_l"
  2742. style="padding: 1px 0 0 10px"
  2743. >
  2744. <div
  2745. v-if="item1.type == 2"
  2746. class="chapter_upload_l_i1"
  2747. ></div>
  2748. <div
  2749. v-if="
  2750. item1.type == 3 ||
  2751. item1.type == 6 ||
  2752. item1.type == 7
  2753. "
  2754. class="chapter_upload_l_i5"
  2755. style="margin-left: 1px"
  2756. ></div>
  2757. <div
  2758. v-if="item1.type == 8"
  2759. class="chapter_upload_l_i8"
  2760. style="margin-left: 1px"
  2761. ></div>
  2762. </div>
  2763. <div
  2764. class="chapter_upload_ic"
  2765. style="
  2766. cursor: pointer;
  2767. position: absolute;
  2768. width: 45px;
  2769. right: 0;
  2770. top: 0;
  2771. "
  2772. >
  2773. <div class="chapter_upload_ic_l"></div>
  2774. <div
  2775. class="chapter_upload_ic_r"
  2776. style="position: absolute"
  2777. @click.stop="
  2778. deleteChapterData(
  2779. $event,
  2780. unitIndex,
  2781. index,
  2782. index1,
  2783. itemTaskIndex
  2784. )
  2785. "
  2786. >
  2787. <div></div>
  2788. </div>
  2789. </div>
  2790. <div class="chapter_upload_n">
  2791. <span
  2792. style="
  2793. font-size: 14px;
  2794. color: rgb(109, 109, 109);
  2795. height: 14px;
  2796. line-height: 12px;
  2797. "
  2798. v-if="
  2799. item1.type == 2 ||
  2800. item1.type == 3 ||
  2801. item1.type == 7
  2802. "
  2803. >{{ item1.text }}-</span
  2804. >
  2805. <input
  2806. v-if="
  2807. item1.type == 2 ||
  2808. item1.type == 3 ||
  2809. item1.type == 7
  2810. "
  2811. :placeholder="item1.name"
  2812. @change="
  2813. updataVideoT(
  2814. $event,
  2815. unitIndex,
  2816. chapterIndex,
  2817. index1
  2818. )
  2819. "
  2820. style="
  2821. border: none;
  2822. outline: none;
  2823. width: 80%;
  2824. minwidth: 215px;
  2825. z-index: 99;
  2826. font-size: 14px;
  2827. white-space: nowrap;
  2828. overflow: hidden;
  2829. text-overflow: ellipsis;
  2830. "
  2831. />
  2832. <input
  2833. :placeholder="item1.name"
  2834. v-if="item1.type == 6"
  2835. style="
  2836. border: none;
  2837. outline: none;
  2838. width: 80%;
  2839. white-space: nowrap;
  2840. overflow: hidden;
  2841. text-overflow: ellipsis;
  2842. "
  2843. readonly="true"
  2844. @click="selectAttText(itemTaskIndex, index1)"
  2845. />
  2846. <input
  2847. :placeholder="
  2848. item1.title ? item1.title : '链接'
  2849. "
  2850. v-if="item1.type == 8"
  2851. style="
  2852. border: none;
  2853. outline: none;
  2854. width: 80%;
  2855. white-space: nowrap;
  2856. overflow: hidden;
  2857. text-overflow: ellipsis;
  2858. "
  2859. readonly="true"
  2860. @click="selectLine(itemTaskIndex, index1)"
  2861. />
  2862. <div
  2863. class="chapter_upload_ud"
  2864. style="z-index: 99"
  2865. >
  2866. <div
  2867. class="chapter_upload_up"
  2868. @click="
  2869. upCd(
  2870. $event,
  2871. unitIndex,
  2872. index,
  2873. itemTaskIndex,
  2874. index1
  2875. )
  2876. "
  2877. ></div>
  2878. <div
  2879. class="chapter_upload_down"
  2880. @click="
  2881. downCd(
  2882. $event,
  2883. unitIndex,
  2884. index,
  2885. itemTaskIndex,
  2886. index1
  2887. )
  2888. "
  2889. ></div>
  2890. </div>
  2891. </div>
  2892. </div>
  2893. </div>
  2894. </div>
  2895. </div>
  2896. </div>
  2897. <div class="add_info_box" style="margin: 10px 0 0">
  2898. <button class="info_btn" @click="addImg($event)">
  2899. <span style="color: red">*</span>
  2900. 教学设计
  2901. <input
  2902. type="file"
  2903. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2904. style="display: none"
  2905. v-if="inputShow"
  2906. @change="
  2907. beforeUpload3(
  2908. $event,
  2909. unitIndex,
  2910. 3,
  2911. itemTaskIndex,
  2912. '教学设计'
  2913. )
  2914. "
  2915. />
  2916. </button>
  2917. <button class="info_btn" @click="addImg($event)">
  2918. <span style="color: red">*</span>
  2919. 教学课件
  2920. <input
  2921. type="file"
  2922. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2923. style="display: none"
  2924. v-if="inputShow"
  2925. @change="
  2926. beforeUpload3(
  2927. $event,
  2928. unitIndex,
  2929. 3,
  2930. itemTaskIndex,
  2931. '教学课件'
  2932. )
  2933. "
  2934. />
  2935. </button>
  2936. <button class="info_btn" @click="addImg($event)">
  2937. 教学视频
  2938. <input
  2939. type="file"
  2940. accept="video/mp4, video/quicktime, video/x-msvideo"
  2941. style="display: none"
  2942. v-if="inputShow"
  2943. @change="
  2944. beforeUpload3(
  2945. $event,
  2946. unitIndex,
  2947. 2,
  2948. itemTaskIndex,
  2949. '教学视频'
  2950. )
  2951. "
  2952. />
  2953. </button>
  2954. <button class="info_btn" @click="addImg($event)">
  2955. 教学音频
  2956. <input
  2957. type="file"
  2958. accept="audio/*"
  2959. style="display: none"
  2960. v-if="inputShow"
  2961. @change="
  2962. beforeUpload3(
  2963. $event,
  2964. unitIndex,
  2965. 2,
  2966. itemTaskIndex,
  2967. '教学音频'
  2968. )
  2969. "
  2970. />
  2971. </button>
  2972. <button class="info_btn" @click="addImg($event)">
  2973. 学习单
  2974. <input
  2975. type="file"
  2976. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2977. style="display: none"
  2978. v-if="inputShow"
  2979. @change="
  2980. beforeUpload3(
  2981. $event,
  2982. unitIndex,
  2983. 3,
  2984. itemTaskIndex,
  2985. '学习单'
  2986. )
  2987. "
  2988. />
  2989. </button>
  2990. </div>
  2991. <div
  2992. v-if="
  2993. unitJson[unitIndex].chapterInfo[0].taskJson[
  2994. itemTaskIndex
  2995. ].proVisible
  2996. "
  2997. class="mask"
  2998. >
  2999. <div class="progressBox">
  3000. <!-- <div id="closePro" class="closeCss">
  3001. <img src="../../../../assets/icon/close.png" alt />
  3002. </div> -->
  3003. <div class="lbox">
  3004. <img
  3005. src="../../../assets/loading.gif"
  3006. />上传中,请稍后
  3007. </div>
  3008. <div style="margin-bottom: 10px">
  3009. <span
  3010. >{{
  3011. unitJson[unitIndex].chapterInfo[0].taskJson[
  3012. itemTaskIndex
  3013. ].isFinishSize
  3014. }}M</span
  3015. >
  3016. /
  3017. <span
  3018. >{{
  3019. unitJson[unitIndex].chapterInfo[0].taskJson[
  3020. itemTaskIndex
  3021. ].isAllSize
  3022. }}M</span
  3023. >
  3024. </div>
  3025. <el-progress
  3026. :text-inside="true"
  3027. :stroke-width="20"
  3028. :percentage="
  3029. unitJson[unitIndex].chapterInfo[0].taskJson[
  3030. itemTaskIndex
  3031. ].progress
  3032. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  3033. itemTaskIndex
  3034. ].progress
  3035. : 0
  3036. "
  3037. style="width: 80%"
  3038. ></el-progress>
  3039. </div>
  3040. </div>
  3041. </div>
  3042. <div
  3043. v-if="
  3044. unitJson[unitIndex].easy != 3 &&
  3045. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  3046. "
  3047. style="
  3048. flex-direction: row;
  3049. justify-content: flex-start;
  3050. align-items: center;
  3051. padding: 0 0 0 30px;
  3052. paddint-top: 10px !important;
  3053. "
  3054. >
  3055. <div
  3056. style="
  3057. display: flex;
  3058. flex-direction: row;
  3059. align-items: center;
  3060. margin-bottom: 20px;
  3061. "
  3062. >
  3063. <div class="lineTitle">
  3064. {{
  3065. !unitJson[unitIndex].easy ||
  3066. unitJson[unitIndex].easy == 6 ||
  3067. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  3068. ? "练习内容"
  3069. : "评价内容"
  3070. }}
  3071. </div>
  3072. </div>
  3073. </div>
  3074. <div
  3075. v-if="
  3076. unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  3077. "
  3078. class="toolChoose"
  3079. style="padding: 0 0 0 30px"
  3080. >
  3081. <div class="tools">
  3082. <div
  3083. class="leftTools"
  3084. style="
  3085. width: 95%;
  3086. padding: 0 0 15px 0;
  3087. margin: 15px 0;
  3088. "
  3089. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3090. :key="toolIndex"
  3091. >
  3092. <div>
  3093. <textarea
  3094. rows="3"
  3095. type="text"
  3096. placeholder="添加工具描述"
  3097. class="binfo_input"
  3098. style="margin: 0 0 20px 0; width: 71.5% !important"
  3099. v-model="itemTool.toolDetail"
  3100. ></textarea>
  3101. </div>
  3102. <div
  3103. style="
  3104. display: flex;
  3105. flex-direction: row;
  3106. align-items: baseline;
  3107. flex-wrap: nowrap;
  3108. justify-content: flex-start;
  3109. position: relative;
  3110. "
  3111. >
  3112. <div style="margin-right: 20px; font-weight: bold">
  3113. 步骤 {{ toolIndex + 1 }} :
  3114. </div>
  3115. <div class="chooseWho">
  3116. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  3117. " @click="(itemTool.toolType = 0), $forceUpdate()">
  3118. 互动类
  3119. </div> -->
  3120. <div
  3121. :class="
  3122. itemTool.toolType == 1 ? 'isChooseActive' : ''
  3123. "
  3124. @click="(itemTool.toolType = 1), $forceUpdate()"
  3125. >
  3126. 思维类
  3127. </div>
  3128. <div
  3129. :class="
  3130. itemTool.toolType == 6 ? 'isChooseActive' : ''
  3131. "
  3132. @click="(itemTool.toolType = 6), $forceUpdate()"
  3133. >
  3134. 协作类
  3135. </div>
  3136. <div
  3137. :class="
  3138. itemTool.toolType == 2 ? 'isChooseActive' : ''
  3139. "
  3140. @click="(itemTool.toolType = 2), $forceUpdate()"
  3141. >
  3142. 测评类
  3143. </div>
  3144. <div
  3145. :class="
  3146. itemTool.toolType == 7 ? 'isChooseActive' : ''
  3147. "
  3148. @click="(itemTool.toolType = 7), $forceUpdate()"
  3149. >
  3150. 评价类
  3151. </div>
  3152. <div
  3153. :class="
  3154. itemTool.toolType == 3 ? 'isChooseActive' : ''
  3155. "
  3156. @click="(itemTool.toolType = 3), $forceUpdate()"
  3157. >
  3158. 学科类
  3159. </div>
  3160. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  3161. " @click="(itemTool.toolType = 5), $forceUpdate()">
  3162. 学科类
  3163. </div>
  3164. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  3165. " @click="(itemTool.toolType = 4), $forceUpdate()">
  3166. 其他
  3167. </div> -->
  3168. </div>
  3169. <div
  3170. class="remove"
  3171. @click="deleteTool(itemTaskIndex, toolIndex)"
  3172. v-if="itemTask.toolChoose.length > 1"
  3173. style="position: absolute; right: 55px"
  3174. ></div>
  3175. </div>
  3176. <div style="min-height: 163px">
  3177. <div class="toolSort" v-if="itemTool.toolType == 0">
  3178. <!-- <div class="tool">
  3179. <div
  3180. class="whiteBIcon"
  3181. @click="addTools(8, itemTaskIndex, toolIndex)"
  3182. >
  3183. <img src="../../../assets/icon/secondToolList/library.png" alt />
  3184. <div style="margin: 5px 0">素材库</div>
  3185. </div>
  3186. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  3187. <img
  3188. src="../../../assets/icon/checkNo.png"
  3189. alt
  3190. v-if="itemTool.tool.indexOf(8) == -1"
  3191. />
  3192. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  3193. alt /><span>已选择</span></div>
  3194. </div>
  3195. </div>-->
  3196. <!-- <div class="tool">
  3197. <div
  3198. class="whiteBIcon"
  3199. @click="addTools(17, itemTaskIndex, toolIndex)"
  3200. >
  3201. <img
  3202. src="../../../assets/icon/secondToolList/library.png"
  3203. alt
  3204. />
  3205. <div style="margin: 5px 0">学习资料</div>
  3206. </div>
  3207. <div
  3208. class="check"
  3209. @click="addTools(17, itemTaskIndex, toolIndex)"
  3210. >
  3211. <img
  3212. src="../../../assets/icon/checkNo.png"
  3213. alt
  3214. v-if="itemTool.tool.indexOf(17) == -1"
  3215. />
  3216. <img
  3217. src="../../../assets/icon/checkedIs.png"
  3218. alt
  3219. v-else
  3220. />
  3221. </div>10
  3222. </div> -->
  3223. <div class="tool">
  3224. <div
  3225. class="whiteBIcon"
  3226. @click="openTools(itemTaskIndex, 10, toolIndex)"
  3227. >
  3228. <img
  3229. src="../../../assets/icon/thirdToolList/time.png"
  3230. alt
  3231. />
  3232. <div style="margin: 5px 0">倒计时</div>
  3233. </div>
  3234. <div
  3235. class="check"
  3236. @click="addTools(10, itemTaskIndex, toolIndex)"
  3237. >
  3238. <img
  3239. src="../../../assets/icon/checkNo.png"
  3240. alt
  3241. v-if="itemTool.tool.indexOf(10) == -1"
  3242. />
  3243. <div class="checkDiv" v-else>
  3244. <img
  3245. src="../../../assets/icon/checkedIs.png"
  3246. alt
  3247. /><span>已选择</span>
  3248. </div>
  3249. </div>
  3250. </div>
  3251. <!-- <div class="tool">
  3252. <div
  3253. class="whiteBIcon"
  3254. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3255. >
  3256. <img
  3257. src="../../../assets/icon/fourthToolList/group.png"
  3258. alt
  3259. />
  3260. <div style="margin: 5px 0">学生分组</div>
  3261. </div>
  3262. <div
  3263. class="check"
  3264. @click="addTools(49, itemTaskIndex, toolIndex)"
  3265. >
  3266. <img
  3267. src="../../../assets/icon/checkNo.png"
  3268. alt
  3269. v-if="itemTool.tool.indexOf(49) == -1"
  3270. />
  3271. <div class="checkDiv" v-else>
  3272. <img
  3273. src="../../../assets/icon/checkedIs.png"
  3274. alt
  3275. /><span>已选择</span>
  3276. </div>
  3277. </div>
  3278. </div> -->
  3279. <div class="tool">
  3280. <div
  3281. class="whiteBIcon"
  3282. @click="openTools(itemTaskIndex, 62, toolIndex)"
  3283. >
  3284. <img
  3285. src="../../../assets/icon/fourthToolList/interVideo.png"
  3286. alt
  3287. />
  3288. <div style="margin: 5px 0">交互视频</div>
  3289. </div>
  3290. <div
  3291. class="check"
  3292. @click="addTools(62, itemTaskIndex, toolIndex)"
  3293. >
  3294. <img
  3295. src="../../../assets/icon/checkNo.png"
  3296. alt
  3297. v-if="itemTool.tool.indexOf(62) == -1"
  3298. />
  3299. <div class="checkDiv" v-else>
  3300. <img
  3301. src="../../../assets/icon/checkedIs.png"
  3302. alt
  3303. /><span>已选择</span>
  3304. </div>
  3305. </div>
  3306. </div>
  3307. </div>
  3308. <div class="toolSort" v-if="itemTool.toolType == 1">
  3309. <div class="tool">
  3310. <div
  3311. class="whiteBIcon"
  3312. @click="addTools(7, itemTaskIndex, toolIndex)"
  3313. >
  3314. <img
  3315. src="../../../assets/icon/secondToolList/mindNetwork.png"
  3316. alt
  3317. />
  3318. <div style="margin: 5px 0">思维网格</div>
  3319. </div>
  3320. <div
  3321. class="check"
  3322. @click="addTools(7, itemTaskIndex, toolIndex)"
  3323. >
  3324. <img
  3325. src="../../../assets/icon/checkNo.png"
  3326. alt
  3327. v-if="itemTool.tool.indexOf(7) == -1"
  3328. />
  3329. <div class="checkDiv" v-else>
  3330. <img
  3331. src="../../../assets/icon/checkedIs.png"
  3332. alt
  3333. /><span>已选择</span>
  3334. </div>
  3335. </div>
  3336. </div>
  3337. <div class="tool">
  3338. <div
  3339. class="whiteBIcon"
  3340. @click="openTools(itemTaskIndex, 1, toolIndex)"
  3341. >
  3342. <img
  3343. src="../../../assets/icon/secondToolList/whiteBoard.png"
  3344. alt
  3345. />
  3346. <div style="margin: 5px 0">电子白板</div>
  3347. </div>
  3348. <div
  3349. class="check"
  3350. @click="addTools(1, itemTaskIndex, toolIndex)"
  3351. >
  3352. <img
  3353. src="../../../assets/icon/checkNo.png"
  3354. alt
  3355. v-if="itemTool.tool.indexOf(1) == -1"
  3356. />
  3357. <div class="checkDiv" v-else>
  3358. <img
  3359. src="../../../assets/icon/checkedIs.png"
  3360. alt
  3361. /><span>已选择</span>
  3362. </div>
  3363. </div>
  3364. </div>
  3365. <!-- <div class="tool">
  3366. <div
  3367. class="whiteBIcon"
  3368. @click="addTools(2, itemTaskIndex, toolIndex)"
  3369. >
  3370. <img
  3371. src="../../../assets/icon/secondToolList/note.png"
  3372. alt
  3373. />
  3374. <div style="margin: 5px 0">便签</div>
  3375. </div>
  3376. <div
  3377. class="check"
  3378. @click="addTools(2, itemTaskIndex, toolIndex)"
  3379. >
  3380. <img
  3381. src="../../../assets/icon/checkNo.png"
  3382. alt
  3383. v-if="itemTool.tool.indexOf(2) == -1"
  3384. />
  3385. <div class="checkDiv" v-else>
  3386. <img
  3387. src="../../../assets/icon/checkedIs.png"
  3388. alt
  3389. /><span>已选择</span>
  3390. </div>
  3391. </div>
  3392. </div> -->
  3393. <!-- <div class="tool">
  3394. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  3395. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  3396. <div style="margin: 5px 0">协同文档</div>
  3397. </div>
  3398. <div
  3399. class="check"
  3400. @click="addTools(6, itemTaskIndex, toolIndex)"
  3401. >
  3402. <img
  3403. src="../../../assets/icon/checkNo.png"
  3404. alt
  3405. v-if="itemTool.tool.indexOf(6) == -1"
  3406. />
  3407. <div class="checkDiv" v-else>
  3408. <img
  3409. src="../../../assets/icon/checkedIs.png"
  3410. alt
  3411. /><span>已选择</span>
  3412. </div>
  3413. </div>
  3414. </div> -->
  3415. <div class="tool">
  3416. <div
  3417. class="whiteBIcon"
  3418. @click="openTools(itemTaskIndex, 52, toolIndex)"
  3419. >
  3420. <img
  3421. src="../../../assets/icon/fourthToolList/text.png"
  3422. alt
  3423. />
  3424. <div style="margin: 5px 0">文档</div>
  3425. </div>
  3426. <div
  3427. class="check"
  3428. @click="addTools(52, itemTaskIndex, toolIndex)"
  3429. >
  3430. <img
  3431. src="../../../assets/icon/checkNo.png"
  3432. alt
  3433. v-if="itemTool.tool.indexOf(52) == -1"
  3434. />
  3435. <div class="checkDiv" v-else>
  3436. <img
  3437. src="../../../assets/icon/checkedIs.png"
  3438. alt
  3439. /><span>已选择</span>
  3440. </div>
  3441. </div>
  3442. </div>
  3443. <div class="tool">
  3444. <div
  3445. class="whiteBIcon"
  3446. @click="openTools(itemTaskIndex, 3, toolIndex)"
  3447. >
  3448. <img
  3449. src="../../../assets/icon/secondToolList/mindMapping.png"
  3450. alt
  3451. />
  3452. <div style="margin: 5px 0">思维导图</div>
  3453. </div>
  3454. <div
  3455. class="check"
  3456. @click="addTools(3, itemTaskIndex, toolIndex)"
  3457. >
  3458. <img
  3459. src="../../../assets/icon/checkNo.png"
  3460. alt
  3461. v-if="itemTool.tool.indexOf(3) == -1"
  3462. />
  3463. <div class="checkDiv" v-else>
  3464. <img
  3465. src="../../../assets/icon/checkedIs.png"
  3466. alt
  3467. /><span>已选择</span>
  3468. </div>
  3469. </div>
  3470. </div>
  3471. <div class="tool">
  3472. <div
  3473. class="whiteBIcon"
  3474. @click="openTools(itemTaskIndex, 48, toolIndex)"
  3475. >
  3476. <img
  3477. src="../../../assets/icon/fourthToolList/table.png"
  3478. alt
  3479. />
  3480. <div style="margin: 5px 0">表格</div>
  3481. </div>
  3482. <div
  3483. class="check"
  3484. @click="addTools(48, itemTaskIndex, toolIndex)"
  3485. >
  3486. <img
  3487. src="../../../assets/icon/checkNo.png"
  3488. alt
  3489. v-if="itemTool.tool.indexOf(48) == -1"
  3490. />
  3491. <div class="checkDiv" v-else>
  3492. <img
  3493. src="../../../assets/icon/checkedIs.png"
  3494. alt
  3495. /><span>已选择</span>
  3496. </div>
  3497. </div>
  3498. </div>
  3499. </div>
  3500. <div class="toolSort" v-if="itemTool.toolType == 6">
  3501. <div class="tool">
  3502. <div
  3503. class="whiteBIcon"
  3504. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3505. >
  3506. <img
  3507. src="../../../assets/icon/fourthToolList/group.png"
  3508. alt
  3509. />
  3510. <div style="margin: 5px 0">学生分组</div>
  3511. </div>
  3512. <div
  3513. class="check"
  3514. @click="addTools(49, itemTaskIndex, toolIndex)"
  3515. >
  3516. <img
  3517. src="../../../assets/icon/checkNo.png"
  3518. alt
  3519. v-if="itemTool.tool.indexOf(49) == -1"
  3520. />
  3521. <div class="checkDiv" v-else>
  3522. <img
  3523. src="../../../assets/icon/checkedIs.png"
  3524. alt
  3525. /><span>已选择</span>
  3526. </div>
  3527. </div>
  3528. </div>
  3529. </div>
  3530. <div class="toolSort" v-if="itemTool.toolType == 2">
  3531. <!-- <div class="tool">
  3532. <div
  3533. class="whiteBIcon"
  3534. @click="addTools(5, itemTaskIndex, toolIndex)"
  3535. >
  3536. <img
  3537. src="../../../assets/icon/thirdToolList/score.png"
  3538. alt
  3539. />
  3540. <div style="margin: 5px 0">量规评分</div>
  3541. </div>
  3542. <div
  3543. class="check"
  3544. @click="addTools(5, itemTaskIndex, toolIndex)"
  3545. >
  3546. <img
  3547. src="../../../assets/icon/checkNo.png"
  3548. alt
  3549. v-if="itemTool.tool.indexOf(5) == -1"
  3550. />
  3551. <img
  3552. src="../../../assets/icon/checkedIs.png"
  3553. alt
  3554. v-else
  3555. />
  3556. </div>
  3557. </div>-->
  3558. <div class="tool">
  3559. <div
  3560. class="whiteBIcon"
  3561. @click="openTools(itemTaskIndex, 4, toolIndex)"
  3562. >
  3563. <img
  3564. src="../../../assets/icon/thirdToolList/ask.png"
  3565. alt
  3566. />
  3567. <div style="margin: 5px 0">问卷调查</div>
  3568. </div>
  3569. <div
  3570. class="check"
  3571. @click="addTools(4, itemTaskIndex, toolIndex)"
  3572. >
  3573. <img
  3574. src="../../../assets/icon/checkNo.png"
  3575. alt
  3576. v-if="itemTool.tool.indexOf(4) == -1"
  3577. />
  3578. <div class="checkDiv" v-else>
  3579. <img
  3580. src="../../../assets/icon/checkedIs.png"
  3581. alt
  3582. /><span>已选择</span>
  3583. </div>
  3584. </div>
  3585. </div>
  3586. <div class="tool">
  3587. <div
  3588. class="whiteBIcon"
  3589. @click="openTools(itemTaskIndex, 45, toolIndex)"
  3590. >
  3591. <img
  3592. src="../../../assets/icon/thirdToolList/choose.png"
  3593. alt
  3594. />
  3595. <div style="margin: 5px 0">选择题</div>
  3596. </div>
  3597. <div
  3598. class="check"
  3599. @click="addTools(45, itemTaskIndex, toolIndex)"
  3600. >
  3601. <img
  3602. src="../../../assets/icon/checkNo.png"
  3603. alt
  3604. v-if="itemTool.tool.indexOf(45) == -1"
  3605. />
  3606. <div class="checkDiv" v-else>
  3607. <img
  3608. src="../../../assets/icon/checkedIs.png"
  3609. alt
  3610. /><span>已选择</span>
  3611. </div>
  3612. </div>
  3613. </div>
  3614. <div class="tool">
  3615. <div
  3616. class="whiteBIcon"
  3617. @click="openTools(itemTaskIndex, 15, toolIndex)"
  3618. >
  3619. <img
  3620. src="../../../assets/icon/thirdToolList/answer.png"
  3621. alt
  3622. />
  3623. <div style="margin: 5px 0">问答工具</div>
  3624. </div>
  3625. <div
  3626. class="check"
  3627. @click="addTools(15, itemTaskIndex, toolIndex)"
  3628. >
  3629. <img
  3630. src="../../../assets/icon/checkNo.png"
  3631. alt
  3632. v-if="itemTool.tool.indexOf(15) == -1"
  3633. />
  3634. <div class="checkDiv" v-else>
  3635. <img
  3636. src="../../../assets/icon/checkedIs.png"
  3637. alt
  3638. /><span>已选择</span>
  3639. </div>
  3640. </div>
  3641. </div>
  3642. <div class="tool">
  3643. <div
  3644. class="whiteBIcon"
  3645. @click="addTools(16, itemTaskIndex, toolIndex)"
  3646. >
  3647. <img
  3648. src="../../../assets/icon/thirdToolList/work.png"
  3649. alt
  3650. />
  3651. <div style="margin: 5px 0">作业提交</div>
  3652. </div>
  3653. <div
  3654. class="check"
  3655. @click="addTools(16, itemTaskIndex, toolIndex)"
  3656. >
  3657. <img
  3658. src="../../../assets/icon/checkNo.png"
  3659. alt
  3660. v-if="itemTool.tool.indexOf(16) == -1"
  3661. />
  3662. <div class="checkDiv" v-else>
  3663. <img
  3664. src="../../../assets/icon/checkedIs.png"
  3665. alt
  3666. /><span>已选择</span>
  3667. </div>
  3668. </div>
  3669. </div>
  3670. <div class="tool">
  3671. <div
  3672. class="whiteBIcon"
  3673. @click="addTools(50, itemTaskIndex, toolIndex)"
  3674. >
  3675. <img
  3676. src="../../../assets/icon/thirdToolList/plwork.png"
  3677. alt
  3678. />
  3679. <div style="margin: 5px 0">批量上传</div>
  3680. </div>
  3681. <div
  3682. class="check"
  3683. @click="addTools(50, itemTaskIndex, toolIndex)"
  3684. >
  3685. <img
  3686. src="../../../assets/icon/checkNo.png"
  3687. alt
  3688. v-if="itemTool.tool.indexOf(50) == -1"
  3689. />
  3690. <div class="checkDiv" v-else>
  3691. <img
  3692. src="../../../assets/icon/checkedIs.png"
  3693. alt
  3694. /><span>已选择</span>
  3695. </div>
  3696. </div>
  3697. </div>
  3698. <!-- <div class="tool">
  3699. <div
  3700. class="whiteBIcon"
  3701. @click="openTools(itemTaskIndex, 40, toolIndex)"
  3702. >
  3703. <img
  3704. src="../../../assets/icon/thirdToolList/eval.png"
  3705. alt
  3706. />
  3707. <div style="margin: 5px 0">个人评价</div>
  3708. </div>
  3709. <div
  3710. class="check"
  3711. @click="addTools(40, itemTaskIndex, toolIndex)"
  3712. >
  3713. <img
  3714. src="../../../assets/icon/checkNo.png"
  3715. alt
  3716. v-if="itemTool.tool.indexOf(40) == -1"
  3717. />
  3718. <div class="checkDiv" v-else>
  3719. <img
  3720. src="../../../assets/icon/checkedIs.png"
  3721. alt
  3722. /><span>已选择</span>
  3723. </div>
  3724. </div>
  3725. </div> -->
  3726. <div class="tool">
  3727. <div
  3728. class="whiteBIcon"
  3729. @click="openTools(itemTaskIndex, 41, toolIndex)"
  3730. >
  3731. <img
  3732. src="../../../assets/icon/thirdToolList/select.png"
  3733. alt
  3734. />
  3735. <div style="margin: 5px 0">选择填空</div>
  3736. </div>
  3737. <div
  3738. class="check"
  3739. @click="addTools(41, itemTaskIndex, toolIndex)"
  3740. >
  3741. <img
  3742. src="../../../assets/icon/checkNo.png"
  3743. alt
  3744. v-if="itemTool.tool.indexOf(41) == -1"
  3745. />
  3746. <div class="checkDiv" v-else>
  3747. <img
  3748. src="../../../assets/icon/checkedIs.png"
  3749. alt
  3750. /><span>已选择</span>
  3751. </div>
  3752. </div>
  3753. </div>
  3754. <div class="tool">
  3755. <div
  3756. class="whiteBIcon"
  3757. @click="openTools(itemTaskIndex, 47, toolIndex)"
  3758. >
  3759. <img
  3760. src="../../../assets/icon/fourthToolList/conSentences.png"
  3761. alt
  3762. />
  3763. <div style="margin: 5px 0">连词成句</div>
  3764. </div>
  3765. <div
  3766. class="check"
  3767. @click="addTools(47, itemTaskIndex, toolIndex)"
  3768. >
  3769. <img
  3770. src="../../../assets/icon/checkNo.png"
  3771. alt
  3772. v-if="itemTool.tool.indexOf(47) == -1"
  3773. />
  3774. <div class="checkDiv" v-else>
  3775. <img
  3776. src="../../../assets/icon/checkedIs.png"
  3777. alt
  3778. /><span>已选择</span>
  3779. </div>
  3780. </div>
  3781. </div>
  3782. <!-- <div class="tool">
  3783. <div
  3784. class="whiteBIcon"
  3785. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3786. >
  3787. <img
  3788. src="../../../assets/icon/thirdToolList/mp3.png"
  3789. alt
  3790. />
  3791. <div style="margin: 5px 0">上传音频</div>
  3792. </div>
  3793. <div
  3794. class="check"
  3795. @click="addTools(42, itemTaskIndex, toolIndex)"
  3796. >
  3797. <img
  3798. src="../../../assets/icon/checkNo.png"
  3799. alt
  3800. v-if="itemTool.tool.indexOf(42) == -1"
  3801. />
  3802. <img
  3803. src="../../../assets/icon/checkedIs.png"
  3804. alt
  3805. v-else
  3806. />
  3807. </div>
  3808. </div> -->
  3809. </div>
  3810. <div class="toolSort" v-if="itemTool.toolType == 3">
  3811. <div class="tool">
  3812. <div
  3813. class="whiteBIcon"
  3814. @click="addTools(18, itemTaskIndex, toolIndex)"
  3815. >
  3816. <img
  3817. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  3818. alt
  3819. />
  3820. <div style="margin: 5px 0">训练平台</div>
  3821. </div>
  3822. <div
  3823. class="check"
  3824. @click="addTools(18, itemTaskIndex, toolIndex)"
  3825. >
  3826. <img
  3827. src="../../../assets/icon/checkNo.png"
  3828. alt
  3829. v-if="itemTool.tool.indexOf(18) == -1"
  3830. />
  3831. <div class="checkDiv" v-else>
  3832. <img
  3833. src="../../../assets/icon/checkedIs.png"
  3834. alt
  3835. /><span>已选择</span>
  3836. </div>
  3837. </div>
  3838. </div>
  3839. <div class="tool">
  3840. <div
  3841. class="whiteBIcon"
  3842. @click="addTools(21, itemTaskIndex, toolIndex)"
  3843. >
  3844. <img
  3845. src="../../../assets/icon/fourthToolList/program.png"
  3846. alt
  3847. />
  3848. <div style="margin: 5px 0">编程平台</div>
  3849. </div>
  3850. <div
  3851. class="check"
  3852. @click="addTools(21, itemTaskIndex, toolIndex)"
  3853. >
  3854. <img
  3855. src="../../../assets/icon/checkNo.png"
  3856. alt
  3857. v-if="itemTool.tool.indexOf(21) == -1"
  3858. />
  3859. <div class="checkDiv" v-else>
  3860. <img
  3861. src="../../../assets/icon/checkedIs.png"
  3862. alt
  3863. /><span>已选择</span>
  3864. </div>
  3865. </div>
  3866. </div>
  3867. <div class="tool">
  3868. <div
  3869. class="whiteBIcon"
  3870. @click="addTools(22, itemTaskIndex, toolIndex)"
  3871. >
  3872. <img
  3873. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  3874. alt
  3875. />
  3876. <div style="margin: 5px 0">AI体验</div>
  3877. </div>
  3878. <div
  3879. class="check"
  3880. @click="addTools(22, itemTaskIndex, toolIndex)"
  3881. >
  3882. <img
  3883. src="../../../assets/icon/checkNo.png"
  3884. alt
  3885. v-if="itemTool.tool.indexOf(22) == -1"
  3886. />
  3887. <div class="checkDiv" v-else>
  3888. <img
  3889. src="../../../assets/icon/checkedIs.png"
  3890. alt
  3891. /><span>已选择</span>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. <div class="tool">
  3896. <div
  3897. class="whiteBIcon"
  3898. @click="addTools(23, itemTaskIndex, toolIndex)"
  3899. >
  3900. <img
  3901. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  3902. alt
  3903. />
  3904. <div style="margin: 5px 0">Python</div>
  3905. </div>
  3906. <div
  3907. class="check"
  3908. @click="addTools(23, itemTaskIndex, toolIndex)"
  3909. >
  3910. <img
  3911. src="../../../assets/icon/checkNo.png"
  3912. alt
  3913. v-if="itemTool.tool.indexOf(23) == -1"
  3914. />
  3915. <div class="checkDiv" v-else>
  3916. <img
  3917. src="../../../assets/icon/checkedIs.png"
  3918. alt
  3919. /><span>已选择</span>
  3920. </div>
  3921. </div>
  3922. </div>
  3923. <div class="tool">
  3924. <div
  3925. class="whiteBIcon"
  3926. @click="addTools(24, itemTaskIndex, toolIndex)"
  3927. >
  3928. <img
  3929. src="../../../assets/icon/fourthToolList/AIprogram.png"
  3930. alt
  3931. />
  3932. <div style="margin: 5px 0">AI平台</div>
  3933. </div>
  3934. <div
  3935. class="check"
  3936. @click="addTools(24, itemTaskIndex, toolIndex)"
  3937. >
  3938. <img
  3939. src="../../../assets/icon/checkNo.png"
  3940. alt
  3941. v-if="itemTool.tool.indexOf(24) == -1"
  3942. />
  3943. <div class="checkDiv" v-else>
  3944. <img
  3945. src="../../../assets/icon/checkedIs.png"
  3946. alt
  3947. /><span>已选择</span>
  3948. </div>
  3949. </div>
  3950. </div>
  3951. <!-- <div class="tool">
  3952. <div
  3953. class="whiteBIcon"
  3954. @click="addTools(32, itemTaskIndex, toolIndex)"
  3955. >
  3956. <img
  3957. src="../../../assets/icon/thirdToolList/code.png"
  3958. alt
  3959. />
  3960. <div style="margin: 5px 0">源码编辑</div>
  3961. </div>
  3962. <div
  3963. class="check"
  3964. @click="addTools(32, itemTaskIndex, toolIndex)"
  3965. >
  3966. <img
  3967. src="../../../assets/icon/checkNo.png"
  3968. alt
  3969. v-if="itemTool.tool.indexOf(32) == -1"
  3970. />
  3971. <div class="checkDiv" v-else>
  3972. <img
  3973. src="../../../assets/icon/checkedIs.png"
  3974. alt
  3975. /><span>已选择</span>
  3976. </div>
  3977. </div>
  3978. </div> -->
  3979. <div class="tool">
  3980. <div
  3981. class="whiteBIcon"
  3982. @click="openTools(itemTaskIndex, 57, toolIndex)"
  3983. >
  3984. <img
  3985. src="../../../assets/icon/fourthToolList/cocopi.png"
  3986. alt
  3987. />
  3988. <div style="margin: 5px 0">CocoPi</div>
  3989. </div>
  3990. <div
  3991. class="check"
  3992. @click="addTools(57, itemTaskIndex, toolIndex)"
  3993. >
  3994. <img
  3995. src="../../../assets/icon/checkNo.png"
  3996. alt
  3997. v-if="itemTool.tool.indexOf(57) == -1"
  3998. />
  3999. <div class="checkDiv" v-else>
  4000. <img
  4001. src="../../../assets/icon/checkedIs.png"
  4002. alt
  4003. /><span>已选择</span>
  4004. </div>
  4005. </div>
  4006. </div>
  4007. <div class="tool">
  4008. <div
  4009. class="whiteBIcon"
  4010. @click="addTools(63, itemTaskIndex, toolIndex)"
  4011. >
  4012. <img
  4013. src="../../../assets/icon/fourthToolList/Wood.png"
  4014. alt
  4015. />
  4016. <div style="margin: 5px 0">海龟编程</div>
  4017. </div>
  4018. <div
  4019. class="check"
  4020. @click="addTools(63, itemTaskIndex, toolIndex)"
  4021. >
  4022. <img
  4023. src="../../../assets/icon/checkNo.png"
  4024. alt
  4025. v-if="itemTool.tool.indexOf(63) == -1"
  4026. />
  4027. <div class="checkDiv" v-else>
  4028. <img
  4029. src="../../../assets/icon/checkedIs.png"
  4030. alt
  4031. /><span>已选择</span>
  4032. </div>
  4033. </div>
  4034. </div>
  4035. </div>
  4036. <div class="toolSort" v-if="itemTool.toolType == 7">
  4037. <div class="tool">
  4038. <div
  4039. class="whiteBIcon"
  4040. @click="openTools(itemTaskIndex, 40, toolIndex)"
  4041. >
  4042. <img
  4043. src="../../../assets/icon/thirdToolList/eval.png"
  4044. alt
  4045. />
  4046. <div style="margin: 5px 0">个人评价</div>
  4047. </div>
  4048. <div
  4049. class="check"
  4050. @click="addTools(40, itemTaskIndex, toolIndex)"
  4051. >
  4052. <img
  4053. src="../../../assets/icon/checkNo.png"
  4054. alt
  4055. v-if="itemTool.tool.indexOf(40) == -1"
  4056. />
  4057. <div class="checkDiv" v-else>
  4058. <img
  4059. src="../../../assets/icon/checkedIs.png"
  4060. alt
  4061. /><span>已选择</span>
  4062. </div>
  4063. </div>
  4064. </div>
  4065. </div>
  4066. <div class="toolSort" v-if="itemTool.toolType == 5">
  4067. <div class="tool">
  4068. <div
  4069. class="whiteBIcon"
  4070. @click="addTools(28, itemTaskIndex, toolIndex)"
  4071. >
  4072. <img
  4073. src="../../../assets/icon/secondToolList/translation.png"
  4074. alt
  4075. />
  4076. <div style="margin: 5px 0">翻译</div>
  4077. </div>
  4078. <div
  4079. class="check"
  4080. @click="addTools(28, itemTaskIndex, toolIndex)"
  4081. >
  4082. <img
  4083. src="../../../assets/icon/checkNo.png"
  4084. alt
  4085. v-if="itemTool.tool.indexOf(28) == -1"
  4086. />
  4087. <div class="checkDiv" v-else>
  4088. <img
  4089. src="../../../assets/icon/checkedIs.png"
  4090. alt
  4091. /><span>已选择</span>
  4092. </div>
  4093. </div>
  4094. </div>
  4095. <div class="tool">
  4096. <div
  4097. class="whiteBIcon"
  4098. @click="addTools(37, itemTaskIndex, toolIndex)"
  4099. >
  4100. <img
  4101. src="../../../assets/icon/secondToolList/mohe.png"
  4102. alt
  4103. />
  4104. <div style="margin: 5px 0">魔盒识字</div>
  4105. </div>
  4106. <div
  4107. class="check"
  4108. @click="addTools(37, itemTaskIndex, toolIndex)"
  4109. >
  4110. <img
  4111. src="../../../assets/icon/checkNo.png"
  4112. alt
  4113. v-if="itemTool.tool.indexOf(37) == -1"
  4114. />
  4115. <div class="checkDiv" v-else>
  4116. <img
  4117. src="../../../assets/icon/checkedIs.png"
  4118. alt
  4119. /><span>已选择</span>
  4120. </div>
  4121. </div>
  4122. </div>
  4123. <div class="tool">
  4124. <div
  4125. class="whiteBIcon"
  4126. @click="addTools(38, itemTaskIndex, toolIndex)"
  4127. >
  4128. <img
  4129. src="../../../assets/icon/secondToolList/24game.png"
  4130. alt
  4131. />
  4132. <div style="margin: 5px 0">24点</div>
  4133. </div>
  4134. <div
  4135. class="check"
  4136. @click="addTools(38, itemTaskIndex, toolIndex)"
  4137. >
  4138. <img
  4139. src="../../../assets/icon/checkNo.png"
  4140. alt
  4141. v-if="itemTool.tool.indexOf(38) == -1"
  4142. />
  4143. <div class="checkDiv" v-else>
  4144. <img
  4145. src="../../../assets/icon/checkedIs.png"
  4146. alt
  4147. /><span>已选择</span>
  4148. </div>
  4149. </div>
  4150. </div>
  4151. <div class="tool">
  4152. <div
  4153. class="whiteBIcon"
  4154. @click="addTools(31, itemTaskIndex, toolIndex)"
  4155. >
  4156. <img
  4157. src="../../../assets/icon/secondToolList/networkPanel.png"
  4158. alt
  4159. />
  4160. <div style="margin: 5px 0">数学画板</div>
  4161. </div>
  4162. <div
  4163. class="check"
  4164. @click="addTools(31, itemTaskIndex, toolIndex)"
  4165. >
  4166. <img
  4167. src="../../../assets/icon/checkNo.png"
  4168. alt
  4169. v-if="itemTool.tool.indexOf(31) == -1"
  4170. />
  4171. <div class="checkDiv" v-else>
  4172. <img
  4173. src="../../../assets/icon/checkedIs.png"
  4174. alt
  4175. /><span>已选择</span>
  4176. </div>
  4177. </div>
  4178. </div>
  4179. <div class="tool">
  4180. <div
  4181. class="whiteBIcon"
  4182. @click="addTools(39, itemTaskIndex, toolIndex)"
  4183. >
  4184. <img
  4185. src="../../../assets/icon/secondToolList/GeoGebra.png"
  4186. alt
  4187. />
  4188. <div style="margin: 5px 0">GeoGebra</div>
  4189. </div>
  4190. <div
  4191. class="check"
  4192. @click="addTools(39, itemTaskIndex, toolIndex)"
  4193. >
  4194. <img
  4195. src="../../../assets/icon/checkNo.png"
  4196. alt
  4197. v-if="itemTool.tool.indexOf(39) == -1"
  4198. />
  4199. <div class="checkDiv" v-else>
  4200. <img
  4201. src="../../../assets/icon/checkedIs.png"
  4202. alt
  4203. /><span>已选择</span>
  4204. </div>
  4205. </div>
  4206. </div>
  4207. <div class="tool">
  4208. <div
  4209. class="whiteBIcon"
  4210. @click="addTools(58, itemTaskIndex, toolIndex)"
  4211. >
  4212. <img
  4213. src="../../../assets/icon/fourthToolList/car.png"
  4214. alt
  4215. />
  4216. <div style="margin: 5px 0">模拟驾驶</div>
  4217. </div>
  4218. <div
  4219. class="check"
  4220. @click="addTools(58, itemTaskIndex, toolIndex)"
  4221. >
  4222. <img
  4223. src="../../../assets/icon/checkNo.png"
  4224. alt
  4225. v-if="itemTool.tool.indexOf(58) == -1"
  4226. />
  4227. <div class="checkDiv" v-else>
  4228. <img
  4229. src="../../../assets/icon/checkedIs.png"
  4230. alt
  4231. /><span>已选择</span>
  4232. </div>
  4233. </div>
  4234. </div>
  4235. <div class="tool">
  4236. <div
  4237. class="whiteBIcon"
  4238. @click="addTools(59, itemTaskIndex, toolIndex)"
  4239. >
  4240. <img
  4241. src="../../../assets/icon/fourthToolList/lineSearch.png"
  4242. alt
  4243. />
  4244. <div style="margin: 5px 0">路径搜索</div>
  4245. </div>
  4246. <div
  4247. class="check"
  4248. @click="addTools(59, itemTaskIndex, toolIndex)"
  4249. >
  4250. <img
  4251. src="../../../assets/icon/checkNo.png"
  4252. alt
  4253. v-if="itemTool.tool.indexOf(59) == -1"
  4254. />
  4255. <div class="checkDiv" v-else>
  4256. <img
  4257. src="../../../assets/icon/checkedIs.png"
  4258. alt
  4259. /><span>已选择</span>
  4260. </div>
  4261. </div>
  4262. </div>
  4263. <div class="tool">
  4264. <div
  4265. class="whiteBIcon"
  4266. @click="addTools(60, itemTaskIndex, toolIndex)"
  4267. >
  4268. <img
  4269. src="../../../assets/icon/fourthToolList/deepLearning.png"
  4270. alt
  4271. />
  4272. <div style="margin: 5px 0">深度学习</div>
  4273. </div>
  4274. <div
  4275. class="check"
  4276. @click="addTools(60, itemTaskIndex, toolIndex)"
  4277. >
  4278. <img
  4279. src="../../../assets/icon/checkNo.png"
  4280. alt
  4281. v-if="itemTool.tool.indexOf(60) == -1"
  4282. />
  4283. <div class="checkDiv" v-else>
  4284. <img
  4285. src="../../../assets/icon/checkedIs.png"
  4286. alt
  4287. /><span>已选择</span>
  4288. </div>
  4289. </div>
  4290. </div>
  4291. <div class="tool">
  4292. <div
  4293. class="whiteBIcon"
  4294. @click="addTools(61, itemTaskIndex, toolIndex)"
  4295. >
  4296. <img
  4297. src="../../../assets/icon/fourthToolList/allHistory.png"
  4298. alt
  4299. />
  4300. <div style="margin: 5px 0">全历史</div>
  4301. </div>
  4302. <div
  4303. class="check"
  4304. @click="addTools(61, itemTaskIndex, toolIndex)"
  4305. >
  4306. <img
  4307. src="../../../assets/icon/checkNo.png"
  4308. alt
  4309. v-if="itemTool.tool.indexOf(61) == -1"
  4310. />
  4311. <div class="checkDiv" v-else>
  4312. <img
  4313. src="../../../assets/icon/checkedIs.png"
  4314. alt
  4315. /><span>已选择</span>
  4316. </div>
  4317. </div>
  4318. </div>
  4319. </div>
  4320. <div class="toolSort" v-if="itemTool.toolType == 4">
  4321. <div class="tool">
  4322. <div
  4323. class="whiteBIcon"
  4324. @click="addTools(26, itemTaskIndex, toolIndex)"
  4325. >
  4326. <img
  4327. src="../../../assets/icon/thirdToolList/courseDesign.png"
  4328. alt
  4329. />
  4330. <div style="margin: 5px 0">课程设计</div>
  4331. </div>
  4332. <div
  4333. class="check"
  4334. @click="addTools(26, itemTaskIndex, toolIndex)"
  4335. >
  4336. <img
  4337. src="../../../assets/icon/checkNo.png"
  4338. alt
  4339. v-if="itemTool.tool.indexOf(26) == -1"
  4340. />
  4341. <div class="checkDiv" v-else>
  4342. <img
  4343. src="../../../assets/icon/checkedIs.png"
  4344. alt
  4345. /><span>已选择</span>
  4346. </div>
  4347. </div>
  4348. </div>
  4349. <div class="tool">
  4350. <div
  4351. class="whiteBIcon"
  4352. @click="addTools(25, itemTaskIndex, toolIndex)"
  4353. >
  4354. <img
  4355. src="../../../assets/icon/thirdToolList/evalua.png"
  4356. alt
  4357. />
  4358. <div style="margin: 5px 0">目标管理</div>
  4359. </div>
  4360. <div
  4361. class="check"
  4362. @click="addTools(25, itemTaskIndex, toolIndex)"
  4363. >
  4364. <img
  4365. src="../../../assets/icon/checkNo.png"
  4366. alt
  4367. v-if="itemTool.tool.indexOf(25) == -1"
  4368. />
  4369. <div class="checkDiv" v-else>
  4370. <img
  4371. src="../../../assets/icon/checkedIs.png"
  4372. alt
  4373. /><span>已选择</span>
  4374. </div>
  4375. </div>
  4376. </div>
  4377. <!-- <div class="tool">
  4378. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  4379. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  4380. <div style="margin: 5px 0">汉字宫</div>
  4381. </div>
  4382. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  4383. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  4384. <div class="checkDiv" v-else>
  4385. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4386. </div>
  4387. </div>
  4388. </div> -->
  4389. </div>
  4390. </div>
  4391. </div>
  4392. <div
  4393. class="addToolFun"
  4394. @click="addToolFun(itemTaskIndex)"
  4395. >
  4396. <div class="addToolImg">
  4397. <img src="../../../assets/icon/add.png" alt />
  4398. </div>
  4399. <div>添加工具</div>
  4400. </div>
  4401. </div>
  4402. </div>
  4403. <div
  4404. v-else-if="
  4405. unitJson[unitIndex].easy == 2 ||
  4406. unitJson[unitIndex].easy == 4
  4407. "
  4408. class="toolChoose"
  4409. style="padding: 0 0 0 30px"
  4410. >
  4411. <div class="tools">
  4412. <div
  4413. class="leftTools"
  4414. style="width: 95%"
  4415. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4416. :key="toolIndex"
  4417. >
  4418. <div>
  4419. <textarea
  4420. rows="3"
  4421. type="text"
  4422. placeholder="添加工具描述"
  4423. class="binfo_input"
  4424. style="margin: 0 0 20px 0; width: 71.5% !important"
  4425. v-model="itemTool.toolDetail"
  4426. ></textarea>
  4427. </div>
  4428. <div
  4429. style="
  4430. display: flex;
  4431. flex-direction: row;
  4432. align-items: baseline;
  4433. flex-wrap: nowrap;
  4434. justify-content: flex-start;
  4435. position: relative;
  4436. "
  4437. >
  4438. <div style="margin-right: 20px; font-weight: bold">
  4439. 步骤 {{ toolIndex + 1 }} :
  4440. </div>
  4441. <div
  4442. class="remove"
  4443. @click="deleteTool(itemTaskIndex, toolIndex)"
  4444. v-if="itemTask.toolChoose.length > 1"
  4445. style="position: absolute; right: 55px"
  4446. ></div>
  4447. </div>
  4448. <div style="min-height: 163px">
  4449. <div class="toolSort">
  4450. <div class="tool">
  4451. <div
  4452. class="whiteBIcon"
  4453. @click="openTools(itemTaskIndex, 1, toolIndex)"
  4454. >
  4455. <img
  4456. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4457. alt
  4458. />
  4459. <div style="margin: 5px 0">电子白板</div>
  4460. </div>
  4461. <div
  4462. class="check"
  4463. @click="addTools(1, itemTaskIndex, toolIndex)"
  4464. >
  4465. <img
  4466. src="../../../assets/icon/checkNo.png"
  4467. alt
  4468. v-if="itemTool.tool.indexOf(1) == -1"
  4469. />
  4470. <div class="checkDiv" v-else>
  4471. <img
  4472. src="../../../assets/icon/checkedIs.png"
  4473. alt
  4474. /><span>已选择</span>
  4475. </div>
  4476. </div>
  4477. </div>
  4478. <div class="tool">
  4479. <div
  4480. class="whiteBIcon"
  4481. @click="openTools(itemTaskIndex, 52, toolIndex)"
  4482. >
  4483. <img
  4484. src="../../../assets/icon/fourthToolList/text.png"
  4485. alt
  4486. />
  4487. <div style="margin: 5px 0">文档</div>
  4488. </div>
  4489. <div
  4490. class="check"
  4491. @click="addTools(52, itemTaskIndex, toolIndex)"
  4492. >
  4493. <img
  4494. src="../../../assets/icon/checkNo.png"
  4495. alt
  4496. v-if="itemTool.tool.indexOf(52) == -1"
  4497. />
  4498. <div class="checkDiv" v-else>
  4499. <img
  4500. src="../../../assets/icon/checkedIs.png"
  4501. alt
  4502. /><span>已选择</span>
  4503. </div>
  4504. </div>
  4505. </div>
  4506. <div class="tool">
  4507. <div
  4508. class="whiteBIcon"
  4509. @click="openTools(itemTaskIndex, 3, toolIndex)"
  4510. >
  4511. <img
  4512. src="../../../assets/icon/secondToolList/mindMapping.png"
  4513. alt
  4514. />
  4515. <div style="margin: 5px 0">思维导图</div>
  4516. </div>
  4517. <div
  4518. class="check"
  4519. @click="addTools(3, itemTaskIndex, toolIndex)"
  4520. >
  4521. <img
  4522. src="../../../assets/icon/checkNo.png"
  4523. alt
  4524. v-if="itemTool.tool.indexOf(3) == -1"
  4525. />
  4526. <div class="checkDiv" v-else>
  4527. <img
  4528. src="../../../assets/icon/checkedIs.png"
  4529. alt
  4530. /><span>已选择</span>
  4531. </div>
  4532. </div>
  4533. </div>
  4534. <div class="tool">
  4535. <div
  4536. class="whiteBIcon"
  4537. @click="openTools(itemTaskIndex, 4, toolIndex)"
  4538. >
  4539. <img
  4540. src="../../../assets/icon/thirdToolList/ask.png"
  4541. alt
  4542. />
  4543. <div style="margin: 5px 0">问卷调查</div>
  4544. </div>
  4545. <div
  4546. class="check"
  4547. @click="addTools(4, itemTaskIndex, toolIndex)"
  4548. >
  4549. <img
  4550. src="../../../assets/icon/checkNo.png"
  4551. alt
  4552. v-if="itemTool.tool.indexOf(4) == -1"
  4553. />
  4554. <div class="checkDiv" v-else>
  4555. <img
  4556. src="../../../assets/icon/checkedIs.png"
  4557. alt
  4558. /><span>已选择</span>
  4559. </div>
  4560. </div>
  4561. </div>
  4562. <div class="tool">
  4563. <div
  4564. class="whiteBIcon"
  4565. @click="openTools(itemTaskIndex, 45, toolIndex)"
  4566. >
  4567. <img
  4568. src="../../../assets/icon/thirdToolList/choose.png"
  4569. alt
  4570. />
  4571. <div style="margin: 5px 0">选择题</div>
  4572. </div>
  4573. <div
  4574. class="check"
  4575. @click="addTools(45, itemTaskIndex, toolIndex)"
  4576. >
  4577. <img
  4578. src="../../../assets/icon/checkNo.png"
  4579. alt
  4580. v-if="itemTool.tool.indexOf(45) == -1"
  4581. />
  4582. <div class="checkDiv" v-else>
  4583. <img
  4584. src="../../../assets/icon/checkedIs.png"
  4585. alt
  4586. /><span>已选择</span>
  4587. </div>
  4588. </div>
  4589. </div>
  4590. <div class="tool">
  4591. <div
  4592. class="whiteBIcon"
  4593. @click="openTools(itemTaskIndex, 15, toolIndex)"
  4594. >
  4595. <img
  4596. src="../../../assets/icon/thirdToolList/answer.png"
  4597. alt
  4598. />
  4599. <div style="margin: 5px 0">问答工具</div>
  4600. </div>
  4601. <div
  4602. class="check"
  4603. @click="addTools(15, itemTaskIndex, toolIndex)"
  4604. >
  4605. <img
  4606. src="../../../assets/icon/checkNo.png"
  4607. alt
  4608. v-if="itemTool.tool.indexOf(15) == -1"
  4609. />
  4610. <div class="checkDiv" v-else>
  4611. <img
  4612. src="../../../assets/icon/checkedIs.png"
  4613. alt
  4614. /><span>已选择</span>
  4615. </div>
  4616. </div>
  4617. </div>
  4618. <div class="tool">
  4619. <div
  4620. class="whiteBIcon"
  4621. @click="addTools(16, itemTaskIndex, toolIndex)"
  4622. >
  4623. <img
  4624. src="../../../assets/icon/thirdToolList/work.png"
  4625. alt
  4626. />
  4627. <div style="margin: 5px 0">作业提交</div>
  4628. </div>
  4629. <div
  4630. class="check"
  4631. @click="addTools(16, itemTaskIndex, toolIndex)"
  4632. >
  4633. <img
  4634. src="../../../assets/icon/checkNo.png"
  4635. alt
  4636. v-if="itemTool.tool.indexOf(16) == -1"
  4637. />
  4638. <div class="checkDiv" v-else>
  4639. <img
  4640. src="../../../assets/icon/checkedIs.png"
  4641. alt
  4642. /><span>已选择</span>
  4643. </div>
  4644. </div>
  4645. </div>
  4646. <div class="tool">
  4647. <div
  4648. class="whiteBIcon"
  4649. @click="openTools(itemTaskIndex, 50, toolIndex)"
  4650. >
  4651. <img
  4652. src="../../../assets/icon/thirdToolList/plwork.png"
  4653. alt
  4654. />
  4655. <div style="margin: 5px 0">批量上传</div>
  4656. </div>
  4657. <div
  4658. class="check"
  4659. @click="addTools(50, itemTaskIndex, toolIndex)"
  4660. >
  4661. <img
  4662. src="../../../assets/icon/checkNo.png"
  4663. alt
  4664. v-if="itemTool.tool.indexOf(50) == -1"
  4665. />
  4666. <div class="checkDiv" v-else>
  4667. <img
  4668. src="../../../assets/icon/checkedIs.png"
  4669. alt
  4670. /><span>已选择</span>
  4671. </div>
  4672. </div>
  4673. </div>
  4674. <div class="tool">
  4675. <div
  4676. class="whiteBIcon"
  4677. @click="openTools(itemTaskIndex, 41, toolIndex)"
  4678. >
  4679. <img
  4680. src="../../../assets/icon/thirdToolList/select.png"
  4681. alt
  4682. />
  4683. <div style="margin: 5px 0">选择填空</div>
  4684. </div>
  4685. <div
  4686. class="check"
  4687. @click="addTools(41, itemTaskIndex, toolIndex)"
  4688. >
  4689. <img
  4690. src="../../../assets/icon/checkNo.png"
  4691. alt
  4692. v-if="itemTool.tool.indexOf(41) == -1"
  4693. />
  4694. <div class="checkDiv" v-else>
  4695. <img
  4696. src="../../../assets/icon/checkedIs.png"
  4697. alt
  4698. /><span>已选择</span>
  4699. </div>
  4700. </div>
  4701. </div>
  4702. <div class="tool">
  4703. <div
  4704. class="whiteBIcon"
  4705. @click="openTools(itemTaskIndex, 47, toolIndex)"
  4706. >
  4707. <img
  4708. src="../../../assets/icon/fourthToolList/conSentences.png"
  4709. alt
  4710. />
  4711. <div style="margin: 5px 0">连词成句</div>
  4712. </div>
  4713. <div
  4714. class="check"
  4715. @click="addTools(47, itemTaskIndex, toolIndex)"
  4716. >
  4717. <img
  4718. src="../../../assets/icon/checkNo.png"
  4719. alt
  4720. v-if="itemTool.tool.indexOf(47) == -1"
  4721. />
  4722. <div class="checkDiv" v-else>
  4723. <img
  4724. src="../../../assets/icon/checkedIs.png"
  4725. alt
  4726. /><span>已选择</span>
  4727. </div>
  4728. </div>
  4729. </div>
  4730. <div class="tool">
  4731. <div
  4732. class="whiteBIcon"
  4733. @click="openTools(itemTaskIndex, 48, toolIndex)"
  4734. >
  4735. <img
  4736. src="../../../assets/icon/fourthToolList/table.png"
  4737. alt
  4738. />
  4739. <div style="margin: 5px 0">表格</div>
  4740. </div>
  4741. <div
  4742. class="check"
  4743. @click="addTools(48, itemTaskIndex, toolIndex)"
  4744. >
  4745. <img
  4746. src="../../../assets/icon/checkNo.png"
  4747. alt
  4748. v-if="itemTool.tool.indexOf(48) == -1"
  4749. />
  4750. <div class="checkDiv" v-else>
  4751. <img
  4752. src="../../../assets/icon/checkedIs.png"
  4753. alt
  4754. /><span>已选择</span>
  4755. </div>
  4756. </div>
  4757. </div>
  4758. </div>
  4759. </div>
  4760. </div>
  4761. <div
  4762. class="addToolFun"
  4763. style="margin-bottom: 20px"
  4764. @click="addToolFun(itemTaskIndex)"
  4765. >
  4766. <div class="addToolImg">
  4767. <img src="../../../assets/icon/add.png" alt />
  4768. </div>
  4769. <div>添加工具</div>
  4770. </div>
  4771. </div>
  4772. </div>
  4773. <div
  4774. v-else-if="
  4775. unitJson[unitIndex].easy == 1 ||
  4776. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  4777. "
  4778. class="toolChoose"
  4779. style="padding: 0 0 0 30px"
  4780. >
  4781. <div class="tools">
  4782. <div
  4783. class="leftTools"
  4784. style="
  4785. width: 95%;
  4786. padding: 0 0 15px 0;
  4787. margin-bottom: 15px;
  4788. "
  4789. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4790. :key="toolIndex"
  4791. >
  4792. <div style="min-height: 163px">
  4793. <div class="toolSort">
  4794. <div class="tool">
  4795. <div
  4796. class="whiteBIcon"
  4797. @click="openTools(itemTaskIndex, 50, toolIndex)"
  4798. >
  4799. <img
  4800. src="../../../assets/icon/thirdToolList/plwork.png"
  4801. alt
  4802. />
  4803. <div style="margin: 5px 0">批量上传</div>
  4804. </div>
  4805. <div
  4806. class="check"
  4807. @click="addTools(50, itemTaskIndex, toolIndex)"
  4808. >
  4809. <img
  4810. src="../../../assets/icon/checkNo.png"
  4811. alt
  4812. v-if="itemTool.tool.indexOf(50) == -1"
  4813. />
  4814. <div class="checkDiv" v-else>
  4815. <img
  4816. src="../../../assets/icon/checkedIs.png"
  4817. alt
  4818. /><span>已选择</span>
  4819. </div>
  4820. </div>
  4821. </div>
  4822. </div>
  4823. </div>
  4824. </div>
  4825. </div>
  4826. </div>
  4827. <div
  4828. class="elist_css"
  4829. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  4830. >
  4831. <div class="elist_title">
  4832. <div
  4833. style="
  4834. display: flex;
  4835. flex-direction: row;
  4836. align-items: center;
  4837. margin-bottom: 20px;
  4838. "
  4839. >
  4840. <div class="lineTitle">评价设置</div>
  4841. </div>
  4842. </div>
  4843. <div class="mbCss">
  4844. <div class="pjCss">
  4845. <div
  4846. v-if="itemTask.eList && itemTask.eList.length"
  4847. class="elist_input"
  4848. >
  4849. <div
  4850. v-for="(eItem, eIndex) in itemTask.eList"
  4851. :key="eIndex"
  4852. class="elist_input_box"
  4853. >
  4854. <span>评价名称:</span>
  4855. <input
  4856. type="input"
  4857. v-model="itemTask.eList[eIndex].value"
  4858. placeholder="填写评价名称"
  4859. />
  4860. <span>评星等级:</span>
  4861. <el-rate
  4862. v-model="itemTask.eList[eIndex].score"
  4863. @change="setEListStar()"
  4864. disabled
  4865. ></el-rate>
  4866. <div
  4867. class="remove"
  4868. @click="
  4869. deletEList(unitIndex, itemTaskIndex, eIndex)
  4870. "
  4871. ></div>
  4872. <div class="elist_inptu_text">
  4873. <span>评价描述:</span>
  4874. <input
  4875. type="input"
  4876. v-model="itemTask.eList[eIndex].detail"
  4877. placeholder="填写评价描述"
  4878. />
  4879. </div>
  4880. <div class="elist_inptu_text" v-if="evalua">
  4881. <span>目标:</span>
  4882. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  4883. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  4884. @change="forceUpdate()">
  4885. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  4886. :value="e.name">
  4887. </el-option>
  4888. </el-select> -->
  4889. <el-cascader
  4890. :options="targetArray"
  4891. v-model="itemTask.eList[eIndex].target"
  4892. :props="{ checkStrictly: true }"
  4893. :show-all-levels="false"
  4894. clearable
  4895. ></el-cascader>
  4896. </div>
  4897. </div>
  4898. </div>
  4899. <div
  4900. class="addToolFun"
  4901. @click="addEList(unitIndex, itemTaskIndex)"
  4902. style="margin: 35px 35px 0 0"
  4903. >
  4904. <div class="addToolImg">
  4905. <img src="../../../assets/icon/add.png" alt />
  4906. </div>
  4907. <div>添加</div>
  4908. </div>
  4909. </div>
  4910. <div
  4911. v-if="evalua"
  4912. style="
  4913. border: 1px solid #e5e5e5;
  4914. width: 55%;
  4915. margin-top: 20px;
  4916. box-shadow: 3px 1px 15px 3px #e0e0e0;
  4917. "
  4918. class="evaCss"
  4919. >
  4920. <div class="e_add_top">
  4921. <div class="e_add_title">
  4922. <span>当前使用目标管理</span>
  4923. <span>{{ eTitle }}</span>
  4924. <img
  4925. src="../../../assets/line.png"
  4926. class="cru_line"
  4927. style="
  4928. width: 125px;
  4929. height: 20px;
  4930. bottom: -10px;
  4931. left: 155px;
  4932. "
  4933. />
  4934. </div>
  4935. </div>
  4936. <div class="e_add_content" style="width: 100%">
  4937. <div class="e_add_list_pbox" style="width: 100%">
  4938. <div class="e_add_list_pbox_title">
  4939. <span class="type_title">切换模式</span>
  4940. <div class="type_content">
  4941. <span
  4942. :class="{ active: typeMode == 1 }"
  4943. @click="OtherMb(1)"
  4944. >目标树</span
  4945. >
  4946. <span
  4947. :class="{ active: typeMode == 2 }"
  4948. @click="OtherMb(2)"
  4949. >目标罗盘</span
  4950. >
  4951. <span
  4952. :class="{ active: typeMode == 3 }"
  4953. @click="OtherMb(3)"
  4954. >目标看板</span
  4955. >
  4956. </div>
  4957. </div>
  4958. <div class="e_add_list_pbox_content">
  4959. <Mind
  4960. :showBar="false"
  4961. :mindData="data"
  4962. style="width: 100%"
  4963. :jsmindId="
  4964. unitIndex + '-' + itemTaskIndex + 'mind'
  4965. "
  4966. v-if="typeMode == 1"
  4967. ></Mind>
  4968. <Sunburst
  4969. :Josn="eJson"
  4970. :num="eJSONNum"
  4971. style="width: 100%"
  4972. v-if="typeMode == 2"
  4973. >
  4974. </Sunburst>
  4975. <SeeBoard
  4976. :Josn="eJson"
  4977. :num="eJSONNum"
  4978. :ename="eTitle"
  4979. style="width: 100%"
  4980. v-if="typeMode == 3"
  4981. ></SeeBoard>
  4982. </div>
  4983. </div>
  4984. </div>
  4985. </div>
  4986. </div>
  4987. </div>
  4988. <div class="funBlock" style="padding: 0">
  4989. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  4990. <div>折叠</div>
  4991. <div class="arrow">
  4992. <img src="../../../assets/icon/fold.png" alt />
  4993. </div>
  4994. </div>
  4995. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  4996. <div>展开</div>
  4997. <div class="arrow">
  4998. <img src="../../../assets/icon/expand.png" alt />
  4999. </div>
  5000. </div>
  5001. </div>
  5002. </div>
  5003. <div
  5004. class="addTaskBorder"
  5005. @click="addTaskBorder"
  5006. v-if="!unitJson[unitIndex].easy"
  5007. >
  5008. <div>
  5009. <img src="../../../assets/icon/addHw.png" alt />
  5010. <span>添加任务</span>
  5011. </div>
  5012. </div>
  5013. </div>
  5014. </div>
  5015. </div>
  5016. <div class="rightBox" v-if="this.steps == 4">
  5017. <div class="basic_box_success">
  5018. <div class="right_img">
  5019. <img src="../../../assets/icon/right.png" alt />
  5020. </div>
  5021. <div style="font-weight: bold">成功</div>
  5022. <!-- <div>您的课程编号</div>
  5023. <div class="number">{{ number }}</div>-->
  5024. <!-- <div class="success_button">
  5025. <div class="look_course" @click="isNoFinsh">
  5026. 邀请老师协同编辑
  5027. </div>
  5028. <div class="attend_others" @click="goCourse">预览课程</div>
  5029. </div> -->
  5030. </div>
  5031. </div>
  5032. <div class="info_btnBox">
  5033. <button
  5034. class="c_pub_button_return pub_btn_return_img"
  5035. @click="lastSteps"
  5036. >
  5037. 返回课程
  5038. </button>
  5039. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="this.steps == 1">
  5040. 确认上传
  5041. </button>
  5042. </div>
  5043. </div>
  5044. </div>
  5045. </div>
  5046. <el-dialog
  5047. title="提示"
  5048. :visible.sync="dialogVisible"
  5049. :append-to-body="true"
  5050. width="25%"
  5051. :before-close="handleClose"
  5052. class="dialog_diy2 customWidth"
  5053. >
  5054. <div>请复制该链接邀请协同编辑</div>
  5055. <div>http://www.boomyon.com/index-zhang.com</div>
  5056. <span slot="footer" class="dialog-footer">
  5057. <el-button type="primary">复制链接分享</el-button>
  5058. <el-button @click="dialogVisible = false">取消</el-button>
  5059. </span>
  5060. </el-dialog>
  5061. <el-dialog
  5062. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5063. :visible.sync="dialogVisible1"
  5064. :append-to-body="true"
  5065. width="25%"
  5066. :before-close="handleClose"
  5067. class="dialog_diy2 customWidth"
  5068. >
  5069. <el-form>
  5070. <el-form-item label="文档标题">
  5071. <el-input
  5072. v-model="tTitle"
  5073. auto-complete="off"
  5074. placeholder="请输入文档标题名..."
  5075. ></el-input>
  5076. </el-form-item>
  5077. <div>文档简介</div>
  5078. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5079. </el-form>
  5080. <span slot="footer" class="dialog-footer">
  5081. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5082. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5083. >添加</el-button
  5084. >
  5085. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5086. </span>
  5087. </el-dialog>
  5088. <el-dialog
  5089. title="添加文档"
  5090. :visible.sync="dialogVisible2"
  5091. :append-to-body="true"
  5092. width="500px"
  5093. :before-close="handleClose"
  5094. class="dialog_diy"
  5095. >
  5096. <el-form>
  5097. <el-form-item label="文档标题">
  5098. <el-input
  5099. v-model="templateC.title"
  5100. auto-complete="off"
  5101. placeholder="请输入文档标题名..."
  5102. ></el-input>
  5103. </el-form-item>
  5104. <div>文档内容</div>
  5105. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5106. </el-form>
  5107. <span slot="footer" class="dialog-footer">
  5108. <el-button @click="clearChoose">取 消</el-button>
  5109. <el-button type="primary" @click="wordNext()">确定</el-button>
  5110. </span>
  5111. </el-dialog>
  5112. <el-dialog
  5113. title="添加富文本"
  5114. :visible.sync="dialogVisible6"
  5115. :append-to-body="true"
  5116. width="500px"
  5117. :before-close="handleClose"
  5118. class="dialog_diy"
  5119. >
  5120. <el-form>
  5121. <el-form-item label="文本标题">
  5122. <el-input
  5123. v-model="AttText.title"
  5124. auto-complete="off"
  5125. @input="change2"
  5126. placeholder="请输入文本标题..."
  5127. ></el-input>
  5128. </el-form-item>
  5129. <div>富文本内容</div>
  5130. <editor-bar
  5131. v-model="AttText.text"
  5132. @change="change"
  5133. v-if="dialogVisible6"
  5134. ></editor-bar>
  5135. </el-form>
  5136. <span slot="footer" class="dialog-footer">
  5137. <el-button @click="clearAttText">取 消</el-button>
  5138. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5139. </span>
  5140. </el-dialog>
  5141. <el-dialog
  5142. title="添加链接"
  5143. :visible.sync="dialogVisible7"
  5144. :append-to-body="true"
  5145. width="500px"
  5146. :before-close="handleClose"
  5147. class="dialog_diy lineCss"
  5148. >
  5149. <el-form>
  5150. <el-form-item label="标题" :label-width="formLabelWidth">
  5151. <span>
  5152. <el-input
  5153. placeholder="请输入链接标题"
  5154. clearable
  5155. v-model="lineTitle"
  5156. class="add_input"
  5157. ></el-input>
  5158. </span>
  5159. </el-form-item>
  5160. <el-form-item label="链接" :label-width="formLabelWidth">
  5161. <span>
  5162. <el-input
  5163. placeholder="请输入链接"
  5164. clearable
  5165. v-model="line"
  5166. class="add_input"
  5167. ></el-input>
  5168. </span>
  5169. </el-form-item>
  5170. </el-form>
  5171. <span slot="footer" class="dialog-footer">
  5172. <el-button @click="clearLine">取 消</el-button>
  5173. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5174. </span>
  5175. </el-dialog>
  5176. <el-dialog
  5177. title="添加资源"
  5178. :visible.sync="dialogVisibleSource"
  5179. :append-to-body="true"
  5180. width="100%"
  5181. :before-close="handleClose"
  5182. class="dialog_diy source_diy"
  5183. >
  5184. <div>
  5185. <sourceDialog :sourceData="sourceData"></sourceDialog>
  5186. </div>
  5187. <span slot="footer" class="dialog-footer">
  5188. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5189. <el-button type="primary" @click="addSource">确定</el-button>
  5190. </span>
  5191. </el-dialog>
  5192. <el-dialog
  5193. title="添加课程成员"
  5194. :visible.sync="dialogVisible3"
  5195. :append-to-body="true"
  5196. width="25%"
  5197. height="80%"
  5198. :before-close="handleClose"
  5199. class="addNewPP customWidth"
  5200. >
  5201. <div class="people">
  5202. <div class="people_top">
  5203. <div class="people_nav">选择成员</div>
  5204. <div class="people_top_right">
  5205. <div class="people_search">
  5206. <el-input
  5207. style="height: 100%"
  5208. placeholder="搜索成员名称"
  5209. v-model="searchPeople"
  5210. ></el-input>
  5211. <div class="search_img" @click="searchStudent">
  5212. <img src="../../../assets/icon/search.png" alt />
  5213. </div>
  5214. </div>
  5215. </div>
  5216. </div>
  5217. <el-checkbox-group v-model="checkboxList" class="people_name">
  5218. <el-checkbox
  5219. v-for="item in studentJuri"
  5220. :key="item.userid"
  5221. :label="item.userid"
  5222. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5223. >
  5224. </el-checkbox-group>
  5225. </div>
  5226. <span slot="footer" class="dialog-footer">
  5227. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5228. <el-button type="primary" @click="isAddPP">确定</el-button>
  5229. </span>
  5230. </el-dialog>
  5231. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  5232. :before-close="handleClose" class="addNewPP">
  5233. <div class="people" style="height: 300px">
  5234. <div class="people_top">
  5235. <div class="people_top_right">
  5236. <div class="people_search">
  5237. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  5238. <el-option label="全部" value=""></el-option>
  5239. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name" :value="item.id"></el-option>
  5240. </el-select>
  5241. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  5242. <!-- @click="getClass()"
  5243. @keyup.enter.native="getClass()"
  5244. -->
  5245. <div class="search_img">
  5246. <img src="../../../assets/icon/search.png" alt />
  5247. </div>
  5248. </div>
  5249. </div>
  5250. <div class="people_nav">选择班级</div>
  5251. </div>
  5252. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange" v-if="grade2.length" >
  5253. <div v-for="item in grade2" :key="item.id" class="p_box">
  5254. <el-checkbox :label="item.id">
  5255. {{ item.name }}
  5256. </el-checkbox>
  5257. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  5258. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  5259. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  5260. @click="OpenInviteD(item.id)">随机码设置</div>
  5261. <img src="../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  5262. </div>
  5263. </el-checkbox-group>
  5264. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  5265. </div>
  5266. <span slot="footer" class="dialog-footer">
  5267. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5268. <el-button type="primary" @click="isAddClass">确定</el-button>
  5269. </span>
  5270. </el-dialog>
  5271. <el-dialog
  5272. title="添加协同成员"
  5273. :visible.sync="dialogVisibleMember"
  5274. :append-to-body="true"
  5275. width="25%"
  5276. height="80%"
  5277. :before-close="handleClose"
  5278. class="addNewPP customWidth"
  5279. >
  5280. <div class="people">
  5281. <div class="people_top">
  5282. <div class="people_top_right">
  5283. <div class="people_search">
  5284. <el-input
  5285. placeholder="搜索成员名称"
  5286. v-model="searchTN"
  5287. @keyup.enter.native="getTeacher"
  5288. ></el-input>
  5289. <div class="search_img" @click="getTeacher">
  5290. <img src="../../../assets/icon/search.png" alt />
  5291. </div>
  5292. </div>
  5293. </div>
  5294. <div class="people_nav">选择成员</div>
  5295. </div>
  5296. <el-checkbox-group
  5297. v-model="checkboxList3"
  5298. class="people_name"
  5299. v-if="teacherJuri.length"
  5300. >
  5301. <el-checkbox
  5302. v-for="item in teacherJuri"
  5303. :key="item.userid"
  5304. :label="item.userid"
  5305. >
  5306. <div class="t_j_box">
  5307. <el-tooltip
  5308. placement="top"
  5309. :content="item.name ? item.name : '暂无姓名'"
  5310. >
  5311. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5312. </el-tooltip>
  5313. <el-tooltip placement="top" :content="item.username">
  5314. <span>{{ item.username }}</span>
  5315. </el-tooltip>
  5316. <el-tooltip placement="top" :content="item.school">
  5317. <span>{{ item.school }}</span>
  5318. </el-tooltip>
  5319. </div>
  5320. </el-checkbox>
  5321. </el-checkbox-group>
  5322. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5323. </div>
  5324. <span slot="footer" class="dialog-footer">
  5325. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5326. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5327. </span>
  5328. </el-dialog>
  5329. <el-dialog
  5330. title="创建问卷"
  5331. :visible.sync="dialogVisible5"
  5332. :append-to-body="true"
  5333. width="800px"
  5334. :before-close="handleClose"
  5335. class="dialog_diy"
  5336. >
  5337. <div>
  5338. <div
  5339. class="a_add_title"
  5340. style="
  5341. display: flex;
  5342. flex-direction: row;
  5343. align-items: center;
  5344. justify-content: center;
  5345. "
  5346. >
  5347. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5348. <el-input
  5349. v-model="askJson.askTitle"
  5350. placeholder="请输入标题"
  5351. style="width: 400px"
  5352. ></el-input>
  5353. </div>
  5354. <div class="a_addBox">
  5355. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  5356. <div
  5357. class="a_add_box"
  5358. v-for="(item1, index1) in askJson.askCount"
  5359. :key="index1"
  5360. >
  5361. <div class="a_add_checkType">
  5362. <span
  5363. :class="{
  5364. active:
  5365. askJson.askJson[index1].type == '1' ||
  5366. !askJson.askJson[index1].type,
  5367. }"
  5368. @click="checkAskType('1', askJson.askJson[index1])"
  5369. >单选题</span
  5370. >
  5371. <span
  5372. :class="{ active: askJson.askJson[index1].type == '2' }"
  5373. @click="checkAskType('2', askJson.askJson[index1])"
  5374. >多选题</span
  5375. >
  5376. </div>
  5377. <div class="a_add_head">
  5378. <div style="display: flex;align-items: center;">
  5379. {{ index1 + 1 + "、" }}
  5380. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  5381. " placeholder="请输入题目..." ></textarea>
  5382. </div>
  5383. <div class="a_add_head_div">
  5384. <el-button type="primary" size="small" @click="addAskList()"
  5385. >添加</el-button
  5386. >
  5387. <el-button
  5388. type="primary"
  5389. size="small"
  5390. @click="deleteAskList(index1)"
  5391. v-if="askJson.askCount != 1"
  5392. >删除
  5393. </el-button>
  5394. </div>
  5395. </div>
  5396. <div class="a_add_body">
  5397. <div class="a_add_input" style="flex-direction: column;">
  5398. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex" style=" margin: 20px 10px 0 0;display: flex;align-items:center;">
  5399. <div style="margin-right: 10px">
  5400. 选项{{ checkIndex + 1 }}
  5401. </div>
  5402. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  5403. " placeholder="请输入选项..." style="width: 300px;" ></textarea>
  5404. </div>
  5405. </div>
  5406. <div class="a_add_body_div">
  5407. <el-button
  5408. style="margin: 10px 0px 0 0"
  5409. type="primary"
  5410. size="small"
  5411. @click="addcheckList(askJson.askJson[index1])"
  5412. >添加</el-button
  5413. >
  5414. <el-button
  5415. type="primary"
  5416. size="small"
  5417. style="margin: 10px 0 0 10px"
  5418. @click="deletecheckList(askJson.askJson[index1])"
  5419. v-if="askJson.askJson[index1].askItem != 1"
  5420. >删除
  5421. </el-button>
  5422. </div>
  5423. </div>
  5424. </div>
  5425. </div>
  5426. </div>
  5427. <span slot="footer" class="dialog-footer">
  5428. <el-button @click="dialogVisible5 = false">取 消</el-button>
  5429. <el-button type="primary" @click="addAsk">确 定</el-button>
  5430. </span>
  5431. </el-dialog>
  5432. <el-dialog
  5433. title="创建选择题"
  5434. :visible.sync="dialogVisibleChoice"
  5435. :append-to-body="true"
  5436. width="800px"
  5437. :before-close="handleClose"
  5438. class="dialog_diy"
  5439. >
  5440. <div>
  5441. <!-- <div class="a_add_title" style="
  5442. display: flex;
  5443. flex-direction: row;
  5444. align-items: center;
  5445. justify-content: center;
  5446. ">
  5447. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5448. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5449. </div> -->
  5450. <div class="a_addBox">
  5451. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  5452. 请输入题目内容
  5453. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px">智能粘贴</button>
  5454. </div>
  5455. <div
  5456. class="a_add_box"
  5457. v-for="(item1, index1) in testJson.testCount"
  5458. :key="index1"
  5459. >
  5460. <div class="a_add_checkType">
  5461. <span
  5462. :class="{ active: testJson.testJson[index1].type == '1' }"
  5463. @click="checkTestType('1', testJson.testJson[index1])"
  5464. >单选题</span
  5465. >
  5466. <span
  5467. :class="{ active: testJson.testJson[index1].type == '2' }"
  5468. @click="checkTestType('2', testJson.testJson[index1])"
  5469. >多选题</span
  5470. >
  5471. </div>
  5472. <div class="a_add_head">
  5473. <div class="timuUpImg">
  5474. <div style="display: flex;align-items: center;">
  5475. {{ index1 + 1 + "、" }}
  5476. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  5477. placeholder="请输入题目...">
  5478. </el-input> -->
  5479. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目..."></textarea>
  5480. </div>
  5481. <div class="xzUpImg" @click.stop="addImg($event)">
  5482. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5483. <input
  5484. type="file"
  5485. accept="image/*"
  5486. style="display: none"
  5487. @change="beforeUploadTiMu($event, index1)"
  5488. />
  5489. </div>
  5490. </div>
  5491. <div class="a_add_head_div">
  5492. <el-button type="primary" size="small" @click="addTestList()"
  5493. >添加</el-button
  5494. >
  5495. <el-button
  5496. type="primary"
  5497. size="small"
  5498. @click="deleteTestList(index1)"
  5499. v-if="testJson.testCount != 1"
  5500. >删除
  5501. </el-button>
  5502. </div>
  5503. </div>
  5504. <div
  5505. class="timuImgBox"
  5506. v-if="
  5507. testJson.testJson[index1].timuList &&
  5508. testJson.testJson[index1].timuList.length
  5509. "
  5510. >
  5511. <div
  5512. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5513. :key="tIndex"
  5514. class="timuImg"
  5515. @click.stop="previewImg(timg.src)"
  5516. >
  5517. <img :src="timg.src" alt="" />
  5518. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5519. <img src="../../../assets/icon/delete.png" alt="" />
  5520. </div>
  5521. </div>
  5522. </div>
  5523. <div class="a_add_body">
  5524. <div class="a_add_input a_add_input_choice">
  5525. <el-radio-group
  5526. v-model="testJson.testJson[index1].answer"
  5527. v-if="testJson.testJson[index1].type == 1"
  5528. >
  5529. <div class="radioBox">
  5530. <el-radio
  5531. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5532. .testItem"
  5533. :key="checkIndex"
  5534. :label="checkIndex"
  5535. >
  5536. <div style="margin-right: 10px">
  5537. 选项{{ checkIndex + 1 }}
  5538. </div>
  5539. <div
  5540. style="margin-right: 10px; width: 300px"
  5541. v-if="
  5542. testJson.testJson[index1].checkList[checkIndex] &&
  5543. testJson.testJson[index1].checkList[checkIndex]
  5544. .imgType &&
  5545. testJson.testJson[index1].checkList[checkIndex]
  5546. .imgType == 1
  5547. "
  5548. >
  5549. <div
  5550. class="inImg"
  5551. @click.stop="
  5552. previewImg(
  5553. testJson.testJson[index1].checkList[checkIndex]
  5554. .src
  5555. )
  5556. "
  5557. >
  5558. <el-image
  5559. :src="
  5560. testJson.testJson[index1].checkList[checkIndex]
  5561. .src
  5562. "
  5563. lazy
  5564. />
  5565. <!-- <img :src="
  5566. testJson.testJson[index1].checkList[checkIndex]
  5567. .src
  5568. " alt="" /> -->
  5569. </div>
  5570. </div>
  5571. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  5572. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px" ></textarea>
  5573. <div class="xzUpImg" @click.stop="addImg($event)">
  5574. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5575. <input
  5576. type="file"
  5577. accept="image/*"
  5578. style="display: none"
  5579. @change="beforeUploadTi($event, index1, checkIndex)"
  5580. />
  5581. </div>
  5582. </el-radio>
  5583. </div>
  5584. </el-radio-group>
  5585. <el-checkbox-group
  5586. v-model="testJson.testJson[index1].answer"
  5587. v-if="testJson.testJson[index1].type == '2'"
  5588. >
  5589. <div class="radioBox">
  5590. <el-checkbox
  5591. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5592. .testItem"
  5593. :key="checkIndex1"
  5594. :label="checkIndex1"
  5595. >
  5596. <div style="margin-right: 10px">
  5597. 选项{{ checkIndex1 + 1 }}
  5598. </div>
  5599. <div
  5600. style="margin-right: 10px; width: 300px"
  5601. v-if="
  5602. testJson.testJson[index1].checkList[checkIndex1] &&
  5603. testJson.testJson[index1].checkList[checkIndex1]
  5604. .imgType &&
  5605. testJson.testJson[index1].checkList[checkIndex1]
  5606. .imgType == 1
  5607. "
  5608. >
  5609. <div
  5610. class="inImg"
  5611. @click.stop="
  5612. previewImg(
  5613. testJson.testJson[index1].checkList[checkIndex1]
  5614. .src
  5615. )
  5616. "
  5617. >
  5618. <el-image
  5619. :src="
  5620. testJson.testJson[index1].checkList[checkIndex1]
  5621. .src
  5622. "
  5623. lazy
  5624. />
  5625. <!-- <img :src="
  5626. testJson.testJson[index1].checkList[checkIndex1]
  5627. .src
  5628. " alt="" /> -->
  5629. </div>
  5630. </div>
  5631. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  5632. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px" ></textarea>
  5633. <div class="xzUpImg" @click.stop="addImg($event)">
  5634. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5635. <input
  5636. type="file"
  5637. accept="image/*"
  5638. style="display: none"
  5639. @change="beforeUploadTi($event, index1, checkIndex1)"
  5640. />
  5641. </div>
  5642. </el-checkbox>
  5643. </div>
  5644. </el-checkbox-group>
  5645. </div>
  5646. <div class="a_add_body_div" style="margin-bottom: 3px">
  5647. <el-button
  5648. type="primary"
  5649. size="small"
  5650. @click="addTcheckList(testJson.testJson[index1])"
  5651. >添加</el-button
  5652. >
  5653. <el-button
  5654. type="primary"
  5655. size="small"
  5656. @click="deleteTcheckList(testJson.testJson[index1])"
  5657. v-if="testJson.testJson[index1].testItem != 1"
  5658. >删除
  5659. </el-button>
  5660. </div>
  5661. </div>
  5662. </div>
  5663. </div>
  5664. </div>
  5665. <span slot="footer" class="dialog-footer">
  5666. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  5667. <el-button type="primary" @click="addTest">确 定</el-button>
  5668. </span>
  5669. </el-dialog>
  5670. <el-dialog
  5671. title="添加工具"
  5672. :visible.sync="dialogVisible4"
  5673. :append-to-body="true"
  5674. width="600px"
  5675. :before-close="handleClose"
  5676. class="dialog_diy addToolsDia"
  5677. >
  5678. <div class="toolChoose" style="padding: 0 0 0 30px">
  5679. <div class="tools">
  5680. <div
  5681. class="leftTools"
  5682. style="
  5683. width: 95%;
  5684. padding: 0 0 15px 0;
  5685. margin: 15px 0;
  5686. "
  5687. v-for="(itemTools, itemToolsIndex) in chapTools"
  5688. :key="itemToolsIndex"
  5689. >
  5690. <div
  5691. style="
  5692. display: flex;
  5693. flex-direction: row;
  5694. align-items: baseline;
  5695. flex-wrap: nowrap;
  5696. justify-content: flex-start;
  5697. position: relative;
  5698. "
  5699. >
  5700. <div class="chooseWho">
  5701. <div
  5702. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  5703. @click="chapToolsType = 0"
  5704. >
  5705. 互动类
  5706. </div>
  5707. <div
  5708. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  5709. @click="chapToolsType = 1"
  5710. >
  5711. 思维类
  5712. </div>
  5713. <div
  5714. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5715. @click="chapToolsType = 2"
  5716. >
  5717. 评价类
  5718. </div>
  5719. <div
  5720. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5721. @click="chapToolsType = 2"
  5722. >
  5723. 其他
  5724. </div>
  5725. </div>
  5726. </div>
  5727. <div style="min-height: 163px">
  5728. <div class="toolSort" v-if="chapToolsType == 0">
  5729. <div class="tool">
  5730. <div class="whiteBIcon" @click="chapAddTools(8)">
  5731. <img
  5732. src="../../../assets/icon/secondToolList/library.png"
  5733. alt
  5734. />
  5735. <div style="margin: 5px 0">素材库</div>
  5736. </div>
  5737. <div class="check" @click="chapAddTools(8)">
  5738. <img
  5739. src="../../../assets/icon/checkNo.png"
  5740. alt
  5741. v-if="itemTools.tools.indexOf(8) == -1"
  5742. />
  5743. <div class="checkDiv" v-else>
  5744. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5745. >已选择</span
  5746. >
  5747. </div>
  5748. </div>
  5749. </div>
  5750. </div>
  5751. <div class="toolSort" v-if="chapToolsType == 1">
  5752. <div class="tool">
  5753. <div class="whiteBIcon" @click="chapAddTools(7)">
  5754. <img
  5755. src="../../../assets/icon/secondToolList/mindNetwork.png"
  5756. alt
  5757. />
  5758. <div style="margin: 5px 0">思维网格</div>
  5759. </div>
  5760. <div class="check" @click="chapAddTools(7)">
  5761. <img
  5762. src="../../../assets/icon/checkNo.png"
  5763. alt
  5764. v-if="itemTools.tools.indexOf(7) == -1"
  5765. />
  5766. <div class="checkDiv" v-else>
  5767. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5768. >已选择</span
  5769. >
  5770. </div>
  5771. </div>
  5772. </div>
  5773. <div class="tool">
  5774. <div class="whiteBIcon" @click="chapAddTools(1)">
  5775. <img
  5776. src="../../../assets/icon/secondToolList/whiteBoard.png"
  5777. alt
  5778. />
  5779. <div style="margin: 5px 0">电子白板</div>
  5780. </div>
  5781. <div class="check" @click="chapAddTools(1)">
  5782. <img
  5783. src="../../../assets/icon/checkNo.png"
  5784. alt
  5785. v-if="itemTools.tools.indexOf(1) == -1"
  5786. />
  5787. <div class="checkDiv" v-else>
  5788. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5789. >已选择</span
  5790. >
  5791. </div>
  5792. </div>
  5793. </div>
  5794. <div class="tool">
  5795. <div class="whiteBIcon" @click="chapAddTools(2)">
  5796. <img
  5797. src="../../../assets/icon/secondToolList/note.png"
  5798. alt
  5799. />
  5800. <div style="margin: 5px 0">便签</div>
  5801. </div>
  5802. <div class="check" @click="chapAddTools(2)">
  5803. <img
  5804. src="../../../assets/icon/checkNo.png"
  5805. alt
  5806. v-if="itemTools.tools.indexOf(2) == -1"
  5807. />
  5808. <div class="checkDiv" v-else>
  5809. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5810. >已选择</span
  5811. >
  5812. </div>
  5813. </div>
  5814. </div>
  5815. <div class="tool">
  5816. <div class="whiteBIcon" @click="chapAddTools(6)">
  5817. <img
  5818. src="../../../assets/icon/secondToolList/doc.png"
  5819. alt
  5820. />
  5821. <div style="margin: 5px 0">协同文档</div>
  5822. </div>
  5823. <div class="check" @click="chapAddTools(6)">
  5824. <img
  5825. src="../../../assets/icon/checkNo.png"
  5826. alt
  5827. v-if="itemTools.tools.indexOf(6) == -1"
  5828. />
  5829. <div class="checkDiv" v-else>
  5830. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5831. >已选择</span
  5832. >
  5833. </div>
  5834. </div>
  5835. </div>
  5836. <div class="tool">
  5837. <div class="whiteBIcon" @click="chapAddTools(3)">
  5838. <img
  5839. src="../../../assets/icon/secondToolList/mindMapping.png"
  5840. alt
  5841. />
  5842. <div style="margin: 5px 0">思维导图</div>
  5843. </div>
  5844. <div class="check" @click="chapAddTools(3)">
  5845. <img
  5846. src="../../../assets/icon/checkNo.png"
  5847. alt
  5848. v-if="itemTools.tools.indexOf(3) == -1"
  5849. />
  5850. <div class="checkDiv" v-else>
  5851. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5852. >已选择</span
  5853. >
  5854. </div>
  5855. </div>
  5856. </div>
  5857. <div class="tool">
  5858. <div class="whiteBIcon" @click="chapAddTools(31)">
  5859. <img
  5860. src="../../../assets/icon/secondToolList/networkPanel.png"
  5861. alt
  5862. />
  5863. <div style="margin: 5px 0">数学画板</div>
  5864. </div>
  5865. <div class="check" @click="chapAddTools(31)">
  5866. <img
  5867. src="../../../assets/icon/checkNo.png"
  5868. alt
  5869. v-if="itemTools.tools.indexOf(31) == -1"
  5870. />
  5871. <div class="checkDiv" v-else>
  5872. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5873. >已选择</span
  5874. >
  5875. </div>
  5876. </div>
  5877. </div>
  5878. </div>
  5879. <div class="toolSort" v-if="chapToolsType == 2">
  5880. <div class="tool">
  5881. <div class="whiteBIcon" @click="chapAddTools(5)">
  5882. <img
  5883. src="../../../assets/icon/thirdToolList/score.png"
  5884. alt
  5885. />
  5886. <div style="margin: 5px 0">量规评分</div>
  5887. </div>
  5888. <div class="check" @click="chapAddTools(5)">
  5889. <img
  5890. src="../../../assets/icon/checkNo.png"
  5891. alt
  5892. v-if="itemTools.tools.indexOf(5) == -1"
  5893. />
  5894. <div class="checkDiv" v-else>
  5895. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5896. >已选择</span
  5897. >
  5898. </div>
  5899. </div>
  5900. </div>
  5901. <div class="tool">
  5902. <div
  5903. class="whiteBIcon"
  5904. @click="openTools(chapCount, 4, null)"
  5905. >
  5906. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  5907. <div style="margin: 5px 0">问卷调查</div>
  5908. </div>
  5909. <div class="check" @click="chapAddTools(4)">
  5910. <img
  5911. src="../../../assets/icon/checkNo.png"
  5912. alt
  5913. v-if="itemTools.tools.indexOf(4) == -1"
  5914. />
  5915. <div class="checkDiv" v-else>
  5916. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5917. >已选择</span
  5918. >
  5919. </div>
  5920. </div>
  5921. </div>
  5922. </div>
  5923. </div>
  5924. <div>
  5925. <input
  5926. type="text"
  5927. placeholder="添加工具描述"
  5928. class="binfo_input"
  5929. style="margin: 20px 0; width: 71.5% !important"
  5930. v-model="itemTools.toolDetail"
  5931. />
  5932. </div>
  5933. </div>
  5934. </div>
  5935. </div>
  5936. <span slot="footer" class="dialog-footer">
  5937. <el-button @click="dialogVisible4 = false">取 消</el-button>
  5938. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  5939. </span>
  5940. </el-dialog>
  5941. <el-dialog
  5942. title="添加问答"
  5943. :visible.sync="dialogVisible8"
  5944. :append-to-body="true"
  5945. width="500px"
  5946. :before-close="handleClose"
  5947. class="dialog_diy"
  5948. >
  5949. <div>
  5950. <div
  5951. class="a_add_title"
  5952. style="
  5953. display: flex;
  5954. flex-direction: column;
  5955. align-items: flex-start;
  5956. justify-content: center;
  5957. "
  5958. >
  5959. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  5960. <el-input
  5961. v-model="answerQ"
  5962. placeholder="请输入您要问的问题"
  5963. ></el-input>
  5964. </div>
  5965. </div>
  5966. <span slot="footer" class="dialog-footer">
  5967. <el-button @click="dialogVisible8 = false">取 消</el-button>
  5968. <el-button type="primary" @click="addAnswer">确 定</el-button>
  5969. </span>
  5970. </el-dialog>
  5971. <el-dialog
  5972. title="添加问题"
  5973. :visible.sync="dialogVisibleMp3"
  5974. :append-to-body="true"
  5975. width="500px"
  5976. :before-close="handleClose"
  5977. class="dialog_diy"
  5978. >
  5979. <div>
  5980. <div
  5981. class="a_add_title"
  5982. style="
  5983. display: flex;
  5984. flex-direction: column;
  5985. align-items: flex-start;
  5986. justify-content: center;
  5987. "
  5988. >
  5989. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  5990. <el-input
  5991. v-model="answerQ"
  5992. placeholder="请输入您想要回答的问题"
  5993. ></el-input>
  5994. </div>
  5995. </div>
  5996. <span slot="footer" class="dialog-footer">
  5997. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  5998. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  5999. </span>
  6000. </el-dialog>
  6001. <el-dialog
  6002. title="上传图片"
  6003. :visible.sync="choosePicVisible"
  6004. :append-to-body="true"
  6005. width="500px"
  6006. :before-close="handleClose"
  6007. class="dialog_diy"
  6008. >
  6009. <div>
  6010. <div class="fileCss" style="padding-top: 20px">
  6011. <div>
  6012. <button class="info_btn" @click="addImg($event)">
  6013. 选择本地文件
  6014. <input
  6015. type="file"
  6016. accept="image/*"
  6017. style="display: none"
  6018. @change="beforeUpload1"
  6019. />
  6020. </button>
  6021. </div>
  6022. <div>
  6023. <el-button
  6024. @click="getAllBanner"
  6025. v-if="isSysPic == false && cover.length == 0"
  6026. >选择系统文件</el-button
  6027. >
  6028. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6029. <img :src="cover[0].url" alt="" />
  6030. <div class="deletePic" @click="deleteSysPic">
  6031. <img src="../../../assets/icon/delete.png" alt="" />
  6032. </div>
  6033. </div>
  6034. </div>
  6035. </div>
  6036. <div class="fileCss">
  6037. <div>选择本地文件</div>
  6038. <div>选择系统文件</div>
  6039. </div>
  6040. </div>
  6041. <span slot="footer" class="dialog-footer">
  6042. <el-button @click="choosePicVisible = false">取 消</el-button>
  6043. <el-button type="primary" @click="choosePicVisible = false"
  6044. >确 定</el-button
  6045. >
  6046. </span>
  6047. </el-dialog>
  6048. <el-dialog
  6049. title="选择系统文件"
  6050. :visible.sync="sysPicVisible"
  6051. :append-to-body="true"
  6052. width="710px"
  6053. :before-close="handleClose"
  6054. class="dialog_diy"
  6055. >
  6056. <div class="cru_selectBox" style="margin: 0">
  6057. <div
  6058. @click="getChoosePic(1)"
  6059. class="cru_select"
  6060. :class="chooseType == 1 ? 'cru_selected' : ''"
  6061. >
  6062. 绘画
  6063. </div>
  6064. <div
  6065. @click="getChoosePic(2)"
  6066. class="cru_select"
  6067. :class="chooseType == 2 ? 'cru_selected' : ''"
  6068. >
  6069. 科技
  6070. </div>
  6071. <div
  6072. @click="getChoosePic(3)"
  6073. class="cru_select"
  6074. :class="chooseType == 3 ? 'cru_selected' : ''"
  6075. >
  6076. 人文
  6077. </div>
  6078. <div
  6079. @click="getChoosePic(4)"
  6080. class="cru_select"
  6081. :class="chooseType == 4 ? 'cru_selected' : ''"
  6082. >
  6083. 艺术
  6084. </div>
  6085. </div>
  6086. <div class="sysPicBox">
  6087. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6088. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6089. </div>
  6090. </div>
  6091. <span slot="footer" class="dialog-footer">
  6092. <el-button @click="sysPicVisible = false">取 消</el-button>
  6093. <el-button type="primary">确 定</el-button>
  6094. </span>
  6095. </el-dialog>
  6096. <el-dialog
  6097. title="选择填空"
  6098. :visible.sync="dialogVisibleSelect"
  6099. :append-to-body="true"
  6100. width="800px"
  6101. :before-close="handleClose"
  6102. class="dialog_diy dialog_diy3"
  6103. >
  6104. <div v-if="selectJson">
  6105. <div class="select_box1" v-if="selectSteps == 1">
  6106. <div class="select_box1_img">
  6107. <div class="select_box1_title">
  6108. <span>上传题目图片</span
  6109. ><span>提示:请将题目以图片的方式上传</span>
  6110. </div>
  6111. <div class="select_box1_add_img">
  6112. <div
  6113. class="uploadFm"
  6114. @click="addImg($event)"
  6115. v-if="!selectJson.url"
  6116. >
  6117. <input
  6118. type="file"
  6119. accept="image/*"
  6120. style="display: none"
  6121. @change="beforeUploadSelect"
  6122. />
  6123. <img src="../../../assets/icon/addPoster.png" alt="" />
  6124. </div>
  6125. <div class="isSysPic" v-else>
  6126. <img :src="selectJson.url" alt="" />
  6127. <div class="deletePic" @click="deleteSelectPic">
  6128. <img src="../../../assets/icon/delete.png" alt="" />
  6129. </div>
  6130. </div>
  6131. </div>
  6132. </div>
  6133. <div class="select_box1_select">
  6134. <div class="select_box1_title">
  6135. <span>添加选项</span><span>提示:请输入题目选项</span>
  6136. </div>
  6137. <div class="select_box1_select_box">
  6138. <el-input
  6139. v-for="(item2, checkIndex) in selectJson.select"
  6140. :key="checkIndex"
  6141. v-model="selectJson.select[checkIndex]"
  6142. placeholder="请输入选项..."
  6143. style="width: 150px; margin: 10px 10px 0 0"
  6144. ></el-input>
  6145. <div class="select_box1_select_box_add">
  6146. <el-button
  6147. style="margin: 10px 0px 0 0"
  6148. type="primary"
  6149. size="small"
  6150. @click="addSelectList(selectJson)"
  6151. >
  6152. 添加</el-button
  6153. >
  6154. <el-button
  6155. type="primary"
  6156. size="small"
  6157. style="margin: 10px 0 0 0"
  6158. @click="deleteSelectList(selectJson)"
  6159. v-if="selectJson.select && selectJson.select.length > 0"
  6160. >删除</el-button
  6161. >
  6162. </div>
  6163. </div>
  6164. </div>
  6165. </div>
  6166. <div v-if="selectSteps == 2">
  6167. <div class="select_box2">
  6168. <div class="select_box2_title">设置答案</div>
  6169. <div class="select_box2_box">
  6170. <div class="select_box2_img">
  6171. <img :src="selectJson.url" alt="" />
  6172. </div>
  6173. <div class="select_box2_answer">
  6174. <div class="select_answer_title">根据题目选择对应答案</div>
  6175. <div
  6176. class="select_box2_answer_box"
  6177. v-for="(item2, checkIndex) in selectJson.select"
  6178. :key="checkIndex"
  6179. >
  6180. <span>{{ checkIndex + 1 }}、</span>
  6181. <el-select
  6182. v-model="selectJson.answer[checkIndex]"
  6183. placeholder="请选择正确答案"
  6184. >
  6185. <el-option
  6186. v-for="(e, eIndex) in selectJson.select"
  6187. :key="eIndex"
  6188. :label="e"
  6189. :value="eIndex"
  6190. >
  6191. </el-option>
  6192. </el-select>
  6193. </div>
  6194. </div>
  6195. </div>
  6196. </div>
  6197. </div>
  6198. </div>
  6199. <span slot="footer" class="dialog-footer">
  6200. <el-button
  6201. type="primary"
  6202. @click="nextSelectSteps()"
  6203. v-if="selectSteps == 1"
  6204. >下一步</el-button
  6205. >
  6206. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6207. >上一步</el-button
  6208. >
  6209. <el-button
  6210. type="primary"
  6211. @click="addSelectAnswer"
  6212. v-if="selectSteps == 2"
  6213. >确 定</el-button
  6214. >
  6215. </span>
  6216. </el-dialog>
  6217. <el-dialog
  6218. title="添加评价"
  6219. :visible.sync="dialogVisibleRate"
  6220. :append-to-body="true"
  6221. width="650px"
  6222. :before-close="handleClose"
  6223. class="dialog_diy"
  6224. >
  6225. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6226. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6227. <div class="pjCss" style="width: 100%">
  6228. <div
  6229. v-if="rateJson.length"
  6230. class="elist_input"
  6231. style="height: 360px; overflow: auto"
  6232. >
  6233. <div
  6234. v-for="(eItem, eIndex) in rateJson"
  6235. :key="eIndex"
  6236. class="elist_input_box"
  6237. >
  6238. <span style="min-width: 100px; text-align: right"
  6239. >个人评价指标:</span
  6240. >
  6241. <input
  6242. type="input"
  6243. v-model="eItem.value"
  6244. placeholder="填写评价名称"
  6245. />
  6246. <div class="remove" @click="deletRateList(eIndex)"></div>
  6247. <div style="width: 100%; display: flex">
  6248. <span style="min-width: 100px; text-align: right"
  6249. >评星等级:</span
  6250. >
  6251. <el-rate v-model="eItem.score" disabled></el-rate>
  6252. </div>
  6253. <div class="elist_inptu_text" style="align-items: flex-start">
  6254. <span style="min-width: 100px; text-align: right">描述:</span>
  6255. <textarea
  6256. class="rate_textarea"
  6257. :rows="3"
  6258. v-model="eItem.detail"
  6259. placeholder="填写评价描述"
  6260. ></textarea>
  6261. </div>
  6262. </div>
  6263. </div>
  6264. <div class="addToolFun" @click="addRateList()">
  6265. <div class="addToolImg">
  6266. <img src="../../../assets/icon/add.png" alt />
  6267. </div>
  6268. <div>添加</div>
  6269. </div>
  6270. </div>
  6271. </div>
  6272. <span slot="footer" class="dialog-footer">
  6273. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6274. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6275. </span>
  6276. </el-dialog>
  6277. <el-dialog
  6278. title="连词成句设置"
  6279. :visible.sync="dialogVisibleSentence"
  6280. :append-to-body="true"
  6281. width="1000px"
  6282. :before-close="handleClose"
  6283. class="dialog_diy dialog_diy3"
  6284. >
  6285. <div>
  6286. <div class="sentenBox">
  6287. <div class="addSen" @click="addSt">添加题目</div>
  6288. <div
  6289. v-for="(st, stIndex) in sentenceList"
  6290. :key="stIndex"
  6291. style="padding-bottom: 20px"
  6292. >
  6293. <div class="sentenTopBox">
  6294. <div class="sentenTop">
  6295. <div>题目设置</div>
  6296. <div>
  6297. <el-input
  6298. placeholder="请输入卡片内容"
  6299. v-model="st.sentenceTitle"
  6300. ></el-input>
  6301. </div>
  6302. <div @click="addSen(stIndex)">添加</div>
  6303. </div>
  6304. <div
  6305. class="remove1"
  6306. v-if="sentenceList.length > 1"
  6307. @click="deleteSentence(stIndex)"
  6308. ></div>
  6309. </div>
  6310. <div class="cardList">
  6311. <div v-if="st.addSentence.length > 0" class="cardBox">
  6312. <div
  6313. class="isCard"
  6314. v-for="(s, sIndex) in st.addSentence"
  6315. :key="sIndex"
  6316. @click="setRightAnswer(s, stIndex, sIndex)"
  6317. >
  6318. <el-tooltip
  6319. class="item"
  6320. effect="light"
  6321. :content="s"
  6322. placement="top"
  6323. >
  6324. <div>{{ s }}</div>
  6325. </el-tooltip>
  6326. <div
  6327. class="deleteWord"
  6328. @click.stop="deleteS(s, stIndex, sIndex)"
  6329. >
  6330. <img src="../../../assets/icon/delete.png" alt="" />
  6331. </div>
  6332. </div>
  6333. </div>
  6334. <div class="card">
  6335. <img
  6336. src="../../../assets/icon/conSentences/noTitle.png"
  6337. alt=""
  6338. />
  6339. </div>
  6340. </div>
  6341. <div class="rightCardBox">
  6342. <div>正确顺序</div>
  6343. <div class="rightCardList">
  6344. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6345. <div
  6346. v-for="(r, rIndex) in st.rightAnswer"
  6347. :key="rIndex"
  6348. class="cardCss"
  6349. >
  6350. <div
  6351. class="isCard1"
  6352. @click="returnCard(r, stIndex, rIndex)"
  6353. >
  6354. <el-tooltip
  6355. class="item"
  6356. effect="light"
  6357. :content="r"
  6358. placement="top"
  6359. >
  6360. <div>{{ r }}</div>
  6361. </el-tooltip>
  6362. </div>
  6363. <div>{{ rIndex + 1 }}</div>
  6364. </div>
  6365. </div>
  6366. <div class="card" v-if="st.rightAnswer.length == 0">
  6367. <img
  6368. src="../../../assets/icon/conSentences/noAnswer.png"
  6369. alt=""
  6370. />
  6371. </div>
  6372. </div>
  6373. </div>
  6374. </div>
  6375. </div>
  6376. </div>
  6377. <span slot="footer" class="dialog-footer">
  6378. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  6379. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6380. </span>
  6381. </el-dialog>
  6382. <el-dialog
  6383. title="添加表格"
  6384. :visible.sync="dialogVisibleTable"
  6385. :append-to-body="true"
  6386. width="95%"
  6387. :before-close="handleClose"
  6388. class="dialog_diy"
  6389. >
  6390. <el-form>
  6391. <!-- <el-form-item label="文本标题">
  6392. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6393. </el-form-item> -->
  6394. <div>表格内容</div>
  6395. <Table v-model="tableJson.text" @change="change"></Table>
  6396. </el-form>
  6397. <span slot="footer" class="dialog-footer">
  6398. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6399. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6400. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6401. </span>
  6402. </el-dialog>
  6403. <el-dialog
  6404. title="添加文档"
  6405. :visible.sync="dialogVisibleWord"
  6406. :append-to-body="true"
  6407. width="800px"
  6408. :before-close="handleClose"
  6409. class="dialog_diy"
  6410. >
  6411. <el-form>
  6412. <!-- <el-form-item label="文本标题">
  6413. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6414. </el-form-item> -->
  6415. <div>文档内容</div>
  6416. <editor-bar v-model="wordJson.text"></editor-bar>
  6417. </el-form>
  6418. <span slot="footer" class="dialog-footer">
  6419. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6420. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6421. </span>
  6422. </el-dialog>
  6423. <el-dialog
  6424. title="添加班级"
  6425. :visible.sync="dialogVisibleMoreUpload"
  6426. :append-to-body="true"
  6427. width="30%"
  6428. :before-close="handleClose"
  6429. class="dialog_diy"
  6430. >
  6431. <div
  6432. style="
  6433. width: 100%;
  6434. display: flex;
  6435. flex-direction: row;
  6436. flex-wrap: nowrap;
  6437. align-items: center;
  6438. justify-content: center;
  6439. "
  6440. >
  6441. <div>班级:</div>
  6442. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6443. <el-option
  6444. v-for="item in classJuri"
  6445. :key="item.id"
  6446. :label="item.name"
  6447. :value="item.id"
  6448. >
  6449. </el-option>
  6450. </el-select>
  6451. </div>
  6452. <span slot="footer" class="dialog-footer">
  6453. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  6454. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  6455. </span>
  6456. </el-dialog>
  6457. <el-dialog
  6458. title="设置随机码"
  6459. :visible.sync="dialogVisibleInvite"
  6460. :append-to-body="true"
  6461. width="360px"
  6462. :before-close="handleClose"
  6463. class="dialog_diy"
  6464. >
  6465. <div
  6466. style="
  6467. width: 100%;
  6468. display: flex;
  6469. flex-direction: row;
  6470. flex-wrap: nowrap;
  6471. align-items: center;
  6472. justify-content: center;
  6473. "
  6474. >
  6475. <div>随机码:</div>
  6476. <el-input
  6477. v-model="icode"
  6478. style="width: 240px"
  6479. placeholder="请输入随机码"
  6480. ></el-input>
  6481. </div>
  6482. <span slot="footer" class="dialog-footer">
  6483. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  6484. <el-button type="primary" @click="addInvite">确定</el-button>
  6485. </span>
  6486. </el-dialog>
  6487. <el-dialog
  6488. title="添加预设时间"
  6489. :visible.sync="dialogVisiblePreTime"
  6490. :append-to-body="true"
  6491. width="30%"
  6492. :before-close="handleClose"
  6493. class="dialog_diy"
  6494. >
  6495. <div>
  6496. <Time
  6497. :preTime="preTime"
  6498. @updateTimeNum="updateTime"
  6499. v-if="dialogVisiblePreTime"
  6500. ></Time>
  6501. </div>
  6502. <span slot="footer" class="dialog-footer">
  6503. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  6504. <el-button type="primary" @click="addPreTime">确定</el-button>
  6505. </span>
  6506. </el-dialog>
  6507. <el-dialog
  6508. title="导入目标"
  6509. :visible.sync="dialogVisiblemb"
  6510. :append-to-body="true"
  6511. width="70%"
  6512. :before-close="handleClose"
  6513. class="dialog_diy"
  6514. >
  6515. <div>
  6516. <div
  6517. style="
  6518. width: 100%;
  6519. display: flex;
  6520. flex-direction: row;
  6521. flex-wrap: nowrap;
  6522. align-content: center;
  6523. align-items: center;
  6524. justify-content: space-between;
  6525. "
  6526. >
  6527. <div
  6528. style="
  6529. display: flex;
  6530. flex-flow: row nowrap;
  6531. align-items: flex-start;
  6532. width: 100%;
  6533. flex-direction: column;
  6534. flex-wrap: nowrap;
  6535. position: relative;
  6536. "
  6537. >
  6538. <div class="e_box">
  6539. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  6540. <div class="e_card_picture">
  6541. <img src="../../../assets/e_picture.png" />
  6542. </div>
  6543. <div class="e_card_name">
  6544. <span>{{ item.title }}</span>
  6545. </div>
  6546. <div class="e_card_btn">
  6547. <span @click="checkEva(item.id, 2)">导入</span>
  6548. </div>
  6549. </div>
  6550. <div class="addEva" @click="openT">
  6551. <img src="../../../assets/icon/addEva.png" alt="" />
  6552. </div>
  6553. <div
  6554. v-if="evaJuri.length === 0"
  6555. style="margin: 0 auto; color: #6e6e6e"
  6556. >
  6557. 暂无数据
  6558. </div>
  6559. </div>
  6560. </div>
  6561. </div>
  6562. </div>
  6563. <span slot="footer" class="dialog-footer">
  6564. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  6565. </span>
  6566. </el-dialog>
  6567. <el-dialog
  6568. title="分组设置"
  6569. :visible.sync="dialogVisibleGroup"
  6570. :append-to-body="true"
  6571. width="650px"
  6572. :before-close="handleClose"
  6573. class="dialog_diy"
  6574. >
  6575. <div class="groupBox">
  6576. <div v-if="groupJson.group" class="groupContent">
  6577. <div class="groupTitle">请设置小组数量</div>
  6578. <div
  6579. v-for="(item, index) in groupJson.group"
  6580. :key="index"
  6581. class="groupName"
  6582. >
  6583. <span class="groupn">组{{ index + 1 }}名称:</span>
  6584. <el-input
  6585. v-model="item.name"
  6586. placeholder="请输入名称..."
  6587. style="width: 250px"
  6588. ></el-input>
  6589. <div class="groupBtn">
  6590. <el-button type="primary" size="small" @click="addGroup(index)">
  6591. 添加</el-button
  6592. >
  6593. <el-button
  6594. type="primary"
  6595. size="small"
  6596. @click="deleteGroup(index)"
  6597. v-if="groupJson.group && groupJson.group.length > 1"
  6598. >删除</el-button
  6599. >
  6600. </div>
  6601. </div>
  6602. </div>
  6603. <div class="groupContent">
  6604. <div class="groupTitle">请设置每组人数数量</div>
  6605. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  6606. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  6607. <el-input-number
  6608. v-model="groupJson.number"
  6609. :controls="false"
  6610. :min="2"
  6611. :max="10"
  6612. placeholder="2-10人以内"
  6613. ></el-input-number>
  6614. </div>
  6615. </div>
  6616. <span slot="footer" class="dialog-footer">
  6617. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  6618. <el-button type="primary" @click="addGroupJson">确定</el-button>
  6619. </span>
  6620. </el-dialog>
  6621. <interVideo
  6622. :dialogVisibleVideo.sync="dialogVisibleVideo"
  6623. :videoJson="videoJson"
  6624. @add="addVideoJson"
  6625. ></interVideo>
  6626. </div>
  6627. </template>
  6628. <script>
  6629. import "../../../common/aws-sdk-2.235.1.min.js";
  6630. import $ from "jquery";
  6631. import EditorBar from "../../../components/tools/wangEnduit";
  6632. import Table from "../../../components/tools/table";
  6633. import Mind from "../../tools/jsmind2";
  6634. import Time from "../../tools/time.vue";
  6635. import Sunburst from "../../tools/sunburst";
  6636. import SeeBoard from "../../tools/seeBoard";
  6637. import weilaiData from "../components/weilai.js";
  6638. import sourceDialog from "../teacherSource/dialog.vue";
  6639. import interVideo from "../interVideo/index.vue";
  6640. export default {
  6641. components: {
  6642. EditorBar,
  6643. Mind,
  6644. Time,
  6645. Sunburst,
  6646. SeeBoard,
  6647. Table,
  6648. sourceDialog,
  6649. interVideo,
  6650. },
  6651. data() {
  6652. return {
  6653. checkAll: false,
  6654. chooseType: 1,
  6655. checkedCities: [],
  6656. isIndeterminate: true,
  6657. isSysPic: false,
  6658. steps: 1,
  6659. nbOrder: 0,
  6660. courseId: "",
  6661. chapToolsType: 0,
  6662. chapTools: [
  6663. {
  6664. tools: [],
  6665. toolDetail: "",
  6666. },
  6667. ],
  6668. line: "",
  6669. lineTitle: "",
  6670. sysPic: [],
  6671. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  6672. isPushTitleList: [],
  6673. lineCount: 0,
  6674. lineType: 0,
  6675. chapCount: 0,
  6676. courseName: "",
  6677. isTeacherSee: false,
  6678. courseText: "",
  6679. preTime: 0,
  6680. formLabelWidth: "100px",
  6681. choosePicVisible: false,
  6682. sysPicVisible: false,
  6683. uploadLoading1: false,
  6684. noneBtnImg: false,
  6685. updateBoolean2: false,
  6686. unitIndex: 0,
  6687. taskCount: 0,
  6688. dialogVisible: false,
  6689. dialogVisible1: false,
  6690. dialogVisible2: false,
  6691. dialogVisible3: false,
  6692. dialogVisible4: false,
  6693. dialogVisible5: false,
  6694. dialogVisible6: false,
  6695. dialogVisible7: false,
  6696. dialogVisible8: false,
  6697. dialogVisible9: false,
  6698. dialogVisibleClass: false,
  6699. dialogVisibleMember: false,
  6700. dialogVisibleMp3: false,
  6701. dialogVisibleSelect: false,
  6702. dialogVisibleSentence: false,
  6703. dialogVisibleRate: false,
  6704. dialogVisibleChoice: false,
  6705. dialogVisiblemb: false,
  6706. dialogVisibleInvite: false,
  6707. dialogVisibleSource: false,
  6708. dialogVisibleVideo: false,
  6709. isClickColor: 0,
  6710. publicTool: 0,
  6711. searchPeople: "",
  6712. searchTN: "",
  6713. userid: this.$route.query.userid,
  6714. oid: this.$route.query.oid,
  6715. org: this.$route.query.org,
  6716. role: this.$route.query.role,
  6717. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  6718. dialogVisibleTable: false,
  6719. dialogVisibleWord: false,
  6720. tableJson: { text: "" },
  6721. wordJson: { text: "" },
  6722. dialogVisibleMoreUpload: false,
  6723. dialogVisiblePreTime: false,
  6724. uploadJson: [],
  6725. classJuri: [],
  6726. gradeList: [],
  6727. cover: [], //课程封面
  6728. myWord: [],
  6729. evaJuri: [],
  6730. evalua: "",
  6731. targetArray: [],
  6732. eTitle: "",
  6733. eJson: {},
  6734. fid: "", //一级
  6735. sid: "", //二级
  6736. tid: "", //二级
  6737. typeMode: 1,
  6738. eJSONNum: 0,
  6739. data: {
  6740. meta: {
  6741. name: "example",
  6742. author: "dd@163.com",
  6743. version: "0.2",
  6744. },
  6745. format: "node_array",
  6746. data: [{ id: "root", isroot: true, topic: "" }],
  6747. },
  6748. askJson: {
  6749. askCount: 1,
  6750. askTitle: "",
  6751. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6752. },
  6753. testJson: {},
  6754. selectJson: {},
  6755. rateJson: [],
  6756. unitJson2: [],
  6757. unitJson: [
  6758. {
  6759. dyName: "", //单元标题
  6760. chapterInfo: [
  6761. {
  6762. isread: false,
  6763. chapterid: this.guid(),
  6764. title: "",
  6765. courseName: "",
  6766. taskJson: [
  6767. {
  6768. task: "",
  6769. taskDetail: "",
  6770. chapterData: [],
  6771. toolChoose: [
  6772. {
  6773. tool: [],
  6774. toolDetail: "",
  6775. toolType: 0,
  6776. askCount: 1,
  6777. askTitle: "",
  6778. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6779. },
  6780. ],
  6781. toolText: "",
  6782. isShowTools: false,
  6783. askCount: 1,
  6784. isFold: 0,
  6785. askTitle: "",
  6786. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6787. checkJson: [{ checkCount: [], checkPerent: [] }],
  6788. homeworkList: [],
  6789. },
  6790. ],
  6791. itemCount: 1,
  6792. fileList1: [],
  6793. video: [],
  6794. testData: [],
  6795. pData: [],
  6796. templateArray: [],
  6797. },
  6798. ],
  6799. },
  6800. ],
  6801. studentJuri: [],
  6802. teacherJuri: [],
  6803. checkboxList: [],
  6804. checkboxList2: [],
  6805. checkboxList3: [],
  6806. classSearch: "",
  6807. gradeId:"",
  6808. number: "",
  6809. tTitle: "",
  6810. tdetail: "",
  6811. templateC: {},
  6812. AttText: {},
  6813. AttTextType: 0,
  6814. AttTextIndex: 0,
  6815. cTemplate: "",
  6816. CourseType: [],
  6817. CourseType2: [],
  6818. CourseTypeJson: {},
  6819. courseTypeId: [],
  6820. courseTypeSon: [],
  6821. clearArray: [],
  6822. pTypeCheck: [],
  6823. pTypeCheckName: [],
  6824. loading: false,
  6825. toolType: 0,
  6826. inputShow: true,
  6827. inputShow2: true,
  6828. toolIndex: 0,
  6829. cidType: 0,
  6830. answerQ: "",
  6831. grade: [],
  6832. grade2: [],
  6833. courseUserid: "",
  6834. timer: null,
  6835. timer2: null,
  6836. checkId: "",
  6837. isDelete: 1,
  6838. addindex: 0,
  6839. selectSteps: 1,
  6840. groupJson: {},
  6841. dialogVisibleGroup: false,
  6842. rightBoxHeight: 0,
  6843. ManAarray: [],
  6844. checkBoolean: false,
  6845. inviteCode: [],
  6846. inviteId: "",
  6847. icode: "",
  6848. easyArray: [2, 4],
  6849. sourceData: {},
  6850. videoJson: {},
  6851. };
  6852. },
  6853. directives: {
  6854. autoHeight: {
  6855. update(el, binding) {
  6856. const { value } = binding
  6857. if (value && typeof value === 'number') {
  6858. el.style.height = `${value}px`
  6859. } else {
  6860. el.style.height = 'auto'
  6861. }
  6862. },
  6863. componentUpdated(el) {
  6864. el.style.height = `${el.scrollHeight}px`
  6865. },
  6866. },
  6867. },
  6868. computed: {
  6869. // rightBoxHeight: function () {
  6870. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  6871. // },
  6872. offsetLetfPx: function () {
  6873. //addnum可以直接在模板语法里面用,相当于data内的值
  6874. return (
  6875. $(".cru_select")[this.unitIndex] &&
  6876. $(".cru_select")[this.unitIndex].offsetLeft
  6877. );
  6878. },
  6879. getMan2() {
  6880. return function (people) {
  6881. let _people = people;
  6882. let _people2 = "";
  6883. if (this.ManAarray.length) {
  6884. for (var i = 0; i < this.ManAarray.length; i++) {
  6885. if (this.ManAarray[i].userid == people) {
  6886. _people2 = this.ManAarray[i].name;
  6887. break;
  6888. }
  6889. }
  6890. }
  6891. if (people == this.courseUserid) {
  6892. return "";
  6893. }
  6894. return this.ManAarray.length ? _people2 : "";
  6895. };
  6896. },
  6897. isInvite() {
  6898. return function (cid) {
  6899. let array = [];
  6900. for (var i = 0; i < this.inviteCode.length; i++) {
  6901. array.push(this.inviteCode[i].cid);
  6902. }
  6903. return array.indexOf(cid) != -1;
  6904. };
  6905. },
  6906. getInviteCodeC() {
  6907. return function (cid) {
  6908. let array = [];
  6909. for (var i = 0; i < this.inviteCode.length; i++) {
  6910. array.push(this.inviteCode[i].cid);
  6911. }
  6912. return this.inviteCode[array.indexOf(cid)].ic;
  6913. };
  6914. },
  6915. getClassC() {
  6916. return function (c) {
  6917. let _c2 = "";
  6918. if (this.grade.length) {
  6919. for (var i = 0; i < this.grade.length; i++) {
  6920. if (this.grade[i].id == c) {
  6921. _c2 = this.grade[i].name;
  6922. break;
  6923. }
  6924. }
  6925. }
  6926. return this.grade.length ? _c2 : "";
  6927. };
  6928. },
  6929. },
  6930. watch: {
  6931. unitIndex(newValue, oldValue) {
  6932. if (this.isDelete == 2) {
  6933. this.isDelete = 1;
  6934. return;
  6935. }
  6936. if (this.cid != "") {
  6937. let _unitIndex = oldValue;
  6938. if (
  6939. JSON.stringify(this.unitJson2[_unitIndex]) ==
  6940. JSON.stringify(this.unitJson[_unitIndex])
  6941. ) {
  6942. this.$refs.rightboxR.scrollTop = 0;
  6943. return;
  6944. }
  6945. let cPan = 1;
  6946. for (
  6947. var j = 0;
  6948. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6949. j++
  6950. ) {
  6951. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6952. j
  6953. ].proVisible = false;
  6954. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6955. j
  6956. ].proVisible2 = false;
  6957. if (
  6958. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6959. .length > 1
  6960. ) {
  6961. for (
  6962. var z = 0;
  6963. z <
  6964. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6965. .length;
  6966. z++
  6967. ) {
  6968. if (
  6969. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  6970. .toolChoose[z].tool.length
  6971. ) {
  6972. this.$message.error("请把工具添加完整");
  6973. cPan = 2;
  6974. break;
  6975. }
  6976. }
  6977. }
  6978. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6979. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6980. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6981. (ele) => {
  6982. return ele.value != "";
  6983. }
  6984. );
  6985. }
  6986. }
  6987. if (cPan == 2) {
  6988. this.unitIndex = oldValue;
  6989. return;
  6990. }
  6991. for (var i = 0; i < this.unitJson.length; i++) {
  6992. if (this.addindex != i) {
  6993. delete this.unitJson[i].isUpdate;
  6994. }
  6995. }
  6996. this.$refs.rightboxR.scrollTop = 0;
  6997. this.addindex = -1;
  6998. let params = [
  6999. {
  7000. cid: this.cid,
  7001. chapters: JSON.stringify(this.unitJson),
  7002. uid: this.userid,
  7003. unitIndex: _unitIndex,
  7004. },
  7005. ];
  7006. this.ajax
  7007. .post(this.$store.state.api + "updateWorkNew4", params)
  7008. .then((res) => {
  7009. // this.$message({
  7010. // message: "修改成功",
  7011. // type: "success",
  7012. // });
  7013. // this.courseId = this.cid;
  7014. })
  7015. .catch((err) => {
  7016. this.$message.error("网络不佳");
  7017. console.error(err);
  7018. });
  7019. }
  7020. },
  7021. steps(newValue) {
  7022. if (newValue == 4) {
  7023. this.goTo(
  7024. "/course?userid=" +
  7025. this.userid +
  7026. "&oid=" +
  7027. this.oid +
  7028. "&org=" +
  7029. this.org +
  7030. "&role=" +
  7031. this.role
  7032. );
  7033. }
  7034. },
  7035. },
  7036. methods: {
  7037. openAI(){
  7038. window.parent.postMessage({ tools: "64" }, "*");
  7039. },
  7040. setMan() {
  7041. // let teacherJuri = this.teacherJuri2;
  7042. this.ManAarray = [];
  7043. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  7044. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  7045. _user.push(this.courseUserid || this.userid);
  7046. }
  7047. let params = {
  7048. uid: _user.join(","),
  7049. };
  7050. this.ajax
  7051. .get(this.$store.state.api + "getAllUserById", params)
  7052. .then((res) => {
  7053. let teacherJuri = res.data[0];
  7054. this.ManAarray = teacherJuri;
  7055. })
  7056. .catch((err) => {
  7057. console.error(err);
  7058. });
  7059. },
  7060. previewImg(url) {
  7061. this.$hevueImgPreview(url);
  7062. },
  7063. scrollChange() {
  7064. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  7065. // document.querySelector('.course_left').scrollHeight
  7066. // document.querySelector('.stepsBottom2').scrollHeight
  7067. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  7068. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  7069. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  7070. let top = $(".rightBox")[0].scrollTop - 300 - stepsBottom2;
  7071. // if (top < client) {
  7072. // $('.stepsBottom2')[0].style.position = 'absolute'
  7073. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  7074. // // $('.stepsBottom2')[0].style.top = client + 'px'
  7075. // } else
  7076. if (top > 0) {
  7077. let top = $(".rightBox")[0].offsetTop;
  7078. $(".stepsBottom2")[0].style.position = "fixed";
  7079. $(".stepsBottom2")[0].style.top = top + "px";
  7080. // $('.stepsBottom2')[0].style.top = top + 'px'
  7081. } else {
  7082. $(".stepsBottom2")[0].style.position = "absolute";
  7083. $(".stepsBottom2")[0].style.top = "0px";
  7084. }
  7085. },
  7086. handleCheckAllChange(val) {
  7087. this.checkedCities = val ? cityOptions : [];
  7088. this.isIndeterminate = false;
  7089. },
  7090. handleCheckedCitiesChange(value) {
  7091. let checkedCount = value.length;
  7092. this.checkAll = checkedCount === this.cities.length;
  7093. this.isIndeterminate =
  7094. checkedCount > 0 && checkedCount < this.cities.length;
  7095. },
  7096. addHw(e) {
  7097. var el = e.currentTarget;
  7098. el.getElementsByTagName("input")[0].click();
  7099. },
  7100. change(val) {
  7101. console.log(val);
  7102. },
  7103. change2(val) {
  7104. console.log(val);
  7105. this.$forceUpdate();
  7106. },
  7107. handleClose(done) {
  7108. done();
  7109. },
  7110. imgChange2(i, j) {
  7111. var _tmp = this.testJson.testJson[i].checkList[j];
  7112. this.noneBtnImg = _tmp.length >= 1;
  7113. },
  7114. imgChange3(i) {
  7115. var _tmp = this.testJson.testJson[i];
  7116. this.noneBtnImg = _tmp.length >= 1;
  7117. },
  7118. imgChange1(file, fileList, type, itemTaskIndex) {
  7119. if (type == 1) {
  7120. var _tmp = this.cover;
  7121. } else if (
  7122. type == 2 ||
  7123. type == 3 ||
  7124. type == 6 ||
  7125. type == 7 ||
  7126. type == 8
  7127. ) {
  7128. var _tmp =
  7129. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7130. .chapterData;
  7131. } else if (type == 4) {
  7132. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  7133. } else {
  7134. var _tmp =
  7135. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7136. .homeworkList;
  7137. }
  7138. this.noneBtnImg = _tmp.length >= 1;
  7139. },
  7140. goTo(path) {
  7141. this.$router.push(path);
  7142. },
  7143. guid() {
  7144. var _num,
  7145. i,
  7146. _guid = "";
  7147. for (i = 0; i < 32; i++) {
  7148. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7149. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7150. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7151. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7152. _guid += "-";
  7153. }
  7154. }
  7155. return _guid;
  7156. },
  7157. lastSteps() {
  7158. this
  7159. .$confirm("是否保存?", "提示", {
  7160. confirmButtonText: "保存",
  7161. cancelButtonText: "不保存",
  7162. type: "warning",
  7163. })
  7164. .then(() => {
  7165. if (this.cid == "" || this.cid == undefined) {
  7166. if (this.courseName == "") {
  7167. this.$message.error("请补充填写课程名称");
  7168. return;
  7169. } else {
  7170. this.addWork();
  7171. }
  7172. } else {
  7173. if (this.courseName == "") {
  7174. this.$message.error("请补充填写课程名称");
  7175. return;
  7176. } else {
  7177. if (this.userid != this.courseUserid && this.role != "1") {
  7178. this.updateWork2();
  7179. } else {
  7180. this.updateWork();
  7181. }
  7182. }
  7183. }
  7184. })
  7185. .catch(() => {
  7186. this.goTo(
  7187. "/course?userid=" +
  7188. this.userid +
  7189. "&oid=" +
  7190. this.oid +
  7191. "&org=" +
  7192. this.org +
  7193. "&role=" +
  7194. this.role
  7195. );
  7196. });
  7197. },
  7198. nextSteps() {
  7199. if (this.cid == "" || this.cid == undefined) {
  7200. if (this.courseName == "") {
  7201. this.$message.error("请补充填写课程名称");
  7202. return;
  7203. } else {
  7204. this.addWork();
  7205. }
  7206. } else {
  7207. if (this.courseName == "") {
  7208. this.$message.error("请补充填写课程名称");
  7209. return;
  7210. } else {
  7211. if (this.userid != this.courseUserid && this.role != "1") {
  7212. this.updateWork2();
  7213. } else {
  7214. this.updateWork();
  7215. }
  7216. }
  7217. }
  7218. this.$refs.stepBox.scrollTop = 0;
  7219. },
  7220. unitSet(i) {
  7221. this.unitIndex = i;
  7222. // this.$refs.rightboxR.scrollTop = 0;
  7223. },
  7224. time() {
  7225. if (!this.now) {
  7226. this.now = new Date().getTime();
  7227. return true;
  7228. } else {
  7229. let time = new Date().getTime();
  7230. if (time - this.now > 3000) {
  7231. this.now = time;
  7232. return true;
  7233. } else {
  7234. return false;
  7235. }
  7236. }
  7237. },
  7238. deleteUnit(i) {
  7239. var _this = this;
  7240. if (_this.time()) {
  7241. _this
  7242. .$confirm("确定删除此单元吗?", "提示", {
  7243. confirmButtonText: "确定",
  7244. cancelButtonText: "取消",
  7245. type: "warning",
  7246. })
  7247. .then(() => {
  7248. _this.isDelete = 2;
  7249. // _this.unitIndex = _this.unitIndex - 1;
  7250. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  7251. // _this.$message.success("删除成功");
  7252. })
  7253. .catch(() => {
  7254. return;
  7255. });
  7256. }
  7257. },
  7258. deleteWork(chapid) {
  7259. let params = [
  7260. {
  7261. cid: this.cid,
  7262. chapters: JSON.stringify(this.unitJson),
  7263. uid: this.userid,
  7264. chapid: chapid,
  7265. },
  7266. ];
  7267. this.ajax
  7268. .post(this.$store.state.api + "deleteWork", params)
  7269. .then((res) => {
  7270. this.$message({
  7271. message: "删除成功",
  7272. type: "success",
  7273. });
  7274. this.unitJson.splice(this.unitIndex, 1);
  7275. this.unitIndex = this.unitIndex - 1;
  7276. })
  7277. .catch((err) => {
  7278. this.$message.error("网络不佳");
  7279. console.error(err);
  7280. });
  7281. },
  7282. deleteTool(itemTaskIndex, i) {
  7283. var _this = this;
  7284. if (_this.time()) {
  7285. _this
  7286. .$confirm("确定删除此工具吗?", "提示", {
  7287. confirmButtonText: "确定",
  7288. cancelButtonText: "取消",
  7289. type: "warning",
  7290. })
  7291. .then(() => {
  7292. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7293. itemTaskIndex
  7294. ].toolChoose.splice(i, 1);
  7295. _this.$message.success("删除成功");
  7296. })
  7297. .catch(() => {
  7298. return;
  7299. });
  7300. }
  7301. },
  7302. deleteSentence(i) {
  7303. var _this = this;
  7304. if (_this.time()) {
  7305. _this
  7306. .$confirm("确定删除此题目吗?", "提示", {
  7307. confirmButtonText: "确定",
  7308. cancelButtonText: "取消",
  7309. type: "warning",
  7310. })
  7311. .then(() => {
  7312. _this.sentenceList.splice(i, 1);
  7313. _this.$message.success("删除成功");
  7314. })
  7315. .catch(() => {
  7316. return;
  7317. });
  7318. }
  7319. },
  7320. deleteS(s, i, j) {
  7321. this.sentenceList[i].addSentence.splice(j, 1);
  7322. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  7323. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  7324. this.sentenceList[i].rightAnswer.splice(a, 1);
  7325. }
  7326. },
  7327. openT() {
  7328. window.parent.postMessage({ tools: "25" }, "*");
  7329. },
  7330. deleteTask(i) {
  7331. var _this = this;
  7332. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  7333. _this
  7334. .$confirm("确定删除此任务吗?", "提示", {
  7335. confirmButtonText: "确定",
  7336. cancelButtonText: "取消",
  7337. type: "warning",
  7338. })
  7339. .then(() => {
  7340. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  7341. _this.$message.success("删除成功");
  7342. // this.$nextTick(() => {
  7343. // $('.stepsBottom2')[0].style.transition = 'unset'
  7344. // setTimeout(() => {
  7345. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  7346. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  7347. // let top = $('.stepsBottom2')[0].offsetTop - 20
  7348. // if (top > client) {
  7349. // $('.stepsBottom2')[0].style.top = client + 'px'
  7350. // }
  7351. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  7352. // this.$forceUpdate()
  7353. // }, 500)
  7354. // })
  7355. })
  7356. .catch(() => {
  7357. return;
  7358. });
  7359. },
  7360. handlePictureCardPreview(file) {
  7361. this.dialogImageUrl = file.url;
  7362. },
  7363. clean(i, c) {
  7364. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  7365. },
  7366. handle_remove1(file, fileList, type) {
  7367. var _tmp = this.cover;
  7368. // for (var i = 0, len = _tmp.length; i < len; i++) {
  7369. // if (_tmp[i].uid == file.uid) {
  7370. // _tmp.splice(i, 1);
  7371. // break;
  7372. // }
  7373. // this.cover = _tmp;
  7374. // }
  7375. this.cover = [];
  7376. this.noneBtnImg = this.cover.length >= 1;
  7377. this.isSysPic = false;
  7378. this.$forceUpdate();
  7379. },
  7380. addImg(e) {
  7381. var el = e.currentTarget;
  7382. el.getElementsByTagName("input")[0].click();
  7383. e.target.value = "";
  7384. },
  7385. addChaptersTools(i) {
  7386. this.chapTools = [
  7387. {
  7388. tools: [],
  7389. toolDetail: "",
  7390. },
  7391. ];
  7392. this.chapCount = i;
  7393. this.dialogVisible4 = true;
  7394. },
  7395. isNoFinsh() {
  7396. this.$message.warning("功能正在开发中");
  7397. },
  7398. addAttText(i) {
  7399. this.AttText = {
  7400. title: "",
  7401. text: "",
  7402. };
  7403. this.taskCount = i;
  7404. this.AttTextType = 0;
  7405. this.$forceUpdate();
  7406. this.dialogVisible6 = true;
  7407. },
  7408. openLine(i) {
  7409. this.line = "";
  7410. this.lineCount = i;
  7411. this.lineType = 0;
  7412. this.$forceUpdate();
  7413. this.dialogVisible7 = true;
  7414. },
  7415. pasteLine(i) {
  7416. navigator.clipboard
  7417. .readText()
  7418. .then((v) => {
  7419. console.log("获取剪贴板成功:", v);
  7420. const html = v;
  7421. const regex = /src="(.*?)"/g;
  7422. const match = regex.exec(html);
  7423. if (match && match[1]) {
  7424. console.log(match[1]);
  7425. this.$message.success("粘贴成功");
  7426. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7427. i
  7428. ].chapterData.push({
  7429. name: "链接",
  7430. title: "嵌入代码",
  7431. url: match[1],
  7432. type: 8,
  7433. });
  7434. } else {
  7435. // console.log("未找到包含 src 属性的 iframe");
  7436. this.$message.error("没有找到粘贴的链接");
  7437. }
  7438. })
  7439. .catch((v) => {
  7440. console.log("获取剪贴板失败: ", v);
  7441. });
  7442. },
  7443. openSource(i) {
  7444. this.lineCount = i;
  7445. this.sourceData = {};
  7446. this.dialogVisibleSource = true;
  7447. },
  7448. addSource() {
  7449. if (!Object.keys(this.sourceData).length) {
  7450. this.$message.error("请选择要上传的资源");
  7451. return;
  7452. }
  7453. let keys = Object.keys(this.sourceData);
  7454. for (var i = 0; i < keys.length; i++) {
  7455. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7456. this.lineCount
  7457. ].chapterData.push({
  7458. name: "链接",
  7459. title: this.sourceData[keys[i]].name,
  7460. url: this.sourceData[keys[i]].url,
  7461. type: 8,
  7462. });
  7463. }
  7464. this.$forceUpdate();
  7465. this.dialogVisibleSource = false;
  7466. },
  7467. deleteM(i, j) {
  7468. this.testJson.testJson[i].timuList.splice(j, 1);
  7469. },
  7470. beforeUploadTiMu(event, i) {
  7471. const loading = this.openLoading();
  7472. var file = event.target.files[0];
  7473. var credentials = {
  7474. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7475. secretAccessKey: "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",
  7476. }; //秘钥形式的登录上传
  7477. window.AWS.config.update(credentials);
  7478. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7479. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7480. var _this = this;
  7481. if (file) {
  7482. var params = {
  7483. Key:
  7484. file.name.split(".")[0] +
  7485. new Date().getTime() +
  7486. "." +
  7487. file.name.split(".")[file.name.split(".").length - 1],
  7488. ContentType: file.type,
  7489. Body: file,
  7490. "Access-Control-Allow-Credentials": "*",
  7491. ACL: "public-read",
  7492. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7493. var options = {
  7494. partSize: 2048 * 1024 * 1024,
  7495. queueSize: 2,
  7496. leavePartsOnError: true,
  7497. };
  7498. bucket
  7499. .upload(params, options)
  7500. .on("httpUploadProgress", function (evt) {
  7501. //这里可以写进度条
  7502. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7503. })
  7504. .send(function (err, data) {
  7505. loading.close();
  7506. if (err) {
  7507. _this.$message.error("上传失败");
  7508. } else {
  7509. if (_this.testJson.testJson[i].timuList) {
  7510. _this.testJson.testJson[i].timuList.push({
  7511. src: data.Location,
  7512. });
  7513. } else {
  7514. _this.testJson.testJson[i].timuList = [];
  7515. _this.testJson.testJson[i].timuList.push({
  7516. src: data.Location,
  7517. });
  7518. }
  7519. _this.imgChange3(i);
  7520. _this.$forceUpdate();
  7521. }
  7522. });
  7523. }
  7524. },
  7525. beforeUploadTi(event, i, j) {
  7526. const loading = this.openLoading();
  7527. var file = event.target.files[0];
  7528. var credentials = {
  7529. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7530. secretAccessKey: "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",
  7531. }; //秘钥形式的登录上传
  7532. window.AWS.config.update(credentials);
  7533. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7534. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7535. var _this = this;
  7536. if (file) {
  7537. var params = {
  7538. Key:
  7539. file.name.split(".")[0] +
  7540. new Date().getTime() +
  7541. "." +
  7542. file.name.split(".")[file.name.split(".").length - 1],
  7543. ContentType: file.type,
  7544. Body: file,
  7545. "Access-Control-Allow-Credentials": "*",
  7546. ACL: "public-read",
  7547. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7548. var options = {
  7549. partSize: 2048 * 1024 * 1024,
  7550. queueSize: 2,
  7551. leavePartsOnError: true,
  7552. };
  7553. bucket
  7554. .upload(params, options)
  7555. .on("httpUploadProgress", function (evt) {
  7556. //这里可以写进度条
  7557. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7558. })
  7559. .send(function (err, data) {
  7560. loading.close();
  7561. if (err) {
  7562. _this.$message.error("上传失败");
  7563. } else {
  7564. _this.testJson.testJson[i].checkList[j] = {};
  7565. _this.testJson.testJson[i].checkList[j].src = data.Location;
  7566. _this.testJson.testJson[i].checkList[j].imgType = 1;
  7567. _this.imgChange2(i, j);
  7568. _this.$forceUpdate();
  7569. }
  7570. });
  7571. }
  7572. },
  7573. beforeUpload1(event, type) {
  7574. // const loading = this.openLoading();
  7575. var file = event.target.files[0];
  7576. var credentials = {
  7577. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7578. secretAccessKey: "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",
  7579. }; //秘钥形式的登录上传
  7580. window.AWS.config.update(credentials);
  7581. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7582. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7583. var _this = this;
  7584. if (file) {
  7585. var params = {
  7586. Key:
  7587. file.name.split(".")[0] +
  7588. new Date().getTime() +
  7589. "." +
  7590. file.name.split(".")[file.name.split(".").length - 1],
  7591. ContentType: file.type,
  7592. Body: file,
  7593. "Access-Control-Allow-Credentials": "*",
  7594. ACL: "public-read",
  7595. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7596. var options = {
  7597. partSize: 2048 * 1024 * 1024,
  7598. queueSize: 2,
  7599. leavePartsOnError: true,
  7600. };
  7601. bucket
  7602. .upload(params, options)
  7603. .on("httpUploadProgress", function (evt) {
  7604. //这里可以写进度条
  7605. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7606. })
  7607. .send(function (err, data) {
  7608. // loading.close();
  7609. if (err) {
  7610. // var a = _this.$refs.upload1.uploadFiles;
  7611. // a.splice(a.length - 1, a.length);
  7612. _this.$message.error("上传失败");
  7613. } else {
  7614. _this.cover.push({
  7615. name: file.name,
  7616. url: data.Location,
  7617. uid: file.uid,
  7618. });
  7619. _this.imgChange1(null, null, 1, null);
  7620. _this.choosePicVisible = false;
  7621. console.log(data.Location);
  7622. }
  7623. });
  7624. }
  7625. },
  7626. beforeUploadSelect(event, type) {
  7627. // const loading = this.openLoading();
  7628. var file = event.target.files[0];
  7629. var credentials = {
  7630. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7631. secretAccessKey: "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",
  7632. }; //秘钥形式的登录上传
  7633. window.AWS.config.update(credentials);
  7634. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7635. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7636. var _this = this;
  7637. if (file) {
  7638. var params = {
  7639. Key:
  7640. file.name.split(".")[0] +
  7641. new Date().getTime() +
  7642. "." +
  7643. file.name.split(".")[file.name.split(".").length - 1],
  7644. ContentType: file.type,
  7645. Body: file,
  7646. "Access-Control-Allow-Credentials": "*",
  7647. ACL: "public-read",
  7648. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7649. var options = {
  7650. partSize: 2048 * 1024 * 1024,
  7651. queueSize: 2,
  7652. leavePartsOnError: true,
  7653. };
  7654. bucket
  7655. .upload(params, options)
  7656. .on("httpUploadProgress", function (evt) {
  7657. //这里可以写进度条
  7658. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7659. })
  7660. .send(function (err, data) {
  7661. // loading.close();
  7662. if (err) {
  7663. _this.$message.error("上传失败");
  7664. } else {
  7665. _this.selectJson.url = data.Location;
  7666. console.log(data.Location);
  7667. }
  7668. });
  7669. }
  7670. },
  7671. chooseSysPic(p) {
  7672. this.cover.push({
  7673. name: "系统图片.png",
  7674. url: p,
  7675. });
  7676. this.imgChange1(null, null, 1, null);
  7677. this.isSysPic = true;
  7678. this.sysPicVisible = false;
  7679. },
  7680. beforeUpload(data) {
  7681. this.$refs.upload1.uploadFiles;
  7682. this.uploadLoading1 = true;
  7683. var file = data.file;
  7684. var credentials = {
  7685. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7686. secretAccessKey: "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",
  7687. }; //秘钥形式的登录上传
  7688. window.AWS.config.update(credentials);
  7689. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7690. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7691. var _this = this;
  7692. if (file) {
  7693. var params = {
  7694. Key:
  7695. file.name.split(".")[0] +
  7696. new Date().getTime() +
  7697. "." +
  7698. file.name.split(".")[file.name.split(".").length - 1],
  7699. ContentType: file.type,
  7700. Body: file,
  7701. "Access-Control-Allow-Credentials": "*",
  7702. ACL: "public-read",
  7703. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7704. var options = {
  7705. partSize: 2048 * 1024 * 1024,
  7706. queueSize: 2,
  7707. leavePartsOnError: true,
  7708. };
  7709. bucket
  7710. .upload(params, options)
  7711. .on("httpUploadProgress", function (evt) {
  7712. //这里可以写进度条
  7713. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7714. })
  7715. .send(function (err, data) {
  7716. _this.uploadLoading1 = false;
  7717. if (err) {
  7718. // var a = _this.$refs.upload1.uploadFiles;
  7719. // a.splice(a.length - 1, a.length);
  7720. _this.$message.error("上传失败");
  7721. } else {
  7722. //上传成功处理
  7723. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  7724. name: file.name,
  7725. url: data.Location,
  7726. uid: file.uid,
  7727. });
  7728. _this.imgChange();
  7729. console.log(data.Location);
  7730. }
  7731. });
  7732. }
  7733. },
  7734. onExceed() {
  7735. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  7736. },
  7737. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  7738. // const loading = this.openLoading();
  7739. var file = event.target.files[0];
  7740. var credentials = {
  7741. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7742. secretAccessKey: "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",
  7743. }; //秘钥形式的登录上传
  7744. window.AWS.config.update(credentials);
  7745. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7746. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7747. var _this = this;
  7748. if (type == 3) {
  7749. var b = [
  7750. "DOC",
  7751. "DOCX",
  7752. "DOCM",
  7753. "DOTM",
  7754. "DOTX",
  7755. "PPTX",
  7756. "PPSX",
  7757. "PPT",
  7758. "PPS",
  7759. "PPTM",
  7760. "POTM",
  7761. "PPAM",
  7762. "POTX",
  7763. "PPSM",
  7764. ];
  7765. if (
  7766. b.indexOf(
  7767. file.name
  7768. .split(".")
  7769. [file.name.split(".").length - 1].toLocaleUpperCase()
  7770. ) != -1
  7771. ) {
  7772. if (file.size / 1024 / 1024 > 80) {
  7773. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7774. this.inputShow = true;
  7775. // var a = _this.$refs.upload1.uploadFiles;
  7776. // a.splice(a.length - 1, a.length);
  7777. // loading.close();
  7778. return;
  7779. }
  7780. } else if (
  7781. file.name
  7782. .split(".")
  7783. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7784. ) {
  7785. if (file.size / 1024 / 1024 > 80) {
  7786. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7787. this.inputShow = true;
  7788. // var a = _this.$refs.upload1.uploadFiles;
  7789. // a.splice(a.length - 1, a.length);
  7790. // loading.close();
  7791. return;
  7792. }
  7793. }
  7794. }
  7795. this.inputShow = false;
  7796. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7797. itemTaskIndex
  7798. ].progress = 0;
  7799. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7800. itemTaskIndex
  7801. ].proVisible = true;
  7802. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7803. itemTaskIndex
  7804. ].isFinishSize = 0;
  7805. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7806. itemTaskIndex
  7807. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7808. _this.$forceUpdate();
  7809. if (file) {
  7810. var params = {
  7811. Key:
  7812. file.name.split(".")[0] +
  7813. new Date().getTime() +
  7814. "." +
  7815. file.name.split(".")[file.name.split(".").length - 1],
  7816. ContentType: file.type,
  7817. Body: file,
  7818. "Access-Control-Allow-Credentials": "*",
  7819. ACL: "public-read",
  7820. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7821. var options = {
  7822. partSize: 2048 * 1024 * 1024,
  7823. queueSize: 2,
  7824. leavePartsOnError: true,
  7825. };
  7826. bucket
  7827. .upload(params, options)
  7828. .on("httpUploadProgress", function (evt) {
  7829. //这里可以写进度条
  7830. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7831. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7832. itemTaskIndex
  7833. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7834. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7835. itemTaskIndex
  7836. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7837. _this.$forceUpdate();
  7838. })
  7839. .send(function (err, data) {
  7840. // loading.close();
  7841. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7842. itemTaskIndex
  7843. ].progress = 100;
  7844. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7845. itemTaskIndex
  7846. ].isFinishSize =
  7847. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7848. itemTaskIndex
  7849. ].isAllSize;
  7850. _this.$forceUpdate();
  7851. setTimeout(() => {
  7852. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7853. itemTaskIndex
  7854. ].proVisible = false;
  7855. _this.$forceUpdate();
  7856. }, 1000);
  7857. _this.inputShow = true;
  7858. if (err) {
  7859. // var a = _this.$refs.upload1.uploadFiles;
  7860. // a.splice(a.length - 1, a.length);
  7861. _this.$message.error("上传失败");
  7862. } else {
  7863. if (type == 13) {
  7864. let _type = 2;
  7865. var imgA = [
  7866. "png",
  7867. "jpg",
  7868. "jpeg",
  7869. "bmp",
  7870. "gif",
  7871. "webp",
  7872. "psd",
  7873. "svg",
  7874. "tiff",
  7875. ];
  7876. var fileA = [
  7877. "PDF",
  7878. "DOC",
  7879. "DOCX",
  7880. "DOCM",
  7881. "DOTM",
  7882. "DOTX",
  7883. "PPTX",
  7884. "PPSX",
  7885. "PPT",
  7886. "PPS",
  7887. "PPTM",
  7888. "POTM",
  7889. "PPAM",
  7890. "POTX",
  7891. "PPSM",
  7892. "XLSX",
  7893. "XLS",
  7894. ];
  7895. var videoA = [
  7896. "AVI",
  7897. "NAVI",
  7898. "MPEG",
  7899. "ASF",
  7900. "MOV",
  7901. "WMV",
  7902. "3GP",
  7903. "RM",
  7904. "RMVB",
  7905. "FLV",
  7906. "F4V",
  7907. "H.264",
  7908. "H.265",
  7909. "REAL VIDEO",
  7910. "MKV",
  7911. "WebM",
  7912. "HDDVD",
  7913. "MP4",
  7914. "MPG",
  7915. "M4V",
  7916. "MGV",
  7917. "OGV",
  7918. "QTM",
  7919. "STR",
  7920. "AMC",
  7921. "DVX",
  7922. "EVO",
  7923. "DAT",
  7924. "OGG",
  7925. "OGM",
  7926. ];
  7927. if (
  7928. fileA.indexOf(
  7929. data.Location.split(".")[
  7930. data.Location.split(".").length - 1
  7931. ].toLocaleUpperCase()
  7932. ) != -1
  7933. ) {
  7934. _type = 3;
  7935. } else if (
  7936. videoA.indexOf(
  7937. data.Location.split(".")[
  7938. data.Location.split(".").length - 1
  7939. ].toLocaleUpperCase()
  7940. ) != -1
  7941. ) {
  7942. _type = 2;
  7943. } else if (
  7944. imgA.indexOf(
  7945. data.Location.split(".")[
  7946. data.Location.split(".").length - 1
  7947. ].toLocaleLowerCase()
  7948. ) != -1
  7949. ) {
  7950. _type = 13;
  7951. } else {
  7952. _type = 12;
  7953. }
  7954. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7955. itemTaskIndex
  7956. ].chapterData.push({
  7957. name: file.name,
  7958. url: data.Location,
  7959. uid: file.uid,
  7960. type: _type,
  7961. });
  7962. _this.imgChange1(null, null, _type, itemTaskIndex);
  7963. } else if (type == 2 || type == 3 || type == 12) {
  7964. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7965. itemTaskIndex
  7966. ].chapterData.push({
  7967. name: file.name,
  7968. url: data.Location,
  7969. uid: file.uid,
  7970. type: type,
  7971. });
  7972. _this.imgChange1(null, null, type, itemTaskIndex);
  7973. } else if (type == 4) {
  7974. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7975. itemTaskIndex
  7976. ].fileList1.push({
  7977. name: file.name,
  7978. url: data.Location,
  7979. uid: file.uid,
  7980. });
  7981. _this.imgChange1(null, null, type, itemTaskIndex);
  7982. } else if (type == 5) {
  7983. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7984. itemTaskIndex
  7985. ].homeworkList.push({
  7986. name: file.name,
  7987. url: data.Location,
  7988. uid: file.uid,
  7989. });
  7990. _this.imgChange1(null, null, type, itemTaskIndex);
  7991. }
  7992. console.log(data.Location);
  7993. }
  7994. });
  7995. }
  7996. },
  7997. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  7998. // const loading = this.openLoading();
  7999. var file = event.target.files[0];
  8000. var credentials = {
  8001. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8002. secretAccessKey: "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",
  8003. }; //秘钥形式的登录上传
  8004. window.AWS.config.update(credentials);
  8005. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8006. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8007. var _this = this;
  8008. if (type == 3) {
  8009. var b = [
  8010. "DOC",
  8011. "DOCX",
  8012. "DOCM",
  8013. "DOTM",
  8014. "DOTX",
  8015. "PPTX",
  8016. "PPSX",
  8017. "PPT",
  8018. "PPS",
  8019. "PPTM",
  8020. "POTM",
  8021. "PPAM",
  8022. "POTX",
  8023. "PPSM",
  8024. ];
  8025. if (
  8026. b.indexOf(
  8027. file.name
  8028. .split(".")
  8029. [file.name.split(".").length - 1].toLocaleUpperCase()
  8030. ) != -1
  8031. ) {
  8032. if (file.size / 1024 / 1024 > 80) {
  8033. this.$message.error("上传文件大于80兆,请重新选择文件!");
  8034. this.inputShow = true;
  8035. // var a = _this.$refs.upload1.uploadFiles;
  8036. // a.splice(a.length - 1, a.length);
  8037. // loading.close();
  8038. return;
  8039. }
  8040. } else if (
  8041. file.name
  8042. .split(".")
  8043. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  8044. ) {
  8045. if (file.size / 1024 / 1024 > 80) {
  8046. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  8047. this.inputShow = true;
  8048. // var a = _this.$refs.upload1.uploadFiles;
  8049. // a.splice(a.length - 1, a.length);
  8050. // loading.close();
  8051. return;
  8052. }
  8053. }
  8054. }
  8055. this.inputShow = false;
  8056. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8057. itemTaskIndex
  8058. ].progress = 0;
  8059. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8060. itemTaskIndex
  8061. ].proVisible = true;
  8062. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8063. itemTaskIndex
  8064. ].isFinishSize = 0;
  8065. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8066. itemTaskIndex
  8067. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8068. _this.$forceUpdate();
  8069. if (file) {
  8070. var params = {
  8071. Key:
  8072. file.name.split(".")[0] +
  8073. new Date().getTime() +
  8074. "." +
  8075. file.name.split(".")[file.name.split(".").length - 1],
  8076. ContentType: file.type,
  8077. Body: file,
  8078. "Access-Control-Allow-Credentials": "*",
  8079. ACL: "public-read",
  8080. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8081. var options = {
  8082. partSize: 2048 * 1024 * 1024,
  8083. queueSize: 2,
  8084. leavePartsOnError: true,
  8085. };
  8086. bucket
  8087. .upload(params, options)
  8088. .on("httpUploadProgress", function (evt) {
  8089. //这里可以写进度条
  8090. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8091. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8092. itemTaskIndex
  8093. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8094. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8095. itemTaskIndex
  8096. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8097. _this.$forceUpdate();
  8098. })
  8099. .send(function (err, data) {
  8100. // loading.close();
  8101. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8102. itemTaskIndex
  8103. ].progress = 100;
  8104. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8105. itemTaskIndex
  8106. ].isFinishSize =
  8107. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8108. itemTaskIndex
  8109. ].isAllSize;
  8110. _this.$forceUpdate();
  8111. setTimeout(() => {
  8112. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8113. itemTaskIndex
  8114. ].proVisible = false;
  8115. _this.$forceUpdate();
  8116. }, 1000);
  8117. _this.inputShow = true;
  8118. if (err) {
  8119. // var a = _this.$refs.upload1.uploadFiles;
  8120. // a.splice(a.length - 1, a.length);
  8121. _this.$message.error("上传失败");
  8122. } else {
  8123. if (type == 2 || type == 3) {
  8124. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8125. itemTaskIndex
  8126. ].chapterData.push({
  8127. name: file.name,
  8128. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8129. // itemTaskIndex
  8130. // ].chapterData.length+1),
  8131. url: data.Location,
  8132. uid: file.uid,
  8133. type: type,
  8134. text: string,
  8135. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8136. // itemTaskIndex
  8137. // ].chapterData.length + 1),
  8138. });
  8139. _this.imgChange1(null, null, type, itemTaskIndex);
  8140. } else if (type == 4) {
  8141. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8142. itemTaskIndex
  8143. ].fileList1.push({
  8144. name: file.name,
  8145. url: data.Location,
  8146. uid: file.uid,
  8147. });
  8148. _this.imgChange1(null, null, type, itemTaskIndex);
  8149. } else if (type == 5) {
  8150. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8151. itemTaskIndex
  8152. ].homeworkList.push({
  8153. name: file.name,
  8154. url: data.Location,
  8155. uid: file.uid,
  8156. });
  8157. _this.imgChange1(null, null, type, itemTaskIndex);
  8158. }
  8159. console.log(data.Location);
  8160. }
  8161. });
  8162. }
  8163. },
  8164. addunit() {
  8165. this.unitJson.push({
  8166. dyName: "", //单元标题
  8167. isUpdate: 1,
  8168. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  8169. chapterInfo: [
  8170. {
  8171. isread: false,
  8172. chapterid: this.guid(),
  8173. title: "",
  8174. courseName: "",
  8175. taskJson: [
  8176. {
  8177. task: "",
  8178. taskDetail: "",
  8179. chapterData: [],
  8180. toolText: "",
  8181. toolChoose: [
  8182. {
  8183. tool: [],
  8184. toolDetail: "",
  8185. toolType: 0,
  8186. askCount: 1,
  8187. askTitle: "",
  8188. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8189. },
  8190. ],
  8191. isShowTools: false,
  8192. askCount: 1,
  8193. isFold: 0,
  8194. askTitle: "",
  8195. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8196. checkJson: [{ checkCount: [], checkPerent: [] }],
  8197. homeworkList: [],
  8198. },
  8199. ],
  8200. itemCount: 1,
  8201. fileList1: [],
  8202. video: [],
  8203. testData: [],
  8204. pData: [],
  8205. templateArray: [],
  8206. },
  8207. ],
  8208. });
  8209. this.addindex = this.unitJson.length - 1;
  8210. setTimeout(() => {
  8211. this.unitIndex = this.unitJson.length - 1;
  8212. this.unitSet(this.unitIndex);
  8213. }, 0);
  8214. },
  8215. addToolFun(itemTaskIndex) {
  8216. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8217. itemTaskIndex
  8218. ].toolChoose.push({
  8219. tool: [],
  8220. toolDetail: "",
  8221. toolType: 0,
  8222. askCount: 1,
  8223. askTitle: "",
  8224. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8225. });
  8226. },
  8227. addTaskBorder() {
  8228. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  8229. task: "",
  8230. taskDetail: "",
  8231. chapterData: [],
  8232. toolChoose: [
  8233. {
  8234. tool: [],
  8235. toolDetail: "",
  8236. toolType: 0,
  8237. askCount: 1,
  8238. askTitle: "",
  8239. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8240. },
  8241. ],
  8242. toolText: "",
  8243. isShowTools: false,
  8244. askCount: 1,
  8245. isFold: 0,
  8246. askTitle: "",
  8247. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8248. checkJson: [{ checkCount: [], checkPerent: [] }],
  8249. homeworkList: [],
  8250. });
  8251. },
  8252. add(e, i) {
  8253. var el = e.currentTarget;
  8254. el.getElementsByTagName("input")[0].click();
  8255. },
  8256. fold(i, e, type) {
  8257. var a = e.currentTarget.parentElement.parentElement;
  8258. var b = e.currentTarget.parentElement;
  8259. if (type == 1) {
  8260. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  8261. a.className += " smallTaskBorder";
  8262. b.className += " funBlockTop";
  8263. } else {
  8264. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8265. a.className = "taskBorder";
  8266. b.className = "funBlock";
  8267. }
  8268. console.log(e);
  8269. },
  8270. fold2(i) {
  8271. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  8272. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  8273. } else {
  8274. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  8275. }
  8276. this.$forceUpdate();
  8277. },
  8278. deleteHomeworkBox(unitIndex, index, i) {
  8279. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  8280. this.taskCount
  8281. ].homeworkList.splice(i, 1);
  8282. },
  8283. getStudent() {
  8284. let params = {
  8285. oid: this.oid,
  8286. cu: "",
  8287. cn: this.searchPeople,
  8288. };
  8289. this.ajax
  8290. .get(this.$store.state.api + "selectStudentAdd", params)
  8291. .then((res) => {
  8292. this.studentJuri = res.data[0];
  8293. })
  8294. .catch((err) => {
  8295. this.isLoading = false;
  8296. console.error(err);
  8297. });
  8298. },
  8299. getTeacher() {
  8300. let params = {
  8301. oid:
  8302. this.org && this.org != "undefined" && this.org != "null"
  8303. ? this.org
  8304. : this.oid,
  8305. cu: "",
  8306. cn: this.searchTN,
  8307. };
  8308. this.ajax
  8309. .get(
  8310. this.$store.state.api +
  8311. (this.org && this.org != "undefined" && this.org != "null"
  8312. ? "selectTeacherAddOrg"
  8313. : "selectTeacherAdd"),
  8314. params
  8315. )
  8316. .then((res) => {
  8317. let teacherJuri = res.data[0];
  8318. for (var i = 0; i < teacherJuri.length; i++) {
  8319. if (teacherJuri[i].userid == this.userid) {
  8320. teacherJuri.splice(i, 1);
  8321. break;
  8322. }
  8323. }
  8324. this.teacherJuri = teacherJuri;
  8325. })
  8326. .catch((err) => {
  8327. console.error(err);
  8328. });
  8329. },
  8330. searchStudent() {
  8331. this.getStudent();
  8332. },
  8333. selectGrage() {
  8334. let params = {
  8335. oid: this.oid,
  8336. };
  8337. this.ajax
  8338. .get(this.$store.state.api + "selectGrageBySchool", params)
  8339. .then((res) => {
  8340. this.gradeList = res.data[0];
  8341. })
  8342. .catch((err) => {
  8343. this.isLoading = false;
  8344. console.error(err);
  8345. });
  8346. },
  8347. //获取班级列表
  8348. getClass() {
  8349. let params = {
  8350. oid: this.oid,
  8351. gid: this.gradeId,
  8352. cn: this.classSearch,
  8353. };
  8354. this.ajax
  8355. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  8356. .then((res) => {
  8357. if (!this.grade.length) {
  8358. this.grade = res.data[0];
  8359. }
  8360. this.grade2 = res.data[0];
  8361. this.classJuri = res.data[0];
  8362. })
  8363. .catch((err) => {
  8364. this.isLoading = false;
  8365. console.error(err);
  8366. });
  8367. },
  8368. CourseType2Change(val) {
  8369. this.pTypeCheck = [];
  8370. for (var i = 0; i < this.CourseType2.length; i++) {
  8371. let typeA = this.CourseType2[i];
  8372. if (val.indexOf(typeA.name) != -1) {
  8373. this.pTypeCheck.push(...typeA.id);
  8374. }
  8375. }
  8376. },
  8377. getChapterData(e, i, j, ic, type) {
  8378. e.stopPropagation();
  8379. this.updataC = true;
  8380. this.icc = ic;
  8381. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  8382. console.log("还不能下载图片喔");
  8383. }
  8384. },
  8385. deleteChapterData(e, i, j, ic, taskI) {
  8386. e.stopPropagation();
  8387. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  8388. },
  8389. updataVideoT(e, i, j, ic) {
  8390. e.stopPropagation();
  8391. this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  8392. ic
  8393. ].name = JSON.parse(JSON.stringify(e.target.value));
  8394. this.$forceUpdate();
  8395. },
  8396. upCd(e, i, j, taskCount, ic) {
  8397. e.stopPropagation();
  8398. if (ic == 0) {
  8399. return;
  8400. }
  8401. var a =
  8402. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  8403. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8404. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  8405. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8406. this.$forceUpdate();
  8407. },
  8408. downCd(e, i, j, taskCount, ic) {
  8409. e.stopPropagation();
  8410. if (
  8411. ic ==
  8412. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8413. 1
  8414. ) {
  8415. return;
  8416. }
  8417. var a =
  8418. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  8419. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8420. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  8421. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8422. this.$forceUpdate();
  8423. },
  8424. addWork() {
  8425. let cPan = 1;
  8426. for (var i = 0; i < this.unitJson.length; i++) {
  8427. for (
  8428. var j = 0;
  8429. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8430. j++
  8431. ) {
  8432. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8433. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8434. if (
  8435. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8436. ) {
  8437. for (
  8438. var z = 0;
  8439. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8440. z++
  8441. ) {
  8442. if (
  8443. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8444. .length
  8445. ) {
  8446. this.$message.error("请把工具添加完整");
  8447. cPan = 2;
  8448. break;
  8449. }
  8450. }
  8451. }
  8452. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8453. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8454. i
  8455. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8456. return ele.value != "";
  8457. });
  8458. }
  8459. }
  8460. }
  8461. this.inputShow = true;
  8462. if (cPan == 2) {
  8463. return;
  8464. }
  8465. for (var i = 0; i < this.unitJson.length; i++) {
  8466. delete this.unitJson[i].isUpdate;
  8467. }
  8468. let params = [
  8469. {
  8470. uid: this.userid,
  8471. title: this.courseName.replace(/%/g, "%25"),
  8472. brief: this.courseText.replace(/%/g, "%25"),
  8473. cover:
  8474. this.cover.length > 0
  8475. ? JSON.stringify(this.cover)
  8476. : JSON.stringify([
  8477. {
  8478. name: "noBanner.jpg",
  8479. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8480. uid: 1656409780264,
  8481. status: "success",
  8482. },
  8483. ]),
  8484. evaId: this.evalua,
  8485. astudent:
  8486. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8487. see: this.isTeacherSee == true ? 1 : 0,
  8488. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8489. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8490. courseType: JSON.stringify(this.courseTypeId),
  8491. ateacher:
  8492. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8493. inviteCode: JSON.stringify(this.inviteCode),
  8494. },
  8495. ];
  8496. this.ajax
  8497. .post(this.$store.state.api + "addWorkNew2E", params)
  8498. .then((res) => {
  8499. console.log(this.steps);
  8500. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8501. this.$message({
  8502. message: "新增成功",
  8503. type: "success",
  8504. });
  8505. // }
  8506. this.number = res.data.ordernumber;
  8507. this.courseId = res.data.courseId;
  8508. this.cid = res.data.courseId;
  8509. this.courseUserid = this.userid;
  8510. this.islogin = true;
  8511. this.steps = 4;
  8512. })
  8513. .catch((err) => {
  8514. this.$message.error("网络不佳");
  8515. console.error(err);
  8516. });
  8517. },
  8518. goCourse() {
  8519. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  8520. },
  8521. updateWork2() {
  8522. let _unitIndex = this.unitIndex;
  8523. let cPan = 1;
  8524. for (
  8525. var j = 0;
  8526. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8527. j++
  8528. ) {
  8529. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8530. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8531. j
  8532. ].proVisible2 = false;
  8533. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8534. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8535. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8536. (ele) => {
  8537. return ele.value != "";
  8538. }
  8539. );
  8540. }
  8541. }
  8542. this.inputShow = true;
  8543. if (cPan == 2) {
  8544. return;
  8545. }
  8546. let params = [
  8547. {
  8548. cid: this.cid,
  8549. chapters: JSON.stringify(this.unitJson),
  8550. uid: this.userid,
  8551. unitIndex: _unitIndex,
  8552. },
  8553. ];
  8554. this.ajax
  8555. .post(this.$store.state.api + "updateWorkNew4", params)
  8556. .then((res) => {
  8557. this.$message({
  8558. message: "修改成功",
  8559. type: "success",
  8560. });
  8561. this.courseId = this.cid;
  8562. })
  8563. .catch((err) => {
  8564. this.$message.error("网络不佳");
  8565. console.error(err);
  8566. });
  8567. },
  8568. updateWork() {
  8569. let cPan = 1;
  8570. for (var i = 0; i < this.unitJson.length; i++) {
  8571. for (
  8572. var j = 0;
  8573. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8574. j++
  8575. ) {
  8576. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8577. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8578. if (
  8579. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8580. ) {
  8581. for (
  8582. var z = 0;
  8583. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8584. z++
  8585. ) {
  8586. if (
  8587. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8588. .length
  8589. ) {
  8590. this.$message.error("请把工具添加完整");
  8591. cPan = 2;
  8592. break;
  8593. }
  8594. }
  8595. }
  8596. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8597. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8598. i
  8599. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8600. return ele.value != "";
  8601. });
  8602. }
  8603. }
  8604. }
  8605. this.inputShow = true;
  8606. if (cPan == 2) {
  8607. this.step--;
  8608. return;
  8609. }
  8610. for (var i = 0; i < this.unitJson.length; i++) {
  8611. delete this.unitJson[i].isUpdate;
  8612. }
  8613. let params = [
  8614. {
  8615. cid: this.cid,
  8616. title: this.courseName.replace(/%/g, "%25"),
  8617. brief: this.courseText.replace(/%/g, "%25"),
  8618. cover:
  8619. this.cover.length > 0
  8620. ? JSON.stringify(this.cover)
  8621. : JSON.stringify([
  8622. {
  8623. name: "noBanner.jpg",
  8624. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8625. uid: 1656409780264,
  8626. status: "success",
  8627. },
  8628. ]),
  8629. evaId: this.evalua,
  8630. astudent:
  8631. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8632. see: this.isTeacherSee == true ? 1 : 0,
  8633. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8634. template: this.myWord != "undefined" ? this.myWord : [],
  8635. uid: this.userid,
  8636. courseType: JSON.stringify(this.courseTypeId),
  8637. ateacher:
  8638. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8639. inviteCode: JSON.stringify(this.inviteCode),
  8640. },
  8641. ];
  8642. this.ajax
  8643. .post(this.$store.state.api + "updateWorkNew2", params)
  8644. .then((res) => {
  8645. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8646. if (this.cidType == 1) {
  8647. this.$message({
  8648. message: "修改成功",
  8649. type: "success",
  8650. });
  8651. } else {
  8652. this.$message({
  8653. message: "新增成功",
  8654. type: "success",
  8655. });
  8656. }
  8657. // }
  8658. this.number = this.nbOrder;
  8659. this.courseId = this.cid;
  8660. this.steps = 4;
  8661. })
  8662. .catch((err) => {
  8663. this.$message.error("网络不佳");
  8664. console.error(err);
  8665. });
  8666. },
  8667. guid() {
  8668. var _num,
  8669. i,
  8670. _guid = "";
  8671. for (i = 0; i < 32; i++) {
  8672. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8673. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8674. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8675. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8676. _guid += "-";
  8677. }
  8678. }
  8679. return _guid;
  8680. },
  8681. insertWord() {
  8682. this.dialogVisible1 = true;
  8683. this.updateBoolean2 = false;
  8684. this.tTitle = "";
  8685. this.tdetail = "";
  8686. },
  8687. addWord() {
  8688. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8689. name: this.tTitle,
  8690. content: this.tdetail,
  8691. uid: this.guid(),
  8692. });
  8693. this.dialogVisible1 = false;
  8694. },
  8695. upWord() {},
  8696. selectWord(uid, i, c) {
  8697. this.dialogVisible1 = true;
  8698. this.updateBoolean2 = true;
  8699. if (
  8700. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8701. ) {
  8702. this.tTitle =
  8703. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8704. this.tdetail =
  8705. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8706. }
  8707. },
  8708. isAddPP() {
  8709. if (this.checkboxList.length > 0) {
  8710. this.$message({
  8711. message: "添加成功",
  8712. type: "success",
  8713. });
  8714. this.dialogVisible3 = false;
  8715. } else {
  8716. this.$message({
  8717. message: "请添加课程成员",
  8718. type: "error",
  8719. });
  8720. }
  8721. },
  8722. isAddClass() {
  8723. this.dialogVisibleClass = false;
  8724. },
  8725. isAddPPTeacher() {
  8726. this.dialogVisibleMember = false;
  8727. this.setMan();
  8728. },
  8729. getTemplate() {
  8730. this.ajax
  8731. .get(this.$store.state.api + "getCourseTemplateT", "")
  8732. .then((res) => {
  8733. this.templateArray = res.data[0];
  8734. this.getTemplateOid();
  8735. this.$forceUpdate();
  8736. })
  8737. .catch((err) => {});
  8738. },
  8739. getTemplateOid() {
  8740. let params = {
  8741. oid: this.oid,
  8742. };
  8743. this.ajax
  8744. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8745. .then((res) => {
  8746. if (res.data[0].length) {
  8747. this.templateArray = [...res.data[0], ...this.templateArray];
  8748. }
  8749. this.getTemplateOrg();
  8750. this.$forceUpdate();
  8751. })
  8752. .catch((err) => {});
  8753. },
  8754. getTemplateOrg() {
  8755. let params = {
  8756. oid: this.org,
  8757. };
  8758. this.ajax
  8759. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8760. .then((res) => {
  8761. if (res.data[0].length) {
  8762. this.templateArray = [...res.data[0], ...this.templateArray];
  8763. }
  8764. this.$forceUpdate();
  8765. })
  8766. .catch((err) => {});
  8767. },
  8768. clearChoose() {
  8769. this.clearArray.splice(this.templateC.id, 1);
  8770. this.dialogVisible2 = false;
  8771. },
  8772. clearAttText() {
  8773. this.AttText = {
  8774. title: "",
  8775. text: "",
  8776. };
  8777. this.dialogVisible6 = false;
  8778. },
  8779. clearLine() {
  8780. this.line = "";
  8781. this.dialogVisible7 = false;
  8782. },
  8783. checkTemplate(res) {
  8784. let _this = this;
  8785. _this
  8786. .$confirm("确定选择此模板吗?", "提示", {
  8787. confirmButtonText: "确定",
  8788. cancelButtonText: "取消",
  8789. type: "warning",
  8790. })
  8791. .then(() => {
  8792. _this.unitJson = JSON.parse(res.chapters);
  8793. _this.steps++;
  8794. setTimeout(() => {
  8795. this.checkEva(this.checkId);
  8796. }, 1000);
  8797. })
  8798. .catch(() => {
  8799. return;
  8800. });
  8801. },
  8802. checkTemplate1(w) {
  8803. this.steps++;
  8804. },
  8805. checkTemplate2() {
  8806. let _this = this;
  8807. _this
  8808. .$confirm("确定选择空模板吗?", "提示", {
  8809. confirmButtonText: "确定",
  8810. cancelButtonText: "取消",
  8811. type: "warning",
  8812. })
  8813. .then(() => {
  8814. _this.unitIndex = 0;
  8815. _this.unitJson = [
  8816. {
  8817. dyName: "", //单元标题
  8818. chapterInfo: [
  8819. {
  8820. isread: false,
  8821. chapterid: this.guid(),
  8822. title: "",
  8823. courseName: "",
  8824. taskJson: [
  8825. {
  8826. task: "",
  8827. taskDetail: "",
  8828. chapterData: [],
  8829. toolText: "",
  8830. toolChoose: [
  8831. {
  8832. tool: [],
  8833. toolDetail: "",
  8834. toolType: 0,
  8835. askCount: 1,
  8836. askTitle: "",
  8837. askJson: [
  8838. { askstitle: "", askItem: 1, checkList: [] },
  8839. ],
  8840. },
  8841. ],
  8842. isShowTools: false,
  8843. askCount: 1,
  8844. isFold: 0,
  8845. askTitle: "",
  8846. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8847. checkJson: [{ checkCount: [], checkPerent: [] }],
  8848. homeworkList: [],
  8849. },
  8850. ],
  8851. itemCount: 1,
  8852. fileList1: [],
  8853. video: [],
  8854. testData: [],
  8855. pData: [],
  8856. templateArray: [],
  8857. },
  8858. ],
  8859. },
  8860. ];
  8861. this.steps++;
  8862. this.updateWork();
  8863. })
  8864. .catch(() => {
  8865. return;
  8866. });
  8867. },
  8868. checkTemplate3() {
  8869. let _this = this;
  8870. _this
  8871. .$confirm("确定选择简易模式吗?", "提示", {
  8872. confirmButtonText: "确定",
  8873. cancelButtonText: "取消",
  8874. type: "warning",
  8875. })
  8876. .then(() => {
  8877. _this.unitIndex = 0;
  8878. _this.unitJson = [
  8879. {
  8880. dyName: "", //单元标题
  8881. easy: 1,
  8882. chapterInfo: [
  8883. {
  8884. isread: false,
  8885. chapterid: this.guid(),
  8886. title: "",
  8887. courseName: "",
  8888. taskJson: [
  8889. {
  8890. task: "",
  8891. taskDetail: "",
  8892. chapterData: [],
  8893. toolText: "",
  8894. toolChoose: [
  8895. {
  8896. tool: [],
  8897. toolDetail: "",
  8898. toolType: 0,
  8899. askCount: 1,
  8900. askTitle: "",
  8901. askJson: [
  8902. { askstitle: "", askItem: 1, checkList: [] },
  8903. ],
  8904. },
  8905. ],
  8906. isShowTools: false,
  8907. askCount: 1,
  8908. isFold: 0,
  8909. askTitle: "",
  8910. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8911. checkJson: [{ checkCount: [], checkPerent: [] }],
  8912. homeworkList: [],
  8913. },
  8914. ],
  8915. itemCount: 1,
  8916. fileList1: [],
  8917. video: [],
  8918. testData: [],
  8919. pData: [],
  8920. templateArray: [],
  8921. },
  8922. ],
  8923. },
  8924. ];
  8925. this.steps++;
  8926. this.updateWork();
  8927. })
  8928. .catch(() => {
  8929. return;
  8930. });
  8931. },
  8932. checkTemplate4() {
  8933. let _this = this;
  8934. _this
  8935. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  8936. confirmButtonText: "确定",
  8937. cancelButtonText: "取消",
  8938. type: "warning",
  8939. })
  8940. .then(() => {
  8941. _this.unitIndex = 0;
  8942. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  8943. this.steps++;
  8944. this.updateWork();
  8945. })
  8946. .catch(() => {
  8947. return;
  8948. });
  8949. },
  8950. wordNext() {
  8951. this.dialogVisible2 = false;
  8952. },
  8953. isAddOrUpdateAttText() {
  8954. if (this.AttTextType == 0) {
  8955. this.addAttTextMessage();
  8956. } else {
  8957. this.updateAttText();
  8958. }
  8959. },
  8960. isAddOrUpdateLine() {
  8961. if (!this.lineTitle) {
  8962. this.$message.error("请填写链接标题");
  8963. return;
  8964. }
  8965. if (this.lineType == 0) {
  8966. this.addLine();
  8967. } else {
  8968. this.updateLine();
  8969. }
  8970. },
  8971. addAttTextMessage() {
  8972. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8973. this.taskCount
  8974. ].chapterData.push({
  8975. name: this.AttText.title,
  8976. url: this.AttText.text,
  8977. type: 6,
  8978. });
  8979. this.imgChange1(null, null, 6, this.taskCount);
  8980. this.dialogVisible6 = false;
  8981. },
  8982. selectAttText(itemTaskIndex, i) {
  8983. this.AttText.title =
  8984. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8985. itemTaskIndex
  8986. ].chapterData[i].name;
  8987. this.AttText.text =
  8988. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8989. itemTaskIndex
  8990. ].chapterData[i].url;
  8991. this.taskCount = itemTaskIndex;
  8992. this.AttTextIndex = i;
  8993. this.AttTextType = 1;
  8994. this.dialogVisible6 = true;
  8995. },
  8996. updateAttText() {
  8997. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8998. this.taskCount
  8999. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9000. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9001. this.taskCount
  9002. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9003. this.dialogVisible6 = false;
  9004. },
  9005. addLine() {
  9006. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9007. this.lineCount
  9008. ].chapterData.push({
  9009. name: "链接",
  9010. title: this.lineTitle,
  9011. url: this.line,
  9012. type: 8,
  9013. });
  9014. this.imgChange1(null, null, 8, this.lineCount);
  9015. this.dialogVisible7 = false;
  9016. },
  9017. selectLine(itemTaskIndex, i) {
  9018. this.line =
  9019. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9020. itemTaskIndex
  9021. ].chapterData[i].url;
  9022. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9023. itemTaskIndex
  9024. ].chapterData[i].title
  9025. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9026. .chapterData[i].title
  9027. : "";
  9028. this.taskCount = itemTaskIndex;
  9029. this.lineCount = i;
  9030. this.lineType = 1;
  9031. this.dialogVisible7 = true;
  9032. },
  9033. updateLine() {
  9034. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9035. this.taskCount
  9036. ].chapterData[this.lineCount].url = this.line;
  9037. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9038. this.taskCount
  9039. ].chapterData[this.lineCount].title = this.lineTitle;
  9040. this.dialogVisible7 = false;
  9041. },
  9042. addPP() {
  9043. this.dialogVisible3 = true;
  9044. },
  9045. goTo(path) {
  9046. this.$router.push(path);
  9047. },
  9048. openTools(itemTaskIndex, i, toolIndex) {
  9049. this.toolIndex = toolIndex;
  9050. this.taskCount = itemTaskIndex;
  9051. if (i == 4) {
  9052. if (toolIndex == null) {
  9053. var a =
  9054. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9055. .chapterData;
  9056. for (var i = 0; i < a.length; i++) {
  9057. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9058. this.askJson =
  9059. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9060. itemTaskIndex
  9061. ].chapterData[i].askJson;
  9062. }
  9063. }
  9064. } else {
  9065. this.askJson = JSON.parse(
  9066. JSON.stringify(
  9067. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9068. itemTaskIndex
  9069. ].toolChoose[toolIndex]
  9070. )
  9071. );
  9072. }
  9073. this.dialogVisible5 = true;
  9074. } else if (i == 45) {
  9075. if (
  9076. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9077. .toolChoose[toolIndex].testJson
  9078. ) {
  9079. this.testJson = JSON.parse(
  9080. JSON.stringify(
  9081. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9082. itemTaskIndex
  9083. ].toolChoose[toolIndex].testJson
  9084. )
  9085. );
  9086. } else {
  9087. var testJson = {
  9088. testCount: 1,
  9089. testTitle: "",
  9090. testJson: [
  9091. {
  9092. teststitle: "",
  9093. testItem: 1,
  9094. checkList: [],
  9095. timuList: [],
  9096. answer: [],
  9097. type: "1",
  9098. },
  9099. ],
  9100. };
  9101. this.testJson = testJson;
  9102. }
  9103. this.dialogVisibleChoice = true;
  9104. } else if (i == 47) {
  9105. if (
  9106. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9107. .toolChoose[toolIndex].sentenceList
  9108. ) {
  9109. this.sentenceList = JSON.parse(
  9110. JSON.stringify(
  9111. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9112. itemTaskIndex
  9113. ].toolChoose[toolIndex].sentenceList
  9114. )
  9115. );
  9116. } else {
  9117. var sentenceList = [
  9118. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9119. ];
  9120. this.sentenceList = sentenceList;
  9121. }
  9122. this.dialogVisibleSentence = true;
  9123. } else if (i == 48) {
  9124. if (
  9125. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9126. .toolChoose[toolIndex].tableJson
  9127. ) {
  9128. this.tableJson = JSON.parse(
  9129. JSON.stringify(
  9130. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9131. itemTaskIndex
  9132. ].toolChoose[toolIndex].tableJson
  9133. )
  9134. );
  9135. } else {
  9136. var tableJson = { text: "" };
  9137. this.tableJson = tableJson;
  9138. }
  9139. this.dialogVisibleTable = true;
  9140. } else if (i == 52) {
  9141. if (
  9142. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9143. .toolChoose[toolIndex].wordJson
  9144. ) {
  9145. this.wordJson = JSON.parse(
  9146. JSON.stringify(
  9147. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9148. itemTaskIndex
  9149. ].toolChoose[toolIndex].wordJson
  9150. )
  9151. );
  9152. } else {
  9153. var wordJson = { text: "" };
  9154. this.wordJson = wordJson;
  9155. }
  9156. this.dialogVisibleWord = true;
  9157. // else if (i == 50) {
  9158. // if (
  9159. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9160. // .toolChoose[toolIndex].uploadJson
  9161. // ) {
  9162. // this.uploadJson = JSON.parse(
  9163. // JSON.stringify(
  9164. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9165. // itemTaskIndex
  9166. // ].toolChoose[toolIndex].uploadJson
  9167. // )
  9168. // );
  9169. // } else {
  9170. // var uploadJson = [];
  9171. // this.uploadJson = uploadJson;
  9172. // }
  9173. // this.dialogVisibleMoreUpload = true;
  9174. // }
  9175. } else if (i == 10) {
  9176. if (
  9177. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9178. .toolChoose[toolIndex].preTime
  9179. ) {
  9180. this.preTime = JSON.parse(
  9181. JSON.stringify(
  9182. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9183. itemTaskIndex
  9184. ].toolChoose[toolIndex].preTime
  9185. )
  9186. );
  9187. } else {
  9188. var preTime = 0;
  9189. this.preTime = preTime;
  9190. }
  9191. this.dialogVisiblePreTime = true;
  9192. } else if (i == 49) {
  9193. if (
  9194. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9195. .toolChoose[toolIndex].groupJson
  9196. ) {
  9197. this.groupJson = JSON.parse(
  9198. JSON.stringify(
  9199. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9200. itemTaskIndex
  9201. ].toolChoose[toolIndex].groupJson
  9202. )
  9203. );
  9204. } else {
  9205. var groupJson = {
  9206. group: [{ name: "第1组" }],
  9207. number: undefined,
  9208. islock: 1,
  9209. };
  9210. this.groupJson = groupJson;
  9211. }
  9212. this.dialogVisibleGroup = true;
  9213. } else if (i == 62) {
  9214. if (
  9215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9216. .toolChoose[toolIndex].videoJson
  9217. ) {
  9218. this.videoJson = JSON.parse(
  9219. JSON.stringify(
  9220. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9221. itemTaskIndex
  9222. ].toolChoose[toolIndex].videoJson
  9223. )
  9224. );
  9225. } else {
  9226. var videoJson = {
  9227. video: "",
  9228. setting: [],
  9229. };
  9230. this.videoJson = videoJson;
  9231. }
  9232. this.dialogVisibleVideo = true;
  9233. } else if (i == 15) {
  9234. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9235. itemTaskIndex
  9236. ].toolChoose[toolIndex].answerQ
  9237. ? JSON.parse(
  9238. JSON.stringify(
  9239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9240. itemTaskIndex
  9241. ].toolChoose[toolIndex].answerQ
  9242. )
  9243. )
  9244. : "";
  9245. this.dialogVisible8 = true;
  9246. } else if (i == 40) {
  9247. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9248. itemTaskIndex
  9249. ].toolChoose[toolIndex].rateJson
  9250. ? JSON.parse(
  9251. JSON.stringify(
  9252. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9253. itemTaskIndex
  9254. ].toolChoose[toolIndex].rateJson
  9255. )
  9256. )
  9257. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9258. this.selectSteps = 1;
  9259. this.dialogVisibleRate = true;
  9260. } else if (i == 42) {
  9261. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9262. itemTaskIndex
  9263. ].toolChoose[toolIndex].answerQ
  9264. ? JSON.parse(
  9265. JSON.stringify(
  9266. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9267. itemTaskIndex
  9268. ].toolChoose[toolIndex].answerQ
  9269. )
  9270. )
  9271. : "";
  9272. this.dialogVisibleMp3 = true;
  9273. } else if (i == 41) {
  9274. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9275. itemTaskIndex
  9276. ].toolChoose[toolIndex].selectJson
  9277. ? JSON.parse(
  9278. JSON.stringify(
  9279. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9280. itemTaskIndex
  9281. ].toolChoose[toolIndex].selectJson
  9282. )
  9283. )
  9284. : { url: "", select: [], answer: [] };
  9285. this.selectSteps = 1;
  9286. this.dialogVisibleSelect = true;
  9287. } else if (i == 3) {
  9288. if (!this.cid) {
  9289. this.$message.error(
  9290. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  9291. );
  9292. return;
  9293. }
  9294. window.parent.postMessage(
  9295. {
  9296. tools: "3y",
  9297. cid: this.cid,
  9298. stage: this.unitIndex,
  9299. task: itemTaskIndex,
  9300. tool: toolIndex,
  9301. },
  9302. "*"
  9303. );
  9304. } else if (i == 1) {
  9305. if (!this.cid) {
  9306. this.$message.error(
  9307. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  9308. );
  9309. return;
  9310. }
  9311. window.parent.postMessage(
  9312. {
  9313. tools: "1y",
  9314. cid: this.cid,
  9315. stage: this.unitIndex,
  9316. task: itemTaskIndex,
  9317. tool: toolIndex,
  9318. },
  9319. "*"
  9320. );
  9321. } else if (i == 57) {
  9322. if (!this.cid) {
  9323. this.$message.error(
  9324. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  9325. );
  9326. return;
  9327. }
  9328. window.parent.postMessage(
  9329. {
  9330. tools: "57y",
  9331. cid: this.cid,
  9332. stage: this.unitIndex,
  9333. task: itemTaskIndex,
  9334. tool: toolIndex,
  9335. },
  9336. "*"
  9337. );
  9338. }
  9339. },
  9340. chapAddTools(i) {
  9341. if (this.chapTools[0].tools.length == 0) {
  9342. this.chapTools[0].tools.push(i);
  9343. } else {
  9344. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9345. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9346. } else {
  9347. this.chapTools[0].tools.push(i);
  9348. }
  9349. }
  9350. this.$forceUpdate();
  9351. },
  9352. addChaptersDataTools() {
  9353. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9354. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9355. this.chapCount
  9356. ].chapterData.push({
  9357. name: this.chapTools[0].toolDetail,
  9358. url: this.chapTools[0].tools,
  9359. type: 7,
  9360. askJson: this.askJson,
  9361. });
  9362. } else {
  9363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9364. this.chapCount
  9365. ].chapterData.push({
  9366. name: this.chapTools[0].toolDetail,
  9367. url: this.chapTools[0].tools,
  9368. type: 7,
  9369. });
  9370. }
  9371. this.imgChange1(null, null, 7, this.chapCount);
  9372. this.dialogVisible4 = false;
  9373. },
  9374. addTools(i, itemTaskIndex, toolIndex) {
  9375. // if (
  9376. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9377. // .toolChoose[toolIndex].tool.length == 0
  9378. // ) {
  9379. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9380. // itemTaskIndex
  9381. // ].toolChoose[toolIndex].tool.push(i);
  9382. // } else {
  9383. // if (
  9384. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9385. // itemTaskIndex
  9386. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9387. // ) {
  9388. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9389. // itemTaskIndex
  9390. // ].toolChoose[toolIndex].tool.splice(
  9391. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9392. // itemTaskIndex
  9393. // ].toolChoose[toolIndex].tool.indexOf(i),
  9394. // 1
  9395. // );
  9396. // } else {
  9397. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9398. // itemTaskIndex
  9399. // ].toolChoose[toolIndex].tool.push(i);
  9400. // }
  9401. // console.log(
  9402. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9403. // .toolChoose[toolIndex].tool
  9404. // );
  9405. // }
  9406. if (i == 4) {
  9407. if (
  9408. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9409. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9410. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9411. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9412. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9413. .toolChoose[toolIndex].askJson[0].checkList < 2
  9414. ) {
  9415. this.openTools(itemTaskIndex, 4, toolIndex);
  9416. // this.$message({
  9417. // message: "请填写完整问卷内容",
  9418. // type: "error",
  9419. // });
  9420. return;
  9421. }
  9422. }
  9423. if (i == 45) {
  9424. if (
  9425. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9426. .toolChoose[toolIndex].testJson ||
  9427. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9428. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9430. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9431. ) {
  9432. this.openTools(itemTaskIndex, 45, toolIndex);
  9433. // this.$message({
  9434. // message: "请填写完整问卷内容",
  9435. // type: "error",
  9436. // });
  9437. return;
  9438. }
  9439. }
  9440. if (i == 47) {
  9441. if (
  9442. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9443. .toolChoose[toolIndex].sentenceList ||
  9444. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9445. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9446. ) {
  9447. this.openTools(itemTaskIndex, 47, toolIndex);
  9448. return;
  9449. }
  9450. }
  9451. // if (i == 48) {
  9452. // if (
  9453. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9454. // .toolChoose[toolIndex].tableJson
  9455. // ) {
  9456. // this.openTools(itemTaskIndex, 48, toolIndex);
  9457. // return;
  9458. // }
  9459. // }
  9460. // if (i == 50) {
  9461. // if (
  9462. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9463. // .toolChoose[toolIndex].uploadJson
  9464. // ) {
  9465. // this.openTools(itemTaskIndex, 50, toolIndex);
  9466. // return;
  9467. // }
  9468. // }
  9469. if (i == 49) {
  9470. if (
  9471. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9472. .toolChoose[toolIndex].groupJson
  9473. ) {
  9474. this.openTools(itemTaskIndex, 49, toolIndex);
  9475. return;
  9476. }
  9477. }
  9478. if (i == 62) {
  9479. if (
  9480. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9481. .toolChoose[toolIndex].videoJson
  9482. ) {
  9483. this.openTools(itemTaskIndex, 62, toolIndex);
  9484. return;
  9485. }
  9486. }
  9487. if (i == 15) {
  9488. if (
  9489. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9490. .toolChoose[toolIndex].answerQ ||
  9491. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9492. .toolChoose[toolIndex].answerQ == ""
  9493. ) {
  9494. this.openTools(itemTaskIndex, 15, toolIndex);
  9495. // this.$message({
  9496. // message: "请填写问答内容",
  9497. // type: "error",
  9498. // });
  9499. return;
  9500. }
  9501. }
  9502. if (i == 40) {
  9503. if (
  9504. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9505. .toolChoose[toolIndex].rateJson ||
  9506. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9507. .toolChoose[toolIndex].rateJson.length
  9508. ) {
  9509. this.openTools(itemTaskIndex, 40, toolIndex);
  9510. return;
  9511. }
  9512. }
  9513. if (i == 41) {
  9514. if (
  9515. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9516. .toolChoose[toolIndex].selectJson ||
  9517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9518. .toolChoose[toolIndex].selectJson.url == "" ||
  9519. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9520. .toolChoose[toolIndex].selectJson.select.length ||
  9521. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9522. .toolChoose[toolIndex].selectJson.answer.length
  9523. ) {
  9524. this.openTools(itemTaskIndex, 41, toolIndex);
  9525. return;
  9526. }
  9527. }
  9528. if (i == 42) {
  9529. if (
  9530. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9531. .toolChoose[toolIndex].answerQ ||
  9532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9533. .toolChoose[toolIndex].answerQ == ""
  9534. ) {
  9535. this.openTools(itemTaskIndex, 42, toolIndex);
  9536. return;
  9537. }
  9538. }
  9539. if (
  9540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9541. .toolChoose[toolIndex].tool.length > 0
  9542. ) {
  9543. if (
  9544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9545. itemTaskIndex
  9546. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9547. ) {
  9548. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9549. itemTaskIndex
  9550. ].toolChoose[toolIndex].tool.splice(
  9551. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9552. itemTaskIndex
  9553. ].toolChoose[toolIndex].tool.indexOf(i),
  9554. 1
  9555. );
  9556. } else {
  9557. // this.$message({
  9558. // message: "每个工具只能添加一个",
  9559. // type: "error",
  9560. // });
  9561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9562. itemTaskIndex
  9563. ].toolChoose[toolIndex].tool = [];
  9564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9565. itemTaskIndex
  9566. ].toolChoose[toolIndex].tool.push(i);
  9567. }
  9568. } else {
  9569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9570. itemTaskIndex
  9571. ].toolChoose[toolIndex].tool.push(i);
  9572. }
  9573. this.$forceUpdate();
  9574. },
  9575. addAskList() {
  9576. this.askJson.askJson.push({
  9577. askstitle: "",
  9578. askItem: 1,
  9579. checkList: [],
  9580. });
  9581. this.askJson.askCount++;
  9582. },
  9583. addTestList() {
  9584. this.testJson.testJson.push({
  9585. teststitle: "",
  9586. testItem: 1,
  9587. checkList: [],
  9588. timuList: [],
  9589. answer: [],
  9590. type: "1",
  9591. });
  9592. this.testJson.testCount++;
  9593. },
  9594. deleteAskList(index) {
  9595. this.askJson.askJson.splice(index, 1);
  9596. this.askJson.askCount--;
  9597. },
  9598. deleteTestList(index) {
  9599. this.testJson.testJson.splice(index, 1);
  9600. this.testJson.testCount--;
  9601. },
  9602. addcheckList(json) {
  9603. json.checkList.length++;
  9604. json.askItem++;
  9605. },
  9606. deletecheckList(json) {
  9607. json.checkList.length--;
  9608. json.askItem--;
  9609. },
  9610. addTcheckList(json) {
  9611. json.checkList.length++;
  9612. json.testItem++;
  9613. },
  9614. deleteTcheckList(json) {
  9615. json.checkList.length--;
  9616. json.testItem--;
  9617. },
  9618. checkTestType(type, json) {
  9619. json.type = type;
  9620. setTimeout(()=>{
  9621. json.answer = [];
  9622. },100)
  9623. },
  9624. checkAskType(type, json) {
  9625. json.type = type;
  9626. json.checkList = [];
  9627. },
  9628. addSelectList(json) {
  9629. json.select.push("");
  9630. json.answer.push("");
  9631. },
  9632. deleteSelectList(json) {
  9633. // json.select.length--;
  9634. // json.answer.length--;
  9635. json.select.splice(json.select.length - 1, 1);
  9636. json.answer.splice(json.answer.length - 1, 1);
  9637. },
  9638. addAsk() {
  9639. if (this.askJson.askTitle === "") {
  9640. this.$message.error("标题不能为空!");
  9641. return;
  9642. }
  9643. var aj = this.askJson.askJson;
  9644. var b = 1;
  9645. for (var i = 0; i < aj.length; i++) {
  9646. if (aj[i].askstitle === "") {
  9647. var a = 1;
  9648. for (let index = 0; index < aj[i].askItem; index++) {
  9649. const element = aj[i].checkList[index]
  9650. ? aj[i].checkList[index]
  9651. : "";
  9652. if (element != "") {
  9653. b++;
  9654. this.$message.error("填写了选项,题目不能为空!");
  9655. return;
  9656. } else {
  9657. a++;
  9658. }
  9659. }
  9660. if (b == 1) {
  9661. this.$message.error("至少填写一个问题");
  9662. return;
  9663. }
  9664. } else if (aj[i].askstitle != "") {
  9665. for (let index = 0; index < aj[i].askItem; index++) {
  9666. const element = aj[i].checkList[index]
  9667. ? aj[i].checkList[index]
  9668. : "";
  9669. var index = 0;
  9670. for (var z = 0; z < aj[i].checkList.length; z++) {
  9671. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9672. if (checkC != "") {
  9673. index++;
  9674. } else {
  9675. this.$message.error("选项不能为空!");
  9676. return;
  9677. }
  9678. }
  9679. b++;
  9680. if (index < 2) {
  9681. this.$message.error("填写了的题目,选项至少要有两项!");
  9682. return;
  9683. }
  9684. }
  9685. }
  9686. }
  9687. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9688. var elc = el.checkList.filter((element) => {
  9689. return element != "";
  9690. });
  9691. return el.askstitle != "" && elc.length != 0;
  9692. });
  9693. if (!this.dialogVisible4) {
  9694. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9695. this.taskCount
  9696. ].toolChoose[this.toolIndex] = this.askJson;
  9697. }
  9698. this.dialogVisible5 = false;
  9699. if (
  9700. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9701. .toolChoose[this.toolIndex].tool != 4
  9702. ) {
  9703. this.addTools(4, this.taskCount, this.toolIndex);
  9704. }
  9705. },
  9706. addTest() {
  9707. // if (this.testJson.testTitle === "") {
  9708. // this.$message.error("标题不能为空!");
  9709. // return;
  9710. // }
  9711. var aj = this.testJson.testJson;
  9712. var b = 1;
  9713. for (var i = 0; i < aj.length; i++) {
  9714. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9715. var a = 1;
  9716. for (let index = 0; index < aj[i].testItem; index++) {
  9717. const element = aj[i].checkList[index]
  9718. ? aj[i].checkList[index]
  9719. : "";
  9720. if (element != "") {
  9721. b++;
  9722. this.$message.error("填写了选项,题目不能为空!");
  9723. return;
  9724. } else {
  9725. a++;
  9726. }
  9727. }
  9728. if (b == 1) {
  9729. this.$message.error("至少填写一个问题");
  9730. return;
  9731. }
  9732. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  9733. for (let index = 0; index < aj[i].testItem; index++) {
  9734. const element = aj[i].checkList[index]
  9735. ? aj[i].checkList[index]
  9736. : "";
  9737. var index = 0;
  9738. for (var z = 0; z < aj[i].checkList.length; z++) {
  9739. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9740. if (checkC != "") {
  9741. index++;
  9742. } else {
  9743. this.$message.error("选项不能为空!");
  9744. return;
  9745. }
  9746. }
  9747. b++;
  9748. if (index < 2) {
  9749. this.$message.error("填写了的题目,选项至少要有两项!");
  9750. return;
  9751. }
  9752. if (
  9753. (aj[i].type == "2" && !aj[i].answer.length) ||
  9754. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  9755. ) {
  9756. this.$message.error("有题目未选择答案请选择答案");
  9757. return;
  9758. }
  9759. }
  9760. }
  9761. }
  9762. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9763. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9764. var elc = el.checkList.filter((element) => {
  9765. return element != "";
  9766. });
  9767. return (
  9768. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9769. );
  9770. });
  9771. isTestJson.testCount = isTestJson.testJson.length;
  9772. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9773. this.taskCount
  9774. ].toolChoose[this.toolIndex].testJson = isTestJson;
  9775. this.dialogVisibleChoice = false;
  9776. if (
  9777. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9778. .toolChoose[this.toolIndex].tool != 45
  9779. ) {
  9780. this.addTools(45, this.taskCount, this.toolIndex);
  9781. }
  9782. },
  9783. addVideoJson(videoJson) {
  9784. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9785. this.taskCount
  9786. ].toolChoose[this.toolIndex].videoJson = videoJson;
  9787. this.dialogVisibleVideo = false;
  9788. if (
  9789. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9790. .toolChoose[this.toolIndex].tool != 62
  9791. ) {
  9792. this.addTools(62, this.taskCount, this.toolIndex);
  9793. }
  9794. },
  9795. //自动获取剪贴板
  9796. pasteOption() {
  9797. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9798. if (!iframe) {
  9799. this.$message.error("请使用AI共创生成题目");
  9800. return;
  9801. }
  9802. let copyData = iframe.contentWindow.copyData;
  9803. if (!copyData || !copyData.selectData.length) {
  9804. this.$message.error("请使用AI共创生成题目");
  9805. return;
  9806. }
  9807. let selectData = copyData.selectData;
  9808. for (var i = 0; i < selectData.length; i++) {
  9809. let answer = 0;
  9810. switch (selectData[i].answer[0]) {
  9811. case "A":
  9812. answer = 0;
  9813. break;
  9814. case "B":
  9815. answer = 1;
  9816. break;
  9817. case "C":
  9818. answer = 2;
  9819. break;
  9820. case "D":
  9821. answer = 3;
  9822. break;
  9823. case "E":
  9824. answer = 4;
  9825. break;
  9826. default:
  9827. break;
  9828. }
  9829. this.testJson.testJson.push({
  9830. teststitle: selectData[i].subject,
  9831. testItem: selectData[i].options.length,
  9832. checkList: selectData[i].options,
  9833. timuList: [],
  9834. answer: answer,
  9835. type: "1",
  9836. });
  9837. this.testJson.testCount++;
  9838. }
  9839. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9840. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9841. var elc = el.checkList.filter((element) => {
  9842. return element != "";
  9843. });
  9844. return (
  9845. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9846. );
  9847. });
  9848. isTestJson.testCount = isTestJson.testJson.length;
  9849. this.testJson = isTestJson;
  9850. this.$forceUpdate();
  9851. },
  9852. pasteTask() {
  9853. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9854. if (!iframe) {
  9855. this.$message.error("请使用AI共创生成");
  9856. return;
  9857. }
  9858. let copyData = iframe.contentWindow.copyData;
  9859. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  9860. this.$message.error("请使用AI共创生成");
  9861. return;
  9862. }
  9863. let stageTasksData = copyData.tasksData;
  9864. let taskA = [];
  9865. let tasks = stageTasksData;
  9866. for (var j = 0; j < tasks.length; j++) {
  9867. taskA.push({
  9868. task: tasks[j].taskName,
  9869. taskDetail: tasks[j].taskDecs,
  9870. chapterData: [],
  9871. toolText: "",
  9872. toolChoose: [
  9873. {
  9874. tool: [],
  9875. toolDetail: "",
  9876. toolType: 0,
  9877. askCount: 1,
  9878. askTitle: "",
  9879. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9880. },
  9881. ],
  9882. isShowTools: false,
  9883. askCount: 1,
  9884. isFold: 0,
  9885. askTitle: "",
  9886. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9887. checkJson: [{ checkCount: [], checkPerent: [] }],
  9888. homeworkList: [],
  9889. });
  9890. }
  9891. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  9892. this.$forceUpdate();
  9893. },
  9894. pasteStage() {
  9895. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9896. if (!iframe) {
  9897. this.$message.error("请使用AI共创生成");
  9898. return;
  9899. }
  9900. let copyData = iframe.contentWindow.copyData;
  9901. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  9902. this.$message.error("请使用AI共创生成");
  9903. return;
  9904. }
  9905. let stageData = copyData.stageData;
  9906. let stage = [];
  9907. for (var i = 0; i < stageData.length; i++) {
  9908. stage.push({
  9909. dyName: stageData[i], //单元标题
  9910. chapterInfo: [
  9911. {
  9912. isread: false,
  9913. chapterid: this.guid(),
  9914. title: "",
  9915. courseName: "",
  9916. taskJson: [
  9917. {
  9918. task: "",
  9919. taskDetail: "",
  9920. chapterData: [],
  9921. toolText: "",
  9922. toolChoose: [
  9923. {
  9924. tool: [],
  9925. toolDetail: "",
  9926. toolType: 0,
  9927. askCount: 1,
  9928. askTitle: "",
  9929. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9930. },
  9931. ],
  9932. isShowTools: false,
  9933. askCount: 1,
  9934. isFold: 0,
  9935. askTitle: "",
  9936. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9937. checkJson: [{ checkCount: [], checkPerent: [] }],
  9938. homeworkList: [],
  9939. },
  9940. ],
  9941. itemCount: 1,
  9942. fileList1: [],
  9943. video: [],
  9944. testData: [],
  9945. pData: [],
  9946. templateArray: [],
  9947. },
  9948. ],
  9949. });
  9950. }
  9951. let _this = this;
  9952. _this
  9953. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  9954. confirmButtonText: "确定",
  9955. cancelButtonText: "取消",
  9956. type: "warning",
  9957. })
  9958. .then(() => {
  9959. _this.unitIndex = 0;
  9960. _this.unitJson = stage;
  9961. _this.steps++;
  9962. _this.updateWork();
  9963. })
  9964. .catch(() => {
  9965. return;
  9966. });
  9967. },
  9968. addAnswer() {
  9969. if (this.answerQ == "") {
  9970. this.$message.error("请输入您想要问的问题");
  9971. return;
  9972. }
  9973. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9974. this.taskCount
  9975. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  9976. this.dialogVisible8 = false;
  9977. if (
  9978. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9979. .toolChoose[this.toolIndex].tool != 15
  9980. ) {
  9981. this.addTools(15, this.taskCount, this.toolIndex);
  9982. }
  9983. },
  9984. addMp3Answer() {
  9985. if (this.answerQ == "") {
  9986. this.$message.error("请输入您想要回答的问题");
  9987. return;
  9988. }
  9989. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9990. this.taskCount
  9991. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  9992. this.dialogVisibleMp3 = false;
  9993. },
  9994. addRateAnswer() {
  9995. var a = 1;
  9996. for (var i = 0; i < this.rateJson.length; i++) {
  9997. if (this.rateJson[i].value == "") {
  9998. a = 2;
  9999. break;
  10000. }
  10001. }
  10002. if (a == 2) {
  10003. this.$message.error("请把评价信息填写完整");
  10004. return;
  10005. }
  10006. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10007. this.taskCount
  10008. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10009. this.dialogVisibleRate = false;
  10010. if (
  10011. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10012. .toolChoose[this.toolIndex].tool != 40
  10013. ) {
  10014. this.addTools(40, this.taskCount, this.toolIndex);
  10015. }
  10016. },
  10017. addSelectAnswer() {
  10018. if (this.selectJson.url == "") {
  10019. this.$message.error("请上传题目");
  10020. return;
  10021. }
  10022. if (!this.selectJson.select.length) {
  10023. this.$message.error("请添加选项");
  10024. return;
  10025. }
  10026. if (!this.selectJson.answer.length) {
  10027. this.$message.error("请设置答案");
  10028. return;
  10029. }
  10030. var a = 1;
  10031. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10032. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10033. a = 2;
  10034. }
  10035. }
  10036. if (a == 2) {
  10037. this.$message.error("请设置答案");
  10038. return;
  10039. }
  10040. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10041. this.taskCount
  10042. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10043. this.dialogVisibleSelect = false;
  10044. if (
  10045. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10046. .toolChoose[this.toolIndex].tool != 41
  10047. ) {
  10048. this.addTools(41, this.taskCount, this.toolIndex);
  10049. }
  10050. },
  10051. nextSelectSteps() {
  10052. if (this.selectJson.url == "") {
  10053. this.$message.error("请上传题目");
  10054. return;
  10055. }
  10056. if (!this.selectJson.select.length) {
  10057. this.$message.error("请添加选项");
  10058. return;
  10059. }
  10060. var a = 1;
  10061. for (var i = 0; i < this.selectJson.select.length; i++) {
  10062. if (!this.selectJson.select[i]) {
  10063. a = 2;
  10064. }
  10065. }
  10066. if (a == 2) {
  10067. this.$message.error("添加的选项不能为空");
  10068. return;
  10069. }
  10070. this.selectSteps++;
  10071. },
  10072. selectCourseDetail() {
  10073. if (this.cid == "" || this.cid == undefined) {
  10074. console.log("这是新增课程");
  10075. this.selectAllType();
  10076. } else {
  10077. this.cidType = 1;
  10078. let params = {
  10079. cid: this.cid,
  10080. };
  10081. this.ajax
  10082. .get(this.$store.state.api + "select_course_detail", params)
  10083. .then((res) => {
  10084. this.loading = true;
  10085. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10086. for (var j = 0; j < this.unitJson.length; j++) {
  10087. for (
  10088. var k = 0;
  10089. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10090. k++
  10091. ) {
  10092. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10093. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10094. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10095. : [];
  10096. let _chapterData = [];
  10097. for (
  10098. var c = 0;
  10099. c <
  10100. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10101. .length;
  10102. c++
  10103. ) {
  10104. if (
  10105. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10106. ) {
  10107. _chapterData.push(
  10108. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10109. );
  10110. }
  10111. }
  10112. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10113. _chapterData;
  10114. }
  10115. }
  10116. this.$forceUpdate();
  10117. this.courseName = res.data[0][0].title;
  10118. this.courseText = res.data[0][0].brief;
  10119. this.evalua = res.data[0][0].evaId;
  10120. this.cover = JSON.parse(res.data[0][0].cover);
  10121. this.noneBtnImg = this.cover.length >= 1;
  10122. // this.checkboxList =
  10123. // res.data[0][0].course_student.length > 0
  10124. // ? JSON.parse(res.data[0][0].course_student)
  10125. // : [];
  10126. this.checkboxList2 = res.data[0][0].juri
  10127. ? res.data[0][0].juri.split(",")
  10128. : [];
  10129. this.inviteCode = [];
  10130. for (var i = 0; i < res.data[2].length; i++) {
  10131. this.inviteCode.push({
  10132. cid: res.data[2][i].classid,
  10133. ic: res.data[2][i].code,
  10134. });
  10135. }
  10136. this.checkboxList3 = res.data[0][0].course_teacher
  10137. ? res.data[0][0].course_teacher.split(",")
  10138. : [];
  10139. // this.isTeacherSee =
  10140. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10141. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10142. this.myWord = res.data[0][0].template;
  10143. this.templateC.id = "123";
  10144. this.courseUserid = res.data[0][0].userid;
  10145. // if(this.courseUserid == this.userid){
  10146. // this.InviteChange(this.checkboxList2)
  10147. // }
  10148. this.nbOrder = res.data[0][0].ordernumber;
  10149. this.courseTypeId = [];
  10150. for (var i = 0; i < res.data[1].length; i++) {
  10151. this.courseTypeId.push(res.data[1][i].typeid);
  10152. }
  10153. console.log(this.courseTypeId);
  10154. // if (this.timer) clearInterval(this.timer);
  10155. if (this.timer) clearTimeout(this.timer);
  10156. this.timer = null;
  10157. // this.timer = setInterval(() => {
  10158. // this.seleteCourseUpdate();
  10159. this.setMan();
  10160. this.selectAllType();
  10161. // }, 5000);
  10162. this.$forceUpdate();
  10163. setTimeout(() => {
  10164. this.checkEva(this.evalua);
  10165. }, 0);
  10166. })
  10167. .catch((err) => {
  10168. console.error(err);
  10169. });
  10170. }
  10171. },
  10172. seleteCourseUpdate() {
  10173. let params = {
  10174. cid: this.cid,
  10175. };
  10176. this.ajax
  10177. .get(this.$store.state.api + "select_course_detail", params)
  10178. .then((res) => {
  10179. // console.log(this.unitJson);
  10180. let unitJson = JSON.parse(res.data[0][0].chapters);
  10181. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10182. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10183. let _unitJson = [];
  10184. let _chapAarry = [];
  10185. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10186. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10187. let index = 1;
  10188. let chapindex;
  10189. if (_unitJson2.length > unitJson.length) {
  10190. for (let c = 0; c < _unitJson2.length; c++) {
  10191. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10192. }
  10193. for (let j = 0; j < unitJson.length; j++) {
  10194. let count = 0;
  10195. for (let k = 0; k < _unitJson2.length; k++) {
  10196. if (
  10197. unitJson[j].chapterInfo[0].chapterid ==
  10198. _unitJson2[k].chapterInfo[0].chapterid
  10199. ) {
  10200. count++;
  10201. _chapAarry.splice(
  10202. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10203. 1
  10204. );
  10205. _unitJson.push(unitJson[j]);
  10206. break;
  10207. }
  10208. }
  10209. // if(count === 0){
  10210. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10211. // }
  10212. }
  10213. for (let k = 0; k < _unitJson2.length; k++) {
  10214. if (_unitJson2[k].isUpdate == 1) {
  10215. _chapAarry.splice(
  10216. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10217. 1
  10218. );
  10219. _unitJson.push(_unitJson2[k]);
  10220. }
  10221. }
  10222. console.log(_chapAarry);
  10223. for (let d = 0; d < _unitJson2.length; d++) {
  10224. if (
  10225. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10226. ) {
  10227. if (_unitIndex == d) {
  10228. index = 2;
  10229. }
  10230. chapindex = d;
  10231. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10232. }
  10233. }
  10234. } else {
  10235. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10236. }
  10237. for (let i = 0; i < unitJson.length; i++) {
  10238. if (
  10239. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10240. _unitJson[i].chapterInfo[0].chapterid !=
  10241. unitJson[i].chapterInfo[0].chapterid
  10242. ) {
  10243. if (i == _unitJson.length - 1) {
  10244. // this.unitIndex++
  10245. _unitIndex2++;
  10246. }
  10247. _unitJson.splice(i, 0, unitJson[i]);
  10248. } else if (i > _unitJson.length - 1) {
  10249. _unitJson.push(unitJson[i]);
  10250. } else if (
  10251. _unitJson[i].chapterInfo[0].chapterid ==
  10252. unitJson[i].chapterInfo[0].chapterid
  10253. ) {
  10254. _unitJson[i] = unitJson[i];
  10255. }
  10256. // if (i == _unitIndex) {
  10257. // continue;
  10258. // } else
  10259. }
  10260. if (_chapAarry.length && index != 2) {
  10261. if (chapindex < _unitIndex) {
  10262. this.isDelete = 2;
  10263. // this.unitIndex--;
  10264. _unitIndex2--;
  10265. } else if (
  10266. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10267. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10268. ) {
  10269. this.isDelete = 2;
  10270. for (let n = 0; n < _unitJson.length; n++) {
  10271. if (
  10272. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10273. _unitJson[n].chapterInfo[0].chapterid
  10274. ) {
  10275. // this.unitIndex = n;
  10276. _unitIndex2 = n;
  10277. _unitJson[n] = _unitJson2[_unitIndex];
  10278. break;
  10279. }
  10280. }
  10281. }
  10282. } else if (index != 2) {
  10283. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10284. _unitJson2[_unitIndex];
  10285. for (
  10286. var ci = 0;
  10287. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10288. ci++
  10289. ) {
  10290. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10291. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10292. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10293. .toolChoose
  10294. : [];
  10295. let _chapterData = [];
  10296. for (
  10297. var c = 0;
  10298. c <
  10299. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10300. .length;
  10301. c++
  10302. ) {
  10303. if (
  10304. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10305. .chapterData[c]
  10306. ) {
  10307. _chapterData.push(
  10308. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10309. .chapterData[c]
  10310. );
  10311. }
  10312. }
  10313. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10314. _chapterData;
  10315. }
  10316. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10317. }
  10318. if (index == 1) {
  10319. this.unitJson = _unitJson;
  10320. this.$forceUpdate();
  10321. setTimeout(() => {
  10322. if (this.unitIndex != _unitIndex2) {
  10323. this.isDelete = 2;
  10324. this.unitIndex = _unitIndex2;
  10325. }
  10326. }, 0);
  10327. this.timer = setTimeout(() => {
  10328. this.seleteCourseUpdate();
  10329. }, 1000);
  10330. } else if (index == 2) {
  10331. let _this = this;
  10332. _this
  10333. .$confirm(
  10334. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10335. "提示",
  10336. {
  10337. confirmButtonText: "需要",
  10338. cancelButtonText: "取消",
  10339. type: "warning",
  10340. }
  10341. )
  10342. .then(() => {
  10343. if (_this.time()) {
  10344. _this.restoreWork(
  10345. _chapAarry[0],
  10346. _unitJson,
  10347. chapindex,
  10348. _unitJson2,
  10349. _unitIndex2
  10350. );
  10351. }
  10352. })
  10353. .catch(() => {
  10354. _this.unitJson = _unitJson;
  10355. _this.$forceUpdate();
  10356. setTimeout(() => {
  10357. if (this.unitIndex != _unitIndex2) {
  10358. this.isDelete = 2;
  10359. this.unitIndex = _unitIndex2;
  10360. }
  10361. }, 0);
  10362. _this.timer = setTimeout(() => {
  10363. _this.seleteCourseUpdate();
  10364. }, 1000);
  10365. });
  10366. }
  10367. })
  10368. .catch((err) => {
  10369. console.error(err);
  10370. });
  10371. },
  10372. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10373. let params = [
  10374. {
  10375. cid: this.cid,
  10376. chapters: JSON.stringify(this.unitJson),
  10377. uid: this.userid,
  10378. chapid: chapid,
  10379. },
  10380. ];
  10381. this.ajax
  10382. .post(this.$store.state.api + "restoreWork", params)
  10383. .then((res) => {
  10384. this.$message({
  10385. message: "恢复成功",
  10386. type: "success",
  10387. });
  10388. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10389. this.unitJson = unitJson;
  10390. this.$forceUpdate();
  10391. setTimeout(() => {
  10392. if (this.unitIndex != unitIndex2) {
  10393. this.isDelete = 2;
  10394. this.unitIndex = unitIndex2;
  10395. }
  10396. }, 0);
  10397. this.timer = setTimeout(() => {
  10398. this.seleteCourseUpdate();
  10399. }, 1000);
  10400. })
  10401. .catch((err) => {
  10402. this.$message.error("网络不佳");
  10403. console.error(err);
  10404. });
  10405. },
  10406. getTypeName() {
  10407. console.log(this.courseTypeId);
  10408. this.$forceUpdate();
  10409. },
  10410. selectAllType() {
  10411. let params = {
  10412. org: this.org && this.org != "" ? this.org : "",
  10413. oid: this.oid && this.oid != "" ? this.oid : "",
  10414. };
  10415. this.ajax
  10416. .get(this.$store.state.api + "selectAllType", params)
  10417. .then((res) => {
  10418. if(this.oid == "69893dca-1d47-11ed-8c78-005056b86db5"){
  10419. res.data[0] = [...res.data[0],...res.data[4]]
  10420. }
  10421. this.CourseType = res.data;
  10422. this.CourseType2 = [
  10423. { name: "智见课程", id: [] },
  10424. { name: "智行课程", id: [] },
  10425. { name: "智创课程", id: [] },
  10426. ];
  10427. for (var cti = 0; cti < res.data[0].length; cti++) {
  10428. if (
  10429. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10430. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  10431. ) {
  10432. this.CourseType2[0].id.push(res.data[0][cti].id);
  10433. }else if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  10434. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  10435. this.CourseType2[1].id.push(res.data[0][cti].id);
  10436. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  10437. this.CourseType2[2].id.push(res.data[0][cti].id);
  10438. }
  10439. if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"){
  10440. res.data[0][cti].name = "年级";
  10441. }else if(res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  10442. res.data[0][cti].name = "学科";
  10443. }else if(res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"){
  10444. res.data[0][cti].name = "主题";
  10445. }
  10446. }
  10447. let _courseTypeId = [];
  10448. for (var i = 0; i < res.data[0].length; i++) {
  10449. if (!this.cid) {
  10450. this.courseTypeId[res.data[0][i].id] = [];
  10451. }
  10452. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10453. // }
  10454. this.CourseTypeJson[res.data[0][i].id] = [];
  10455. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10456. if (res.data[0][i].name == "栏目") {
  10457. this.CourseType[0][i].name = "主题";
  10458. }
  10459. }
  10460. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10461. for (var j = 0; j < res.data[1].length; j++) {
  10462. if (
  10463. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10464. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10465. ) {
  10466. _courseTypeId.push(res.data[1][j].id);
  10467. }
  10468. if (res.data[0][i].id == res.data[1][j].pid) {
  10469. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10470. }
  10471. }
  10472. } else {
  10473. if (res.data[2].length > 0) {
  10474. for (var j = 0; j < res.data[2].length; j++) {
  10475. if (
  10476. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10477. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10478. ) {
  10479. _courseTypeId.push(res.data[2][j].id);
  10480. }
  10481. if (res.data[0][i].id == res.data[2][j].pid) {
  10482. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10483. }
  10484. }
  10485. }
  10486. if (res.data[3].length > 0) {
  10487. for (var j = 0; j < res.data[3].length; j++) {
  10488. if (
  10489. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10490. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10491. ) {
  10492. _courseTypeId.push(res.data[3][j].id);
  10493. }
  10494. if (res.data[0][i].id == res.data[3][j].pid) {
  10495. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10496. }
  10497. }
  10498. }
  10499. }
  10500. }
  10501. this.courseTypeId = _courseTypeId;
  10502. })
  10503. .catch((err) => {
  10504. console.error(err);
  10505. });
  10506. },
  10507. selectType() {
  10508. this.ajax
  10509. .get(this.$store.state.api + "selectType")
  10510. .then((res) => {
  10511. this.CourseType = res.data;
  10512. for (var i = 0; i < res.data[0].length; i++) {
  10513. if (!this.cid) {
  10514. this.courseTypeId[res.data[0][i].id] = "";
  10515. }
  10516. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10517. if (res.data[0][i].name == "栏目") {
  10518. this.CourseType[0][i].name = "主题";
  10519. }
  10520. }
  10521. for (var j = 0; j < res.data[1].length; j++) {
  10522. if (res.data[0][i].id == res.data[1][j].pid) {
  10523. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10524. this.CourseTypeJson[res.data[0][i].id] = [];
  10525. }
  10526. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10527. }
  10528. }
  10529. }
  10530. this.selectTypeByOid();
  10531. this.selectTypeByOrg();
  10532. })
  10533. .catch((err) => {
  10534. console.error(err);
  10535. });
  10536. },
  10537. selectTypeByOid() {
  10538. let params = {
  10539. oid: this.oid,
  10540. };
  10541. this.ajax
  10542. .get(this.$store.state.api + "selectTypeByOid", params)
  10543. .then((res) => {
  10544. for (var i = 0; i < res.data[0].length; i++) {
  10545. for (var j = 0; j < res.data[1].length; j++) {
  10546. if (res.data[0][i].id == res.data[1][j].pid) {
  10547. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10548. this.CourseTypeJson[res.data[0][i].id] = [];
  10549. }
  10550. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10551. }
  10552. }
  10553. }
  10554. })
  10555. .catch((err) => {
  10556. console.error(err);
  10557. });
  10558. },
  10559. selectTypeByOrg() {
  10560. let params = {
  10561. oid: this.org,
  10562. };
  10563. this.ajax
  10564. .get(this.$store.state.api + "selectTypeByOrg", params)
  10565. .then((res) => {
  10566. for (var i = 0; i < res.data[0].length; i++) {
  10567. for (var j = 0; j < res.data[1].length; j++) {
  10568. if (res.data[0][i].id == res.data[1][j].pid) {
  10569. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10570. this.CourseTypeJson[res.data[0][i].id] = [];
  10571. }
  10572. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10573. }
  10574. }
  10575. }
  10576. this.$forceUpdate();
  10577. })
  10578. .catch((err) => {
  10579. console.error(err);
  10580. });
  10581. },
  10582. OtherMb(type) {
  10583. this.typeMode = type;
  10584. setTimeout(() => {
  10585. this.checkEva(this.checkId);
  10586. }, 0);
  10587. },
  10588. openMember() {
  10589. this.searchTN = "";
  10590. this.getTeacher();
  10591. this.dialogVisibleMember = true;
  10592. },
  10593. checkEva(id, type) {
  10594. this.dialogVisiblemb = false;
  10595. this.selectEva();
  10596. if (this.evalua != id && type == 2) {
  10597. this.$message.success("导入成功");
  10598. }
  10599. this.evalua = id;
  10600. this.checkId = id;
  10601. if (this.evalua != "") {
  10602. for (var i = 0; i < this.evaJuri.length; i++) {
  10603. if (this.evalua == this.evaJuri[i].id) {
  10604. this.eTitle = this.evaJuri[i].title;
  10605. this.eJson = JSON.parse(this.evaJuri[i].content);
  10606. }
  10607. }
  10608. this.data.data = [];
  10609. this.$forceUpdate();
  10610. setTimeout(() => {
  10611. this.setMindData();
  10612. }, 500);
  10613. }
  10614. },
  10615. deleteEva() {
  10616. let _this = this;
  10617. if (_this.evalua == "") {
  10618. this.$message.warning("内容已经清空了,请勿重复清空");
  10619. return;
  10620. }
  10621. _this
  10622. .$confirm("确定删除此目标吗?", "提示", {
  10623. confirmButtonText: "确定",
  10624. cancelButtonText: "取消",
  10625. type: "warning",
  10626. })
  10627. .then(() => {
  10628. _this.evalua = "";
  10629. _this.checkId = "";
  10630. _this.eTitle = "";
  10631. let _unitJson = _this.unitJson;
  10632. for (var i = 0; i < _unitJson.length; i++) {
  10633. let _task = _unitJson[i].chapterInfo[0].taskJson;
  10634. for (var j = 0; j < _task.length; j++) {
  10635. let _eList = _task[j].eList;
  10636. for (var k = 0; k < _eList.length; k++) {
  10637. delete _eList[k].target;
  10638. }
  10639. }
  10640. }
  10641. _this.$forceUpdate();
  10642. if (_this.cid) {
  10643. _this.updateWork();
  10644. }
  10645. })
  10646. .catch(() => {
  10647. return;
  10648. });
  10649. },
  10650. selectEva() {
  10651. let params = {
  10652. oid: this.oid,
  10653. };
  10654. this.ajax
  10655. .get(this.$store.state.api + "selectAllEvaluation", params)
  10656. .then((res) => {
  10657. this.evaJuri = res.data[0];
  10658. })
  10659. .catch((err) => {
  10660. console.error(err);
  10661. });
  10662. },
  10663. setMindData() {
  10664. let targetArray = [];
  10665. this.data.data = [];
  10666. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10667. let _eJson = Object.keys(this.eJson);
  10668. let _e = this.eJson;
  10669. for (let i = 0; i < _eJson.length; i++) {
  10670. let element = _e[_eJson[i]];
  10671. this.data.data.push({
  10672. id: element.id,
  10673. parentid: "root",
  10674. topic: element.name,
  10675. });
  10676. // targetArray.push({
  10677. // id: element.id,
  10678. // parentid: "root",
  10679. // name: element.name,
  10680. // });
  10681. targetArray.push({
  10682. value: element.name,
  10683. label: element.name,
  10684. children: [],
  10685. });
  10686. let _eJsonc = Object.keys(element.child);
  10687. let _e2 = element.child;
  10688. for (let j = 0; j < _eJsonc.length; j++) {
  10689. let _ec = _e2[_eJsonc[j]];
  10690. this.data.data.push({
  10691. id: _ec.id,
  10692. parentid: element.id,
  10693. topic: _ec.name,
  10694. });
  10695. // targetArray.push({
  10696. // id: _ec.id,
  10697. // parentid: element.id,
  10698. // name: _ec.name,
  10699. // });
  10700. targetArray[i].children.push({
  10701. value: _ec.name,
  10702. label: _ec.name,
  10703. children: [],
  10704. });
  10705. let _eJsonz = Object.keys(_ec.child);
  10706. let _e3 = _ec.child;
  10707. for (let z = 0; z < _eJsonz.length; z++) {
  10708. let _ez = _e3[_eJsonz[z]];
  10709. this.data.data.push({
  10710. id: _ez.id,
  10711. parentid: _ec.id,
  10712. topic: _ez.name,
  10713. });
  10714. // targetArray.push({
  10715. // id: _ez.id,
  10716. // parentid: _ec.id,
  10717. // name: _ez.name,
  10718. // });
  10719. targetArray[i].children[j].children.push({
  10720. value: _ez.name,
  10721. label: _ez.name,
  10722. });
  10723. }
  10724. }
  10725. }
  10726. this.targetArray = targetArray;
  10727. this.$forceUpdate();
  10728. },
  10729. /*添加评价 */
  10730. addEList(index, tIndex) {
  10731. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  10732. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  10733. value: "",
  10734. detail: "",
  10735. score: 5,
  10736. })
  10737. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  10738. { value: "", detail: "", score: 5 },
  10739. ]);
  10740. this.$forceUpdate();
  10741. },
  10742. forceUpdate() {
  10743. this.$forceUpdate();
  10744. },
  10745. deletEList(index, tIndex, eIndex) {
  10746. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  10747. eIndex,
  10748. 1
  10749. );
  10750. this.$forceUpdate();
  10751. },
  10752. getChoosePic(t) {
  10753. this.chooseType = t;
  10754. this.getAllBanner();
  10755. },
  10756. getAllBanner() {
  10757. this.sysPicVisible = true;
  10758. let params = {
  10759. t: this.chooseType,
  10760. };
  10761. this.ajax
  10762. .get(this.$store.state.api + "selectAllBanner", params)
  10763. .then((res) => {
  10764. this.sysPic = res.data[0];
  10765. })
  10766. .catch((err) => {
  10767. console.error(err);
  10768. });
  10769. },
  10770. // getClass() {
  10771. // let params = {
  10772. // oid: this.oid,
  10773. // };
  10774. // this.ajax
  10775. // .get(this.$store.state.api + "selectClassBySchool", params)
  10776. // .then((res) => {
  10777. // this.classJuri = res.data[0];
  10778. // })
  10779. // .catch((err) => {
  10780. // console.error(err);
  10781. // });
  10782. // },
  10783. deleteSysPic() {
  10784. this.cover = [];
  10785. this.isSysPic = false;
  10786. },
  10787. deleteSelectPic() {
  10788. this.selectJson.url = "";
  10789. },
  10790. setEListStar() {
  10791. this.$forceUpdate();
  10792. },
  10793. deletRateList(i) {
  10794. this.rateJson.splice(i, 1);
  10795. },
  10796. addRateList() {
  10797. this.rateJson.push({ detail: "", score: 5, value: "" });
  10798. },
  10799. addSt() {
  10800. this.sentenceList.push({
  10801. sentenceTitle: "",
  10802. addSentence: [],
  10803. rightAnswer: [],
  10804. });
  10805. },
  10806. addSen(i) {
  10807. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  10808. // this.isPushTitleList.push(this.sentenceTitle);
  10809. this.sentenceList[i].sentenceTitle = "";
  10810. },
  10811. setRightAnswer(s, i, j) {
  10812. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  10813. this.sentenceList[i].rightAnswer.push(s);
  10814. }
  10815. },
  10816. returnCard(r, i, j) {
  10817. this.sentenceList[i].rightAnswer.splice(j, 1);
  10818. },
  10819. addSentenceTool() {
  10820. for (var i = 0; i < this.sentenceList.length; i++) {
  10821. if (this.sentenceList[i].rightAnswer.length == 0) {
  10822. this.$message.error("请将信息填写完整!");
  10823. return;
  10824. }
  10825. if (
  10826. this.sentenceList[i].addSentence.length !=
  10827. this.sentenceList[i].rightAnswer.length
  10828. ) {
  10829. this.$message.error("请将信息填写完整!");
  10830. return;
  10831. }
  10832. }
  10833. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10834. this.taskCount
  10835. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  10836. this.sentenceList = [
  10837. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10838. ];
  10839. this.dialogVisibleSentence = false;
  10840. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10841. // itemTaskIndex
  10842. // ].toolChoose[toolIndex].tool = [];
  10843. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10844. // itemTaskIndex
  10845. // ].toolChoose[toolIndex].tool.push(i);
  10846. if (
  10847. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10848. .toolChoose[this.toolIndex].tool != 47
  10849. ) {
  10850. this.addTools(47, this.taskCount, this.toolIndex);
  10851. }
  10852. },
  10853. addTableJson() {
  10854. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  10855. // this.$message.error("请将信息填写完整!");
  10856. // return;
  10857. // }
  10858. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10859. this.taskCount
  10860. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  10861. // this.tableJson = [{ text: "" }];
  10862. // this.dialogVisibleTable = false;
  10863. this.$message.success("上传成功");
  10864. if (
  10865. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10866. .toolChoose[this.toolIndex].tool != 48
  10867. ) {
  10868. this.addTools(48, this.taskCount, this.toolIndex);
  10869. }
  10870. },
  10871. addWordJson() {
  10872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10873. this.taskCount
  10874. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  10875. // this.wordJson = [{ text: "" }];
  10876. // this.dialogVisibleWord = false;
  10877. this.$message.success("上传成功");
  10878. if (
  10879. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10880. .toolChoose[this.toolIndex].tool != 52
  10881. ) {
  10882. this.addTools(52, this.taskCount, this.toolIndex);
  10883. }
  10884. },
  10885. addMoreUpload() {
  10886. if (this.uploadJson.length == 0) {
  10887. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10888. this.taskCount
  10889. ].toolChoose[this.toolIndex].uploadJson = [];
  10890. } else {
  10891. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10892. this.taskCount
  10893. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  10894. }
  10895. this.uploadJson = [];
  10896. this.dialogVisibleMoreUpload = false;
  10897. if (
  10898. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10899. .toolChoose[this.toolIndex].tool != 50
  10900. ) {
  10901. this.addTools(50, this.taskCount, this.toolIndex);
  10902. }
  10903. },
  10904. addPreTime() {
  10905. if (this.preTime == 0) {
  10906. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10907. this.taskCount
  10908. ].toolChoose[this.toolIndex].preTime = 0;
  10909. } else {
  10910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10911. this.taskCount
  10912. ].toolChoose[this.toolIndex].preTime = this.preTime;
  10913. }
  10914. this.preTime = 0;
  10915. this.dialogVisiblePreTime = false;
  10916. if (
  10917. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10918. .toolChoose[this.toolIndex].tool != 10
  10919. ) {
  10920. this.addTools(10, this.taskCount, this.toolIndex);
  10921. }
  10922. },
  10923. goToTask(i) {
  10924. $(".rightBox")[0].scrollTop =
  10925. $(".taskBorder")[i].offsetTop +
  10926. $(".taskBorder")[i].parentElement.parentElement.offsetTop;
  10927. this.isClickColor = i + 1;
  10928. },
  10929. taskMove(type, index) {
  10930. // this
  10931. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  10932. // confirmButtonText: "确定",
  10933. // cancelButtonText: "取消",
  10934. // type: "warning",
  10935. // })
  10936. // .then(() => {
  10937. if (type == 1) {
  10938. if (index > 0) {
  10939. let a = JSON.parse(
  10940. JSON.stringify(
  10941. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  10942. )
  10943. );
  10944. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  10945. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  10946. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  10947. }
  10948. } else {
  10949. if (
  10950. index <
  10951. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  10952. ) {
  10953. let a = JSON.parse(
  10954. JSON.stringify(
  10955. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  10956. )
  10957. );
  10958. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  10959. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  10960. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  10961. }
  10962. }
  10963. this.$forceUpdate();
  10964. // })
  10965. // .catch(() => {
  10966. // return;
  10967. // })
  10968. },
  10969. addGroup(i) {
  10970. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  10971. this.groupJson.group.push({
  10972. name: "第" + (this.groupJson.group.length + 1) + "组",
  10973. });
  10974. },
  10975. deleteGroup(i) {
  10976. this.groupJson.group.splice(i, 1);
  10977. },
  10978. addGroupJson() {
  10979. for (var i = 0; i < this.groupJson.group.length; i++) {
  10980. if (!this.groupJson.group[i].name) {
  10981. this.$message.error("请将信息填写完整!");
  10982. return;
  10983. }
  10984. }
  10985. if (!this.groupJson.number) {
  10986. this.$message.error("请将信息填写完整!");
  10987. return;
  10988. }
  10989. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10990. this.taskCount
  10991. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  10992. JSON.stringify(this.groupJson)
  10993. );
  10994. this.dialogVisibleGroup = false;
  10995. this.groupJson = {};
  10996. if (
  10997. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10998. .toolChoose[this.toolIndex].tool != 49
  10999. ) {
  11000. this.addTools(49, this.taskCount, this.toolIndex);
  11001. }
  11002. },
  11003. updateTime(preTime) {
  11004. this.preTime = preTime;
  11005. },
  11006. InviteChange(val) {
  11007. console.log(val);
  11008. return;
  11009. let array = JSON.parse(JSON.stringify(val));
  11010. this.inviteCode = this.inviteCode.filter((el) => {
  11011. if (val.indexOf(el.cid) != -1) {
  11012. array.splice(array.indexOf(el.cid), 1);
  11013. return el;
  11014. }
  11015. });
  11016. for (var i = 0; i < array.length; i++) {
  11017. this.getInviteCode(array[i]);
  11018. }
  11019. },
  11020. async getInviteCode(cid) {
  11021. let code = this.randomNumber();
  11022. let params = {
  11023. code: code,
  11024. oid: this.oid,
  11025. };
  11026. let type = 1;
  11027. for (var i = 0; i < this.inviteCode.length; i++) {
  11028. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11029. type = 2;
  11030. }
  11031. }
  11032. if (type == 2) {
  11033. this.getInviteCode(cid);
  11034. return;
  11035. }
  11036. const res = await this.ajax.get(
  11037. this.$store.state.api + "selectInviteCode2",
  11038. params
  11039. );
  11040. if (
  11041. res.data.length &&
  11042. res.data[0].length &&
  11043. res.data[0][0].courseId != this.cid
  11044. ) {
  11045. this.getInviteCode(cid);
  11046. return;
  11047. }
  11048. let array = [];
  11049. for (var i = 0; i < this.inviteCode.length; i++) {
  11050. array.push(this.inviteCode[i].cid);
  11051. }
  11052. if (array.indexOf(cid) != -1) {
  11053. this.inviteCode[array.indexOf(cid)].ic = code;
  11054. } else {
  11055. this.inviteCode.push({ cid: cid, ic: code });
  11056. }
  11057. },
  11058. OpenInviteD(cid) {
  11059. let array = [];
  11060. this.icode = "";
  11061. for (var i = 0; i < this.inviteCode.length; i++) {
  11062. array.push(this.inviteCode[i].cid);
  11063. }
  11064. if (array.indexOf(cid) != -1) {
  11065. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11066. }
  11067. this.inviteId = cid;
  11068. this.dialogVisibleInvite = true;
  11069. },
  11070. addInvite() {
  11071. let reg = /^[A-Za-z0-9]{4,}$/;
  11072. if (!reg.test(this.icode)) {
  11073. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11074. return;
  11075. }
  11076. let type = 1;
  11077. for (var i = 0; i < this.inviteCode.length; i++) {
  11078. if (
  11079. this.inviteCode[i].cid != this.inviteId &&
  11080. this.icode == this.inviteCode[i].ic
  11081. ) {
  11082. type = 2;
  11083. }
  11084. }
  11085. if (type == 2) {
  11086. this.$message.error("已有此随机码,不能重复");
  11087. return;
  11088. }
  11089. let params = {
  11090. code: this.icode,
  11091. oid: this.oid,
  11092. };
  11093. this.ajax
  11094. .get(this.$store.state.api + "selectInviteCode", params)
  11095. .then((res) => {
  11096. if (
  11097. res.data.length &&
  11098. res.data[0].length &&
  11099. res.data[0][0].courseId != this.cid
  11100. ) {
  11101. this.$message.error("已有此随机码,不能重复");
  11102. return;
  11103. }
  11104. let array = [];
  11105. for (var i = 0; i < this.inviteCode.length; i++) {
  11106. array.push(this.inviteCode[i].cid);
  11107. }
  11108. if (array.indexOf(this.inviteId) != -1) {
  11109. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11110. } else {
  11111. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11112. }
  11113. this.icode = "";
  11114. this.dialogVisibleInvite = false;
  11115. })
  11116. .catch((err) => {
  11117. console.error(err);
  11118. });
  11119. },
  11120. randomNumber() {
  11121. // 随机生成两位数
  11122. // let num = Math.floor(Math.random() * 900) + 100;
  11123. // 生成 0 到 99 之间的随机整数
  11124. const randomNumber = Math.floor(Math.random() * 100);
  11125. // 如果随机数小于 10,补上前导零
  11126. const num =
  11127. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11128. // 随机生成两个大写字母
  11129. let letters = "";
  11130. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11131. for (let i = 0; i < 3; i++) {
  11132. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11133. }
  11134. // 随机生成两位数字和字母的组合
  11135. let mix = "";
  11136. let chars =
  11137. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11138. for (let i = 0; i < 3; i++) {
  11139. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11140. mix += char;
  11141. }
  11142. // 随机选择一种类型
  11143. let type = Math.floor(Math.random() * 3);
  11144. return num;
  11145. // 根据类型输出结果
  11146. switch (type) {
  11147. case 0:
  11148. console.log(num); // 输出两位数
  11149. return num;
  11150. case 1:
  11151. console.log(letters); // 输出两个大写字母
  11152. return letters;
  11153. case 2:
  11154. console.log(mix); // 输出两位数字和字母的组合
  11155. return mix;
  11156. }
  11157. },
  11158. },
  11159. beforeDestroy() {
  11160. clearTimeout(this.timer);
  11161. this.timer = null;
  11162. clearInterval(this.timer2);
  11163. this.timer2 = null;
  11164. },
  11165. beforeRouteLeave(to, from, next) {
  11166. clearTimeout(this.timer);
  11167. this.timer = null;
  11168. clearInterval(this.timer2);
  11169. this.timer2 = null;
  11170. next();
  11171. },
  11172. created() {
  11173. this.getStudent();
  11174. this.getTeacher();
  11175. this.getClass();
  11176. this.selectGrage();
  11177. this.getTemplate();
  11178. // this.selectType();
  11179. this.selectEva();
  11180. this.loading = false;
  11181. this.timer2 = setInterval(() => {
  11182. this.selectEva();
  11183. }, 5000);
  11184. setTimeout(() => {
  11185. this.selectCourseDetail();
  11186. }, 500);
  11187. },
  11188. mounted() {
  11189. this.$nextTick(() => {
  11190. //监听这个dom的scroll事件
  11191. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  11192. });
  11193. },
  11194. };
  11195. </script>
  11196. <style scoped>
  11197. @media screen and (max-width: 1280px) {
  11198. .mbCss {
  11199. flex-direction: column !important;
  11200. }
  11201. .pjCss {
  11202. width: 100% !important;
  11203. }
  11204. .evaCss {
  11205. width: 100% !important;
  11206. }
  11207. }
  11208. .dialog_diy >>> .el-dialog__header {
  11209. background: #3c3c3c !important;
  11210. padding: 15px 20px;
  11211. }
  11212. .dialog_diy >>> .el-dialog__title {
  11213. color: #fff;
  11214. }
  11215. .dialog_diy >>> .el-dialog__headerbtn {
  11216. top: 19px;
  11217. }
  11218. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  11219. color: #fff;
  11220. }
  11221. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  11222. color: #fff;
  11223. }
  11224. .dialog_diy >>> .el-dialog__body,
  11225. .dialog_diy >>> .el-dialog__footer {
  11226. background: #fafafa;
  11227. }
  11228. .dialog_diy3 >>> .el-dialog__body,
  11229. .dialog_diy3 >>> .el-dialog__footer {
  11230. background: #eee !important;
  11231. }
  11232. .dialog_diy3 >>> .el-dialog__body {
  11233. padding: 20px 20px;
  11234. }
  11235. .source_diy >>> .el-dialog {
  11236. height: 100% !important;
  11237. margin: 0 auto !important;
  11238. }
  11239. .source_diy >>> .el-dialog__body {
  11240. height: calc(100% - 185px);
  11241. overflow: auto;
  11242. background: #e6eaf0;
  11243. }
  11244. .source_diy >>> .el-dialog__footer {
  11245. background: #e6eaf0 !important;
  11246. }
  11247. .left {
  11248. border-right: 1px solid rgb(60, 94, 143);
  11249. display: flex;
  11250. flex-direction: column;
  11251. align-items: center;
  11252. min-height: 600px;
  11253. width: 385px;
  11254. height: 80%;
  11255. }
  11256. .tips {
  11257. color: rgb(128, 128, 128);
  11258. font-size: 12px;
  11259. width: 270px;
  11260. margin: 40px;
  11261. }
  11262. .pb_content {
  11263. height: 100% !important;
  11264. /* margin: 0 20px 0 20px; */
  11265. }
  11266. .pb_content_body {
  11267. width: 100% !important;
  11268. height: 100%;
  11269. }
  11270. .info_solid {
  11271. width: 270px;
  11272. height: 30px;
  11273. border-left: 1px solid #bdbdbd;
  11274. margin: 10px 0px 10px 30px;
  11275. }
  11276. .info_steps {
  11277. width: 270px;
  11278. font-size: 0.875rem;
  11279. display: flex;
  11280. align-items: center;
  11281. }
  11282. .info_steps span:nth-child(1) {
  11283. width: 30px;
  11284. height: 30px;
  11285. background: rgba(0, 0, 0, 0.38);
  11286. display: block;
  11287. color: #fff;
  11288. border-radius: 40px;
  11289. text-align: center;
  11290. line-height: 30px;
  11291. }
  11292. .steps_active {
  11293. background: #3d67bc !important;
  11294. }
  11295. .info_steps span:nth-child(2) {
  11296. margin-left: 5px;
  11297. }
  11298. .right {
  11299. height: 100%;
  11300. width: calc(100% - 40px);
  11301. display: flex;
  11302. overflow: hidden;
  11303. margin:0 auto;
  11304. }
  11305. .basic_box {
  11306. margin: 0 auto;
  11307. position: relative;
  11308. padding: 0 20px 0 20px;
  11309. }
  11310. .basic_box2 {
  11311. position: relative;
  11312. width: calc(100% - 300px);
  11313. }
  11314. .basic_box_success {
  11315. width: 100%;
  11316. height: 100%;
  11317. padding: 50px 0;
  11318. position: relative;
  11319. text-align: center;
  11320. /* border-bottom: 1px solid #bfbfbf; */
  11321. box-sizing: border-box;
  11322. display: flex;
  11323. align-items: center;
  11324. flex-direction: column;
  11325. justify-content: center;
  11326. }
  11327. .info_title {
  11328. font-size: 1.5em;
  11329. margin-right: 25px;
  11330. /* margin: 20px 30px 20px 30px; */
  11331. }
  11332. .bInfo_title {
  11333. text-align: left;
  11334. margin: 10px 0;
  11335. }
  11336. .small_title {
  11337. font-size: 14px;
  11338. line-height: 40px;
  11339. }
  11340. .chapter_beizhu {
  11341. font-size: 12px;
  11342. font-weight: bold;
  11343. float: right;
  11344. color: rgb(128, 128, 128);
  11345. margin-top: 5px;
  11346. }
  11347. .chapter_uploadBox1 {
  11348. text-align: left;
  11349. background-color: rgb(242, 242, 242);
  11350. width: 100%;
  11351. height: 67px;
  11352. padding: 0px 15px;
  11353. border-radius: 8px;
  11354. overflow: hidden;
  11355. font-size: 16px;
  11356. box-sizing: border-box;
  11357. position: relative;
  11358. }
  11359. .chapter_add {
  11360. width: 100%;
  11361. height: 32px;
  11362. margin-top: 15px;
  11363. cursor: pointer;
  11364. }
  11365. .chapter_add_l {
  11366. margin-left: 5px;
  11367. width: 30px;
  11368. height: 30px;
  11369. float: left;
  11370. border: 1px solid #aaa;
  11371. color: #aaa;
  11372. border-radius: 50%;
  11373. font-size: 25px;
  11374. text-align: center;
  11375. }
  11376. .chapter_add_r {
  11377. font-size: 18px;
  11378. height: 40px;
  11379. line-height: 30px;
  11380. text-indent: 10px;
  11381. color: #aaa;
  11382. }
  11383. .chapter_add_r span {
  11384. font-size: 12px;
  11385. color: rgb(204, 204, 204);
  11386. }
  11387. .chapter_add_input {
  11388. display: none;
  11389. }
  11390. .line {
  11391. width: 85%;
  11392. margin: 0 auto;
  11393. border-top: 1px solid #e5e5e5;
  11394. margin-top: 20px;
  11395. }
  11396. .info_btnBox {
  11397. width: calc(100%);
  11398. display: flex;
  11399. justify-content: center;
  11400. height: 70px;
  11401. align-items: center;
  11402. background: #fff;
  11403. margin: 0 auto;
  11404. border-top: 2px solid rgb(228, 232, 237);
  11405. box-sizing: border-box;
  11406. border-radius: 0px 0 5px 5px;
  11407. }
  11408. .info_btn+.info_btn {
  11409. margin-left: 15px;
  11410. }
  11411. .info_btn,
  11412. .teacherWord {
  11413. color: #fff;
  11414. background-color: #0f7eff;
  11415. padding: 8px 24px;
  11416. font-size: 0.9375rem;
  11417. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  11418. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  11419. min-width: 64px;
  11420. font-weight: 500;
  11421. border-radius: 4px;
  11422. box-sizing: border-box;
  11423. border: none;
  11424. cursor: pointer;
  11425. }
  11426. .teacherWord {
  11427. width: 105px !important;
  11428. text-align: center !important;
  11429. line-height: 36px !important;
  11430. padding: 0 !important;
  11431. font-size: 14px !important;
  11432. margin: 10px 0 !important;
  11433. }
  11434. .wordTeacher {
  11435. display: flex;
  11436. flex-direction: column;
  11437. width: 20%;
  11438. text-align: center;
  11439. font-size: 14px;
  11440. margin: 30px 30px 0 10px;
  11441. background: #fff;
  11442. position: relative;
  11443. border-radius: 5px;
  11444. padding: 25px 0px;
  11445. }
  11446. .wordPic {
  11447. margin: 0 auto;
  11448. width: 60px;
  11449. height: 60px;
  11450. cursor: pointer;
  11451. }
  11452. .deleteWord {
  11453. width: 22px;
  11454. height: 22px;
  11455. position: absolute;
  11456. right: 5px;
  11457. top: -15px;
  11458. cursor: pointer;
  11459. display: none;
  11460. z-index: 999;
  11461. }
  11462. .wordPic > img,
  11463. .deleteWord > img,
  11464. .addToolImg > img {
  11465. width: 100%;
  11466. height: 100%;
  11467. }
  11468. .info_btn:hover {
  11469. background-color: #4f7cd5 !important;
  11470. }
  11471. .cru_selectBox {
  11472. display: flex;
  11473. margin: 24px 0 10px;
  11474. flex-wrap: nowrap;
  11475. white-space: nowrap;
  11476. overflow: auto;
  11477. position: relative;
  11478. height: 47px;
  11479. }
  11480. .cru_selectBox::-webkit-scrollbar {
  11481. /*滚动条整体样式*/
  11482. width: 6px;
  11483. /*高宽分别对应横竖滚动条的尺寸*/
  11484. height: 6px;
  11485. }
  11486. /*定义滚动条轨道 内阴影+圆角*/
  11487. .cru_selectBox::-webkit-scrollbar-track {
  11488. border-radius: 10px;
  11489. background-color: #eee;
  11490. }
  11491. /*定义滑块 内阴影+圆角*/
  11492. .cru_selectBox::-webkit-scrollbar-thumb {
  11493. border-radius: 10px;
  11494. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  11495. background-color: rgba(0, 0, 0, 0.1);
  11496. }
  11497. .cru_line {
  11498. position: absolute;
  11499. bottom: 0px;
  11500. transition: all 0.5s;
  11501. left: 0px;
  11502. width: 125px;
  11503. margin-left: -25px;
  11504. }
  11505. .cru_select {
  11506. font-size: 21px;
  11507. margin-right: 37px;
  11508. margin-left: 5px;
  11509. cursor: pointer;
  11510. color: #a6a6a6;
  11511. }
  11512. .cru_selected {
  11513. color: #0b7fc2 !important;
  11514. }
  11515. .chapter_contentbox {
  11516. display: flex;
  11517. align-items: center;
  11518. margin-top: 15px;
  11519. }
  11520. .chapter_contentbox .cc_title {
  11521. margin: 0px;
  11522. color: black;
  11523. display: block;
  11524. white-space: nowrap;
  11525. overflow: hidden;
  11526. text-overflow: ellipsis;
  11527. margin-right: 20px;
  11528. font-size: 18px;
  11529. height: 20px;
  11530. line-height: 22px;
  11531. min-width: fit-content;
  11532. display: flex;
  11533. }
  11534. .chapter_contentbox .cc_title::before {
  11535. content: '';
  11536. height: 100%;
  11537. width: 3px;
  11538. background: #3681FC;
  11539. border-radius: 3px;
  11540. opacity: 1;
  11541. display: block;
  11542. margin-right: 10px;
  11543. }
  11544. .chapter_contentbox .cc_input {
  11545. width: 100%;
  11546. display:flex;
  11547. }
  11548. .show_taskD{
  11549. min-width:fit-content;
  11550. margin-left: 10px;
  11551. display: flex;
  11552. align-items: center;
  11553. font-size: 14px;
  11554. cursor: pointer;
  11555. color: #717C8D;
  11556. }
  11557. .show_taskD > img{
  11558. width:15px;
  11559. margin-right:5px;
  11560. }
  11561. .show_taskD.show > img{
  11562. transform: rotate(180deg);
  11563. }
  11564. .remove {
  11565. background-image: url("../../../assets/icon/new/delete_u.png");
  11566. cursor: pointer;
  11567. opacity: 0.5;
  11568. width: 30px;
  11569. min-width: 30px;
  11570. height: 30px;
  11571. background-size: 100% 100%;
  11572. background-repeat: no-repeat;
  11573. margin-left: 10px;
  11574. }
  11575. .remove1 {
  11576. background-image: url("../../../assets/remove1.png");
  11577. background-repeat: no-repeat;
  11578. background-position: 5px 10px;
  11579. width: 40px;
  11580. height: 50px;
  11581. cursor: pointer;
  11582. }
  11583. .binfo_input {
  11584. width: 100%;
  11585. margin: 0;
  11586. padding: 12px 14px;
  11587. display: block;
  11588. min-width: 0;
  11589. outline: none;
  11590. box-sizing: border-box;
  11591. background: none;
  11592. border: none;
  11593. border-radius: 4px;
  11594. background: #fff;
  11595. font-size: 16px;
  11596. resize: none;
  11597. font-family: 'Microsoft YaHei';
  11598. min-height:48px;
  11599. border: 1px solid #3682fc00;
  11600. }
  11601. .binfo_textarea {
  11602. border: 1px solid #CAD1DC;
  11603. font-size: 16px;
  11604. resize: none;
  11605. background: #fcfcfc;
  11606. font-family: 'Microsoft YaHei';
  11607. }
  11608. .binfo_input:focus-visible {
  11609. border: 1px solid #3681FC !important;
  11610. }
  11611. .time {
  11612. display: flex;
  11613. margin: 35px 0 80px 0;
  11614. }
  11615. .chapter_btnbox {
  11616. width: 160px;
  11617. border-radius: 5px;
  11618. border: 2px dashed gray;
  11619. display: flex;
  11620. padding: 8px 50px;
  11621. align-items: center;
  11622. justify-content: center;
  11623. margin: 30px auto 0;
  11624. cursor: pointer;
  11625. }
  11626. .icon_add {
  11627. position: relative;
  11628. width: 24px;
  11629. padding-top: 20px;
  11630. border-radius: 100%;
  11631. border-width: 2px;
  11632. border-style: solid;
  11633. border-color: gray;
  11634. }
  11635. .icon_add i:nth-child(1) {
  11636. position: absolute;
  11637. left: 50%;
  11638. top: 50%;
  11639. height: 60%;
  11640. transform: translate(-50%, -50%);
  11641. border-width: 1px;
  11642. border-style: solid;
  11643. border-color: inherit;
  11644. }
  11645. .icon_add i:nth-child(2) {
  11646. position: absolute;
  11647. top: 50%;
  11648. left: 50%;
  11649. width: 60%;
  11650. transform: translate(-50%, -50%);
  11651. border-width: 1px;
  11652. border-style: solid;
  11653. border-color: inherit;
  11654. }
  11655. .chapter_btn_w {
  11656. font-size: 0.9375rem;
  11657. font-weight: bold;
  11658. color: gray;
  11659. margin-left: 20px;
  11660. }
  11661. .disUoloadSty >>> .el-icon-plus {
  11662. display: none !important;
  11663. /* 上传按钮隐藏 */
  11664. }
  11665. .imgLeft {
  11666. margin: 15px 0;
  11667. }
  11668. .add_info_box {
  11669. margin: 20px 0 0;
  11670. display: flex;
  11671. flex-wrap: wrap;
  11672. }
  11673. .add_info_box button {
  11674. /* margin: 0 10px 10px 0; */
  11675. }
  11676. .add_info_box2 {
  11677. display: flex;
  11678. align-items: center;
  11679. flex-wrap: wrap;
  11680. }
  11681. .add_info_box2::after {
  11682. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  11683. color: red;
  11684. font-size: 14px;
  11685. margin-bottom: 10px;
  11686. }
  11687. .add_chapters_box {
  11688. text-align: left;
  11689. background-color: #fff;
  11690. width: 100%;
  11691. border-radius: 4px;
  11692. font-size: 16px;
  11693. box-sizing: border-box;
  11694. position: relative;
  11695. padding: 20px 15px;
  11696. height: auto;
  11697. overflow-y: auto;
  11698. overflow-x: hidden;
  11699. }
  11700. .add_chapters_box.add_c_none{
  11701. display: flex;
  11702. justify-content: center;
  11703. align-items: center;
  11704. }
  11705. .add_c_none > img{
  11706. width: 135px;
  11707. }
  11708. .homework_box {
  11709. display: flex;
  11710. align-items: flex-start;
  11711. flex-wrap: wrap;
  11712. margin: 15px 0 0 0;
  11713. flex-direction: column;
  11714. align-content: flex-start;
  11715. }
  11716. .course_homework {
  11717. display: flex;
  11718. justify-content: center;
  11719. flex-direction: row;
  11720. align-items: center;
  11721. margin: 0 10px 0 0;
  11722. }
  11723. .course_homework >>> .el-input__inner {
  11724. width: 140px;
  11725. margin-left: 15px;
  11726. }
  11727. .chapter_upload_move {
  11728. position: relative;
  11729. background-color: #fff;
  11730. position: absolute;
  11731. width: 100%;
  11732. top: 0px;
  11733. left: 0px;
  11734. border: 1px solid #eee;
  11735. border-radius: 5px;
  11736. transition: width 2s;
  11737. -moz-transition: width 2s;
  11738. -webkit-transition: width 2s;
  11739. -o-transition: width 2s;
  11740. }
  11741. .chapter_upload_l_i {
  11742. background-image: url("../../../assets/icon.png");
  11743. background-position: 3px -165px;
  11744. width: 30px;
  11745. height: 30px;
  11746. margin: 10px auto 0 auto;
  11747. }
  11748. .course_input_box {
  11749. display: flex;
  11750. margin-right: 20px;
  11751. width: 800px;
  11752. align-items: center;
  11753. }
  11754. .course_input_box>.binfo_input {
  11755. width: calc(100% - 48px - 200px - 20px);
  11756. margin: 0 10px;
  11757. }
  11758. .bb_courseIcon {
  11759. width: 48px;
  11760. height: 48px;
  11761. background: #3681FC;
  11762. border-radius: 6px;
  11763. display: flex;
  11764. align-items: center;
  11765. justify-content: center;
  11766. }
  11767. .bb_courseIcon>img {
  11768. width: 25px;
  11769. height: auto
  11770. }
  11771. .big_box {
  11772. margin-top: 20px;
  11773. display: flex;
  11774. border-bottom: 1px solid #E0E2ED;
  11775. }
  11776. .left_first {
  11777. display: flex;
  11778. flex-direction: column;
  11779. flex-wrap: nowrap;
  11780. width: calc(100% - 400px);
  11781. padding: 0 0 0 0;
  11782. box-sizing: border-box;
  11783. }
  11784. .right_first {
  11785. width: 400px;
  11786. display: flex;
  11787. align-items: center;
  11788. justify-content: center;
  11789. border-left: 1px solid #E0E2ED;
  11790. box-sizing: border-box;
  11791. padding-bottom:20px;
  11792. flex-direction: column;
  11793. }
  11794. .ai_box{
  11795. width: 204px;
  11796. display: flex;
  11797. justify-content: flex-end;
  11798. margin-bottom: 15px;
  11799. }
  11800. .ai_content{
  11801. display: flex;
  11802. align-items: center;
  11803. font-size: 14px;
  11804. padding: 7px 20px;
  11805. box-sizing: border-box;
  11806. box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.16);
  11807. border-radius: 12px;
  11808. font-weight: 700;
  11809. cursor: pointer;
  11810. }
  11811. .ai_content>img{
  11812. width: 40px;
  11813. margin-right: 5px;
  11814. }
  11815. .right_title {
  11816. /* height: 30px; */
  11817. padding: 0 20px;
  11818. font-size: 18px;
  11819. font-weight: bold;
  11820. /* color: #0f7eff; */
  11821. margin: 20px auto 0;
  11822. display: flex;
  11823. /* justify-content: space-between; */
  11824. align-items: center;
  11825. }
  11826. .people {
  11827. border: 1px solid rgb(229 229 229);
  11828. height: 495px;
  11829. border-radius: 5px;
  11830. width: 100%;
  11831. overflow: auto;
  11832. }
  11833. .people_top {
  11834. display: flex;
  11835. width: 100%;
  11836. /* justify-content: space-between; */
  11837. /* align-items: center; */
  11838. flex-direction: column;
  11839. padding: 10px 10px 0;
  11840. box-sizing: border-box;
  11841. }
  11842. .people_nav,
  11843. .people_top_right {
  11844. /* padding: 20px 0 0 20px; */
  11845. }
  11846. .people_top_right {
  11847. height: 40px;
  11848. margin-bottom: 10px;
  11849. }
  11850. .people_search {
  11851. display: flex;
  11852. position: relative;
  11853. }
  11854. .people_search >>> .el-input__inner {
  11855. /* height: 25px; */
  11856. width: 95%;
  11857. }
  11858. .search_img {
  11859. width: 20px;
  11860. height: 20px;
  11861. position: absolute;
  11862. right: 30px;
  11863. top: 50%;
  11864. transform: translateY(-50%);
  11865. }
  11866. .search_img > img {
  11867. width: 100%;
  11868. height: 100%;
  11869. }
  11870. .people_name {
  11871. display: flex;
  11872. justify-content: flex-start;
  11873. padding: 20px 10px;
  11874. flex-direction: column;
  11875. flex-wrap: wrap;
  11876. }
  11877. .p_box {
  11878. position: relative;
  11879. }
  11880. .people_name >>> .el-checkbox {
  11881. width: 100%;
  11882. display: flex;
  11883. align-items: center;
  11884. margin-bottom: 10px;
  11885. }
  11886. .people_name >>> .el-checkbox__label {
  11887. text-overflow: ellipsis;
  11888. overflow: hidden;
  11889. width: calc(100%);
  11890. }
  11891. .people_name2 >>> .el-checkbox__label {
  11892. width: calc(100% - 130px);
  11893. }
  11894. .inviteCode {
  11895. position: absolute;
  11896. right: 30px;
  11897. color: #237ade;
  11898. top: 0;
  11899. cursor: pointer;
  11900. font-size: 13px;
  11901. }
  11902. .noneInvite {
  11903. color: #a8a8a8;
  11904. }
  11905. .inviteImg {
  11906. position: absolute;
  11907. right: 5px;
  11908. top: 0;
  11909. width: 20px;
  11910. }
  11911. .right_img {
  11912. width: 150px;
  11913. height: 150px;
  11914. margin: 20px auto;
  11915. }
  11916. .right_img > img {
  11917. width: 100%;
  11918. height: 100%;
  11919. }
  11920. .number {
  11921. margin-top: 20px;
  11922. color: #4aa6ff;
  11923. text-decoration: underline;
  11924. }
  11925. .success_button {
  11926. display: flex;
  11927. text-align: center;
  11928. margin: 5% 0 auto;
  11929. flex-direction: row;
  11930. justify-content: center;
  11931. }
  11932. .look_course {
  11933. margin-right: 40px;
  11934. background: #3d67bc;
  11935. width: 200px;
  11936. height: 35px;
  11937. line-height: 35px;
  11938. color: #fff;
  11939. text-align: center;
  11940. font-size: 14px;
  11941. border-radius: 5px;
  11942. cursor: pointer;
  11943. }
  11944. .attend_others {
  11945. width: 250px;
  11946. background: #4fb13c;
  11947. height: 35px;
  11948. line-height: 35px;
  11949. color: #fff;
  11950. text-align: center;
  11951. font-size: 14px;
  11952. border-radius: 5px;
  11953. cursor: pointer;
  11954. }
  11955. .dialog_diy2 >>> .el-dialog__body {
  11956. text-align: center;
  11957. }
  11958. .write_togother {
  11959. position: absolute;
  11960. right: 45px;
  11961. display: flex;
  11962. top: 5%;
  11963. }
  11964. .write_people {
  11965. font-size: 14px;
  11966. line-height: 50px;
  11967. padding-right: 10px;
  11968. }
  11969. .end_write {
  11970. background: #3d67bc;
  11971. color: #fff;
  11972. width: 100px;
  11973. height: 35px;
  11974. line-height: 35px;
  11975. text-align: center;
  11976. font-size: 14px;
  11977. border-radius: 5px;
  11978. cursor: pointer;
  11979. }
  11980. .chapter_upload+.chapter_upload {
  11981. margin-top: 15px;
  11982. }
  11983. .chapter_upload {
  11984. height: 35px;
  11985. position: relative;
  11986. display: flex;
  11987. align-items: center;
  11988. width: 100%;
  11989. min-height: 35px;
  11990. box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16);
  11991. border-radius: 4px;
  11992. overflow: hidden;
  11993. }
  11994. .chapter_upload_t {
  11995. background-color: #fff;
  11996. position: absolute;
  11997. height: 100%;
  11998. top: 0px;
  11999. left: 0px;
  12000. box-sizing: border-box;
  12001. }
  12002. .chapter_upload_o {
  12003. width: 100%;
  12004. height: 100%;
  12005. position: relative;
  12006. z-index: 1;
  12007. }
  12008. .chapter_upload_ic {
  12009. margin: 0 15px 0px auto;
  12010. display: flex;
  12011. align-items: center;
  12012. }
  12013. .chapter_upload_ic_l {
  12014. width: 50px;
  12015. height: 50px;
  12016. float: left;
  12017. }
  12018. .chapter_upload_ic_l div {
  12019. width: 30px;
  12020. height: 35px;
  12021. background: url("../../../assets/icon/icon.png");
  12022. }
  12023. .chapter_upload_ic_r {
  12024. height: 100%;
  12025. display: flex;
  12026. align-items: center;
  12027. cursor: pointer;
  12028. }
  12029. .chapter_upload_ic_r div {
  12030. width: 18px;
  12031. height: 18px;
  12032. background-image: url("../../../assets/icon/new/delete_u.png");
  12033. background-size: 100% 100%;
  12034. }
  12035. .chapter_upload_n {
  12036. display: flex;
  12037. text-indent: 10px;
  12038. text-decoration: none;
  12039. text-overflow: ellipsis;
  12040. white-space: nowrap;
  12041. overflow: hidden;
  12042. width: 55%;
  12043. margin-left: 10px;
  12044. cursor: pointer;
  12045. margin-top: 2px;
  12046. align-items: center;
  12047. }
  12048. .chapter_upload_l_i2,
  12049. .chapter_upload_l_i3,
  12050. .chapter_upload_l_i8,
  12051. .chapter_upload_l_i6,
  12052. .chapter_upload_l_i12,
  12053. .chapter_upload_l_i13 {
  12054. width: 15px;
  12055. height: 15px;
  12056. background-size: 100% 100%;
  12057. }
  12058. .chapter_upload_l_i2 {
  12059. background-image: url("../../../assets/icon/new/u_word.png");
  12060. }
  12061. .chapter_upload_l_i3 {
  12062. background-image: url("../../../assets/icon/new/u_video.png");
  12063. }
  12064. .chapter_upload_l_i8 {
  12065. background-image: url("../../../assets/icon/new/u_url.png");
  12066. }
  12067. .chapter_upload_l_i6 {
  12068. background-image: url("../../../assets/icon/new/u_url.png");
  12069. }
  12070. .chapter_upload_l_i12 {
  12071. background-image: url("../../../assets/icon/new/u_word.png");
  12072. }
  12073. .chapter_upload_l_i13 {
  12074. background-image: url("../../../assets/icon/new/u_img.png");
  12075. }
  12076. .chapter_upload_noSee {
  12077. background-image: url("../../../assets/icon/new/u_noUpload.png");
  12078. width: 18px;
  12079. height: 18px;
  12080. background-size: 100% 100%;
  12081. display: block;
  12082. margin-right: 20px;
  12083. }
  12084. .chapter_upload_ud {
  12085. display: flex;
  12086. flex-direction: row;
  12087. justify-content: center;
  12088. margin: 0 20px 0 0;
  12089. }
  12090. .chapter_upload_ud>.chapter_upload_up {
  12091. margin-bottom: 0;
  12092. margin-right: 5px;
  12093. }
  12094. .chapter_upload_down,
  12095. .chapter_upload_up {
  12096. width: 20px;
  12097. height: 20px;
  12098. background: #F0F4FA;
  12099. cursor: pointer;
  12100. margin: 0 auto;
  12101. border-radius: 5px;
  12102. display: flex;
  12103. justify-content: center;
  12104. align-items: center;
  12105. }
  12106. .chapter_upload_up::after,
  12107. .chapter_upload_down::after {
  12108. content: '';
  12109. background-image: url('../../../assets/icon/new/downBtn.png');
  12110. width: 13px;
  12111. height: 13px;
  12112. background-size: 100% 100%;
  12113. display: block;
  12114. }
  12115. .chapter_upload_up::after {
  12116. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  12117. }
  12118. .chapter_upload_up {
  12119. margin-bottom: 5px;
  12120. }
  12121. .addWordStyle {
  12122. display: flex;
  12123. flex-direction: row;
  12124. justify-content: flex-start;
  12125. overflow-x: auto;
  12126. white-space: nowrap;
  12127. flex-wrap: wrap;
  12128. }
  12129. /* table 样式 */
  12130. .cont >>> table {
  12131. border-top: 1px solid #ccc;
  12132. border-left: 1px solid #ccc;
  12133. }
  12134. .cont >>> table td,
  12135. .cont >>> table th {
  12136. border-bottom: 1px solid #ccc;
  12137. border-right: 1px solid #ccc;
  12138. /* padding: 20px 5px; */
  12139. padding: 5px 10px;
  12140. max-width: 0px;
  12141. height: 30px;
  12142. vertical-align: baseline;
  12143. }
  12144. .cont >>> table th {
  12145. border-bottom: 2px solid #ccc;
  12146. text-align: center;
  12147. }
  12148. /* blockquote 样式 */
  12149. .cont >>> blockquote {
  12150. display: block;
  12151. border-left: 8px solid #d0e5f2;
  12152. padding: 5px 10px;
  12153. margin: 10px 0;
  12154. line-height: 1.4;
  12155. font-size: 100%;
  12156. background-color: #f1f1f1;
  12157. }
  12158. /* code 样式 */
  12159. .cont >>> code {
  12160. display: inline-block;
  12161. *display: inline;
  12162. *zoom: 1;
  12163. background-color: #f1f1f1;
  12164. border-radius: 3px;
  12165. padding: 3px 5px;
  12166. margin: 0 3px;
  12167. }
  12168. .cont >>> pre code {
  12169. display: block;
  12170. }
  12171. /* ul ol 样式 */
  12172. .cont >>> ul,
  12173. ol {
  12174. margin: 10px 0 10px 20px;
  12175. }
  12176. .wordbox {
  12177. display: flex;
  12178. flex-wrap: wrap;
  12179. cursor: pointer;
  12180. width: 100%;
  12181. }
  12182. .checkword {
  12183. width: 22px;
  12184. height: 22px;
  12185. margin: 10px auto 0;
  12186. cursor: pointer;
  12187. }
  12188. .checkword img {
  12189. width: 100%;
  12190. }
  12191. .stepBg {
  12192. display: flex;
  12193. flex-direction: column;
  12194. justify-content: space-between;
  12195. align-items: center;
  12196. background: #fff;
  12197. width: 300px;
  12198. margin: 0 25px 0 0;
  12199. }
  12200. .stepTop {
  12201. min-width: 300px;
  12202. width: 300px;
  12203. /* border-radius: 10px; */
  12204. display: flex;
  12205. flex-direction: column;
  12206. justify-content: flex-start;
  12207. align-items: center;
  12208. flex-wrap: nowrap;
  12209. background: #fff;
  12210. /* top: 18%; */
  12211. }
  12212. .stepTop > div {
  12213. height: 80px;
  12214. width: 85%;
  12215. cursor: pointer;
  12216. margin: 10px 0;
  12217. border-radius: 10px;
  12218. }
  12219. .first,
  12220. .second,
  12221. .third,
  12222. .four {
  12223. background: #4a83d0;
  12224. height: 90px;
  12225. color: #fff;
  12226. display: flex;
  12227. flex-direction: row;
  12228. align-items: center;
  12229. justify-content: center;
  12230. }
  12231. .first > div:nth-child(1),
  12232. .second > div:nth-child(1),
  12233. .third > div:nth-child(1),
  12234. .four > div:nth-child(1) {
  12235. margin: 5px 10px 0 0;
  12236. width: 2rem;
  12237. }
  12238. .firstNo,
  12239. .secondNo,
  12240. .thirdNo,
  12241. .fourNo {
  12242. background: #e7e7e7;
  12243. color: #adadad;
  12244. display: flex;
  12245. flex-direction: row;
  12246. align-items: center;
  12247. justify-content: center;
  12248. }
  12249. .firstNo > div:nth-child(1),
  12250. .secondNo > div:nth-child(1),
  12251. .thirdNo > div:nth-child(1),
  12252. .fourNo > div:nth-child(1) {
  12253. margin: 5px 10px 0 0;
  12254. width: 2rem;
  12255. }
  12256. .uploadWidth >>> .el-upload {
  12257. width: 60px;
  12258. height: 60px;
  12259. position: relative;
  12260. }
  12261. .addPeople {
  12262. background: #fa6060;
  12263. width: 150px;
  12264. height: 40px;
  12265. color: #fff;
  12266. border-radius: 5px;
  12267. text-align: center;
  12268. line-height: 40px;
  12269. font-size: 14px;
  12270. cursor: pointer;
  12271. }
  12272. .kcImg {
  12273. width: 60px;
  12274. margin-left: 10px;
  12275. }
  12276. .zyImg {
  12277. width: 55px;
  12278. margin: 0 10px;
  12279. }
  12280. .deleteZy {
  12281. width: 20px;
  12282. position: absolute;
  12283. top: 5px;
  12284. right: 5px;
  12285. cursor: pointer;
  12286. }
  12287. .kcImg > img,
  12288. .zyImg > img,
  12289. .deleteZy > img {
  12290. width: 100%;
  12291. height: 100%;
  12292. }
  12293. .zyBox {
  12294. display: flex;
  12295. flex-direction: row;
  12296. align-items: center;
  12297. background: #67d37d;
  12298. color: #fff;
  12299. width: 210px;
  12300. margin: 20px 20px 0 0;
  12301. border-radius: 10px;
  12302. height: 70px;
  12303. position: relative;
  12304. }
  12305. .upCss {
  12306. display: flex;
  12307. flex-direction: row;
  12308. justify-content: flex-start;
  12309. }
  12310. .upCss >>> .el-icon-plus {
  12311. position: none !important;
  12312. width: 200px;
  12313. height: 100px;
  12314. display: flex;
  12315. flex-wrap: nowrap;
  12316. flex-direction: column;
  12317. align-items: center;
  12318. justify-content: center;
  12319. border: 1px dashed #ccc;
  12320. min-width: 78px;
  12321. min-height: 100px;
  12322. z-index: 999;
  12323. }
  12324. .upCss >>> .el-upload-list__item-name {
  12325. width: 100px;
  12326. white-space: nowrap;
  12327. overflow: hidden;
  12328. text-overflow: ellipsis;
  12329. }
  12330. .addStageImg {
  12331. min-width: 25px;
  12332. min-height: 25px;
  12333. width: 25px;
  12334. height: 25px;
  12335. cursor: pointer;
  12336. }
  12337. .addHW {
  12338. width: 28px;
  12339. height: 28px;
  12340. cursor: pointer;
  12341. }
  12342. .addStageImg > img,
  12343. .addHW > img {
  12344. width: 100%;
  12345. height: 100%;
  12346. }
  12347. .addNewPP >>> .el-dialog__body {
  12348. padding: 5px 20px;
  12349. }
  12350. .isHeight {
  12351. height: 680px;
  12352. }
  12353. .toolChoose {
  12354. display: flex;
  12355. /* width: 100%; */
  12356. flex-direction: row;
  12357. flex-wrap: wrap;
  12358. }
  12359. .tool {
  12360. display: flex;
  12361. flex-direction: column;
  12362. flex-wrap: nowrap;
  12363. width: fit-content;
  12364. margin: 10px 0 10px 0;
  12365. align-items: center;
  12366. }
  12367. .tool + .tool {
  12368. margin-right: 45px;
  12369. }
  12370. .whiteBIcon {
  12371. width: 80px;
  12372. cursor: pointer;
  12373. display: flex;
  12374. flex-direction: column;
  12375. flex-wrap: nowrap;
  12376. align-items: center;
  12377. font-size: 14px;
  12378. }
  12379. .whiteBIcon > img,
  12380. .toolIcon > img,
  12381. .arrow > img {
  12382. width: 100%;
  12383. height: 100%;
  12384. }
  12385. .check img {
  12386. width: 20px;
  12387. height: 20px;
  12388. }
  12389. .whiteBIcon > img {
  12390. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  12391. border-radius: 15px;
  12392. }
  12393. .check {
  12394. /* width: 20px;
  12395. height: 20px; */
  12396. cursor: pointer;
  12397. margin: 10px 0;
  12398. }
  12399. .checkDiv {
  12400. display: flex;
  12401. align-items: center;
  12402. }
  12403. .checkDiv span {
  12404. margin-left: 5px;
  12405. color: #858585;
  12406. }
  12407. .customWidth >>> .el-dialog {
  12408. min-width: 500px !important;
  12409. }
  12410. .a_addBox {
  12411. margin: 10px 0;
  12412. background: #fff;
  12413. padding: 15px;
  12414. max-height: 600px;
  12415. overflow: auto;
  12416. }
  12417. .a_add_box {
  12418. border-bottom: 2px solid #eee;
  12419. padding-bottom: 25px;
  12420. }
  12421. .a_add_head {
  12422. display: flex;
  12423. align-items: center;
  12424. justify-content: space-between;
  12425. margin: 10px 0 0 0;
  12426. font-size: 18px;
  12427. }
  12428. .a_add_checkType {
  12429. margin-top: 10px;
  12430. display: flex;
  12431. font-size: 16px;
  12432. align-items: center;
  12433. }
  12434. .a_add_checkType span {
  12435. box-sizing: border-box;
  12436. padding: 0 0 5px 0;
  12437. cursor: pointer;
  12438. }
  12439. .a_add_checkType span + span {
  12440. margin-left: 10px;
  12441. }
  12442. .a_add_checkType .active {
  12443. border-bottom: 2px solid #409eff;
  12444. color: #409eff;
  12445. }
  12446. .a_add_head .a_add_head_input {
  12447. width: 300px;
  12448. }
  12449. .a_add_head .a_add_head_div {
  12450. display: flex;
  12451. align-items: center;
  12452. justify-content: space-between;
  12453. }
  12454. .a_add_body {
  12455. display: flex;
  12456. /* align-items: center; */
  12457. align-items: flex-end;
  12458. }
  12459. .a_add_input {
  12460. display: flex;
  12461. align-items: center;
  12462. flex-wrap: wrap;
  12463. }
  12464. .a_add_input_choice {
  12465. flex-direction: column;
  12466. margin-right: 10px;
  12467. }
  12468. .a_add_input_choice >>> .el-radio {
  12469. display: flex;
  12470. align-items: center;
  12471. flex-direction: row-reverse;
  12472. margin: 30px 0 0 0;
  12473. }
  12474. .a_add_input_choice >>> .el-checkbox {
  12475. display: flex;
  12476. align-items: center;
  12477. flex-direction: row-reverse;
  12478. margin: 30px 0 0 0;
  12479. }
  12480. .width100 {
  12481. width: 100%;
  12482. }
  12483. .a_add_input .a_add_persent {
  12484. width: 100%;
  12485. }
  12486. .a_add_persent_div {
  12487. width: 100%;
  12488. display: flex;
  12489. align-items: center;
  12490. }
  12491. .a_add_persent_div span {
  12492. margin: 5px 0;
  12493. }
  12494. .a_add_persent_div span:nth-child(1) {
  12495. width: 30%;
  12496. }
  12497. .a_add_persent_div span:nth-child(2) {
  12498. width: 7%;
  12499. }
  12500. .a_add_persent_div span:nth-child(3) {
  12501. width: 40%;
  12502. }
  12503. .a_add_body_div {
  12504. display: flex;
  12505. align-items: center;
  12506. justify-content: center;
  12507. /* flex-direction: column; */
  12508. }
  12509. .all_choose {
  12510. display: flex;
  12511. flex-direction: row;
  12512. align-items: flex-start;
  12513. width: 100%;
  12514. }
  12515. .all_choose>span {
  12516. min-width: fit-content;
  12517. display: block;
  12518. white-space: nowrap;
  12519. overflow: hidden;
  12520. text-overflow: ellipsis;
  12521. margin-right: 20px;
  12522. font-weight: bold;
  12523. font-size: 14px;
  12524. }
  12525. .all_choose >>> .el-checkbox-group {
  12526. display: flex;
  12527. flex-direction: row;
  12528. width: 100%;
  12529. flex-wrap: wrap;
  12530. align-content: center;
  12531. justify-content: flex-start;
  12532. align-items: center;
  12533. margin-top: 3px;
  12534. }
  12535. .all_choose > .el-checkbox-group >>> .el-checkbox {
  12536. margin-bottom: 10px;
  12537. display: flex;
  12538. flex-direction: row;
  12539. align-items: center;
  12540. margin-right:10px;
  12541. }
  12542. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  12543. min-width: 80px;
  12544. overflow: hidden;
  12545. width: 80px;
  12546. text-overflow: ellipsis;
  12547. white-space: nowrap;
  12548. }
  12549. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  12550. width: auto;
  12551. }
  12552. .choose > div:nth-child(3) > span {
  12553. /* letter-spacing: 0 !important; */
  12554. }
  12555. .choose {
  12556. display: flex;
  12557. flex-direction: column;
  12558. flex-wrap: nowrap;
  12559. height: 100%;
  12560. justify-content: space-evenly;
  12561. align-items: flex-start;
  12562. }
  12563. .both {
  12564. display: flex;
  12565. flex-direction: row;
  12566. flex-wrap: wrap;
  12567. width: 100%;
  12568. align-items: center;
  12569. justify-content: flex-start;
  12570. margin: 15px 0;
  12571. }
  12572. .notice >>> .el-dialog {
  12573. width: 500px !important;
  12574. text-align: center;
  12575. }
  12576. .notice >>> .el-button {
  12577. margin-top: 20px;
  12578. }
  12579. .whiteBg {
  12580. background: #fff;
  12581. border-radius: 10px;
  12582. }
  12583. .wb_j_box {
  12584. display: flex;
  12585. width: 100%;
  12586. padding: 20px 20px 0;
  12587. box-sizing: border-box;
  12588. }
  12589. .wb_j_box_content {
  12590. width: calc(100% - 55% - 100px);
  12591. display: flex;
  12592. align-items: center;
  12593. }
  12594. .wb_j_box_p_box {
  12595. max-width: calc(100% - 200px);
  12596. word-break: break-all;
  12597. overflow: hidden;
  12598. margin: 0 0 0 10px;
  12599. font-size: 14px;
  12600. color: #6e6e6e;
  12601. }
  12602. .chooseWho {
  12603. display: flex;
  12604. width: 380px;
  12605. flex-direction: row;
  12606. flex-wrap: nowrap;
  12607. justify-content: space-between;
  12608. padding-bottom: 10px;
  12609. }
  12610. .chooseWho > div {
  12611. cursor: pointer;
  12612. padding-bottom: 10px;
  12613. font-weight: bold;
  12614. }
  12615. .isChooseActive {
  12616. color: #3e88f4;
  12617. border-bottom: 2px solid #2f80f3;
  12618. }
  12619. .toolSort {
  12620. display: flex;
  12621. flex-direction: row;
  12622. flex-wrap: wrap;
  12623. justify-content: flex-start;
  12624. align-items: flex-start;
  12625. }
  12626. .toolSort > div {
  12627. margin-right: 45px;
  12628. }
  12629. .tools {
  12630. width: 100%;
  12631. display: flex;
  12632. flex-direction: column;
  12633. flex-wrap: nowrap;
  12634. align-items: flex-start;
  12635. }
  12636. .leftTools,
  12637. .rightTools {
  12638. width: 50%;
  12639. }
  12640. .leftTools+.leftTools{
  12641. border-top: 1px solid #dbdbdb;
  12642. padding-top: 30px;
  12643. }
  12644. .rightTools {
  12645. display: flex;
  12646. flex-direction: row;
  12647. flex-wrap: nowrap;
  12648. justify-content: space-around;
  12649. }
  12650. .firstToolList {
  12651. display: flex;
  12652. flex-direction: column;
  12653. flex-wrap: nowrap;
  12654. align-items: center;
  12655. }
  12656. .iconList {
  12657. display: flex;
  12658. flex-direction: row;
  12659. flex-wrap: wrap;
  12660. justify-content: flex-start;
  12661. align-items: center;
  12662. margin: 20px 0 5px 0;
  12663. width: 240px;
  12664. min-width: 240px;
  12665. }
  12666. .iconTool {
  12667. display: flex;
  12668. flex-direction: column;
  12669. flex-wrap: nowrap;
  12670. align-items: center;
  12671. justify-content: flex-start;
  12672. margin: 15px 10px;
  12673. }
  12674. .toolIcon {
  12675. width: 50px;
  12676. }
  12677. .taskBorder {
  12678. /*border: 1px solid #e1e1e1; */
  12679. border-radius: 8px;
  12680. margin-top: 20px;
  12681. /* min-height: 1160px; */
  12682. position: relative;
  12683. background: #F0F4FA;
  12684. padding: 20px;
  12685. box-sizing: border-box;
  12686. }
  12687. .smallTaskBorder {
  12688. height: 170px;
  12689. min-height: 170px !important;
  12690. overflow: hidden;
  12691. }
  12692. .taskBorder > div {
  12693. /* padding: 30px 0 10px 30px; */
  12694. }
  12695. .addTaskBorder {
  12696. border: 2px solid #5E9AFC;
  12697. border-radius: 8px;
  12698. margin-top: 25px;
  12699. cursor: pointer;
  12700. height: 50px;
  12701. line-height: 50px;
  12702. }
  12703. .addTaskBorder>div {
  12704. margin: 0 auto;
  12705. display: flex;
  12706. align-items: center;
  12707. justify-content: center;
  12708. }
  12709. .addTaskBorder>div>img {
  12710. width: 20px;
  12711. }
  12712. .addTaskBorder>div>span {
  12713. font-size: 16px;
  12714. margin-left: 10px;
  12715. color: #5E9AFC;
  12716. }
  12717. .funBlock {
  12718. display: flex;
  12719. padding: 15px 0;
  12720. flex-direction: row;
  12721. justify-content: flex-end;
  12722. align-items: center;
  12723. position: absolute;
  12724. right: 15px;
  12725. bottom: 35px;
  12726. }
  12727. .fold {
  12728. display: flex;
  12729. margin: 0 10px;
  12730. flex-direction: row;
  12731. align-items: center;
  12732. cursor: pointer;
  12733. }
  12734. .arrow {
  12735. width: 15px;
  12736. height: 15px;
  12737. margin-left: 10px;
  12738. }
  12739. .addToolFun {
  12740. display: flex;
  12741. width: 150px;
  12742. flex-direction: row;
  12743. align-items: center;
  12744. justify-content: center;
  12745. border: 1px dashed;
  12746. border-radius: 5px;
  12747. height: 50px;
  12748. margin: 20px auto 35px;
  12749. cursor: pointer;
  12750. }
  12751. .addToolFun2 {
  12752. display: flex;
  12753. width: 100%;
  12754. border: 2px dashed #CAD1DC;
  12755. flex-direction: row;
  12756. align-items: center;
  12757. justify-content: center;
  12758. border-radius: 5px;
  12759. height: 50px;
  12760. margin: 35px auto 0;
  12761. cursor: pointer;
  12762. }
  12763. .addToolImg {
  12764. width: 20px;
  12765. height: 20px;
  12766. margin-right: 10px;
  12767. }
  12768. .addToolsDia >>> .el-dialog__body {
  12769. padding: 20px;
  12770. }
  12771. .addToolsDia >>> .el-dialog__body > .toolChoose {
  12772. padding: 0;
  12773. }
  12774. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  12775. padding: 0;
  12776. border-bottom: none;
  12777. margin-bottom: 0;
  12778. }
  12779. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  12780. width: 100%;
  12781. }
  12782. .lineCss >>> .el-form-item__label {
  12783. width: auto !important;
  12784. }
  12785. .lineCss >>> .el-form-item__content {
  12786. margin-left: 50px !important;
  12787. }
  12788. .newSteps {
  12789. display: flex;
  12790. width: 100% !important;
  12791. height: 80px;
  12792. cursor: pointer;
  12793. margin: 10px 0;
  12794. border-radius: 10px;
  12795. flex-direction: row;
  12796. align-content: center;
  12797. justify-content: center;
  12798. align-items: center;
  12799. margin: 0 !important;
  12800. }
  12801. /* 评价样式 */
  12802. .elist_css {
  12803. padding-bottom: 60px !important;
  12804. }
  12805. .elist_title {
  12806. margin-bottom: 10px;
  12807. }
  12808. .elist_input {
  12809. }
  12810. .elist_input_box {
  12811. display: flex;
  12812. align-items: center;
  12813. flex-wrap: wrap;
  12814. }
  12815. .elist_input_box + .elist_input_box {
  12816. margin-top: 30px;
  12817. }
  12818. .elist_input .elist_input_box input {
  12819. font: inherit;
  12820. color: currentColor;
  12821. /* width: 200px; */
  12822. max-width: 200px;
  12823. padding: 8px 14px;
  12824. display: block;
  12825. min-width: 0;
  12826. outline: none;
  12827. border: 1px solid rgba(0, 0, 0, 0.23);
  12828. border-radius: 4px;
  12829. box-sizing: border-box;
  12830. background: #fff;
  12831. margin: 0 20px 0 0;
  12832. }
  12833. .elist_input .elist_input_box span {
  12834. height: 36px;
  12835. line-height: 36px;
  12836. color: rgb(82, 82, 82);
  12837. min-width: 80px;
  12838. }
  12839. .elist_input .elist_input_box .remove {
  12840. height: 20px;
  12841. width: 20px;
  12842. background-size: 100% 100%;
  12843. background-position: unset;
  12844. margin-left: 5px;
  12845. }
  12846. .elist_input_box >>> .el-rate {
  12847. display: flex;
  12848. height: 36px;
  12849. align-items: center;
  12850. }
  12851. .elist_input_box .elist_inptu_text {
  12852. width: 100%;
  12853. display: flex;
  12854. align-items: center;
  12855. margin-top: 10px;
  12856. }
  12857. .elist_input_box .elist_inptu_text input {
  12858. /* width: 500px; */
  12859. width: 100%;
  12860. max-width: unset;
  12861. }
  12862. .elist_input_box >>> .el-rate__icon {
  12863. font-size: 24px;
  12864. }
  12865. .elist_btn {
  12866. margin-top: 10px;
  12867. }
  12868. .lineTitle {
  12869. /* margin-top: 15px; */
  12870. width: 110px;
  12871. font-size:18px;
  12872. }
  12873. .courseTop {
  12874. display: flex;
  12875. flex-direction: row;
  12876. justify-content: flex-start;
  12877. align-items: center;
  12878. width: calc(100%);
  12879. margin: 0 auto;
  12880. padding: 10px 0;
  12881. }
  12882. .stepsNav {
  12883. display: flex;
  12884. flex-direction: row;
  12885. justify-content: flex-start;
  12886. align-items: center;
  12887. }
  12888. .stepsWord {
  12889. font-size: 18px;
  12890. color: #fff;
  12891. font-weight: bold;
  12892. margin-left: auto;
  12893. background: rgb(15, 126, 255);
  12894. border-radius: 5px;
  12895. padding: 3px 25px;
  12896. box-sizing: border-box;
  12897. }
  12898. .rightBox {
  12899. width: calc(100%);
  12900. background: rgb(255, 255, 255);
  12901. /* border-radius: 10px; */
  12902. overflow: auto;
  12903. height: calc(100% - 120px);
  12904. margin: 0 auto;
  12905. position: relative;
  12906. box-sizing: border-box;
  12907. border-radius: 5px 0px;
  12908. }
  12909. .e_add_top {
  12910. display: flex;
  12911. justify-content: space-between;
  12912. padding: 20px 20px 0 20px;
  12913. border-radius: 3px;
  12914. background: #fff;
  12915. }
  12916. .e_add_title2 {
  12917. display: flex;
  12918. align-items: center;
  12919. }
  12920. .e_add_title2 span {
  12921. width: 40px;
  12922. }
  12923. .e_add_title {
  12924. display: flex;
  12925. align-items: center;
  12926. color: #b8b8b8;
  12927. font-size: 18px;
  12928. position: relative;
  12929. height: 40px;
  12930. }
  12931. .e_add_title span {
  12932. margin-right: 10px;
  12933. }
  12934. .e_add_title .el_input {
  12935. width: 300px;
  12936. }
  12937. .e_add_title >>> .el-input__inner {
  12938. width: 400px;
  12939. }
  12940. .e_add_btn {
  12941. }
  12942. .e_add_content {
  12943. display: flex;
  12944. width: 100%;
  12945. }
  12946. .e_add_list {
  12947. background: #fff;
  12948. height: 500px;
  12949. width: 210px;
  12950. position: relative;
  12951. margin: 15px 5px 0 0;
  12952. flex-shrink: 0;
  12953. display: flex;
  12954. flex-direction: column;
  12955. }
  12956. .e_add_list_title {
  12957. font-size: 20px;
  12958. width: 100%;
  12959. box-sizing: border-box;
  12960. padding: 15px 40px;
  12961. text-align: center;
  12962. border-bottom: 1px solid #eaeaea;
  12963. position: relative;
  12964. display: flex;
  12965. align-items: center;
  12966. justify-content: center;
  12967. height: 57px;
  12968. background: #f6f6f6;
  12969. }
  12970. .e_add_list_title span {
  12971. overflow: hidden;
  12972. white-space: nowrap;
  12973. text-overflow: ellipsis;
  12974. }
  12975. .e_add_list_title img {
  12976. position: absolute;
  12977. right: 15px;
  12978. width: 25px;
  12979. cursor: pointer;
  12980. top: 50%;
  12981. transform: translateY(-50%);
  12982. }
  12983. .e_add_list_body {
  12984. height: calc(100% - 187px);
  12985. overflow: auto;
  12986. }
  12987. .e_add_list_child {
  12988. width: 100%;
  12989. display: flex;
  12990. align-items: center;
  12991. justify-content: center;
  12992. position: relative;
  12993. box-sizing: border-box;
  12994. padding: 15px 40px;
  12995. text-align: center;
  12996. }
  12997. .e_add_list_child span {
  12998. overflow: hidden;
  12999. white-space: nowrap;
  13000. text-overflow: ellipsis;
  13001. cursor: pointer;
  13002. }
  13003. .e_add_list_child img {
  13004. position: absolute;
  13005. right: 10px;
  13006. width: 21px;
  13007. cursor: pointer;
  13008. top: 50%;
  13009. transform: translateY(-50%);
  13010. }
  13011. .e_add_list_child + .e_add_list_child {
  13012. border-top: 1px solid #eaeaea;
  13013. }
  13014. .e_add_list_child .active {
  13015. color: #409eff;
  13016. }
  13017. .e_add_list_btn {
  13018. position: absolute;
  13019. bottom: 0;
  13020. height: 50px;
  13021. background: rgb(120, 120, 254);
  13022. width: 100%;
  13023. color: #fff;
  13024. font-size: 16px;
  13025. text-align: center;
  13026. line-height: 50px;
  13027. cursor: pointer;
  13028. }
  13029. .e_add_list_detail {
  13030. position: absolute;
  13031. bottom: 0;
  13032. height: 130px;
  13033. background: rgb(120, 120, 254);
  13034. width: 100%;
  13035. color: #fff;
  13036. font-size: 16px;
  13037. display: flex;
  13038. align-items: center;
  13039. justify-content: center;
  13040. }
  13041. .e_add_list_detail textarea {
  13042. height: 90%;
  13043. width: 95%;
  13044. border: none;
  13045. resize: none;
  13046. outline: none;
  13047. padding: 5px;
  13048. box-sizing: border-box;
  13049. }
  13050. .e_add_list_pbox {
  13051. width: 100%;
  13052. }
  13053. .e_add_list_pbox_title {
  13054. height: 50px;
  13055. background: #fff;
  13056. display: flex;
  13057. align-items: center;
  13058. width: 100%;
  13059. box-sizing: border-box;
  13060. padding: 0 20px;
  13061. flex-direction: row;
  13062. flex-wrap: wrap;
  13063. }
  13064. .type_title {
  13065. font-size: 18px;
  13066. font-weight: 700;
  13067. }
  13068. .type_content {
  13069. font-size: 16px;
  13070. margin-left: 30px;
  13071. }
  13072. .type_content span + span {
  13073. margin-left: 20px;
  13074. }
  13075. .type_content span {
  13076. cursor: pointer;
  13077. padding-bottom: 5px;
  13078. box-sizing: border-box;
  13079. }
  13080. .type_content .active {
  13081. color: #409eff;
  13082. border-bottom: 2px solid #409eff;
  13083. }
  13084. .e_add_list_pbox_content {
  13085. height: calc(100% - 50px);
  13086. display: flex;
  13087. align-items: center;
  13088. width: 100%;
  13089. background: #fff;
  13090. }
  13091. .mbCss {
  13092. width: 100%;
  13093. display: flex;
  13094. flex-direction: row;
  13095. flex-wrap: nowrap;
  13096. align-content: center;
  13097. align-items: flex-start;
  13098. justify-content: flex-start;
  13099. }
  13100. .pjCss {
  13101. /* width: 42%; */
  13102. width: calc(100% - 55%);
  13103. display: flex;
  13104. flex-direction: column;
  13105. flex-wrap: nowrap;
  13106. align-items: flex-start;
  13107. margin-top: 1.5%;
  13108. }
  13109. .e_box {
  13110. display: flex;
  13111. flex-wrap: wrap;
  13112. max-height: 500px;
  13113. align-items: flex-start;
  13114. overflow: auto;
  13115. }
  13116. .e_card {
  13117. border: 1px solid #ccc;
  13118. background: #fff;
  13119. margin-right: 20px;
  13120. width: 270px;
  13121. display: flex;
  13122. flex-direction: column;
  13123. align-items: center;
  13124. border-radius: 5px;
  13125. margin-top: 10px;
  13126. text-align: center;
  13127. }
  13128. .e_card_picture {
  13129. margin: 10px 0;
  13130. }
  13131. .e_card_picture > img {
  13132. width: 50px;
  13133. }
  13134. .e_card_name {
  13135. width: 100%;
  13136. padding: 0 10px;
  13137. box-sizing: border-box;
  13138. margin-bottom: 10px;
  13139. overflow: hidden;
  13140. text-overflow: ellipsis;
  13141. white-space: nowrap;
  13142. }
  13143. .e_card_time {
  13144. width: 100%;
  13145. padding: 0 10px;
  13146. box-sizing: border-box;
  13147. font-size: 15px;
  13148. color: #c3c3c3;
  13149. margin-bottom: 10px;
  13150. }
  13151. .e_card_btn {
  13152. height: 40px;
  13153. display: flex;
  13154. align-items: center;
  13155. width: 100%;
  13156. background: rgb(244, 244, 244);
  13157. }
  13158. .e_card_btn:hover {
  13159. background: rgb(221 221 221);
  13160. }
  13161. .e_card_btn span {
  13162. flex: 1 1 auto;
  13163. text-align: center;
  13164. cursor: pointer;
  13165. }
  13166. .addEva {
  13167. border: 1px solid #ccc;
  13168. background: #fff;
  13169. margin-right: 20px;
  13170. width: 270px;
  13171. height: 149px;
  13172. display: flex;
  13173. flex-direction: column;
  13174. align-items: center;
  13175. border-radius: 5px;
  13176. margin-top: 10px;
  13177. text-align: center;
  13178. cursor: pointer;
  13179. justify-content: center;
  13180. }
  13181. .addEva > img {
  13182. width: 50px;
  13183. object-fit: cover;
  13184. }
  13185. .uploadFm {
  13186. border: 1px dashed #ccc;
  13187. width: 202px;
  13188. height: 130px;
  13189. position: relative;
  13190. cursor: pointer;
  13191. display: flex;
  13192. flex-direction: column;
  13193. justify-content: center;
  13194. align-items: center;
  13195. font-size: 14px;
  13196. color: #6e6e6e;
  13197. }
  13198. .uploadFm > img {
  13199. width: 50px;
  13200. }
  13201. .fileCss {
  13202. width: 100%;
  13203. display: flex;
  13204. flex-direction: row;
  13205. flex-wrap: nowrap;
  13206. justify-content: space-around;
  13207. align-items: center;
  13208. padding-top: 15px;
  13209. }
  13210. .sysPicBox {
  13211. display: flex;
  13212. flex-direction: row;
  13213. flex-wrap: wrap;
  13214. align-content: flex-start;
  13215. height: 435px;
  13216. overflow: auto;
  13217. }
  13218. .sysPic {
  13219. width: 200px;
  13220. height: 115px;
  13221. margin: 0 20px 20px 0;
  13222. cursor: pointer;
  13223. }
  13224. .sysPic > img,
  13225. .isSysPic > img,
  13226. .deletePic > img {
  13227. width: 100%;
  13228. height: 100%;
  13229. object-fit: cover;
  13230. }
  13231. .isSysPic {
  13232. width: 200px;
  13233. height: 115px;
  13234. position: relative;
  13235. }
  13236. .deletePic {
  13237. width: 20px;
  13238. height: 20px;
  13239. position: absolute;
  13240. top: 0;
  13241. right: 0;
  13242. cursor: pointer;
  13243. }
  13244. .select_box1 {
  13245. }
  13246. .select_box1_img {
  13247. background: #fff;
  13248. border-radius: 5px;
  13249. padding: 15px;
  13250. box-sizing: border-box;
  13251. margin-bottom: 20px;
  13252. }
  13253. .select_box1_title {
  13254. padding: 0 0 15px 0;
  13255. border-bottom: 1px solid #eee;
  13256. margin-bottom: 15px;
  13257. }
  13258. .select_box1_title span:nth-child(1) {
  13259. font-size: 16px;
  13260. margin-right: 20px;
  13261. color: #000;
  13262. }
  13263. .select_box1_title span:nth-child(2) {
  13264. font-size: 14px;
  13265. color: rgb(112, 112, 112);
  13266. }
  13267. .select_box1_add_img {
  13268. }
  13269. .select_box1_select {
  13270. background: #fff;
  13271. border-radius: 5px;
  13272. padding: 15px;
  13273. box-sizing: border-box;
  13274. }
  13275. .select_box2 {
  13276. }
  13277. .select_box2_title {
  13278. background: #fff;
  13279. border-radius: 5px;
  13280. padding: 5px 10px;
  13281. box-sizing: border-box;
  13282. margin-bottom: 10px;
  13283. }
  13284. .select_box2_box {
  13285. display: flex;
  13286. height: 500px;
  13287. }
  13288. .select_box2_img {
  13289. width: calc(100% - 310px);
  13290. height: 100%;
  13291. overflow: auto;
  13292. background: #fff;
  13293. border-radius: 5px;
  13294. }
  13295. .select_box2_img img {
  13296. width: 100%;
  13297. }
  13298. .select_box2_answer {
  13299. background: #fff;
  13300. margin-left: 10px;
  13301. border-radius: 5px;
  13302. width: 300px;
  13303. overflow: auto;
  13304. height: 100%;
  13305. display: flex;
  13306. flex-direction: column;
  13307. align-items: center;
  13308. padding-top: 10px;
  13309. box-sizing: border-box;
  13310. }
  13311. .select_box2_answer_box {
  13312. margin: 0 0 10px 0;
  13313. width: 85%;
  13314. }
  13315. .rate_textarea {
  13316. font: inherit;
  13317. color: currentColor;
  13318. width: 100%;
  13319. padding: 8px 14px;
  13320. display: block;
  13321. min-width: 0;
  13322. outline: none;
  13323. border: 1px solid rgba(0, 0, 0, 0.23);
  13324. border-radius: 4px;
  13325. box-sizing: border-box;
  13326. background: #fff;
  13327. margin: 0 20px 0 0;
  13328. resize: none;
  13329. }
  13330. .select_answer_title {
  13331. text-align: left;
  13332. width: 85%;
  13333. margin-bottom: 10px;
  13334. font-size: 18px;
  13335. color: #8e8e8e;
  13336. }
  13337. .mask {
  13338. background-color: rgb(0 0 0 / 30%);
  13339. /* position: fixed; */
  13340. position: absolute;
  13341. top: 0;
  13342. left: 0;
  13343. width: 100%;
  13344. height: 100%;
  13345. z-index: 90;
  13346. display: flex;
  13347. align-items: center;
  13348. justify-content: center;
  13349. }
  13350. .progressBox {
  13351. width: 300px;
  13352. height: 150px;
  13353. background: #fff;
  13354. border-radius: 10px;
  13355. box-shadow: 0 0 6px 1px #bfbfbf;
  13356. display: flex;
  13357. align-items: center;
  13358. justify-content: center;
  13359. flex-direction: column;
  13360. position: relative;
  13361. color: #6c6c6c;
  13362. }
  13363. .progressBox >>> .el-progress-bar__outer {
  13364. background-color: #d1dfff !important;
  13365. }
  13366. .progressBox .lbox {
  13367. height: 50px;
  13368. font-size: 19px;
  13369. display: flex;
  13370. align-items: center;
  13371. color: #747474;
  13372. }
  13373. .progressBox .lbox img {
  13374. width: 40px;
  13375. margin-right: 20px;
  13376. }
  13377. .closeCss {
  13378. position: absolute;
  13379. top: 8px;
  13380. right: 8px;
  13381. cursor: pointer;
  13382. width: 20px;
  13383. height: 20px;
  13384. }
  13385. .closeCss > img {
  13386. width: 100%;
  13387. height: 100%;
  13388. }
  13389. .updateTips::after {
  13390. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  13391. font-size: 14px;
  13392. margin-left: 20px;
  13393. font-weight: 400;
  13394. color: #ff3a3a;
  13395. }
  13396. .updateMask {
  13397. width: 100%;
  13398. z-index: 3;
  13399. top: 0;
  13400. position: absolute;
  13401. /* background-color: rgba(0,0,0,.3); */
  13402. }
  13403. .t_j_box {
  13404. display: flex;
  13405. }
  13406. .t_j_box span:nth-child(1) {
  13407. width: 15%;
  13408. overflow: hidden;
  13409. margin-right: 10px;
  13410. text-overflow: ellipsis;
  13411. white-space: nowrap;
  13412. }
  13413. .t_j_box span:nth-child(2) {
  13414. width: 30%;
  13415. overflow: hidden;
  13416. text-overflow: ellipsis;
  13417. margin-right: 10px;
  13418. }
  13419. .t_j_box span:nth-child(3) {
  13420. max-width: calc(55% - 20px);
  13421. overflow: hidden;
  13422. text-overflow: ellipsis;
  13423. }
  13424. .sentenBox {
  13425. background: #fff;
  13426. height: 600px;
  13427. overflow: auto;
  13428. background-image: url("../../../assets/icon/conSentences/csBg.png");
  13429. background-position: 102%;
  13430. background-repeat: no-repeat;
  13431. background-size: 60%;
  13432. }
  13433. .addSen {
  13434. background: #409efe;
  13435. width: 90px;
  13436. color: #fff;
  13437. height: 35px;
  13438. text-align: center;
  13439. line-height: 35px;
  13440. border-radius: 5px;
  13441. float: right;
  13442. margin: 10px 20px 0 0;
  13443. cursor: pointer;
  13444. }
  13445. .sentenTop {
  13446. display: flex;
  13447. flex-direction: row;
  13448. flex-wrap: nowrap;
  13449. align-items: center;
  13450. }
  13451. .sentenTop > div:nth-child(2) {
  13452. width: 300px;
  13453. margin: 0 15px;
  13454. }
  13455. .sentenTop > div:nth-child(3) {
  13456. background: #409efe;
  13457. color: #fff;
  13458. width: 65px;
  13459. height: 35px;
  13460. text-align: center;
  13461. line-height: 35px;
  13462. border-radius: 5px;
  13463. cursor: pointer;
  13464. }
  13465. .cardList {
  13466. padding: 30px 0 20px 0;
  13467. display: flex;
  13468. flex-direction: row;
  13469. flex-wrap: wrap;
  13470. align-items: center;
  13471. box-sizing: border-box;
  13472. border-bottom: 1px solid #f4f4f4;
  13473. width: 98%;
  13474. margin: 0 auto;
  13475. }
  13476. .cardBox {
  13477. display: flex;
  13478. flex-direction: row;
  13479. flex-wrap: wrap;
  13480. align-items: center;
  13481. align-content: center;
  13482. }
  13483. .isCard,
  13484. .isCard1 {
  13485. width: 140px;
  13486. height: 65px;
  13487. text-align: center;
  13488. line-height: 65px;
  13489. font-size: 20px;
  13490. cursor: pointer;
  13491. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  13492. background-size: cover;
  13493. position: relative;
  13494. z-index: 99;
  13495. }
  13496. .isCard1 {
  13497. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  13498. }
  13499. .isCard:hover .deleteWord {
  13500. display: block;
  13501. }
  13502. .isCard > div:nth-child(1),
  13503. .isCard1 > div:nth-child(1) {
  13504. white-space: nowrap;
  13505. overflow: hidden;
  13506. text-overflow: ellipsis;
  13507. width: 80%;
  13508. margin: 0 auto;
  13509. }
  13510. .card {
  13511. width: 140px;
  13512. height: 65px;
  13513. }
  13514. .card > img {
  13515. width: 100%;
  13516. height: 100%;
  13517. }
  13518. .rightCardBox {
  13519. margin: 10px 0 0 10px;
  13520. }
  13521. .rightCardBox > div:nth-child(1) {
  13522. margin-bottom: 10px;
  13523. }
  13524. .cardCss {
  13525. display: flex;
  13526. flex-direction: column;
  13527. flex-wrap: nowrap;
  13528. align-items: center;
  13529. border-bottom: 3px solid #b4c3d3;
  13530. padding: 0 0 5px 0;
  13531. margin-right: 10px;
  13532. }
  13533. .cardCss > div:nth-child(2) {
  13534. background: #5b7b9d;
  13535. color: #fff;
  13536. width: 20px;
  13537. height: 20px;
  13538. border-radius: 50%;
  13539. text-align: center;
  13540. line-height: 20px;
  13541. }
  13542. .sentenTopBox {
  13543. display: flex;
  13544. flex-direction: row;
  13545. flex-wrap: nowrap;
  13546. align-items: center;
  13547. justify-content: space-between;
  13548. padding: 55px 0 0 20px;
  13549. box-sizing: border-box;
  13550. width: 85%;
  13551. }
  13552. .stepsBottom {
  13553. width: 85%;
  13554. margin-bottom: 20px;
  13555. box-shadow: 0 0 10px 10px #f7f7f7;
  13556. background: #f7f7f7;
  13557. border-radius: 10px;
  13558. overflow: hidden;
  13559. }
  13560. .course_left {
  13561. width: 300px;
  13562. height: auto;
  13563. position: relative;
  13564. }
  13565. .stepsBottom2 {
  13566. width: 300px;
  13567. margin: 20px 0;
  13568. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  13569. /* background: #f7f7f7; */
  13570. border-radius: 8px;
  13571. overflow: hidden;
  13572. height: fit-content;
  13573. position: relative;
  13574. /* transition: all .5s; */
  13575. }
  13576. .navTop {
  13577. background: #53749b;
  13578. color: #fff;
  13579. height: 40px;
  13580. line-height: 40px;
  13581. padding-left: 15px;
  13582. font-size: 18px;
  13583. }
  13584. .navBottom {
  13585. background: #F0F4FA;
  13586. height: 300px;
  13587. overflow: auto;
  13588. }
  13589. .navTask {
  13590. display: flex;
  13591. flex-direction: row;
  13592. flex-wrap: nowrap;
  13593. align-items: center;
  13594. padding: 10px 10px 10px 0;
  13595. cursor: pointer;
  13596. background: #ffffff;
  13597. width: 95%;
  13598. margin: 10px auto;
  13599. box-sizing: border-box;
  13600. border-radius: 5px;
  13601. }
  13602. .isNavTask {
  13603. background: #3681FC;
  13604. }
  13605. .isNavTask .nt_taskName {
  13606. color: #fff !important;
  13607. }
  13608. .isNavTask .nt_taskTitle {
  13609. color: #AECCFE !important;
  13610. }
  13611. .navTask .nt_taskBox {
  13612. width: calc(100% - 40px);
  13613. padding: 0 10px 0 20px;
  13614. box-sizing: border-box;
  13615. }
  13616. .navTask .nt_taskTitle {
  13617. color: #717C8D;
  13618. line-height: 25px;
  13619. font-size: 14px;
  13620. }
  13621. .navTask .nt_taskName {
  13622. /* color: #fff; */
  13623. /* max-width: 130px; */
  13624. width: 100%;
  13625. white-space: nowrap;
  13626. overflow: hidden;
  13627. text-overflow: ellipsis;
  13628. font-size: 15px;
  13629. color: #0E1E33;
  13630. }
  13631. .groupBox {
  13632. }
  13633. .groupContent + .groupContent {
  13634. margin-top: 30px;
  13635. }
  13636. .groupTitle {
  13637. font-size: 24px;
  13638. color: rgb(80, 80, 80);
  13639. margin-bottom: 20px;
  13640. }
  13641. .groupName {
  13642. display: flex;
  13643. align-items: center;
  13644. }
  13645. .groupn {
  13646. font-size: 15px;
  13647. margin-right: 10px;
  13648. }
  13649. .groupName + .groupName {
  13650. margin-top: 15px;
  13651. }
  13652. .groupBtn {
  13653. margin-left: 10px;
  13654. }
  13655. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  13656. text-align: left;
  13657. }
  13658. .radioBox > div {
  13659. margin: 10px 0 0 10px;
  13660. }
  13661. .radioBox >>> .el-radio__input,
  13662. .radioBox >>> .el-checkbox__inner {
  13663. margin-left: 10px;
  13664. }
  13665. .radioBox >>> .el-radio__label,
  13666. .radioBox >>> .el-checkbox__label {
  13667. display: flex;
  13668. align-items: center;
  13669. }
  13670. .inImg {
  13671. width: 50px;
  13672. }
  13673. .inImg > img {
  13674. width: 100%;
  13675. height: 100%;
  13676. object-fit: cover;
  13677. }
  13678. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  13679. height: auto;
  13680. }
  13681. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  13682. width: 200px;
  13683. height: 100px;
  13684. object-fit: contain;
  13685. background: unset;
  13686. }
  13687. .upCss
  13688. >>> .el-upload-list--picture
  13689. .el-upload-list__item.is-success
  13690. .el-upload-list__item-name {
  13691. display: none;
  13692. }
  13693. .tcMember + .tcMember::before {
  13694. content: "、";
  13695. }
  13696. .xzUpImg {
  13697. width: 25px;
  13698. height: 25px;
  13699. cursor: pointer;
  13700. }
  13701. .xzUpImg > img {
  13702. width: 100%;
  13703. height: 100%;
  13704. }
  13705. .closeCss {
  13706. position: absolute;
  13707. top: 8px;
  13708. right: 8px;
  13709. cursor: pointer;
  13710. width: 20px;
  13711. height: 20px;
  13712. }
  13713. .closeCss > img {
  13714. width: 100%;
  13715. height: 100%;
  13716. }
  13717. .moveBtn {
  13718. display: flex;
  13719. flex-direction: column;
  13720. align-items: flex-end;
  13721. width: 40px;
  13722. }
  13723. .timuUpImg {
  13724. display: flex;
  13725. flex-direction: row;
  13726. align-items: center;
  13727. }
  13728. .timuUpImg > div:nth-child(1) {
  13729. margin-right: 10px;
  13730. }
  13731. .timuImgBox {
  13732. margin: 10px 0;
  13733. display: flex;
  13734. flex-direction: column;
  13735. flex-wrap: wrap;
  13736. align-items: flex-start;
  13737. }
  13738. .timuImg {
  13739. width: 100px;
  13740. margin: 5px 0;
  13741. cursor: pointer;
  13742. position: relative;
  13743. }
  13744. .timuImg:hover .deleteWord {
  13745. display: block;
  13746. }
  13747. .deleteWord {
  13748. width: 25px;
  13749. height: 25px;
  13750. position: absolute;
  13751. right: -5px;
  13752. top: -5px;
  13753. cursor: pointer;
  13754. display: none;
  13755. }
  13756. .timuImg > img,
  13757. .deleteWord > img {
  13758. width: 100%;
  13759. height: 100%;
  13760. object-fit: cover;
  13761. }
  13762. .e_add_delete {
  13763. cursor: pointer;
  13764. margin-left: 10px;
  13765. }
  13766. .pType_box {
  13767. margin-top: 30px;
  13768. align-items: flex-end;
  13769. }
  13770. .noneBox {
  13771. height: 100%;
  13772. width: 100%;
  13773. display: flex;
  13774. align-items: center;
  13775. justify-content: center;
  13776. margin-top: 150px;
  13777. }
  13778. .noneBox > img {
  13779. width: 300px;
  13780. }
  13781. .textarea_css{
  13782. display: block;
  13783. resize: none;
  13784. padding: 10px 15px;
  13785. line-height: 1.5;
  13786. box-sizing: border-box;
  13787. width: 100%;
  13788. font-size: 14px;
  13789. color: #606266;
  13790. background-color: #FFF;
  13791. background-image: none;
  13792. border: 1px solid #DCDFE6;
  13793. border-radius: 4px;
  13794. transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  13795. outline: none;
  13796. overflow:hidden;
  13797. height: 40px;
  13798. }
  13799. .textarea_css:focus {
  13800. border-color: #409EFF;
  13801. outline: 0;
  13802. }
  13803. </style>