addCourse.vue 409 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587
  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 separator-class="el-icon-arrow-right">
  10. <el-breadcrumb-item :to="{
  11. path:
  12. '/course?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org +
  18. '&role=' +
  19. role,
  20. }">课程管理</el-breadcrumb-item>
  21. <el-breadcrumb-item>
  22. <span style="color: rgb(15, 126, 255)">添加课程</span>
  23. </el-breadcrumb-item>
  24. </el-breadcrumb>
  25. </div>
  26. </div>
  27. <div class="rightBox" style="padding: 30px 10px;" v-if="this.steps == 1" @mousewheel="scrollChange">
  28. <div class="updateMask" :style="{
  29. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  30. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  31. <div class="whiteBg">
  32. <div class="basic_box">
  33. <div class="course_input_box">
  34. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon.png" /></div>
  35. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  36. style="border: 1px solid #CAD1DC;background: #fcfcfc;" />
  37. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"></el-switch>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="whiteBg">
  42. <div class="basic_box">
  43. <div class="big_box">
  44. <div class="left_first">
  45. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  46. <span>类型</span>
  47. <!-- 学科+ 主题+ 未来+ -->
  48. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  49. style="display: flex; align-items: center">
  50. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  51. <el-radio :label="item.name">{{
  52. item.name
  53. }}</el-radio>
  54. </div>
  55. </el-radio-group>
  56. </div>
  57. <div class="both">
  58. <div class="choose">
  59. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  60. <span v-if="CourseTypeJson[item.id].length > 0 &&
  61. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  62. ? pTypeCheck.indexOf(item.id) != -1
  63. : true)
  64. ">{{ item.name }}:</span>
  65. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  66. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  67. ? pTypeCheck.indexOf(item.id) != -1
  68. : true)
  69. ">
  70. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  71. item1.name }}</el-checkbox>
  72. </el-checkbox-group>
  73. <!-- <div
  74. v-else
  75. style="font-size: 14px; margin-left: -8px"
  76. >
  77. 暂无
  78. </div> -->
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="right_first">
  84. <div>
  85. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  86. <img src="../../../assets/icon/addPoster.png" alt="" />
  87. <div>点击添加封面</div>
  88. </div>
  89. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  90. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  91. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  92. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  93. <i class="el-icon-plus"></i>
  94. </el-upload>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <div class="whiteBg" style="border-radius: 0">
  101. <div class="wb_j_box">
  102. <div class="wb_j_box_content">
  103. <div class="addPeople" @click="
  104. (dialogVisibleClass = true),
  105. (classSearch = ''),
  106. getClass()
  107. ">
  108. 添加班级
  109. </div>
  110. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  111. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  112. getClassC(tc) }}</span>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="false">
  118. <div class="right_title">课程简要描述</div>
  119. <div style="width: 95%; padding: 15px 0px 15px 20px">
  120. <div style="width: 55%">
  121. <textarea rows="8" class="binfo_input" cols v-model="courseText" :placeholder="'1、课程内容说明' +
  122. '\n' +
  123. '2、课程学习知识目标' +
  124. '\n' +
  125. '3、课程学习技能目标'
  126. "></textarea>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  131. <div class="right_title">
  132. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" />
  133. </div>
  134. <span style="margin:0 10px">上传课程内容</span>
  135. <el-button type="primary" @click="pasteTask" size="mini" style="margin-left: 145px;">智能粘贴</el-button>
  136. </div>
  137. <div style="padding: 0 0 0 20px; display: flex">
  138. <div class="course_left">
  139. <div class="stepsBottom2">
  140. <div class="navBottom">
  141. <div class="navTask" :class="{
  142. isNavTask:
  143. isClickColor > 0 && isClickColor == tIndex + 1,
  144. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  145. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  146. <div class="nt_taskBox">
  147. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  148. <div class="nt_taskName">
  149. <el-tooltip effect="light" :content="t.task" placement="top">
  150. <span>{{ t.task }}</span>
  151. </el-tooltip>
  152. </div>
  153. </div>
  154. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  155. 1
  156. ">
  157. <div class="chapter_upload_up" @click.stop="taskMove(1, tIndex)"></div>
  158. <div class="chapter_upload_down" @click.stop="taskMove(2, tIndex)"></div>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. <div class="basic_box2">
  165. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  166. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  167. <div class="taskBorder">
  168. <div class="basic_box" style="
  169. margin: 0;
  170. min-height: 0;
  171. width: 90% !important;
  172. padding: 10px 0 !important;
  173. ">
  174. <div style="
  175. display: flex;
  176. margin: 0 0 20px 0;
  177. flex-direction: row;
  178. justify-content: flex-start;
  179. align-items: center;
  180. ">
  181. <div class="lineTitle">学习内容</div>
  182. </div>
  183. <div>
  184. <div class="add_chapters_box" v-if="item.taskJson[0].chapterData &&
  185. item.taskJson[0].chapterData.length == 0
  186. " style="height: 185px"></div>
  187. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  188. <div class="chapter_upload" v-for="(item1, index1) in item.taskJson[0]
  189. .chapterData" :key="item1.id" @click="
  190. getChapterData(
  191. $event,
  192. unitIndex,
  193. index,
  194. index1,
  195. item1.type
  196. )
  197. ">
  198. <div class="chapter_upload_t" style="width: 100%"></div>
  199. <div class="chapter_upload_o" style="
  200. position: relative;
  201. display: flex;
  202. align-items: center;
  203. ">
  204. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  205. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  206. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  207. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  208. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  209. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  210. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  211. </div>
  212. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  213. </div>
  214. </div>
  215. <div class="chapter_upload_n">
  216. <input v-if="item1.type == 2 ||
  217. item1.type == 3 ||
  218. item1.type == 12 ||
  219. item1.type == 13 ||
  220. item1.type == 7
  221. " v-model="item1.name" :placeholder="item1.name" @change="
  222. updataVideoT(
  223. $event,
  224. unitIndex,
  225. 0,
  226. index1
  227. )
  228. " style="
  229. border: none;
  230. outline: none;
  231. width: 80%;
  232. minwidth: 215px;
  233. z-index: 99;
  234. font-size: 14px;
  235. white-space: nowrap;
  236. overflow: hidden;
  237. text-overflow: ellipsis;
  238. " />
  239. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  240. border: none;
  241. outline: none;
  242. width: 80%;
  243. white-space: nowrap;
  244. overflow: hidden;
  245. text-overflow: ellipsis;
  246. " readonly="true" @click="selectAttText(0, index1)" />
  247. <input :placeholder="item1.title ? item1.title : '链接'
  248. " v-if="item1.type == 8" style="
  249. border: none;
  250. outline: none;
  251. width: 80%;
  252. white-space: nowrap;
  253. overflow: hidden;
  254. text-overflow: ellipsis;
  255. " readonly="true" @click="selectLine(0, index1)" />
  256. </div>
  257. <div class="chapter_upload_ic">
  258. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  259. </div>
  260. <div class="chapter_upload_ud" style="z-index: 99">
  261. <div class="chapter_upload_up" @click.stop="
  262. upCd(
  263. $event,
  264. unitIndex,
  265. index,
  266. 0,
  267. index1
  268. )
  269. "></div>
  270. <div class="chapter_upload_down" @click.stop="
  271. downCd(
  272. $event,
  273. unitIndex,
  274. index,
  275. 0,
  276. index1
  277. )
  278. "></div>
  279. </div>
  280. <div class="chapter_upload_ic_r" @click.stop="
  281. deleteChapterData(
  282. $event,
  283. unitIndex,
  284. index,
  285. index1,
  286. 0
  287. )
  288. ">
  289. <div></div>
  290. </div>
  291. </div>
  292. </div>
  293. </div>
  294. </div>
  295. </div>
  296. <div class="add_info_box">
  297. <button class="info_btn" @click="addImg($event)">
  298. 添加文件
  299. <input type="file" accept="*" style="display: none" v-if="inputShow"
  300. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  301. </button>
  302. <!-- <button class="info_btn" @click="addImg($event)">
  303. 添加视频
  304. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  305. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, 0)
  306. " />
  307. </button>
  308. <button class="info_btn" @click="addImg($event)">
  309. 添加文档
  310. <input type="file"
  311. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  312. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, 0)
  313. " />
  314. </button> -->
  315. <button class="info_btn" @click="addAttText(0)">
  316. 添加图文
  317. </button>
  318. <button class="info_btn" @click="openLine(0)">
  319. 添加链接
  320. </button>
  321. <button class="info_btn" @click="pasteLine(0)">
  322. 嵌入代码
  323. </button>
  324. <button class="info_btn" @click="openSource(0)">
  325. 添加资源
  326. </button>
  327. <!-- <button class="info_btn" @click="addImg($event)">
  328. 其他附件
  329. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  330. " />
  331. </button> -->
  332. </div>
  333. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  334. .proVisible
  335. " class="mask">
  336. <div class="progressBox">
  337. <!-- <div id="closePro" class="closeCss">
  338. <img src="../../../../assets/icon/close.png" alt />
  339. </div> -->
  340. <div class="lbox">
  341. <img src="../../../assets/loading.gif" />上传中,请稍后
  342. </div>
  343. <div style="margin-bottom: 10px">
  344. <span>{{
  345. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  346. .isFinishSize
  347. }}M</span>
  348. /
  349. <span>{{
  350. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  351. .isAllSize
  352. }}M</span>
  353. </div>
  354. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  355. .progress
  356. ? unitJson[unitIndex].chapterInfo[0]
  357. .taskJson[0].progress
  358. : 0
  359. " style="width: 80%"></el-progress>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. <div class="taskBorder" :style="{
  365. minHeight: unitJson[unitIndex].easy && 'unset',
  366. }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  367. <div v-if="unitJson[unitIndex].easy != 1">
  368. <div :style="{
  369. marginBottom:
  370. unitJson[unitIndex].easy == 3 ||
  371. (unitJson[unitIndex].easy == 5 &&
  372. itemTask.taskType == 1)
  373. ? '75px'
  374. : '0',
  375. }">
  376. <div class="chapter_contentbox" style="
  377. flex-direction: row;
  378. justify-content: flex-start;
  379. align-items: center;
  380. ">
  381. <div :id="'task' + itemTaskIndex" class="cc_title">
  382. 任务{{ itemTaskIndex + 1 }}
  383. </div>
  384. <div class="cc_input">
  385. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  386. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  387. itemTaskIndex
  388. ].task
  389. " />
  390. </div>
  391. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  392. </div>
  393. </div>
  394. </div>
  395. <div style="margin: 25px 0">
  396. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  397. itemTaskIndex
  398. ].taskDetail
  399. " @change="change"></editor-bar> -->
  400. <textarea rows="2" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  401. itemTaskIndex
  402. ].taskDetail
  403. "></textarea>
  404. </div>
  405. <div class="toolChoose" style="margin: 20px 0">
  406. <div class="tools">
  407. <div class="leftTools" style="
  408. width: 95%;
  409. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  410. <div>
  411. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  412. margin: 0 0 20px 0;
  413. width: 71.5% !important;
  414. " v-model="itemTool.toolDetail"></textarea>
  415. </div>
  416. <div style="
  417. display: flex;
  418. flex-direction: row;
  419. align-items: baseline;
  420. flex-wrap: nowrap;
  421. justify-content: flex-start;
  422. position: relative;
  423. ">
  424. <div style="margin-right: 20px; font-weight: bold">
  425. 步骤 {{ toolIndex + 1 }} :
  426. </div>
  427. <div class="chooseWho">
  428. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  429. " @click="(itemTool.toolType = 0), $forceUpdate()">
  430. 互动类
  431. </div> -->
  432. <div :class="itemTool.toolType == 1
  433. ? 'isChooseActive'
  434. : ''
  435. " @click="
  436. (itemTool.toolType = 1), $forceUpdate()
  437. ">
  438. 思维类
  439. </div>
  440. <div :class="itemTool.toolType == 6
  441. ? 'isChooseActive'
  442. : ''
  443. " @click="
  444. (itemTool.toolType = 6), $forceUpdate()
  445. ">
  446. 协作类
  447. </div>
  448. <div :class="itemTool.toolType == 2
  449. ? 'isChooseActive'
  450. : ''
  451. " @click="
  452. (itemTool.toolType = 2), $forceUpdate()
  453. ">
  454. 测评类
  455. </div>
  456. <div :class="itemTool.toolType == 7
  457. ? 'isChooseActive'
  458. : ''
  459. " @click="
  460. (itemTool.toolType = 7), $forceUpdate()
  461. ">
  462. 评价类
  463. </div>
  464. <div :class="itemTool.toolType == 3
  465. ? 'isChooseActive'
  466. : ''
  467. " @click="
  468. (itemTool.toolType = 3), $forceUpdate()
  469. ">
  470. 学科类
  471. </div>
  472. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  473. " @click="(itemTool.toolType = 5), $forceUpdate()">
  474. 学科类
  475. </div>
  476. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  477. " @click="(itemTool.toolType = 4), $forceUpdate()">
  478. 其他
  479. </div> -->
  480. </div>
  481. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  482. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  483. </div>
  484. <div style="min-height: 163px">
  485. <div class="toolSort" v-if="itemTool.toolType == 0">
  486. <!-- <div class="tool">
  487. <div
  488. class="whiteBIcon"
  489. @click="addTools(8, itemTaskIndex, toolIndex)"
  490. >
  491. <img src="../../../assets/icon/secondToolList/library.png" alt />
  492. <div style="margin: 5px 0">素材库</div>
  493. </div>
  494. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  495. <img
  496. src="../../../assets/icon/checkNo.png"
  497. alt
  498. v-if="itemTool.tool.indexOf(8) == -1"
  499. />
  500. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  501. alt /><span>已选择</span></div>
  502. </div>
  503. </div>-->
  504. <!-- <div class="tool">
  505. <div
  506. class="whiteBIcon"
  507. @click="addTools(17, itemTaskIndex, toolIndex)"
  508. >
  509. <img
  510. src="../../../assets/icon/secondToolList/library.png"
  511. alt
  512. />
  513. <div style="margin: 5px 0">学习资料</div>
  514. </div>
  515. <div
  516. class="check"
  517. @click="addTools(17, itemTaskIndex, toolIndex)"
  518. >
  519. <img
  520. src="../../../assets/icon/checkNo.png"
  521. alt
  522. v-if="itemTool.tool.indexOf(17) == -1"
  523. />
  524. <img
  525. src="../../../assets/icon/checkedIs.png"
  526. alt
  527. v-else
  528. />
  529. </div>10
  530. </div> -->
  531. <div class="tool">
  532. <div class="whiteBIcon" @click="
  533. openTools(itemTaskIndex, 10, toolIndex)
  534. ">
  535. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  536. <div style="margin: 5px 0">倒计时</div>
  537. </div>
  538. <div class="check" @click="
  539. addTools(10, itemTaskIndex, toolIndex)
  540. ">
  541. <img src="../../../assets/icon/checkNo.png" alt
  542. v-if="itemTool.tool.indexOf(10) == -1" />
  543. <div class="checkDiv" v-else>
  544. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  545. </div>
  546. </div>
  547. </div>
  548. <!-- <div class="tool">
  549. <div
  550. class="whiteBIcon"
  551. @click="
  552. openTools(itemTaskIndex, 49, toolIndex)
  553. "
  554. >
  555. <img
  556. src="../../../assets/icon/fourthToolList/group.png"
  557. alt
  558. />
  559. <div style="margin: 5px 0">学生分组</div>
  560. </div>
  561. <div
  562. class="check"
  563. @click="
  564. addTools(49, itemTaskIndex, toolIndex)
  565. "
  566. >
  567. <img
  568. src="../../../assets/icon/checkNo.png"
  569. alt
  570. v-if="itemTool.tool.indexOf(49) == -1"
  571. />
  572. <div class="checkDiv" v-else>
  573. <img
  574. src="../../../assets/icon/checkedIs.png"
  575. alt
  576. /><span>已选择</span>
  577. </div>
  578. </div>
  579. </div> -->
  580. <div class="tool">
  581. <div class="whiteBIcon" @click="
  582. openTools(itemTaskIndex, 62, toolIndex)
  583. ">
  584. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  585. <div style="margin: 5px 0">交互视频</div>
  586. </div>
  587. <div class="check" @click="
  588. addTools(62, itemTaskIndex, toolIndex)
  589. ">
  590. <img src="../../../assets/icon/checkNo.png" alt
  591. v-if="itemTool.tool.indexOf(62) == -1" />
  592. <div class="checkDiv" v-else>
  593. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  594. </div>
  595. </div>
  596. </div>
  597. </div>
  598. <div class="toolSort" v-if="itemTool.toolType == 1">
  599. <div class="tool">
  600. <div class="whiteBIcon" @click="
  601. addTools(7, itemTaskIndex, toolIndex)
  602. ">
  603. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  604. <div style="margin: 5px 0">思维网格</div>
  605. </div>
  606. <div class="check" @click="
  607. addTools(7, itemTaskIndex, toolIndex)
  608. ">
  609. <img src="../../../assets/icon/checkNo.png" alt
  610. v-if="itemTool.tool.indexOf(7) == -1" />
  611. <div class="checkDiv" v-else>
  612. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  613. </div>
  614. </div>
  615. </div>
  616. <div class="tool">
  617. <div class="whiteBIcon" @click="
  618. openTools(itemTaskIndex, 1, toolIndex)
  619. ">
  620. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  621. <div style="margin: 5px 0">电子白板</div>
  622. </div>
  623. <div class="check" @click="
  624. addTools(1, itemTaskIndex, toolIndex)
  625. ">
  626. <img src="../../../assets/icon/checkNo.png" alt
  627. v-if="itemTool.tool.indexOf(1) == -1" />
  628. <div class="checkDiv" v-else>
  629. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  630. </div>
  631. </div>
  632. </div>
  633. <!-- <div class="tool">
  634. <div
  635. class="whiteBIcon"
  636. @click="addTools(2, itemTaskIndex, toolIndex)"
  637. >
  638. <img
  639. src="../../../assets/icon/secondToolList/note.png"
  640. alt
  641. />
  642. <div style="margin: 5px 0">便签</div>
  643. </div>
  644. <div
  645. class="check"
  646. @click="addTools(2, itemTaskIndex, toolIndex)"
  647. >
  648. <img
  649. src="../../../assets/icon/checkNo.png"
  650. alt
  651. v-if="itemTool.tool.indexOf(2) == -1"
  652. />
  653. <div class="checkDiv" v-else>
  654. <img
  655. src="../../../assets/icon/checkedIs.png"
  656. alt
  657. /><span>已选择</span>
  658. </div>
  659. </div>
  660. </div> -->
  661. <!-- <div class="tool">
  662. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  663. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  664. <div style="margin: 5px 0">协同文档</div>
  665. </div>
  666. <div
  667. class="check"
  668. @click="addTools(6, itemTaskIndex, toolIndex)"
  669. >
  670. <img
  671. src="../../../assets/icon/checkNo.png"
  672. alt
  673. v-if="itemTool.tool.indexOf(6) == -1"
  674. />
  675. <div class="checkDiv" v-else>
  676. <img
  677. src="../../../assets/icon/checkedIs.png"
  678. alt
  679. /><span>已选择</span>
  680. </div>
  681. </div>
  682. </div> -->
  683. <div class="tool">
  684. <div class="whiteBIcon" @click="
  685. openTools(itemTaskIndex, 52, toolIndex)
  686. ">
  687. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  688. <div style="margin: 5px 0">文档</div>
  689. </div>
  690. <div class="check" @click="
  691. addTools(52, itemTaskIndex, toolIndex)
  692. ">
  693. <img src="../../../assets/icon/checkNo.png" alt
  694. v-if="itemTool.tool.indexOf(52) == -1" />
  695. <div class="checkDiv" v-else>
  696. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  697. </div>
  698. </div>
  699. </div>
  700. <div class="tool">
  701. <div class="whiteBIcon" @click="
  702. openTools(itemTaskIndex, 3, toolIndex)
  703. ">
  704. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  705. <div style="margin: 5px 0">思维导图</div>
  706. </div>
  707. <div class="check" @click="
  708. addTools(3, itemTaskIndex, toolIndex)
  709. ">
  710. <img src="../../../assets/icon/checkNo.png" alt
  711. v-if="itemTool.tool.indexOf(3) == -1" />
  712. <div class="checkDiv" v-else>
  713. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  714. </div>
  715. </div>
  716. </div>
  717. <div class="tool">
  718. <div class="whiteBIcon" @click="
  719. openTools(itemTaskIndex, 48, toolIndex)
  720. ">
  721. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  722. <div style="margin: 5px 0">表格</div>
  723. </div>
  724. <div class="check" @click="
  725. addTools(48, itemTaskIndex, toolIndex)
  726. ">
  727. <img src="../../../assets/icon/checkNo.png" alt
  728. v-if="itemTool.tool.indexOf(48) == -1" />
  729. <div class="checkDiv" v-else>
  730. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  731. </div>
  732. </div>
  733. </div>
  734. </div>
  735. <div class="toolSort" v-if="itemTool.toolType == 6">
  736. <div class="tool">
  737. <div class="whiteBIcon" @click="
  738. openTools(itemTaskIndex, 49, toolIndex)
  739. ">
  740. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  741. <div style="margin: 5px 0">学生分组</div>
  742. </div>
  743. <div class="check" @click="
  744. addTools(49, itemTaskIndex, toolIndex)
  745. ">
  746. <img src="../../../assets/icon/checkNo.png" alt
  747. v-if="itemTool.tool.indexOf(49) == -1" />
  748. <div class="checkDiv" v-else>
  749. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  750. </div>
  751. </div>
  752. </div>
  753. </div>
  754. <div class="toolSort" v-if="itemTool.toolType == 2">
  755. <!-- <div class="tool">
  756. <div
  757. class="whiteBIcon"
  758. @click="addTools(5, itemTaskIndex, toolIndex)"
  759. >
  760. <img
  761. src="../../../assets/icon/thirdToolList/score.png"
  762. alt
  763. />
  764. <div style="margin: 5px 0">量规评分</div>
  765. </div>
  766. <div
  767. class="check"
  768. @click="addTools(5, itemTaskIndex, toolIndex)"
  769. >
  770. <img
  771. src="../../../assets/icon/checkNo.png"
  772. alt
  773. v-if="itemTool.tool.indexOf(5) == -1"
  774. />
  775. <img
  776. src="../../../assets/icon/checkedIs.png"
  777. alt
  778. v-else
  779. />
  780. </div>
  781. </div>-->
  782. <div class="tool">
  783. <div class="whiteBIcon" @click="
  784. openTools(itemTaskIndex, 4, toolIndex)
  785. ">
  786. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  787. <div style="margin: 5px 0">问卷调查</div>
  788. </div>
  789. <div class="check" @click="
  790. addTools(4, itemTaskIndex, toolIndex)
  791. ">
  792. <img src="../../../assets/icon/checkNo.png" alt
  793. v-if="itemTool.tool.indexOf(4) == -1" />
  794. <div class="checkDiv" v-else>
  795. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  796. </div>
  797. </div>
  798. </div>
  799. <div class="tool">
  800. <div class="whiteBIcon" @click="
  801. openTools(itemTaskIndex, 45, toolIndex)
  802. ">
  803. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  804. <div style="margin: 5px 0">选择题</div>
  805. </div>
  806. <div class="check" @click="
  807. addTools(45, itemTaskIndex, toolIndex)
  808. ">
  809. <img src="../../../assets/icon/checkNo.png" alt
  810. v-if="itemTool.tool.indexOf(45) == -1" />
  811. <div class="checkDiv" v-else>
  812. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  813. </div>
  814. </div>
  815. </div>
  816. <div class="tool">
  817. <div class="whiteBIcon" @click="
  818. openTools(itemTaskIndex, 15, toolIndex)
  819. ">
  820. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  821. <div style="margin: 5px 0">问答工具</div>
  822. </div>
  823. <div class="check" @click="
  824. addTools(15, itemTaskIndex, toolIndex)
  825. ">
  826. <img src="../../../assets/icon/checkNo.png" alt
  827. v-if="itemTool.tool.indexOf(15) == -1" />
  828. <div class="checkDiv" v-else>
  829. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  830. </div>
  831. </div>
  832. </div>
  833. <div class="tool">
  834. <div class="whiteBIcon" @click="
  835. addTools(16, itemTaskIndex, toolIndex)
  836. ">
  837. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  838. <div style="margin: 5px 0">作业提交</div>
  839. </div>
  840. <div class="check" @click="
  841. addTools(16, itemTaskIndex, toolIndex)
  842. ">
  843. <img src="../../../assets/icon/checkNo.png" alt
  844. v-if="itemTool.tool.indexOf(16) == -1" />
  845. <div class="checkDiv" v-else>
  846. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  847. </div>
  848. </div>
  849. </div>
  850. <div class="tool">
  851. <div class="whiteBIcon" @click="
  852. addTools(50, itemTaskIndex, toolIndex)
  853. ">
  854. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  855. <div style="margin: 5px 0">批量上传</div>
  856. </div>
  857. <div class="check" @click="
  858. addTools(50, itemTaskIndex, toolIndex)
  859. ">
  860. <img src="../../../assets/icon/checkNo.png" alt
  861. v-if="itemTool.tool.indexOf(50) == -1" />
  862. <div class="checkDiv" v-else>
  863. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  864. </div>
  865. </div>
  866. </div>
  867. <!-- <div class="tool">
  868. <div
  869. class="whiteBIcon"
  870. @click="
  871. openTools(itemTaskIndex, 40, toolIndex)
  872. "
  873. >
  874. <img
  875. src="../../../assets/icon/thirdToolList/eval.png"
  876. alt
  877. />
  878. <div style="margin: 5px 0">个人评价</div>
  879. </div>
  880. <div
  881. class="check"
  882. @click="
  883. addTools(40, itemTaskIndex, toolIndex)
  884. "
  885. >
  886. <img
  887. src="../../../assets/icon/checkNo.png"
  888. alt
  889. v-if="itemTool.tool.indexOf(40) == -1"
  890. />
  891. <div class="checkDiv" v-else>
  892. <img
  893. src="../../../assets/icon/checkedIs.png"
  894. alt
  895. /><span>已选择</span>
  896. </div>
  897. </div>
  898. </div> -->
  899. <div class="tool">
  900. <div class="whiteBIcon" @click="
  901. openTools(itemTaskIndex, 41, toolIndex)
  902. ">
  903. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  904. <div style="margin: 5px 0">选择填空</div>
  905. </div>
  906. <div class="check" @click="
  907. addTools(41, itemTaskIndex, toolIndex)
  908. ">
  909. <img src="../../../assets/icon/checkNo.png" alt
  910. v-if="itemTool.tool.indexOf(41) == -1" />
  911. <div class="checkDiv" v-else>
  912. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  913. </div>
  914. </div>
  915. </div>
  916. <div class="tool">
  917. <div class="whiteBIcon" @click="
  918. openTools(itemTaskIndex, 47, toolIndex)
  919. ">
  920. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  921. <div style="margin: 5px 0">连词成句</div>
  922. </div>
  923. <div class="check" @click="
  924. addTools(47, itemTaskIndex, toolIndex)
  925. ">
  926. <img src="../../../assets/icon/checkNo.png" alt
  927. v-if="itemTool.tool.indexOf(47) == -1" />
  928. <div class="checkDiv" v-else>
  929. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  930. </div>
  931. </div>
  932. </div>
  933. <!-- <div class="tool">
  934. <div
  935. class="whiteBIcon"
  936. @click="openTools(itemTaskIndex, 42, toolIndex)"
  937. >
  938. <img
  939. src="../../../assets/icon/thirdToolList/mp3.png"
  940. alt
  941. />
  942. <div style="margin: 5px 0">上传音频</div>
  943. </div>
  944. <div
  945. class="check"
  946. @click="addTools(42, itemTaskIndex, toolIndex)"
  947. >
  948. <img
  949. src="../../../assets/icon/checkNo.png"
  950. alt
  951. v-if="itemTool.tool.indexOf(42) == -1"
  952. />
  953. <img
  954. src="../../../assets/icon/checkedIs.png"
  955. alt
  956. v-else
  957. />
  958. </div>
  959. </div> -->
  960. </div>
  961. <div class="toolSort" v-if="itemTool.toolType == 3">
  962. <div class="tool">
  963. <div class="whiteBIcon" @click="
  964. addTools(18, itemTaskIndex, toolIndex)
  965. ">
  966. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  967. <div style="margin: 5px 0">训练平台</div>
  968. </div>
  969. <div class="check" @click="
  970. addTools(18, itemTaskIndex, toolIndex)
  971. ">
  972. <img src="../../../assets/icon/checkNo.png" alt
  973. v-if="itemTool.tool.indexOf(18) == -1" />
  974. <div class="checkDiv" v-else>
  975. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  976. </div>
  977. </div>
  978. </div>
  979. <div class="tool">
  980. <div class="whiteBIcon" @click="
  981. addTools(21, itemTaskIndex, toolIndex)
  982. ">
  983. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  984. <div style="margin: 5px 0">编程平台</div>
  985. </div>
  986. <div class="check" @click="
  987. addTools(21, itemTaskIndex, toolIndex)
  988. ">
  989. <img src="../../../assets/icon/checkNo.png" alt
  990. v-if="itemTool.tool.indexOf(21) == -1" />
  991. <div class="checkDiv" v-else>
  992. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  993. </div>
  994. </div>
  995. </div>
  996. <div class="tool">
  997. <div class="whiteBIcon" @click="
  998. addTools(22, itemTaskIndex, toolIndex)
  999. ">
  1000. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1001. <div style="margin: 5px 0">AI体验</div>
  1002. </div>
  1003. <div class="check" @click="
  1004. addTools(22, itemTaskIndex, toolIndex)
  1005. ">
  1006. <img src="../../../assets/icon/checkNo.png" alt
  1007. v-if="itemTool.tool.indexOf(22) == -1" />
  1008. <div class="checkDiv" v-else>
  1009. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1010. </div>
  1011. </div>
  1012. </div>
  1013. <div class="tool">
  1014. <div class="whiteBIcon" @click="
  1015. addTools(23, itemTaskIndex, toolIndex)
  1016. ">
  1017. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1018. <div style="margin: 5px 0">Python</div>
  1019. </div>
  1020. <div class="check" @click="
  1021. addTools(23, itemTaskIndex, toolIndex)
  1022. ">
  1023. <img src="../../../assets/icon/checkNo.png" alt
  1024. v-if="itemTool.tool.indexOf(23) == -1" />
  1025. <div class="checkDiv" v-else>
  1026. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1027. </div>
  1028. </div>
  1029. </div>
  1030. <div class="tool">
  1031. <div class="whiteBIcon" @click="
  1032. addTools(24, itemTaskIndex, toolIndex)
  1033. ">
  1034. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1035. <div style="margin: 5px 0">AI平台</div>
  1036. </div>
  1037. <div class="check" @click="
  1038. addTools(24, itemTaskIndex, toolIndex)
  1039. ">
  1040. <img src="../../../assets/icon/checkNo.png" alt
  1041. v-if="itemTool.tool.indexOf(24) == -1" />
  1042. <div class="checkDiv" v-else>
  1043. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1044. </div>
  1045. </div>
  1046. </div>
  1047. <div class="tool">
  1048. <div class="whiteBIcon" @click="
  1049. addTools(32, itemTaskIndex, toolIndex)
  1050. ">
  1051. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1052. <div style="margin: 5px 0">源码编辑</div>
  1053. </div>
  1054. <div class="check" @click="
  1055. addTools(32, itemTaskIndex, toolIndex)
  1056. ">
  1057. <img src="../../../assets/icon/checkNo.png" alt
  1058. v-if="itemTool.tool.indexOf(32) == -1" />
  1059. <div class="checkDiv" v-else>
  1060. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1061. </div>
  1062. </div>
  1063. </div>
  1064. <div class="tool">
  1065. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  1066. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1067. <div style="margin: 5px 0">CocoPi</div>
  1068. </div>
  1069. <div class="check" @click="
  1070. addTools(57, itemTaskIndex, toolIndex)
  1071. ">
  1072. <img src="../../../assets/icon/checkNo.png" alt
  1073. v-if="itemTool.tool.indexOf(57) == -1" />
  1074. <div class="checkDiv" v-else>
  1075. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1076. </div>
  1077. </div>
  1078. </div>
  1079. <div class="tool">
  1080. <div class="whiteBIcon" @click="
  1081. addTools(63, itemTaskIndex, toolIndex)
  1082. ">
  1083. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1084. <div style="margin: 5px 0">海龟编程</div>
  1085. </div>
  1086. <div class="check" @click="
  1087. addTools(63, itemTaskIndex, toolIndex)
  1088. ">
  1089. <img src="../../../assets/icon/checkNo.png" alt
  1090. v-if="itemTool.tool.indexOf(63) == -1" />
  1091. <div class="checkDiv" v-else>
  1092. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1093. </div>
  1094. </div>
  1095. </div>
  1096. </div>
  1097. <div class="toolSort" v-if="itemTool.toolType == 5">
  1098. <div class="tool">
  1099. <div class="whiteBIcon" @click="
  1100. addTools(28, itemTaskIndex, toolIndex)
  1101. ">
  1102. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1103. <div style="margin: 5px 0">翻译</div>
  1104. </div>
  1105. <div class="check" @click="
  1106. addTools(28, itemTaskIndex, toolIndex)
  1107. ">
  1108. <img src="../../../assets/icon/checkNo.png" alt
  1109. v-if="itemTool.tool.indexOf(28) == -1" />
  1110. <div class="checkDiv" v-else>
  1111. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1112. </div>
  1113. </div>
  1114. </div>
  1115. <div class="tool">
  1116. <div class="whiteBIcon" @click="
  1117. addTools(37, itemTaskIndex, toolIndex)
  1118. ">
  1119. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1120. <div style="margin: 5px 0">魔盒识字</div>
  1121. </div>
  1122. <div class="check" @click="
  1123. addTools(37, itemTaskIndex, toolIndex)
  1124. ">
  1125. <img src="../../../assets/icon/checkNo.png" alt
  1126. v-if="itemTool.tool.indexOf(37) == -1" />
  1127. <div class="checkDiv" v-else>
  1128. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1129. </div>
  1130. </div>
  1131. </div>
  1132. <div class="tool">
  1133. <div class="whiteBIcon" @click="
  1134. addTools(38, itemTaskIndex, toolIndex)
  1135. ">
  1136. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1137. <div style="margin: 5px 0">24点</div>
  1138. </div>
  1139. <div class="check" @click="
  1140. addTools(38, itemTaskIndex, toolIndex)
  1141. ">
  1142. <img src="../../../assets/icon/checkNo.png" alt
  1143. v-if="itemTool.tool.indexOf(38) == -1" />
  1144. <div class="checkDiv" v-else>
  1145. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1146. </div>
  1147. </div>
  1148. </div>
  1149. <div class="tool">
  1150. <div class="whiteBIcon" @click="
  1151. addTools(31, itemTaskIndex, toolIndex)
  1152. ">
  1153. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1154. <div style="margin: 5px 0">数学画板</div>
  1155. </div>
  1156. <div class="check" @click="
  1157. addTools(31, itemTaskIndex, toolIndex)
  1158. ">
  1159. <img src="../../../assets/icon/checkNo.png" alt
  1160. v-if="itemTool.tool.indexOf(31) == -1" />
  1161. <div class="checkDiv" v-else>
  1162. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1163. </div>
  1164. </div>
  1165. </div>
  1166. <div class="tool">
  1167. <div class="whiteBIcon" @click="
  1168. addTools(39, itemTaskIndex, toolIndex)
  1169. ">
  1170. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1171. <div style="margin: 5px 0">GeoGebra</div>
  1172. </div>
  1173. <div class="check" @click="
  1174. addTools(39, itemTaskIndex, toolIndex)
  1175. ">
  1176. <img src="../../../assets/icon/checkNo.png" alt
  1177. v-if="itemTool.tool.indexOf(39) == -1" />
  1178. <div class="checkDiv" v-else>
  1179. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1180. </div>
  1181. </div>
  1182. </div>
  1183. <div class="tool">
  1184. <div class="whiteBIcon" @click="
  1185. addTools(58, itemTaskIndex, toolIndex)
  1186. ">
  1187. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1188. <div style="margin: 5px 0">模拟驾驶</div>
  1189. </div>
  1190. <div class="check" @click="
  1191. addTools(58, itemTaskIndex, toolIndex)
  1192. ">
  1193. <img src="../../../assets/icon/checkNo.png" alt
  1194. v-if="itemTool.tool.indexOf(58) == -1" />
  1195. <div class="checkDiv" v-else>
  1196. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1197. </div>
  1198. </div>
  1199. </div>
  1200. <div class="tool">
  1201. <div class="whiteBIcon" @click="
  1202. addTools(59, itemTaskIndex, toolIndex)
  1203. ">
  1204. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1205. <div style="margin: 5px 0">路径搜索</div>
  1206. </div>
  1207. <div class="check" @click="
  1208. addTools(59, itemTaskIndex, toolIndex)
  1209. ">
  1210. <img src="../../../assets/icon/checkNo.png" alt
  1211. v-if="itemTool.tool.indexOf(59) == -1" />
  1212. <div class="checkDiv" v-else>
  1213. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1214. </div>
  1215. </div>
  1216. </div>
  1217. <div class="tool">
  1218. <div class="whiteBIcon" @click="
  1219. addTools(60, itemTaskIndex, toolIndex)
  1220. ">
  1221. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1222. <div style="margin: 5px 0">深度学习</div>
  1223. </div>
  1224. <div class="check" @click="
  1225. addTools(60, itemTaskIndex, toolIndex)
  1226. ">
  1227. <img src="../../../assets/icon/checkNo.png" alt
  1228. v-if="itemTool.tool.indexOf(60) == -1" />
  1229. <div class="checkDiv" v-else>
  1230. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1231. </div>
  1232. </div>
  1233. </div>
  1234. <div class="tool">
  1235. <div class="whiteBIcon" @click="
  1236. addTools(61, itemTaskIndex, toolIndex)
  1237. ">
  1238. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1239. <div style="margin: 5px 0">全历史</div>
  1240. </div>
  1241. <div class="check" @click="
  1242. addTools(61, itemTaskIndex, toolIndex)
  1243. ">
  1244. <img src="../../../assets/icon/checkNo.png" alt
  1245. v-if="itemTool.tool.indexOf(61) == -1" />
  1246. <div class="checkDiv" v-else>
  1247. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1248. </div>
  1249. </div>
  1250. </div>
  1251. </div>
  1252. <div class="toolSort" v-if="itemTool.toolType == 7">
  1253. <div class="tool">
  1254. <div class="whiteBIcon" @click="
  1255. openTools(itemTaskIndex, 40, toolIndex)
  1256. ">
  1257. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1258. <div style="margin: 5px 0">个人评价</div>
  1259. </div>
  1260. <div class="check" @click="
  1261. addTools(40, itemTaskIndex, toolIndex)
  1262. ">
  1263. <img src="../../../assets/icon/checkNo.png" alt
  1264. v-if="itemTool.tool.indexOf(40) == -1" />
  1265. <div class="checkDiv" v-else>
  1266. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1267. </div>
  1268. </div>
  1269. </div>
  1270. </div>
  1271. <div class="toolSort" v-if="itemTool.toolType == 4">
  1272. <div class="tool">
  1273. <div class="whiteBIcon" @click="
  1274. addTools(26, itemTaskIndex, toolIndex)
  1275. ">
  1276. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1277. <div style="margin: 5px 0">课程设计</div>
  1278. </div>
  1279. <div class="check" @click="
  1280. addTools(26, itemTaskIndex, toolIndex)
  1281. ">
  1282. <img src="../../../assets/icon/checkNo.png" alt
  1283. v-if="itemTool.tool.indexOf(26) == -1" />
  1284. <div class="checkDiv" v-else>
  1285. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1286. </div>
  1287. </div>
  1288. </div>
  1289. <div class="tool">
  1290. <div class="whiteBIcon" @click="
  1291. addTools(25, itemTaskIndex, toolIndex)
  1292. ">
  1293. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1294. <div style="margin: 5px 0">目标管理</div>
  1295. </div>
  1296. <div class="check" @click="
  1297. addTools(25, itemTaskIndex, toolIndex)
  1298. ">
  1299. <img src="../../../assets/icon/checkNo.png" alt
  1300. v-if="itemTool.tool.indexOf(25) == -1" />
  1301. <div class="checkDiv" v-else>
  1302. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1303. </div>
  1304. </div>
  1305. </div>
  1306. <!-- <div class="tool">
  1307. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1308. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1309. <div style="margin: 5px 0">汉字宫</div>
  1310. </div>
  1311. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1312. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1313. <div class="checkDiv" v-else>
  1314. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1315. </div>
  1316. </div>
  1317. </div> -->
  1318. </div>
  1319. </div>
  1320. </div>
  1321. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1322. <div class="addToolImg">
  1323. <img src="../../../assets/icon/add.png" alt />
  1324. </div>
  1325. <div>添加工具</div>
  1326. </div>
  1327. </div>
  1328. </div>
  1329. </div>
  1330. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1331. <div>
  1332. <img src="../../../assets/icon/new/addStage.png" alt />
  1333. <span>添加任务</span>
  1334. </div>
  1335. </div>
  1336. </div>
  1337. </div>
  1338. </div>
  1339. </div>
  1340. </div>
  1341. <div class="rightBox" v-if="this.steps == 2">
  1342. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  1343. <div class="right_title" style="border: none; margin: 0; padding: 0">
  1344. 请选择合适的课程模板
  1345. </div>
  1346. <div class="wordbox">
  1347. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  1348. <div class="wordPic">
  1349. <img src="../../../assets/icon/wordMub.png" alt />
  1350. </div>
  1351. <div style="
  1352. margin-top: 10px;
  1353. line-height: 19px;
  1354. overflow: hidden;
  1355. text-overflow: ellipsis;
  1356. white-space: nowrap;
  1357. padding: 0 20px;
  1358. ">
  1359. {{ aa.title }}
  1360. </div>
  1361. </div>
  1362. <div class="wordTeacher" @click="checkTemplate2()">
  1363. <div class="wordPic">
  1364. <img src="../../../assets/icon/wordMub.png" alt />
  1365. </div>
  1366. <div style="
  1367. margin-top: 10px;
  1368. line-height: 19px;
  1369. overflow: hidden;
  1370. text-overflow: ellipsis;
  1371. white-space: nowrap;
  1372. padding: 0 20px;
  1373. ">
  1374. 任务模式
  1375. </div>
  1376. </div>
  1377. <div class="wordTeacher" @click="checkTemplate3()">
  1378. <div class="wordPic">
  1379. <img src="../../../assets/icon/wordMub.png" alt />
  1380. </div>
  1381. <div style="
  1382. margin-top: 10px;
  1383. line-height: 19px;
  1384. overflow: hidden;
  1385. text-overflow: ellipsis;
  1386. white-space: nowrap;
  1387. padding: 0 20px;
  1388. ">
  1389. 简易模式
  1390. </div>
  1391. </div>
  1392. <div class="wordTeacher" @click="pasteStage()">
  1393. <div class="wordPic">
  1394. <img src="../../../assets/icon/wordMub.png" alt />
  1395. </div>
  1396. <div style="
  1397. margin-top: 10px;
  1398. line-height: 19px;
  1399. overflow: hidden;
  1400. text-overflow: ellipsis;
  1401. white-space: nowrap;
  1402. padding: 0 20px;
  1403. ">
  1404. 智能粘贴模式
  1405. </div>
  1406. </div>
  1407. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  1408. <div class="wordPic">
  1409. <img src="../../../assets/icon/wordMub.png" alt />
  1410. </div>
  1411. <div style="
  1412. margin-top: 10px;
  1413. line-height: 19px;
  1414. overflow: hidden;
  1415. text-overflow: ellipsis;
  1416. white-space: nowrap;
  1417. padding: 0 20px;
  1418. ">
  1419. 未来小学课程设计
  1420. </div>
  1421. </div> -->
  1422. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  1423. <div class="wordPic">
  1424. <img src="../../../assets/icon/wordMub.png" alt />
  1425. </div>
  1426. <div style="
  1427. margin-top: 10px;
  1428. line-height: 19px;
  1429. overflow: hidden;
  1430. text-overflow: ellipsis;
  1431. white-space: nowrap;
  1432. padding: 0 20px;
  1433. ">
  1434. 我的课程
  1435. </div>
  1436. </div> -->
  1437. </div>
  1438. </div>
  1439. </div>
  1440. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  1441. <div class="basic_box">
  1442. <div style="
  1443. display: flex;
  1444. flex-direction: row;
  1445. align-items: center;
  1446. position: sticky;
  1447. top: 0;
  1448. background: #fff;
  1449. z-index: 99;
  1450. width: 100%;
  1451. padding: 0 20px 0 20px;
  1452. box-sizing: border-box;
  1453. ">
  1454. <div class="cru_selectBox">
  1455. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1456. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1457. <!-- item.dyName ? item.dyName : -->
  1458. {{ "第" + (index + 1) + "阶段" }}
  1459. </div>
  1460. <img src="../../../assets/line.png" class="cru_line" :style="{
  1461. left: offsetLetfPx + 'px',
  1462. }" />
  1463. </div>
  1464. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  1465. !(unitJson[unitJson.length - 1].easy == 6)
  1466. ">
  1467. <img src="../../../assets/icon/add.png" alt />
  1468. </div>
  1469. </div>
  1470. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  1471. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  1472. <div>
  1473. <div class="chapter_contentbox">
  1474. <div>第{{ unitIndex + 1 }}阶段</div>
  1475. <div>
  1476. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  1477. </div>
  1478. <div v-if="unitJson.length > 1 &&
  1479. !(unitJson[unitJson.length - 1].easy == 4) &&
  1480. !(unitJson[unitJson.length - 1].easy == 6)
  1481. " @click="deleteUnit(unitIndex)"></div>
  1482. </div>
  1483. </div>
  1484. <div v-if="!unitJson[unitIndex].easy" style="
  1485. margin: 50px 0px 10px;
  1486. font-size: 1.5em;
  1487. font-weight: 700;
  1488. color: #0f7eff;
  1489. ">
  1490. 添加任务
  1491. </div>
  1492. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  1493. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1494. <div v-if="unitJson[unitIndex].easy != 1">
  1495. <div :style="{
  1496. marginBottom:
  1497. unitJson[unitIndex].easy == 3 ||
  1498. (unitJson[unitIndex].easy == 5 &&
  1499. itemTask.taskType == 1)
  1500. ? '75px'
  1501. : '0',
  1502. }">
  1503. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  1504. 任务{{ itemTaskIndex + 1 }}
  1505. </div>
  1506. <div class="chapter_contentbox" style="
  1507. flex-direction: row;
  1508. justify-content: flex-start;
  1509. align-items: center;
  1510. ">
  1511. <div style="
  1512. border-left: 6px solid #5699e8;
  1513. height: 20px;
  1514. padding-left: 10px;
  1515. line-height: 22px;
  1516. ">
  1517. 任务名称
  1518. </div>
  1519. <div>
  1520. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1521. itemTaskIndex
  1522. ].task
  1523. " />
  1524. </div>
  1525. <div class="remove" v-if="item.taskJson.length > 1 &&
  1526. (!unitJson[unitIndex].easy ||
  1527. unitJson[unitIndex].easy == 6)
  1528. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  1529. </div>
  1530. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  1531. display: flex;
  1532. margin: 0 0 20px 0;
  1533. flex-direction: row;
  1534. justify-content: flex-start;
  1535. align-items: center;
  1536. width: 70.5% !important;
  1537. padding-top: 30px;
  1538. ">
  1539. <div class="lineTitle">任务描述</div>
  1540. </div>
  1541. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  1542. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1543. itemTaskIndex
  1544. ].taskDetail
  1545. " @change="change"></editor-bar>
  1546. <!-- <textarea
  1547. rows="6"
  1548. class="binfo_input"
  1549. placeholder="请输入任务描述"
  1550. cols
  1551. style="width: 70.5% !important; height: 120px"
  1552. v-model="
  1553. unitJson[unitIndex].chapterInfo[0].taskJson[
  1554. itemTaskIndex
  1555. ].taskDetail
  1556. "
  1557. ></textarea>-->
  1558. </div>
  1559. </div>
  1560. </div>
  1561. <div v-if="!unitJson[unitIndex].easy ||
  1562. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1563. " class="basic_box" style="
  1564. padding: 0 !important;
  1565. ">
  1566. <div style="
  1567. display: flex;
  1568. margin: 0 0 20px 0;
  1569. flex-direction: row;
  1570. justify-content: flex-start;
  1571. align-items: center;
  1572. ">
  1573. <div class="lineTitle">学习内容</div>
  1574. </div>
  1575. <div>
  1576. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  1577. itemTask.chapterData.length == 0
  1578. " style="height: 185px"></div>
  1579. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1580. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  1581. @click="
  1582. getChapterData(
  1583. $event,
  1584. unitIndex,
  1585. index,
  1586. index1,
  1587. item1.type
  1588. )
  1589. ">
  1590. <div class="chapter_upload_t" style="width: 100%"></div>
  1591. <div class="chapter_upload_o" style="
  1592. position: relative;
  1593. display: flex;
  1594. align-items: center;
  1595. ">
  1596. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1597. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  1598. <div v-if="item1.type == 3 ||
  1599. item1.type == 12 ||
  1600. item1.type == 13 ||
  1601. item1.type == 6 ||
  1602. item1.type == 7
  1603. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  1604. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  1605. </div>
  1606. <div class="chapter_upload_ic" style="
  1607. cursor: pointer;
  1608. position: absolute;
  1609. width: 45px;
  1610. right: 0;
  1611. top: 0;
  1612. ">
  1613. <div class="chapter_upload_ic_l"></div>
  1614. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  1615. deleteChapterData(
  1616. $event,
  1617. unitIndex,
  1618. index,
  1619. index1,
  1620. itemTaskIndex
  1621. )
  1622. ">
  1623. <div></div>
  1624. </div>
  1625. </div>
  1626. <div class="chapter_upload_n">
  1627. <input v-if="item1.type == 2 ||
  1628. item1.type == 3 ||
  1629. item1.type == 12 ||
  1630. item1.type == 13 ||
  1631. item1.type == 7
  1632. " :placeholder="item1.name" @change="
  1633. updataVideoT(
  1634. $event,
  1635. unitIndex,
  1636. chapterIndex,
  1637. index1
  1638. )
  1639. " style="
  1640. border: none;
  1641. outline: none;
  1642. width: 80%;
  1643. minwidth: 215px;
  1644. z-index: 99;
  1645. font-size: 14px;
  1646. white-space: nowrap;
  1647. overflow: hidden;
  1648. text-overflow: ellipsis;
  1649. " />
  1650. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1651. border: none;
  1652. outline: none;
  1653. width: 80%;
  1654. white-space: nowrap;
  1655. overflow: hidden;
  1656. text-overflow: ellipsis;
  1657. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1658. <input :placeholder="item1.title ? item1.title : '链接'
  1659. " v-if="item1.type == 8" style="
  1660. border: none;
  1661. outline: none;
  1662. width: 80%;
  1663. white-space: nowrap;
  1664. overflow: hidden;
  1665. text-overflow: ellipsis;
  1666. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1667. <div class="chapter_upload_ud" style="z-index: 99">
  1668. <div class="chapter_upload_up" @click="
  1669. upCd(
  1670. $event,
  1671. unitIndex,
  1672. index,
  1673. itemTaskIndex,
  1674. index1
  1675. )
  1676. "></div>
  1677. <div class="chapter_upload_down" @click="
  1678. downCd(
  1679. $event,
  1680. unitIndex,
  1681. index,
  1682. itemTaskIndex,
  1683. index1
  1684. )
  1685. "></div>
  1686. </div>
  1687. </div>
  1688. </div>
  1689. </div>
  1690. </div>
  1691. </div>
  1692. <div class="add_info_box">
  1693. <button class="info_btn" @click="addImg($event)">
  1694. 添加文件
  1695. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  1696. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  1697. " />
  1698. </button>
  1699. <!-- <button class="info_btn" @click="addImg($event)">
  1700. 添加视频
  1701. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  1702. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  1703. " />
  1704. </button>
  1705. <button class="info_btn" @click="addImg($event)">
  1706. 添加文档
  1707. <input type="file"
  1708. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1709. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  1710. " />
  1711. </button> -->
  1712. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  1713. 添加图文
  1714. </button>
  1715. <button class="info_btn" @click="openLine(itemTaskIndex)">
  1716. 添加链接
  1717. </button>
  1718. <button class="info_btn" @click="openSource(itemTaskIndex)">
  1719. 添加资源
  1720. </button>
  1721. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  1722. 嵌入代码
  1723. </button>
  1724. <!-- <button class="info_btn" @click="addImg($event)">
  1725. 其他附件
  1726. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  1727. " />
  1728. </button> -->
  1729. </div>
  1730. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1731. itemTaskIndex
  1732. ].proVisible
  1733. " class="mask">
  1734. <div class="progressBox">
  1735. <!-- <div id="closePro" class="closeCss">
  1736. <img src="../../../../assets/icon/close.png" alt />
  1737. </div> -->
  1738. <div class="lbox">
  1739. <img src="../../../assets/loading.gif" />上传中,请稍后
  1740. </div>
  1741. <div style="margin-bottom: 10px">
  1742. <span>{{
  1743. unitJson[unitIndex].chapterInfo[0].taskJson[
  1744. itemTaskIndex
  1745. ].isFinishSize
  1746. }}M</span>
  1747. /
  1748. <span>{{
  1749. unitJson[unitIndex].chapterInfo[0].taskJson[
  1750. itemTaskIndex
  1751. ].isAllSize
  1752. }}M</span>
  1753. </div>
  1754. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1755. itemTaskIndex
  1756. ].progress
  1757. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1758. itemTaskIndex
  1759. ].progress
  1760. : 0
  1761. " style="width: 80%"></el-progress>
  1762. </div>
  1763. </div>
  1764. </div>
  1765. <div v-if="unitJson[unitIndex].easy == 1 ||
  1766. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  1767. " class="basic_box" style="
  1768. margin: 0 auto;
  1769. min-height: 0;
  1770. width: 95% !important;
  1771. padding: 20px 10px 10px;
  1772. ">
  1773. <div>
  1774. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  1775. itemTask.chapterData.length == 0
  1776. " style="height: 185px"></div>
  1777. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1778. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  1779. <div class="chapter_upload" @click="
  1780. getChapterData(
  1781. $event,
  1782. unitIndex,
  1783. index,
  1784. index1,
  1785. item1.type
  1786. )
  1787. ">
  1788. <div class="chapter_upload_t" style="width: 100%"></div>
  1789. <div class="chapter_upload_o" style="
  1790. position: relative;
  1791. display: flex;
  1792. align-items: center;
  1793. ">
  1794. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1795. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  1796. <div v-if="item1.type == 3 ||
  1797. item1.type == 6 ||
  1798. item1.type == 7
  1799. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  1800. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  1801. </div>
  1802. <div class="chapter_upload_ic" style="
  1803. cursor: pointer;
  1804. position: absolute;
  1805. width: 45px;
  1806. right: 0;
  1807. top: 0;
  1808. ">
  1809. <div class="chapter_upload_ic_l"></div>
  1810. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  1811. deleteChapterData(
  1812. $event,
  1813. unitIndex,
  1814. index,
  1815. index1,
  1816. itemTaskIndex
  1817. )
  1818. ">
  1819. <div></div>
  1820. </div>
  1821. </div>
  1822. <div class="chapter_upload_n">
  1823. <span style="
  1824. font-size: 14px;
  1825. color: rgb(109, 109, 109);
  1826. height: 14px;
  1827. line-height: 12px;
  1828. " v-if="item1.type == 2 ||
  1829. item1.type == 3 ||
  1830. item1.type == 7
  1831. ">{{ item1.text }}-</span>
  1832. <input v-if="item1.type == 2 ||
  1833. item1.type == 3 ||
  1834. item1.type == 7
  1835. " :placeholder="item1.name" @change="
  1836. updataVideoT(
  1837. $event,
  1838. unitIndex,
  1839. chapterIndex,
  1840. index1
  1841. )
  1842. " style="
  1843. border: none;
  1844. outline: none;
  1845. width: 80%;
  1846. minwidth: 215px;
  1847. z-index: 99;
  1848. font-size: 14px;
  1849. white-space: nowrap;
  1850. overflow: hidden;
  1851. text-overflow: ellipsis;
  1852. " />
  1853. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1854. border: none;
  1855. outline: none;
  1856. width: 80%;
  1857. white-space: nowrap;
  1858. overflow: hidden;
  1859. text-overflow: ellipsis;
  1860. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1861. <input :placeholder="item1.title ? item1.title : '链接'
  1862. " v-if="item1.type == 8" style="
  1863. border: none;
  1864. outline: none;
  1865. width: 80%;
  1866. white-space: nowrap;
  1867. overflow: hidden;
  1868. text-overflow: ellipsis;
  1869. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1870. <div class="chapter_upload_ud" style="z-index: 99">
  1871. <div class="chapter_upload_up" @click="
  1872. upCd(
  1873. $event,
  1874. unitIndex,
  1875. index,
  1876. itemTaskIndex,
  1877. index1
  1878. )
  1879. "></div>
  1880. <div class="chapter_upload_down" @click="
  1881. downCd(
  1882. $event,
  1883. unitIndex,
  1884. index,
  1885. itemTaskIndex,
  1886. index1
  1887. )
  1888. "></div>
  1889. </div>
  1890. </div>
  1891. </div>
  1892. </div>
  1893. </div>
  1894. </div>
  1895. </div>
  1896. <div class="add_info_box" style="margin: 10px 0 0">
  1897. <button class="info_btn" @click="addImg($event)">
  1898. <span style="color: red">*</span>
  1899. 教学设计
  1900. <input type="file"
  1901. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1902. style="display: none" v-if="inputShow" @change="
  1903. beforeUpload3(
  1904. $event,
  1905. unitIndex,
  1906. 3,
  1907. itemTaskIndex,
  1908. '教学设计'
  1909. )
  1910. " />
  1911. </button>
  1912. <button class="info_btn" @click="addImg($event)">
  1913. <span style="color: red">*</span>
  1914. 教学课件
  1915. <input type="file"
  1916. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1917. style="display: none" v-if="inputShow" @change="
  1918. beforeUpload3(
  1919. $event,
  1920. unitIndex,
  1921. 3,
  1922. itemTaskIndex,
  1923. '教学课件'
  1924. )
  1925. " />
  1926. </button>
  1927. <button class="info_btn" @click="addImg($event)">
  1928. 教学视频
  1929. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  1930. v-if="inputShow" @change="
  1931. beforeUpload3(
  1932. $event,
  1933. unitIndex,
  1934. 2,
  1935. itemTaskIndex,
  1936. '教学视频'
  1937. )
  1938. " />
  1939. </button>
  1940. <button class="info_btn" @click="addImg($event)">
  1941. 教学音频
  1942. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1943. beforeUpload3(
  1944. $event,
  1945. unitIndex,
  1946. 2,
  1947. itemTaskIndex,
  1948. '教学音频'
  1949. )
  1950. " />
  1951. </button>
  1952. <button class="info_btn" @click="addImg($event)">
  1953. 学习单
  1954. <input type="file"
  1955. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1956. style="display: none" v-if="inputShow" @change="
  1957. beforeUpload3(
  1958. $event,
  1959. unitIndex,
  1960. 3,
  1961. itemTaskIndex,
  1962. '学习单'
  1963. )
  1964. " />
  1965. </button>
  1966. </div>
  1967. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1968. itemTaskIndex
  1969. ].proVisible
  1970. " class="mask">
  1971. <div class="progressBox">
  1972. <!-- <div id="closePro" class="closeCss">
  1973. <img src="../../../../assets/icon/close.png" alt />
  1974. </div> -->
  1975. <div class="lbox">
  1976. <img src="../../../assets/loading.gif" />上传中,请稍后
  1977. </div>
  1978. <div style="margin-bottom: 10px">
  1979. <span>{{
  1980. unitJson[unitIndex].chapterInfo[0].taskJson[
  1981. itemTaskIndex
  1982. ].isFinishSize
  1983. }}M</span>
  1984. /
  1985. <span>{{
  1986. unitJson[unitIndex].chapterInfo[0].taskJson[
  1987. itemTaskIndex
  1988. ].isAllSize
  1989. }}M</span>
  1990. </div>
  1991. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1992. itemTaskIndex
  1993. ].progress
  1994. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1995. itemTaskIndex
  1996. ].progress
  1997. : 0
  1998. " style="width: 80%"></el-progress>
  1999. </div>
  2000. </div>
  2001. </div>
  2002. <div v-if="unitJson[unitIndex].easy != 3 &&
  2003. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  2004. " style="
  2005. flex-direction: row;
  2006. justify-content: flex-start;
  2007. align-items: center;
  2008. padding: 0 0 0 30px;
  2009. paddint-top: 10px !important;
  2010. ">
  2011. <div style="
  2012. display: flex;
  2013. flex-direction: row;
  2014. align-items: center;
  2015. margin-bottom: 20px;
  2016. ">
  2017. <div class="lineTitle">
  2018. {{
  2019. !unitJson[unitIndex].easy ||
  2020. unitJson[unitIndex].easy == 6 ||
  2021. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2022. ? "练习内容"
  2023. : "评价内容"
  2024. }}
  2025. </div>
  2026. </div>
  2027. </div>
  2028. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  2029. " class="toolChoose" style="padding: 0 0 0 30px">
  2030. <div class="tools">
  2031. <div class="leftTools" style="
  2032. width: 95%;
  2033. padding: 0 0 15px 0;
  2034. margin: 15px 0;
  2035. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2036. <div>
  2037. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2038. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2039. </div>
  2040. <div style="
  2041. display: flex;
  2042. flex-direction: row;
  2043. align-items: baseline;
  2044. flex-wrap: nowrap;
  2045. justify-content: flex-start;
  2046. position: relative;
  2047. ">
  2048. <div style="margin-right: 20px; font-weight: bold">
  2049. 步骤 {{ toolIndex + 1 }} :
  2050. </div>
  2051. <div class="chooseWho">
  2052. <!-- <div
  2053. :class="
  2054. itemTool.toolType == 0 ? 'isChooseActive' : ''
  2055. "
  2056. @click="(itemTool.toolType = 0), $forceUpdate()"
  2057. >
  2058. 互动类
  2059. </div> -->
  2060. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  2061. " @click="(itemTool.toolType = 1), $forceUpdate()">
  2062. 思维类
  2063. </div>
  2064. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  2065. " @click="(itemTool.toolType = 6), $forceUpdate()">
  2066. 协作类
  2067. </div>
  2068. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  2069. " @click="(itemTool.toolType = 2), $forceUpdate()">
  2070. 测评类
  2071. </div>
  2072. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  2073. " @click="(itemTool.toolType = 7), $forceUpdate()">
  2074. 评价类
  2075. </div>
  2076. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  2077. " @click="(itemTool.toolType = 3), $forceUpdate()">
  2078. 学科类
  2079. </div>
  2080. <!-- <div
  2081. :class="
  2082. itemTool.toolType == 5 ? 'isChooseActive' : ''
  2083. "
  2084. @click="(itemTool.toolType = 5), $forceUpdate()"
  2085. >
  2086. 学科类
  2087. </div>
  2088. <div
  2089. :class="
  2090. itemTool.toolType == 4 ? 'isChooseActive' : ''
  2091. "
  2092. @click="(itemTool.toolType = 4), $forceUpdate()"
  2093. >
  2094. 其他
  2095. </div> -->
  2096. </div>
  2097. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2098. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2099. </div>
  2100. <div style="min-height: 163px">
  2101. <div class="toolSort" v-if="itemTool.toolType == 0">
  2102. <!-- <div class="tool">
  2103. <div
  2104. class="whiteBIcon"
  2105. @click="addTools(8, itemTaskIndex, toolIndex)"
  2106. >
  2107. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2108. <div style="margin: 5px 0">素材库</div>
  2109. </div>
  2110. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2111. <img
  2112. src="../../../assets/icon/checkNo.png"
  2113. alt
  2114. v-if="itemTool.tool.indexOf(8) == -1"
  2115. />
  2116. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2117. alt /><span>已选择</span></div>
  2118. </div>
  2119. </div>-->
  2120. <!-- <div class="tool">
  2121. <div
  2122. class="whiteBIcon"
  2123. @click="addTools(17, itemTaskIndex, toolIndex)"
  2124. >
  2125. <img
  2126. src="../../../assets/icon/secondToolList/library.png"
  2127. alt
  2128. />
  2129. <div style="margin: 5px 0">学习资料</div>
  2130. </div>
  2131. <div
  2132. class="check"
  2133. @click="addTools(17, itemTaskIndex, toolIndex)"
  2134. >
  2135. <img
  2136. src="../../../assets/icon/checkNo.png"
  2137. alt
  2138. v-if="itemTool.tool.indexOf(17) == -1"
  2139. />
  2140. <img
  2141. src="../../../assets/icon/checkedIs.png"
  2142. alt
  2143. v-else
  2144. />
  2145. </div>10
  2146. </div> -->
  2147. <div class="tool">
  2148. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  2149. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2150. <div style="margin: 5px 0">倒计时</div>
  2151. </div>
  2152. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2153. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  2154. <div class="checkDiv" v-else>
  2155. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. <!-- <div class="tool">
  2160. <div
  2161. class="whiteBIcon"
  2162. @click="openTools(itemTaskIndex, 49, toolIndex)"
  2163. >
  2164. <img
  2165. src="../../../assets/icon/fourthToolList/group.png"
  2166. alt
  2167. />
  2168. <div style="margin: 5px 0">学生分组</div>
  2169. </div>
  2170. <div
  2171. class="check"
  2172. @click="addTools(49, itemTaskIndex, toolIndex)"
  2173. >
  2174. <img
  2175. src="../../../assets/icon/checkNo.png"
  2176. alt
  2177. v-if="itemTool.tool.indexOf(49) == -1"
  2178. />
  2179. <div class="checkDiv" v-else>
  2180. <img
  2181. src="../../../assets/icon/checkedIs.png"
  2182. alt
  2183. /><span>已选择</span>
  2184. </div>
  2185. </div>
  2186. </div> -->
  2187. <div class="tool">
  2188. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2189. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2190. <div style="margin: 5px 0">交互视频</div>
  2191. </div>
  2192. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2193. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2194. <div class="checkDiv" v-else>
  2195. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2196. </div>
  2197. </div>
  2198. </div>
  2199. </div>
  2200. <div class="toolSort" v-if="itemTool.toolType == 1">
  2201. <div class="tool">
  2202. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  2203. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2204. <div style="margin: 5px 0">思维网格</div>
  2205. </div>
  2206. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2207. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  2208. <div class="checkDiv" v-else>
  2209. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2210. </div>
  2211. </div>
  2212. </div>
  2213. <div class="tool">
  2214. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2215. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2216. <div style="margin: 5px 0">电子白板</div>
  2217. </div>
  2218. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2219. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2220. <div class="checkDiv" v-else>
  2221. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2222. </div>
  2223. </div>
  2224. </div>
  2225. <!-- <div class="tool">
  2226. <div
  2227. class="whiteBIcon"
  2228. @click="addTools(2, itemTaskIndex, toolIndex)"
  2229. >
  2230. <img
  2231. src="../../../assets/icon/secondToolList/note.png"
  2232. alt
  2233. />
  2234. <div style="margin: 5px 0">便签</div>
  2235. </div>
  2236. <div
  2237. class="check"
  2238. @click="addTools(2, itemTaskIndex, toolIndex)"
  2239. >
  2240. <img
  2241. src="../../../assets/icon/checkNo.png"
  2242. alt
  2243. v-if="itemTool.tool.indexOf(2) == -1"
  2244. />
  2245. <div class="checkDiv" v-else>
  2246. <img
  2247. src="../../../assets/icon/checkedIs.png"
  2248. alt
  2249. /><span>已选择</span>
  2250. </div>
  2251. </div>
  2252. </div> -->
  2253. <!-- <div class="tool">
  2254. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2255. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2256. <div style="margin: 5px 0">协同文档</div>
  2257. </div>
  2258. <div
  2259. class="check"
  2260. @click="addTools(6, itemTaskIndex, toolIndex)"
  2261. >
  2262. <img
  2263. src="../../../assets/icon/checkNo.png"
  2264. alt
  2265. v-if="itemTool.tool.indexOf(6) == -1"
  2266. />
  2267. <div class="checkDiv" v-else>
  2268. <img
  2269. src="../../../assets/icon/checkedIs.png"
  2270. alt
  2271. /><span>已选择</span>
  2272. </div>
  2273. </div>
  2274. </div> -->
  2275. <div class="tool">
  2276. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2277. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2278. <div style="margin: 5px 0">文档</div>
  2279. </div>
  2280. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2281. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2282. <div class="checkDiv" v-else>
  2283. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2284. </div>
  2285. </div>
  2286. </div>
  2287. <div class="tool">
  2288. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2289. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2290. <div style="margin: 5px 0">思维导图</div>
  2291. </div>
  2292. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2293. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  2294. <div class="checkDiv" v-else>
  2295. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2296. </div>
  2297. </div>
  2298. </div>
  2299. <div class="tool">
  2300. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2301. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2302. <div style="margin: 5px 0">表格</div>
  2303. </div>
  2304. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2305. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  2306. <div class="checkDiv" v-else>
  2307. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2308. </div>
  2309. </div>
  2310. </div>
  2311. </div>
  2312. <div class="toolSort" v-if="itemTool.toolType == 6">
  2313. <div class="tool">
  2314. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2315. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2316. <div style="margin: 5px 0">学生分组</div>
  2317. </div>
  2318. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2319. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2320. <div class="checkDiv" v-else>
  2321. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2322. </div>
  2323. </div>
  2324. </div>
  2325. </div>
  2326. <div class="toolSort" v-if="itemTool.toolType == 2">
  2327. <!-- <div class="tool">
  2328. <div
  2329. class="whiteBIcon"
  2330. @click="addTools(5, itemTaskIndex, toolIndex)"
  2331. >
  2332. <img
  2333. src="../../../assets/icon/thirdToolList/score.png"
  2334. alt
  2335. />
  2336. <div style="margin: 5px 0">量规评分</div>
  2337. </div>
  2338. <div
  2339. class="check"
  2340. @click="addTools(5, itemTaskIndex, toolIndex)"
  2341. >
  2342. <img
  2343. src="../../../assets/icon/checkNo.png"
  2344. alt
  2345. v-if="itemTool.tool.indexOf(5) == -1"
  2346. />
  2347. <img
  2348. src="../../../assets/icon/checkedIs.png"
  2349. alt
  2350. v-else
  2351. />
  2352. </div>
  2353. </div>-->
  2354. <div class="tool">
  2355. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2356. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2357. <div style="margin: 5px 0">问卷调查</div>
  2358. </div>
  2359. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2360. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  2361. <div class="checkDiv" v-else>
  2362. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2363. </div>
  2364. </div>
  2365. </div>
  2366. <div class="tool">
  2367. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2368. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2369. <div style="margin: 5px 0">选择题</div>
  2370. </div>
  2371. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2372. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  2373. <div class="checkDiv" v-else>
  2374. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2375. </div>
  2376. </div>
  2377. </div>
  2378. <div class="tool">
  2379. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2380. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2381. <div style="margin: 5px 0">问答工具</div>
  2382. </div>
  2383. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2384. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  2385. <div class="checkDiv" v-else>
  2386. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2387. </div>
  2388. </div>
  2389. </div>
  2390. <div class="tool">
  2391. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2392. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2393. <div style="margin: 5px 0">作业提交</div>
  2394. </div>
  2395. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2396. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  2397. <div class="checkDiv" v-else>
  2398. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2399. </div>
  2400. </div>
  2401. </div>
  2402. <div class="tool">
  2403. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  2404. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2405. <div style="margin: 5px 0">批量上传</div>
  2406. </div>
  2407. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2408. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2409. <div class="checkDiv" v-else>
  2410. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2411. </div>
  2412. </div>
  2413. </div>
  2414. <!-- <div class="tool">
  2415. <div
  2416. class="whiteBIcon"
  2417. @click="openTools(itemTaskIndex, 40, toolIndex)"
  2418. >
  2419. <img
  2420. src="../../../assets/icon/thirdToolList/eval.png"
  2421. alt
  2422. />
  2423. <div style="margin: 5px 0">个人评价</div>
  2424. </div>
  2425. <div
  2426. class="check"
  2427. @click="addTools(40, itemTaskIndex, toolIndex)"
  2428. >
  2429. <img
  2430. src="../../../assets/icon/checkNo.png"
  2431. alt
  2432. v-if="itemTool.tool.indexOf(40) == -1"
  2433. />
  2434. <div class="checkDiv" v-else>
  2435. <img
  2436. src="../../../assets/icon/checkedIs.png"
  2437. alt
  2438. /><span>已选择</span>
  2439. </div>
  2440. </div>
  2441. </div> -->
  2442. <div class="tool">
  2443. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2444. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2445. <div style="margin: 5px 0">选择填空</div>
  2446. </div>
  2447. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2448. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  2449. <div class="checkDiv" v-else>
  2450. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2451. </div>
  2452. </div>
  2453. </div>
  2454. <div class="tool">
  2455. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2456. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2457. <div style="margin: 5px 0">连词成句</div>
  2458. </div>
  2459. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2460. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  2461. <div class="checkDiv" v-else>
  2462. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2463. </div>
  2464. </div>
  2465. </div>
  2466. <!-- <div class="tool">
  2467. <div
  2468. class="whiteBIcon"
  2469. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2470. >
  2471. <img
  2472. src="../../../assets/icon/thirdToolList/mp3.png"
  2473. alt
  2474. />
  2475. <div style="margin: 5px 0">上传音频</div>
  2476. </div>
  2477. <div
  2478. class="check"
  2479. @click="addTools(42, itemTaskIndex, toolIndex)"
  2480. >
  2481. <img
  2482. src="../../../assets/icon/checkNo.png"
  2483. alt
  2484. v-if="itemTool.tool.indexOf(42) == -1"
  2485. />
  2486. <img
  2487. src="../../../assets/icon/checkedIs.png"
  2488. alt
  2489. v-else
  2490. />
  2491. </div>
  2492. </div> -->
  2493. </div>
  2494. <div class="toolSort" v-if="itemTool.toolType == 3">
  2495. <div class="tool">
  2496. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  2497. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2498. <div style="margin: 5px 0">训练平台</div>
  2499. </div>
  2500. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2501. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  2502. <div class="checkDiv" v-else>
  2503. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. <div class="tool">
  2508. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  2509. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2510. <div style="margin: 5px 0">编程平台</div>
  2511. </div>
  2512. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2513. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  2514. <div class="checkDiv" v-else>
  2515. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2516. </div>
  2517. </div>
  2518. </div>
  2519. <div class="tool">
  2520. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2521. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2522. <div style="margin: 5px 0">AI体验</div>
  2523. </div>
  2524. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2525. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2526. <div class="checkDiv" v-else>
  2527. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2528. </div>
  2529. </div>
  2530. </div>
  2531. <div class="tool">
  2532. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  2533. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2534. <div style="margin: 5px 0">Python</div>
  2535. </div>
  2536. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2537. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  2538. <div class="checkDiv" v-else>
  2539. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2540. </div>
  2541. </div>
  2542. </div>
  2543. <div class="tool">
  2544. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  2545. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2546. <div style="margin: 5px 0">AI平台</div>
  2547. </div>
  2548. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2549. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  2550. <div class="checkDiv" v-else>
  2551. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2552. </div>
  2553. </div>
  2554. </div>
  2555. <div class="tool">
  2556. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  2557. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2558. <div style="margin: 5px 0">源码编辑</div>
  2559. </div>
  2560. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2561. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  2562. <div class="checkDiv" v-else>
  2563. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2564. </div>
  2565. </div>
  2566. </div>
  2567. <div class="tool">
  2568. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  2569. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2570. <div style="margin: 5px 0">CocoPi</div>
  2571. </div>
  2572. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2573. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  2574. <div class="checkDiv" v-else>
  2575. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2576. </div>
  2577. </div>
  2578. </div>
  2579. <div class="tool">
  2580. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  2581. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2582. <div style="margin: 5px 0">海龟编程</div>
  2583. </div>
  2584. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2585. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  2586. <div class="checkDiv" v-else>
  2587. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2588. </div>
  2589. </div>
  2590. </div>
  2591. </div>
  2592. <div class="toolSort" v-if="itemTool.toolType == 7">
  2593. <div class="tool">
  2594. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2595. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2596. <div style="margin: 5px 0">个人评价</div>
  2597. </div>
  2598. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2599. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2600. <div class="checkDiv" v-else>
  2601. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2602. </div>
  2603. </div>
  2604. </div>
  2605. </div>
  2606. <div class="toolSort" v-if="itemTool.toolType == 5">
  2607. <div class="tool">
  2608. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2609. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  2610. <div style="margin: 5px 0">翻译</div>
  2611. </div>
  2612. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2613. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2614. <div class="checkDiv" v-else>
  2615. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2616. </div>
  2617. </div>
  2618. </div>
  2619. <div class="tool">
  2620. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2621. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  2622. <div style="margin: 5px 0">魔盒识字</div>
  2623. </div>
  2624. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2625. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  2626. <div class="checkDiv" v-else>
  2627. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2628. </div>
  2629. </div>
  2630. </div>
  2631. <div class="tool">
  2632. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  2633. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  2634. <div style="margin: 5px 0">24点</div>
  2635. </div>
  2636. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  2637. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  2638. <div class="checkDiv" v-else>
  2639. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2640. </div>
  2641. </div>
  2642. </div>
  2643. <div class="tool">
  2644. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  2645. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2646. <div style="margin: 5px 0">数学画板</div>
  2647. </div>
  2648. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2649. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2650. <div class="checkDiv" v-else>
  2651. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2652. </div>
  2653. </div>
  2654. </div>
  2655. <div class="tool">
  2656. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2657. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  2658. <div style="margin: 5px 0">GeoGebra</div>
  2659. </div>
  2660. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2661. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2662. <div class="checkDiv" v-else>
  2663. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2664. </div>
  2665. </div>
  2666. </div>
  2667. <div class="tool">
  2668. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  2669. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  2670. <div style="margin: 5px 0">模拟驾驶</div>
  2671. </div>
  2672. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  2673. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  2674. <div class="checkDiv" v-else>
  2675. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2676. </div>
  2677. </div>
  2678. </div>
  2679. <div class="tool">
  2680. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  2681. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  2682. <div style="margin: 5px 0">路径搜索</div>
  2683. </div>
  2684. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  2685. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  2686. <div class="checkDiv" v-else>
  2687. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2688. </div>
  2689. </div>
  2690. </div>
  2691. <div class="tool">
  2692. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  2693. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  2694. <div style="margin: 5px 0">深度学习</div>
  2695. </div>
  2696. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  2697. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  2698. <div class="checkDiv" v-else>
  2699. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2700. </div>
  2701. </div>
  2702. </div>
  2703. <div class="tool">
  2704. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  2705. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  2706. <div style="margin: 5px 0">全历史</div>
  2707. </div>
  2708. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  2709. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  2710. <div class="checkDiv" v-else>
  2711. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2712. </div>
  2713. </div>
  2714. </div>
  2715. </div>
  2716. <div class="toolSort" v-if="itemTool.toolType == 4">
  2717. <div class="tool">
  2718. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  2719. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  2720. <div style="margin: 5px 0">课程设计</div>
  2721. </div>
  2722. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  2723. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  2724. <div class="checkDiv" v-else>
  2725. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2726. </div>
  2727. </div>
  2728. </div>
  2729. <div class="tool">
  2730. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  2731. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  2732. <div style="margin: 5px 0">目标管理</div>
  2733. </div>
  2734. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  2735. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  2736. <div class="checkDiv" v-else>
  2737. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2738. </div>
  2739. </div>
  2740. </div>
  2741. <!-- <div class="tool">
  2742. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2743. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  2744. <div style="margin: 5px 0">汉字宫</div>
  2745. </div>
  2746. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2747. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2748. <div class="checkDiv" v-else>
  2749. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2750. </div>
  2751. </div>
  2752. </div> -->
  2753. </div>
  2754. </div>
  2755. </div>
  2756. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  2757. <div class="addToolImg">
  2758. <img src="../../../assets/icon/add.png" alt />
  2759. </div>
  2760. <div>添加工具</div>
  2761. </div>
  2762. </div>
  2763. </div>
  2764. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2765. unitJson[unitIndex].easy == 4
  2766. " class="toolChoose" style="padding: 0 0 0 30px">
  2767. <div class="tools">
  2768. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  2769. :key="toolIndex">
  2770. <div>
  2771. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2772. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2773. </div>
  2774. <div style="
  2775. display: flex;
  2776. flex-direction: row;
  2777. align-items: baseline;
  2778. flex-wrap: nowrap;
  2779. justify-content: flex-start;
  2780. position: relative;
  2781. ">
  2782. <div style="margin-right: 20px; font-weight: bold">
  2783. 步骤 {{ toolIndex + 1 }} :
  2784. </div>
  2785. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2786. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2787. </div>
  2788. <div style="min-height: 163px">
  2789. <div class="toolSort">
  2790. <div class="tool">
  2791. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2792. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2793. <div style="margin: 5px 0">电子白板</div>
  2794. </div>
  2795. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2796. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2797. <div class="checkDiv" v-else>
  2798. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2799. </div>
  2800. </div>
  2801. </div>
  2802. <div class="tool">
  2803. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2804. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2805. <div style="margin: 5px 0">文档</div>
  2806. </div>
  2807. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2808. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2809. <div class="checkDiv" v-else>
  2810. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2811. </div>
  2812. </div>
  2813. </div>
  2814. <div class="tool">
  2815. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2816. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2817. <div style="margin: 5px 0">思维导图</div>
  2818. </div>
  2819. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2820. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  2821. <div class="checkDiv" v-else>
  2822. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2823. </div>
  2824. </div>
  2825. </div>
  2826. <div class="tool">
  2827. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2828. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2829. <div style="margin: 5px 0">问卷调查</div>
  2830. </div>
  2831. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2832. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  2833. <div class="checkDiv" v-else>
  2834. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2835. </div>
  2836. </div>
  2837. </div>
  2838. <div class="tool">
  2839. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2840. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2841. <div style="margin: 5px 0">选择题</div>
  2842. </div>
  2843. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2844. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  2845. <div class="checkDiv" v-else>
  2846. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2847. </div>
  2848. </div>
  2849. </div>
  2850. <div class="tool">
  2851. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2852. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2853. <div style="margin: 5px 0">问答工具</div>
  2854. </div>
  2855. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2856. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  2857. <div class="checkDiv" v-else>
  2858. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2859. </div>
  2860. </div>
  2861. </div>
  2862. <div class="tool">
  2863. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2864. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2865. <div style="margin: 5px 0">作业提交</div>
  2866. </div>
  2867. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2868. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  2869. <div class="checkDiv" v-else>
  2870. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2871. </div>
  2872. </div>
  2873. </div>
  2874. <div class="tool">
  2875. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2876. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2877. <div style="margin: 5px 0">批量上传</div>
  2878. </div>
  2879. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2880. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2881. <div class="checkDiv" v-else>
  2882. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2883. </div>
  2884. </div>
  2885. </div>
  2886. <div class="tool">
  2887. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2888. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2889. <div style="margin: 5px 0">选择填空</div>
  2890. </div>
  2891. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2892. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  2893. <div class="checkDiv" v-else>
  2894. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2895. </div>
  2896. </div>
  2897. </div>
  2898. <div class="tool">
  2899. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2900. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2901. <div style="margin: 5px 0">连词成句</div>
  2902. </div>
  2903. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2904. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  2905. <div class="checkDiv" v-else>
  2906. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2907. </div>
  2908. </div>
  2909. </div>
  2910. <div class="tool">
  2911. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2912. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2913. <div style="margin: 5px 0">表格</div>
  2914. </div>
  2915. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2916. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  2917. <div class="checkDiv" v-else>
  2918. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2919. </div>
  2920. </div>
  2921. </div>
  2922. </div>
  2923. </div>
  2924. </div>
  2925. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2926. <div class="addToolImg">
  2927. <img src="../../../assets/icon/add.png" alt />
  2928. </div>
  2929. <div>添加工具</div>
  2930. </div>
  2931. </div>
  2932. </div>
  2933. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2934. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2935. " class="toolChoose" style="padding: 0 0 0 30px">
  2936. <div class="tools">
  2937. <div class="leftTools" style="
  2938. width: 95%;
  2939. padding: 0 0 15px 0;
  2940. margin-bottom: 15px;
  2941. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2942. <div style="min-height: 163px">
  2943. <div class="toolSort">
  2944. <div class="tool">
  2945. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2946. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2947. <div style="margin: 5px 0">批量上传</div>
  2948. </div>
  2949. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2950. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2951. <div class="checkDiv" v-else>
  2952. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2953. </div>
  2954. </div>
  2955. </div>
  2956. </div>
  2957. </div>
  2958. </div>
  2959. </div>
  2960. </div>
  2961. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2962. <div class="elist_title">
  2963. <div style="
  2964. display: flex;
  2965. flex-direction: row;
  2966. align-items: center;
  2967. margin-bottom: 20px;
  2968. ">
  2969. <div class="lineTitle">评价设置</div>
  2970. </div>
  2971. </div>
  2972. <div class="mbCss">
  2973. <div class="pjCss">
  2974. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2975. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2976. <span>评价名称:</span>
  2977. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2978. <span>评星等级:</span>
  2979. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  2980. <div class="remove" @click="
  2981. deletEList(unitIndex, itemTaskIndex, eIndex)
  2982. "></div>
  2983. <div class="elist_inptu_text">
  2984. <span>评价描述:</span>
  2985. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2986. </div>
  2987. <div class="elist_inptu_text" v-if="evalua">
  2988. <span>目标:</span>
  2989. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2990. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2991. @change="forceUpdate()">
  2992. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2993. :value="e.name">
  2994. </el-option>
  2995. </el-select> -->
  2996. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2997. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  3002. <div class="addToolImg">
  3003. <img src="../../../assets/icon/add.png" alt />
  3004. </div>
  3005. <div>添加</div>
  3006. </div>
  3007. </div>
  3008. <div v-if="evalua" style="
  3009. border: 1px solid #e5e5e5;
  3010. width: 55%;
  3011. margin-top: 20px;
  3012. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3013. " class="evaCss">
  3014. <div class="e_add_top">
  3015. <div class="e_add_title">
  3016. <span>当前使用目标管理</span>
  3017. <span>{{ eTitle }}</span>
  3018. <img src="../../../assets/line.png" class="cru_line" style="
  3019. width: 125px;
  3020. height: 20px;
  3021. bottom: -10px;
  3022. left: 155px;
  3023. " />
  3024. </div>
  3025. </div>
  3026. <div class="e_add_content" style="width: 100%">
  3027. <div class="e_add_list_pbox" style="width: 100%">
  3028. <div class="e_add_list_pbox_title">
  3029. <span class="type_title">切换模式</span>
  3030. <div class="type_content">
  3031. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  3032. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  3033. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  3034. </div>
  3035. </div>
  3036. <div class="e_add_list_pbox_content">
  3037. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3038. " v-if="typeMode == 1"></Mind>
  3039. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3040. </Sunburst>
  3041. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3042. v-if="typeMode == 3"></SeeBoard>
  3043. </div>
  3044. </div>
  3045. </div>
  3046. </div>
  3047. </div>
  3048. </div>
  3049. <div class="funBlock" style="padding: 0">
  3050. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  3051. <div>折叠</div>
  3052. <div class="arrow">
  3053. <img src="../../../assets/icon/fold.png" alt />
  3054. </div>
  3055. </div>
  3056. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3057. <div>展开</div>
  3058. <div class="arrow">
  3059. <img src="../../../assets/icon/expand.png" alt />
  3060. </div>
  3061. </div>
  3062. </div>
  3063. </div>
  3064. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3065. <div>
  3066. <img src="../../../assets/icon/new/addStage.png" alt />
  3067. <span>添加任务</span>
  3068. </div>
  3069. </div>
  3070. </div>
  3071. </div>
  3072. </div>
  3073. <div class="rightBox" v-if="this.steps == 4">
  3074. <div class="basic_box_success">
  3075. <div class="right_img">
  3076. <img src="../../../assets/icon/right.png" alt />
  3077. </div>
  3078. <div style="font-weight: bold">成功</div>
  3079. <!-- <div>您的课程编号</div>
  3080. <div class="number">{{ number }}</div>-->
  3081. <!-- <div class="success_button">
  3082. <div class="look_course" @click="isNoFinsh">
  3083. 邀请老师协同编辑
  3084. </div>
  3085. <div class="attend_others" @click="goCourse">预览课程</div>
  3086. </div> -->
  3087. </div>
  3088. </div>
  3089. <div class="info_btnBox">
  3090. <button class="info_btn" @click="
  3091. goTo(
  3092. '/course?userid=' +
  3093. userid +
  3094. '&oid=' +
  3095. oid +
  3096. '&org=' +
  3097. org +
  3098. '&role=' +
  3099. role
  3100. )
  3101. ">
  3102. 返回课程
  3103. </button>
  3104. <button class="info_btn" @click="nextSteps" v-if="this.steps == 1">
  3105. 确认上传
  3106. </button>
  3107. </div>
  3108. </div>
  3109. </div>
  3110. </div>
  3111. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3112. class="dialog_diy2 customWidth">
  3113. <div>请复制该链接邀请协同编辑</div>
  3114. <div>http://www.boomyon.com/index-zhang.com</div>
  3115. <span slot="footer" class="dialog-footer">
  3116. <el-button type="primary">复制链接分享</el-button>
  3117. <el-button @click="dialogVisible = false">取消</el-button>
  3118. </span>
  3119. </el-dialog>
  3120. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  3121. :before-close="handleClose" class="dialog_diy2 customWidth">
  3122. <el-form>
  3123. <el-form-item label="文档标题">
  3124. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3125. </el-form-item>
  3126. <div>文档简介</div>
  3127. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3128. </el-form>
  3129. <span slot="footer" class="dialog-footer">
  3130. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3131. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3132. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3133. </span>
  3134. </el-dialog>
  3135. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3136. :before-close="handleClose" class="dialog_diy">
  3137. <el-form>
  3138. <el-form-item label="文档标题">
  3139. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3140. </el-form-item>
  3141. <div>文档内容</div>
  3142. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3143. </el-form>
  3144. <span slot="footer" class="dialog-footer">
  3145. <el-button @click="clearChoose">取 消</el-button>
  3146. <el-button type="primary" @click="wordNext()">确定</el-button>
  3147. </span>
  3148. </el-dialog>
  3149. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3150. :before-close="handleClose" class="dialog_diy">
  3151. <el-form>
  3152. <el-form-item label="文本标题">
  3153. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3154. </el-form-item>
  3155. <div>富文本内容</div>
  3156. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3157. </el-form>
  3158. <span slot="footer" class="dialog-footer">
  3159. <el-button @click="clearAttText">取 消</el-button>
  3160. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3161. </span>
  3162. </el-dialog>
  3163. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3164. :before-close="handleClose" class="dialog_diy lineCss">
  3165. <el-form>
  3166. <el-form-item label="标题" :label-width="formLabelWidth">
  3167. <span>
  3168. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3169. </span>
  3170. </el-form-item>
  3171. <el-form-item label="链接" :label-width="formLabelWidth">
  3172. <span>
  3173. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3174. </span>
  3175. </el-form-item>
  3176. </el-form>
  3177. <span slot="footer" class="dialog-footer">
  3178. <el-button @click="clearLine">取 消</el-button>
  3179. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3180. </span>
  3181. </el-dialog>
  3182. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="100%"
  3183. :before-close="handleClose" class="dialog_diy source_diy">
  3184. <div>
  3185. <sourceDialog :sourceData="sourceData"></sourceDialog>
  3186. </div>
  3187. <span slot="footer" class="dialog-footer">
  3188. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3189. <el-button type="primary" @click="addSource">确定</el-button>
  3190. </span>
  3191. </el-dialog>
  3192. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3193. :before-close="handleClose" class="addNewPP customWidth">
  3194. <div class="people">
  3195. <div class="people_top">
  3196. <div class="people_nav">选择成员</div>
  3197. <div class="people_top_right">
  3198. <div class="people_search">
  3199. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3200. <div class="search_img" @click="searchStudent">
  3201. <img src="../../../assets/icon/search.png" alt />
  3202. </div>
  3203. </div>
  3204. </div>
  3205. </div>
  3206. <el-checkbox-group v-model="checkboxList" class="people_name">
  3207. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3208. "暂无学生可选" }}</el-checkbox>
  3209. </el-checkbox-group>
  3210. </div>
  3211. <span slot="footer" class="dialog-footer">
  3212. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3213. <el-button type="primary" @click="isAddPP">确定</el-button>
  3214. </span>
  3215. </el-dialog>
  3216. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  3217. :before-close="handleClose" class="addNewPP">
  3218. <div class="people" style="height: 300px">
  3219. <div class="people_top">
  3220. <div class="people_top_right">
  3221. <div class="people_search">
  3222. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  3223. <!-- @click="getClass()"
  3224. @keyup.enter.native="getClass()"
  3225. -->
  3226. <div class="search_img">
  3227. <img src="../../../assets/icon/search.png" alt />
  3228. </div>
  3229. </div>
  3230. </div>
  3231. <div class="people_nav">选择班级</div>
  3232. </div>
  3233. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange">
  3234. <div v-for="item in grade2" :key="item.id" class="p_box">
  3235. <el-checkbox :label="item.id">
  3236. {{ item.name }}
  3237. </el-checkbox>
  3238. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  3239. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  3240. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  3241. @click="OpenInviteD(item.id)">随机码设置</div>
  3242. <img src="../../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  3243. </div>
  3244. </el-checkbox-group>
  3245. </div>
  3246. <span slot="footer" class="dialog-footer">
  3247. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3248. <el-button type="primary" @click="isAddClass">确定</el-button>
  3249. </span>
  3250. </el-dialog>
  3251. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3252. :before-close="handleClose" class="addNewPP customWidth">
  3253. <div class="people">
  3254. <div class="people_top">
  3255. <div class="people_top_right">
  3256. <div class="people_search">
  3257. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3258. <div class="search_img" @click="getTeacher">
  3259. <img src="../../../assets/icon/search.png" alt />
  3260. </div>
  3261. </div>
  3262. </div>
  3263. <div class="people_nav">选择成员</div>
  3264. </div>
  3265. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  3266. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3267. <div class="t_j_box">
  3268. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3269. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3270. </el-tooltip>
  3271. <el-tooltip placement="top" :content="item.username">
  3272. <span>{{ item.username }}</span>
  3273. </el-tooltip>
  3274. <el-tooltip placement="top" :content="item.school">
  3275. <span>{{ item.school }}</span>
  3276. </el-tooltip>
  3277. </div>
  3278. </el-checkbox>
  3279. </el-checkbox-group>
  3280. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3281. </div>
  3282. <span slot="footer" class="dialog-footer">
  3283. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3284. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3285. </span>
  3286. </el-dialog>
  3287. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  3288. :before-close="handleClose" class="dialog_diy">
  3289. <div>
  3290. <div class="a_add_title" style="
  3291. display: flex;
  3292. flex-direction: row;
  3293. align-items: center;
  3294. justify-content: center;
  3295. ">
  3296. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3297. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3298. </div>
  3299. <div class="a_addBox">
  3300. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  3301. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3302. <div class="a_add_checkType">
  3303. <span :class="{
  3304. active:
  3305. askJson.askJson[index1].type == '1' ||
  3306. !askJson.askJson[index1].type,
  3307. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3308. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3309. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3310. </div>
  3311. <div class="a_add_head">
  3312. <div>
  3313. {{ index1 + 1 + "、" }}
  3314. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  3315. </el-input>
  3316. </div>
  3317. <div class="a_add_head_div">
  3318. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  3319. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3320. </el-button>
  3321. </div>
  3322. </div>
  3323. <div class="a_add_body">
  3324. <div class="a_add_input">
  3325. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  3326. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  3327. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3328. </div>
  3329. <div class="a_add_body_div">
  3330. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3331. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3332. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3333. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3334. </el-button>
  3335. </div>
  3336. </div>
  3337. </div>
  3338. </div>
  3339. </div>
  3340. <span slot="footer" class="dialog-footer">
  3341. <el-button @click="dialogVisible5 = false">取 消</el-button>
  3342. <el-button type="primary" @click="addAsk">确 定</el-button>
  3343. </span>
  3344. </el-dialog>
  3345. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  3346. :before-close="handleClose" class="dialog_diy">
  3347. <div>
  3348. <!-- <div class="a_add_title" style="
  3349. display: flex;
  3350. flex-direction: row;
  3351. align-items: center;
  3352. justify-content: center;
  3353. ">
  3354. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3355. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3356. </div> -->
  3357. <div class="a_addBox">
  3358. <div style="font-size: 16px; color: #c7c7c7">
  3359. 请输入题目内容
  3360. <el-button type="primary" size="small" @click="pasteOption" style="margin-left: 10px">智能粘贴</el-button>
  3361. </div>
  3362. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3363. <div class="a_add_checkType">
  3364. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  3365. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  3366. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  3367. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  3368. </div>
  3369. <div class="a_add_head">
  3370. <div class="timuUpImg">
  3371. <div>
  3372. {{ index1 + 1 + "、" }}
  3373. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle"
  3374. placeholder="请输入题目...">
  3375. </el-input>
  3376. </div>
  3377. <div class="xzUpImg" @click.stop="addImg($event)">
  3378. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3379. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  3380. </div>
  3381. </div>
  3382. <div class="a_add_head_div">
  3383. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  3384. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  3385. </el-button>
  3386. </div>
  3387. </div>
  3388. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3389. testJson.testJson[index1].timuList.length
  3390. ">
  3391. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3392. @click.stop="previewImg(timg.src)">
  3393. <img :src="timg.src" alt="" />
  3394. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  3395. <img src="../../../assets/icon/delete.png" alt="" />
  3396. </div>
  3397. </div>
  3398. </div>
  3399. <div class="a_add_body">
  3400. <div class="a_add_input a_add_input_choice">
  3401. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  3402. <div class="radioBox">
  3403. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3404. .testItem" :key="checkIndex" :label="checkIndex">
  3405. <div style="margin-right: 10px">
  3406. 选项{{ checkIndex + 1 }}
  3407. </div>
  3408. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3409. testJson.testJson[index1].checkList[checkIndex]
  3410. .imgType &&
  3411. testJson.testJson[index1].checkList[checkIndex]
  3412. .imgType == 1
  3413. ">
  3414. <div class="inImg" @click.stop="
  3415. previewImg(
  3416. testJson.testJson[index1].checkList[checkIndex]
  3417. .src
  3418. )
  3419. ">
  3420. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3421. .src
  3422. " lazy />
  3423. <!-- <img :src="
  3424. testJson.testJson[index1].checkList[checkIndex]
  3425. .src
  3426. " alt="" /> -->
  3427. </div>
  3428. </div>
  3429. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3430. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  3431. <div class="xzUpImg" @click.stop="addImg($event)">
  3432. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3433. <input type="file" accept="image/*" style="display: none"
  3434. @change="beforeUploadTi($event, index1, checkIndex)" />
  3435. </div>
  3436. </el-radio>
  3437. </div>
  3438. </el-radio-group>
  3439. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  3440. v-if="testJson.testJson[index1].type == '2'">
  3441. <div class="radioBox">
  3442. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3443. .testItem" :key="checkIndex1" :label="checkIndex1">
  3444. <div style="margin-right: 10px">
  3445. 选项{{ checkIndex1 + 1 }}
  3446. </div>
  3447. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3448. testJson.testJson[index1].checkList[checkIndex1]
  3449. .imgType &&
  3450. testJson.testJson[index1].checkList[checkIndex1]
  3451. .imgType == 1
  3452. ">
  3453. <div class="inImg" @click.stop="
  3454. previewImg(
  3455. testJson.testJson[index1].checkList[checkIndex1]
  3456. .src
  3457. )
  3458. ">
  3459. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3460. .src
  3461. " lazy />
  3462. <!-- <img :src="
  3463. testJson.testJson[index1].checkList[checkIndex1]
  3464. .src
  3465. " alt="" /> -->
  3466. </div>
  3467. </div>
  3468. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3469. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  3470. <div class="xzUpImg" @click.stop="addImg($event)">
  3471. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3472. <input type="file" accept="image/*" style="display: none"
  3473. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3474. </div>
  3475. </el-checkbox>
  3476. </div>
  3477. </el-checkbox-group>
  3478. </div>
  3479. <div class="a_add_body_div" style="margin-bottom: 3px">
  3480. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3481. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3482. v-if="testJson.testJson[index1].testItem != 1">删除
  3483. </el-button>
  3484. </div>
  3485. </div>
  3486. </div>
  3487. </div>
  3488. </div>
  3489. <span slot="footer" class="dialog-footer">
  3490. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  3491. <el-button type="primary" @click="addTest">确 定</el-button>
  3492. </span>
  3493. </el-dialog>
  3494. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3495. :before-close="handleClose" class="dialog_diy addToolsDia">
  3496. <div class="toolChoose" style="padding: 0 0 0 30px">
  3497. <div class="tools">
  3498. <div class="leftTools" style="
  3499. width: 95%;
  3500. padding: 0 0 15px 0;
  3501. margin: 15px 0;
  3502. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3503. <div style="
  3504. display: flex;
  3505. flex-direction: row;
  3506. align-items: baseline;
  3507. flex-wrap: nowrap;
  3508. justify-content: flex-start;
  3509. position: relative;
  3510. ">
  3511. <div class="chooseWho">
  3512. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3513. 互动类
  3514. </div>
  3515. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3516. 思维类
  3517. </div>
  3518. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3519. 评价类
  3520. </div>
  3521. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3522. 其他
  3523. </div>
  3524. </div>
  3525. </div>
  3526. <div style="min-height: 163px">
  3527. <div class="toolSort" v-if="chapToolsType == 0">
  3528. <div class="tool">
  3529. <div class="whiteBIcon" @click="chapAddTools(8)">
  3530. <img src="../../../assets/icon/secondToolList/library.png" alt />
  3531. <div style="margin: 5px 0">素材库</div>
  3532. </div>
  3533. <div class="check" @click="chapAddTools(8)">
  3534. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3535. <div class="checkDiv" v-else>
  3536. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3537. </div>
  3538. </div>
  3539. </div>
  3540. </div>
  3541. <div class="toolSort" v-if="chapToolsType == 1">
  3542. <div class="tool">
  3543. <div class="whiteBIcon" @click="chapAddTools(7)">
  3544. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  3545. <div style="margin: 5px 0">思维网格</div>
  3546. </div>
  3547. <div class="check" @click="chapAddTools(7)">
  3548. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3549. <div class="checkDiv" v-else>
  3550. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3551. </div>
  3552. </div>
  3553. </div>
  3554. <div class="tool">
  3555. <div class="whiteBIcon" @click="chapAddTools(1)">
  3556. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3557. <div style="margin: 5px 0">电子白板</div>
  3558. </div>
  3559. <div class="check" @click="chapAddTools(1)">
  3560. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3561. <div class="checkDiv" v-else>
  3562. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3563. </div>
  3564. </div>
  3565. </div>
  3566. <div class="tool">
  3567. <div class="whiteBIcon" @click="chapAddTools(2)">
  3568. <img src="../../../assets/icon/secondToolList/note.png" alt />
  3569. <div style="margin: 5px 0">便签</div>
  3570. </div>
  3571. <div class="check" @click="chapAddTools(2)">
  3572. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3573. <div class="checkDiv" v-else>
  3574. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3575. </div>
  3576. </div>
  3577. </div>
  3578. <div class="tool">
  3579. <div class="whiteBIcon" @click="chapAddTools(6)">
  3580. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  3581. <div style="margin: 5px 0">协同文档</div>
  3582. </div>
  3583. <div class="check" @click="chapAddTools(6)">
  3584. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  3585. <div class="checkDiv" v-else>
  3586. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3587. </div>
  3588. </div>
  3589. </div>
  3590. <div class="tool">
  3591. <div class="whiteBIcon" @click="chapAddTools(3)">
  3592. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3593. <div style="margin: 5px 0">思维导图</div>
  3594. </div>
  3595. <div class="check" @click="chapAddTools(3)">
  3596. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  3597. <div class="checkDiv" v-else>
  3598. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3599. </div>
  3600. </div>
  3601. </div>
  3602. <div class="tool">
  3603. <div class="whiteBIcon" @click="chapAddTools(31)">
  3604. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3605. <div style="margin: 5px 0">数学画板</div>
  3606. </div>
  3607. <div class="check" @click="chapAddTools(31)">
  3608. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  3609. <div class="checkDiv" v-else>
  3610. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3611. </div>
  3612. </div>
  3613. </div>
  3614. </div>
  3615. <div class="toolSort" v-if="chapToolsType == 2">
  3616. <div class="tool">
  3617. <div class="whiteBIcon" @click="chapAddTools(5)">
  3618. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  3619. <div style="margin: 5px 0">量规评分</div>
  3620. </div>
  3621. <div class="check" @click="chapAddTools(5)">
  3622. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  3623. <div class="checkDiv" v-else>
  3624. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3625. </div>
  3626. </div>
  3627. </div>
  3628. <div class="tool">
  3629. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  3630. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3631. <div style="margin: 5px 0">问卷调查</div>
  3632. </div>
  3633. <div class="check" @click="chapAddTools(4)">
  3634. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  3635. <div class="checkDiv" v-else>
  3636. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3637. </div>
  3638. </div>
  3639. </div>
  3640. </div>
  3641. </div>
  3642. <div>
  3643. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  3644. v-model="itemTools.toolDetail" />
  3645. </div>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. <span slot="footer" class="dialog-footer">
  3650. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3651. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3652. </span>
  3653. </el-dialog>
  3654. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3655. :before-close="handleClose" class="dialog_diy">
  3656. <div>
  3657. <div class="a_add_title" style="
  3658. display: flex;
  3659. flex-direction: column;
  3660. align-items: flex-start;
  3661. justify-content: center;
  3662. ">
  3663. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3664. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  3665. </div>
  3666. </div>
  3667. <span slot="footer" class="dialog-footer">
  3668. <el-button @click="dialogVisible8 = false">取 消</el-button>
  3669. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3670. </span>
  3671. </el-dialog>
  3672. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3673. :before-close="handleClose" class="dialog_diy">
  3674. <div>
  3675. <div class="a_add_title" style="
  3676. display: flex;
  3677. flex-direction: column;
  3678. align-items: flex-start;
  3679. justify-content: center;
  3680. ">
  3681. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3682. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3683. </div>
  3684. </div>
  3685. <span slot="footer" class="dialog-footer">
  3686. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3687. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3688. </span>
  3689. </el-dialog>
  3690. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  3691. :before-close="handleClose" class="dialog_diy">
  3692. <div>
  3693. <div class="fileCss" style="padding-top: 20px">
  3694. <div>
  3695. <button class="info_btn" @click="addImg($event)">
  3696. 选择本地文件
  3697. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3698. </button>
  3699. </div>
  3700. <div>
  3701. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  3702. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3703. <img :src="cover[0].url" alt="" />
  3704. <div class="deletePic" @click="deleteSysPic">
  3705. <img src="../../../assets/icon/delete.png" alt="" />
  3706. </div>
  3707. </div>
  3708. </div>
  3709. </div>
  3710. <div class="fileCss">
  3711. <div>选择本地文件</div>
  3712. <div>选择系统文件</div>
  3713. </div>
  3714. </div>
  3715. <span slot="footer" class="dialog-footer">
  3716. <el-button @click="choosePicVisible = false">取 消</el-button>
  3717. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3718. </span>
  3719. </el-dialog>
  3720. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3721. :before-close="handleClose" class="dialog_diy">
  3722. <div class="cru_selectBox" style="margin: 0">
  3723. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3724. 绘画
  3725. </div>
  3726. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3727. 科技
  3728. </div>
  3729. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3730. 人文
  3731. </div>
  3732. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3733. 艺术
  3734. </div>
  3735. </div>
  3736. <div class="sysPicBox">
  3737. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3738. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3739. </div>
  3740. </div>
  3741. <span slot="footer" class="dialog-footer">
  3742. <el-button @click="sysPicVisible = false">取 消</el-button>
  3743. <el-button type="primary">确 定</el-button>
  3744. </span>
  3745. </el-dialog>
  3746. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3747. :before-close="handleClose" class="dialog_diy dialog_diy3">
  3748. <div v-if="selectJson">
  3749. <div class="select_box1" v-if="selectSteps == 1">
  3750. <div class="select_box1_img">
  3751. <div class="select_box1_title">
  3752. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  3753. </div>
  3754. <div class="select_box1_add_img">
  3755. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3756. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3757. <img src="../../../assets/icon/addPoster.png" alt="" />
  3758. </div>
  3759. <div class="isSysPic" v-else>
  3760. <img :src="selectJson.url" alt="" />
  3761. <div class="deletePic" @click="deleteSelectPic">
  3762. <img src="../../../assets/icon/delete.png" alt="" />
  3763. </div>
  3764. </div>
  3765. </div>
  3766. </div>
  3767. <div class="select_box1_select">
  3768. <div class="select_box1_title">
  3769. <span>添加选项</span><span>提示:请输入题目选项</span>
  3770. </div>
  3771. <div class="select_box1_select_box">
  3772. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3773. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  3774. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3775. <div class="select_box1_select_box_add">
  3776. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3777. 添加</el-button>
  3778. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3779. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3780. </div>
  3781. </div>
  3782. </div>
  3783. </div>
  3784. <div v-if="selectSteps == 2">
  3785. <div class="select_box2">
  3786. <div class="select_box2_title">设置答案</div>
  3787. <div class="select_box2_box">
  3788. <div class="select_box2_img">
  3789. <img :src="selectJson.url" alt="" />
  3790. </div>
  3791. <div class="select_box2_answer">
  3792. <div class="select_answer_title">根据题目选择对应答案</div>
  3793. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3794. <span>{{ checkIndex + 1 }}、</span>
  3795. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3796. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3797. </el-option>
  3798. </el-select>
  3799. </div>
  3800. </div>
  3801. </div>
  3802. </div>
  3803. </div>
  3804. </div>
  3805. <span slot="footer" class="dialog-footer">
  3806. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3807. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3808. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3809. </span>
  3810. </el-dialog>
  3811. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3812. :before-close="handleClose" class="dialog_diy">
  3813. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3814. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3815. <div class="pjCss" style="width: 100%">
  3816. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3817. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3818. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3819. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  3820. <div class="remove" @click="deletRateList(eIndex)"></div>
  3821. <div style="width: 100%; display: flex">
  3822. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3823. <el-rate v-model="eItem.score" disabled></el-rate>
  3824. </div>
  3825. <div class="elist_inptu_text" style="align-items: flex-start">
  3826. <span style="min-width: 100px; text-align: right">描述:</span>
  3827. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  3828. </div>
  3829. </div>
  3830. </div>
  3831. <div class="addToolFun" @click="addRateList()">
  3832. <div class="addToolImg">
  3833. <img src="../../../assets/icon/add.png" alt />
  3834. </div>
  3835. <div>添加</div>
  3836. </div>
  3837. </div>
  3838. </div>
  3839. <span slot="footer" class="dialog-footer">
  3840. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3841. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3842. </span>
  3843. </el-dialog>
  3844. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3845. :before-close="handleClose" class="dialog_diy dialog_diy3">
  3846. <div>
  3847. <div class="sentenBox">
  3848. <div class="addSen" @click="addSt">添加题目</div>
  3849. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  3850. <div class="sentenTopBox">
  3851. <div class="sentenTop">
  3852. <div>题目设置</div>
  3853. <div>
  3854. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  3855. </div>
  3856. <div @click="addSen(stIndex)">添加</div>
  3857. </div>
  3858. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3859. </div>
  3860. <div class="cardList">
  3861. <div v-if="st.addSentence.length > 0" class="cardBox">
  3862. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3863. @click="setRightAnswer(s, stIndex, sIndex)">
  3864. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3865. <div>{{ s }}</div>
  3866. </el-tooltip>
  3867. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3868. <img src="../../../assets/icon/delete.png" alt="" />
  3869. </div>
  3870. </div>
  3871. </div>
  3872. <div class="card">
  3873. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  3874. </div>
  3875. </div>
  3876. <div class="rightCardBox">
  3877. <div>正确顺序</div>
  3878. <div class="rightCardList">
  3879. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3880. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3881. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3882. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3883. <div>{{ r }}</div>
  3884. </el-tooltip>
  3885. </div>
  3886. <div>{{ rIndex + 1 }}</div>
  3887. </div>
  3888. </div>
  3889. <div class="card" v-if="st.rightAnswer.length == 0">
  3890. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  3891. </div>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. </div>
  3896. </div>
  3897. <span slot="footer" class="dialog-footer">
  3898. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  3899. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3900. </span>
  3901. </el-dialog>
  3902. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3903. :before-close="handleClose" class="dialog_diy">
  3904. <el-form>
  3905. <!-- <el-form-item label="文本标题">
  3906. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3907. </el-form-item> -->
  3908. <div>表格内容</div>
  3909. <Table v-model="tableJson.text" @change="change"></Table>
  3910. </el-form>
  3911. <span slot="footer" class="dialog-footer">
  3912. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3913. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3914. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3915. </span>
  3916. </el-dialog>
  3917. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3918. :before-close="handleClose" class="dialog_diy">
  3919. <el-form>
  3920. <!-- <el-form-item label="文本标题">
  3921. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3922. </el-form-item> -->
  3923. <div>文档内容</div>
  3924. <editor-bar v-model="wordJson.text"></editor-bar>
  3925. </el-form>
  3926. <span slot="footer" class="dialog-footer">
  3927. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3928. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3929. </span>
  3930. </el-dialog>
  3931. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3932. :before-close="handleClose" class="dialog_diy">
  3933. <div style="
  3934. width: 100%;
  3935. display: flex;
  3936. flex-direction: row;
  3937. flex-wrap: nowrap;
  3938. align-items: center;
  3939. justify-content: center;
  3940. ">
  3941. <div>班级:</div>
  3942. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3943. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3944. </el-option>
  3945. </el-select>
  3946. </div>
  3947. <span slot="footer" class="dialog-footer">
  3948. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3949. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3950. </span>
  3951. </el-dialog>
  3952. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3953. :before-close="handleClose" class="dialog_diy">
  3954. <div style="
  3955. width: 100%;
  3956. display: flex;
  3957. flex-direction: row;
  3958. flex-wrap: nowrap;
  3959. align-items: center;
  3960. justify-content: center;
  3961. ">
  3962. <div>随机码:</div>
  3963. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3964. </div>
  3965. <span slot="footer" class="dialog-footer">
  3966. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3967. <el-button type="primary" @click="addInvite">确定</el-button>
  3968. </span>
  3969. </el-dialog>
  3970. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="30%"
  3971. :before-close="handleClose" class="dialog_diy">
  3972. <div>
  3973. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3974. </div>
  3975. <span slot="footer" class="dialog-footer">
  3976. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3977. <el-button type="primary" @click="addPreTime">确定</el-button>
  3978. </span>
  3979. </el-dialog>
  3980. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3981. class="dialog_diy">
  3982. <div>
  3983. <div style="
  3984. width: 100%;
  3985. display: flex;
  3986. flex-direction: row;
  3987. flex-wrap: nowrap;
  3988. align-content: center;
  3989. align-items: center;
  3990. justify-content: space-between;
  3991. ">
  3992. <div style="
  3993. display: flex;
  3994. flex-flow: row nowrap;
  3995. align-items: flex-start;
  3996. width: 100%;
  3997. flex-direction: column;
  3998. flex-wrap: nowrap;
  3999. position: relative;
  4000. ">
  4001. <div class="e_box">
  4002. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4003. <div class="e_card_picture">
  4004. <img src="../../../assets/e_picture.png" />
  4005. </div>
  4006. <div class="e_card_name">
  4007. <span>{{ item.title }}</span>
  4008. </div>
  4009. <div class="e_card_btn">
  4010. <span @click="checkEva(item.id, 2)">导入</span>
  4011. </div>
  4012. </div>
  4013. <div class="addEva" @click="openT">
  4014. <img src="../../../assets/icon/addEva.png" alt="" />
  4015. </div>
  4016. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4017. 暂无数据
  4018. </div>
  4019. </div>
  4020. </div>
  4021. </div>
  4022. </div>
  4023. <span slot="footer" class="dialog-footer">
  4024. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4025. </span>
  4026. </el-dialog>
  4027. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4028. :before-close="handleClose" class="dialog_diy">
  4029. <div class="groupBox">
  4030. <div v-if="groupJson.group" class="groupContent">
  4031. <div class="groupTitle">请设置小组数量</div>
  4032. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4033. <span class="groupn">组{{ index + 1 }}名称:</span>
  4034. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4035. <div class="groupBtn">
  4036. <el-button type="primary" size="small" @click="addGroup(index)">
  4037. 添加</el-button>
  4038. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4039. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4040. </div>
  4041. </div>
  4042. </div>
  4043. <div class="groupContent">
  4044. <div class="groupTitle">请设置每组人数数量</div>
  4045. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4046. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4047. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  4048. placeholder="2-10人以内"></el-input-number>
  4049. </div>
  4050. </div>
  4051. <span slot="footer" class="dialog-footer">
  4052. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4053. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4054. </span>
  4055. </el-dialog>
  4056. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4057. </div>
  4058. </template>
  4059. <script>
  4060. import "../../../common/aws-sdk-2.235.1.min.js";
  4061. import $ from "jquery";
  4062. import EditorBar from "../../../components/tools/wangEnduit";
  4063. import Table from "../../../components/tools/table";
  4064. import Mind from "../../tools/jsmind2";
  4065. import Time from "../../tools/time.vue";
  4066. import Sunburst from "../../tools/sunburst";
  4067. import SeeBoard from "../../tools/seeBoard";
  4068. import weilaiData from "../components/weilai.js";
  4069. import sourceDialog from "../teacherSource/dialog.vue";
  4070. import interVideo from "../interVideo/index.vue";
  4071. export default {
  4072. components: {
  4073. EditorBar,
  4074. Mind,
  4075. Time,
  4076. Sunburst,
  4077. SeeBoard,
  4078. Table,
  4079. sourceDialog,
  4080. interVideo,
  4081. },
  4082. data() {
  4083. return {
  4084. checkAll: false,
  4085. chooseType: 1,
  4086. checkedCities: [],
  4087. isIndeterminate: true,
  4088. isSysPic: false,
  4089. steps: 1,
  4090. nbOrder: 0,
  4091. courseId: "",
  4092. chapToolsType: 0,
  4093. chapTools: [
  4094. {
  4095. tools: [],
  4096. toolDetail: "",
  4097. },
  4098. ],
  4099. line: "",
  4100. lineTitle: "",
  4101. sysPic: [],
  4102. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4103. isPushTitleList: [],
  4104. lineCount: 0,
  4105. lineType: 0,
  4106. chapCount: 0,
  4107. courseName: "",
  4108. isTeacherSee: true,
  4109. courseText: "",
  4110. preTime: 0,
  4111. formLabelWidth: "100px",
  4112. choosePicVisible: false,
  4113. sysPicVisible: false,
  4114. uploadLoading1: false,
  4115. noneBtnImg: false,
  4116. updateBoolean2: false,
  4117. unitIndex: 0,
  4118. taskCount: 0,
  4119. dialogVisible: false,
  4120. dialogVisible1: false,
  4121. dialogVisible2: false,
  4122. dialogVisible3: false,
  4123. dialogVisible4: false,
  4124. dialogVisible5: false,
  4125. dialogVisible6: false,
  4126. dialogVisible7: false,
  4127. dialogVisible8: false,
  4128. dialogVisible9: false,
  4129. dialogVisibleClass: false,
  4130. dialogVisibleMember: false,
  4131. dialogVisibleMp3: false,
  4132. dialogVisibleSelect: false,
  4133. dialogVisibleSentence: false,
  4134. dialogVisibleRate: false,
  4135. dialogVisibleChoice: false,
  4136. dialogVisiblemb: false,
  4137. dialogVisibleInvite: false,
  4138. dialogVisibleSource: false,
  4139. dialogVisibleVideo: false,
  4140. isClickColor: 0,
  4141. publicTool: 0,
  4142. searchPeople: "",
  4143. searchTN: "",
  4144. userid: this.$route.query.userid,
  4145. oid: this.$route.query.oid,
  4146. org: this.$route.query.org,
  4147. role: this.$route.query.role,
  4148. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4149. dialogVisibleTable: false,
  4150. dialogVisibleWord: false,
  4151. tableJson: { text: "" },
  4152. wordJson: { text: "" },
  4153. dialogVisibleMoreUpload: false,
  4154. dialogVisiblePreTime: false,
  4155. uploadJson: [],
  4156. classJuri: [],
  4157. cover: [], //课程封面
  4158. myWord: [],
  4159. evaJuri: [],
  4160. evalua: "",
  4161. targetArray: [],
  4162. eTitle: "",
  4163. eJson: {},
  4164. fid: "", //一级
  4165. sid: "", //二级
  4166. tid: "", //二级
  4167. typeMode: 1,
  4168. eJSONNum: 0,
  4169. data: {
  4170. meta: {
  4171. name: "example",
  4172. author: "dd@163.com",
  4173. version: "0.2",
  4174. },
  4175. format: "node_array",
  4176. data: [{ id: "root", isroot: true, topic: "" }],
  4177. },
  4178. askJson: {
  4179. askCount: 1,
  4180. askTitle: "",
  4181. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4182. },
  4183. testJson: {},
  4184. selectJson: {},
  4185. rateJson: [],
  4186. unitJson2: [],
  4187. unitJson: [
  4188. {
  4189. dyName: "", //单元标题
  4190. chapterInfo: [
  4191. {
  4192. isread: false,
  4193. chapterid: this.guid(),
  4194. title: "",
  4195. courseName: "",
  4196. taskJson: [
  4197. {
  4198. task: "",
  4199. taskDetail: "",
  4200. chapterData: [],
  4201. toolChoose: [
  4202. {
  4203. tool: [],
  4204. toolDetail: "",
  4205. toolType: 1,
  4206. askCount: 1,
  4207. askTitle: "",
  4208. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4209. },
  4210. ],
  4211. toolText: "",
  4212. isShowTools: false,
  4213. askCount: 1,
  4214. isFold: 0,
  4215. askTitle: "",
  4216. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4217. checkJson: [{ checkCount: [], checkPerent: [] }],
  4218. homeworkList: [],
  4219. },
  4220. ],
  4221. itemCount: 1,
  4222. fileList1: [],
  4223. video: [],
  4224. testData: [],
  4225. pData: [],
  4226. templateArray: [],
  4227. },
  4228. ],
  4229. },
  4230. ],
  4231. studentJuri: [],
  4232. teacherJuri: [],
  4233. checkboxList: [],
  4234. checkboxList2: [],
  4235. checkboxList3: [],
  4236. classSearch: "",
  4237. number: "",
  4238. tTitle: "",
  4239. tdetail: "",
  4240. templateC: {},
  4241. AttText: {},
  4242. AttTextType: 0,
  4243. AttTextIndex: 0,
  4244. cTemplate: "",
  4245. CourseType: [],
  4246. CourseType2: [],
  4247. CourseTypeJson: {},
  4248. courseTypeId: [],
  4249. courseTypeSon: [],
  4250. clearArray: [],
  4251. pTypeCheck: [],
  4252. pTypeCheckName: [],
  4253. loading: false,
  4254. toolType: 1,
  4255. inputShow: true,
  4256. inputShow2: true,
  4257. toolIndex: 0,
  4258. cidType: 0,
  4259. answerQ: "",
  4260. grade: [],
  4261. grade2: [],
  4262. courseUserid: "",
  4263. timer: null,
  4264. timer2: null,
  4265. checkId: "",
  4266. isDelete: 1,
  4267. addindex: 0,
  4268. selectSteps: 1,
  4269. groupJson: {},
  4270. dialogVisibleGroup: false,
  4271. rightBoxHeight: 0,
  4272. ManAarray: [],
  4273. checkBoolean: false,
  4274. inviteCode: [],
  4275. inviteId: "",
  4276. icode: "",
  4277. easyArray: [2, 4],
  4278. sourceData: {},
  4279. videoJson: {},
  4280. };
  4281. },
  4282. computed: {
  4283. // rightBoxHeight: function () {
  4284. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4285. // },
  4286. offsetLetfPx: function () {
  4287. //addnum可以直接在模板语法里面用,相当于data内的值
  4288. return (
  4289. $(".cru_select")[this.unitIndex] &&
  4290. $(".cru_select")[this.unitIndex].offsetLeft
  4291. );
  4292. },
  4293. getMan2() {
  4294. return function (people) {
  4295. let _people = people;
  4296. let _people2 = "";
  4297. if (this.ManAarray.length) {
  4298. for (var i = 0; i < this.ManAarray.length; i++) {
  4299. if (this.ManAarray[i].userid == people) {
  4300. _people2 = this.ManAarray[i].name;
  4301. break;
  4302. }
  4303. }
  4304. }
  4305. if (people == this.courseUserid) {
  4306. return "";
  4307. }
  4308. return this.ManAarray.length ? _people2 : "";
  4309. };
  4310. },
  4311. isInvite() {
  4312. return function (cid) {
  4313. let array = [];
  4314. for (var i = 0; i < this.inviteCode.length; i++) {
  4315. array.push(this.inviteCode[i].cid);
  4316. }
  4317. return array.indexOf(cid) != -1;
  4318. };
  4319. },
  4320. getInviteCodeC() {
  4321. return function (cid) {
  4322. let array = [];
  4323. for (var i = 0; i < this.inviteCode.length; i++) {
  4324. array.push(this.inviteCode[i].cid);
  4325. }
  4326. return this.inviteCode[array.indexOf(cid)].ic;
  4327. };
  4328. },
  4329. getClassC() {
  4330. return function (c) {
  4331. let _c2 = "";
  4332. if (this.grade.length) {
  4333. for (var i = 0; i < this.grade.length; i++) {
  4334. if (this.grade[i].id == c) {
  4335. _c2 = this.grade[i].name;
  4336. break;
  4337. }
  4338. }
  4339. }
  4340. return this.grade.length ? _c2 : "";
  4341. };
  4342. },
  4343. },
  4344. watch: {
  4345. unitIndex(newValue, oldValue) {
  4346. if (this.isDelete == 2) {
  4347. this.isDelete = 1;
  4348. return;
  4349. }
  4350. if (this.cid != "") {
  4351. let _unitIndex = oldValue;
  4352. if (
  4353. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4354. JSON.stringify(this.unitJson[_unitIndex])
  4355. ) {
  4356. this.$refs.rightboxR.scrollTop = 0;
  4357. return;
  4358. }
  4359. let cPan = 1;
  4360. for (
  4361. var j = 0;
  4362. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4363. j++
  4364. ) {
  4365. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4366. j
  4367. ].proVisible = false;
  4368. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4369. j
  4370. ].proVisible2 = false;
  4371. if (
  4372. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4373. .length > 1
  4374. ) {
  4375. for (
  4376. var z = 0;
  4377. z <
  4378. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4379. .length;
  4380. z++
  4381. ) {
  4382. if (
  4383. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4384. .toolChoose[z].tool.length
  4385. ) {
  4386. this.$message.error("请把工具添加完整");
  4387. cPan = 2;
  4388. break;
  4389. }
  4390. }
  4391. }
  4392. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4393. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4394. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4395. (ele) => {
  4396. return ele.value != "";
  4397. }
  4398. );
  4399. }
  4400. }
  4401. if (cPan == 2) {
  4402. this.unitIndex = oldValue;
  4403. return;
  4404. }
  4405. for (var i = 0; i < this.unitJson.length; i++) {
  4406. if (this.addindex != i) {
  4407. delete this.unitJson[i].isUpdate;
  4408. }
  4409. }
  4410. this.$refs.rightboxR.scrollTop = 0;
  4411. this.addindex = -1;
  4412. let params = [
  4413. {
  4414. cid: this.cid,
  4415. chapters: JSON.stringify(this.unitJson),
  4416. uid: this.userid,
  4417. unitIndex: _unitIndex,
  4418. },
  4419. ];
  4420. this.ajax
  4421. .post(this.$store.state.api + "updateWorkNew4", params)
  4422. .then((res) => {
  4423. // this.$message({
  4424. // message: "修改成功",
  4425. // type: "success",
  4426. // });
  4427. // this.courseId = this.cid;
  4428. })
  4429. .catch((err) => {
  4430. this.$message.error("网络不佳");
  4431. console.error(err);
  4432. });
  4433. }
  4434. },
  4435. steps(newValue) {
  4436. if (newValue == 4) {
  4437. this.goTo(
  4438. "/course?userid=" +
  4439. this.userid +
  4440. "&oid=" +
  4441. this.oid +
  4442. "&org=" +
  4443. this.org +
  4444. "&role=" +
  4445. this.role
  4446. );
  4447. }
  4448. },
  4449. },
  4450. methods: {
  4451. setMan() {
  4452. // let teacherJuri = this.teacherJuri2;
  4453. this.ManAarray = [];
  4454. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4455. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  4456. _user.push(this.courseUserid || this.userid);
  4457. }
  4458. let params = {
  4459. uid: _user.join(","),
  4460. };
  4461. this.ajax
  4462. .get(this.$store.state.api + "getAllUserById", params)
  4463. .then((res) => {
  4464. let teacherJuri = res.data[0];
  4465. this.ManAarray = teacherJuri;
  4466. })
  4467. .catch((err) => {
  4468. console.error(err);
  4469. });
  4470. },
  4471. previewImg(url) {
  4472. this.$hevueImgPreview(url);
  4473. },
  4474. scrollChange() {
  4475. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  4476. // document.querySelector('.course_left').scrollHeight
  4477. // document.querySelector('.stepsBottom2').scrollHeight
  4478. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  4479. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  4480. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  4481. let top = $(".rightBox")[0].scrollTop - 300 - stepsBottom2;
  4482. // if (top < client) {
  4483. // $('.stepsBottom2')[0].style.position = 'absolute'
  4484. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  4485. // // $('.stepsBottom2')[0].style.top = client + 'px'
  4486. // } else
  4487. if (top > 0) {
  4488. let top = $(".rightBox")[0].offsetTop;
  4489. $(".stepsBottom2")[0].style.position = "fixed";
  4490. $(".stepsBottom2")[0].style.top = top + "px";
  4491. // $('.stepsBottom2')[0].style.top = top + 'px'
  4492. } else {
  4493. $(".stepsBottom2")[0].style.position = "absolute";
  4494. $(".stepsBottom2")[0].style.top = "0px";
  4495. }
  4496. },
  4497. handleCheckAllChange(val) {
  4498. this.checkedCities = val ? cityOptions : [];
  4499. this.isIndeterminate = false;
  4500. },
  4501. handleCheckedCitiesChange(value) {
  4502. let checkedCount = value.length;
  4503. this.checkAll = checkedCount === this.cities.length;
  4504. this.isIndeterminate =
  4505. checkedCount > 0 && checkedCount < this.cities.length;
  4506. },
  4507. addHw(e) {
  4508. var el = e.currentTarget;
  4509. el.getElementsByTagName("input")[0].click();
  4510. },
  4511. change(val) {
  4512. console.log(val);
  4513. },
  4514. change2(val) {
  4515. console.log(val);
  4516. this.$forceUpdate();
  4517. },
  4518. handleClose(done) {
  4519. done();
  4520. },
  4521. imgChange2(i, j) {
  4522. var _tmp = this.testJson.testJson[i].checkList[j];
  4523. this.noneBtnImg = _tmp.length >= 1;
  4524. },
  4525. imgChange3(i) {
  4526. var _tmp = this.testJson.testJson[i];
  4527. this.noneBtnImg = _tmp.length >= 1;
  4528. },
  4529. imgChange1(file, fileList, type, itemTaskIndex) {
  4530. if (type == 1) {
  4531. var _tmp = this.cover;
  4532. } else if (
  4533. type == 2 ||
  4534. type == 3 ||
  4535. type == 6 ||
  4536. type == 7 ||
  4537. type == 8
  4538. ) {
  4539. var _tmp =
  4540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4541. .chapterData;
  4542. } else if (type == 4) {
  4543. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4544. } else {
  4545. var _tmp =
  4546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4547. .homeworkList;
  4548. }
  4549. this.noneBtnImg = _tmp.length >= 1;
  4550. },
  4551. goTo(path) {
  4552. this.$router.push(path);
  4553. },
  4554. guid() {
  4555. var _num,
  4556. i,
  4557. _guid = "";
  4558. for (i = 0; i < 32; i++) {
  4559. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4560. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4561. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4562. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4563. _guid += "-";
  4564. }
  4565. }
  4566. return _guid;
  4567. },
  4568. lastSteps() {
  4569. this.goTo(
  4570. "/course?userid=" +
  4571. this.userid +
  4572. "&oid=" +
  4573. this.oid +
  4574. "&org=" +
  4575. this.org +
  4576. "&role=" +
  4577. this.role
  4578. );
  4579. },
  4580. nextSteps() {
  4581. if (this.cid == "" || this.cid == undefined) {
  4582. if (this.courseName == "") {
  4583. this.$message.error("请将信息填写完整");
  4584. return;
  4585. } else {
  4586. this.addWork();
  4587. }
  4588. } else {
  4589. if (this.courseName == "") {
  4590. this.$message.error("请将信息填写完整");
  4591. return;
  4592. } else {
  4593. if (this.userid != this.courseUserid && this.role != "1") {
  4594. this.updateWork2();
  4595. } else {
  4596. this.updateWork();
  4597. }
  4598. }
  4599. }
  4600. this.$refs.stepBox.scrollTop = 0;
  4601. },
  4602. unitSet(i) {
  4603. this.unitIndex = i;
  4604. // this.$refs.rightboxR.scrollTop = 0;
  4605. },
  4606. time() {
  4607. if (!this.now) {
  4608. this.now = new Date().getTime();
  4609. return true;
  4610. } else {
  4611. let time = new Date().getTime();
  4612. if (time - this.now > 3000) {
  4613. this.now = time;
  4614. return true;
  4615. } else {
  4616. return false;
  4617. }
  4618. }
  4619. },
  4620. deleteUnit(i) {
  4621. var _this = this;
  4622. if (_this.time()) {
  4623. _this
  4624. .$confirm("确定删除此单元吗?", "提示", {
  4625. confirmButtonText: "确定",
  4626. cancelButtonText: "取消",
  4627. type: "warning",
  4628. })
  4629. .then(() => {
  4630. _this.isDelete = 2;
  4631. // _this.unitIndex = _this.unitIndex - 1;
  4632. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  4633. // _this.$message.success("删除成功");
  4634. })
  4635. .catch(() => {
  4636. return;
  4637. });
  4638. }
  4639. },
  4640. deleteWork(chapid) {
  4641. let params = [
  4642. {
  4643. cid: this.cid,
  4644. chapters: JSON.stringify(this.unitJson),
  4645. uid: this.userid,
  4646. chapid: chapid,
  4647. },
  4648. ];
  4649. this.ajax
  4650. .post(this.$store.state.api + "deleteWork", params)
  4651. .then((res) => {
  4652. this.$message({
  4653. message: "删除成功",
  4654. type: "success",
  4655. });
  4656. this.unitJson.splice(this.unitIndex, 1);
  4657. this.unitIndex = this.unitIndex - 1;
  4658. })
  4659. .catch((err) => {
  4660. this.$message.error("网络不佳");
  4661. console.error(err);
  4662. });
  4663. },
  4664. deleteTool(itemTaskIndex, i) {
  4665. var _this = this;
  4666. if (_this.time()) {
  4667. _this
  4668. .$confirm("确定删除此工具吗?", "提示", {
  4669. confirmButtonText: "确定",
  4670. cancelButtonText: "取消",
  4671. type: "warning",
  4672. })
  4673. .then(() => {
  4674. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4675. itemTaskIndex
  4676. ].toolChoose.splice(i, 1);
  4677. _this.$message.success("删除成功");
  4678. })
  4679. .catch(() => {
  4680. return;
  4681. });
  4682. }
  4683. },
  4684. deleteSentence(i) {
  4685. var _this = this;
  4686. if (_this.time()) {
  4687. _this
  4688. .$confirm("确定删除此题目吗?", "提示", {
  4689. confirmButtonText: "确定",
  4690. cancelButtonText: "取消",
  4691. type: "warning",
  4692. })
  4693. .then(() => {
  4694. _this.sentenceList.splice(i, 1);
  4695. _this.$message.success("删除成功");
  4696. })
  4697. .catch(() => {
  4698. return;
  4699. });
  4700. }
  4701. },
  4702. deleteS(s, i, j) {
  4703. this.sentenceList[i].addSentence.splice(j, 1);
  4704. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  4705. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  4706. this.sentenceList[i].rightAnswer.splice(a, 1);
  4707. }
  4708. },
  4709. openT() {
  4710. window.parent.postMessage({ tools: "25" }, "*");
  4711. },
  4712. deleteTask(i) {
  4713. var _this = this;
  4714. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  4715. _this
  4716. .$confirm("确定删除此任务吗?", "提示", {
  4717. confirmButtonText: "确定",
  4718. cancelButtonText: "取消",
  4719. type: "warning",
  4720. })
  4721. .then(() => {
  4722. if (i == 0) {
  4723. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4724. i + 1
  4725. ].chapterData = JSON.parse(
  4726. JSON.stringify(
  4727. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  4728. .chapterData
  4729. )
  4730. );
  4731. }
  4732. _this.$forceUpdate();
  4733. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  4734. _this.$message.success("删除成功");
  4735. // this.$nextTick(() => {
  4736. // $('.stepsBottom2')[0].style.transition = 'unset'
  4737. // setTimeout(() => {
  4738. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  4739. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  4740. // let top = $('.stepsBottom2')[0].offsetTop - 20
  4741. // if (top > client) {
  4742. // $('.stepsBottom2')[0].style.top = client + 'px'
  4743. // }
  4744. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  4745. // this.$forceUpdate()
  4746. // }, 500)
  4747. // })
  4748. })
  4749. .catch(() => {
  4750. return;
  4751. });
  4752. },
  4753. handlePictureCardPreview(file) {
  4754. this.dialogImageUrl = file.url;
  4755. },
  4756. clean(i, c) {
  4757. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  4758. },
  4759. handle_remove1(file, fileList, type) {
  4760. var _tmp = this.cover;
  4761. // for (var i = 0, len = _tmp.length; i < len; i++) {
  4762. // if (_tmp[i].uid == file.uid) {
  4763. // _tmp.splice(i, 1);
  4764. // break;
  4765. // }
  4766. // this.cover = _tmp;
  4767. // }
  4768. this.cover = [];
  4769. this.noneBtnImg = this.cover.length >= 1;
  4770. this.isSysPic = false;
  4771. this.$forceUpdate();
  4772. },
  4773. addImg(e) {
  4774. var el = e.currentTarget;
  4775. el.getElementsByTagName("input")[0].click();
  4776. e.target.value = "";
  4777. },
  4778. addChaptersTools(i) {
  4779. this.chapTools = [
  4780. {
  4781. tools: [],
  4782. toolDetail: "",
  4783. },
  4784. ];
  4785. this.chapCount = i;
  4786. this.dialogVisible4 = true;
  4787. },
  4788. isNoFinsh() {
  4789. this.$message.warning("功能正在开发中");
  4790. },
  4791. addAttText(i) {
  4792. this.AttText = {
  4793. title: "",
  4794. text: "",
  4795. };
  4796. this.taskCount = i;
  4797. this.AttTextType = 0;
  4798. this.$forceUpdate();
  4799. this.dialogVisible6 = true;
  4800. },
  4801. openLine(i) {
  4802. this.line = "";
  4803. this.lineCount = i;
  4804. this.lineType = 0;
  4805. this.$forceUpdate();
  4806. this.dialogVisible7 = true;
  4807. },
  4808. pasteLine(i) {
  4809. navigator.clipboard
  4810. .readText()
  4811. .then((v) => {
  4812. console.log("获取剪贴板成功:", v);
  4813. const html = v;
  4814. const regex = /src="(.*?)"/g;
  4815. const match = regex.exec(html);
  4816. if (match && match[1]) {
  4817. console.log(match[1]);
  4818. this.$message.success("粘贴成功");
  4819. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4820. i
  4821. ].chapterData.push({
  4822. name: "链接",
  4823. title: "嵌入代码",
  4824. url: match[1],
  4825. type: 8,
  4826. });
  4827. } else {
  4828. // console.log("未找到包含 src 属性的 iframe");
  4829. this.$message.error("没有找到粘贴的链接");
  4830. }
  4831. })
  4832. .catch((v) => {
  4833. console.log("获取剪贴板失败: ", v);
  4834. });
  4835. },
  4836. openSource(i) {
  4837. this.lineCount = i;
  4838. this.sourceData = {};
  4839. this.dialogVisibleSource = true;
  4840. },
  4841. addSource() {
  4842. if (!Object.keys(this.sourceData).length) {
  4843. this.$message.error("请选择要上传的资源");
  4844. return;
  4845. }
  4846. let keys = Object.keys(this.sourceData);
  4847. for (var i = 0; i < keys.length; i++) {
  4848. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4849. this.lineCount
  4850. ].chapterData.push({
  4851. name: "链接",
  4852. title: this.sourceData[keys[i]].name,
  4853. url: this.sourceData[keys[i]].url,
  4854. type: 8,
  4855. });
  4856. }
  4857. this.$forceUpdate();
  4858. this.dialogVisibleSource = false;
  4859. },
  4860. deleteM(i, j) {
  4861. this.testJson.testJson[i].timuList.splice(j, 1);
  4862. },
  4863. beforeUploadTiMu(event, i) {
  4864. const loading = this.openLoading();
  4865. var file = event.target.files[0];
  4866. var credentials = {
  4867. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4868. secretAccessKey: "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",
  4869. }; //秘钥形式的登录上传
  4870. window.AWS.config.update(credentials);
  4871. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4872. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4873. var _this = this;
  4874. if (file) {
  4875. var params = {
  4876. Key:
  4877. file.name.split(".")[0] +
  4878. new Date().getTime() +
  4879. "." +
  4880. file.name.split(".")[file.name.split(".").length - 1],
  4881. ContentType: file.type,
  4882. Body: file,
  4883. "Access-Control-Allow-Credentials": "*",
  4884. ACL: "public-read",
  4885. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4886. var options = {
  4887. partSize: 2048 * 1024 * 1024,
  4888. queueSize: 2,
  4889. leavePartsOnError: true,
  4890. };
  4891. bucket
  4892. .upload(params, options)
  4893. .on("httpUploadProgress", function (evt) {
  4894. //这里可以写进度条
  4895. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4896. })
  4897. .send(function (err, data) {
  4898. loading.close();
  4899. if (err) {
  4900. _this.$message.error("上传失败");
  4901. } else {
  4902. if (_this.testJson.testJson[i].timuList) {
  4903. _this.testJson.testJson[i].timuList.push({
  4904. src: data.Location,
  4905. });
  4906. } else {
  4907. _this.testJson.testJson[i].timuList = [];
  4908. _this.testJson.testJson[i].timuList.push({
  4909. src: data.Location,
  4910. });
  4911. }
  4912. _this.imgChange3(i);
  4913. _this.$forceUpdate();
  4914. }
  4915. });
  4916. }
  4917. },
  4918. beforeUploadTi(event, i, j) {
  4919. const loading = this.openLoading();
  4920. var file = event.target.files[0];
  4921. var credentials = {
  4922. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4923. secretAccessKey: "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",
  4924. }; //秘钥形式的登录上传
  4925. window.AWS.config.update(credentials);
  4926. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4927. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4928. var _this = this;
  4929. if (file) {
  4930. var params = {
  4931. Key:
  4932. file.name.split(".")[0] +
  4933. new Date().getTime() +
  4934. "." +
  4935. file.name.split(".")[file.name.split(".").length - 1],
  4936. ContentType: file.type,
  4937. Body: file,
  4938. "Access-Control-Allow-Credentials": "*",
  4939. ACL: "public-read",
  4940. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4941. var options = {
  4942. partSize: 2048 * 1024 * 1024,
  4943. queueSize: 2,
  4944. leavePartsOnError: true,
  4945. };
  4946. bucket
  4947. .upload(params, options)
  4948. .on("httpUploadProgress", function (evt) {
  4949. //这里可以写进度条
  4950. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4951. })
  4952. .send(function (err, data) {
  4953. loading.close();
  4954. if (err) {
  4955. _this.$message.error("上传失败");
  4956. } else {
  4957. _this.testJson.testJson[i].checkList[j] = {};
  4958. _this.testJson.testJson[i].checkList[j].src = data.Location;
  4959. _this.testJson.testJson[i].checkList[j].imgType = 1;
  4960. _this.imgChange2(i, j);
  4961. _this.$forceUpdate();
  4962. }
  4963. });
  4964. }
  4965. },
  4966. beforeUpload1(event, type) {
  4967. // const loading = this.openLoading();
  4968. var file = event.target.files[0];
  4969. var credentials = {
  4970. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4971. secretAccessKey: "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",
  4972. }; //秘钥形式的登录上传
  4973. window.AWS.config.update(credentials);
  4974. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4975. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4976. var _this = this;
  4977. if (file) {
  4978. var params = {
  4979. Key:
  4980. file.name.split(".")[0] +
  4981. new Date().getTime() +
  4982. "." +
  4983. file.name.split(".")[file.name.split(".").length - 1],
  4984. ContentType: file.type,
  4985. Body: file,
  4986. "Access-Control-Allow-Credentials": "*",
  4987. ACL: "public-read",
  4988. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4989. var options = {
  4990. partSize: 2048 * 1024 * 1024,
  4991. queueSize: 2,
  4992. leavePartsOnError: true,
  4993. };
  4994. bucket
  4995. .upload(params, options)
  4996. .on("httpUploadProgress", function (evt) {
  4997. //这里可以写进度条
  4998. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4999. })
  5000. .send(function (err, data) {
  5001. // loading.close();
  5002. if (err) {
  5003. // var a = _this.$refs.upload1.uploadFiles;
  5004. // a.splice(a.length - 1, a.length);
  5005. _this.$message.error("上传失败");
  5006. } else {
  5007. _this.cover.push({
  5008. name: file.name,
  5009. url: data.Location,
  5010. uid: file.uid,
  5011. });
  5012. _this.imgChange1(null, null, 1, null);
  5013. _this.choosePicVisible = false;
  5014. console.log(data.Location);
  5015. }
  5016. });
  5017. }
  5018. },
  5019. beforeUploadSelect(event, type) {
  5020. // const loading = this.openLoading();
  5021. var file = event.target.files[0];
  5022. var credentials = {
  5023. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5024. secretAccessKey: "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",
  5025. }; //秘钥形式的登录上传
  5026. window.AWS.config.update(credentials);
  5027. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5028. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5029. var _this = this;
  5030. if (file) {
  5031. var params = {
  5032. Key:
  5033. file.name.split(".")[0] +
  5034. new Date().getTime() +
  5035. "." +
  5036. file.name.split(".")[file.name.split(".").length - 1],
  5037. ContentType: file.type,
  5038. Body: file,
  5039. "Access-Control-Allow-Credentials": "*",
  5040. ACL: "public-read",
  5041. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5042. var options = {
  5043. partSize: 2048 * 1024 * 1024,
  5044. queueSize: 2,
  5045. leavePartsOnError: true,
  5046. };
  5047. bucket
  5048. .upload(params, options)
  5049. .on("httpUploadProgress", function (evt) {
  5050. //这里可以写进度条
  5051. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5052. })
  5053. .send(function (err, data) {
  5054. // loading.close();
  5055. if (err) {
  5056. _this.$message.error("上传失败");
  5057. } else {
  5058. _this.selectJson.url = data.Location;
  5059. console.log(data.Location);
  5060. }
  5061. });
  5062. }
  5063. },
  5064. chooseSysPic(p) {
  5065. this.cover.push({
  5066. name: "系统图片.png",
  5067. url: p,
  5068. });
  5069. this.imgChange1(null, null, 1, null);
  5070. this.isSysPic = true;
  5071. this.sysPicVisible = false;
  5072. },
  5073. beforeUpload(data) {
  5074. this.$refs.upload1.uploadFiles;
  5075. this.uploadLoading1 = true;
  5076. var file = data.file;
  5077. var credentials = {
  5078. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5079. secretAccessKey: "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",
  5080. }; //秘钥形式的登录上传
  5081. window.AWS.config.update(credentials);
  5082. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5083. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5084. var _this = this;
  5085. if (file) {
  5086. var params = {
  5087. Key:
  5088. file.name.split(".")[0] +
  5089. new Date().getTime() +
  5090. "." +
  5091. file.name.split(".")[file.name.split(".").length - 1],
  5092. ContentType: file.type,
  5093. Body: file,
  5094. "Access-Control-Allow-Credentials": "*",
  5095. ACL: "public-read",
  5096. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5097. var options = {
  5098. partSize: 2048 * 1024 * 1024,
  5099. queueSize: 2,
  5100. leavePartsOnError: true,
  5101. };
  5102. bucket
  5103. .upload(params, options)
  5104. .on("httpUploadProgress", function (evt) {
  5105. //这里可以写进度条
  5106. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5107. })
  5108. .send(function (err, data) {
  5109. _this.uploadLoading1 = false;
  5110. if (err) {
  5111. // var a = _this.$refs.upload1.uploadFiles;
  5112. // a.splice(a.length - 1, a.length);
  5113. _this.$message.error("上传失败");
  5114. } else {
  5115. //上传成功处理
  5116. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5117. name: file.name,
  5118. url: data.Location,
  5119. uid: file.uid,
  5120. });
  5121. _this.imgChange();
  5122. console.log(data.Location);
  5123. }
  5124. });
  5125. }
  5126. },
  5127. onExceed() {
  5128. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5129. },
  5130. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5131. // const loading = this.openLoading();
  5132. var file = event.target.files[0];
  5133. var credentials = {
  5134. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5135. secretAccessKey: "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",
  5136. }; //秘钥形式的登录上传
  5137. window.AWS.config.update(credentials);
  5138. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5139. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5140. var _this = this;
  5141. if (type == 3) {
  5142. var b = [
  5143. "DOC",
  5144. "DOCX",
  5145. "DOCM",
  5146. "DOTM",
  5147. "DOTX",
  5148. "PPTX",
  5149. "PPSX",
  5150. "PPT",
  5151. "PPS",
  5152. "PPTM",
  5153. "POTM",
  5154. "PPAM",
  5155. "POTX",
  5156. "PPSM",
  5157. "XLSX",
  5158. "XLS",
  5159. ];
  5160. if (
  5161. b.indexOf(
  5162. file.name
  5163. .split(".")
  5164. [file.name.split(".").length - 1].toLocaleUpperCase()
  5165. ) != -1
  5166. ) {
  5167. if (file.size / 1024 / 1024 > 80) {
  5168. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5169. this.inputShow = true;
  5170. // var a = _this.$refs.upload1.uploadFiles;
  5171. // a.splice(a.length - 1, a.length);
  5172. // loading.close();
  5173. return;
  5174. }
  5175. } else if (
  5176. file.name
  5177. .split(".")
  5178. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5179. ) {
  5180. if (file.size / 1024 / 1024 > 80) {
  5181. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5182. this.inputShow = true;
  5183. // var a = _this.$refs.upload1.uploadFiles;
  5184. // a.splice(a.length - 1, a.length);
  5185. // loading.close();
  5186. return;
  5187. }
  5188. }
  5189. }
  5190. this.inputShow = false;
  5191. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5192. itemTaskIndex
  5193. ].progress = 0;
  5194. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5195. itemTaskIndex
  5196. ].proVisible = true;
  5197. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5198. itemTaskIndex
  5199. ].isFinishSize = 0;
  5200. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5201. itemTaskIndex
  5202. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5203. _this.$forceUpdate();
  5204. if (file) {
  5205. var params = {
  5206. Key:
  5207. file.name.split(".")[0] +
  5208. new Date().getTime() +
  5209. "." +
  5210. file.name.split(".")[file.name.split(".").length - 1],
  5211. ContentType: file.type,
  5212. Body: file,
  5213. "Access-Control-Allow-Credentials": "*",
  5214. ACL: "public-read",
  5215. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5216. var options = {
  5217. partSize: 2048 * 1024 * 1024,
  5218. queueSize: 2,
  5219. leavePartsOnError: true,
  5220. };
  5221. bucket
  5222. .upload(params, options)
  5223. .on("httpUploadProgress", function (evt) {
  5224. //这里可以写进度条
  5225. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5226. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5227. itemTaskIndex
  5228. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5229. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5230. itemTaskIndex
  5231. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5232. _this.$forceUpdate();
  5233. })
  5234. .send(function (err, data) {
  5235. // loading.close();
  5236. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5237. itemTaskIndex
  5238. ].progress = 100;
  5239. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5240. itemTaskIndex
  5241. ].isFinishSize =
  5242. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5243. itemTaskIndex
  5244. ].isAllSize;
  5245. _this.$forceUpdate();
  5246. setTimeout(() => {
  5247. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5248. itemTaskIndex
  5249. ].proVisible = false;
  5250. _this.$forceUpdate();
  5251. }, 1000);
  5252. _this.inputShow = true;
  5253. if (err) {
  5254. // var a = _this.$refs.upload1.uploadFiles;
  5255. // a.splice(a.length - 1, a.length);
  5256. _this.$message.error("上传失败");
  5257. } else {
  5258. if (type == 13) {
  5259. let _type = 2;
  5260. var imgA = [
  5261. "png",
  5262. "jpg",
  5263. "jpeg",
  5264. "bmp",
  5265. "gif",
  5266. "webp",
  5267. "psd",
  5268. "svg",
  5269. "tiff",
  5270. ];
  5271. var fileA = [
  5272. "PDF",
  5273. "DOC",
  5274. "DOCX",
  5275. "DOCM",
  5276. "DOTM",
  5277. "DOTX",
  5278. "PPTX",
  5279. "PPSX",
  5280. "PPT",
  5281. "PPS",
  5282. "PPTM",
  5283. "POTM",
  5284. "PPAM",
  5285. "POTX",
  5286. "PPSM",
  5287. "XLSX",
  5288. "XLS",
  5289. ];
  5290. var videoA = [
  5291. "AVI",
  5292. "NAVI",
  5293. "MPEG",
  5294. "ASF",
  5295. "MOV",
  5296. "WMV",
  5297. "3GP",
  5298. "RM",
  5299. "RMVB",
  5300. "FLV",
  5301. "F4V",
  5302. "H.264",
  5303. "H.265",
  5304. "REAL VIDEO",
  5305. "MKV",
  5306. "WebM",
  5307. "HDDVD",
  5308. "MP4",
  5309. "MPG",
  5310. "M4V",
  5311. "MGV",
  5312. "OGV",
  5313. "QTM",
  5314. "STR",
  5315. "AMC",
  5316. "DVX",
  5317. "EVO",
  5318. "DAT",
  5319. "OGG",
  5320. "OGM",
  5321. ];
  5322. if (
  5323. fileA.indexOf(
  5324. data.Location.split(".")[
  5325. data.Location.split(".").length - 1
  5326. ].toLocaleUpperCase()
  5327. ) != -1
  5328. ) {
  5329. _type = 3;
  5330. } else if (
  5331. videoA.indexOf(
  5332. data.Location.split(".")[
  5333. data.Location.split(".").length - 1
  5334. ].toLocaleUpperCase()
  5335. ) != -1
  5336. ) {
  5337. _type = 2;
  5338. } else if (
  5339. imgA.indexOf(
  5340. data.Location.split(".")[
  5341. data.Location.split(".").length - 1
  5342. ].toLocaleLowerCase()
  5343. ) != -1
  5344. ) {
  5345. _type = 13;
  5346. } else {
  5347. _type = 12;
  5348. }
  5349. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5350. itemTaskIndex
  5351. ].chapterData.push({
  5352. name: file.name,
  5353. url: data.Location,
  5354. uid: file.uid,
  5355. type: _type,
  5356. });
  5357. _this.imgChange1(null, null, _type, itemTaskIndex);
  5358. } else if (type == 2 || type == 3 || type == 12) {
  5359. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5360. itemTaskIndex
  5361. ].chapterData.push({
  5362. name: file.name,
  5363. url: data.Location,
  5364. uid: file.uid,
  5365. type: type,
  5366. });
  5367. _this.imgChange1(null, null, type, itemTaskIndex);
  5368. } else if (type == 4) {
  5369. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5370. itemTaskIndex
  5371. ].fileList1.push({
  5372. name: file.name,
  5373. url: data.Location,
  5374. uid: file.uid,
  5375. });
  5376. _this.imgChange1(null, null, type, itemTaskIndex);
  5377. } else if (type == 5) {
  5378. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5379. itemTaskIndex
  5380. ].homeworkList.push({
  5381. name: file.name,
  5382. url: data.Location,
  5383. uid: file.uid,
  5384. });
  5385. _this.imgChange1(null, null, type, itemTaskIndex);
  5386. }
  5387. console.log(data.Location);
  5388. }
  5389. });
  5390. }
  5391. },
  5392. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5393. // const loading = this.openLoading();
  5394. var file = event.target.files[0];
  5395. var credentials = {
  5396. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5397. secretAccessKey: "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",
  5398. }; //秘钥形式的登录上传
  5399. window.AWS.config.update(credentials);
  5400. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5401. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5402. var _this = this;
  5403. if (type == 3) {
  5404. var b = [
  5405. "DOC",
  5406. "DOCX",
  5407. "DOCM",
  5408. "DOTM",
  5409. "DOTX",
  5410. "PPTX",
  5411. "PPSX",
  5412. "PPT",
  5413. "PPS",
  5414. "PPTM",
  5415. "POTM",
  5416. "PPAM",
  5417. "POTX",
  5418. "PPSM",
  5419. ];
  5420. if (
  5421. b.indexOf(
  5422. file.name
  5423. .split(".")
  5424. [file.name.split(".").length - 1].toLocaleUpperCase()
  5425. ) != -1
  5426. ) {
  5427. if (file.size / 1024 / 1024 > 80) {
  5428. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5429. this.inputShow = true;
  5430. // var a = _this.$refs.upload1.uploadFiles;
  5431. // a.splice(a.length - 1, a.length);
  5432. // loading.close();
  5433. return;
  5434. }
  5435. } else if (
  5436. file.name
  5437. .split(".")
  5438. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5439. ) {
  5440. if (file.size / 1024 / 1024 > 80) {
  5441. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5442. this.inputShow = true;
  5443. // var a = _this.$refs.upload1.uploadFiles;
  5444. // a.splice(a.length - 1, a.length);
  5445. // loading.close();
  5446. return;
  5447. }
  5448. }
  5449. }
  5450. this.inputShow = false;
  5451. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5452. itemTaskIndex
  5453. ].progress = 0;
  5454. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5455. itemTaskIndex
  5456. ].proVisible = true;
  5457. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5458. itemTaskIndex
  5459. ].isFinishSize = 0;
  5460. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5461. itemTaskIndex
  5462. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5463. _this.$forceUpdate();
  5464. if (file) {
  5465. var params = {
  5466. Key:
  5467. file.name.split(".")[0] +
  5468. new Date().getTime() +
  5469. "." +
  5470. file.name.split(".")[file.name.split(".").length - 1],
  5471. ContentType: file.type,
  5472. Body: file,
  5473. "Access-Control-Allow-Credentials": "*",
  5474. ACL: "public-read",
  5475. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5476. var options = {
  5477. partSize: 2048 * 1024 * 1024,
  5478. queueSize: 2,
  5479. leavePartsOnError: true,
  5480. };
  5481. bucket
  5482. .upload(params, options)
  5483. .on("httpUploadProgress", function (evt) {
  5484. //这里可以写进度条
  5485. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5486. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5487. itemTaskIndex
  5488. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5489. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5490. itemTaskIndex
  5491. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5492. _this.$forceUpdate();
  5493. })
  5494. .send(function (err, data) {
  5495. // loading.close();
  5496. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5497. itemTaskIndex
  5498. ].progress = 100;
  5499. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5500. itemTaskIndex
  5501. ].isFinishSize =
  5502. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5503. itemTaskIndex
  5504. ].isAllSize;
  5505. _this.$forceUpdate();
  5506. setTimeout(() => {
  5507. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5508. itemTaskIndex
  5509. ].proVisible = false;
  5510. _this.$forceUpdate();
  5511. }, 1000);
  5512. _this.inputShow = true;
  5513. if (err) {
  5514. // var a = _this.$refs.upload1.uploadFiles;
  5515. // a.splice(a.length - 1, a.length);
  5516. _this.$message.error("上传失败");
  5517. } else {
  5518. if (type == 2 || type == 3) {
  5519. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5520. itemTaskIndex
  5521. ].chapterData.push({
  5522. name: file.name,
  5523. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5524. // itemTaskIndex
  5525. // ].chapterData.length+1),
  5526. url: data.Location,
  5527. uid: file.uid,
  5528. type: type,
  5529. text: string,
  5530. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5531. // itemTaskIndex
  5532. // ].chapterData.length + 1),
  5533. });
  5534. _this.imgChange1(null, null, type, itemTaskIndex);
  5535. } else if (type == 4) {
  5536. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5537. itemTaskIndex
  5538. ].fileList1.push({
  5539. name: file.name,
  5540. url: data.Location,
  5541. uid: file.uid,
  5542. });
  5543. _this.imgChange1(null, null, type, itemTaskIndex);
  5544. } else if (type == 5) {
  5545. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5546. itemTaskIndex
  5547. ].homeworkList.push({
  5548. name: file.name,
  5549. url: data.Location,
  5550. uid: file.uid,
  5551. });
  5552. _this.imgChange1(null, null, type, itemTaskIndex);
  5553. }
  5554. console.log(data.Location);
  5555. }
  5556. });
  5557. }
  5558. },
  5559. addunit() {
  5560. this.unitJson.push({
  5561. dyName: "", //单元标题
  5562. isUpdate: 1,
  5563. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  5564. chapterInfo: [
  5565. {
  5566. isread: false,
  5567. chapterid: this.guid(),
  5568. title: "",
  5569. courseName: "",
  5570. taskJson: [
  5571. {
  5572. task: "",
  5573. taskDetail: "",
  5574. chapterData: [],
  5575. toolText: "",
  5576. toolChoose: [
  5577. {
  5578. tool: [],
  5579. toolDetail: "",
  5580. toolType: 1,
  5581. askCount: 1,
  5582. askTitle: "",
  5583. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5584. },
  5585. ],
  5586. isShowTools: false,
  5587. askCount: 1,
  5588. isFold: 0,
  5589. askTitle: "",
  5590. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5591. checkJson: [{ checkCount: [], checkPerent: [] }],
  5592. homeworkList: [],
  5593. },
  5594. ],
  5595. itemCount: 1,
  5596. fileList1: [],
  5597. video: [],
  5598. testData: [],
  5599. pData: [],
  5600. templateArray: [],
  5601. },
  5602. ],
  5603. });
  5604. this.addindex = this.unitJson.length - 1;
  5605. setTimeout(() => {
  5606. this.unitIndex = this.unitJson.length - 1;
  5607. this.unitSet(this.unitIndex);
  5608. }, 0);
  5609. },
  5610. addToolFun(itemTaskIndex) {
  5611. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5612. itemTaskIndex
  5613. ].toolChoose.push({
  5614. tool: [],
  5615. toolDetail: "",
  5616. toolType: 1,
  5617. askCount: 1,
  5618. askTitle: "",
  5619. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5620. });
  5621. },
  5622. addTaskBorder() {
  5623. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5624. task: "",
  5625. taskDetail: "",
  5626. chapterData: [],
  5627. toolChoose: [
  5628. {
  5629. tool: [],
  5630. toolDetail: "",
  5631. toolType: 1,
  5632. askCount: 1,
  5633. askTitle: "",
  5634. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5635. },
  5636. ],
  5637. toolText: "",
  5638. isShowTools: false,
  5639. askCount: 1,
  5640. isFold: 0,
  5641. askTitle: "",
  5642. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5643. checkJson: [{ checkCount: [], checkPerent: [] }],
  5644. homeworkList: [],
  5645. });
  5646. },
  5647. add(e, i) {
  5648. var el = e.currentTarget;
  5649. el.getElementsByTagName("input")[0].click();
  5650. },
  5651. fold(i, e, type) {
  5652. var a = e.currentTarget.parentElement.parentElement;
  5653. var b = e.currentTarget.parentElement;
  5654. if (type == 1) {
  5655. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5656. a.className += " smallTaskBorder";
  5657. b.className += " funBlockTop";
  5658. } else {
  5659. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5660. a.className = "taskBorder";
  5661. b.className = "funBlock";
  5662. }
  5663. console.log(e);
  5664. },
  5665. deleteHomeworkBox(unitIndex, index, i) {
  5666. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5667. this.taskCount
  5668. ].homeworkList.splice(i, 1);
  5669. },
  5670. getStudent() {
  5671. let params = {
  5672. oid: this.oid,
  5673. cu: "",
  5674. cn: this.searchPeople,
  5675. };
  5676. this.ajax
  5677. .get(this.$store.state.api + "selectStudentAdd", params)
  5678. .then((res) => {
  5679. this.studentJuri = res.data[0];
  5680. })
  5681. .catch((err) => {
  5682. this.isLoading = false;
  5683. console.error(err);
  5684. });
  5685. },
  5686. getTeacher() {
  5687. let params = {
  5688. oid:
  5689. this.org && this.org != "undefined" && this.org != "null"
  5690. ? this.org
  5691. : this.oid,
  5692. cu: "",
  5693. cn: this.searchTN,
  5694. };
  5695. this.ajax
  5696. .get(
  5697. this.$store.state.api +
  5698. (this.org && this.org != "undefined" && this.org != "null"
  5699. ? "selectTeacherAddOrg"
  5700. : "selectTeacherAdd"),
  5701. params
  5702. )
  5703. .then((res) => {
  5704. let teacherJuri = res.data[0];
  5705. for (var i = 0; i < teacherJuri.length; i++) {
  5706. if (teacherJuri[i].userid == this.userid) {
  5707. teacherJuri.splice(i, 1);
  5708. break;
  5709. }
  5710. }
  5711. this.teacherJuri = teacherJuri;
  5712. })
  5713. .catch((err) => {
  5714. console.error(err);
  5715. });
  5716. },
  5717. searchStudent() {
  5718. this.getStudent();
  5719. },
  5720. //获取班级列表
  5721. getClass() {
  5722. let params = {
  5723. oid: this.oid,
  5724. cn: this.classSearch,
  5725. };
  5726. this.ajax
  5727. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  5728. .then((res) => {
  5729. if (!this.grade.length) {
  5730. this.grade = res.data[0];
  5731. }
  5732. this.grade2 = res.data[0];
  5733. this.classJuri = res.data[0];
  5734. })
  5735. .catch((err) => {
  5736. this.isLoading = false;
  5737. console.error(err);
  5738. });
  5739. },
  5740. CourseType2Change(val) {
  5741. this.pTypeCheck = [];
  5742. for (var i = 0; i < this.CourseType2.length; i++) {
  5743. let typeA = this.CourseType2[i];
  5744. if (val.indexOf(typeA.name) != -1) {
  5745. this.pTypeCheck.push(...typeA.id);
  5746. }
  5747. }
  5748. },
  5749. getChapterData(e, i, j, ic, type) {
  5750. e.stopPropagation();
  5751. this.updataC = true;
  5752. this.icc = ic;
  5753. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5754. console.log("还不能下载图片喔");
  5755. }
  5756. },
  5757. deleteChapterData(e, i, j, ic, taskI) {
  5758. e.stopPropagation();
  5759. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  5760. },
  5761. updataVideoT(e, i, j, ic) {
  5762. e.stopPropagation();
  5763. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  5764. ic
  5765. ].name = JSON.parse(JSON.stringify(e.target.value));
  5766. this.$forceUpdate();
  5767. },
  5768. upCd(e, i, j, taskCount, ic) {
  5769. e.stopPropagation();
  5770. if (ic == 0) {
  5771. return;
  5772. }
  5773. var a =
  5774. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  5775. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  5776. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5777. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5778. this.$forceUpdate();
  5779. },
  5780. downCd(e, i, j, taskCount, ic) {
  5781. e.stopPropagation();
  5782. if (
  5783. ic ==
  5784. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  5785. 1
  5786. ) {
  5787. return;
  5788. }
  5789. var a =
  5790. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  5791. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  5792. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5793. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5794. this.$forceUpdate();
  5795. },
  5796. addWork() {
  5797. let cPan = 1;
  5798. for (var i = 0; i < this.unitJson.length; i++) {
  5799. for (
  5800. var j = 0;
  5801. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5802. j++
  5803. ) {
  5804. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5805. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5806. if (
  5807. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5808. ) {
  5809. for (
  5810. var z = 0;
  5811. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5812. z++
  5813. ) {
  5814. if (
  5815. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5816. .length
  5817. ) {
  5818. this.$message.error("请把工具添加完整");
  5819. cPan = 2;
  5820. break;
  5821. }
  5822. }
  5823. }
  5824. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5825. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5826. i
  5827. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5828. return ele.value != "";
  5829. });
  5830. }
  5831. }
  5832. }
  5833. this.inputShow = true;
  5834. if (cPan == 2) {
  5835. return;
  5836. }
  5837. for (var i = 0; i < this.unitJson.length; i++) {
  5838. delete this.unitJson[i].isUpdate;
  5839. }
  5840. let params = [
  5841. {
  5842. uid: this.userid,
  5843. title: this.courseName.replace(/%/g, "%25"),
  5844. brief: this.courseText.replace(/%/g, "%25"),
  5845. cover:
  5846. this.cover.length > 0
  5847. ? JSON.stringify(this.cover)
  5848. : JSON.stringify([
  5849. {
  5850. name: "noBanner.jpg",
  5851. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5852. uid: 1656409780264,
  5853. status: "success",
  5854. },
  5855. ]),
  5856. evaId: this.evalua,
  5857. astudent:
  5858. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5859. see: this.isTeacherSee == true ? 1 : 0,
  5860. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5861. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  5862. courseType: JSON.stringify(this.courseTypeId),
  5863. ateacher:
  5864. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5865. inviteCode: JSON.stringify(this.inviteCode),
  5866. },
  5867. ];
  5868. this.ajax
  5869. .post(this.$store.state.api + "addWorkNew2T", params)
  5870. .then((res) => {
  5871. console.log(this.steps);
  5872. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5873. this.$message({
  5874. message: "新增成功",
  5875. type: "success",
  5876. });
  5877. // }
  5878. this.number = res.data.ordernumber;
  5879. this.courseId = res.data.courseId;
  5880. this.cid = res.data.courseId;
  5881. this.courseUserid = this.userid;
  5882. this.islogin = true;
  5883. this.steps = 4;
  5884. })
  5885. .catch((err) => {
  5886. this.$message.error("网络不佳");
  5887. console.error(err);
  5888. });
  5889. },
  5890. goCourse() {
  5891. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  5892. },
  5893. updateWork2() {
  5894. let _unitIndex = this.unitIndex;
  5895. let cPan = 1;
  5896. for (
  5897. var j = 0;
  5898. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5899. j++
  5900. ) {
  5901. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  5902. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5903. j
  5904. ].proVisible2 = false;
  5905. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5906. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5907. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5908. (ele) => {
  5909. return ele.value != "";
  5910. }
  5911. );
  5912. }
  5913. }
  5914. this.inputShow = true;
  5915. if (cPan == 2) {
  5916. return;
  5917. }
  5918. let params = [
  5919. {
  5920. cid: this.cid,
  5921. chapters: JSON.stringify(this.unitJson),
  5922. uid: this.userid,
  5923. unitIndex: _unitIndex,
  5924. },
  5925. ];
  5926. this.ajax
  5927. .post(this.$store.state.api + "updateWorkNew4", params)
  5928. .then((res) => {
  5929. this.$message({
  5930. message: "修改成功",
  5931. type: "success",
  5932. });
  5933. this.courseId = this.cid;
  5934. })
  5935. .catch((err) => {
  5936. this.$message.error("网络不佳");
  5937. console.error(err);
  5938. });
  5939. },
  5940. updateWork() {
  5941. let cPan = 1;
  5942. for (var i = 0; i < this.unitJson.length; i++) {
  5943. for (
  5944. var j = 0;
  5945. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5946. j++
  5947. ) {
  5948. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5949. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5950. if (
  5951. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5952. ) {
  5953. for (
  5954. var z = 0;
  5955. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5956. z++
  5957. ) {
  5958. if (
  5959. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5960. .length
  5961. ) {
  5962. this.$message.error("请把工具添加完整");
  5963. cPan = 2;
  5964. break;
  5965. }
  5966. }
  5967. }
  5968. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5969. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5970. i
  5971. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5972. return ele.value != "";
  5973. });
  5974. }
  5975. }
  5976. }
  5977. this.inputShow = true;
  5978. if (cPan == 2) {
  5979. return;
  5980. }
  5981. for (var i = 0; i < this.unitJson.length; i++) {
  5982. delete this.unitJson[i].isUpdate;
  5983. }
  5984. let params = [
  5985. {
  5986. cid: this.cid,
  5987. title: this.courseName.replace(/%/g, "%25"),
  5988. brief: this.courseText.replace(/%/g, "%25"),
  5989. cover:
  5990. this.cover.length > 0
  5991. ? JSON.stringify(this.cover)
  5992. : JSON.stringify([
  5993. {
  5994. name: "noBanner.jpg",
  5995. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5996. uid: 1656409780264,
  5997. status: "success",
  5998. },
  5999. ]),
  6000. evaId: this.evalua,
  6001. astudent:
  6002. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6003. see: this.isTeacherSee == true ? 1 : 0,
  6004. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6005. template: this.myWord != "undefined" ? this.myWord : [],
  6006. uid: this.userid,
  6007. courseType: JSON.stringify(this.courseTypeId),
  6008. ateacher:
  6009. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6010. inviteCode: JSON.stringify(this.inviteCode),
  6011. },
  6012. ];
  6013. this.ajax
  6014. .post(this.$store.state.api + "updateWorkNew2", params)
  6015. .then((res) => {
  6016. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6017. if (this.cidType == 1) {
  6018. this.$message({
  6019. message: "修改成功",
  6020. type: "success",
  6021. });
  6022. } else {
  6023. this.$message({
  6024. message: "新增成功",
  6025. type: "success",
  6026. });
  6027. }
  6028. // }
  6029. this.number = this.nbOrder;
  6030. this.courseId = this.cid;
  6031. this.steps = 4;
  6032. })
  6033. .catch((err) => {
  6034. this.$message.error("网络不佳");
  6035. console.error(err);
  6036. });
  6037. },
  6038. guid() {
  6039. var _num,
  6040. i,
  6041. _guid = "";
  6042. for (i = 0; i < 32; i++) {
  6043. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6044. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6045. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6046. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6047. _guid += "-";
  6048. }
  6049. }
  6050. return _guid;
  6051. },
  6052. insertWord() {
  6053. this.dialogVisible1 = true;
  6054. this.updateBoolean2 = false;
  6055. this.tTitle = "";
  6056. this.tdetail = "";
  6057. },
  6058. addWord() {
  6059. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6060. name: this.tTitle,
  6061. content: this.tdetail,
  6062. uid: this.guid(),
  6063. });
  6064. this.dialogVisible1 = false;
  6065. },
  6066. upWord() { },
  6067. selectWord(uid, i, c) {
  6068. this.dialogVisible1 = true;
  6069. this.updateBoolean2 = true;
  6070. if (
  6071. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6072. ) {
  6073. this.tTitle =
  6074. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6075. this.tdetail =
  6076. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6077. }
  6078. },
  6079. isAddPP() {
  6080. if (this.checkboxList.length > 0) {
  6081. this.$message({
  6082. message: "添加成功",
  6083. type: "success",
  6084. });
  6085. this.dialogVisible3 = false;
  6086. } else {
  6087. this.$message({
  6088. message: "请添加课程成员",
  6089. type: "error",
  6090. });
  6091. }
  6092. },
  6093. isAddClass() {
  6094. this.dialogVisibleClass = false;
  6095. },
  6096. isAddPPTeacher() {
  6097. this.dialogVisibleMember = false;
  6098. this.setMan();
  6099. },
  6100. getTemplate() {
  6101. this.ajax
  6102. .get(this.$store.state.api + "getCourseTemplateT", "")
  6103. .then((res) => {
  6104. this.templateArray = res.data[0];
  6105. this.getTemplateOid();
  6106. this.$forceUpdate();
  6107. })
  6108. .catch((err) => { });
  6109. },
  6110. getTemplateOid() {
  6111. let params = {
  6112. oid: this.oid,
  6113. };
  6114. this.ajax
  6115. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6116. .then((res) => {
  6117. if (res.data[0].length) {
  6118. this.templateArray = [...res.data[0], ...this.templateArray];
  6119. }
  6120. this.getTemplateOrg();
  6121. this.$forceUpdate();
  6122. })
  6123. .catch((err) => { });
  6124. },
  6125. getTemplateOrg() {
  6126. let params = {
  6127. oid: this.org,
  6128. };
  6129. this.ajax
  6130. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6131. .then((res) => {
  6132. if (res.data[0].length) {
  6133. this.templateArray = [...res.data[0], ...this.templateArray];
  6134. }
  6135. this.$forceUpdate();
  6136. })
  6137. .catch((err) => { });
  6138. },
  6139. clearChoose() {
  6140. this.clearArray.splice(this.templateC.id, 1);
  6141. this.dialogVisible2 = false;
  6142. },
  6143. clearAttText() {
  6144. this.AttText = {
  6145. title: "",
  6146. text: "",
  6147. };
  6148. this.dialogVisible6 = false;
  6149. },
  6150. clearLine() {
  6151. this.line = "";
  6152. this.dialogVisible7 = false;
  6153. },
  6154. checkTemplate(res) {
  6155. let _this = this;
  6156. _this
  6157. .$confirm("确定选择此模板吗?", "提示", {
  6158. confirmButtonText: "确定",
  6159. cancelButtonText: "取消",
  6160. type: "warning",
  6161. })
  6162. .then(() => {
  6163. _this.unitJson = JSON.parse(res.chapters);
  6164. _this.steps++;
  6165. setTimeout(() => {
  6166. this.checkEva(this.checkId);
  6167. }, 1000);
  6168. })
  6169. .catch(() => {
  6170. return;
  6171. });
  6172. },
  6173. checkTemplate1(w) {
  6174. this.steps++;
  6175. },
  6176. checkTemplate2() {
  6177. let _this = this;
  6178. _this
  6179. .$confirm("确定选择空模板吗?", "提示", {
  6180. confirmButtonText: "确定",
  6181. cancelButtonText: "取消",
  6182. type: "warning",
  6183. })
  6184. .then(() => {
  6185. _this.unitIndex = 0;
  6186. _this.unitJson = [
  6187. {
  6188. dyName: "", //单元标题
  6189. chapterInfo: [
  6190. {
  6191. isread: false,
  6192. chapterid: this.guid(),
  6193. title: "",
  6194. courseName: "",
  6195. taskJson: [
  6196. {
  6197. task: "",
  6198. taskDetail: "",
  6199. chapterData: [],
  6200. toolText: "",
  6201. toolChoose: [
  6202. {
  6203. tool: [],
  6204. toolDetail: "",
  6205. toolType: 1,
  6206. askCount: 1,
  6207. askTitle: "",
  6208. askJson: [
  6209. { askstitle: "", askItem: 1, checkList: [] },
  6210. ],
  6211. },
  6212. ],
  6213. isShowTools: false,
  6214. askCount: 1,
  6215. isFold: 0,
  6216. askTitle: "",
  6217. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6218. checkJson: [{ checkCount: [], checkPerent: [] }],
  6219. homeworkList: [],
  6220. },
  6221. ],
  6222. itemCount: 1,
  6223. fileList1: [],
  6224. video: [],
  6225. testData: [],
  6226. pData: [],
  6227. templateArray: [],
  6228. },
  6229. ],
  6230. },
  6231. ];
  6232. this.steps++;
  6233. this.updateWork();
  6234. })
  6235. .catch(() => {
  6236. return;
  6237. });
  6238. },
  6239. checkTemplate3() {
  6240. let _this = this;
  6241. _this
  6242. .$confirm("确定选择简易模式吗?", "提示", {
  6243. confirmButtonText: "确定",
  6244. cancelButtonText: "取消",
  6245. type: "warning",
  6246. })
  6247. .then(() => {
  6248. _this.unitIndex = 0;
  6249. _this.unitJson = [
  6250. {
  6251. dyName: "", //单元标题
  6252. easy: 1,
  6253. chapterInfo: [
  6254. {
  6255. isread: false,
  6256. chapterid: this.guid(),
  6257. title: "",
  6258. courseName: "",
  6259. taskJson: [
  6260. {
  6261. task: "",
  6262. taskDetail: "",
  6263. chapterData: [],
  6264. toolText: "",
  6265. toolChoose: [
  6266. {
  6267. tool: [],
  6268. toolDetail: "",
  6269. toolType: 1,
  6270. askCount: 1,
  6271. askTitle: "",
  6272. askJson: [
  6273. { askstitle: "", askItem: 1, checkList: [] },
  6274. ],
  6275. },
  6276. ],
  6277. isShowTools: false,
  6278. askCount: 1,
  6279. isFold: 0,
  6280. askTitle: "",
  6281. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6282. checkJson: [{ checkCount: [], checkPerent: [] }],
  6283. homeworkList: [],
  6284. },
  6285. ],
  6286. itemCount: 1,
  6287. fileList1: [],
  6288. video: [],
  6289. testData: [],
  6290. pData: [],
  6291. templateArray: [],
  6292. },
  6293. ],
  6294. },
  6295. ];
  6296. this.steps++;
  6297. this.updateWork();
  6298. })
  6299. .catch(() => {
  6300. return;
  6301. });
  6302. },
  6303. checkTemplate4() {
  6304. let _this = this;
  6305. _this
  6306. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  6307. confirmButtonText: "确定",
  6308. cancelButtonText: "取消",
  6309. type: "warning",
  6310. })
  6311. .then(() => {
  6312. _this.unitIndex = 0;
  6313. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  6314. this.steps++;
  6315. this.updateWork();
  6316. })
  6317. .catch(() => {
  6318. return;
  6319. });
  6320. },
  6321. wordNext() {
  6322. this.dialogVisible2 = false;
  6323. },
  6324. isAddOrUpdateAttText() {
  6325. if (this.AttTextType == 0) {
  6326. this.addAttTextMessage();
  6327. } else {
  6328. this.updateAttText();
  6329. }
  6330. },
  6331. isAddOrUpdateLine() {
  6332. if (!this.lineTitle) {
  6333. this.$message.error("请填写链接标题");
  6334. return;
  6335. }
  6336. if (this.lineType == 0) {
  6337. this.addLine();
  6338. } else {
  6339. this.updateLine();
  6340. }
  6341. },
  6342. addAttTextMessage() {
  6343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6344. this.taskCount
  6345. ].chapterData.push({
  6346. name: this.AttText.title,
  6347. url: this.AttText.text,
  6348. type: 6,
  6349. });
  6350. this.imgChange1(null, null, 6, this.taskCount);
  6351. this.dialogVisible6 = false;
  6352. },
  6353. selectAttText(itemTaskIndex, i) {
  6354. this.AttText.title =
  6355. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6356. itemTaskIndex
  6357. ].chapterData[i].name;
  6358. this.AttText.text =
  6359. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6360. itemTaskIndex
  6361. ].chapterData[i].url;
  6362. this.taskCount = itemTaskIndex;
  6363. this.AttTextIndex = i;
  6364. this.AttTextType = 1;
  6365. this.dialogVisible6 = true;
  6366. },
  6367. updateAttText() {
  6368. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6369. this.taskCount
  6370. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6371. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6372. this.taskCount
  6373. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6374. this.dialogVisible6 = false;
  6375. },
  6376. addLine() {
  6377. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6378. this.lineCount
  6379. ].chapterData.push({
  6380. name: "链接",
  6381. title: this.lineTitle,
  6382. url: this.line,
  6383. type: 8,
  6384. });
  6385. this.imgChange1(null, null, 8, this.lineCount);
  6386. this.dialogVisible7 = false;
  6387. },
  6388. selectLine(itemTaskIndex, i) {
  6389. this.line =
  6390. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6391. itemTaskIndex
  6392. ].chapterData[i].url;
  6393. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6394. itemTaskIndex
  6395. ].chapterData[i].title
  6396. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6397. .chapterData[i].title
  6398. : "";
  6399. this.taskCount = itemTaskIndex;
  6400. this.lineCount = i;
  6401. this.lineType = 1;
  6402. this.dialogVisible7 = true;
  6403. },
  6404. updateLine() {
  6405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6406. this.taskCount
  6407. ].chapterData[this.lineCount].url = this.line;
  6408. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6409. this.taskCount
  6410. ].chapterData[this.lineCount].title = this.lineTitle;
  6411. this.dialogVisible7 = false;
  6412. },
  6413. addPP() {
  6414. this.dialogVisible3 = true;
  6415. },
  6416. goTo(path) {
  6417. this.$router.push(path);
  6418. },
  6419. openTools(itemTaskIndex, i, toolIndex) {
  6420. this.toolIndex = toolIndex;
  6421. this.taskCount = itemTaskIndex;
  6422. if (i == 4) {
  6423. if (toolIndex == null) {
  6424. var a =
  6425. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6426. .chapterData;
  6427. for (var i = 0; i < a.length; i++) {
  6428. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6429. this.askJson =
  6430. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6431. itemTaskIndex
  6432. ].chapterData[i].askJson;
  6433. }
  6434. }
  6435. } else {
  6436. this.askJson = JSON.parse(
  6437. JSON.stringify(
  6438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6439. itemTaskIndex
  6440. ].toolChoose[toolIndex]
  6441. )
  6442. );
  6443. }
  6444. this.dialogVisible5 = true;
  6445. } else if (i == 45) {
  6446. if (
  6447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6448. .toolChoose[toolIndex].testJson
  6449. ) {
  6450. this.testJson = JSON.parse(
  6451. JSON.stringify(
  6452. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6453. itemTaskIndex
  6454. ].toolChoose[toolIndex].testJson
  6455. )
  6456. );
  6457. } else {
  6458. var testJson = {
  6459. testCount: 1,
  6460. testTitle: "",
  6461. testJson: [
  6462. {
  6463. teststitle: "",
  6464. testItem: 1,
  6465. checkList: [],
  6466. timuList: [],
  6467. answer: [],
  6468. type: "1",
  6469. },
  6470. ],
  6471. };
  6472. this.testJson = testJson;
  6473. }
  6474. this.dialogVisibleChoice = true;
  6475. } else if (i == 47) {
  6476. if (
  6477. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6478. .toolChoose[toolIndex].sentenceList
  6479. ) {
  6480. this.sentenceList = JSON.parse(
  6481. JSON.stringify(
  6482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6483. itemTaskIndex
  6484. ].toolChoose[toolIndex].sentenceList
  6485. )
  6486. );
  6487. } else {
  6488. var sentenceList = [
  6489. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6490. ];
  6491. this.sentenceList = sentenceList;
  6492. }
  6493. this.dialogVisibleSentence = true;
  6494. } else if (i == 48) {
  6495. if (
  6496. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6497. .toolChoose[toolIndex].tableJson
  6498. ) {
  6499. this.tableJson = JSON.parse(
  6500. JSON.stringify(
  6501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6502. itemTaskIndex
  6503. ].toolChoose[toolIndex].tableJson
  6504. )
  6505. );
  6506. } else {
  6507. var tableJson = { text: "" };
  6508. this.tableJson = tableJson;
  6509. }
  6510. this.dialogVisibleTable = true;
  6511. } else if (i == 52) {
  6512. if (
  6513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6514. .toolChoose[toolIndex].wordJson
  6515. ) {
  6516. this.wordJson = JSON.parse(
  6517. JSON.stringify(
  6518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6519. itemTaskIndex
  6520. ].toolChoose[toolIndex].wordJson
  6521. )
  6522. );
  6523. } else {
  6524. var wordJson = { text: "" };
  6525. this.wordJson = wordJson;
  6526. }
  6527. this.dialogVisibleWord = true;
  6528. // else if (i == 50) {
  6529. // if (
  6530. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6531. // .toolChoose[toolIndex].uploadJson
  6532. // ) {
  6533. // this.uploadJson = JSON.parse(
  6534. // JSON.stringify(
  6535. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6536. // itemTaskIndex
  6537. // ].toolChoose[toolIndex].uploadJson
  6538. // )
  6539. // );
  6540. // } else {
  6541. // var uploadJson = [];
  6542. // this.uploadJson = uploadJson;
  6543. // }
  6544. // this.dialogVisibleMoreUpload = true;
  6545. // }
  6546. } else if (i == 10) {
  6547. if (
  6548. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6549. .toolChoose[toolIndex].preTime
  6550. ) {
  6551. this.preTime = JSON.parse(
  6552. JSON.stringify(
  6553. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6554. itemTaskIndex
  6555. ].toolChoose[toolIndex].preTime
  6556. )
  6557. );
  6558. } else {
  6559. var preTime = 0;
  6560. this.preTime = preTime;
  6561. }
  6562. this.dialogVisiblePreTime = true;
  6563. } else if (i == 49) {
  6564. if (
  6565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6566. .toolChoose[toolIndex].groupJson
  6567. ) {
  6568. this.groupJson = JSON.parse(
  6569. JSON.stringify(
  6570. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6571. itemTaskIndex
  6572. ].toolChoose[toolIndex].groupJson
  6573. )
  6574. );
  6575. } else {
  6576. var groupJson = {
  6577. group: [{ name: "第1组" }],
  6578. number: undefined,
  6579. islock: 1,
  6580. };
  6581. this.groupJson = groupJson;
  6582. }
  6583. this.dialogVisibleGroup = true;
  6584. } else if (i == 62) {
  6585. if (
  6586. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6587. .toolChoose[toolIndex].videoJson
  6588. ) {
  6589. this.videoJson = JSON.parse(
  6590. JSON.stringify(
  6591. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6592. itemTaskIndex
  6593. ].toolChoose[toolIndex].videoJson
  6594. )
  6595. );
  6596. } else {
  6597. var videoJson = {
  6598. video: "",
  6599. setting: [],
  6600. };
  6601. this.videoJson = videoJson;
  6602. }
  6603. this.dialogVisibleVideo = true;
  6604. } else if (i == 15) {
  6605. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6606. itemTaskIndex
  6607. ].toolChoose[toolIndex].answerQ
  6608. ? JSON.parse(
  6609. JSON.stringify(
  6610. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6611. itemTaskIndex
  6612. ].toolChoose[toolIndex].answerQ
  6613. )
  6614. )
  6615. : "";
  6616. this.dialogVisible8 = true;
  6617. } else if (i == 40) {
  6618. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6619. itemTaskIndex
  6620. ].toolChoose[toolIndex].rateJson
  6621. ? JSON.parse(
  6622. JSON.stringify(
  6623. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6624. itemTaskIndex
  6625. ].toolChoose[toolIndex].rateJson
  6626. )
  6627. )
  6628. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  6629. this.selectSteps = 1;
  6630. this.dialogVisibleRate = true;
  6631. } else if (i == 42) {
  6632. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6633. itemTaskIndex
  6634. ].toolChoose[toolIndex].answerQ
  6635. ? JSON.parse(
  6636. JSON.stringify(
  6637. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6638. itemTaskIndex
  6639. ].toolChoose[toolIndex].answerQ
  6640. )
  6641. )
  6642. : "";
  6643. this.dialogVisibleMp3 = true;
  6644. } else if (i == 41) {
  6645. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6646. itemTaskIndex
  6647. ].toolChoose[toolIndex].selectJson
  6648. ? JSON.parse(
  6649. JSON.stringify(
  6650. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6651. itemTaskIndex
  6652. ].toolChoose[toolIndex].selectJson
  6653. )
  6654. )
  6655. : { url: "", select: [], answer: [] };
  6656. this.selectSteps = 1;
  6657. this.dialogVisibleSelect = true;
  6658. } else if (i == 3) {
  6659. if (!this.cid) {
  6660. this.$message.error(
  6661. "极简模式添加时不能添加模板,请添加课程后在修改添加模板"
  6662. );
  6663. return;
  6664. }
  6665. window.parent.postMessage(
  6666. {
  6667. tools: "3y",
  6668. cid: this.cid,
  6669. stage: this.unitIndex,
  6670. task: itemTaskIndex,
  6671. tool: toolIndex,
  6672. },
  6673. "*"
  6674. );
  6675. } else if (i == 1) {
  6676. if (!this.cid) {
  6677. this.$message.error(
  6678. "极简模式添加时不能添加模板,请添加课程后在修改添加模板"
  6679. );
  6680. return;
  6681. }
  6682. window.parent.postMessage(
  6683. {
  6684. tools: "1y",
  6685. cid: this.cid,
  6686. stage: this.unitIndex,
  6687. task: itemTaskIndex,
  6688. tool: toolIndex,
  6689. },
  6690. "*"
  6691. );
  6692. } else if (i == 57) {
  6693. if (!this.cid) {
  6694. this.$message.error(
  6695. "极简模式添加时不能添加模板,请添加课程后在修改添加模板"
  6696. );
  6697. return;
  6698. }
  6699. window.parent.postMessage(
  6700. {
  6701. tools: "57y",
  6702. cid: this.cid,
  6703. stage: this.unitIndex,
  6704. task: itemTaskIndex,
  6705. tool: toolIndex,
  6706. },
  6707. "*"
  6708. );
  6709. }
  6710. },
  6711. chapAddTools(i) {
  6712. if (this.chapTools[0].tools.length == 0) {
  6713. this.chapTools[0].tools.push(i);
  6714. } else {
  6715. if (this.chapTools[0].tools.indexOf(i) != -1) {
  6716. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  6717. } else {
  6718. this.chapTools[0].tools.push(i);
  6719. }
  6720. }
  6721. this.$forceUpdate();
  6722. },
  6723. addChaptersDataTools() {
  6724. if (this.chapTools[0].tools.indexOf(4) != -1) {
  6725. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6726. this.chapCount
  6727. ].chapterData.push({
  6728. name: this.chapTools[0].toolDetail,
  6729. url: this.chapTools[0].tools,
  6730. type: 7,
  6731. askJson: this.askJson,
  6732. });
  6733. } else {
  6734. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6735. this.chapCount
  6736. ].chapterData.push({
  6737. name: this.chapTools[0].toolDetail,
  6738. url: this.chapTools[0].tools,
  6739. type: 7,
  6740. });
  6741. }
  6742. this.imgChange1(null, null, 7, this.chapCount);
  6743. this.dialogVisible4 = false;
  6744. },
  6745. addTools(i, itemTaskIndex, toolIndex) {
  6746. // if (
  6747. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6748. // .toolChoose[toolIndex].tool.length == 0
  6749. // ) {
  6750. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6751. // itemTaskIndex
  6752. // ].toolChoose[toolIndex].tool.push(i);
  6753. // } else {
  6754. // if (
  6755. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6756. // itemTaskIndex
  6757. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6758. // ) {
  6759. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6760. // itemTaskIndex
  6761. // ].toolChoose[toolIndex].tool.splice(
  6762. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6763. // itemTaskIndex
  6764. // ].toolChoose[toolIndex].tool.indexOf(i),
  6765. // 1
  6766. // );
  6767. // } else {
  6768. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6769. // itemTaskIndex
  6770. // ].toolChoose[toolIndex].tool.push(i);
  6771. // }
  6772. // console.log(
  6773. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6774. // .toolChoose[toolIndex].tool
  6775. // );
  6776. // }
  6777. if (i == 4) {
  6778. if (
  6779. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6780. .toolChoose[toolIndex].askJson.askTitle == "" ||
  6781. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6782. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  6783. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6784. .toolChoose[toolIndex].askJson[0].checkList < 2
  6785. ) {
  6786. this.openTools(itemTaskIndex, 4, toolIndex);
  6787. // this.$message({
  6788. // message: "请填写完整问卷内容",
  6789. // type: "error",
  6790. // });
  6791. return;
  6792. }
  6793. }
  6794. if (i == 45) {
  6795. if (
  6796. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6797. .toolChoose[toolIndex].testJson ||
  6798. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6799. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  6800. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6801. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  6802. ) {
  6803. this.openTools(itemTaskIndex, 45, toolIndex);
  6804. // this.$message({
  6805. // message: "请填写完整问卷内容",
  6806. // type: "error",
  6807. // });
  6808. return;
  6809. }
  6810. }
  6811. if (i == 47) {
  6812. if (
  6813. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6814. .toolChoose[toolIndex].sentenceList ||
  6815. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6816. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  6817. ) {
  6818. this.openTools(itemTaskIndex, 47, toolIndex);
  6819. return;
  6820. }
  6821. }
  6822. // if (i == 48) {
  6823. // if (
  6824. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6825. // .toolChoose[toolIndex].tableJson
  6826. // ) {
  6827. // this.openTools(itemTaskIndex, 48, toolIndex);
  6828. // return;
  6829. // }
  6830. // }
  6831. // if (i == 50) {
  6832. // if (
  6833. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6834. // .toolChoose[toolIndex].uploadJson
  6835. // ) {
  6836. // this.openTools(itemTaskIndex, 50, toolIndex);
  6837. // return;
  6838. // }
  6839. // }
  6840. if (i == 49) {
  6841. if (
  6842. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6843. .toolChoose[toolIndex].groupJson
  6844. ) {
  6845. this.openTools(itemTaskIndex, 49, toolIndex);
  6846. return;
  6847. }
  6848. }
  6849. if (i == 62) {
  6850. if (
  6851. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6852. .toolChoose[toolIndex].videoJson
  6853. ) {
  6854. this.openTools(itemTaskIndex, 62, toolIndex);
  6855. return;
  6856. }
  6857. }
  6858. if (i == 15) {
  6859. if (
  6860. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6861. .toolChoose[toolIndex].answerQ ||
  6862. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6863. .toolChoose[toolIndex].answerQ == ""
  6864. ) {
  6865. this.openTools(itemTaskIndex, 15, toolIndex);
  6866. // this.$message({
  6867. // message: "请填写问答内容",
  6868. // type: "error",
  6869. // });
  6870. return;
  6871. }
  6872. }
  6873. if (i == 40) {
  6874. if (
  6875. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6876. .toolChoose[toolIndex].rateJson ||
  6877. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6878. .toolChoose[toolIndex].rateJson.length
  6879. ) {
  6880. this.openTools(itemTaskIndex, 40, toolIndex);
  6881. return;
  6882. }
  6883. }
  6884. if (i == 41) {
  6885. if (
  6886. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6887. .toolChoose[toolIndex].selectJson ||
  6888. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6889. .toolChoose[toolIndex].selectJson.url == "" ||
  6890. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6891. .toolChoose[toolIndex].selectJson.select.length ||
  6892. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6893. .toolChoose[toolIndex].selectJson.answer.length
  6894. ) {
  6895. this.openTools(itemTaskIndex, 41, toolIndex);
  6896. return;
  6897. }
  6898. }
  6899. if (i == 42) {
  6900. if (
  6901. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6902. .toolChoose[toolIndex].answerQ ||
  6903. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6904. .toolChoose[toolIndex].answerQ == ""
  6905. ) {
  6906. this.openTools(itemTaskIndex, 42, toolIndex);
  6907. return;
  6908. }
  6909. }
  6910. if (
  6911. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6912. .toolChoose[toolIndex].tool.length > 0
  6913. ) {
  6914. if (
  6915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6916. itemTaskIndex
  6917. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6918. ) {
  6919. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6920. itemTaskIndex
  6921. ].toolChoose[toolIndex].tool.splice(
  6922. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6923. itemTaskIndex
  6924. ].toolChoose[toolIndex].tool.indexOf(i),
  6925. 1
  6926. );
  6927. } else {
  6928. // this.$message({
  6929. // message: "每个工具只能添加一个",
  6930. // type: "error",
  6931. // });
  6932. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6933. itemTaskIndex
  6934. ].toolChoose[toolIndex].tool = [];
  6935. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6936. itemTaskIndex
  6937. ].toolChoose[toolIndex].tool.push(i);
  6938. }
  6939. } else {
  6940. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6941. itemTaskIndex
  6942. ].toolChoose[toolIndex].tool.push(i);
  6943. }
  6944. this.$forceUpdate();
  6945. },
  6946. addAskList() {
  6947. this.askJson.askJson.push({
  6948. askstitle: "",
  6949. askItem: 1,
  6950. checkList: [],
  6951. });
  6952. this.askJson.askCount++;
  6953. },
  6954. addTestList() {
  6955. this.testJson.testJson.push({
  6956. teststitle: "",
  6957. testItem: 1,
  6958. checkList: [],
  6959. timuList: [],
  6960. answer: [],
  6961. type: "1",
  6962. });
  6963. this.testJson.testCount++;
  6964. },
  6965. deleteAskList(index) {
  6966. this.askJson.askJson.splice(index, 1);
  6967. this.askJson.askCount--;
  6968. },
  6969. deleteTestList(index) {
  6970. this.testJson.testJson.splice(index, 1);
  6971. this.testJson.testCount--;
  6972. },
  6973. addcheckList(json) {
  6974. json.checkList.length++;
  6975. json.askItem++;
  6976. },
  6977. deletecheckList(json) {
  6978. json.checkList.length--;
  6979. json.askItem--;
  6980. },
  6981. addTcheckList(json) {
  6982. json.checkList.length++;
  6983. json.testItem++;
  6984. },
  6985. deleteTcheckList(json) {
  6986. json.checkList.length--;
  6987. json.testItem--;
  6988. },
  6989. checkTestType(type, json) {
  6990. json.type = type;
  6991. json.answer = [];
  6992. },
  6993. checkAskType(type, json) {
  6994. json.type = type;
  6995. json.checkList = [];
  6996. },
  6997. addSelectList(json) {
  6998. json.select.push("");
  6999. json.answer.push("");
  7000. },
  7001. deleteSelectList(json) {
  7002. // json.select.length--;
  7003. // json.answer.length--;
  7004. json.select.splice(json.select.length - 1, 1);
  7005. json.answer.splice(json.answer.length - 1, 1);
  7006. },
  7007. addAsk() {
  7008. if (this.askJson.askTitle === "") {
  7009. this.$message.error("标题不能为空!");
  7010. return;
  7011. }
  7012. var aj = this.askJson.askJson;
  7013. var b = 1;
  7014. for (var i = 0; i < aj.length; i++) {
  7015. if (aj[i].askstitle === "") {
  7016. var a = 1;
  7017. for (let index = 0; index < aj[i].askItem; index++) {
  7018. const element = aj[i].checkList[index]
  7019. ? aj[i].checkList[index]
  7020. : "";
  7021. if (element != "") {
  7022. b++;
  7023. this.$message.error("填写了选项,题目不能为空!");
  7024. return;
  7025. } else {
  7026. a++;
  7027. }
  7028. }
  7029. if (b == 1) {
  7030. this.$message.error("至少填写一个问题");
  7031. return;
  7032. }
  7033. } else if (aj[i].askstitle != "") {
  7034. for (let index = 0; index < aj[i].askItem; index++) {
  7035. const element = aj[i].checkList[index]
  7036. ? aj[i].checkList[index]
  7037. : "";
  7038. var index = 0;
  7039. for (var z = 0; z < aj[i].checkList.length; z++) {
  7040. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7041. if (checkC != "") {
  7042. index++;
  7043. } else {
  7044. this.$message.error("选项不能为空!");
  7045. return;
  7046. }
  7047. }
  7048. b++;
  7049. if (index < 2) {
  7050. this.$message.error("填写了的题目,选项至少要有两项!");
  7051. return;
  7052. }
  7053. }
  7054. }
  7055. }
  7056. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7057. var elc = el.checkList.filter((element) => {
  7058. return element != "";
  7059. });
  7060. return el.askstitle != "" && elc.length != 0;
  7061. });
  7062. if (!this.dialogVisible4) {
  7063. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7064. this.taskCount
  7065. ].toolChoose[this.toolIndex] = this.askJson;
  7066. }
  7067. this.dialogVisible5 = false;
  7068. if (
  7069. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7070. .toolChoose[this.toolIndex].tool != 4
  7071. ) {
  7072. this.addTools(4, this.taskCount, this.toolIndex);
  7073. }
  7074. },
  7075. addTest() {
  7076. // if (this.testJson.testTitle === "") {
  7077. // this.$message.error("标题不能为空!");
  7078. // return;
  7079. // }
  7080. var aj = this.testJson.testJson;
  7081. var b = 1;
  7082. for (var i = 0; i < aj.length; i++) {
  7083. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  7084. var a = 1;
  7085. for (let index = 0; index < aj[i].testItem; index++) {
  7086. const element = aj[i].checkList[index]
  7087. ? aj[i].checkList[index]
  7088. : "";
  7089. if (element != "") {
  7090. b++;
  7091. this.$message.error("填写了选项,题目不能为空!");
  7092. return;
  7093. } else {
  7094. a++;
  7095. }
  7096. }
  7097. if (b == 1) {
  7098. this.$message.error("至少填写一个问题");
  7099. return;
  7100. }
  7101. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  7102. for (let index = 0; index < aj[i].testItem; index++) {
  7103. const element = aj[i].checkList[index]
  7104. ? aj[i].checkList[index]
  7105. : "";
  7106. var index = 0;
  7107. for (var z = 0; z < aj[i].checkList.length; z++) {
  7108. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7109. if (checkC != "") {
  7110. index++;
  7111. } else {
  7112. this.$message.error("选项不能为空!");
  7113. return;
  7114. }
  7115. }
  7116. b++;
  7117. if (index < 2) {
  7118. this.$message.error("填写了的题目,选项至少要有两项!");
  7119. return;
  7120. }
  7121. if (
  7122. (aj[i].type == "2" && !aj[i].answer.length) ||
  7123. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  7124. ) {
  7125. this.$message.error("有题目未选择答案请选择答案");
  7126. return;
  7127. }
  7128. }
  7129. }
  7130. }
  7131. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7132. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7133. var elc = el.checkList.filter((element) => {
  7134. return element != "";
  7135. });
  7136. return (
  7137. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7138. );
  7139. });
  7140. isTestJson.testCount = isTestJson.testJson.length;
  7141. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7142. this.taskCount
  7143. ].toolChoose[this.toolIndex].testJson = isTestJson;
  7144. this.dialogVisibleChoice = false;
  7145. if (
  7146. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7147. .toolChoose[this.toolIndex].tool != 45
  7148. ) {
  7149. this.addTools(45, this.taskCount, this.toolIndex);
  7150. }
  7151. },
  7152. addVideoJson(videoJson) {
  7153. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7154. this.taskCount
  7155. ].toolChoose[this.toolIndex].videoJson = videoJson;
  7156. this.dialogVisibleVideo = false;
  7157. if (
  7158. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7159. .toolChoose[this.toolIndex].tool != 62
  7160. ) {
  7161. this.addTools(62, this.taskCount, this.toolIndex);
  7162. }
  7163. },
  7164. //自动获取剪贴板
  7165. pasteOption() {
  7166. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7167. if (!iframe) {
  7168. this.$message.error("请使用AI共创生成题目");
  7169. return;
  7170. }
  7171. let copyData = iframe.contentWindow.copyData;
  7172. if (!copyData || !copyData.selectData.length) {
  7173. this.$message.error("请使用AI共创生成题目");
  7174. return;
  7175. }
  7176. let selectData = copyData.selectData;
  7177. for (var i = 0; i < selectData.length; i++) {
  7178. let answer = 0;
  7179. switch (selectData[i].answer[0]) {
  7180. case "A":
  7181. answer = 0;
  7182. break;
  7183. case "B":
  7184. answer = 1;
  7185. break;
  7186. case "C":
  7187. answer = 2;
  7188. break;
  7189. case "D":
  7190. answer = 3;
  7191. break;
  7192. case "E":
  7193. answer = 4;
  7194. break;
  7195. default:
  7196. break;
  7197. }
  7198. this.testJson.testJson.push({
  7199. teststitle: selectData[i].subject,
  7200. testItem: selectData[i].options.length,
  7201. checkList: selectData[i].options,
  7202. timuList: [],
  7203. answer: answer,
  7204. type: "1",
  7205. });
  7206. this.testJson.testCount++;
  7207. }
  7208. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7209. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7210. var elc = el.checkList.filter((element) => {
  7211. return element != "";
  7212. });
  7213. return (
  7214. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7215. );
  7216. });
  7217. isTestJson.testCount = isTestJson.testJson.length;
  7218. this.testJson = isTestJson;
  7219. this.$forceUpdate();
  7220. },
  7221. pasteTask() {
  7222. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7223. if (!iframe) {
  7224. this.$message.error("请使用AI共创生成");
  7225. return;
  7226. }
  7227. let copyData = iframe.contentWindow.copyData;
  7228. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  7229. this.$message.error("请使用AI共创生成");
  7230. return;
  7231. }
  7232. let stageTasksData = copyData.tasksData;
  7233. let taskA = [];
  7234. let tasks = stageTasksData;
  7235. for (var j = 0; j < tasks.length; j++) {
  7236. taskA.push({
  7237. task: tasks[j].taskName,
  7238. taskDetail: tasks[j].taskDecs,
  7239. chapterData: [],
  7240. toolText: "",
  7241. toolChoose: [
  7242. {
  7243. tool: [],
  7244. toolDetail: "",
  7245. toolType: 1,
  7246. askCount: 1,
  7247. askTitle: "",
  7248. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7249. },
  7250. ],
  7251. isShowTools: false,
  7252. askCount: 1,
  7253. isFold: 0,
  7254. askTitle: "",
  7255. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7256. checkJson: [{ checkCount: [], checkPerent: [] }],
  7257. homeworkList: [],
  7258. });
  7259. }
  7260. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  7261. this.$forceUpdate();
  7262. },
  7263. pasteStage() {
  7264. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7265. if (!iframe) {
  7266. this.$message.error("请使用AI共创生成");
  7267. return;
  7268. }
  7269. let copyData = iframe.contentWindow.copyData;
  7270. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  7271. this.$message.error("请使用AI共创生成");
  7272. return;
  7273. }
  7274. let stageData = copyData.stageData;
  7275. let stage = [];
  7276. for (var i = 0; i < stageData.length; i++) {
  7277. stage.push({
  7278. dyName: stageData[i], //单元标题
  7279. chapterInfo: [
  7280. {
  7281. isread: false,
  7282. chapterid: this.guid(),
  7283. title: "",
  7284. courseName: "",
  7285. taskJson: [
  7286. {
  7287. task: "",
  7288. taskDetail: "",
  7289. chapterData: [],
  7290. toolText: "",
  7291. toolChoose: [
  7292. {
  7293. tool: [],
  7294. toolDetail: "",
  7295. toolType: 1,
  7296. askCount: 1,
  7297. askTitle: "",
  7298. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7299. },
  7300. ],
  7301. isShowTools: false,
  7302. askCount: 1,
  7303. isFold: 0,
  7304. askTitle: "",
  7305. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7306. checkJson: [{ checkCount: [], checkPerent: [] }],
  7307. homeworkList: [],
  7308. },
  7309. ],
  7310. itemCount: 1,
  7311. fileList1: [],
  7312. video: [],
  7313. testData: [],
  7314. pData: [],
  7315. templateArray: [],
  7316. },
  7317. ],
  7318. });
  7319. }
  7320. let _this = this;
  7321. _this
  7322. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  7323. confirmButtonText: "确定",
  7324. cancelButtonText: "取消",
  7325. type: "warning",
  7326. })
  7327. .then(() => {
  7328. _this.unitIndex = 0;
  7329. _this.unitJson = stage;
  7330. _this.steps++;
  7331. _this.updateWork();
  7332. })
  7333. .catch(() => {
  7334. return;
  7335. });
  7336. },
  7337. addAnswer() {
  7338. if (this.answerQ == "") {
  7339. this.$message.error("请输入您想要问的问题");
  7340. return;
  7341. }
  7342. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7343. this.taskCount
  7344. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7345. this.dialogVisible8 = false;
  7346. if (
  7347. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7348. .toolChoose[this.toolIndex].tool != 15
  7349. ) {
  7350. this.addTools(15, this.taskCount, this.toolIndex);
  7351. }
  7352. },
  7353. addMp3Answer() {
  7354. if (this.answerQ == "") {
  7355. this.$message.error("请输入您想要回答的问题");
  7356. return;
  7357. }
  7358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7359. this.taskCount
  7360. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7361. this.dialogVisibleMp3 = false;
  7362. },
  7363. addRateAnswer() {
  7364. var a = 1;
  7365. for (var i = 0; i < this.rateJson.length; i++) {
  7366. if (this.rateJson[i].value == "") {
  7367. a = 2;
  7368. break;
  7369. }
  7370. }
  7371. if (a == 2) {
  7372. this.$message.error("请把评价信息填写完整");
  7373. return;
  7374. }
  7375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7376. this.taskCount
  7377. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7378. this.dialogVisibleRate = false;
  7379. if (
  7380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7381. .toolChoose[this.toolIndex].tool != 40
  7382. ) {
  7383. this.addTools(40, this.taskCount, this.toolIndex);
  7384. }
  7385. },
  7386. addSelectAnswer() {
  7387. if (this.selectJson.url == "") {
  7388. this.$message.error("请上传题目");
  7389. return;
  7390. }
  7391. if (!this.selectJson.select.length) {
  7392. this.$message.error("请添加选项");
  7393. return;
  7394. }
  7395. if (!this.selectJson.answer.length) {
  7396. this.$message.error("请设置答案");
  7397. return;
  7398. }
  7399. var a = 1;
  7400. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7401. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7402. a = 2;
  7403. }
  7404. }
  7405. if (a == 2) {
  7406. this.$message.error("请设置答案");
  7407. return;
  7408. }
  7409. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7410. this.taskCount
  7411. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7412. this.dialogVisibleSelect = false;
  7413. if (
  7414. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7415. .toolChoose[this.toolIndex].tool != 41
  7416. ) {
  7417. this.addTools(41, this.taskCount, this.toolIndex);
  7418. }
  7419. },
  7420. nextSelectSteps() {
  7421. if (this.selectJson.url == "") {
  7422. this.$message.error("请上传题目");
  7423. return;
  7424. }
  7425. if (!this.selectJson.select.length) {
  7426. this.$message.error("请添加选项");
  7427. return;
  7428. }
  7429. var a = 1;
  7430. for (var i = 0; i < this.selectJson.select.length; i++) {
  7431. if (!this.selectJson.select[i]) {
  7432. a = 2;
  7433. }
  7434. }
  7435. if (a == 2) {
  7436. this.$message.error("添加的选项不能为空");
  7437. return;
  7438. }
  7439. this.selectSteps++;
  7440. },
  7441. selectCourseDetail() {
  7442. if (this.cid == "" || this.cid == undefined) {
  7443. console.log("这是新增课程");
  7444. this.selectAllType();
  7445. } else {
  7446. this.cidType = 1;
  7447. let params = {
  7448. cid: this.cid,
  7449. };
  7450. this.ajax
  7451. .get(this.$store.state.api + "select_course_detail", params)
  7452. .then((res) => {
  7453. this.loading = true;
  7454. this.unitJson = JSON.parse(res.data[0][0].chapters);
  7455. for (var j = 0; j < this.unitJson.length; j++) {
  7456. for (
  7457. var k = 0;
  7458. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  7459. k++
  7460. ) {
  7461. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  7462. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7463. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7464. : [];
  7465. let _chapterData = [];
  7466. for (
  7467. var c = 0;
  7468. c <
  7469. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  7470. .length;
  7471. c++
  7472. ) {
  7473. if (
  7474. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7475. ) {
  7476. _chapterData.push(
  7477. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7478. );
  7479. }
  7480. }
  7481. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  7482. _chapterData;
  7483. }
  7484. }
  7485. this.$forceUpdate();
  7486. this.courseName = res.data[0][0].title;
  7487. this.courseText = res.data[0][0].brief;
  7488. this.evalua = res.data[0][0].evaId;
  7489. this.cover = JSON.parse(res.data[0][0].cover);
  7490. this.noneBtnImg = this.cover.length >= 1;
  7491. // this.checkboxList =
  7492. // res.data[0][0].course_student.length > 0
  7493. // ? JSON.parse(res.data[0][0].course_student)
  7494. // : [];
  7495. this.checkboxList2 = res.data[0][0].juri
  7496. ? res.data[0][0].juri.split(",")
  7497. : [];
  7498. this.inviteCode = [];
  7499. for (var i = 0; i < res.data[2].length; i++) {
  7500. this.inviteCode.push({
  7501. cid: res.data[2][i].classid,
  7502. ic: res.data[2][i].code,
  7503. });
  7504. }
  7505. this.checkboxList3 = res.data[0][0].course_teacher
  7506. ? res.data[0][0].course_teacher.split(",")
  7507. : [];
  7508. // this.isTeacherSee =
  7509. // res.data[0][0].is_teacher_look == 0 ? true : false;
  7510. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  7511. this.myWord = res.data[0][0].template;
  7512. this.templateC.id = "123";
  7513. this.courseUserid = res.data[0][0].userid;
  7514. // if(this.courseUserid == this.userid){
  7515. // this.InviteChange(this.checkboxList2)
  7516. // }
  7517. this.nbOrder = res.data[0][0].ordernumber;
  7518. this.courseTypeId = [];
  7519. for (var i = 0; i < res.data[1].length; i++) {
  7520. this.courseTypeId.push(res.data[1][i].typeid);
  7521. }
  7522. console.log(this.courseTypeId);
  7523. // if (this.timer) clearInterval(this.timer);
  7524. if (this.timer) clearTimeout(this.timer);
  7525. this.timer = null;
  7526. // this.timer = setInterval(() => {
  7527. // this.seleteCourseUpdate();
  7528. this.setMan();
  7529. this.selectAllType();
  7530. // }, 5000);
  7531. this.$forceUpdate();
  7532. setTimeout(() => {
  7533. this.checkEva(this.evalua);
  7534. }, 0);
  7535. })
  7536. .catch((err) => {
  7537. console.error(err);
  7538. });
  7539. }
  7540. },
  7541. seleteCourseUpdate() {
  7542. let params = {
  7543. cid: this.cid,
  7544. };
  7545. this.ajax
  7546. .get(this.$store.state.api + "select_course_detail", params)
  7547. .then((res) => {
  7548. // console.log(this.unitJson);
  7549. let unitJson = JSON.parse(res.data[0][0].chapters);
  7550. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  7551. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  7552. let _unitJson = [];
  7553. let _chapAarry = [];
  7554. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  7555. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  7556. let index = 1;
  7557. let chapindex;
  7558. if (_unitJson2.length > unitJson.length) {
  7559. for (let c = 0; c < _unitJson2.length; c++) {
  7560. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  7561. }
  7562. for (let j = 0; j < unitJson.length; j++) {
  7563. let count = 0;
  7564. for (let k = 0; k < _unitJson2.length; k++) {
  7565. if (
  7566. unitJson[j].chapterInfo[0].chapterid ==
  7567. _unitJson2[k].chapterInfo[0].chapterid
  7568. ) {
  7569. count++;
  7570. _chapAarry.splice(
  7571. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7572. 1
  7573. );
  7574. _unitJson.push(unitJson[j]);
  7575. break;
  7576. }
  7577. }
  7578. // if(count === 0){
  7579. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  7580. // }
  7581. }
  7582. for (let k = 0; k < _unitJson2.length; k++) {
  7583. if (_unitJson2[k].isUpdate == 1) {
  7584. _chapAarry.splice(
  7585. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7586. 1
  7587. );
  7588. _unitJson.push(_unitJson2[k]);
  7589. }
  7590. }
  7591. console.log(_chapAarry);
  7592. for (let d = 0; d < _unitJson2.length; d++) {
  7593. if (
  7594. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  7595. ) {
  7596. if (_unitIndex == d) {
  7597. index = 2;
  7598. }
  7599. chapindex = d;
  7600. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  7601. }
  7602. }
  7603. } else {
  7604. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  7605. }
  7606. for (let i = 0; i < unitJson.length; i++) {
  7607. if (
  7608. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  7609. _unitJson[i].chapterInfo[0].chapterid !=
  7610. unitJson[i].chapterInfo[0].chapterid
  7611. ) {
  7612. if (i == _unitJson.length - 1) {
  7613. // this.unitIndex++
  7614. _unitIndex2++;
  7615. }
  7616. _unitJson.splice(i, 0, unitJson[i]);
  7617. } else if (i > _unitJson.length - 1) {
  7618. _unitJson.push(unitJson[i]);
  7619. } else if (
  7620. _unitJson[i].chapterInfo[0].chapterid ==
  7621. unitJson[i].chapterInfo[0].chapterid
  7622. ) {
  7623. _unitJson[i] = unitJson[i];
  7624. }
  7625. // if (i == _unitIndex) {
  7626. // continue;
  7627. // } else
  7628. }
  7629. if (_chapAarry.length && index != 2) {
  7630. if (chapindex < _unitIndex) {
  7631. this.isDelete = 2;
  7632. // this.unitIndex--;
  7633. _unitIndex2--;
  7634. } else if (
  7635. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  7636. _unitJson[_unitIndex].chapterInfo[0].chapterid
  7637. ) {
  7638. this.isDelete = 2;
  7639. for (let n = 0; n < _unitJson.length; n++) {
  7640. if (
  7641. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  7642. _unitJson[n].chapterInfo[0].chapterid
  7643. ) {
  7644. // this.unitIndex = n;
  7645. _unitIndex2 = n;
  7646. _unitJson[n] = _unitJson2[_unitIndex];
  7647. break;
  7648. }
  7649. }
  7650. }
  7651. } else if (index != 2) {
  7652. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  7653. _unitJson2[_unitIndex];
  7654. for (
  7655. var ci = 0;
  7656. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  7657. ci++
  7658. ) {
  7659. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  7660. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  7661. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7662. .toolChoose
  7663. : [];
  7664. let _chapterData = [];
  7665. for (
  7666. var c = 0;
  7667. c <
  7668. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  7669. .length;
  7670. c++
  7671. ) {
  7672. if (
  7673. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7674. .chapterData[c]
  7675. ) {
  7676. _chapterData.push(
  7677. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7678. .chapterData[c]
  7679. );
  7680. }
  7681. }
  7682. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  7683. _chapterData;
  7684. }
  7685. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  7686. }
  7687. if (index == 1) {
  7688. this.unitJson = _unitJson;
  7689. this.$forceUpdate();
  7690. setTimeout(() => {
  7691. if (this.unitIndex != _unitIndex2) {
  7692. this.isDelete = 2;
  7693. this.unitIndex = _unitIndex2;
  7694. }
  7695. }, 0);
  7696. this.timer = setTimeout(() => {
  7697. this.seleteCourseUpdate();
  7698. }, 1000);
  7699. } else if (index == 2) {
  7700. let _this = this;
  7701. _this
  7702. .$confirm(
  7703. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  7704. "提示",
  7705. {
  7706. confirmButtonText: "需要",
  7707. cancelButtonText: "取消",
  7708. type: "warning",
  7709. }
  7710. )
  7711. .then(() => {
  7712. if (_this.time()) {
  7713. _this.restoreWork(
  7714. _chapAarry[0],
  7715. _unitJson,
  7716. chapindex,
  7717. _unitJson2,
  7718. _unitIndex2
  7719. );
  7720. }
  7721. })
  7722. .catch(() => {
  7723. _this.unitJson = _unitJson;
  7724. _this.$forceUpdate();
  7725. setTimeout(() => {
  7726. if (this.unitIndex != _unitIndex2) {
  7727. this.isDelete = 2;
  7728. this.unitIndex = _unitIndex2;
  7729. }
  7730. }, 0);
  7731. _this.timer = setTimeout(() => {
  7732. _this.seleteCourseUpdate();
  7733. }, 1000);
  7734. });
  7735. }
  7736. })
  7737. .catch((err) => {
  7738. console.error(err);
  7739. });
  7740. },
  7741. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  7742. let params = [
  7743. {
  7744. cid: this.cid,
  7745. chapters: JSON.stringify(this.unitJson),
  7746. uid: this.userid,
  7747. chapid: chapid,
  7748. },
  7749. ];
  7750. this.ajax
  7751. .post(this.$store.state.api + "restoreWork", params)
  7752. .then((res) => {
  7753. this.$message({
  7754. message: "恢复成功",
  7755. type: "success",
  7756. });
  7757. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  7758. this.unitJson = unitJson;
  7759. this.$forceUpdate();
  7760. setTimeout(() => {
  7761. if (this.unitIndex != unitIndex2) {
  7762. this.isDelete = 2;
  7763. this.unitIndex = unitIndex2;
  7764. }
  7765. }, 0);
  7766. this.timer = setTimeout(() => {
  7767. this.seleteCourseUpdate();
  7768. }, 1000);
  7769. })
  7770. .catch((err) => {
  7771. this.$message.error("网络不佳");
  7772. console.error(err);
  7773. });
  7774. },
  7775. getTypeName() {
  7776. console.log(this.courseTypeId);
  7777. this.$forceUpdate();
  7778. },
  7779. selectAllType() {
  7780. let params = {
  7781. org: this.org && this.org != "" ? this.org : "",
  7782. oid: this.oid && this.oid != "" ? this.oid : "",
  7783. };
  7784. this.ajax
  7785. .get(this.$store.state.api + "selectAllType", params)
  7786. .then((res) => {
  7787. this.CourseType = res.data;
  7788. this.CourseType2 = [
  7789. { name: "智见课程", id: [] },
  7790. { name: "智行课程", id: [] },
  7791. { name: "智创课程", id: [] },
  7792. ];
  7793. for (var cti = 0; cti < res.data[0].length; cti++) {
  7794. if (
  7795. res.data[0][cti].name == "年级" ||
  7796. res.data[0][cti].name == "学科"
  7797. ) {
  7798. this.CourseType2[1].id.push(res.data[0][cti].id);
  7799. this.CourseType2[0].id.push(res.data[0][cti].id);
  7800. } else if (res.data[0][cti].name == "主题") {
  7801. this.CourseType2[2].id.push(res.data[0][cti].id);
  7802. }
  7803. }
  7804. let _courseTypeId = [];
  7805. for (var i = 0; i < res.data[0].length; i++) {
  7806. if (!this.cid) {
  7807. this.courseTypeId[res.data[0][i].id] = [];
  7808. }
  7809. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  7810. // }
  7811. this.CourseTypeJson[res.data[0][i].id] = [];
  7812. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7813. if (res.data[0][i].name == "栏目") {
  7814. this.CourseType[0][i].name = "主题";
  7815. }
  7816. }
  7817. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7818. for (var j = 0; j < res.data[1].length; j++) {
  7819. if (
  7820. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7821. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7822. ) {
  7823. _courseTypeId.push(res.data[1][j].id);
  7824. }
  7825. if (res.data[0][i].id == res.data[1][j].pid) {
  7826. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7827. }
  7828. }
  7829. } else {
  7830. if (res.data[2].length > 0) {
  7831. for (var j = 0; j < res.data[2].length; j++) {
  7832. if (
  7833. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7834. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7835. ) {
  7836. _courseTypeId.push(res.data[2][j].id);
  7837. }
  7838. if (res.data[0][i].id == res.data[2][j].pid) {
  7839. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7840. }
  7841. }
  7842. }
  7843. if (res.data[3].length > 0) {
  7844. for (var j = 0; j < res.data[3].length; j++) {
  7845. if (
  7846. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7847. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7848. ) {
  7849. _courseTypeId.push(res.data[3][j].id);
  7850. }
  7851. if (res.data[0][i].id == res.data[3][j].pid) {
  7852. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7853. }
  7854. }
  7855. }
  7856. }
  7857. }
  7858. this.courseTypeId = _courseTypeId;
  7859. })
  7860. .catch((err) => {
  7861. console.error(err);
  7862. });
  7863. },
  7864. selectType() {
  7865. this.ajax
  7866. .get(this.$store.state.api + "selectType")
  7867. .then((res) => {
  7868. this.CourseType = res.data;
  7869. for (var i = 0; i < res.data[0].length; i++) {
  7870. if (!this.cid) {
  7871. this.courseTypeId[res.data[0][i].id] = "";
  7872. }
  7873. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7874. if (res.data[0][i].name == "栏目") {
  7875. this.CourseType[0][i].name = "主题";
  7876. }
  7877. }
  7878. for (var j = 0; j < res.data[1].length; j++) {
  7879. if (res.data[0][i].id == res.data[1][j].pid) {
  7880. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7881. this.CourseTypeJson[res.data[0][i].id] = [];
  7882. }
  7883. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7884. }
  7885. }
  7886. }
  7887. this.selectTypeByOid();
  7888. this.selectTypeByOrg();
  7889. })
  7890. .catch((err) => {
  7891. console.error(err);
  7892. });
  7893. },
  7894. selectTypeByOid() {
  7895. let params = {
  7896. oid: this.oid,
  7897. };
  7898. this.ajax
  7899. .get(this.$store.state.api + "selectTypeByOid", params)
  7900. .then((res) => {
  7901. for (var i = 0; i < res.data[0].length; i++) {
  7902. for (var j = 0; j < res.data[1].length; j++) {
  7903. if (res.data[0][i].id == res.data[1][j].pid) {
  7904. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7905. this.CourseTypeJson[res.data[0][i].id] = [];
  7906. }
  7907. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7908. }
  7909. }
  7910. }
  7911. })
  7912. .catch((err) => {
  7913. console.error(err);
  7914. });
  7915. },
  7916. selectTypeByOrg() {
  7917. let params = {
  7918. oid: this.org,
  7919. };
  7920. this.ajax
  7921. .get(this.$store.state.api + "selectTypeByOrg", params)
  7922. .then((res) => {
  7923. for (var i = 0; i < res.data[0].length; i++) {
  7924. for (var j = 0; j < res.data[1].length; j++) {
  7925. if (res.data[0][i].id == res.data[1][j].pid) {
  7926. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7927. this.CourseTypeJson[res.data[0][i].id] = [];
  7928. }
  7929. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7930. }
  7931. }
  7932. }
  7933. this.$forceUpdate();
  7934. })
  7935. .catch((err) => {
  7936. console.error(err);
  7937. });
  7938. },
  7939. OtherMb(type) {
  7940. this.typeMode = type;
  7941. setTimeout(() => {
  7942. this.checkEva(this.checkId);
  7943. }, 0);
  7944. },
  7945. openMember() {
  7946. this.searchTN = "";
  7947. this.getTeacher();
  7948. this.dialogVisibleMember = true;
  7949. },
  7950. checkEva(id, type) {
  7951. this.dialogVisiblemb = false;
  7952. this.selectEva();
  7953. if (this.evalua != id && type == 2) {
  7954. this.$message.success("导入成功");
  7955. }
  7956. this.evalua = id;
  7957. this.checkId = id;
  7958. if (this.evalua != "") {
  7959. for (var i = 0; i < this.evaJuri.length; i++) {
  7960. if (this.evalua == this.evaJuri[i].id) {
  7961. this.eTitle = this.evaJuri[i].title;
  7962. this.eJson = JSON.parse(this.evaJuri[i].content);
  7963. }
  7964. }
  7965. this.data.data = [];
  7966. this.$forceUpdate();
  7967. setTimeout(() => {
  7968. this.setMindData();
  7969. }, 500);
  7970. }
  7971. },
  7972. deleteEva() {
  7973. let _this = this;
  7974. if (_this.evalua == "") {
  7975. this.$message.warning("内容已经清空了,请勿重复清空");
  7976. return;
  7977. }
  7978. _this
  7979. .$confirm("确定删除此目标吗?", "提示", {
  7980. confirmButtonText: "确定",
  7981. cancelButtonText: "取消",
  7982. type: "warning",
  7983. })
  7984. .then(() => {
  7985. _this.evalua = "";
  7986. _this.checkId = "";
  7987. _this.eTitle = "";
  7988. let _unitJson = _this.unitJson;
  7989. for (var i = 0; i < _unitJson.length; i++) {
  7990. let _task = _unitJson[i].chapterInfo[0].taskJson;
  7991. for (var j = 0; j < _task.length; j++) {
  7992. let _eList = _task[j].eList;
  7993. for (var k = 0; k < _eList.length; k++) {
  7994. delete _eList[k].target;
  7995. }
  7996. }
  7997. }
  7998. _this.$forceUpdate();
  7999. if (_this.cid) {
  8000. _this.updateWork();
  8001. }
  8002. })
  8003. .catch(() => {
  8004. return;
  8005. });
  8006. },
  8007. selectEva() {
  8008. let params = {
  8009. oid: this.oid,
  8010. };
  8011. this.ajax
  8012. .get(this.$store.state.api + "selectAllEvaluation", params)
  8013. .then((res) => {
  8014. this.evaJuri = res.data[0];
  8015. })
  8016. .catch((err) => {
  8017. console.error(err);
  8018. });
  8019. },
  8020. setMindData() {
  8021. let targetArray = [];
  8022. this.data.data = [];
  8023. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8024. let _eJson = Object.keys(this.eJson);
  8025. let _e = this.eJson;
  8026. for (let i = 0; i < _eJson.length; i++) {
  8027. let element = _e[_eJson[i]];
  8028. this.data.data.push({
  8029. id: element.id,
  8030. parentid: "root",
  8031. topic: element.name,
  8032. });
  8033. // targetArray.push({
  8034. // id: element.id,
  8035. // parentid: "root",
  8036. // name: element.name,
  8037. // });
  8038. targetArray.push({
  8039. value: element.name,
  8040. label: element.name,
  8041. children: [],
  8042. });
  8043. let _eJsonc = Object.keys(element.child);
  8044. let _e2 = element.child;
  8045. for (let j = 0; j < _eJsonc.length; j++) {
  8046. let _ec = _e2[_eJsonc[j]];
  8047. this.data.data.push({
  8048. id: _ec.id,
  8049. parentid: element.id,
  8050. topic: _ec.name,
  8051. });
  8052. // targetArray.push({
  8053. // id: _ec.id,
  8054. // parentid: element.id,
  8055. // name: _ec.name,
  8056. // });
  8057. targetArray[i].children.push({
  8058. value: _ec.name,
  8059. label: _ec.name,
  8060. children: [],
  8061. });
  8062. let _eJsonz = Object.keys(_ec.child);
  8063. let _e3 = _ec.child;
  8064. for (let z = 0; z < _eJsonz.length; z++) {
  8065. let _ez = _e3[_eJsonz[z]];
  8066. this.data.data.push({
  8067. id: _ez.id,
  8068. parentid: _ec.id,
  8069. topic: _ez.name,
  8070. });
  8071. // targetArray.push({
  8072. // id: _ez.id,
  8073. // parentid: _ec.id,
  8074. // name: _ez.name,
  8075. // });
  8076. targetArray[i].children[j].children.push({
  8077. value: _ez.name,
  8078. label: _ez.name,
  8079. });
  8080. }
  8081. }
  8082. }
  8083. this.targetArray = targetArray;
  8084. this.$forceUpdate();
  8085. },
  8086. /*添加评价 */
  8087. addEList(index, tIndex) {
  8088. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8089. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8090. value: "",
  8091. detail: "",
  8092. score: 5,
  8093. })
  8094. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8095. { value: "", detail: "", score: 5 },
  8096. ]);
  8097. this.$forceUpdate();
  8098. },
  8099. forceUpdate() {
  8100. this.$forceUpdate();
  8101. },
  8102. deletEList(index, tIndex, eIndex) {
  8103. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8104. eIndex,
  8105. 1
  8106. );
  8107. this.$forceUpdate();
  8108. },
  8109. getChoosePic(t) {
  8110. this.chooseType = t;
  8111. this.getAllBanner();
  8112. },
  8113. getAllBanner() {
  8114. this.sysPicVisible = true;
  8115. let params = {
  8116. t: this.chooseType,
  8117. };
  8118. this.ajax
  8119. .get(this.$store.state.api + "selectAllBanner", params)
  8120. .then((res) => {
  8121. this.sysPic = res.data[0];
  8122. })
  8123. .catch((err) => {
  8124. console.error(err);
  8125. });
  8126. },
  8127. // getClass() {
  8128. // let params = {
  8129. // oid: this.oid,
  8130. // };
  8131. // this.ajax
  8132. // .get(this.$store.state.api + "selectClassBySchool", params)
  8133. // .then((res) => {
  8134. // this.classJuri = res.data[0];
  8135. // })
  8136. // .catch((err) => {
  8137. // console.error(err);
  8138. // });
  8139. // },
  8140. deleteSysPic() {
  8141. this.cover = [];
  8142. this.isSysPic = false;
  8143. },
  8144. deleteSelectPic() {
  8145. this.selectJson.url = "";
  8146. },
  8147. setEListStar() {
  8148. this.$forceUpdate();
  8149. },
  8150. deletRateList(i) {
  8151. this.rateJson.splice(i, 1);
  8152. },
  8153. addRateList() {
  8154. this.rateJson.push({ detail: "", score: 5, value: "" });
  8155. },
  8156. addSt() {
  8157. this.sentenceList.push({
  8158. sentenceTitle: "",
  8159. addSentence: [],
  8160. rightAnswer: [],
  8161. });
  8162. },
  8163. addSen(i) {
  8164. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8165. // this.isPushTitleList.push(this.sentenceTitle);
  8166. this.sentenceList[i].sentenceTitle = "";
  8167. },
  8168. setRightAnswer(s, i, j) {
  8169. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8170. this.sentenceList[i].rightAnswer.push(s);
  8171. }
  8172. },
  8173. returnCard(r, i, j) {
  8174. this.sentenceList[i].rightAnswer.splice(j, 1);
  8175. },
  8176. addSentenceTool() {
  8177. for (var i = 0; i < this.sentenceList.length; i++) {
  8178. if (this.sentenceList[i].rightAnswer.length == 0) {
  8179. this.$message.error("请将信息填写完整!");
  8180. return;
  8181. }
  8182. if (
  8183. this.sentenceList[i].addSentence.length !=
  8184. this.sentenceList[i].rightAnswer.length
  8185. ) {
  8186. this.$message.error("请将信息填写完整!");
  8187. return;
  8188. }
  8189. }
  8190. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8191. this.taskCount
  8192. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8193. this.sentenceList = [
  8194. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8195. ];
  8196. this.dialogVisibleSentence = false;
  8197. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8198. // itemTaskIndex
  8199. // ].toolChoose[toolIndex].tool = [];
  8200. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8201. // itemTaskIndex
  8202. // ].toolChoose[toolIndex].tool.push(i);
  8203. if (
  8204. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8205. .toolChoose[this.toolIndex].tool != 47
  8206. ) {
  8207. this.addTools(47, this.taskCount, this.toolIndex);
  8208. }
  8209. },
  8210. addTableJson() {
  8211. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8212. // this.$message.error("请将信息填写完整!");
  8213. // return;
  8214. // }
  8215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8216. this.taskCount
  8217. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  8218. // this.tableJson = [{ text: "" }];
  8219. // this.dialogVisibleTable = false;
  8220. this.$message.success("上传成功");
  8221. if (
  8222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8223. .toolChoose[this.toolIndex].tool != 48
  8224. ) {
  8225. this.addTools(48, this.taskCount, this.toolIndex);
  8226. }
  8227. },
  8228. addWordJson() {
  8229. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8230. this.taskCount
  8231. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  8232. // this.wordJson = [{ text: "" }];
  8233. // this.dialogVisibleWord = false;
  8234. this.$message.success("上传成功");
  8235. if (
  8236. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8237. .toolChoose[this.toolIndex].tool != 52
  8238. ) {
  8239. this.addTools(52, this.taskCount, this.toolIndex);
  8240. }
  8241. },
  8242. addMoreUpload() {
  8243. if (this.uploadJson.length == 0) {
  8244. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8245. this.taskCount
  8246. ].toolChoose[this.toolIndex].uploadJson = [];
  8247. } else {
  8248. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8249. this.taskCount
  8250. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  8251. }
  8252. this.uploadJson = [];
  8253. this.dialogVisibleMoreUpload = false;
  8254. if (
  8255. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8256. .toolChoose[this.toolIndex].tool != 50
  8257. ) {
  8258. this.addTools(50, this.taskCount, this.toolIndex);
  8259. }
  8260. },
  8261. addPreTime() {
  8262. if (this.preTime == 0) {
  8263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8264. this.taskCount
  8265. ].toolChoose[this.toolIndex].preTime = 0;
  8266. } else {
  8267. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8268. this.taskCount
  8269. ].toolChoose[this.toolIndex].preTime = this.preTime;
  8270. }
  8271. this.preTime = 0;
  8272. this.dialogVisiblePreTime = false;
  8273. if (
  8274. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8275. .toolChoose[this.toolIndex].tool != 10
  8276. ) {
  8277. this.addTools(10, this.taskCount, this.toolIndex);
  8278. }
  8279. },
  8280. goToTask(i) {
  8281. $(".rightBox")[0].scrollTop =
  8282. $(".taskBorder")[i+1].offsetTop +
  8283. $(".taskBorder")[i+1].parentElement.parentElement.offsetTop;
  8284. this.isClickColor = i + 1;
  8285. },
  8286. taskMove(type, index) {
  8287. // this
  8288. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  8289. // confirmButtonText: "确定",
  8290. // cancelButtonText: "取消",
  8291. // type: "warning",
  8292. // })
  8293. // .then(() => {
  8294. if (type == 1) {
  8295. if (index > 0) {
  8296. let a = JSON.parse(
  8297. JSON.stringify(
  8298. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  8299. )
  8300. );
  8301. let b = JSON.parse(
  8302. JSON.stringify(
  8303. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  8304. )
  8305. );
  8306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8307. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8308. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8309. if (index - 1 == 0) {
  8310. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8311. index - 1
  8312. ].chapterData = a.chapterData;
  8313. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8314. index
  8315. ].chapterData = b.chapterData;
  8316. }
  8317. }
  8318. } else {
  8319. if (
  8320. index <
  8321. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8322. ) {
  8323. let a = JSON.parse(
  8324. JSON.stringify(
  8325. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  8326. )
  8327. );
  8328. let b = JSON.parse(
  8329. JSON.stringify(
  8330. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  8331. )
  8332. );
  8333. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8334. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8335. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8336. if (index == 0) {
  8337. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8338. index + 1
  8339. ].chapterData = a.chapterData;
  8340. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8341. index
  8342. ].chapterData = b.chapterData;
  8343. }
  8344. }
  8345. }
  8346. this.$forceUpdate();
  8347. // })
  8348. // .catch(() => {
  8349. // return;
  8350. // })
  8351. },
  8352. addGroup(i) {
  8353. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8354. this.groupJson.group.push({
  8355. name: "第" + (this.groupJson.group.length + 1) + "组",
  8356. });
  8357. },
  8358. deleteGroup(i) {
  8359. this.groupJson.group.splice(i, 1);
  8360. },
  8361. addGroupJson() {
  8362. for (var i = 0; i < this.groupJson.group.length; i++) {
  8363. if (!this.groupJson.group[i].name) {
  8364. this.$message.error("请将信息填写完整!");
  8365. return;
  8366. }
  8367. }
  8368. if (!this.groupJson.number) {
  8369. this.$message.error("请将信息填写完整!");
  8370. return;
  8371. }
  8372. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8373. this.taskCount
  8374. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8375. JSON.stringify(this.groupJson)
  8376. );
  8377. this.dialogVisibleGroup = false;
  8378. this.groupJson = {};
  8379. if (
  8380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8381. .toolChoose[this.toolIndex].tool != 49
  8382. ) {
  8383. this.addTools(49, this.taskCount, this.toolIndex);
  8384. }
  8385. },
  8386. updateTime(preTime) {
  8387. this.preTime = preTime;
  8388. },
  8389. InviteChange(val) {
  8390. console.log(val);
  8391. return;
  8392. let array = JSON.parse(JSON.stringify(val));
  8393. this.inviteCode = this.inviteCode.filter((el) => {
  8394. if (val.indexOf(el.cid) != -1) {
  8395. array.splice(array.indexOf(el.cid), 1);
  8396. return el;
  8397. }
  8398. });
  8399. for (var i = 0; i < array.length; i++) {
  8400. this.getInviteCode(array[i]);
  8401. }
  8402. },
  8403. async getInviteCode(cid) {
  8404. let code = this.randomNumber();
  8405. let params = {
  8406. code: code,
  8407. oid: this.oid,
  8408. };
  8409. let type = 1;
  8410. for (var i = 0; i < this.inviteCode.length; i++) {
  8411. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  8412. type = 2;
  8413. }
  8414. }
  8415. if (type == 2) {
  8416. this.getInviteCode(cid);
  8417. return;
  8418. }
  8419. const res = await this.ajax.get(
  8420. this.$store.state.api + "selectInviteCode2",
  8421. params
  8422. );
  8423. if (
  8424. res.data.length &&
  8425. res.data[0].length &&
  8426. res.data[0][0].courseId != this.cid
  8427. ) {
  8428. this.getInviteCode(cid);
  8429. return;
  8430. }
  8431. let array = [];
  8432. for (var i = 0; i < this.inviteCode.length; i++) {
  8433. array.push(this.inviteCode[i].cid);
  8434. }
  8435. if (array.indexOf(cid) != -1) {
  8436. this.inviteCode[array.indexOf(cid)].ic = code;
  8437. } else {
  8438. this.inviteCode.push({ cid: cid, ic: code });
  8439. }
  8440. },
  8441. OpenInviteD(cid) {
  8442. let array = [];
  8443. this.icode = "";
  8444. for (var i = 0; i < this.inviteCode.length; i++) {
  8445. array.push(this.inviteCode[i].cid);
  8446. }
  8447. if (array.indexOf(cid) != -1) {
  8448. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  8449. }
  8450. this.inviteId = cid;
  8451. this.dialogVisibleInvite = true;
  8452. },
  8453. addInvite() {
  8454. let reg = /^[A-Za-z0-9]{4,}$/;
  8455. if (!reg.test(this.icode)) {
  8456. this.$message.error("请输入至少四位数字或英文组合的随机码");
  8457. return;
  8458. }
  8459. let type = 1;
  8460. for (var i = 0; i < this.inviteCode.length; i++) {
  8461. if (
  8462. this.inviteCode[i].cid != this.inviteId &&
  8463. this.icode == this.inviteCode[i].ic
  8464. ) {
  8465. type = 2;
  8466. }
  8467. }
  8468. if (type == 2) {
  8469. this.$message.error("已有此随机码,不能重复");
  8470. return;
  8471. }
  8472. let params = {
  8473. code: this.icode,
  8474. oid: this.oid,
  8475. };
  8476. this.ajax
  8477. .get(this.$store.state.api + "selectInviteCode", params)
  8478. .then((res) => {
  8479. if (
  8480. res.data.length &&
  8481. res.data[0].length &&
  8482. res.data[0][0].courseId != this.cid
  8483. ) {
  8484. this.$message.error("已有此随机码,不能重复");
  8485. return;
  8486. }
  8487. let array = [];
  8488. for (var i = 0; i < this.inviteCode.length; i++) {
  8489. array.push(this.inviteCode[i].cid);
  8490. }
  8491. if (array.indexOf(this.inviteId) != -1) {
  8492. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  8493. } else {
  8494. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  8495. }
  8496. this.icode = "";
  8497. this.dialogVisibleInvite = false;
  8498. })
  8499. .catch((err) => {
  8500. console.error(err);
  8501. });
  8502. },
  8503. randomNumber() {
  8504. // 随机生成两位数
  8505. // let num = Math.floor(Math.random() * 900) + 100;
  8506. // 生成 0 到 99 之间的随机整数
  8507. const randomNumber = Math.floor(Math.random() * 100);
  8508. // 如果随机数小于 10,补上前导零
  8509. const num =
  8510. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  8511. // 随机生成两个大写字母
  8512. let letters = "";
  8513. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  8514. for (let i = 0; i < 3; i++) {
  8515. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  8516. }
  8517. // 随机生成两位数字和字母的组合
  8518. let mix = "";
  8519. let chars =
  8520. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  8521. for (let i = 0; i < 3; i++) {
  8522. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  8523. mix += char;
  8524. }
  8525. // 随机选择一种类型
  8526. let type = Math.floor(Math.random() * 3);
  8527. return num;
  8528. // 根据类型输出结果
  8529. switch (type) {
  8530. case 0:
  8531. console.log(num); // 输出两位数
  8532. return num;
  8533. case 1:
  8534. console.log(letters); // 输出两个大写字母
  8535. return letters;
  8536. case 2:
  8537. console.log(mix); // 输出两位数字和字母的组合
  8538. return mix;
  8539. }
  8540. },
  8541. },
  8542. beforeDestroy() {
  8543. clearTimeout(this.timer);
  8544. this.timer = null;
  8545. clearInterval(this.timer2);
  8546. this.timer2 = null;
  8547. },
  8548. beforeRouteLeave(to, from, next) {
  8549. clearTimeout(this.timer);
  8550. this.timer = null;
  8551. clearInterval(this.timer2);
  8552. this.timer2 = null;
  8553. next();
  8554. },
  8555. created() {
  8556. this.getStudent();
  8557. this.getTeacher();
  8558. this.getClass();
  8559. this.getTemplate();
  8560. // this.selectType();
  8561. this.selectEva();
  8562. this.loading = false;
  8563. this.timer2 = setInterval(() => {
  8564. this.selectEva();
  8565. }, 5000);
  8566. setTimeout(() => {
  8567. this.selectCourseDetail();
  8568. }, 500);
  8569. },
  8570. mounted() {
  8571. this.$nextTick(() => {
  8572. //监听这个dom的scroll事件
  8573. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  8574. });
  8575. },
  8576. };
  8577. </script>
  8578. <style scoped>
  8579. @media screen and (max-width: 1280px) {
  8580. .mbCss {
  8581. flex-direction: column !important;
  8582. }
  8583. .pjCss {
  8584. width: 100% !important;
  8585. }
  8586. .evaCss {
  8587. width: 100% !important;
  8588. }
  8589. }
  8590. .dialog_diy>>>.el-dialog__header {
  8591. background: #3c3c3c !important;
  8592. padding: 15px 20px;
  8593. }
  8594. .dialog_diy>>>.el-dialog__title {
  8595. color: #fff;
  8596. }
  8597. .dialog_diy>>>.el-dialog__headerbtn {
  8598. top: 19px;
  8599. }
  8600. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8601. color: #fff;
  8602. }
  8603. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8604. color: #fff;
  8605. }
  8606. .dialog_diy>>>.el-dialog__body,
  8607. .dialog_diy>>>.el-dialog__footer {
  8608. background: #fafafa;
  8609. }
  8610. .dialog_diy3>>>.el-dialog__body,
  8611. .dialog_diy3>>>.el-dialog__footer {
  8612. background: #eee !important;
  8613. }
  8614. .dialog_diy3>>>.el-dialog__body {
  8615. padding: 20px 20px;
  8616. }
  8617. .source_diy>>>.el-dialog {
  8618. height: 100% !important;
  8619. margin: 0 auto !important;
  8620. }
  8621. .source_diy>>>.el-dialog__body {
  8622. height: calc(100% - 185px);
  8623. overflow: auto;
  8624. background: #e6eaf0;
  8625. }
  8626. .source_diy>>>.el-dialog__footer {
  8627. background: #e6eaf0 !important;
  8628. }
  8629. .left {
  8630. border-right: 1px solid rgb(60, 94, 143);
  8631. display: flex;
  8632. flex-direction: column;
  8633. align-items: center;
  8634. min-height: 600px;
  8635. width: 385px;
  8636. height: 80%;
  8637. }
  8638. .tips {
  8639. color: rgb(128, 128, 128);
  8640. font-size: 12px;
  8641. width: 270px;
  8642. margin: 40px;
  8643. }
  8644. .pb_content {
  8645. height: 100% !important;
  8646. /* margin: 0 20px 0 20px; */
  8647. }
  8648. .pb_content_body {
  8649. width: 100% !important;
  8650. height: 100%;
  8651. }
  8652. .info_solid {
  8653. width: 270px;
  8654. height: 30px;
  8655. border-left: 1px solid #bdbdbd;
  8656. margin: 10px 0px 10px 30px;
  8657. }
  8658. .info_steps {
  8659. width: 270px;
  8660. font-size: 0.875rem;
  8661. display: flex;
  8662. align-items: center;
  8663. }
  8664. .info_steps span:nth-child(1) {
  8665. width: 30px;
  8666. height: 30px;
  8667. background: rgba(0, 0, 0, 0.38);
  8668. display: block;
  8669. color: #fff;
  8670. border-radius: 40px;
  8671. text-align: center;
  8672. line-height: 30px;
  8673. }
  8674. .steps_active {
  8675. background: #3d67bc !important;
  8676. }
  8677. .info_steps span:nth-child(2) {
  8678. margin-left: 5px;
  8679. }
  8680. .right {
  8681. height: 100%;
  8682. width: calc(100% - 40px);
  8683. display: flex;
  8684. overflow: hidden;
  8685. margin: 0 auto;
  8686. }
  8687. .basic_box {
  8688. margin: 0 auto;
  8689. position: relative;
  8690. padding: 0 20px 0 20px;
  8691. }
  8692. .basic_box2 {
  8693. position: relative;
  8694. width: calc(100% - 300px);
  8695. }
  8696. .basic_box_success {
  8697. width: 100%;
  8698. height: 100%;
  8699. padding: 50px 0;
  8700. position: relative;
  8701. text-align: center;
  8702. /* border-bottom: 1px solid #bfbfbf; */
  8703. box-sizing: border-box;
  8704. display: flex;
  8705. align-items: center;
  8706. flex-direction: column;
  8707. justify-content: center;
  8708. }
  8709. .info_title {
  8710. font-size: 1.5em;
  8711. margin-right: 25px;
  8712. /* margin: 20px 30px 20px 30px; */
  8713. }
  8714. .bInfo_title {
  8715. text-align: left;
  8716. margin: 10px 0;
  8717. }
  8718. .small_title {
  8719. font-size: 14px;
  8720. line-height: 40px;
  8721. }
  8722. .chapter_beizhu {
  8723. font-size: 12px;
  8724. font-weight: bold;
  8725. float: right;
  8726. color: rgb(128, 128, 128);
  8727. margin-top: 5px;
  8728. }
  8729. .chapter_uploadBox1 {
  8730. text-align: left;
  8731. background-color: rgb(242, 242, 242);
  8732. width: 100%;
  8733. height: 67px;
  8734. padding: 0px 15px;
  8735. border-radius: 8px;
  8736. overflow: hidden;
  8737. font-size: 16px;
  8738. box-sizing: border-box;
  8739. position: relative;
  8740. }
  8741. .chapter_add {
  8742. width: 100%;
  8743. height: 32px;
  8744. margin-top: 15px;
  8745. cursor: pointer;
  8746. }
  8747. .chapter_add_l {
  8748. margin-left: 5px;
  8749. width: 30px;
  8750. height: 30px;
  8751. float: left;
  8752. border: 1px solid #aaa;
  8753. color: #aaa;
  8754. border-radius: 50%;
  8755. font-size: 25px;
  8756. text-align: center;
  8757. }
  8758. .chapter_add_r {
  8759. font-size: 18px;
  8760. height: 40px;
  8761. line-height: 30px;
  8762. text-indent: 10px;
  8763. color: #aaa;
  8764. }
  8765. .chapter_add_r span {
  8766. font-size: 12px;
  8767. color: rgb(204, 204, 204);
  8768. }
  8769. .chapter_add_input {
  8770. display: none;
  8771. }
  8772. .line {
  8773. width: 85%;
  8774. margin: 0 auto;
  8775. border-top: 1px solid #e5e5e5;
  8776. margin-top: 20px;
  8777. }
  8778. .info_btnBox {
  8779. width: calc(100%);
  8780. display: flex;
  8781. justify-content: center;
  8782. height: 70px;
  8783. align-items: center;
  8784. background: #fff;
  8785. margin: 0 auto;
  8786. border-top: 2px solid rgb(228, 232, 237);
  8787. box-sizing: border-box;
  8788. border-radius: 0px 5px;
  8789. }
  8790. .info_btn+.info_btn {
  8791. margin-left: 15px;
  8792. }
  8793. .info_btn,
  8794. .teacherWord {
  8795. color: #fff;
  8796. background-color: #0f7eff;
  8797. padding: 8px 24px;
  8798. font-size: 0.9375rem;
  8799. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  8800. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  8801. min-width: 64px;
  8802. font-weight: 500;
  8803. border-radius: 4px;
  8804. box-sizing: border-box;
  8805. border: none;
  8806. cursor: pointer;
  8807. }
  8808. .teacherWord {
  8809. width: 105px !important;
  8810. text-align: center !important;
  8811. line-height: 36px !important;
  8812. padding: 0 !important;
  8813. font-size: 14px !important;
  8814. margin: 10px 0 !important;
  8815. }
  8816. .wordTeacher {
  8817. display: flex;
  8818. flex-direction: column;
  8819. width: 20%;
  8820. text-align: center;
  8821. font-size: 14px;
  8822. margin: 30px 30px 0 10px;
  8823. background: #fff;
  8824. position: relative;
  8825. border-radius: 5px;
  8826. padding: 25px 0px;
  8827. }
  8828. .wordPic {
  8829. margin: 0 auto;
  8830. width: 60px;
  8831. height: 60px;
  8832. cursor: pointer;
  8833. }
  8834. .deleteWord {
  8835. width: 22px;
  8836. height: 22px;
  8837. position: absolute;
  8838. right: 5px;
  8839. top: -15px;
  8840. cursor: pointer;
  8841. display: none;
  8842. z-index: 999;
  8843. }
  8844. .wordPic>img,
  8845. .deleteWord>img,
  8846. .addToolImg>img {
  8847. width: 100%;
  8848. height: 100%;
  8849. }
  8850. .info_btn:hover {
  8851. background-color: #4f7cd5 !important;
  8852. }
  8853. .cru_selectBox {
  8854. display: flex;
  8855. margin: 24px 0 10px;
  8856. flex-wrap: nowrap;
  8857. white-space: nowrap;
  8858. overflow: auto;
  8859. position: relative;
  8860. height: 47px;
  8861. }
  8862. .cru_selectBox::-webkit-scrollbar {
  8863. /*滚动条整体样式*/
  8864. width: 6px;
  8865. /*高宽分别对应横竖滚动条的尺寸*/
  8866. height: 6px;
  8867. }
  8868. /*定义滚动条轨道 内阴影+圆角*/
  8869. .cru_selectBox::-webkit-scrollbar-track {
  8870. border-radius: 10px;
  8871. background-color: #eee;
  8872. }
  8873. /*定义滑块 内阴影+圆角*/
  8874. .cru_selectBox::-webkit-scrollbar-thumb {
  8875. border-radius: 10px;
  8876. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  8877. background-color: rgba(0, 0, 0, 0.1);
  8878. }
  8879. .cru_line {
  8880. position: absolute;
  8881. bottom: 0px;
  8882. transition: all 0.5s;
  8883. left: 0px;
  8884. width: 125px;
  8885. margin-left: -25px;
  8886. }
  8887. .cru_select {
  8888. font-size: 21px;
  8889. margin-right: 37px;
  8890. margin-left: 5px;
  8891. cursor: pointer;
  8892. color: #a6a6a6;
  8893. }
  8894. .cru_selected {
  8895. color: #0b7fc2 !important;
  8896. }
  8897. .chapter_contentbox {
  8898. display: flex;
  8899. align-items: center;
  8900. margin-top: 15px;
  8901. }
  8902. .chapter_contentbox .cc_title {
  8903. margin: 0px;
  8904. color: black;
  8905. display: block;
  8906. white-space: nowrap;
  8907. overflow: hidden;
  8908. text-overflow: ellipsis;
  8909. margin-right: 20px;
  8910. font-size: 18px;
  8911. height: 20px;
  8912. line-height: 22px;
  8913. min-width: fit-content;
  8914. display: flex;
  8915. }
  8916. .chapter_contentbox .cc_title::before {
  8917. content: '';
  8918. height: 100%;
  8919. width: 3px;
  8920. background: #3681FC;
  8921. border-radius: 3px;
  8922. opacity: 1;
  8923. display: block;
  8924. margin-right: 10px;
  8925. }
  8926. .chapter_contentbox .cc_input {
  8927. width: 100%;
  8928. }
  8929. .remove {
  8930. background-image: url("../../../assets/icon/new/delete_u.png");
  8931. cursor: pointer;
  8932. opacity: 0.5;
  8933. width: 30px;
  8934. min-width: 30px;
  8935. height: 30px;
  8936. background-size: 100% 100%;
  8937. background-repeat: no-repeat;
  8938. margin-left: 10px;
  8939. }
  8940. .remove1 {
  8941. background-image: url("../../../assets/remove1.png");
  8942. background-repeat: no-repeat;
  8943. background-position: 5px 10px;
  8944. width: 40px;
  8945. height: 50px;
  8946. cursor: pointer;
  8947. }
  8948. .binfo_input {
  8949. width: 100%;
  8950. margin: 0;
  8951. padding: 12px 14px;
  8952. display: block;
  8953. min-width: 0;
  8954. outline: none;
  8955. box-sizing: border-box;
  8956. background: none;
  8957. border: none;
  8958. border-radius: 4px;
  8959. background: #fff;
  8960. font-size: 18px;
  8961. resize: none;
  8962. font-family: 'Microsoft YaHei';
  8963. }
  8964. .binfo_textarea {
  8965. border: 1px solid #CAD1DC;
  8966. font-size: 16px;
  8967. resize: none;
  8968. background: #fcfcfc;
  8969. font-family: 'Microsoft YaHei';
  8970. }
  8971. .binfo_input:focus-visible {
  8972. /* border: 1px solid rgba(61, 103, 188); */
  8973. }
  8974. .time {
  8975. display: flex;
  8976. margin: 35px 0 80px 0;
  8977. }
  8978. .chapter_btnbox {
  8979. width: 160px;
  8980. border-radius: 5px;
  8981. border: 2px dashed gray;
  8982. display: flex;
  8983. padding: 8px 50px;
  8984. align-items: center;
  8985. justify-content: center;
  8986. margin: 30px auto 0;
  8987. cursor: pointer;
  8988. }
  8989. .icon_add {
  8990. position: relative;
  8991. width: 24px;
  8992. padding-top: 20px;
  8993. border-radius: 100%;
  8994. border-width: 2px;
  8995. border-style: solid;
  8996. border-color: gray;
  8997. }
  8998. .icon_add i:nth-child(1) {
  8999. position: absolute;
  9000. left: 50%;
  9001. top: 50%;
  9002. height: 60%;
  9003. transform: translate(-50%, -50%);
  9004. border-width: 1px;
  9005. border-style: solid;
  9006. border-color: inherit;
  9007. }
  9008. .icon_add i:nth-child(2) {
  9009. position: absolute;
  9010. top: 50%;
  9011. left: 50%;
  9012. width: 60%;
  9013. transform: translate(-50%, -50%);
  9014. border-width: 1px;
  9015. border-style: solid;
  9016. border-color: inherit;
  9017. }
  9018. .chapter_btn_w {
  9019. font-size: 0.9375rem;
  9020. font-weight: bold;
  9021. color: gray;
  9022. margin-left: 20px;
  9023. }
  9024. .disUoloadSty>>>.el-icon-plus {
  9025. display: none !important;
  9026. /* 上传按钮隐藏 */
  9027. }
  9028. .imgLeft {
  9029. margin: 15px 0;
  9030. }
  9031. .add_info_box {
  9032. margin: 20px 0 0;
  9033. }
  9034. .add_info_box button {
  9035. /* margin: 0 10px 10px 0; */
  9036. }
  9037. .add_info_box2 {
  9038. display: flex;
  9039. align-items: center;
  9040. flex-wrap: wrap;
  9041. }
  9042. .add_info_box2::after {
  9043. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  9044. color: red;
  9045. font-size: 14px;
  9046. margin-bottom: 10px;
  9047. }
  9048. .add_chapters_box {
  9049. text-align: left;
  9050. background-color: #fff;
  9051. width: 100%;
  9052. border-radius: 4px;
  9053. font-size: 16px;
  9054. box-sizing: border-box;
  9055. position: relative;
  9056. padding: 20px 15px;
  9057. height: 200px;
  9058. overflow-y: auto;
  9059. overflow-x: hidden;
  9060. }
  9061. .homework_box {
  9062. display: flex;
  9063. align-items: flex-start;
  9064. flex-wrap: wrap;
  9065. margin: 15px 0 0 0;
  9066. flex-direction: column;
  9067. align-content: flex-start;
  9068. }
  9069. .course_homework {
  9070. display: flex;
  9071. justify-content: center;
  9072. flex-direction: row;
  9073. align-items: center;
  9074. margin: 0 10px 0 0;
  9075. }
  9076. .course_homework>>>.el-input__inner {
  9077. width: 140px;
  9078. margin-left: 15px;
  9079. }
  9080. .chapter_upload_move {
  9081. position: relative;
  9082. background-color: #fff;
  9083. position: absolute;
  9084. width: 100%;
  9085. top: 0px;
  9086. left: 0px;
  9087. border: 1px solid #eee;
  9088. border-radius: 5px;
  9089. transition: width 2s;
  9090. -moz-transition: width 2s;
  9091. -webkit-transition: width 2s;
  9092. -o-transition: width 2s;
  9093. }
  9094. .chapter_upload_l_i {
  9095. background-image: url("../../../assets/icon.png");
  9096. background-position: 3px -165px;
  9097. width: 30px;
  9098. height: 30px;
  9099. margin: 10px auto 0 auto;
  9100. }
  9101. .course_input_box {
  9102. display: flex;
  9103. margin-right: 20px;
  9104. width: 800px;
  9105. align-items: center;
  9106. }
  9107. .course_input_box>.binfo_input {
  9108. width: calc(100% - 48px - 200px - 20px);
  9109. margin: 0 10px;
  9110. }
  9111. .bb_courseIcon {
  9112. width: 48px;
  9113. height: 48px;
  9114. background: #3681FC;
  9115. border-radius: 6px;
  9116. display: flex;
  9117. align-items: center;
  9118. justify-content: center;
  9119. }
  9120. .bb_courseIcon>img {
  9121. width: 25px;
  9122. height: auto
  9123. }
  9124. .big_box {
  9125. margin-top: 20px;
  9126. display: flex;
  9127. border-bottom: 1px solid #E0E2ED;
  9128. }
  9129. .left_first {
  9130. display: flex;
  9131. flex-direction: column;
  9132. flex-wrap: nowrap;
  9133. width: calc(100% - 400px);
  9134. padding: 0 100px 0 0;
  9135. box-sizing: border-box;
  9136. }
  9137. .right_first {
  9138. width: 400px;
  9139. display: flex;
  9140. align-items: center;
  9141. justify-content: center;
  9142. border-left: 1px solid #E0E2ED;
  9143. box-sizing: border-box;
  9144. }
  9145. .right_title {
  9146. /* height: 30px; */
  9147. padding: 0 20px;
  9148. font-size: 18px;
  9149. font-weight: bold;
  9150. /* color: #0f7eff; */
  9151. margin: 20px auto 0;
  9152. display: flex;
  9153. /* justify-content: space-between; */
  9154. align-items: center;
  9155. }
  9156. .people {
  9157. border: 1px solid rgb(229 229 229);
  9158. height: 495px;
  9159. border-radius: 5px;
  9160. width: 100%;
  9161. overflow: auto;
  9162. }
  9163. .people_top {
  9164. display: flex;
  9165. width: 100%;
  9166. /* justify-content: space-between; */
  9167. /* align-items: center; */
  9168. flex-direction: column;
  9169. padding: 10px 25px 0;
  9170. box-sizing: border-box;
  9171. }
  9172. .people_nav,
  9173. .people_top_right {
  9174. /* padding: 20px 0 0 20px; */
  9175. }
  9176. .people_top_right {
  9177. height: 40px;
  9178. margin-bottom: 10px;
  9179. }
  9180. .people_search {
  9181. display: flex;
  9182. position: relative;
  9183. }
  9184. .people_search>>>.el-input__inner {
  9185. /* height: 25px; */
  9186. width: 95%;
  9187. }
  9188. .search_img {
  9189. width: 20px;
  9190. height: 20px;
  9191. position: absolute;
  9192. right: 30px;
  9193. top: 50%;
  9194. transform: translateY(-50%);
  9195. }
  9196. .search_img>img {
  9197. width: 100%;
  9198. height: 100%;
  9199. }
  9200. .people_name {
  9201. display: flex;
  9202. justify-content: flex-start;
  9203. padding: 20px 0 0 25px;
  9204. flex-direction: column;
  9205. flex-wrap: wrap;
  9206. }
  9207. .p_box {
  9208. position: relative;
  9209. }
  9210. .people_name>>>.el-checkbox {
  9211. width: 100%;
  9212. display: flex;
  9213. align-items: center;
  9214. margin-bottom: 10px;
  9215. }
  9216. .people_name>>>.el-checkbox__label {
  9217. text-overflow: ellipsis;
  9218. overflow: hidden;
  9219. width: calc(100%);
  9220. }
  9221. .people_name2>>>.el-checkbox__label {
  9222. width: calc(100% - 130px);
  9223. }
  9224. .inviteCode {
  9225. position: absolute;
  9226. right: 30px;
  9227. color: #237ade;
  9228. top: 0;
  9229. cursor: pointer;
  9230. font-size: 13px;
  9231. }
  9232. .noneInvite {
  9233. color: #a8a8a8;
  9234. }
  9235. .inviteImg {
  9236. position: absolute;
  9237. right: 5px;
  9238. top: 0;
  9239. width: 20px;
  9240. }
  9241. .right_img {
  9242. width: 150px;
  9243. height: 150px;
  9244. margin: 20px auto;
  9245. }
  9246. .right_img>img {
  9247. width: 100%;
  9248. height: 100%;
  9249. }
  9250. .number {
  9251. margin-top: 20px;
  9252. color: #4aa6ff;
  9253. text-decoration: underline;
  9254. }
  9255. .success_button {
  9256. display: flex;
  9257. text-align: center;
  9258. margin: 5% 0 auto;
  9259. flex-direction: row;
  9260. justify-content: center;
  9261. }
  9262. .look_course {
  9263. margin-right: 40px;
  9264. background: #3d67bc;
  9265. width: 200px;
  9266. height: 35px;
  9267. line-height: 35px;
  9268. color: #fff;
  9269. text-align: center;
  9270. font-size: 14px;
  9271. border-radius: 5px;
  9272. cursor: pointer;
  9273. }
  9274. .attend_others {
  9275. width: 250px;
  9276. background: #4fb13c;
  9277. height: 35px;
  9278. line-height: 35px;
  9279. color: #fff;
  9280. text-align: center;
  9281. font-size: 14px;
  9282. border-radius: 5px;
  9283. cursor: pointer;
  9284. }
  9285. .dialog_diy2>>>.el-dialog__body {
  9286. text-align: center;
  9287. }
  9288. .write_togother {
  9289. position: absolute;
  9290. right: 45px;
  9291. display: flex;
  9292. top: 5%;
  9293. }
  9294. .write_people {
  9295. font-size: 14px;
  9296. line-height: 50px;
  9297. padding-right: 10px;
  9298. }
  9299. .end_write {
  9300. background: #3d67bc;
  9301. color: #fff;
  9302. width: 100px;
  9303. height: 35px;
  9304. line-height: 35px;
  9305. text-align: center;
  9306. font-size: 14px;
  9307. border-radius: 5px;
  9308. cursor: pointer;
  9309. }
  9310. .chapter_upload+.chapter_upload {
  9311. margin-top: 15px;
  9312. }
  9313. .chapter_upload {
  9314. height: 35px;
  9315. position: relative;
  9316. display: flex;
  9317. align-items: center;
  9318. width: 100%;
  9319. min-height: 35px;
  9320. box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16);
  9321. border-radius: 4px;
  9322. overflow: hidden;
  9323. }
  9324. .chapter_upload_t {
  9325. background-color: #fff;
  9326. position: absolute;
  9327. height: 100%;
  9328. top: 0px;
  9329. left: 0px;
  9330. box-sizing: border-box;
  9331. }
  9332. .chapter_upload_o {
  9333. width: 100%;
  9334. height: 100%;
  9335. position: relative;
  9336. z-index: 1;
  9337. }
  9338. .chapter_upload_ic {
  9339. margin: 0 15px 0px auto;
  9340. display: flex;
  9341. align-items: center;
  9342. }
  9343. .chapter_upload_ic_l {
  9344. width: 50px;
  9345. height: 50px;
  9346. float: left;
  9347. }
  9348. .chapter_upload_ic_l div {
  9349. width: 30px;
  9350. height: 35px;
  9351. background: url("../../../assets/icon/icon.png");
  9352. }
  9353. .chapter_upload_ic_r {
  9354. height: 100%;
  9355. display: flex;
  9356. align-items: center;
  9357. cursor: pointer;
  9358. }
  9359. .chapter_upload_ic_r div {
  9360. width: 18px;
  9361. height: 18px;
  9362. background-image: url("../../../assets/icon/new/delete_u.png");
  9363. background-size: 100% 100%;
  9364. }
  9365. .chapter_upload_n {
  9366. display: flex;
  9367. text-indent: 10px;
  9368. text-decoration: none;
  9369. text-overflow: ellipsis;
  9370. white-space: nowrap;
  9371. overflow: hidden;
  9372. width: 55%;
  9373. margin-left: 10px;
  9374. cursor: pointer;
  9375. margin-top: 2px;
  9376. align-items: center;
  9377. }
  9378. .chapter_upload_l_i2,
  9379. .chapter_upload_l_i3,
  9380. .chapter_upload_l_i8,
  9381. .chapter_upload_l_i6,
  9382. .chapter_upload_l_i12,
  9383. .chapter_upload_l_i13 {
  9384. width: 15px;
  9385. height: 15px;
  9386. background-size: 100% 100%;
  9387. }
  9388. .chapter_upload_l_i2 {
  9389. background-image: url("../../../assets/icon/new/u_word.png");
  9390. }
  9391. .chapter_upload_l_i3 {
  9392. background-image: url("../../../assets/icon/new/u_video.png");
  9393. }
  9394. .chapter_upload_l_i8 {
  9395. background-image: url("../../../assets/icon/new/u_url.png");
  9396. }
  9397. .chapter_upload_l_i6 {
  9398. background-image: url("../../../assets/icon/new/u_url.png");
  9399. }
  9400. .chapter_upload_l_i12 {
  9401. background-image: url("../../../assets/icon/new/u_word.png");
  9402. }
  9403. .chapter_upload_l_i13 {
  9404. background-image: url("../../../assets/icon/new/u_img.png");
  9405. }
  9406. .chapter_upload_noSee {
  9407. background-image: url("../../../assets/icon/new/u_noUpload.png");
  9408. width: 18px;
  9409. height: 18px;
  9410. background-size: 100% 100%;
  9411. display: block;
  9412. margin-right: 20px;
  9413. }
  9414. .chapter_upload_ud {
  9415. display: flex;
  9416. flex-direction: row;
  9417. justify-content: center;
  9418. margin: 0 20px 0 0;
  9419. }
  9420. .chapter_upload_ud>.chapter_upload_up {
  9421. margin-bottom: 0;
  9422. margin-right: 5px;
  9423. }
  9424. .chapter_upload_down,
  9425. .chapter_upload_up {
  9426. width: 20px;
  9427. height: 20px;
  9428. background: #F0F4FA;
  9429. cursor: pointer;
  9430. margin: 0 auto;
  9431. border-radius: 5px;
  9432. display: flex;
  9433. justify-content: center;
  9434. align-items: center;
  9435. }
  9436. .chapter_upload_up::after,
  9437. .chapter_upload_down::after {
  9438. content: '';
  9439. background-image: url('../../../assets/icon/new/downBtn.png');
  9440. width: 13px;
  9441. height: 13px;
  9442. background-size: 100% 100%;
  9443. display: block;
  9444. }
  9445. .chapter_upload_up::after {
  9446. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  9447. }
  9448. .chapter_upload_up {
  9449. margin-bottom: 5px;
  9450. }
  9451. .addWordStyle {
  9452. display: flex;
  9453. flex-direction: row;
  9454. justify-content: flex-start;
  9455. overflow-x: auto;
  9456. white-space: nowrap;
  9457. flex-wrap: wrap;
  9458. }
  9459. /* table 样式 */
  9460. .cont>>>table {
  9461. border-top: 1px solid #ccc;
  9462. border-left: 1px solid #ccc;
  9463. }
  9464. .cont>>>table td,
  9465. .cont>>>table th {
  9466. border-bottom: 1px solid #ccc;
  9467. border-right: 1px solid #ccc;
  9468. /* padding: 20px 5px; */
  9469. padding: 5px 10px;
  9470. max-width: 0px;
  9471. height: 30px;
  9472. vertical-align: baseline;
  9473. }
  9474. .cont>>>table th {
  9475. border-bottom: 2px solid #ccc;
  9476. text-align: center;
  9477. }
  9478. /* blockquote 样式 */
  9479. .cont>>>blockquote {
  9480. display: block;
  9481. border-left: 8px solid #d0e5f2;
  9482. padding: 5px 10px;
  9483. margin: 10px 0;
  9484. line-height: 1.4;
  9485. font-size: 100%;
  9486. background-color: #f1f1f1;
  9487. }
  9488. /* code 样式 */
  9489. .cont>>>code {
  9490. display: inline-block;
  9491. *display: inline;
  9492. *zoom: 1;
  9493. background-color: #f1f1f1;
  9494. border-radius: 3px;
  9495. padding: 3px 5px;
  9496. margin: 0 3px;
  9497. }
  9498. .cont>>>pre code {
  9499. display: block;
  9500. }
  9501. /* ul ol 样式 */
  9502. .cont>>>ul,
  9503. ol {
  9504. margin: 10px 0 10px 20px;
  9505. }
  9506. .wordbox {
  9507. display: flex;
  9508. flex-wrap: wrap;
  9509. cursor: pointer;
  9510. width: 100%;
  9511. }
  9512. .checkword {
  9513. width: 22px;
  9514. height: 22px;
  9515. margin: 10px auto 0;
  9516. cursor: pointer;
  9517. }
  9518. .checkword img {
  9519. width: 100%;
  9520. }
  9521. .stepBg {
  9522. display: flex;
  9523. flex-direction: column;
  9524. justify-content: space-between;
  9525. align-items: center;
  9526. background: #fff;
  9527. width: 300px;
  9528. margin: 0 25px 0 0;
  9529. }
  9530. .stepTop {
  9531. min-width: 300px;
  9532. width: 300px;
  9533. /* border-radius: 10px; */
  9534. display: flex;
  9535. flex-direction: column;
  9536. justify-content: flex-start;
  9537. align-items: center;
  9538. flex-wrap: nowrap;
  9539. background: #fff;
  9540. /* top: 18%; */
  9541. }
  9542. .stepTop>div {
  9543. height: 80px;
  9544. width: 85%;
  9545. cursor: pointer;
  9546. margin: 10px 0;
  9547. border-radius: 10px;
  9548. }
  9549. .first,
  9550. .second,
  9551. .third,
  9552. .four {
  9553. background: #4a83d0;
  9554. height: 90px;
  9555. color: #fff;
  9556. display: flex;
  9557. flex-direction: row;
  9558. align-items: center;
  9559. justify-content: center;
  9560. }
  9561. .first>div:nth-child(1),
  9562. .second>div:nth-child(1),
  9563. .third>div:nth-child(1),
  9564. .four>div:nth-child(1) {
  9565. margin: 5px 10px 0 0;
  9566. width: 2rem;
  9567. }
  9568. .firstNo,
  9569. .secondNo,
  9570. .thirdNo,
  9571. .fourNo {
  9572. background: #e7e7e7;
  9573. color: #adadad;
  9574. display: flex;
  9575. flex-direction: row;
  9576. align-items: center;
  9577. justify-content: center;
  9578. }
  9579. .firstNo>div:nth-child(1),
  9580. .secondNo>div:nth-child(1),
  9581. .thirdNo>div:nth-child(1),
  9582. .fourNo>div:nth-child(1) {
  9583. margin: 5px 10px 0 0;
  9584. width: 2rem;
  9585. }
  9586. .uploadWidth>>>.el-upload {
  9587. width: 60px;
  9588. height: 60px;
  9589. position: relative;
  9590. }
  9591. .addPeople {
  9592. background: #fa6060;
  9593. width: 150px;
  9594. height: 40px;
  9595. color: #fff;
  9596. border-radius: 5px;
  9597. text-align: center;
  9598. line-height: 40px;
  9599. font-size: 14px;
  9600. cursor: pointer;
  9601. }
  9602. .kcImg {
  9603. width: 60px;
  9604. margin-left: 10px;
  9605. }
  9606. .zyImg {
  9607. width: 55px;
  9608. margin: 0 10px;
  9609. }
  9610. .deleteZy {
  9611. width: 20px;
  9612. position: absolute;
  9613. top: 5px;
  9614. right: 5px;
  9615. cursor: pointer;
  9616. }
  9617. .kcImg>img,
  9618. .zyImg>img,
  9619. .deleteZy>img {
  9620. width: 100%;
  9621. height: 100%;
  9622. }
  9623. .zyBox {
  9624. display: flex;
  9625. flex-direction: row;
  9626. align-items: center;
  9627. background: #67d37d;
  9628. color: #fff;
  9629. width: 210px;
  9630. margin: 20px 20px 0 0;
  9631. border-radius: 10px;
  9632. height: 70px;
  9633. position: relative;
  9634. }
  9635. .upCss {
  9636. display: flex;
  9637. flex-direction: row;
  9638. justify-content: flex-start;
  9639. }
  9640. .upCss>>>.el-icon-plus {
  9641. position: none !important;
  9642. width: 200px;
  9643. height: 100px;
  9644. display: flex;
  9645. flex-wrap: nowrap;
  9646. flex-direction: column;
  9647. align-items: center;
  9648. justify-content: center;
  9649. border: 1px dashed #ccc;
  9650. min-width: 78px;
  9651. min-height: 100px;
  9652. z-index: 999;
  9653. }
  9654. .upCss>>>.el-upload-list__item-name {
  9655. width: 100px;
  9656. white-space: nowrap;
  9657. overflow: hidden;
  9658. text-overflow: ellipsis;
  9659. }
  9660. .addStageImg {
  9661. min-width: 25px;
  9662. min-height: 25px;
  9663. width: 25px;
  9664. height: 25px;
  9665. cursor: pointer;
  9666. }
  9667. .addHW {
  9668. width: 28px;
  9669. height: 28px;
  9670. cursor: pointer;
  9671. }
  9672. .addStageImg>img,
  9673. .addHW>img {
  9674. width: 100%;
  9675. height: 100%;
  9676. }
  9677. .addNewPP>>>.el-dialog__body {
  9678. padding: 5px 20px;
  9679. }
  9680. .isHeight {
  9681. height: 680px;
  9682. }
  9683. .toolChoose {
  9684. display: flex;
  9685. /* width: 100%; */
  9686. flex-direction: row;
  9687. flex-wrap: wrap;
  9688. }
  9689. .tool {
  9690. display: flex;
  9691. flex-direction: column;
  9692. flex-wrap: nowrap;
  9693. width: fit-content;
  9694. margin: 10px 0 10px 0;
  9695. align-items: center;
  9696. }
  9697. .tool+.tool {
  9698. margin-right: 45px;
  9699. }
  9700. .whiteBIcon {
  9701. width: 80px;
  9702. cursor: pointer;
  9703. display: flex;
  9704. flex-direction: column;
  9705. flex-wrap: nowrap;
  9706. align-items: center;
  9707. }
  9708. .whiteBIcon>img,
  9709. .toolIcon>img,
  9710. .arrow>img {
  9711. width: 100%;
  9712. height: 100%;
  9713. }
  9714. .check img {
  9715. width: 20px;
  9716. height: 20px;
  9717. }
  9718. .whiteBIcon>img {
  9719. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  9720. border-radius: 15px;
  9721. }
  9722. .check {
  9723. /* width: 20px;
  9724. height: 20px; */
  9725. cursor: pointer;
  9726. margin: 10px 0;
  9727. }
  9728. .checkDiv {
  9729. display: flex;
  9730. align-items: center;
  9731. }
  9732. .checkDiv span {
  9733. margin-left: 5px;
  9734. color: #858585;
  9735. }
  9736. .customWidth>>>.el-dialog {
  9737. min-width: 500px !important;
  9738. }
  9739. .a_addBox {
  9740. margin: 10px 0;
  9741. background: #fff;
  9742. padding: 15px;
  9743. max-height: 600px;
  9744. overflow: auto;
  9745. }
  9746. .a_add_box {
  9747. border-bottom: 2px solid #eee;
  9748. padding-bottom: 25px;
  9749. }
  9750. .a_add_head {
  9751. display: flex;
  9752. align-items: center;
  9753. justify-content: space-between;
  9754. margin: 10px 0 0 0;
  9755. font-size: 18px;
  9756. }
  9757. .a_add_checkType {
  9758. margin-top: 10px;
  9759. display: flex;
  9760. font-size: 16px;
  9761. align-items: center;
  9762. }
  9763. .a_add_checkType span {
  9764. box-sizing: border-box;
  9765. padding: 0 0 5px 0;
  9766. cursor: pointer;
  9767. }
  9768. .a_add_checkType span+span {
  9769. margin-left: 10px;
  9770. }
  9771. .a_add_checkType .active {
  9772. border-bottom: 2px solid #409eff;
  9773. color: #409eff;
  9774. }
  9775. .a_add_head .a_add_head_input {
  9776. width: 300px;
  9777. }
  9778. .a_add_head .a_add_head_div {
  9779. display: flex;
  9780. align-items: center;
  9781. justify-content: space-between;
  9782. }
  9783. .a_add_body {
  9784. display: flex;
  9785. /* align-items: center; */
  9786. align-items: flex-end;
  9787. }
  9788. .a_add_input {
  9789. display: flex;
  9790. align-items: center;
  9791. flex-wrap: wrap;
  9792. }
  9793. .a_add_input_choice {
  9794. flex-direction: column;
  9795. margin-right: 10px;
  9796. }
  9797. .a_add_input_choice>>>.el-radio {
  9798. display: flex;
  9799. align-items: center;
  9800. flex-direction: row-reverse;
  9801. margin: 30px 0 0 0;
  9802. }
  9803. .a_add_input_choice>>>.el-checkbox {
  9804. display: flex;
  9805. align-items: center;
  9806. flex-direction: row-reverse;
  9807. margin: 30px 0 0 0;
  9808. }
  9809. .width100 {
  9810. width: 100%;
  9811. }
  9812. .a_add_input .a_add_persent {
  9813. width: 100%;
  9814. }
  9815. .a_add_persent_div {
  9816. width: 100%;
  9817. display: flex;
  9818. align-items: center;
  9819. }
  9820. .a_add_persent_div span {
  9821. margin: 5px 0;
  9822. }
  9823. .a_add_persent_div span:nth-child(1) {
  9824. width: 30%;
  9825. }
  9826. .a_add_persent_div span:nth-child(2) {
  9827. width: 7%;
  9828. }
  9829. .a_add_persent_div span:nth-child(3) {
  9830. width: 40%;
  9831. }
  9832. .a_add_body_div {
  9833. display: flex;
  9834. align-items: center;
  9835. justify-content: center;
  9836. /* flex-direction: column; */
  9837. }
  9838. .all_choose {
  9839. display: flex;
  9840. flex-direction: row;
  9841. align-items: flex-start;
  9842. width: 100%;
  9843. }
  9844. .all_choose>span {
  9845. min-width: fit-content;
  9846. display: block;
  9847. white-space: nowrap;
  9848. overflow: hidden;
  9849. text-overflow: ellipsis;
  9850. margin-right: 20px;
  9851. font-weight: bold;
  9852. font-size: 14px;
  9853. }
  9854. .all_choose>>>.el-checkbox-group {
  9855. display: flex;
  9856. flex-direction: row;
  9857. width: 100%;
  9858. flex-wrap: wrap;
  9859. align-content: center;
  9860. justify-content: flex-start;
  9861. align-items: center;
  9862. margin-top: 3px;
  9863. }
  9864. .all_choose>.el-checkbox-group>>>.el-checkbox {
  9865. margin-bottom: 10px;
  9866. display: flex;
  9867. flex-direction: row;
  9868. align-items: center;
  9869. }
  9870. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  9871. min-width: 80px;
  9872. overflow: hidden;
  9873. width: 80px;
  9874. text-overflow: ellipsis;
  9875. white-space: nowrap;
  9876. }
  9877. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  9878. width: auto;
  9879. }
  9880. .choose>div:nth-child(3)>span {
  9881. /* letter-spacing: 0 !important; */
  9882. }
  9883. .choose {
  9884. display: flex;
  9885. flex-direction: column;
  9886. flex-wrap: nowrap;
  9887. height: 100%;
  9888. justify-content: space-evenly;
  9889. align-items: flex-start;
  9890. }
  9891. .both {
  9892. display: flex;
  9893. flex-direction: row;
  9894. flex-wrap: wrap;
  9895. width: 100%;
  9896. align-items: center;
  9897. justify-content: flex-start;
  9898. margin: 15px 0;
  9899. }
  9900. .notice>>>.el-dialog {
  9901. width: 500px !important;
  9902. text-align: center;
  9903. }
  9904. .notice>>>.el-button {
  9905. margin-top: 20px;
  9906. }
  9907. .whiteBg {
  9908. background: #fff;
  9909. border-radius: 10px;
  9910. }
  9911. .wb_j_box {
  9912. display: flex;
  9913. width: 100%;
  9914. padding: 20px 20px 0;
  9915. box-sizing: border-box;
  9916. }
  9917. .wb_j_box_content {
  9918. width: calc(100% - 55% - 100px);
  9919. display: flex;
  9920. align-items: center;
  9921. }
  9922. .wb_j_box_p_box {
  9923. max-width: calc(100% - 200px);
  9924. word-break: break-all;
  9925. overflow: hidden;
  9926. margin: 0 0 0 10px;
  9927. font-size: 14px;
  9928. color: #6e6e6e;
  9929. }
  9930. .chooseWho {
  9931. display: flex;
  9932. width: 380px;
  9933. flex-direction: row;
  9934. flex-wrap: nowrap;
  9935. justify-content: space-between;
  9936. padding-bottom: 10px;
  9937. }
  9938. .chooseWho>div {
  9939. cursor: pointer;
  9940. padding-bottom: 10px;
  9941. font-weight: bold;
  9942. }
  9943. .isChooseActive {
  9944. color: #3e88f4;
  9945. border-bottom: 2px solid #2f80f3;
  9946. }
  9947. .toolSort {
  9948. display: flex;
  9949. flex-direction: row;
  9950. flex-wrap: wrap;
  9951. justify-content: flex-start;
  9952. align-items: flex-start;
  9953. }
  9954. .toolSort>div {
  9955. margin-right: 45px;
  9956. }
  9957. .tools {
  9958. width: 100%;
  9959. display: flex;
  9960. flex-direction: column;
  9961. flex-wrap: nowrap;
  9962. align-items: flex-start;
  9963. }
  9964. .leftTools,
  9965. .rightTools {
  9966. width: 50%;
  9967. }
  9968. .leftTools+.leftTools{
  9969. border-top: 1px solid #dbdbdb;
  9970. padding-top: 30px;
  9971. }
  9972. .rightTools {
  9973. display: flex;
  9974. flex-direction: row;
  9975. flex-wrap: nowrap;
  9976. justify-content: space-around;
  9977. }
  9978. .firstToolList {
  9979. display: flex;
  9980. flex-direction: column;
  9981. flex-wrap: nowrap;
  9982. align-items: center;
  9983. }
  9984. .iconList {
  9985. display: flex;
  9986. flex-direction: row;
  9987. flex-wrap: wrap;
  9988. justify-content: flex-start;
  9989. align-items: center;
  9990. margin: 20px 0 5px 0;
  9991. width: 240px;
  9992. min-width: 240px;
  9993. }
  9994. .iconTool {
  9995. display: flex;
  9996. flex-direction: column;
  9997. flex-wrap: nowrap;
  9998. align-items: center;
  9999. justify-content: flex-start;
  10000. margin: 15px 10px;
  10001. }
  10002. .toolIcon {
  10003. width: 50px;
  10004. }
  10005. .taskBorder {
  10006. /*border: 1px solid #e1e1e1; */
  10007. border-radius: 8px;
  10008. margin-top: 20px;
  10009. /* min-height: 1160px; */
  10010. position: relative;
  10011. background: #F0F4FA;
  10012. padding: 20px;
  10013. box-sizing: border-box;
  10014. }
  10015. .smallTaskBorder {
  10016. height: 170px;
  10017. min-height: 170px !important;
  10018. overflow: hidden;
  10019. }
  10020. .taskBorder>div {
  10021. /* padding: 30px 0 10px 30px; */
  10022. }
  10023. .addTaskBorder {
  10024. border: 2px solid #5E9AFC;
  10025. border-radius: 8px;
  10026. margin-top: 25px;
  10027. cursor: pointer;
  10028. height: 50px;
  10029. line-height: 50px;
  10030. }
  10031. .addTaskBorder>div {
  10032. margin: 0 auto;
  10033. display: flex;
  10034. align-items: center;
  10035. justify-content: center;
  10036. }
  10037. .addTaskBorder>div>img {
  10038. width: 20px;
  10039. }
  10040. .addTaskBorder>div>span {
  10041. font-size: 16px;
  10042. margin-left: 10px;
  10043. color: #5E9AFC;
  10044. }
  10045. .funBlock {
  10046. display: flex;
  10047. padding: 15px 0;
  10048. flex-direction: row;
  10049. justify-content: flex-end;
  10050. align-items: center;
  10051. position: absolute;
  10052. right: 15px;
  10053. bottom: 35px;
  10054. }
  10055. .fold {
  10056. display: flex;
  10057. margin: 0 10px;
  10058. flex-direction: row;
  10059. align-items: center;
  10060. cursor: pointer;
  10061. }
  10062. .arrow {
  10063. width: 15px;
  10064. height: 15px;
  10065. margin-left: 10px;
  10066. }
  10067. .addToolFun {
  10068. display: flex;
  10069. width: 150px;
  10070. flex-direction: row;
  10071. align-items: center;
  10072. justify-content: center;
  10073. border: 1px dashed;
  10074. border-radius: 5px;
  10075. height: 50px;
  10076. margin: 20px auto 35px;
  10077. cursor: pointer;
  10078. }
  10079. .addToolFun2 {
  10080. display: flex;
  10081. width: 100%;
  10082. border: 2px dashed #CAD1DC;
  10083. flex-direction: row;
  10084. align-items: center;
  10085. justify-content: center;
  10086. border-radius: 5px;
  10087. height: 50px;
  10088. margin: 35px auto 0;
  10089. cursor: pointer;
  10090. }
  10091. .addToolImg {
  10092. width: 20px;
  10093. height: 20px;
  10094. margin-right: 10px;
  10095. }
  10096. .addToolsDia>>>.el-dialog__body {
  10097. padding: 20px;
  10098. }
  10099. .addToolsDia>>>.el-dialog__body>.toolChoose {
  10100. padding: 0;
  10101. }
  10102. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  10103. padding: 0;
  10104. border-bottom: none;
  10105. margin-bottom: 0;
  10106. }
  10107. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  10108. width: 100%;
  10109. }
  10110. .lineCss>>>.el-form-item__label {
  10111. width: auto !important;
  10112. }
  10113. .lineCss>>>.el-form-item__content {
  10114. margin-left: 50px !important;
  10115. }
  10116. .newSteps {
  10117. display: flex;
  10118. width: 100% !important;
  10119. height: 80px;
  10120. cursor: pointer;
  10121. margin: 10px 0;
  10122. border-radius: 10px;
  10123. flex-direction: row;
  10124. align-content: center;
  10125. justify-content: center;
  10126. align-items: center;
  10127. margin: 0 !important;
  10128. }
  10129. /* 评价样式 */
  10130. .elist_css {
  10131. padding-bottom: 60px !important;
  10132. }
  10133. .elist_title {
  10134. margin-bottom: 10px;
  10135. }
  10136. .elist_input {}
  10137. .elist_input_box {
  10138. display: flex;
  10139. align-items: center;
  10140. flex-wrap: wrap;
  10141. }
  10142. .elist_input_box+.elist_input_box {
  10143. margin-top: 30px;
  10144. }
  10145. .elist_input .elist_input_box input {
  10146. font: inherit;
  10147. color: currentColor;
  10148. /* width: 200px; */
  10149. max-width: 200px;
  10150. padding: 8px 14px;
  10151. display: block;
  10152. min-width: 0;
  10153. outline: none;
  10154. border: 1px solid rgba(0, 0, 0, 0.23);
  10155. border-radius: 4px;
  10156. box-sizing: border-box;
  10157. background: #fff;
  10158. margin: 0 20px 0 0;
  10159. }
  10160. .elist_input .elist_input_box span {
  10161. height: 36px;
  10162. line-height: 36px;
  10163. color: rgb(82, 82, 82);
  10164. min-width: 80px;
  10165. }
  10166. .elist_input .elist_input_box .remove {
  10167. height: 20px;
  10168. width: 20px;
  10169. background-size: 100% 100%;
  10170. background-position: unset;
  10171. margin-left: 5px;
  10172. }
  10173. .elist_input_box>>>.el-rate {
  10174. display: flex;
  10175. height: 36px;
  10176. align-items: center;
  10177. }
  10178. .elist_input_box .elist_inptu_text {
  10179. width: 100%;
  10180. display: flex;
  10181. align-items: center;
  10182. margin-top: 10px;
  10183. }
  10184. .elist_input_box .elist_inptu_text input {
  10185. /* width: 500px; */
  10186. width: 100%;
  10187. max-width: unset;
  10188. }
  10189. .elist_input_box>>>.el-rate__icon {
  10190. font-size: 24px;
  10191. }
  10192. .elist_btn {
  10193. margin-top: 10px;
  10194. }
  10195. .lineTitle {
  10196. /* margin-top: 15px; */
  10197. width: 110px;
  10198. }
  10199. .courseTop {
  10200. display: flex;
  10201. flex-direction: row;
  10202. justify-content: flex-start;
  10203. align-items: center;
  10204. width: calc(100%);
  10205. padding: 20px 0;
  10206. margin: 0 auto;
  10207. }
  10208. .stepsNav {
  10209. display: flex;
  10210. flex-direction: row;
  10211. justify-content: flex-start;
  10212. align-items: center;
  10213. }
  10214. .stepsWord {
  10215. font-size: 18px;
  10216. color: #fff;
  10217. font-weight: bold;
  10218. margin-left: auto;
  10219. background: rgb(15, 126, 255);
  10220. border-radius: 5px;
  10221. padding: 3px 25px;
  10222. box-sizing: border-box;
  10223. }
  10224. .rightBox {
  10225. width: calc(100%);
  10226. background: rgb(255, 255, 255);
  10227. /* border-radius: 10px; */
  10228. overflow: auto;
  10229. height: calc(100% - 150px);
  10230. margin: 0 auto;
  10231. position: relative;
  10232. box-sizing: border-box;
  10233. border-radius: 5px 0px;
  10234. }
  10235. .e_add_top {
  10236. display: flex;
  10237. justify-content: space-between;
  10238. padding: 20px 20px 0 20px;
  10239. border-radius: 3px;
  10240. background: #fff;
  10241. }
  10242. .e_add_title2 {
  10243. display: flex;
  10244. align-items: center;
  10245. }
  10246. .e_add_title2 span {
  10247. width: 40px;
  10248. }
  10249. .e_add_title {
  10250. display: flex;
  10251. align-items: center;
  10252. color: #b8b8b8;
  10253. font-size: 18px;
  10254. position: relative;
  10255. height: 40px;
  10256. }
  10257. .e_add_title span {
  10258. margin-right: 10px;
  10259. }
  10260. .e_add_title .el_input {
  10261. width: 300px;
  10262. }
  10263. .e_add_title>>>.el-input__inner {
  10264. width: 400px;
  10265. }
  10266. .e_add_btn {}
  10267. .e_add_content {
  10268. display: flex;
  10269. width: 100%;
  10270. }
  10271. .e_add_list {
  10272. background: #fff;
  10273. height: 500px;
  10274. width: 210px;
  10275. position: relative;
  10276. margin: 15px 5px 0 0;
  10277. flex-shrink: 0;
  10278. display: flex;
  10279. flex-direction: column;
  10280. }
  10281. .e_add_list_title {
  10282. font-size: 20px;
  10283. width: 100%;
  10284. box-sizing: border-box;
  10285. padding: 15px 40px;
  10286. text-align: center;
  10287. border-bottom: 1px solid #eaeaea;
  10288. position: relative;
  10289. display: flex;
  10290. align-items: center;
  10291. justify-content: center;
  10292. height: 57px;
  10293. background: #f6f6f6;
  10294. }
  10295. .e_add_list_title span {
  10296. overflow: hidden;
  10297. white-space: nowrap;
  10298. text-overflow: ellipsis;
  10299. }
  10300. .e_add_list_title img {
  10301. position: absolute;
  10302. right: 15px;
  10303. width: 25px;
  10304. cursor: pointer;
  10305. top: 50%;
  10306. transform: translateY(-50%);
  10307. }
  10308. .e_add_list_body {
  10309. height: calc(100% - 187px);
  10310. overflow: auto;
  10311. }
  10312. .e_add_list_child {
  10313. width: 100%;
  10314. display: flex;
  10315. align-items: center;
  10316. justify-content: center;
  10317. position: relative;
  10318. box-sizing: border-box;
  10319. padding: 15px 40px;
  10320. text-align: center;
  10321. }
  10322. .e_add_list_child span {
  10323. overflow: hidden;
  10324. white-space: nowrap;
  10325. text-overflow: ellipsis;
  10326. cursor: pointer;
  10327. }
  10328. .e_add_list_child img {
  10329. position: absolute;
  10330. right: 10px;
  10331. width: 21px;
  10332. cursor: pointer;
  10333. top: 50%;
  10334. transform: translateY(-50%);
  10335. }
  10336. .e_add_list_child+.e_add_list_child {
  10337. border-top: 1px solid #eaeaea;
  10338. }
  10339. .e_add_list_child .active {
  10340. color: #409eff;
  10341. }
  10342. .e_add_list_btn {
  10343. position: absolute;
  10344. bottom: 0;
  10345. height: 50px;
  10346. background: rgb(120, 120, 254);
  10347. width: 100%;
  10348. color: #fff;
  10349. font-size: 16px;
  10350. text-align: center;
  10351. line-height: 50px;
  10352. cursor: pointer;
  10353. }
  10354. .e_add_list_detail {
  10355. position: absolute;
  10356. bottom: 0;
  10357. height: 130px;
  10358. background: rgb(120, 120, 254);
  10359. width: 100%;
  10360. color: #fff;
  10361. font-size: 16px;
  10362. display: flex;
  10363. align-items: center;
  10364. justify-content: center;
  10365. }
  10366. .e_add_list_detail textarea {
  10367. height: 90%;
  10368. width: 95%;
  10369. border: none;
  10370. resize: none;
  10371. outline: none;
  10372. padding: 5px;
  10373. box-sizing: border-box;
  10374. }
  10375. .e_add_list_pbox {
  10376. width: 100%;
  10377. }
  10378. .e_add_list_pbox_title {
  10379. height: 50px;
  10380. background: #fff;
  10381. display: flex;
  10382. align-items: center;
  10383. width: 100%;
  10384. box-sizing: border-box;
  10385. padding: 0 20px;
  10386. flex-direction: row;
  10387. flex-wrap: wrap;
  10388. }
  10389. .type_title {
  10390. font-size: 18px;
  10391. font-weight: 700;
  10392. }
  10393. .type_content {
  10394. font-size: 16px;
  10395. margin-left: 30px;
  10396. }
  10397. .type_content span+span {
  10398. margin-left: 20px;
  10399. }
  10400. .type_content span {
  10401. cursor: pointer;
  10402. padding-bottom: 5px;
  10403. box-sizing: border-box;
  10404. }
  10405. .type_content .active {
  10406. color: #409eff;
  10407. border-bottom: 2px solid #409eff;
  10408. }
  10409. .e_add_list_pbox_content {
  10410. height: calc(100% - 50px);
  10411. display: flex;
  10412. align-items: center;
  10413. width: 100%;
  10414. background: #fff;
  10415. }
  10416. .mbCss {
  10417. width: 100%;
  10418. display: flex;
  10419. flex-direction: row;
  10420. flex-wrap: nowrap;
  10421. align-content: center;
  10422. align-items: flex-start;
  10423. justify-content: flex-start;
  10424. }
  10425. .pjCss {
  10426. /* width: 42%; */
  10427. width: calc(100% - 55%);
  10428. display: flex;
  10429. flex-direction: column;
  10430. flex-wrap: nowrap;
  10431. align-items: flex-start;
  10432. margin-top: 1.5%;
  10433. }
  10434. .e_box {
  10435. display: flex;
  10436. flex-wrap: wrap;
  10437. max-height: 500px;
  10438. align-items: flex-start;
  10439. overflow: auto;
  10440. }
  10441. .e_card {
  10442. border: 1px solid #ccc;
  10443. background: #fff;
  10444. margin-right: 20px;
  10445. width: 270px;
  10446. display: flex;
  10447. flex-direction: column;
  10448. align-items: center;
  10449. border-radius: 5px;
  10450. margin-top: 10px;
  10451. text-align: center;
  10452. }
  10453. .e_card_picture {
  10454. margin: 10px 0;
  10455. }
  10456. .e_card_picture>img {
  10457. width: 50px;
  10458. }
  10459. .e_card_name {
  10460. width: 100%;
  10461. padding: 0 10px;
  10462. box-sizing: border-box;
  10463. margin-bottom: 10px;
  10464. overflow: hidden;
  10465. text-overflow: ellipsis;
  10466. white-space: nowrap;
  10467. }
  10468. .e_card_time {
  10469. width: 100%;
  10470. padding: 0 10px;
  10471. box-sizing: border-box;
  10472. font-size: 15px;
  10473. color: #c3c3c3;
  10474. margin-bottom: 10px;
  10475. }
  10476. .e_card_btn {
  10477. height: 40px;
  10478. display: flex;
  10479. align-items: center;
  10480. width: 100%;
  10481. background: rgb(244, 244, 244);
  10482. }
  10483. .e_card_btn:hover {
  10484. background: rgb(221 221 221);
  10485. }
  10486. .e_card_btn span {
  10487. flex: 1 1 auto;
  10488. text-align: center;
  10489. cursor: pointer;
  10490. }
  10491. .addEva {
  10492. border: 1px solid #ccc;
  10493. background: #fff;
  10494. margin-right: 20px;
  10495. width: 270px;
  10496. height: 149px;
  10497. display: flex;
  10498. flex-direction: column;
  10499. align-items: center;
  10500. border-radius: 5px;
  10501. margin-top: 10px;
  10502. text-align: center;
  10503. cursor: pointer;
  10504. justify-content: center;
  10505. }
  10506. .addEva>img {
  10507. width: 50px;
  10508. object-fit: cover;
  10509. }
  10510. .uploadFm {
  10511. border: 1px dashed #ccc;
  10512. width: 202px;
  10513. height: 102px;
  10514. position: relative;
  10515. cursor: pointer;
  10516. display: flex;
  10517. flex-direction: column;
  10518. justify-content: center;
  10519. align-items: center;
  10520. font-size: 14px;
  10521. color: #6e6e6e;
  10522. }
  10523. .uploadFm>img {
  10524. width: 50px;
  10525. }
  10526. .fileCss {
  10527. width: 100%;
  10528. display: flex;
  10529. flex-direction: row;
  10530. flex-wrap: nowrap;
  10531. justify-content: space-around;
  10532. align-items: center;
  10533. padding-top: 15px;
  10534. }
  10535. .sysPicBox {
  10536. display: flex;
  10537. flex-direction: row;
  10538. flex-wrap: wrap;
  10539. align-content: flex-start;
  10540. height: 435px;
  10541. overflow: auto;
  10542. }
  10543. .sysPic {
  10544. width: 200px;
  10545. height: 115px;
  10546. margin: 0 20px 20px 0;
  10547. cursor: pointer;
  10548. }
  10549. .sysPic>img,
  10550. .isSysPic>img,
  10551. .deletePic>img {
  10552. width: 100%;
  10553. height: 100%;
  10554. object-fit: cover;
  10555. }
  10556. .isSysPic {
  10557. width: 200px;
  10558. height: 115px;
  10559. position: relative;
  10560. }
  10561. .deletePic {
  10562. width: 20px;
  10563. height: 20px;
  10564. position: absolute;
  10565. top: 0;
  10566. right: 0;
  10567. cursor: pointer;
  10568. }
  10569. .select_box1 {}
  10570. .select_box1_img {
  10571. background: #fff;
  10572. border-radius: 5px;
  10573. padding: 15px;
  10574. box-sizing: border-box;
  10575. margin-bottom: 20px;
  10576. }
  10577. .select_box1_title {
  10578. padding: 0 0 15px 0;
  10579. border-bottom: 1px solid #eee;
  10580. margin-bottom: 15px;
  10581. }
  10582. .select_box1_title span:nth-child(1) {
  10583. font-size: 16px;
  10584. margin-right: 20px;
  10585. color: #000;
  10586. }
  10587. .select_box1_title span:nth-child(2) {
  10588. font-size: 14px;
  10589. color: rgb(112, 112, 112);
  10590. }
  10591. .select_box1_add_img {}
  10592. .select_box1_select {
  10593. background: #fff;
  10594. border-radius: 5px;
  10595. padding: 15px;
  10596. box-sizing: border-box;
  10597. }
  10598. .select_box2 {}
  10599. .select_box2_title {
  10600. background: #fff;
  10601. border-radius: 5px;
  10602. padding: 5px 10px;
  10603. box-sizing: border-box;
  10604. margin-bottom: 10px;
  10605. }
  10606. .select_box2_box {
  10607. display: flex;
  10608. height: 500px;
  10609. }
  10610. .select_box2_img {
  10611. width: calc(100% - 310px);
  10612. height: 100%;
  10613. overflow: auto;
  10614. background: #fff;
  10615. border-radius: 5px;
  10616. }
  10617. .select_box2_img img {
  10618. width: 100%;
  10619. }
  10620. .select_box2_answer {
  10621. background: #fff;
  10622. margin-left: 10px;
  10623. border-radius: 5px;
  10624. width: 300px;
  10625. overflow: auto;
  10626. height: 100%;
  10627. display: flex;
  10628. flex-direction: column;
  10629. align-items: center;
  10630. padding-top: 10px;
  10631. box-sizing: border-box;
  10632. }
  10633. .select_box2_answer_box {
  10634. margin: 0 0 10px 0;
  10635. width: 85%;
  10636. }
  10637. .rate_textarea {
  10638. font: inherit;
  10639. color: currentColor;
  10640. width: 100%;
  10641. padding: 8px 14px;
  10642. display: block;
  10643. min-width: 0;
  10644. outline: none;
  10645. border: 1px solid rgba(0, 0, 0, 0.23);
  10646. border-radius: 4px;
  10647. box-sizing: border-box;
  10648. background: #fff;
  10649. margin: 0 20px 0 0;
  10650. resize: none;
  10651. }
  10652. .select_answer_title {
  10653. text-align: left;
  10654. width: 85%;
  10655. margin-bottom: 10px;
  10656. font-size: 18px;
  10657. color: #8e8e8e;
  10658. }
  10659. .mask {
  10660. background-color: rgb(0 0 0 / 30%);
  10661. /* position: fixed; */
  10662. position: absolute;
  10663. top: 0;
  10664. left: 0;
  10665. width: 100%;
  10666. height: 100%;
  10667. z-index: 90;
  10668. display: flex;
  10669. align-items: center;
  10670. justify-content: center;
  10671. }
  10672. .progressBox {
  10673. width: 300px;
  10674. height: 150px;
  10675. background: #fff;
  10676. border-radius: 10px;
  10677. box-shadow: 0 0 6px 1px #bfbfbf;
  10678. display: flex;
  10679. align-items: center;
  10680. justify-content: center;
  10681. flex-direction: column;
  10682. position: relative;
  10683. color: #6c6c6c;
  10684. }
  10685. .progressBox>>>.el-progress-bar__outer {
  10686. background-color: #d1dfff !important;
  10687. }
  10688. .progressBox .lbox {
  10689. height: 50px;
  10690. font-size: 19px;
  10691. display: flex;
  10692. align-items: center;
  10693. color: #747474;
  10694. }
  10695. .progressBox .lbox img {
  10696. width: 40px;
  10697. margin-right: 20px;
  10698. }
  10699. .closeCss {
  10700. position: absolute;
  10701. top: 8px;
  10702. right: 8px;
  10703. cursor: pointer;
  10704. width: 20px;
  10705. height: 20px;
  10706. }
  10707. .closeCss>img {
  10708. width: 100%;
  10709. height: 100%;
  10710. }
  10711. .updateTips::after {
  10712. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  10713. font-size: 14px;
  10714. margin-left: 20px;
  10715. font-weight: 400;
  10716. color: #ff3a3a;
  10717. }
  10718. .updateMask {
  10719. width: 100%;
  10720. z-index: 3;
  10721. top: 0;
  10722. position: absolute;
  10723. /* background-color: rgba(0,0,0,.3); */
  10724. }
  10725. .t_j_box {
  10726. display: flex;
  10727. }
  10728. .t_j_box span:nth-child(1) {
  10729. width: 15%;
  10730. overflow: hidden;
  10731. margin-right: 10px;
  10732. text-overflow: ellipsis;
  10733. white-space: nowrap;
  10734. }
  10735. .t_j_box span:nth-child(2) {
  10736. width: 30%;
  10737. overflow: hidden;
  10738. text-overflow: ellipsis;
  10739. margin-right: 10px;
  10740. }
  10741. .t_j_box span:nth-child(3) {
  10742. max-width: calc(55% - 20px);
  10743. overflow: hidden;
  10744. text-overflow: ellipsis;
  10745. }
  10746. .sentenBox {
  10747. background: #fff;
  10748. height: 600px;
  10749. overflow: auto;
  10750. background-image: url("../../../assets/icon/conSentences/csBg.png");
  10751. background-position: 102%;
  10752. background-repeat: no-repeat;
  10753. background-size: 60%;
  10754. }
  10755. .addSen {
  10756. background: #409efe;
  10757. width: 90px;
  10758. color: #fff;
  10759. height: 35px;
  10760. text-align: center;
  10761. line-height: 35px;
  10762. border-radius: 5px;
  10763. float: right;
  10764. margin: 10px 20px 0 0;
  10765. cursor: pointer;
  10766. }
  10767. .sentenTop {
  10768. display: flex;
  10769. flex-direction: row;
  10770. flex-wrap: nowrap;
  10771. align-items: center;
  10772. }
  10773. .sentenTop>div:nth-child(2) {
  10774. width: 300px;
  10775. margin: 0 15px;
  10776. }
  10777. .sentenTop>div:nth-child(3) {
  10778. background: #409efe;
  10779. color: #fff;
  10780. width: 65px;
  10781. height: 35px;
  10782. text-align: center;
  10783. line-height: 35px;
  10784. border-radius: 5px;
  10785. cursor: pointer;
  10786. }
  10787. .cardList {
  10788. padding: 30px 0 20px 0;
  10789. display: flex;
  10790. flex-direction: row;
  10791. flex-wrap: wrap;
  10792. align-items: center;
  10793. box-sizing: border-box;
  10794. border-bottom: 1px solid #f4f4f4;
  10795. width: 98%;
  10796. margin: 0 auto;
  10797. }
  10798. .cardBox {
  10799. display: flex;
  10800. flex-direction: row;
  10801. flex-wrap: wrap;
  10802. align-items: center;
  10803. align-content: center;
  10804. }
  10805. .isCard,
  10806. .isCard1 {
  10807. width: 140px;
  10808. height: 65px;
  10809. text-align: center;
  10810. line-height: 65px;
  10811. font-size: 20px;
  10812. cursor: pointer;
  10813. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  10814. background-size: cover;
  10815. position: relative;
  10816. z-index: 99;
  10817. }
  10818. .isCard1 {
  10819. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  10820. }
  10821. .isCard:hover .deleteWord {
  10822. display: block;
  10823. }
  10824. .isCard>div:nth-child(1),
  10825. .isCard1>div:nth-child(1) {
  10826. white-space: nowrap;
  10827. overflow: hidden;
  10828. text-overflow: ellipsis;
  10829. width: 80%;
  10830. margin: 0 auto;
  10831. }
  10832. .card {
  10833. width: 140px;
  10834. height: 65px;
  10835. }
  10836. .card>img {
  10837. width: 100%;
  10838. height: 100%;
  10839. }
  10840. .rightCardBox {
  10841. margin: 10px 0 0 10px;
  10842. }
  10843. .rightCardBox>div:nth-child(1) {
  10844. margin-bottom: 10px;
  10845. }
  10846. .cardCss {
  10847. display: flex;
  10848. flex-direction: column;
  10849. flex-wrap: nowrap;
  10850. align-items: center;
  10851. border-bottom: 3px solid #b4c3d3;
  10852. padding: 0 0 5px 0;
  10853. margin-right: 10px;
  10854. }
  10855. .cardCss>div:nth-child(2) {
  10856. background: #5b7b9d;
  10857. color: #fff;
  10858. width: 20px;
  10859. height: 20px;
  10860. border-radius: 50%;
  10861. text-align: center;
  10862. line-height: 20px;
  10863. }
  10864. .sentenTopBox {
  10865. display: flex;
  10866. flex-direction: row;
  10867. flex-wrap: nowrap;
  10868. align-items: center;
  10869. justify-content: space-between;
  10870. padding: 55px 0 0 20px;
  10871. box-sizing: border-box;
  10872. width: 85%;
  10873. }
  10874. .stepsBottom {
  10875. width: 85%;
  10876. margin-bottom: 20px;
  10877. box-shadow: 0 0 10px 10px #f7f7f7;
  10878. background: #f7f7f7;
  10879. border-radius: 10px;
  10880. overflow: hidden;
  10881. }
  10882. .course_left {
  10883. width: 300px;
  10884. height: auto;
  10885. position: relative;
  10886. }
  10887. .stepsBottom2 {
  10888. width: 300px;
  10889. margin: 20px 0;
  10890. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  10891. /* background: #f7f7f7; */
  10892. border-radius: 8px;
  10893. overflow: hidden;
  10894. height: fit-content;
  10895. position: relative;
  10896. /* transition: all .5s; */
  10897. }
  10898. .navTop {
  10899. background: #53749b;
  10900. color: #fff;
  10901. height: 40px;
  10902. line-height: 40px;
  10903. padding-left: 15px;
  10904. font-size: 18px;
  10905. }
  10906. .navBottom {
  10907. background: #F0F4FA;
  10908. height: 300px;
  10909. overflow: auto;
  10910. }
  10911. .navTask {
  10912. display: flex;
  10913. flex-direction: row;
  10914. flex-wrap: nowrap;
  10915. align-items: center;
  10916. padding: 10px 10px 10px 0;
  10917. cursor: pointer;
  10918. background: #ffffff;
  10919. width: 95%;
  10920. margin: 10px auto;
  10921. box-sizing: border-box;
  10922. border-radius: 5px;
  10923. }
  10924. .isNavTask {
  10925. background: #3681FC;
  10926. }
  10927. .isNavTask .nt_taskName {
  10928. color: #fff !important;
  10929. }
  10930. .isNavTask .nt_taskTitle {
  10931. color: #AECCFE !important;
  10932. }
  10933. .navTask .nt_taskBox {
  10934. width: calc(100% - 40px);
  10935. padding: 0 10px 0 20px;
  10936. box-sizing: border-box;
  10937. }
  10938. .navTask .nt_taskTitle {
  10939. color: #717C8D;
  10940. line-height: 25px;
  10941. font-size: 14px;
  10942. }
  10943. .navTask .nt_taskName {
  10944. /* color: #fff; */
  10945. /* max-width: 130px; */
  10946. width: 100%;
  10947. white-space: nowrap;
  10948. overflow: hidden;
  10949. text-overflow: ellipsis;
  10950. font-size: 15px;
  10951. color: #0E1E33;
  10952. }
  10953. .groupBox {}
  10954. .groupContent+.groupContent {
  10955. margin-top: 30px;
  10956. }
  10957. .groupTitle {
  10958. font-size: 24px;
  10959. color: rgb(80, 80, 80);
  10960. margin-bottom: 20px;
  10961. }
  10962. .groupName {
  10963. display: flex;
  10964. align-items: center;
  10965. }
  10966. .groupn {
  10967. font-size: 15px;
  10968. margin-right: 10px;
  10969. }
  10970. .groupName+.groupName {
  10971. margin-top: 15px;
  10972. }
  10973. .groupBtn {
  10974. margin-left: 10px;
  10975. }
  10976. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10977. text-align: left;
  10978. }
  10979. .radioBox>div {
  10980. margin: 10px 0 0 10px;
  10981. }
  10982. .radioBox>>>.el-radio__input,
  10983. .radioBox>>>.el-checkbox__inner {
  10984. margin-left: 10px;
  10985. }
  10986. .radioBox>>>.el-radio__label,
  10987. .radioBox>>>.el-checkbox__label {
  10988. display: flex;
  10989. align-items: center;
  10990. }
  10991. .inImg {
  10992. width: 50px;
  10993. }
  10994. .inImg>img {
  10995. width: 100%;
  10996. height: 100%;
  10997. object-fit: cover;
  10998. }
  10999. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  11000. height: auto;
  11001. }
  11002. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  11003. width: 200px;
  11004. height: 100px;
  11005. object-fit: contain;
  11006. background: unset;
  11007. }
  11008. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  11009. display: none;
  11010. }
  11011. .tcMember+.tcMember::before {
  11012. content: "、";
  11013. }
  11014. .xzUpImg {
  11015. width: 25px;
  11016. height: 25px;
  11017. cursor: pointer;
  11018. }
  11019. .xzUpImg>img {
  11020. width: 100%;
  11021. height: 100%;
  11022. }
  11023. .closeCss {
  11024. position: absolute;
  11025. top: 8px;
  11026. right: 8px;
  11027. cursor: pointer;
  11028. width: 20px;
  11029. height: 20px;
  11030. }
  11031. .closeCss>img {
  11032. width: 100%;
  11033. height: 100%;
  11034. }
  11035. .moveBtn {
  11036. display: flex;
  11037. flex-direction: column;
  11038. align-items: flex-end;
  11039. width: 40px;
  11040. }
  11041. .timuUpImg {
  11042. display: flex;
  11043. flex-direction: row;
  11044. align-items: center;
  11045. }
  11046. .timuUpImg>div:nth-child(1) {
  11047. margin-right: 10px;
  11048. }
  11049. .timuImgBox {
  11050. margin: 10px 0;
  11051. display: flex;
  11052. flex-direction: column;
  11053. flex-wrap: wrap;
  11054. align-items: flex-start;
  11055. }
  11056. .timuImg {
  11057. width: 100px;
  11058. margin: 5px 0;
  11059. cursor: pointer;
  11060. position: relative;
  11061. }
  11062. .timuImg:hover .deleteWord {
  11063. display: block;
  11064. }
  11065. .deleteWord {
  11066. width: 25px;
  11067. height: 25px;
  11068. position: absolute;
  11069. right: -5px;
  11070. top: -5px;
  11071. cursor: pointer;
  11072. display: none;
  11073. }
  11074. .timuImg>img,
  11075. .deleteWord>img {
  11076. width: 100%;
  11077. height: 100%;
  11078. object-fit: cover;
  11079. }
  11080. .e_add_delete {
  11081. cursor: pointer;
  11082. margin-left: 10px;
  11083. }
  11084. .pType_box {
  11085. margin-top: 30px;
  11086. align-items: flex-end;
  11087. }
  11088. .noneBox {
  11089. height: 100%;
  11090. width: 100%;
  11091. display: flex;
  11092. align-items: center;
  11093. justify-content: center;
  11094. margin-top: 150px;
  11095. }
  11096. .noneBox>img {
  11097. width: 300px;
  11098. }
  11099. </style>