addCourse.vue 343 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  6. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  7. <div class="courseTop">
  8. <div class="stepsNav">
  9. <h3 class="info_title" v-if="steps == 1">填写基本信息</h3>
  10. <h3 class="info_title" v-if="steps == 4">上传课程</h3>
  11. <el-breadcrumb separator-class="el-icon-arrow-right" style="margin-top: 15px">
  12. <el-breadcrumb-item :to="{
  13. path:
  14. '/course?userid=' +
  15. userid +
  16. '&oid=' +
  17. oid +
  18. '&org=' +
  19. org +
  20. '&role=' +
  21. role,
  22. }">课程管理</el-breadcrumb-item>
  23. <el-breadcrumb-item>
  24. <span style="color: rgb(15, 126, 255)">添加课程</span>
  25. </el-breadcrumb-item>
  26. </el-breadcrumb>
  27. </div>
  28. </div>
  29. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  30. <div class="updateMask" :style="{
  31. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  32. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  33. <div class="whiteBg">
  34. <div class="right_title" :class="{ updateTips: cid && userid != courseUserid && role != '1' }">
  35. 课程基本信息
  36. </div>
  37. <div class="basic_box">
  38. <div class="big_box">
  39. <div class="left_first">
  40. <div>
  41. <div>
  42. <div class="bInfo_title" style="margin-bottom: 15px">
  43. <!-- <span style="color: red">*</span> -->
  44. 课程名称
  45. </div>
  46. <div style="display: flex; margin-right: 20px">
  47. <img src="../../../assets/icon/projectName.png" alt style="margin-right: 8px" />
  48. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName" />
  49. </div>
  50. </div>
  51. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  52. <span>类型</span>
  53. <!-- 学科+ 主题+ 未来+ -->
  54. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  55. style="display: flex; align-items: center">
  56. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  57. <el-radio :label="item.name">{{
  58. item.name
  59. }}</el-radio>
  60. </div>
  61. </el-radio-group>
  62. </div>
  63. <div class="both">
  64. <div class="choose">
  65. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  66. <span v-if="CourseTypeJson[item.id].length > 0 &&
  67. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  68. ? pTypeCheck.indexOf(item.id) != -1
  69. : true)
  70. ">{{ item.name }}</span>
  71. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  72. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  73. ? pTypeCheck.indexOf(item.id) != -1
  74. : true)
  75. ">
  76. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  77. item1.name }}</el-checkbox>
  78. </el-checkbox-group>
  79. <!-- <div
  80. v-else
  81. style="font-size: 14px; margin-left: -8px"
  82. >
  83. 暂无
  84. </div> -->
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="whiteBg" style="border-radius: 0">
  94. <div class="right_first">
  95. <div class="right_title">上传封面</div>
  96. <div style="
  97. padding: 0 0 50px 20px;
  98. display: flex;
  99. align-items: baseline;
  100. justify-content: flex-start;
  101. margin: 0 auto;
  102. ">
  103. <div>
  104. <div class="bInfo_title" style="margin-top: 0 !important">
  105. 课程封面
  106. </div>
  107. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  108. <img src="../../../assets/icon/addPoster.png" alt="" />
  109. </div>
  110. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  111. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  112. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  113. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  114. <i class="el-icon-plus"></i>
  115. </el-upload>
  116. </div>
  117. <div style="
  118. display: flex;
  119. flex-flow: row nowrap;
  120. flex-direction: row;
  121. flex-wrap: wrap;
  122. align-items: baseline;
  123. margin: 0 30px;
  124. ">
  125. <div style="margin: 0 30px 0 0; width: 150px">
  126. <div class="bInfo_title">添加班级</div>
  127. <div class="addPeople" @click="(dialogVisibleClass = true),
  128. (classSearch = ''),
  129. getClass()
  130. ">
  131. 添加班级
  132. </div>
  133. <div v-if="checkboxList2.length" style="
  134. max-width: 100%;
  135. word-break: break-all;
  136. overflow: hidden;
  137. margin-top: 10px;
  138. font-size: 14px;
  139. color: #6e6e6e;
  140. ">
  141. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2"
  142. :key="tcIndex">{{ getClassC(tc) }}</span>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="false">
  150. <div class="right_title">课程简要描述</div>
  151. <div style="width: 95%; padding: 15px 0px 15px 20px">
  152. <div style="width: 55%">
  153. <textarea rows="8" class="binfo_input" cols v-model="courseText" :placeholder="'1、课程内容说明' +
  154. '\n' +
  155. '2、课程学习知识目标' +
  156. '\n' +
  157. '3、课程学习技能目标'
  158. "></textarea>
  159. </div>
  160. </div>
  161. </div>
  162. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  163. <div class="right_title">
  164. <span>上传课程内容</span>
  165. <el-button type="primary" @click="pasteTask" size="small">智能粘贴</el-button>
  166. </div>
  167. <div style=" padding: 0 0 50px 20px;display: flex;">
  168. <div class="course_left">
  169. <div class="stepsBottom2">
  170. <div class="navTop">辅助导航</div>
  171. <div class="navBottom">
  172. <div class="navTask" :class="{
  173. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  174. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  175. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  176. <div>任务{{ tIndex + 1 }}</div>
  177. <div>
  178. <el-tooltip effect="light" :content="t.task" placement="top">
  179. <span>{{ t.task }}</span>
  180. </el-tooltip>
  181. </div>
  182. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1">
  183. <div class="chapter_upload_up" style="width: 15px; height: 15px"
  184. @click.stop="taskMove(1, tIndex)">
  185. </div>
  186. <div class="chapter_upload_down" style="width: 15px; height: 15px; margin: 2px 0 0"
  187. @click.stop="taskMove(2, tIndex)"></div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. <div class="basic_box2">
  194. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  195. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  196. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  197. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  198. <div v-if="unitJson[unitIndex].easy != 1">
  199. <div :style="{
  200. marginBottom:
  201. unitJson[unitIndex].easy == 3 ||
  202. (unitJson[unitIndex].easy == 5 &&
  203. itemTask.taskType == 1)
  204. ? '75px'
  205. : '0',
  206. }">
  207. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  208. 任务{{ itemTaskIndex + 1 }}
  209. </div>
  210. <div class="chapter_contentbox" style="
  211. flex-direction: row;
  212. justify-content: flex-start;
  213. align-items: center;
  214. ">
  215. <div style="
  216. border-left: 6px solid #5699e8;
  217. height: 20px;
  218. padding-left: 10px;
  219. line-height: 22px;
  220. ">
  221. 任务名称
  222. </div>
  223. <div>
  224. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  225. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  226. itemTaskIndex
  227. ].task
  228. " />
  229. </div>
  230. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"
  231. style="position: absolute; right: 55px">
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. <div style="padding: 25px 0 10px 30px;">
  237. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  238. itemTaskIndex
  239. ].taskDetail
  240. " @change="change"></editor-bar> -->
  241. <textarea
  242. rows="2"
  243. class="binfo_input"
  244. placeholder="请输入任务描述"
  245. cols
  246. style="width: 90% !important; resize:none"
  247. v-model="
  248. unitJson[unitIndex].chapterInfo[0].taskJson[
  249. itemTaskIndex
  250. ].taskDetail
  251. "
  252. ></textarea>
  253. </div>
  254. <div class="basic_box" style="
  255. margin: 0;
  256. min-height: 0;
  257. width: 90% !important;
  258. padding-top: 10px !important;
  259. ">
  260. <div style="
  261. display: flex;
  262. margin: 0 0 20px 0;
  263. flex-direction: row;
  264. justify-content: flex-start;
  265. align-items: center;
  266. ">
  267. <div class="lineTitle">学习内容</div>
  268. <div class="line"></div>
  269. </div>
  270. <div>
  271. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  272. itemTask.chapterData.length == 0
  273. " style="height: 185px"></div>
  274. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  275. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  276. @click="getChapterData(
  277. $event,
  278. unitIndex,
  279. index,
  280. index1,
  281. item1.type
  282. )
  283. ">
  284. <div class="chapter_upload_t" style="width: 100%"></div>
  285. <div class="chapter_upload_o" style="
  286. position: relative;
  287. display: flex;
  288. align-items: center;
  289. ">
  290. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  291. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  292. <div v-if="item1.type == 3 ||
  293. item1.type == 12 ||
  294. item1.type == 6 ||
  295. item1.type == 7
  296. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  297. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  298. </div>
  299. <div class="chapter_upload_ic" style="
  300. cursor: pointer;
  301. position: absolute;
  302. width: 45px;
  303. right: 0;
  304. top: 0;
  305. ">
  306. <div class="chapter_upload_ic_l"></div>
  307. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  308. $event,
  309. unitIndex,
  310. index,
  311. index1,
  312. itemTaskIndex
  313. )
  314. ">
  315. <div></div>
  316. </div>
  317. </div>
  318. <div class="chapter_upload_n">
  319. <input v-if="item1.type == 2 ||
  320. item1.type == 3 ||
  321. item1.type == 12 ||
  322. item1.type == 7
  323. " :placeholder="item1.name" @change="updataVideoT(
  324. $event,
  325. unitIndex,
  326. chapterIndex,
  327. index1
  328. )
  329. " style="
  330. border: none;
  331. outline: none;
  332. width: 80%;
  333. minwidth: 215px;
  334. z-index: 99;
  335. font-size: 14px;
  336. white-space: nowrap;
  337. overflow: hidden;
  338. text-overflow: ellipsis;
  339. " />
  340. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  341. border: none;
  342. outline: none;
  343. width: 80%;
  344. white-space: nowrap;
  345. overflow: hidden;
  346. text-overflow: ellipsis;
  347. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  348. <input :placeholder="item1.title ? item1.title : '链接'
  349. " v-if="item1.type == 8" style="
  350. border: none;
  351. outline: none;
  352. width: 80%;
  353. white-space: nowrap;
  354. overflow: hidden;
  355. text-overflow: ellipsis;
  356. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  357. <div class="chapter_upload_ud" style="z-index: 99">
  358. <div class="chapter_upload_up" @click="upCd(
  359. $event,
  360. unitIndex,
  361. index,
  362. itemTaskIndex,
  363. index1
  364. )
  365. "></div>
  366. <div class="chapter_upload_down" @click="downCd(
  367. $event,
  368. unitIndex,
  369. index,
  370. itemTaskIndex,
  371. index1
  372. )
  373. "></div>
  374. </div>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. </div>
  380. <div class="add_info_box">
  381. <button class="info_btn" @click="addImg($event)">
  382. 添加视频
  383. <!-- capture="camera" -->
  384. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  385. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  386. " />
  387. </button>
  388. <button class="info_btn" @click="addImg($event)">
  389. 添加文档
  390. <input type="file"
  391. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  392. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  393. " />
  394. </button>
  395. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  396. 添加图文
  397. </button>
  398. <button class="info_btn" @click="openLine(itemTaskIndex)">
  399. 添加链接
  400. </button>
  401. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  402. 嵌入代码
  403. </button>
  404. <button class="info_btn" @click="openSource(itemTaskIndex)">
  405. 添加资源
  406. </button>
  407. <button class="info_btn" @click="addImg($event)">
  408. 其他附件
  409. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  410. " />
  411. </button>
  412. </div>
  413. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  414. itemTaskIndex
  415. ].proVisible
  416. " class="mask">
  417. <div class="progressBox">
  418. <!-- <div id="closePro" class="closeCss">
  419. <img src="../../../../assets/icon/close.png" alt />
  420. </div> -->
  421. <div class="lbox">
  422. <img src="../../../assets/loading.gif" />上传中,请稍后
  423. </div>
  424. <div style="margin-bottom: 10px">
  425. <span>{{
  426. unitJson[unitIndex].chapterInfo[0].taskJson[
  427. itemTaskIndex
  428. ].isFinishSize
  429. }}M</span>
  430. /
  431. <span>{{
  432. unitJson[unitIndex].chapterInfo[0].taskJson[
  433. itemTaskIndex
  434. ].isAllSize
  435. }}M</span>
  436. </div>
  437. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  438. itemTaskIndex
  439. ].progress
  440. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  441. itemTaskIndex
  442. ].progress
  443. : 0
  444. " style="width: 80%"></el-progress>
  445. </div>
  446. </div>
  447. </div>
  448. </div>
  449. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  450. <div>
  451. <img src="../../../assets/icon/addHw.png" alt />
  452. <span>添加任务</span>
  453. </div>
  454. </div>
  455. </div>
  456. </div>
  457. </div>
  458. </div>
  459. </div>
  460. <div class="rightBox" v-if="this.steps == 2">
  461. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  462. <div class="right_title" style="border: none; margin: 0; padding: 0">
  463. 请选择合适的课程模板
  464. </div>
  465. <div class="wordbox">
  466. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  467. <div class="wordPic">
  468. <img src="../../../assets/icon/wordMub.png" alt />
  469. </div>
  470. <div style="
  471. margin-top: 10px;
  472. line-height: 19px;
  473. overflow: hidden;
  474. text-overflow: ellipsis;
  475. white-space: nowrap;
  476. padding: 0 20px;
  477. ">
  478. {{ aa.title }}
  479. </div>
  480. </div>
  481. <div class="wordTeacher" @click="checkTemplate2()">
  482. <div class="wordPic">
  483. <img src="../../../assets/icon/wordMub.png" alt />
  484. </div>
  485. <div style="
  486. margin-top: 10px;
  487. line-height: 19px;
  488. overflow: hidden;
  489. text-overflow: ellipsis;
  490. white-space: nowrap;
  491. padding: 0 20px;
  492. ">
  493. 任务模式
  494. </div>
  495. </div>
  496. <div class="wordTeacher" @click="checkTemplate3()">
  497. <div class="wordPic">
  498. <img src="../../../assets/icon/wordMub.png" alt />
  499. </div>
  500. <div style="
  501. margin-top: 10px;
  502. line-height: 19px;
  503. overflow: hidden;
  504. text-overflow: ellipsis;
  505. white-space: nowrap;
  506. padding: 0 20px;
  507. ">
  508. 简易模式
  509. </div>
  510. </div>
  511. <div class="wordTeacher" @click="pasteStage()">
  512. <div class="wordPic">
  513. <img src="../../../assets/icon/wordMub.png" alt />
  514. </div>
  515. <div style="
  516. margin-top: 10px;
  517. line-height: 19px;
  518. overflow: hidden;
  519. text-overflow: ellipsis;
  520. white-space: nowrap;
  521. padding: 0 20px;
  522. ">
  523. 智能粘贴模式
  524. </div>
  525. </div>
  526. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  527. <div class="wordPic">
  528. <img src="../../../assets/icon/wordMub.png" alt />
  529. </div>
  530. <div style="
  531. margin-top: 10px;
  532. line-height: 19px;
  533. overflow: hidden;
  534. text-overflow: ellipsis;
  535. white-space: nowrap;
  536. padding: 0 20px;
  537. ">
  538. 未来小学课程设计
  539. </div>
  540. </div> -->
  541. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  542. <div class="wordPic">
  543. <img src="../../../assets/icon/wordMub.png" alt />
  544. </div>
  545. <div style="
  546. margin-top: 10px;
  547. line-height: 19px;
  548. overflow: hidden;
  549. text-overflow: ellipsis;
  550. white-space: nowrap;
  551. padding: 0 20px;
  552. ">
  553. 我的课程
  554. </div>
  555. </div> -->
  556. </div>
  557. </div>
  558. </div>
  559. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  560. <div class="basic_box">
  561. <div style="
  562. display: flex;
  563. flex-direction: row;
  564. align-items: center;
  565. position: sticky;
  566. top: 0;
  567. background: #fff;
  568. z-index: 99;
  569. width: 100%;
  570. padding: 0 20px 0 20px;
  571. box-sizing: border-box;
  572. ">
  573. <div class="cru_selectBox">
  574. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  575. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  576. <!-- item.dyName ? item.dyName : -->
  577. {{
  578. "第" + (index + 1) + "阶段"
  579. }}
  580. </div>
  581. <img src="../../../assets/line.png" class="cru_line" :style="{
  582. left: offsetLetfPx + 'px',
  583. }" />
  584. </div>
  585. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  586. !(unitJson[unitJson.length - 1].easy == 6)
  587. ">
  588. <img src="../../../assets/icon/add.png" alt />
  589. </div>
  590. </div>
  591. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  592. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  593. <div>
  594. <div class="chapter_contentbox">
  595. <div>第{{ unitIndex + 1 }}阶段</div>
  596. <div>
  597. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  598. </div>
  599. <div v-if="unitJson.length > 1 &&
  600. !(unitJson[unitJson.length - 1].easy == 4) &&
  601. !(unitJson[unitJson.length - 1].easy == 6)
  602. " @click="deleteUnit(unitIndex)"></div>
  603. </div>
  604. </div>
  605. <div v-if="!unitJson[unitIndex].easy" style="
  606. margin: 50px 0px 10px;
  607. font-size: 1.5em;
  608. font-weight: 700;
  609. color: #0f7eff;
  610. ">
  611. 添加任务
  612. </div>
  613. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  614. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  615. <div v-if="unitJson[unitIndex].easy != 1">
  616. <div :style="{
  617. marginBottom:
  618. unitJson[unitIndex].easy == 3 ||
  619. (unitJson[unitIndex].easy == 5 &&
  620. itemTask.taskType == 1)
  621. ? '75px'
  622. : '0',
  623. }">
  624. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  625. 任务{{ itemTaskIndex + 1 }}
  626. </div>
  627. <div class="chapter_contentbox" style="
  628. flex-direction: row;
  629. justify-content: flex-start;
  630. align-items: center;
  631. ">
  632. <div style="
  633. border-left: 6px solid #5699e8;
  634. height: 20px;
  635. padding-left: 10px;
  636. line-height: 22px;
  637. ">
  638. 任务名称
  639. </div>
  640. <div>
  641. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  642. itemTaskIndex
  643. ].task
  644. " />
  645. </div>
  646. <div class="remove" v-if="item.taskJson.length > 1 &&
  647. (!unitJson[unitIndex].easy ||
  648. unitJson[unitIndex].easy == 6)
  649. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  650. </div>
  651. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  652. display: flex;
  653. margin: 0 0 20px 0;
  654. flex-direction: row;
  655. justify-content: flex-start;
  656. align-items: center;
  657. width: 70.5% !important;
  658. padding-top: 30px;
  659. ">
  660. <div class="lineTitle">任务描述</div>
  661. <div class="line"></div>
  662. </div>
  663. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  664. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  665. itemTaskIndex
  666. ].taskDetail
  667. " @change="change"></editor-bar>
  668. <!-- <textarea
  669. rows="6"
  670. class="binfo_input"
  671. placeholder="请输入任务描述"
  672. cols
  673. style="width: 70.5% !important; height: 120px"
  674. v-model="
  675. unitJson[unitIndex].chapterInfo[0].taskJson[
  676. itemTaskIndex
  677. ].taskDetail
  678. "
  679. ></textarea>-->
  680. </div>
  681. </div>
  682. </div>
  683. <div v-if="!unitJson[unitIndex].easy ||
  684. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  685. " class="basic_box" style="
  686. margin: 0;
  687. min-height: 0;
  688. width: 90% !important;
  689. padding-top: 10px !important;
  690. ">
  691. <div style="
  692. display: flex;
  693. margin: 0 0 20px 0;
  694. flex-direction: row;
  695. justify-content: flex-start;
  696. align-items: center;
  697. ">
  698. <div class="lineTitle">学习内容</div>
  699. <div class="line"></div>
  700. </div>
  701. <div>
  702. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  703. itemTask.chapterData.length == 0
  704. " style="height: 185px"></div>
  705. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  706. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  707. @click="getChapterData(
  708. $event,
  709. unitIndex,
  710. index,
  711. index1,
  712. item1.type
  713. )
  714. ">
  715. <div class="chapter_upload_t" style="width: 100%"></div>
  716. <div class="chapter_upload_o" style="
  717. position: relative;
  718. display: flex;
  719. align-items: center;
  720. ">
  721. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  722. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  723. <div v-if="item1.type == 3 ||
  724. item1.type == 12 ||
  725. item1.type == 6 ||
  726. item1.type == 7
  727. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  728. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  729. </div>
  730. <div class="chapter_upload_ic" style="
  731. cursor: pointer;
  732. position: absolute;
  733. width: 45px;
  734. right: 0;
  735. top: 0;
  736. ">
  737. <div class="chapter_upload_ic_l"></div>
  738. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  739. $event,
  740. unitIndex,
  741. index,
  742. index1,
  743. itemTaskIndex
  744. )
  745. ">
  746. <div></div>
  747. </div>
  748. </div>
  749. <div class="chapter_upload_n">
  750. <input v-if="item1.type == 2 ||
  751. item1.type == 3 ||
  752. item1.type == 12 ||
  753. item1.type == 7
  754. " :placeholder="item1.name" @change="updataVideoT(
  755. $event,
  756. unitIndex,
  757. chapterIndex,
  758. index1
  759. )
  760. " style="
  761. border: none;
  762. outline: none;
  763. width: 80%;
  764. minwidth: 215px;
  765. z-index: 99;
  766. font-size: 14px;
  767. white-space: nowrap;
  768. overflow: hidden;
  769. text-overflow: ellipsis;
  770. " />
  771. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  772. border: none;
  773. outline: none;
  774. width: 80%;
  775. white-space: nowrap;
  776. overflow: hidden;
  777. text-overflow: ellipsis;
  778. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  779. <input :placeholder="item1.title ? item1.title : '链接'
  780. " v-if="item1.type == 8" style="
  781. border: none;
  782. outline: none;
  783. width: 80%;
  784. white-space: nowrap;
  785. overflow: hidden;
  786. text-overflow: ellipsis;
  787. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  788. <div class="chapter_upload_ud" style="z-index: 99">
  789. <div class="chapter_upload_up" @click="upCd(
  790. $event,
  791. unitIndex,
  792. index,
  793. itemTaskIndex,
  794. index1
  795. )
  796. "></div>
  797. <div class="chapter_upload_down" @click="downCd(
  798. $event,
  799. unitIndex,
  800. index,
  801. itemTaskIndex,
  802. index1
  803. )
  804. "></div>
  805. </div>
  806. </div>
  807. </div>
  808. </div>
  809. </div>
  810. </div>
  811. <div class="add_info_box">
  812. <button class="info_btn" @click="addImg($event)">
  813. 添加视频
  814. <!-- capture="camera" -->
  815. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  816. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  817. " />
  818. </button>
  819. <button class="info_btn" @click="addImg($event)">
  820. 添加文档
  821. <input type="file"
  822. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  823. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  824. " />
  825. </button>
  826. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  827. 添加图文
  828. </button>
  829. <button class="info_btn" @click="openLine(itemTaskIndex)">
  830. 添加链接
  831. </button>
  832. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  833. 嵌入代码
  834. </button>
  835. <button class="info_btn" @click="openSource(itemTaskIndex)">
  836. 添加资源
  837. </button>
  838. <button class="info_btn" @click="addImg($event)">
  839. 其他附件
  840. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  841. " />
  842. </button>
  843. </div>
  844. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  845. itemTaskIndex
  846. ].proVisible
  847. " class="mask">
  848. <div class="progressBox">
  849. <!-- <div id="closePro" class="closeCss">
  850. <img src="../../../../assets/icon/close.png" alt />
  851. </div> -->
  852. <div class="lbox">
  853. <img src="../../../assets/loading.gif" />上传中,请稍后
  854. </div>
  855. <div style="margin-bottom: 10px">
  856. <span>{{
  857. unitJson[unitIndex].chapterInfo[0].taskJson[
  858. itemTaskIndex
  859. ].isFinishSize
  860. }}M</span>
  861. /
  862. <span>{{
  863. unitJson[unitIndex].chapterInfo[0].taskJson[
  864. itemTaskIndex
  865. ].isAllSize
  866. }}M</span>
  867. </div>
  868. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  869. itemTaskIndex
  870. ].progress
  871. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  872. itemTaskIndex
  873. ].progress
  874. : 0
  875. " style="width: 80%"></el-progress>
  876. </div>
  877. </div>
  878. </div>
  879. <div v-if="unitJson[unitIndex].easy == 1 ||
  880. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  881. " class="basic_box" style="
  882. margin: 0 auto;
  883. min-height: 0;
  884. width: 95% !important;
  885. padding: 20px 10px 10px;
  886. ">
  887. <div>
  888. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  889. itemTask.chapterData.length == 0
  890. " style="height: 185px"></div>
  891. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  892. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  893. <div class="chapter_upload" @click="getChapterData(
  894. $event,
  895. unitIndex,
  896. index,
  897. index1,
  898. item1.type
  899. )
  900. ">
  901. <div class="chapter_upload_t" style="width: 100%"></div>
  902. <div class="chapter_upload_o" style="
  903. position: relative;
  904. display: flex;
  905. align-items: center;
  906. ">
  907. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  908. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  909. <div v-if="item1.type == 3 ||
  910. item1.type == 6 ||
  911. item1.type == 7
  912. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  913. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  914. </div>
  915. <div class="chapter_upload_ic" style="
  916. cursor: pointer;
  917. position: absolute;
  918. width: 45px;
  919. right: 0;
  920. top: 0;
  921. ">
  922. <div class="chapter_upload_ic_l"></div>
  923. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  924. $event,
  925. unitIndex,
  926. index,
  927. index1,
  928. itemTaskIndex
  929. )
  930. ">
  931. <div></div>
  932. </div>
  933. </div>
  934. <div class="chapter_upload_n">
  935. <span style="
  936. font-size: 14px;
  937. color: rgb(109, 109, 109);
  938. height: 14px;
  939. line-height: 12px;
  940. " v-if="item1.type == 2 ||
  941. item1.type == 3 ||
  942. item1.type == 7
  943. ">{{ item1.text }}-</span>
  944. <input v-if="item1.type == 2 ||
  945. item1.type == 3 ||
  946. item1.type == 7
  947. " :placeholder="item1.name" @change="updataVideoT(
  948. $event,
  949. unitIndex,
  950. chapterIndex,
  951. index1
  952. )
  953. " style="
  954. border: none;
  955. outline: none;
  956. width: 80%;
  957. minwidth: 215px;
  958. z-index: 99;
  959. font-size: 14px;
  960. white-space: nowrap;
  961. overflow: hidden;
  962. text-overflow: ellipsis;
  963. " />
  964. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  965. border: none;
  966. outline: none;
  967. width: 80%;
  968. white-space: nowrap;
  969. overflow: hidden;
  970. text-overflow: ellipsis;
  971. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  972. <input :placeholder="item1.title ? item1.title : '链接'
  973. " v-if="item1.type == 8" style="
  974. border: none;
  975. outline: none;
  976. width: 80%;
  977. white-space: nowrap;
  978. overflow: hidden;
  979. text-overflow: ellipsis;
  980. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  981. <div class="chapter_upload_ud" style="z-index: 99">
  982. <div class="chapter_upload_up" @click="upCd(
  983. $event,
  984. unitIndex,
  985. index,
  986. itemTaskIndex,
  987. index1
  988. )
  989. "></div>
  990. <div class="chapter_upload_down" @click="downCd(
  991. $event,
  992. unitIndex,
  993. index,
  994. itemTaskIndex,
  995. index1
  996. )
  997. "></div>
  998. </div>
  999. </div>
  1000. </div>
  1001. </div>
  1002. </div>
  1003. </div>
  1004. </div>
  1005. <div class="add_info_box" style="margin: 10px 0 0">
  1006. <button class="info_btn" @click="addImg($event)">
  1007. <span style="color: red">*</span>
  1008. 教学设计
  1009. <input type="file"
  1010. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1011. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1012. $event,
  1013. unitIndex,
  1014. 3,
  1015. itemTaskIndex,
  1016. '教学设计'
  1017. )
  1018. " />
  1019. </button>
  1020. <button class="info_btn" @click="addImg($event)">
  1021. <span style="color: red">*</span>
  1022. 教学课件
  1023. <input type="file"
  1024. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1025. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1026. $event,
  1027. unitIndex,
  1028. 3,
  1029. itemTaskIndex,
  1030. '教学课件'
  1031. )
  1032. " />
  1033. </button>
  1034. <button class="info_btn" @click="addImg($event)">
  1035. 教学视频
  1036. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  1037. v-if="inputShow" @change="beforeUpload3(
  1038. $event,
  1039. unitIndex,
  1040. 2,
  1041. itemTaskIndex,
  1042. '教学视频'
  1043. )
  1044. " />
  1045. </button>
  1046. <button class="info_btn" @click="addImg($event)">
  1047. 教学音频
  1048. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="beforeUpload3(
  1049. $event,
  1050. unitIndex,
  1051. 2,
  1052. itemTaskIndex,
  1053. '教学音频'
  1054. )
  1055. " />
  1056. </button>
  1057. <button class="info_btn" @click="addImg($event)">
  1058. 学习单
  1059. <input type="file"
  1060. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1061. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1062. $event,
  1063. unitIndex,
  1064. 3,
  1065. itemTaskIndex,
  1066. '学习单'
  1067. )
  1068. " />
  1069. </button>
  1070. </div>
  1071. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1072. itemTaskIndex
  1073. ].proVisible
  1074. " class="mask">
  1075. <div class="progressBox">
  1076. <!-- <div id="closePro" class="closeCss">
  1077. <img src="../../../../assets/icon/close.png" alt />
  1078. </div> -->
  1079. <div class="lbox">
  1080. <img src="../../../assets/loading.gif" />上传中,请稍后
  1081. </div>
  1082. <div style="margin-bottom: 10px">
  1083. <span>{{
  1084. unitJson[unitIndex].chapterInfo[0].taskJson[
  1085. itemTaskIndex
  1086. ].isFinishSize
  1087. }}M</span>
  1088. /
  1089. <span>{{
  1090. unitJson[unitIndex].chapterInfo[0].taskJson[
  1091. itemTaskIndex
  1092. ].isAllSize
  1093. }}M</span>
  1094. </div>
  1095. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1096. itemTaskIndex
  1097. ].progress
  1098. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1099. itemTaskIndex
  1100. ].progress
  1101. : 0
  1102. " style="width: 80%"></el-progress>
  1103. </div>
  1104. </div>
  1105. </div>
  1106. <div v-if="unitJson[unitIndex].easy != 3 &&
  1107. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1108. " style="
  1109. flex-direction: row;
  1110. justify-content: flex-start;
  1111. align-items: center;
  1112. padding: 0 0 0 30px;
  1113. paddint-top: 10px !important;
  1114. ">
  1115. <div style="
  1116. display: flex;
  1117. flex-direction: row;
  1118. align-items: center;
  1119. margin-bottom: 20px;
  1120. ">
  1121. <div class="lineTitle">
  1122. {{
  1123. !unitJson[unitIndex].easy ||
  1124. unitJson[unitIndex].easy == 6 ||
  1125. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1126. ? "练习内容"
  1127. : "评价内容"
  1128. }}
  1129. </div>
  1130. <div class="line" style="width: 90%"></div>
  1131. </div>
  1132. </div>
  1133. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1134. " class="toolChoose" style="padding: 0 0 0 30px">
  1135. <div class="tools">
  1136. <div class="leftTools" style="
  1137. width: 95%;
  1138. padding: 0 0 15px 0;
  1139. border-bottom: 1px solid #efefef;
  1140. margin-bottom: 15px;
  1141. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1142. <div>
  1143. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1144. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1145. </div>
  1146. <div style="
  1147. display: flex;
  1148. flex-direction: row;
  1149. align-items: baseline;
  1150. flex-wrap: nowrap;
  1151. justify-content: flex-start;
  1152. position: relative;
  1153. ">
  1154. <div style="margin-right: 20px; font-weight: bold">
  1155. 步骤 {{ toolIndex + 1 }} :
  1156. </div>
  1157. <div class="chooseWho">
  1158. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1159. " @click="(itemTool.toolType = 0), $forceUpdate()">
  1160. 互动类
  1161. </div>
  1162. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1163. " @click="(itemTool.toolType = 1), $forceUpdate()">
  1164. 思维类
  1165. </div>
  1166. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1167. " @click="(itemTool.toolType = 2), $forceUpdate()">
  1168. 评价类
  1169. </div>
  1170. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1171. " @click="(itemTool.toolType = 3), $forceUpdate()">
  1172. 编程类
  1173. </div>
  1174. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1175. " @click="(itemTool.toolType = 5), $forceUpdate()">
  1176. 学科类
  1177. </div>
  1178. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1179. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1180. 其他
  1181. </div>
  1182. </div>
  1183. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1184. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1185. </div>
  1186. <div style="min-height: 163px">
  1187. <div class="toolSort" v-if="itemTool.toolType == 0">
  1188. <!-- <div class="tool">
  1189. <div
  1190. class="whiteBIcon"
  1191. @click="addTools(8, itemTaskIndex, toolIndex)"
  1192. >
  1193. <img src="../../../assets/icon/secondToolList/library.png" alt />
  1194. <div style="margin: 5px 0">素材库</div>
  1195. </div>
  1196. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1197. <img
  1198. src="../../../assets/icon/checkNo.png"
  1199. alt
  1200. v-if="itemTool.tool.indexOf(8) == -1"
  1201. />
  1202. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  1203. alt /><span>已选择</span></div>
  1204. </div>
  1205. </div>-->
  1206. <!-- <div class="tool">
  1207. <div
  1208. class="whiteBIcon"
  1209. @click="addTools(17, itemTaskIndex, toolIndex)"
  1210. >
  1211. <img
  1212. src="../../../assets/icon/secondToolList/library.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">学习资料</div>
  1216. </div>
  1217. <div
  1218. class="check"
  1219. @click="addTools(17, itemTaskIndex, toolIndex)"
  1220. >
  1221. <img
  1222. src="../../../assets/icon/checkNo.png"
  1223. alt
  1224. v-if="itemTool.tool.indexOf(17) == -1"
  1225. />
  1226. <img
  1227. src="../../../assets/icon/checkedIs.png"
  1228. alt
  1229. v-else
  1230. />
  1231. </div>10
  1232. </div> -->
  1233. <div class="tool">
  1234. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  1235. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  1236. <div style="margin: 5px 0">倒计时</div>
  1237. </div>
  1238. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1239. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  1240. <div class="checkDiv" v-else>
  1241. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1242. </div>
  1243. </div>
  1244. </div>
  1245. <div class="tool">
  1246. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1247. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  1248. <div style="margin: 5px 0">学生分组</div>
  1249. </div>
  1250. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1251. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1252. <div class="checkDiv" v-else>
  1253. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1254. </div>
  1255. </div>
  1256. </div>
  1257. <div class="tool">
  1258. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1259. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  1260. <div style="margin: 5px 0">交互视频</div>
  1261. </div>
  1262. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1263. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1264. <div class="checkDiv" v-else>
  1265. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1266. </div>
  1267. </div>
  1268. </div>
  1269. </div>
  1270. <div class="toolSort" v-if="itemTool.toolType == 1">
  1271. <div class="tool">
  1272. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  1273. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  1274. <div style="margin: 5px 0">思维网格</div>
  1275. </div>
  1276. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1277. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  1278. <div class="checkDiv" v-else>
  1279. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1280. </div>
  1281. </div>
  1282. </div>
  1283. <div class="tool">
  1284. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1285. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1286. <div style="margin: 5px 0">电子白板</div>
  1287. </div>
  1288. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1289. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1290. <div class="checkDiv" v-else>
  1291. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1292. </div>
  1293. </div>
  1294. </div>
  1295. <!-- <div class="tool">
  1296. <div
  1297. class="whiteBIcon"
  1298. @click="addTools(2, itemTaskIndex, toolIndex)"
  1299. >
  1300. <img
  1301. src="../../../assets/icon/secondToolList/note.png"
  1302. alt
  1303. />
  1304. <div style="margin: 5px 0">便签</div>
  1305. </div>
  1306. <div
  1307. class="check"
  1308. @click="addTools(2, itemTaskIndex, toolIndex)"
  1309. >
  1310. <img
  1311. src="../../../assets/icon/checkNo.png"
  1312. alt
  1313. v-if="itemTool.tool.indexOf(2) == -1"
  1314. />
  1315. <div class="checkDiv" v-else>
  1316. <img
  1317. src="../../../assets/icon/checkedIs.png"
  1318. alt
  1319. /><span>已选择</span>
  1320. </div>
  1321. </div>
  1322. </div> -->
  1323. <!-- <div class="tool">
  1324. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1325. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1326. <div style="margin: 5px 0">协同文档</div>
  1327. </div>
  1328. <div
  1329. class="check"
  1330. @click="addTools(6, itemTaskIndex, toolIndex)"
  1331. >
  1332. <img
  1333. src="../../../assets/icon/checkNo.png"
  1334. alt
  1335. v-if="itemTool.tool.indexOf(6) == -1"
  1336. />
  1337. <div class="checkDiv" v-else>
  1338. <img
  1339. src="../../../assets/icon/checkedIs.png"
  1340. alt
  1341. /><span>已选择</span>
  1342. </div>
  1343. </div>
  1344. </div> -->
  1345. <div class="tool">
  1346. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1347. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1348. <div style="margin: 5px 0">文档</div>
  1349. </div>
  1350. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1351. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1352. <div class="checkDiv" v-else>
  1353. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1354. </div>
  1355. </div>
  1356. </div>
  1357. <div class="tool">
  1358. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1359. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1360. <div style="margin: 5px 0">思维导图</div>
  1361. </div>
  1362. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1363. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1364. <div class="checkDiv" v-else>
  1365. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1366. </div>
  1367. </div>
  1368. </div>
  1369. <div class="tool">
  1370. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1371. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1372. <div style="margin: 5px 0">表格</div>
  1373. </div>
  1374. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1375. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1376. <div class="checkDiv" v-else>
  1377. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1378. </div>
  1379. </div>
  1380. </div>
  1381. </div>
  1382. <div class="toolSort" v-if="itemTool.toolType == 2">
  1383. <!-- <div class="tool">
  1384. <div
  1385. class="whiteBIcon"
  1386. @click="addTools(5, itemTaskIndex, toolIndex)"
  1387. >
  1388. <img
  1389. src="../../../assets/icon/thirdToolList/score.png"
  1390. alt
  1391. />
  1392. <div style="margin: 5px 0">量规评分</div>
  1393. </div>
  1394. <div
  1395. class="check"
  1396. @click="addTools(5, itemTaskIndex, toolIndex)"
  1397. >
  1398. <img
  1399. src="../../../assets/icon/checkNo.png"
  1400. alt
  1401. v-if="itemTool.tool.indexOf(5) == -1"
  1402. />
  1403. <img
  1404. src="../../../assets/icon/checkedIs.png"
  1405. alt
  1406. v-else
  1407. />
  1408. </div>
  1409. </div>-->
  1410. <div class="tool">
  1411. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1412. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1413. <div style="margin: 5px 0">问卷调查</div>
  1414. </div>
  1415. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1416. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1417. <div class="checkDiv" v-else>
  1418. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1419. </div>
  1420. </div>
  1421. </div>
  1422. <div class="tool">
  1423. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1424. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1425. <div style="margin: 5px 0">选择题</div>
  1426. </div>
  1427. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1428. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1429. <div class="checkDiv" v-else>
  1430. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1431. </div>
  1432. </div>
  1433. </div>
  1434. <div class="tool">
  1435. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1436. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1437. <div style="margin: 5px 0">问答工具</div>
  1438. </div>
  1439. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1440. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1441. <div class="checkDiv" v-else>
  1442. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1443. </div>
  1444. </div>
  1445. </div>
  1446. <div class="tool">
  1447. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1448. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1449. <div style="margin: 5px 0">作业提交</div>
  1450. </div>
  1451. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1452. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1453. <div class="checkDiv" v-else>
  1454. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1455. </div>
  1456. </div>
  1457. </div>
  1458. <div class="tool">
  1459. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  1460. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1461. <div style="margin: 5px 0">批量上传</div>
  1462. </div>
  1463. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1464. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1465. <div class="checkDiv" v-else>
  1466. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1467. </div>
  1468. </div>
  1469. </div>
  1470. <div class="tool">
  1471. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1472. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1473. <div style="margin: 5px 0">个人评价</div>
  1474. </div>
  1475. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1476. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1477. <div class="checkDiv" v-else>
  1478. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1479. </div>
  1480. </div>
  1481. </div>
  1482. <div class="tool">
  1483. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1484. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1485. <div style="margin: 5px 0">选择填空</div>
  1486. </div>
  1487. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1488. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1489. <div class="checkDiv" v-else>
  1490. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1491. </div>
  1492. </div>
  1493. </div>
  1494. <div class="tool">
  1495. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1496. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1497. <div style="margin: 5px 0">连词成句</div>
  1498. </div>
  1499. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1500. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1501. <div class="checkDiv" v-else>
  1502. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1503. </div>
  1504. </div>
  1505. </div>
  1506. <!-- <div class="tool">
  1507. <div
  1508. class="whiteBIcon"
  1509. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1510. >
  1511. <img
  1512. src="../../../assets/icon/thirdToolList/mp3.png"
  1513. alt
  1514. />
  1515. <div style="margin: 5px 0">上传音频</div>
  1516. </div>
  1517. <div
  1518. class="check"
  1519. @click="addTools(42, itemTaskIndex, toolIndex)"
  1520. >
  1521. <img
  1522. src="../../../assets/icon/checkNo.png"
  1523. alt
  1524. v-if="itemTool.tool.indexOf(42) == -1"
  1525. />
  1526. <img
  1527. src="../../../assets/icon/checkedIs.png"
  1528. alt
  1529. v-else
  1530. />
  1531. </div>
  1532. </div> -->
  1533. </div>
  1534. <div class="toolSort" v-if="itemTool.toolType == 3">
  1535. <div class="tool">
  1536. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1537. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1538. <div style="margin: 5px 0">训练平台</div>
  1539. </div>
  1540. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1541. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  1542. <div class="checkDiv" v-else>
  1543. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1544. </div>
  1545. </div>
  1546. </div>
  1547. <div class="tool">
  1548. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1549. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1550. <div style="margin: 5px 0">编程平台</div>
  1551. </div>
  1552. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1553. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  1554. <div class="checkDiv" v-else>
  1555. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1556. </div>
  1557. </div>
  1558. </div>
  1559. <div class="tool">
  1560. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1561. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1562. <div style="margin: 5px 0">AI体验</div>
  1563. </div>
  1564. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1565. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1566. <div class="checkDiv" v-else>
  1567. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1568. </div>
  1569. </div>
  1570. </div>
  1571. <div class="tool">
  1572. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1573. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1574. <div style="margin: 5px 0">Python</div>
  1575. </div>
  1576. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1577. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  1578. <div class="checkDiv" v-else>
  1579. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1580. </div>
  1581. </div>
  1582. </div>
  1583. <div class="tool">
  1584. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1585. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1586. <div style="margin: 5px 0">AI平台</div>
  1587. </div>
  1588. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1589. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  1590. <div class="checkDiv" v-else>
  1591. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1592. </div>
  1593. </div>
  1594. </div>
  1595. <div class="tool">
  1596. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1597. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1598. <div style="margin: 5px 0">源码编辑</div>
  1599. </div>
  1600. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1601. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  1602. <div class="checkDiv" v-else>
  1603. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1604. </div>
  1605. </div>
  1606. </div>
  1607. <div class="tool">
  1608. <div class="whiteBIcon" @click="addTools(57, itemTaskIndex, toolIndex)">
  1609. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1610. <div style="margin: 5px 0">CocoPi</div>
  1611. </div>
  1612. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1613. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  1614. <div class="checkDiv" v-else>
  1615. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1616. </div>
  1617. </div>
  1618. </div>
  1619. <div class="tool">
  1620. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  1621. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1622. <div style="margin: 5px 0">海龟编程</div>
  1623. </div>
  1624. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1625. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  1626. <div class="checkDiv" v-else>
  1627. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1628. </div>
  1629. </div>
  1630. </div>
  1631. </div>
  1632. <div class="toolSort" v-if="itemTool.toolType == 5">
  1633. <div class="tool">
  1634. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1635. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1636. <div style="margin: 5px 0">翻译</div>
  1637. </div>
  1638. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1639. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1640. <div class="checkDiv" v-else>
  1641. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1642. </div>
  1643. </div>
  1644. </div>
  1645. <div class="tool">
  1646. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1647. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1648. <div style="margin: 5px 0">魔盒识字</div>
  1649. </div>
  1650. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1651. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1652. <div class="checkDiv" v-else>
  1653. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1654. </div>
  1655. </div>
  1656. </div>
  1657. <div class="tool">
  1658. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1659. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1660. <div style="margin: 5px 0">24点</div>
  1661. </div>
  1662. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1663. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1664. <div class="checkDiv" v-else>
  1665. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1666. </div>
  1667. </div>
  1668. </div>
  1669. <div class="tool">
  1670. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1671. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1672. <div style="margin: 5px 0">数学画板</div>
  1673. </div>
  1674. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1675. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1676. <div class="checkDiv" v-else>
  1677. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1678. </div>
  1679. </div>
  1680. </div>
  1681. <div class="tool">
  1682. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1683. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1684. <div style="margin: 5px 0">GeoGebra</div>
  1685. </div>
  1686. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1687. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1688. <div class="checkDiv" v-else>
  1689. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1690. </div>
  1691. </div>
  1692. </div>
  1693. <div class="tool">
  1694. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  1695. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1696. <div style="margin: 5px 0">模拟驾驶</div>
  1697. </div>
  1698. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  1699. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  1700. <div class="checkDiv" v-else>
  1701. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1702. </div>
  1703. </div>
  1704. </div>
  1705. <div class="tool">
  1706. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  1707. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1708. <div style="margin: 5px 0">路径搜索</div>
  1709. </div>
  1710. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  1711. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  1712. <div class="checkDiv" v-else>
  1713. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1714. </div>
  1715. </div>
  1716. </div>
  1717. <div class="tool">
  1718. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  1719. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1720. <div style="margin: 5px 0">深度学习</div>
  1721. </div>
  1722. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  1723. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  1724. <div class="checkDiv" v-else>
  1725. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1726. </div>
  1727. </div>
  1728. </div>
  1729. <div class="tool">
  1730. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  1731. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1732. <div style="margin: 5px 0">全历史</div>
  1733. </div>
  1734. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  1735. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  1736. <div class="checkDiv" v-else>
  1737. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1738. </div>
  1739. </div>
  1740. </div>
  1741. </div>
  1742. <div class="toolSort" v-if="itemTool.toolType == 4">
  1743. <div class="tool">
  1744. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1745. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1746. <div style="margin: 5px 0">课程设计</div>
  1747. </div>
  1748. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1749. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1750. <div class="checkDiv" v-else>
  1751. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1752. </div>
  1753. </div>
  1754. </div>
  1755. <div class="tool">
  1756. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1757. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1758. <div style="margin: 5px 0">目标管理</div>
  1759. </div>
  1760. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1761. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1762. <div class="checkDiv" v-else>
  1763. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1764. </div>
  1765. </div>
  1766. </div>
  1767. <!-- <div class="tool">
  1768. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1769. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1770. <div style="margin: 5px 0">汉字宫</div>
  1771. </div>
  1772. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1773. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1774. <div class="checkDiv" v-else>
  1775. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1776. </div>
  1777. </div>
  1778. </div> -->
  1779. </div>
  1780. </div>
  1781. </div>
  1782. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  1783. <div class="addToolImg">
  1784. <img src="../../../assets/icon/add.png" alt />
  1785. </div>
  1786. <div>添加工具</div>
  1787. </div>
  1788. </div>
  1789. </div>
  1790. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  1791. unitJson[unitIndex].easy == 4
  1792. " class="toolChoose" style="padding: 0 0 0 30px">
  1793. <div class="tools">
  1794. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  1795. :key="toolIndex">
  1796. <div>
  1797. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1798. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1799. </div>
  1800. <div style="
  1801. display: flex;
  1802. flex-direction: row;
  1803. align-items: baseline;
  1804. flex-wrap: nowrap;
  1805. justify-content: flex-start;
  1806. position: relative;
  1807. ">
  1808. <div style="margin-right: 20px; font-weight: bold">
  1809. 步骤 {{ toolIndex + 1 }} :
  1810. </div>
  1811. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1812. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1813. </div>
  1814. <div style="min-height: 163px">
  1815. <div class="toolSort">
  1816. <div class="tool">
  1817. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1818. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1819. <div style="margin: 5px 0">电子白板</div>
  1820. </div>
  1821. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1822. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1823. <div class="checkDiv" v-else>
  1824. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1825. </div>
  1826. </div>
  1827. </div>
  1828. <div class="tool">
  1829. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1830. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1831. <div style="margin: 5px 0">文档</div>
  1832. </div>
  1833. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1834. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1835. <div class="checkDiv" v-else>
  1836. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1837. </div>
  1838. </div>
  1839. </div>
  1840. <div class="tool">
  1841. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1842. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1843. <div style="margin: 5px 0">思维导图</div>
  1844. </div>
  1845. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1846. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1847. <div class="checkDiv" v-else>
  1848. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1849. </div>
  1850. </div>
  1851. </div>
  1852. <div class="tool">
  1853. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1854. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1855. <div style="margin: 5px 0">问卷调查</div>
  1856. </div>
  1857. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1858. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1859. <div class="checkDiv" v-else>
  1860. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1861. </div>
  1862. </div>
  1863. </div>
  1864. <div class="tool">
  1865. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1866. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1867. <div style="margin: 5px 0">选择题</div>
  1868. </div>
  1869. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1870. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1871. <div class="checkDiv" v-else>
  1872. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1873. </div>
  1874. </div>
  1875. </div>
  1876. <div class="tool">
  1877. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1878. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1879. <div style="margin: 5px 0">问答工具</div>
  1880. </div>
  1881. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1882. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1883. <div class="checkDiv" v-else>
  1884. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1885. </div>
  1886. </div>
  1887. </div>
  1888. <div class="tool">
  1889. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1890. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1891. <div style="margin: 5px 0">作业提交</div>
  1892. </div>
  1893. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1894. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1895. <div class="checkDiv" v-else>
  1896. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1897. </div>
  1898. </div>
  1899. </div>
  1900. <div class="tool">
  1901. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1902. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1903. <div style="margin: 5px 0">批量上传</div>
  1904. </div>
  1905. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1906. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1907. <div class="checkDiv" v-else>
  1908. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1909. </div>
  1910. </div>
  1911. </div>
  1912. <div class="tool">
  1913. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1914. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1915. <div style="margin: 5px 0">选择填空</div>
  1916. </div>
  1917. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1918. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1919. <div class="checkDiv" v-else>
  1920. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1921. </div>
  1922. </div>
  1923. </div>
  1924. <div class="tool">
  1925. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1926. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1927. <div style="margin: 5px 0">连词成句</div>
  1928. </div>
  1929. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1930. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1931. <div class="checkDiv" v-else>
  1932. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1933. </div>
  1934. </div>
  1935. </div>
  1936. <div class="tool">
  1937. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1938. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1939. <div style="margin: 5px 0">表格</div>
  1940. </div>
  1941. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1942. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1943. <div class="checkDiv" v-else>
  1944. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1945. </div>
  1946. </div>
  1947. </div>
  1948. </div>
  1949. </div>
  1950. </div>
  1951. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  1952. <div class="addToolImg">
  1953. <img src="../../../assets/icon/add.png" alt />
  1954. </div>
  1955. <div>添加工具</div>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  1960. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  1961. " class="toolChoose" style="padding: 0 0 0 30px">
  1962. <div class="tools">
  1963. <div class="leftTools" style="
  1964. width: 95%;
  1965. padding: 0 0 15px 0;
  1966. margin-bottom: 15px;
  1967. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1968. <div style="min-height: 163px">
  1969. <div class="toolSort">
  1970. <div class="tool">
  1971. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1972. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1973. <div style="margin: 5px 0">批量上传</div>
  1974. </div>
  1975. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1976. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1977. <div class="checkDiv" v-else>
  1978. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1979. </div>
  1980. </div>
  1981. </div>
  1982. </div>
  1983. </div>
  1984. </div>
  1985. </div>
  1986. </div>
  1987. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  1988. <div class="elist_title">
  1989. <div style="
  1990. display: flex;
  1991. flex-direction: row;
  1992. align-items: center;
  1993. margin-bottom: 20px;
  1994. ">
  1995. <div class="lineTitle">评价设置</div>
  1996. <div class="line" style="width: 90%"></div>
  1997. </div>
  1998. </div>
  1999. <div class="mbCss">
  2000. <div class="pjCss">
  2001. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2002. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2003. <span>评价名称:</span>
  2004. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2005. <span>评星等级:</span>
  2006. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  2007. <div class="remove" @click="deletEList(unitIndex, itemTaskIndex, eIndex)
  2008. "></div>
  2009. <div class="elist_inptu_text">
  2010. <span>评价描述:</span>
  2011. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2012. </div>
  2013. <div class="elist_inptu_text" v-if="evalua">
  2014. <span>目标:</span>
  2015. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2016. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2017. @change="forceUpdate()">
  2018. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2019. :value="e.name">
  2020. </el-option>
  2021. </el-select> -->
  2022. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2023. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2024. </div>
  2025. </div>
  2026. </div>
  2027. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  2028. <div class="addToolImg">
  2029. <img src="../../../assets/icon/add.png" alt />
  2030. </div>
  2031. <div>添加</div>
  2032. </div>
  2033. </div>
  2034. <div v-if="evalua" style="
  2035. border: 1px solid #e5e5e5;
  2036. width: 55%;
  2037. margin-top: 20px;
  2038. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2039. " class="evaCss">
  2040. <div class="e_add_top">
  2041. <div class="e_add_title">
  2042. <span>当前使用目标管理</span>
  2043. <span>{{ eTitle }}</span>
  2044. <img src="../../../assets/line.png" class="cru_line" style="
  2045. width: 125px;
  2046. height: 20px;
  2047. bottom: -10px;
  2048. left: 155px;
  2049. " />
  2050. </div>
  2051. </div>
  2052. <div class="e_add_content" style="width: 100%">
  2053. <div class="e_add_list_pbox" style="width: 100%">
  2054. <div class="e_add_list_pbox_title">
  2055. <span class="type_title">切换模式</span>
  2056. <div class="type_content">
  2057. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  2058. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  2059. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  2060. </div>
  2061. </div>
  2062. <div class="e_add_list_pbox_content">
  2063. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2064. " v-if="typeMode == 1"></Mind>
  2065. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2066. </Sunburst>
  2067. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2068. v-if="typeMode == 3"></SeeBoard>
  2069. </div>
  2070. </div>
  2071. </div>
  2072. </div>
  2073. </div>
  2074. </div>
  2075. <div class="funBlock" style="padding: 0">
  2076. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  2077. <div>折叠</div>
  2078. <div class="arrow">
  2079. <img src="../../../assets/icon/fold.png" alt />
  2080. </div>
  2081. </div>
  2082. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2083. <div>展开</div>
  2084. <div class="arrow">
  2085. <img src="../../../assets/icon/expand.png" alt />
  2086. </div>
  2087. </div>
  2088. </div>
  2089. </div>
  2090. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2091. <div>
  2092. <img src="../../../assets/icon/addHw.png" alt />
  2093. <span>添加任务</span>
  2094. </div>
  2095. </div>
  2096. </div>
  2097. </div>
  2098. </div>
  2099. <div class="rightBox" v-if="this.steps == 4">
  2100. <div class="basic_box_success">
  2101. <div class="right_img">
  2102. <img src="../../../assets/icon/right.png" alt />
  2103. </div>
  2104. <div style="font-weight: bold">成功</div>
  2105. <!-- <div>您的课程编号</div>
  2106. <div class="number">{{ number }}</div>-->
  2107. <!-- <div class="success_button">
  2108. <div class="look_course" @click="isNoFinsh">
  2109. 邀请老师协同编辑
  2110. </div>
  2111. <div class="attend_others" @click="goCourse">预览课程</div>
  2112. </div> -->
  2113. </div>
  2114. </div>
  2115. <div class="info_btnBox">
  2116. <button class="info_btn" @click="goTo(
  2117. '/course?userid=' +
  2118. userid +
  2119. '&oid=' +
  2120. oid +
  2121. '&org=' +
  2122. org +
  2123. '&role=' +
  2124. role
  2125. )
  2126. ">
  2127. 返回课程
  2128. </button>
  2129. <button class="info_btn" @click="nextSteps" v-if="this.steps == 1">
  2130. 确认上传
  2131. </button>
  2132. </div>
  2133. </div>
  2134. </div>
  2135. </div>
  2136. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2137. class="dialog_diy2 customWidth">
  2138. <div>请复制该链接邀请协同编辑</div>
  2139. <div>http://www.boomyon.com/index-zhang.com</div>
  2140. <span slot="footer" class="dialog-footer">
  2141. <el-button type="primary">复制链接分享</el-button>
  2142. <el-button @click="dialogVisible = false">取消</el-button>
  2143. </span>
  2144. </el-dialog>
  2145. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2146. :before-close="handleClose" class="dialog_diy2 customWidth">
  2147. <el-form>
  2148. <el-form-item label="文档标题">
  2149. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2150. </el-form-item>
  2151. <div>文档简介</div>
  2152. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2153. </el-form>
  2154. <span slot="footer" class="dialog-footer">
  2155. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2156. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2157. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2158. </span>
  2159. </el-dialog>
  2160. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2161. :before-close="handleClose" class="dialog_diy">
  2162. <el-form>
  2163. <el-form-item label="文档标题">
  2164. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2165. </el-form-item>
  2166. <div>文档内容</div>
  2167. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2168. </el-form>
  2169. <span slot="footer" class="dialog-footer">
  2170. <el-button @click="clearChoose">取 消</el-button>
  2171. <el-button type="primary" @click="wordNext()">确定</el-button>
  2172. </span>
  2173. </el-dialog>
  2174. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2175. :before-close="handleClose" class="dialog_diy">
  2176. <el-form>
  2177. <el-form-item label="文本标题">
  2178. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2179. </el-form-item>
  2180. <div>富文本内容</div>
  2181. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2182. </el-form>
  2183. <span slot="footer" class="dialog-footer">
  2184. <el-button @click="clearAttText">取 消</el-button>
  2185. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2186. </span>
  2187. </el-dialog>
  2188. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2189. :before-close="handleClose" class="dialog_diy lineCss">
  2190. <el-form>
  2191. <el-form-item label="标题" :label-width="formLabelWidth">
  2192. <span>
  2193. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2194. </span>
  2195. </el-form-item>
  2196. <el-form-item label="链接" :label-width="formLabelWidth">
  2197. <span>
  2198. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2199. </span>
  2200. </el-form-item>
  2201. </el-form>
  2202. <span slot="footer" class="dialog-footer">
  2203. <el-button @click="clearLine">取 消</el-button>
  2204. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2205. </span>
  2206. </el-dialog>
  2207. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="100%"
  2208. :before-close="handleClose" class="dialog_diy source_diy">
  2209. <div>
  2210. <sourceDialog :sourceData="sourceData"></sourceDialog>
  2211. </div>
  2212. <span slot="footer" class="dialog-footer">
  2213. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2214. <el-button type="primary" @click="addSource">确定</el-button>
  2215. </span>
  2216. </el-dialog>
  2217. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2218. :before-close="handleClose" class="addNewPP customWidth">
  2219. <div class="people">
  2220. <div class="people_top">
  2221. <div class="people_nav">选择成员</div>
  2222. <div class="people_top_right">
  2223. <div class="people_search">
  2224. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2225. <div class="search_img" @click="searchStudent">
  2226. <img src="../../../assets/icon/search.png" alt />
  2227. </div>
  2228. </div>
  2229. </div>
  2230. </div>
  2231. <el-checkbox-group v-model="checkboxList" class="people_name">
  2232. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2233. "暂无学生可选" }}</el-checkbox>
  2234. </el-checkbox-group>
  2235. </div>
  2236. <span slot="footer" class="dialog-footer">
  2237. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2238. <el-button type="primary" @click="isAddPP">确定</el-button>
  2239. </span>
  2240. </el-dialog>
  2241. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  2242. :before-close="handleClose" class="addNewPP">
  2243. <div class="people" style="height: 300px">
  2244. <div class="people_top">
  2245. <div class="people_top_right">
  2246. <div class="people_search">
  2247. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  2248. <!-- @click="getClass()"
  2249. @keyup.enter.native="getClass()"
  2250. -->
  2251. <div class="search_img">
  2252. <img src="../../../assets/icon/search.png" alt />
  2253. </div>
  2254. </div>
  2255. </div>
  2256. <div class="people_nav">选择班级</div>
  2257. </div>
  2258. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange">
  2259. <div v-for="item in grade2" :key="item.id" class="p_box">
  2260. <el-checkbox :label="item.id">
  2261. {{ item.name }}
  2262. </el-checkbox>
  2263. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  2264. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  2265. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  2266. @click="OpenInviteD(item.id)">随机码设置</div>
  2267. <img src="../../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  2268. </div>
  2269. </el-checkbox-group>
  2270. </div>
  2271. <span slot="footer" class="dialog-footer">
  2272. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2273. <el-button type="primary" @click="isAddClass">确定</el-button>
  2274. </span>
  2275. </el-dialog>
  2276. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2277. :before-close="handleClose" class="addNewPP customWidth">
  2278. <div class="people">
  2279. <div class="people_top">
  2280. <div class="people_top_right">
  2281. <div class="people_search">
  2282. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2283. <div class="search_img" @click="getTeacher">
  2284. <img src="../../../assets/icon/search.png" alt />
  2285. </div>
  2286. </div>
  2287. </div>
  2288. <div class="people_nav">选择成员</div>
  2289. </div>
  2290. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2291. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2292. <div class="t_j_box">
  2293. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2294. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2295. </el-tooltip>
  2296. <el-tooltip placement="top" :content="item.username">
  2297. <span>{{ item.username }}</span>
  2298. </el-tooltip>
  2299. <el-tooltip placement="top" :content="item.school">
  2300. <span>{{ item.school }}</span>
  2301. </el-tooltip>
  2302. </div>
  2303. </el-checkbox>
  2304. </el-checkbox-group>
  2305. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2306. </div>
  2307. <span slot="footer" class="dialog-footer">
  2308. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2309. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2310. </span>
  2311. </el-dialog>
  2312. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2313. :before-close="handleClose" class="dialog_diy">
  2314. <div>
  2315. <div class="a_add_title" style="
  2316. display: flex;
  2317. flex-direction: row;
  2318. align-items: center;
  2319. justify-content: center;
  2320. ">
  2321. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2322. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2323. </div>
  2324. <div class="a_addBox">
  2325. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2326. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2327. <div class="a_add_checkType">
  2328. <span :class="{ active: askJson.askJson[index1].type == '1' || !askJson.askJson[index1].type }"
  2329. @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2330. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2331. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2332. </div>
  2333. <div class="a_add_head">
  2334. <div>
  2335. {{ index1 + 1 + "、" }}
  2336. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  2337. </el-input>
  2338. </div>
  2339. <div class="a_add_head_div">
  2340. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2341. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2342. </el-button>
  2343. </div>
  2344. </div>
  2345. <div class="a_add_body">
  2346. <div class="a_add_input">
  2347. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2348. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  2349. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2350. </div>
  2351. <div class="a_add_body_div">
  2352. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2353. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2354. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2355. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2356. </el-button>
  2357. </div>
  2358. </div>
  2359. </div>
  2360. </div>
  2361. </div>
  2362. <span slot="footer" class="dialog-footer">
  2363. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2364. <el-button type="primary" @click="addAsk">确 定</el-button>
  2365. </span>
  2366. </el-dialog>
  2367. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2368. :before-close="handleClose" class="dialog_diy">
  2369. <div>
  2370. <!-- <div class="a_add_title" style="
  2371. display: flex;
  2372. flex-direction: row;
  2373. align-items: center;
  2374. justify-content: center;
  2375. ">
  2376. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2377. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2378. </div> -->
  2379. <div class="a_addBox">
  2380. <div style="font-size: 16px; color: #c7c7c7">
  2381. 请输入题目内容
  2382. <el-button type="primary" size="small" @click="pasteOption" style="margin-left:10px">智能粘贴</el-button>
  2383. </div>
  2384. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2385. <div class="a_add_checkType">
  2386. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2387. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2388. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2389. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2390. </div>
  2391. <div class="a_add_head">
  2392. <div class="timuUpImg">
  2393. <div>
  2394. {{ index1 + 1 + "、" }}
  2395. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle"
  2396. placeholder="请输入题目...">
  2397. </el-input>
  2398. </div>
  2399. <div class="xzUpImg" @click.stop="addImg($event)">
  2400. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2401. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2402. </div>
  2403. </div>
  2404. <div class="a_add_head_div">
  2405. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  2406. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2407. </el-button>
  2408. </div>
  2409. </div>
  2410. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2411. testJson.testJson[index1].timuList.length
  2412. ">
  2413. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2414. @click.stop="previewImg(timg.src)">
  2415. <img :src="timg.src" alt="" />
  2416. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2417. <img src="../../../assets/icon/delete.png" alt="" />
  2418. </div>
  2419. </div>
  2420. </div>
  2421. <div class="a_add_body">
  2422. <div class="a_add_input a_add_input_choice">
  2423. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  2424. <div class="radioBox">
  2425. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2426. .testItem" :key="checkIndex" :label="checkIndex">
  2427. <div style="margin-right: 10px">
  2428. 选项{{ checkIndex + 1 }}
  2429. </div>
  2430. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2431. testJson.testJson[index1].checkList[checkIndex]
  2432. .imgType &&
  2433. testJson.testJson[index1].checkList[checkIndex]
  2434. .imgType == 1
  2435. ">
  2436. <div class="inImg" @click.stop="previewImg(
  2437. testJson.testJson[index1].checkList[checkIndex]
  2438. .src
  2439. )
  2440. ">
  2441. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2442. .src
  2443. " lazy />
  2444. <!-- <img :src="
  2445. testJson.testJson[index1].checkList[checkIndex]
  2446. .src
  2447. " alt="" /> -->
  2448. </div>
  2449. </div>
  2450. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2451. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2452. <div class="xzUpImg" @click.stop="addImg($event)">
  2453. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2454. <input type="file" accept="image/*" style="display: none"
  2455. @change="beforeUploadTi($event, index1, checkIndex)" />
  2456. </div>
  2457. </el-radio>
  2458. </div>
  2459. </el-radio-group>
  2460. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  2461. v-if="testJson.testJson[index1].type == '2'">
  2462. <div class="radioBox">
  2463. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2464. .testItem" :key="checkIndex1" :label="checkIndex1">
  2465. <div style="margin-right: 10px">
  2466. 选项{{ checkIndex1 + 1 }}
  2467. </div>
  2468. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2469. testJson.testJson[index1].checkList[checkIndex1]
  2470. .imgType &&
  2471. testJson.testJson[index1].checkList[checkIndex1]
  2472. .imgType == 1
  2473. ">
  2474. <div class="inImg" @click.stop="previewImg(
  2475. testJson.testJson[index1].checkList[checkIndex1]
  2476. .src
  2477. )
  2478. ">
  2479. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2480. .src
  2481. " lazy />
  2482. <!-- <img :src="
  2483. testJson.testJson[index1].checkList[checkIndex1]
  2484. .src
  2485. " alt="" /> -->
  2486. </div>
  2487. </div>
  2488. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2489. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2490. <div class="xzUpImg" @click.stop="addImg($event)">
  2491. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2492. <input type="file" accept="image/*" style="display: none"
  2493. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2494. </div>
  2495. </el-checkbox>
  2496. </div>
  2497. </el-checkbox-group>
  2498. </div>
  2499. <div class="a_add_body_div" style="margin-bottom: 3px">
  2500. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2501. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2502. v-if="testJson.testJson[index1].testItem != 1">删除
  2503. </el-button>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. </div>
  2508. </div>
  2509. <span slot="footer" class="dialog-footer">
  2510. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2511. <el-button type="primary" @click="addTest">确 定</el-button>
  2512. </span>
  2513. </el-dialog>
  2514. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2515. :before-close="handleClose" class="dialog_diy addToolsDia">
  2516. <div class="toolChoose" style="padding: 0 0 0 30px">
  2517. <div class="tools">
  2518. <div class="leftTools" style="
  2519. width: 95%;
  2520. padding: 0 0 15px 0;
  2521. border-bottom: 1px solid #efefef;
  2522. margin-bottom: 15px;
  2523. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2524. <div style="
  2525. display: flex;
  2526. flex-direction: row;
  2527. align-items: baseline;
  2528. flex-wrap: nowrap;
  2529. justify-content: flex-start;
  2530. position: relative;
  2531. ">
  2532. <div class="chooseWho">
  2533. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2534. 互动类
  2535. </div>
  2536. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2537. 思维类
  2538. </div>
  2539. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2540. 评价类
  2541. </div>
  2542. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2543. 其他
  2544. </div>
  2545. </div>
  2546. </div>
  2547. <div style="min-height: 163px">
  2548. <div class="toolSort" v-if="chapToolsType == 0">
  2549. <div class="tool">
  2550. <div class="whiteBIcon" @click="chapAddTools(8)">
  2551. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2552. <div style="margin: 5px 0">素材库</div>
  2553. </div>
  2554. <div class="check" @click="chapAddTools(8)">
  2555. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2556. <div class="checkDiv" v-else>
  2557. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2558. </div>
  2559. </div>
  2560. </div>
  2561. </div>
  2562. <div class="toolSort" v-if="chapToolsType == 1">
  2563. <div class="tool">
  2564. <div class="whiteBIcon" @click="chapAddTools(7)">
  2565. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2566. <div style="margin: 5px 0">思维网格</div>
  2567. </div>
  2568. <div class="check" @click="chapAddTools(7)">
  2569. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2570. <div class="checkDiv" v-else>
  2571. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2572. </div>
  2573. </div>
  2574. </div>
  2575. <div class="tool">
  2576. <div class="whiteBIcon" @click="chapAddTools(1)">
  2577. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2578. <div style="margin: 5px 0">电子白板</div>
  2579. </div>
  2580. <div class="check" @click="chapAddTools(1)">
  2581. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2582. <div class="checkDiv" v-else>
  2583. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2584. </div>
  2585. </div>
  2586. </div>
  2587. <div class="tool">
  2588. <div class="whiteBIcon" @click="chapAddTools(2)">
  2589. <img src="../../../assets/icon/secondToolList/note.png" alt />
  2590. <div style="margin: 5px 0">便签</div>
  2591. </div>
  2592. <div class="check" @click="chapAddTools(2)">
  2593. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2594. <div class="checkDiv" v-else>
  2595. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2596. </div>
  2597. </div>
  2598. </div>
  2599. <div class="tool">
  2600. <div class="whiteBIcon" @click="chapAddTools(6)">
  2601. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2602. <div style="margin: 5px 0">协同文档</div>
  2603. </div>
  2604. <div class="check" @click="chapAddTools(6)">
  2605. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2606. <div class="checkDiv" v-else>
  2607. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2608. </div>
  2609. </div>
  2610. </div>
  2611. <div class="tool">
  2612. <div class="whiteBIcon" @click="chapAddTools(3)">
  2613. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2614. <div style="margin: 5px 0">思维导图</div>
  2615. </div>
  2616. <div class="check" @click="chapAddTools(3)">
  2617. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2618. <div class="checkDiv" v-else>
  2619. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2620. </div>
  2621. </div>
  2622. </div>
  2623. <div class="tool">
  2624. <div class="whiteBIcon" @click="chapAddTools(31)">
  2625. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2626. <div style="margin: 5px 0">数学画板</div>
  2627. </div>
  2628. <div class="check" @click="chapAddTools(31)">
  2629. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2630. <div class="checkDiv" v-else>
  2631. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2632. </div>
  2633. </div>
  2634. </div>
  2635. </div>
  2636. <div class="toolSort" v-if="chapToolsType == 2">
  2637. <div class="tool">
  2638. <div class="whiteBIcon" @click="chapAddTools(5)">
  2639. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  2640. <div style="margin: 5px 0">量规评分</div>
  2641. </div>
  2642. <div class="check" @click="chapAddTools(5)">
  2643. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2644. <div class="checkDiv" v-else>
  2645. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2646. </div>
  2647. </div>
  2648. </div>
  2649. <div class="tool">
  2650. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2651. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2652. <div style="margin: 5px 0">问卷调查</div>
  2653. </div>
  2654. <div class="check" @click="chapAddTools(4)">
  2655. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2656. <div class="checkDiv" v-else>
  2657. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2658. </div>
  2659. </div>
  2660. </div>
  2661. </div>
  2662. </div>
  2663. <div>
  2664. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  2665. v-model="itemTools.toolDetail" />
  2666. </div>
  2667. </div>
  2668. </div>
  2669. </div>
  2670. <span slot="footer" class="dialog-footer">
  2671. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2672. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2673. </span>
  2674. </el-dialog>
  2675. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2676. :before-close="handleClose" class="dialog_diy">
  2677. <div>
  2678. <div class="a_add_title" style="
  2679. display: flex;
  2680. flex-direction: column;
  2681. align-items: flex-start;
  2682. justify-content: center;
  2683. ">
  2684. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2685. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  2686. </div>
  2687. </div>
  2688. <span slot="footer" class="dialog-footer">
  2689. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2690. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2691. </span>
  2692. </el-dialog>
  2693. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2694. :before-close="handleClose" class="dialog_diy">
  2695. <div>
  2696. <div class="a_add_title" style="
  2697. display: flex;
  2698. flex-direction: column;
  2699. align-items: flex-start;
  2700. justify-content: center;
  2701. ">
  2702. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2703. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2704. </div>
  2705. </div>
  2706. <span slot="footer" class="dialog-footer">
  2707. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2708. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2709. </span>
  2710. </el-dialog>
  2711. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  2712. :before-close="handleClose" class="dialog_diy">
  2713. <div>
  2714. <div class="fileCss" style="padding-top: 20px">
  2715. <div>
  2716. <button class="info_btn" @click="addImg($event)">
  2717. 选择本地文件
  2718. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2719. </button>
  2720. </div>
  2721. <div>
  2722. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  2723. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2724. <img :src="cover[0].url" alt="" />
  2725. <div class="deletePic" @click="deleteSysPic">
  2726. <img src="../../../assets/icon/delete.png" alt="" />
  2727. </div>
  2728. </div>
  2729. </div>
  2730. </div>
  2731. <div class="fileCss">
  2732. <div>选择本地文件</div>
  2733. <div>选择系统文件</div>
  2734. </div>
  2735. </div>
  2736. <span slot="footer" class="dialog-footer">
  2737. <el-button @click="choosePicVisible = false">取 消</el-button>
  2738. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  2739. </span>
  2740. </el-dialog>
  2741. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2742. :before-close="handleClose" class="dialog_diy">
  2743. <div class="cru_selectBox" style="margin: 0">
  2744. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2745. 绘画
  2746. </div>
  2747. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2748. 科技
  2749. </div>
  2750. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2751. 人文
  2752. </div>
  2753. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2754. 艺术
  2755. </div>
  2756. </div>
  2757. <div class="sysPicBox">
  2758. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2759. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2760. </div>
  2761. </div>
  2762. <span slot="footer" class="dialog-footer">
  2763. <el-button @click="sysPicVisible = false">取 消</el-button>
  2764. <el-button type="primary">确 定</el-button>
  2765. </span>
  2766. </el-dialog>
  2767. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2768. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2769. <div v-if="selectJson">
  2770. <div class="select_box1" v-if="selectSteps == 1">
  2771. <div class="select_box1_img">
  2772. <div class="select_box1_title">
  2773. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  2774. </div>
  2775. <div class="select_box1_add_img">
  2776. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2777. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2778. <img src="../../../assets/icon/addPoster.png" alt="" />
  2779. </div>
  2780. <div class="isSysPic" v-else>
  2781. <img :src="selectJson.url" alt="" />
  2782. <div class="deletePic" @click="deleteSelectPic">
  2783. <img src="../../../assets/icon/delete.png" alt="" />
  2784. </div>
  2785. </div>
  2786. </div>
  2787. </div>
  2788. <div class="select_box1_select">
  2789. <div class="select_box1_title">
  2790. <span>添加选项</span><span>提示:请输入题目选项</span>
  2791. </div>
  2792. <div class="select_box1_select_box">
  2793. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2794. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  2795. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2796. <div class="select_box1_select_box_add">
  2797. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2798. 添加</el-button>
  2799. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2800. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2801. </div>
  2802. </div>
  2803. </div>
  2804. </div>
  2805. <div v-if="selectSteps == 2">
  2806. <div class="select_box2">
  2807. <div class="select_box2_title">设置答案</div>
  2808. <div class="select_box2_box">
  2809. <div class="select_box2_img">
  2810. <img :src="selectJson.url" alt="" />
  2811. </div>
  2812. <div class="select_box2_answer">
  2813. <div class="select_answer_title">根据题目选择对应答案</div>
  2814. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2815. <span>{{ checkIndex + 1 }}、</span>
  2816. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2817. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2818. </el-option>
  2819. </el-select>
  2820. </div>
  2821. </div>
  2822. </div>
  2823. </div>
  2824. </div>
  2825. </div>
  2826. <span slot="footer" class="dialog-footer">
  2827. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2828. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2829. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2830. </span>
  2831. </el-dialog>
  2832. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2833. :before-close="handleClose" class="dialog_diy">
  2834. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2835. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2836. <div class="pjCss" style="width: 100%">
  2837. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2838. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2839. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2840. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2841. <div class="remove" @click="deletRateList(eIndex)"></div>
  2842. <div style="width: 100%; display: flex">
  2843. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2844. <el-rate v-model="eItem.score" disabled></el-rate>
  2845. </div>
  2846. <div class="elist_inptu_text" style="align-items: flex-start">
  2847. <span style="min-width: 100px; text-align: right">描述:</span>
  2848. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2849. </div>
  2850. </div>
  2851. </div>
  2852. <div class="addToolFun" @click="addRateList()">
  2853. <div class="addToolImg">
  2854. <img src="../../../assets/icon/add.png" alt />
  2855. </div>
  2856. <div>添加</div>
  2857. </div>
  2858. </div>
  2859. </div>
  2860. <span slot="footer" class="dialog-footer">
  2861. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2862. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2863. </span>
  2864. </el-dialog>
  2865. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2866. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2867. <div>
  2868. <div class="sentenBox">
  2869. <div class="addSen" @click="addSt">添加题目</div>
  2870. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  2871. <div class="sentenTopBox">
  2872. <div class="sentenTop">
  2873. <div>题目设置</div>
  2874. <div>
  2875. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  2876. </div>
  2877. <div @click="addSen(stIndex)">添加</div>
  2878. </div>
  2879. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2880. </div>
  2881. <div class="cardList">
  2882. <div v-if="st.addSentence.length > 0" class="cardBox">
  2883. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2884. @click="setRightAnswer(s, stIndex, sIndex)">
  2885. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2886. <div>{{ s }}</div>
  2887. </el-tooltip>
  2888. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2889. <img src="../../../assets/icon/delete.png" alt="" />
  2890. </div>
  2891. </div>
  2892. </div>
  2893. <div class="card">
  2894. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  2895. </div>
  2896. </div>
  2897. <div class="rightCardBox">
  2898. <div>正确顺序</div>
  2899. <div class="rightCardList">
  2900. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2901. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2902. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2903. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2904. <div>{{ r }}</div>
  2905. </el-tooltip>
  2906. </div>
  2907. <div>{{ rIndex + 1 }}</div>
  2908. </div>
  2909. </div>
  2910. <div class="card" v-if="st.rightAnswer.length == 0">
  2911. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  2912. </div>
  2913. </div>
  2914. </div>
  2915. </div>
  2916. </div>
  2917. </div>
  2918. <span slot="footer" class="dialog-footer">
  2919. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  2920. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2921. </span>
  2922. </el-dialog>
  2923. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2924. :before-close="handleClose" class="dialog_diy">
  2925. <el-form>
  2926. <!-- <el-form-item label="文本标题">
  2927. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2928. </el-form-item> -->
  2929. <div>表格内容</div>
  2930. <Table v-model="tableJson.text" @change="change"></Table>
  2931. </el-form>
  2932. <span slot="footer" class="dialog-footer">
  2933. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2934. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2935. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2936. </span>
  2937. </el-dialog>
  2938. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2939. :before-close="handleClose" class="dialog_diy">
  2940. <el-form>
  2941. <!-- <el-form-item label="文本标题">
  2942. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2943. </el-form-item> -->
  2944. <div>文档内容</div>
  2945. <editor-bar v-model="wordJson.text"></editor-bar>
  2946. </el-form>
  2947. <span slot="footer" class="dialog-footer">
  2948. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2949. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2950. </span>
  2951. </el-dialog>
  2952. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2953. :before-close="handleClose" class="dialog_diy">
  2954. <div style="
  2955. width: 100%;
  2956. display: flex;
  2957. flex-direction: row;
  2958. flex-wrap: nowrap;
  2959. align-items: center;
  2960. justify-content: center;
  2961. ">
  2962. <div>班级:</div>
  2963. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2964. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2965. </el-option>
  2966. </el-select>
  2967. </div>
  2968. <span slot="footer" class="dialog-footer">
  2969. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2970. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2971. </span>
  2972. </el-dialog>
  2973. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2974. :before-close="handleClose" class="dialog_diy">
  2975. <div style="
  2976. width: 100%;
  2977. display: flex;
  2978. flex-direction: row;
  2979. flex-wrap: nowrap;
  2980. align-items: center;
  2981. justify-content: center;
  2982. ">
  2983. <div>随机码:</div>
  2984. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  2985. </div>
  2986. <span slot="footer" class="dialog-footer">
  2987. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  2988. <el-button type="primary" @click="addInvite">确定</el-button>
  2989. </span>
  2990. </el-dialog>
  2991. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="30%"
  2992. :before-close="handleClose" class="dialog_diy">
  2993. <div>
  2994. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  2995. </div>
  2996. <span slot="footer" class="dialog-footer">
  2997. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  2998. <el-button type="primary" @click="addPreTime">确定</el-button>
  2999. </span>
  3000. </el-dialog>
  3001. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3002. class="dialog_diy">
  3003. <div>
  3004. <div style="
  3005. width: 100%;
  3006. display: flex;
  3007. flex-direction: row;
  3008. flex-wrap: nowrap;
  3009. align-content: center;
  3010. align-items: center;
  3011. justify-content: space-between;
  3012. ">
  3013. <div style="
  3014. display: flex;
  3015. flex-flow: row nowrap;
  3016. align-items: flex-start;
  3017. width: 100%;
  3018. flex-direction: column;
  3019. flex-wrap: nowrap;
  3020. position: relative;
  3021. ">
  3022. <div class="e_box">
  3023. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3024. <div class="e_card_picture">
  3025. <img src="../../../assets/e_picture.png" />
  3026. </div>
  3027. <div class="e_card_name">
  3028. <span>{{ item.title }}</span>
  3029. </div>
  3030. <div class="e_card_btn">
  3031. <span @click="checkEva(item.id, 2)">导入</span>
  3032. </div>
  3033. </div>
  3034. <div class="addEva" @click="openT">
  3035. <img src="../../../assets/icon/addEva.png" alt="" />
  3036. </div>
  3037. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3038. 暂无数据
  3039. </div>
  3040. </div>
  3041. </div>
  3042. </div>
  3043. </div>
  3044. <span slot="footer" class="dialog-footer">
  3045. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3046. </span>
  3047. </el-dialog>
  3048. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3049. :before-close="handleClose" class="dialog_diy">
  3050. <div class="groupBox">
  3051. <div v-if="groupJson.group" class="groupContent">
  3052. <div class="groupTitle">请设置小组数量</div>
  3053. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3054. <span class="groupn">组{{ index + 1 }}名称:</span>
  3055. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3056. <div class="groupBtn">
  3057. <el-button type="primary" size="small" @click="addGroup(index)">
  3058. 添加</el-button>
  3059. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3060. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3061. </div>
  3062. </div>
  3063. </div>
  3064. <div class="groupContent">
  3065. <div class="groupTitle">请设置每组人数数量</div>
  3066. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3067. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3068. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  3069. placeholder="2-10人以内"></el-input-number>
  3070. </div>
  3071. </div>
  3072. <span slot="footer" class="dialog-footer">
  3073. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3074. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3075. </span>
  3076. </el-dialog>
  3077. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3078. </div>
  3079. </template>
  3080. <script>
  3081. import "../../../common/aws-sdk-2.235.1.min.js";
  3082. import $ from "jquery";
  3083. import EditorBar from "../../../components/tools/wangEnduit";
  3084. import Table from "../../../components/tools/table";
  3085. import Mind from "../../tools/jsmind2";
  3086. import Time from "../../tools/time.vue";
  3087. import Sunburst from "../../tools/sunburst";
  3088. import SeeBoard from "../../tools/seeBoard";
  3089. import weilaiData from "../components/weilai.js";
  3090. import sourceDialog from "../teacherSource/dialog.vue";
  3091. import interVideo from "../interVideo/index.vue";
  3092. export default {
  3093. components: { EditorBar, Mind, Time, Sunburst, SeeBoard, Table, sourceDialog, interVideo },
  3094. data() {
  3095. return {
  3096. checkAll: false,
  3097. chooseType: 1,
  3098. checkedCities: [],
  3099. isIndeterminate: true,
  3100. isSysPic: false,
  3101. steps: 1,
  3102. nbOrder: 0,
  3103. courseId: "",
  3104. chapToolsType: 0,
  3105. chapTools: [
  3106. {
  3107. tools: [],
  3108. toolDetail: "",
  3109. },
  3110. ],
  3111. line: "",
  3112. lineTitle: "",
  3113. sysPic: [],
  3114. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3115. isPushTitleList: [],
  3116. lineCount: 0,
  3117. lineType: 0,
  3118. chapCount: 0,
  3119. courseName: "",
  3120. isTeacherSee: true,
  3121. courseText: "",
  3122. preTime: 0,
  3123. formLabelWidth: "100px",
  3124. choosePicVisible: false,
  3125. sysPicVisible: false,
  3126. uploadLoading1: false,
  3127. noneBtnImg: false,
  3128. updateBoolean2: false,
  3129. unitIndex: 0,
  3130. taskCount: 0,
  3131. dialogVisible: false,
  3132. dialogVisible1: false,
  3133. dialogVisible2: false,
  3134. dialogVisible3: false,
  3135. dialogVisible4: false,
  3136. dialogVisible5: false,
  3137. dialogVisible6: false,
  3138. dialogVisible7: false,
  3139. dialogVisible8: false,
  3140. dialogVisible9: false,
  3141. dialogVisibleClass: false,
  3142. dialogVisibleMember: false,
  3143. dialogVisibleMp3: false,
  3144. dialogVisibleSelect: false,
  3145. dialogVisibleSentence: false,
  3146. dialogVisibleRate: false,
  3147. dialogVisibleChoice: false,
  3148. dialogVisiblemb: false,
  3149. dialogVisibleInvite: false,
  3150. dialogVisibleSource: false,
  3151. dialogVisibleVideo: false,
  3152. isClickColor: 0,
  3153. publicTool: 0,
  3154. searchPeople: "",
  3155. searchTN: "",
  3156. userid: this.$route.query.userid,
  3157. oid: this.$route.query.oid,
  3158. org: this.$route.query.org,
  3159. role: this.$route.query.role,
  3160. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3161. dialogVisibleTable: false,
  3162. dialogVisibleWord: false,
  3163. tableJson: { text: "" },
  3164. wordJson: { text: "" },
  3165. dialogVisibleMoreUpload: false,
  3166. dialogVisiblePreTime: false,
  3167. uploadJson: [],
  3168. classJuri: [],
  3169. cover: [], //课程封面
  3170. myWord: [],
  3171. evaJuri: [],
  3172. evalua: "",
  3173. targetArray: [],
  3174. eTitle: "",
  3175. eJson: {},
  3176. fid: "", //一级
  3177. sid: "", //二级
  3178. tid: "", //二级
  3179. typeMode: 1,
  3180. eJSONNum: 0,
  3181. data: {
  3182. meta: {
  3183. name: "example",
  3184. author: "dd@163.com",
  3185. version: "0.2",
  3186. },
  3187. format: "node_array",
  3188. data: [{ id: "root", isroot: true, topic: "" }],
  3189. },
  3190. askJson: {
  3191. askCount: 1,
  3192. askTitle: "",
  3193. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3194. },
  3195. testJson: {},
  3196. selectJson: {},
  3197. rateJson: [],
  3198. unitJson2: [],
  3199. unitJson: [
  3200. {
  3201. dyName: "", //单元标题
  3202. chapterInfo: [
  3203. {
  3204. isread: false,
  3205. chapterid: this.guid(),
  3206. title: "",
  3207. courseName: "",
  3208. taskJson: [
  3209. {
  3210. task: "",
  3211. taskDetail: "",
  3212. chapterData: [],
  3213. toolChoose: [
  3214. {
  3215. tool: [],
  3216. toolDetail: "",
  3217. toolType: 0,
  3218. askCount: 1,
  3219. askTitle: "",
  3220. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3221. },
  3222. ],
  3223. toolText: "",
  3224. isShowTools: false,
  3225. askCount: 1,
  3226. isFold: 0,
  3227. askTitle: "",
  3228. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3229. checkJson: [{ checkCount: [], checkPerent: [] }],
  3230. homeworkList: [],
  3231. },
  3232. ],
  3233. itemCount: 1,
  3234. fileList1: [],
  3235. video: [],
  3236. testData: [],
  3237. pData: [],
  3238. templateArray: [],
  3239. },
  3240. ],
  3241. },
  3242. ],
  3243. studentJuri: [],
  3244. teacherJuri: [],
  3245. checkboxList: [],
  3246. checkboxList2: [],
  3247. checkboxList3: [],
  3248. classSearch: "",
  3249. number: "",
  3250. tTitle: "",
  3251. tdetail: "",
  3252. templateC: {},
  3253. AttText: {},
  3254. AttTextType: 0,
  3255. AttTextIndex: 0,
  3256. cTemplate: "",
  3257. CourseType: [],
  3258. CourseType2: [],
  3259. CourseTypeJson: {},
  3260. courseTypeId: [],
  3261. courseTypeSon: [],
  3262. clearArray: [],
  3263. pTypeCheck: [],
  3264. pTypeCheckName: [],
  3265. loading: false,
  3266. toolType: 0,
  3267. inputShow: true,
  3268. inputShow2: true,
  3269. toolIndex: 0,
  3270. cidType: 0,
  3271. answerQ: "",
  3272. grade: [],
  3273. grade2: [],
  3274. courseUserid: "",
  3275. timer: null,
  3276. timer2: null,
  3277. checkId: "",
  3278. isDelete: 1,
  3279. addindex: 0,
  3280. selectSteps: 1,
  3281. groupJson: {},
  3282. dialogVisibleGroup: false,
  3283. rightBoxHeight: 0,
  3284. ManAarray: [],
  3285. checkBoolean: false,
  3286. inviteCode: [],
  3287. inviteId: "",
  3288. icode: "",
  3289. easyArray: [2, 4],
  3290. sourceData: {},
  3291. videoJson: {}
  3292. };
  3293. },
  3294. computed: {
  3295. // rightBoxHeight: function () {
  3296. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3297. // },
  3298. offsetLetfPx: function () {
  3299. //addnum可以直接在模板语法里面用,相当于data内的值
  3300. return (
  3301. $(".cru_select")[this.unitIndex] &&
  3302. $(".cru_select")[this.unitIndex].offsetLeft
  3303. );
  3304. },
  3305. getMan2() {
  3306. return function (people) {
  3307. let _people = people;
  3308. let _people2 = "";
  3309. if (this.ManAarray.length) {
  3310. for (var i = 0; i < this.ManAarray.length; i++) {
  3311. if (this.ManAarray[i].userid == people) {
  3312. _people2 = this.ManAarray[i].name;
  3313. break;
  3314. }
  3315. }
  3316. }
  3317. if (people == this.courseUserid) {
  3318. return "";
  3319. }
  3320. return this.ManAarray.length ? _people2 : "";
  3321. };
  3322. },
  3323. isInvite() {
  3324. return function (cid) {
  3325. let array = [];
  3326. for (var i = 0; i < this.inviteCode.length; i++) {
  3327. array.push(this.inviteCode[i].cid);
  3328. }
  3329. return array.indexOf(cid) != -1;
  3330. };
  3331. },
  3332. getInviteCodeC() {
  3333. return function (cid) {
  3334. let array = [];
  3335. for (var i = 0; i < this.inviteCode.length; i++) {
  3336. array.push(this.inviteCode[i].cid);
  3337. }
  3338. return this.inviteCode[array.indexOf(cid)].ic;
  3339. };
  3340. },
  3341. getClassC() {
  3342. return function (c) {
  3343. let _c2 = "";
  3344. if (this.grade.length) {
  3345. for (var i = 0; i < this.grade.length; i++) {
  3346. if (this.grade[i].id == c) {
  3347. _c2 = this.grade[i].name;
  3348. break;
  3349. }
  3350. }
  3351. }
  3352. return this.grade.length ? _c2 : "";
  3353. };
  3354. },
  3355. },
  3356. watch: {
  3357. unitIndex(newValue, oldValue) {
  3358. if (this.isDelete == 2) {
  3359. this.isDelete = 1;
  3360. return;
  3361. }
  3362. if (this.cid != "") {
  3363. let _unitIndex = oldValue;
  3364. if (
  3365. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3366. JSON.stringify(this.unitJson[_unitIndex])
  3367. ) {
  3368. this.$refs.rightboxR.scrollTop = 0;
  3369. return;
  3370. }
  3371. let cPan = 1;
  3372. for (
  3373. var j = 0;
  3374. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3375. j++
  3376. ) {
  3377. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3378. j
  3379. ].proVisible = false;
  3380. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3381. j
  3382. ].proVisible2 = false;
  3383. if (
  3384. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3385. .length > 1
  3386. ) {
  3387. for (
  3388. var z = 0;
  3389. z <
  3390. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3391. .length;
  3392. z++
  3393. ) {
  3394. if (
  3395. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3396. .toolChoose[z].tool.length
  3397. ) {
  3398. this.$message.error("请把工具添加完整");
  3399. cPan = 2;
  3400. break;
  3401. }
  3402. }
  3403. }
  3404. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3405. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3406. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3407. (ele) => {
  3408. return ele.value != "";
  3409. }
  3410. );
  3411. }
  3412. }
  3413. if (cPan == 2) {
  3414. this.unitIndex = oldValue;
  3415. return;
  3416. }
  3417. for (var i = 0; i < this.unitJson.length; i++) {
  3418. if (this.addindex != i) {
  3419. delete this.unitJson[i].isUpdate;
  3420. }
  3421. }
  3422. this.$refs.rightboxR.scrollTop = 0;
  3423. this.addindex = -1;
  3424. let params = [
  3425. {
  3426. cid: this.cid,
  3427. chapters: JSON.stringify(this.unitJson),
  3428. uid: this.userid,
  3429. unitIndex: _unitIndex,
  3430. },
  3431. ];
  3432. this.ajax
  3433. .post(this.$store.state.api + "updateWorkNew4", params)
  3434. .then((res) => {
  3435. // this.$message({
  3436. // message: "修改成功",
  3437. // type: "success",
  3438. // });
  3439. // this.courseId = this.cid;
  3440. })
  3441. .catch((err) => {
  3442. this.$message.error("网络不佳");
  3443. console.error(err);
  3444. });
  3445. }
  3446. },
  3447. steps(newValue) {
  3448. if (newValue == 4) {
  3449. this.goTo(
  3450. "/course?userid=" +
  3451. this.userid +
  3452. "&oid=" +
  3453. this.oid +
  3454. "&org=" +
  3455. this.org +
  3456. "&role=" +
  3457. this.role
  3458. );
  3459. }
  3460. }
  3461. },
  3462. methods: {
  3463. setMan() {
  3464. // let teacherJuri = this.teacherJuri2;
  3465. this.ManAarray = [];
  3466. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3467. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  3468. _user.push(this.courseUserid || this.userid);
  3469. }
  3470. let params = {
  3471. uid: _user.join(","),
  3472. };
  3473. this.ajax
  3474. .get(this.$store.state.api + "getAllUserById", params)
  3475. .then((res) => {
  3476. let teacherJuri = res.data[0];
  3477. this.ManAarray = teacherJuri;
  3478. })
  3479. .catch((err) => {
  3480. console.error(err);
  3481. });
  3482. },
  3483. previewImg(url) {
  3484. this.$hevueImgPreview(url);
  3485. },
  3486. scrollChange() {
  3487. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3488. // document.querySelector('.course_left').scrollHeight
  3489. // document.querySelector('.stepsBottom2').scrollHeight
  3490. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3491. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  3492. let client = $(".course_left")[0].clientHeight - stepsBottom2
  3493. let top = $(".rightBox")[0].scrollTop - 400 - stepsBottom2
  3494. // if (top < client) {
  3495. // $('.stepsBottom2')[0].style.position = 'absolute'
  3496. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  3497. // // $('.stepsBottom2')[0].style.top = client + 'px'
  3498. // } else
  3499. if (top > 0) {
  3500. let top = $(".rightBox")[0].offsetTop
  3501. $('.stepsBottom2')[0].style.position = 'fixed'
  3502. $('.stepsBottom2')[0].style.top = top + 'px'
  3503. // $('.stepsBottom2')[0].style.top = top + 'px'
  3504. } else {
  3505. $('.stepsBottom2')[0].style.position = 'absolute'
  3506. $('.stepsBottom2')[0].style.top = '0px'
  3507. }
  3508. },
  3509. handleCheckAllChange(val) {
  3510. this.checkedCities = val ? cityOptions : [];
  3511. this.isIndeterminate = false;
  3512. },
  3513. handleCheckedCitiesChange(value) {
  3514. let checkedCount = value.length;
  3515. this.checkAll = checkedCount === this.cities.length;
  3516. this.isIndeterminate =
  3517. checkedCount > 0 && checkedCount < this.cities.length;
  3518. },
  3519. addHw(e) {
  3520. var el = e.currentTarget;
  3521. el.getElementsByTagName("input")[0].click();
  3522. },
  3523. change(val) {
  3524. console.log(val);
  3525. },
  3526. change2(val) {
  3527. console.log(val);
  3528. this.$forceUpdate();
  3529. },
  3530. handleClose(done) {
  3531. done();
  3532. },
  3533. imgChange2(i, j) {
  3534. var _tmp = this.testJson.testJson[i].checkList[j];
  3535. this.noneBtnImg = _tmp.length >= 1;
  3536. },
  3537. imgChange3(i) {
  3538. var _tmp = this.testJson.testJson[i];
  3539. this.noneBtnImg = _tmp.length >= 1;
  3540. },
  3541. imgChange1(file, fileList, type, itemTaskIndex) {
  3542. if (type == 1) {
  3543. var _tmp = this.cover;
  3544. } else if (
  3545. type == 2 ||
  3546. type == 3 ||
  3547. type == 6 ||
  3548. type == 7 ||
  3549. type == 8
  3550. ) {
  3551. var _tmp =
  3552. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3553. .chapterData;
  3554. } else if (type == 4) {
  3555. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3556. } else {
  3557. var _tmp =
  3558. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3559. .homeworkList;
  3560. }
  3561. this.noneBtnImg = _tmp.length >= 1;
  3562. },
  3563. goTo(path) {
  3564. this.$router.push(path);
  3565. },
  3566. guid() {
  3567. var _num,
  3568. i,
  3569. _guid = "";
  3570. for (i = 0; i < 32; i++) {
  3571. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3572. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3573. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3574. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3575. _guid += "-";
  3576. }
  3577. }
  3578. return _guid;
  3579. },
  3580. lastSteps() {
  3581. this.goTo(
  3582. "/course?userid=" +
  3583. this.userid +
  3584. "&oid=" +
  3585. this.oid +
  3586. "&org=" +
  3587. this.org +
  3588. "&role=" +
  3589. this.role
  3590. );
  3591. },
  3592. nextSteps() {
  3593. if (this.cid == "" || this.cid == undefined) {
  3594. if (this.courseName == "") {
  3595. this.$message.error("请将信息填写完整");
  3596. return;
  3597. } else {
  3598. this.addWork();
  3599. this.steps = 4
  3600. }
  3601. } else {
  3602. if (this.courseName == "") {
  3603. this.$message.error("请将信息填写完整");
  3604. return;
  3605. } else {
  3606. if (this.userid != this.courseUserid && this.role != '1') {
  3607. this.updateWork2();
  3608. } else {
  3609. this.updateWork();
  3610. }
  3611. this.steps = 4
  3612. }
  3613. }
  3614. this.$refs.stepBox.scrollTop = 0;
  3615. },
  3616. unitSet(i) {
  3617. this.unitIndex = i;
  3618. // this.$refs.rightboxR.scrollTop = 0;
  3619. },
  3620. time() {
  3621. if (!this.now) {
  3622. this.now = new Date().getTime();
  3623. return true;
  3624. } else {
  3625. let time = new Date().getTime();
  3626. if (time - this.now > 3000) {
  3627. this.now = time;
  3628. return true;
  3629. } else {
  3630. return false;
  3631. }
  3632. }
  3633. },
  3634. deleteUnit(i) {
  3635. var _this = this;
  3636. if (_this.time()) {
  3637. _this
  3638. .$confirm("确定删除此单元吗?", "提示", {
  3639. confirmButtonText: "确定",
  3640. cancelButtonText: "取消",
  3641. type: "warning",
  3642. })
  3643. .then(() => {
  3644. _this.isDelete = 2;
  3645. // _this.unitIndex = _this.unitIndex - 1;
  3646. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3647. // _this.$message.success("删除成功");
  3648. })
  3649. .catch(() => {
  3650. return;
  3651. });
  3652. }
  3653. },
  3654. deleteWork(chapid) {
  3655. let params = [
  3656. {
  3657. cid: this.cid,
  3658. chapters: JSON.stringify(this.unitJson),
  3659. uid: this.userid,
  3660. chapid: chapid,
  3661. },
  3662. ];
  3663. this.ajax
  3664. .post(this.$store.state.api + "deleteWork", params)
  3665. .then((res) => {
  3666. this.$message({
  3667. message: "删除成功",
  3668. type: "success",
  3669. });
  3670. this.unitJson.splice(this.unitIndex, 1);
  3671. this.unitIndex = this.unitIndex - 1;
  3672. })
  3673. .catch((err) => {
  3674. this.$message.error("网络不佳");
  3675. console.error(err);
  3676. });
  3677. },
  3678. deleteTool(itemTaskIndex, i) {
  3679. var _this = this;
  3680. if (_this.time()) {
  3681. _this
  3682. .$confirm("确定删除此工具吗?", "提示", {
  3683. confirmButtonText: "确定",
  3684. cancelButtonText: "取消",
  3685. type: "warning",
  3686. })
  3687. .then(() => {
  3688. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3689. itemTaskIndex
  3690. ].toolChoose.splice(i, 1);
  3691. _this.$message.success("删除成功");
  3692. })
  3693. .catch(() => {
  3694. return;
  3695. });
  3696. }
  3697. },
  3698. deleteSentence(i) {
  3699. var _this = this;
  3700. if (_this.time()) {
  3701. _this
  3702. .$confirm("确定删除此题目吗?", "提示", {
  3703. confirmButtonText: "确定",
  3704. cancelButtonText: "取消",
  3705. type: "warning",
  3706. })
  3707. .then(() => {
  3708. _this.sentenceList.splice(i, 1);
  3709. _this.$message.success("删除成功");
  3710. })
  3711. .catch(() => {
  3712. return;
  3713. });
  3714. }
  3715. },
  3716. deleteS(s, i, j) {
  3717. this.sentenceList[i].addSentence.splice(j, 1);
  3718. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3719. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3720. this.sentenceList[i].rightAnswer.splice(a, 1);
  3721. }
  3722. },
  3723. openT() {
  3724. window.parent.postMessage({ tools: "25" }, "*");
  3725. },
  3726. deleteTask(i) {
  3727. var _this = this;
  3728. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  3729. _this
  3730. .$confirm("确定删除此任务吗?" , "提示", {
  3731. confirmButtonText: "确定",
  3732. cancelButtonText: "取消",
  3733. type: "warning",
  3734. })
  3735. .then(() => {
  3736. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3737. i,
  3738. 1
  3739. );
  3740. _this.$message.success("删除成功");
  3741. // this.$nextTick(() => {
  3742. // $('.stepsBottom2')[0].style.transition = 'unset'
  3743. // setTimeout(() => {
  3744. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3745. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  3746. // let top = $('.stepsBottom2')[0].offsetTop - 20
  3747. // if (top > client) {
  3748. // $('.stepsBottom2')[0].style.top = client + 'px'
  3749. // }
  3750. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  3751. // this.$forceUpdate()
  3752. // }, 500)
  3753. // })
  3754. })
  3755. .catch(() => {
  3756. return;
  3757. });
  3758. },
  3759. handlePictureCardPreview(file) {
  3760. this.dialogImageUrl = file.url;
  3761. },
  3762. clean(i, c) {
  3763. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3764. },
  3765. handle_remove1(file, fileList, type) {
  3766. var _tmp = this.cover;
  3767. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3768. // if (_tmp[i].uid == file.uid) {
  3769. // _tmp.splice(i, 1);
  3770. // break;
  3771. // }
  3772. // this.cover = _tmp;
  3773. // }
  3774. this.cover = [];
  3775. this.noneBtnImg = this.cover.length >= 1;
  3776. this.isSysPic = false;
  3777. this.$forceUpdate();
  3778. },
  3779. addImg(e) {
  3780. var el = e.currentTarget;
  3781. el.getElementsByTagName("input")[0].click();
  3782. e.target.value = "";
  3783. },
  3784. addChaptersTools(i) {
  3785. this.chapTools = [
  3786. {
  3787. tools: [],
  3788. toolDetail: "",
  3789. },
  3790. ];
  3791. this.chapCount = i;
  3792. this.dialogVisible4 = true;
  3793. },
  3794. isNoFinsh() {
  3795. this.$message.warning("功能正在开发中");
  3796. },
  3797. addAttText(i) {
  3798. this.AttText = {
  3799. title: "",
  3800. text: "",
  3801. };
  3802. this.taskCount = i;
  3803. this.AttTextType = 0;
  3804. this.$forceUpdate();
  3805. this.dialogVisible6 = true;
  3806. },
  3807. openLine(i) {
  3808. this.line = "";
  3809. this.lineCount = i;
  3810. this.lineType = 0;
  3811. this.$forceUpdate();
  3812. this.dialogVisible7 = true;
  3813. },
  3814. pasteLine(i) {
  3815. navigator.clipboard
  3816. .readText()
  3817. .then((v) => {
  3818. console.log("获取剪贴板成功:", v);
  3819. const html = v;
  3820. const regex = /src="(.*?)"/g;
  3821. const match = regex.exec(html);
  3822. if (match && match[1]) {
  3823. console.log(match[1]);
  3824. this.$message.success("粘贴成功")
  3825. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3826. i
  3827. ].chapterData.push({
  3828. name: "链接",
  3829. title: "嵌入代码",
  3830. url: match[1],
  3831. type: 8,
  3832. });
  3833. } else {
  3834. // console.log("未找到包含 src 属性的 iframe");
  3835. this.$message.error("没有找到粘贴的链接")
  3836. }
  3837. })
  3838. .catch((v) => {
  3839. console.log("获取剪贴板失败: ", v);
  3840. });
  3841. },
  3842. openSource(i) {
  3843. this.lineCount = i;
  3844. this.sourceData = {}
  3845. this.dialogVisibleSource = true;
  3846. },
  3847. addSource() {
  3848. if (!Object.keys(this.sourceData).length) {
  3849. this.$message.error("请选择要上传的资源")
  3850. return;
  3851. }
  3852. let keys = Object.keys(this.sourceData)
  3853. for (var i = 0; i < keys.length; i++) {
  3854. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3855. this.lineCount
  3856. ].chapterData.push({
  3857. name: "链接",
  3858. title: this.sourceData[keys[i]].name,
  3859. url: this.sourceData[keys[i]].url,
  3860. type: 8,
  3861. });
  3862. }
  3863. this.$forceUpdate();
  3864. this.dialogVisibleSource = false;
  3865. },
  3866. deleteM(i, j) {
  3867. this.testJson.testJson[i].timuList.splice(j, 1);
  3868. },
  3869. beforeUploadTiMu(event, i) {
  3870. const loading = this.openLoading();
  3871. var file = event.target.files[0];
  3872. var credentials = {
  3873. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3874. secretAccessKey: "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",
  3875. }; //秘钥形式的登录上传
  3876. window.AWS.config.update(credentials);
  3877. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3878. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3879. var _this = this;
  3880. if (file) {
  3881. var params = {
  3882. Key:
  3883. file.name.split(".")[0] +
  3884. new Date().getTime() +
  3885. "." +
  3886. file.name.split(".")[file.name.split(".").length - 1],
  3887. ContentType: file.type,
  3888. Body: file,
  3889. "Access-Control-Allow-Credentials": "*",
  3890. ACL: "public-read",
  3891. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3892. var options = {
  3893. partSize: 2048 * 1024 * 1024,
  3894. queueSize: 2,
  3895. leavePartsOnError: true,
  3896. };
  3897. bucket
  3898. .upload(params, options)
  3899. .on("httpUploadProgress", function (evt) {
  3900. //这里可以写进度条
  3901. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3902. })
  3903. .send(function (err, data) {
  3904. loading.close();
  3905. if (err) {
  3906. _this.$message.error("上传失败");
  3907. } else {
  3908. if (_this.testJson.testJson[i].timuList) {
  3909. _this.testJson.testJson[i].timuList.push({
  3910. src: data.Location,
  3911. });
  3912. } else {
  3913. _this.testJson.testJson[i].timuList = [];
  3914. _this.testJson.testJson[i].timuList.push({
  3915. src: data.Location,
  3916. });
  3917. }
  3918. _this.imgChange3(i);
  3919. _this.$forceUpdate();
  3920. }
  3921. });
  3922. }
  3923. },
  3924. beforeUploadTi(event, i, j) {
  3925. const loading = this.openLoading();
  3926. var file = event.target.files[0];
  3927. var credentials = {
  3928. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3929. secretAccessKey: "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",
  3930. }; //秘钥形式的登录上传
  3931. window.AWS.config.update(credentials);
  3932. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3933. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3934. var _this = this;
  3935. if (file) {
  3936. var params = {
  3937. Key:
  3938. file.name.split(".")[0] +
  3939. new Date().getTime() +
  3940. "." +
  3941. file.name.split(".")[file.name.split(".").length - 1],
  3942. ContentType: file.type,
  3943. Body: file,
  3944. "Access-Control-Allow-Credentials": "*",
  3945. ACL: "public-read",
  3946. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3947. var options = {
  3948. partSize: 2048 * 1024 * 1024,
  3949. queueSize: 2,
  3950. leavePartsOnError: true,
  3951. };
  3952. bucket
  3953. .upload(params, options)
  3954. .on("httpUploadProgress", function (evt) {
  3955. //这里可以写进度条
  3956. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3957. })
  3958. .send(function (err, data) {
  3959. loading.close();
  3960. if (err) {
  3961. _this.$message.error("上传失败");
  3962. } else {
  3963. _this.testJson.testJson[i].checkList[j] = {};
  3964. _this.testJson.testJson[i].checkList[j].src = data.Location;
  3965. _this.testJson.testJson[i].checkList[j].imgType = 1;
  3966. _this.imgChange2(i, j);
  3967. _this.$forceUpdate();
  3968. }
  3969. });
  3970. }
  3971. },
  3972. beforeUpload1(event, type) {
  3973. // const loading = this.openLoading();
  3974. var file = event.target.files[0];
  3975. var credentials = {
  3976. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3977. secretAccessKey: "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",
  3978. }; //秘钥形式的登录上传
  3979. window.AWS.config.update(credentials);
  3980. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3981. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3982. var _this = this;
  3983. if (file) {
  3984. var params = {
  3985. Key:
  3986. file.name.split(".")[0] +
  3987. new Date().getTime() +
  3988. "." +
  3989. file.name.split(".")[file.name.split(".").length - 1],
  3990. ContentType: file.type,
  3991. Body: file,
  3992. "Access-Control-Allow-Credentials": "*",
  3993. ACL: "public-read",
  3994. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3995. var options = {
  3996. partSize: 2048 * 1024 * 1024,
  3997. queueSize: 2,
  3998. leavePartsOnError: true,
  3999. };
  4000. bucket
  4001. .upload(params, options)
  4002. .on("httpUploadProgress", function (evt) {
  4003. //这里可以写进度条
  4004. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4005. })
  4006. .send(function (err, data) {
  4007. // loading.close();
  4008. if (err) {
  4009. // var a = _this.$refs.upload1.uploadFiles;
  4010. // a.splice(a.length - 1, a.length);
  4011. _this.$message.error("上传失败");
  4012. } else {
  4013. _this.cover.push({
  4014. name: file.name,
  4015. url: data.Location,
  4016. uid: file.uid,
  4017. });
  4018. _this.imgChange1(null, null, 1, null);
  4019. _this.choosePicVisible = false;
  4020. console.log(data.Location);
  4021. }
  4022. });
  4023. }
  4024. },
  4025. beforeUploadSelect(event, type) {
  4026. // const loading = this.openLoading();
  4027. var file = event.target.files[0];
  4028. var credentials = {
  4029. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4030. secretAccessKey: "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",
  4031. }; //秘钥形式的登录上传
  4032. window.AWS.config.update(credentials);
  4033. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4034. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4035. var _this = this;
  4036. if (file) {
  4037. var params = {
  4038. Key:
  4039. file.name.split(".")[0] +
  4040. new Date().getTime() +
  4041. "." +
  4042. file.name.split(".")[file.name.split(".").length - 1],
  4043. ContentType: file.type,
  4044. Body: file,
  4045. "Access-Control-Allow-Credentials": "*",
  4046. ACL: "public-read",
  4047. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4048. var options = {
  4049. partSize: 2048 * 1024 * 1024,
  4050. queueSize: 2,
  4051. leavePartsOnError: true,
  4052. };
  4053. bucket
  4054. .upload(params, options)
  4055. .on("httpUploadProgress", function (evt) {
  4056. //这里可以写进度条
  4057. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4058. })
  4059. .send(function (err, data) {
  4060. // loading.close();
  4061. if (err) {
  4062. _this.$message.error("上传失败");
  4063. } else {
  4064. _this.selectJson.url = data.Location;
  4065. console.log(data.Location);
  4066. }
  4067. });
  4068. }
  4069. },
  4070. chooseSysPic(p) {
  4071. this.cover.push({
  4072. name: "系统图片.png",
  4073. url: p,
  4074. });
  4075. this.imgChange1(null, null, 1, null);
  4076. this.isSysPic = true;
  4077. this.sysPicVisible = false;
  4078. },
  4079. beforeUpload(data) {
  4080. this.$refs.upload1.uploadFiles;
  4081. this.uploadLoading1 = true;
  4082. var file = data.file;
  4083. var credentials = {
  4084. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4085. secretAccessKey: "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",
  4086. }; //秘钥形式的登录上传
  4087. window.AWS.config.update(credentials);
  4088. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4089. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4090. var _this = this;
  4091. if (file) {
  4092. var params = {
  4093. Key:
  4094. file.name.split(".")[0] +
  4095. new Date().getTime() +
  4096. "." +
  4097. file.name.split(".")[file.name.split(".").length - 1],
  4098. ContentType: file.type,
  4099. Body: file,
  4100. "Access-Control-Allow-Credentials": "*",
  4101. ACL: "public-read",
  4102. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4103. var options = {
  4104. partSize: 2048 * 1024 * 1024,
  4105. queueSize: 2,
  4106. leavePartsOnError: true,
  4107. };
  4108. bucket
  4109. .upload(params, options)
  4110. .on("httpUploadProgress", function (evt) {
  4111. //这里可以写进度条
  4112. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4113. })
  4114. .send(function (err, data) {
  4115. _this.uploadLoading1 = false;
  4116. if (err) {
  4117. // var a = _this.$refs.upload1.uploadFiles;
  4118. // a.splice(a.length - 1, a.length);
  4119. _this.$message.error("上传失败");
  4120. } else {
  4121. //上传成功处理
  4122. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4123. name: file.name,
  4124. url: data.Location,
  4125. uid: file.uid,
  4126. });
  4127. _this.imgChange();
  4128. console.log(data.Location);
  4129. }
  4130. });
  4131. }
  4132. },
  4133. onExceed() {
  4134. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4135. },
  4136. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4137. // const loading = this.openLoading();
  4138. var file = event.target.files[0];
  4139. var credentials = {
  4140. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4141. secretAccessKey: "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",
  4142. }; //秘钥形式的登录上传
  4143. window.AWS.config.update(credentials);
  4144. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4145. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4146. var _this = this;
  4147. if (type == 3) {
  4148. var b = [
  4149. "DOC",
  4150. "DOCX",
  4151. "DOCM",
  4152. "DOTM",
  4153. "DOTX",
  4154. "PPTX",
  4155. "PPSX",
  4156. "PPT",
  4157. "PPS",
  4158. "PPTM",
  4159. "POTM",
  4160. "PPAM",
  4161. "POTX",
  4162. "PPSM",
  4163. ];
  4164. if (
  4165. b.indexOf(
  4166. file.name
  4167. .split(".")
  4168. [file.name.split(".").length - 1].toLocaleUpperCase()
  4169. ) != -1
  4170. ) {
  4171. if (file.size / 1024 / 1024 > 80) {
  4172. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4173. this.inputShow = true;
  4174. // var a = _this.$refs.upload1.uploadFiles;
  4175. // a.splice(a.length - 1, a.length);
  4176. // loading.close();
  4177. return;
  4178. }
  4179. } else if (
  4180. file.name
  4181. .split(".")
  4182. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4183. ) {
  4184. if (file.size / 1024 / 1024 > 80) {
  4185. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4186. this.inputShow = true;
  4187. // var a = _this.$refs.upload1.uploadFiles;
  4188. // a.splice(a.length - 1, a.length);
  4189. // loading.close();
  4190. return;
  4191. }
  4192. }
  4193. }
  4194. this.inputShow = false;
  4195. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4196. itemTaskIndex
  4197. ].progress = 0;
  4198. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4199. itemTaskIndex
  4200. ].proVisible = true;
  4201. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4202. itemTaskIndex
  4203. ].isFinishSize = 0;
  4204. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4205. itemTaskIndex
  4206. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4207. _this.$forceUpdate();
  4208. if (file) {
  4209. var params = {
  4210. Key:
  4211. file.name.split(".")[0] +
  4212. new Date().getTime() +
  4213. "." +
  4214. file.name.split(".")[file.name.split(".").length - 1],
  4215. ContentType: file.type,
  4216. Body: file,
  4217. "Access-Control-Allow-Credentials": "*",
  4218. ACL: "public-read",
  4219. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4220. var options = {
  4221. partSize: 2048 * 1024 * 1024,
  4222. queueSize: 2,
  4223. leavePartsOnError: true,
  4224. };
  4225. bucket
  4226. .upload(params, options)
  4227. .on("httpUploadProgress", function (evt) {
  4228. //这里可以写进度条
  4229. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4230. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4231. itemTaskIndex
  4232. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4233. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4234. itemTaskIndex
  4235. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4236. _this.$forceUpdate();
  4237. })
  4238. .send(function (err, data) {
  4239. // loading.close();
  4240. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4241. itemTaskIndex
  4242. ].progress = 100;
  4243. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4244. itemTaskIndex
  4245. ].isFinishSize =
  4246. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4247. itemTaskIndex
  4248. ].isAllSize;
  4249. _this.$forceUpdate();
  4250. setTimeout(() => {
  4251. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4252. itemTaskIndex
  4253. ].proVisible = false;
  4254. _this.$forceUpdate();
  4255. }, 1000);
  4256. _this.inputShow = true;
  4257. if (err) {
  4258. // var a = _this.$refs.upload1.uploadFiles;
  4259. // a.splice(a.length - 1, a.length);
  4260. _this.$message.error("上传失败");
  4261. } else {
  4262. if (type == 2 || type == 3 || type == 12) {
  4263. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4264. itemTaskIndex
  4265. ].chapterData.push({
  4266. name: file.name,
  4267. url: data.Location,
  4268. uid: file.uid,
  4269. type: type,
  4270. });
  4271. _this.imgChange1(null, null, type, itemTaskIndex);
  4272. } else if (type == 4) {
  4273. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4274. itemTaskIndex
  4275. ].fileList1.push({
  4276. name: file.name,
  4277. url: data.Location,
  4278. uid: file.uid,
  4279. });
  4280. _this.imgChange1(null, null, type, itemTaskIndex);
  4281. } else if (type == 5) {
  4282. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4283. itemTaskIndex
  4284. ].homeworkList.push({
  4285. name: file.name,
  4286. url: data.Location,
  4287. uid: file.uid,
  4288. });
  4289. _this.imgChange1(null, null, type, itemTaskIndex);
  4290. }
  4291. console.log(data.Location);
  4292. }
  4293. });
  4294. }
  4295. },
  4296. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4297. // const loading = this.openLoading();
  4298. var file = event.target.files[0];
  4299. var credentials = {
  4300. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4301. secretAccessKey: "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",
  4302. }; //秘钥形式的登录上传
  4303. window.AWS.config.update(credentials);
  4304. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4305. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4306. var _this = this;
  4307. if (type == 3) {
  4308. var b = [
  4309. "DOC",
  4310. "DOCX",
  4311. "DOCM",
  4312. "DOTM",
  4313. "DOTX",
  4314. "PPTX",
  4315. "PPSX",
  4316. "PPT",
  4317. "PPS",
  4318. "PPTM",
  4319. "POTM",
  4320. "PPAM",
  4321. "POTX",
  4322. "PPSM",
  4323. ];
  4324. if (
  4325. b.indexOf(
  4326. file.name
  4327. .split(".")
  4328. [file.name.split(".").length - 1].toLocaleUpperCase()
  4329. ) != -1
  4330. ) {
  4331. if (file.size / 1024 / 1024 > 80) {
  4332. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4333. this.inputShow = true;
  4334. // var a = _this.$refs.upload1.uploadFiles;
  4335. // a.splice(a.length - 1, a.length);
  4336. // loading.close();
  4337. return;
  4338. }
  4339. } else if (
  4340. file.name
  4341. .split(".")
  4342. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4343. ) {
  4344. if (file.size / 1024 / 1024 > 80) {
  4345. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4346. this.inputShow = true;
  4347. // var a = _this.$refs.upload1.uploadFiles;
  4348. // a.splice(a.length - 1, a.length);
  4349. // loading.close();
  4350. return;
  4351. }
  4352. }
  4353. }
  4354. this.inputShow = false;
  4355. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4356. itemTaskIndex
  4357. ].progress = 0;
  4358. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4359. itemTaskIndex
  4360. ].proVisible = true;
  4361. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4362. itemTaskIndex
  4363. ].isFinishSize = 0;
  4364. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4365. itemTaskIndex
  4366. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4367. _this.$forceUpdate();
  4368. if (file) {
  4369. var params = {
  4370. Key:
  4371. file.name.split(".")[0] +
  4372. new Date().getTime() +
  4373. "." +
  4374. file.name.split(".")[file.name.split(".").length - 1],
  4375. ContentType: file.type,
  4376. Body: file,
  4377. "Access-Control-Allow-Credentials": "*",
  4378. ACL: "public-read",
  4379. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4380. var options = {
  4381. partSize: 2048 * 1024 * 1024,
  4382. queueSize: 2,
  4383. leavePartsOnError: true,
  4384. };
  4385. bucket
  4386. .upload(params, options)
  4387. .on("httpUploadProgress", function (evt) {
  4388. //这里可以写进度条
  4389. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4390. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4391. itemTaskIndex
  4392. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4393. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4394. itemTaskIndex
  4395. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4396. _this.$forceUpdate();
  4397. })
  4398. .send(function (err, data) {
  4399. // loading.close();
  4400. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4401. itemTaskIndex
  4402. ].progress = 100;
  4403. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4404. itemTaskIndex
  4405. ].isFinishSize =
  4406. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4407. itemTaskIndex
  4408. ].isAllSize;
  4409. _this.$forceUpdate();
  4410. setTimeout(() => {
  4411. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4412. itemTaskIndex
  4413. ].proVisible = false;
  4414. _this.$forceUpdate();
  4415. }, 1000);
  4416. _this.inputShow = true;
  4417. if (err) {
  4418. // var a = _this.$refs.upload1.uploadFiles;
  4419. // a.splice(a.length - 1, a.length);
  4420. _this.$message.error("上传失败");
  4421. } else {
  4422. if (type == 2 || type == 3) {
  4423. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4424. itemTaskIndex
  4425. ].chapterData.push({
  4426. name: file.name,
  4427. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4428. // itemTaskIndex
  4429. // ].chapterData.length+1),
  4430. url: data.Location,
  4431. uid: file.uid,
  4432. type: type,
  4433. text: string,
  4434. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4435. // itemTaskIndex
  4436. // ].chapterData.length + 1),
  4437. });
  4438. _this.imgChange1(null, null, type, itemTaskIndex);
  4439. } else if (type == 4) {
  4440. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4441. itemTaskIndex
  4442. ].fileList1.push({
  4443. name: file.name,
  4444. url: data.Location,
  4445. uid: file.uid,
  4446. });
  4447. _this.imgChange1(null, null, type, itemTaskIndex);
  4448. } else if (type == 5) {
  4449. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4450. itemTaskIndex
  4451. ].homeworkList.push({
  4452. name: file.name,
  4453. url: data.Location,
  4454. uid: file.uid,
  4455. });
  4456. _this.imgChange1(null, null, type, itemTaskIndex);
  4457. }
  4458. console.log(data.Location);
  4459. }
  4460. });
  4461. }
  4462. },
  4463. addunit() {
  4464. this.unitJson.push({
  4465. dyName: "", //单元标题
  4466. isUpdate: 1,
  4467. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4468. chapterInfo: [
  4469. {
  4470. isread: false,
  4471. chapterid: this.guid(),
  4472. title: "",
  4473. courseName: "",
  4474. taskJson: [
  4475. {
  4476. task: "",
  4477. taskDetail: "",
  4478. chapterData: [],
  4479. toolText: "",
  4480. toolChoose: [
  4481. {
  4482. tool: [],
  4483. toolDetail: "",
  4484. toolType: 0,
  4485. askCount: 1,
  4486. askTitle: "",
  4487. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4488. },
  4489. ],
  4490. isShowTools: false,
  4491. askCount: 1,
  4492. isFold: 0,
  4493. askTitle: "",
  4494. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4495. checkJson: [{ checkCount: [], checkPerent: [] }],
  4496. homeworkList: [],
  4497. },
  4498. ],
  4499. itemCount: 1,
  4500. fileList1: [],
  4501. video: [],
  4502. testData: [],
  4503. pData: [],
  4504. templateArray: [],
  4505. },
  4506. ],
  4507. });
  4508. this.addindex = this.unitJson.length - 1;
  4509. setTimeout(() => {
  4510. this.unitIndex = this.unitJson.length - 1;
  4511. this.unitSet(this.unitIndex);
  4512. }, 0);
  4513. },
  4514. addToolFun(itemTaskIndex) {
  4515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4516. itemTaskIndex
  4517. ].toolChoose.push({
  4518. tool: [],
  4519. toolDetail: "",
  4520. toolType: 0,
  4521. askCount: 1,
  4522. askTitle: "",
  4523. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4524. });
  4525. },
  4526. addTaskBorder() {
  4527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4528. task: "",
  4529. taskDetail: "",
  4530. chapterData: [],
  4531. toolChoose: [
  4532. {
  4533. tool: [],
  4534. toolDetail: "",
  4535. toolType: 0,
  4536. askCount: 1,
  4537. askTitle: "",
  4538. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4539. },
  4540. ],
  4541. toolText: "",
  4542. isShowTools: false,
  4543. askCount: 1,
  4544. isFold: 0,
  4545. askTitle: "",
  4546. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4547. checkJson: [{ checkCount: [], checkPerent: [] }],
  4548. homeworkList: [],
  4549. });
  4550. },
  4551. add(e, i) {
  4552. var el = e.currentTarget;
  4553. el.getElementsByTagName("input")[0].click();
  4554. },
  4555. fold(i, e, type) {
  4556. var a = e.currentTarget.parentElement.parentElement;
  4557. var b = e.currentTarget.parentElement;
  4558. if (type == 1) {
  4559. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4560. a.className += " smallTaskBorder";
  4561. b.className += " funBlockTop";
  4562. } else {
  4563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4564. a.className = "taskBorder";
  4565. b.className = "funBlock";
  4566. }
  4567. console.log(e);
  4568. },
  4569. deleteHomeworkBox(unitIndex, index, i) {
  4570. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4571. this.taskCount
  4572. ].homeworkList.splice(i, 1);
  4573. },
  4574. getStudent() {
  4575. let params = {
  4576. oid: this.oid,
  4577. cu: "",
  4578. cn: this.searchPeople,
  4579. };
  4580. this.ajax
  4581. .get(this.$store.state.api + "selectStudentAdd", params)
  4582. .then((res) => {
  4583. this.studentJuri = res.data[0];
  4584. })
  4585. .catch((err) => {
  4586. this.isLoading = false;
  4587. console.error(err);
  4588. });
  4589. },
  4590. getTeacher() {
  4591. let params = {
  4592. oid:
  4593. this.org && this.org != "undefined" && this.org != "null"
  4594. ? this.org
  4595. : this.oid,
  4596. cu: "",
  4597. cn: this.searchTN,
  4598. };
  4599. this.ajax
  4600. .get(
  4601. this.$store.state.api +
  4602. (this.org && this.org != "undefined" && this.org != "null"
  4603. ? "selectTeacherAddOrg"
  4604. : "selectTeacherAdd"),
  4605. params
  4606. )
  4607. .then((res) => {
  4608. let teacherJuri = res.data[0];
  4609. for (var i = 0; i < teacherJuri.length; i++) {
  4610. if (teacherJuri[i].userid == this.userid) {
  4611. teacherJuri.splice(i, 1);
  4612. break;
  4613. }
  4614. }
  4615. this.teacherJuri = teacherJuri;
  4616. })
  4617. .catch((err) => {
  4618. console.error(err);
  4619. });
  4620. },
  4621. searchStudent() {
  4622. this.getStudent();
  4623. },
  4624. //获取班级列表
  4625. getClass() {
  4626. let params = {
  4627. oid: this.oid,
  4628. cn: this.classSearch,
  4629. };
  4630. this.ajax
  4631. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  4632. .then((res) => {
  4633. if (!this.grade.length) {
  4634. this.grade = res.data[0];
  4635. }
  4636. this.grade2 = res.data[0];
  4637. this.classJuri = res.data[0];
  4638. })
  4639. .catch((err) => {
  4640. this.isLoading = false;
  4641. console.error(err);
  4642. });
  4643. },
  4644. CourseType2Change(val) {
  4645. this.pTypeCheck = [];
  4646. for (var i = 0; i < this.CourseType2.length; i++) {
  4647. let typeA = this.CourseType2[i];
  4648. if (val.indexOf(typeA.name) != -1) {
  4649. this.pTypeCheck.push(...typeA.id);
  4650. }
  4651. }
  4652. },
  4653. getChapterData(e, i, j, ic, type) {
  4654. e.stopPropagation();
  4655. this.updataC = true;
  4656. this.icc = ic;
  4657. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4658. console.log("还不能下载图片喔");
  4659. }
  4660. },
  4661. deleteChapterData(e, i, j, ic, taskI) {
  4662. e.stopPropagation();
  4663. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4664. },
  4665. updataVideoT(e, i, j, ic) {
  4666. e.stopPropagation();
  4667. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4668. ic
  4669. ].name = e.target.value;
  4670. },
  4671. upCd(e, i, j, taskCount, ic) {
  4672. e.stopPropagation();
  4673. if (ic == 0) {
  4674. return;
  4675. }
  4676. var a =
  4677. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
  4678. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4679. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4680. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4681. this.$forceUpdate();
  4682. },
  4683. downCd(e, i, j, taskCount, ic) {
  4684. e.stopPropagation();
  4685. if (
  4686. ic ==
  4687. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4688. 1
  4689. ) {
  4690. return;
  4691. }
  4692. var a =
  4693. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
  4694. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4695. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4696. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4697. this.$forceUpdate();
  4698. },
  4699. addWork() {
  4700. let cPan = 1;
  4701. for (var i = 0; i < this.unitJson.length; i++) {
  4702. for (
  4703. var j = 0;
  4704. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4705. j++
  4706. ) {
  4707. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4708. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4709. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4710. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4711. i
  4712. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4713. return ele.value != "";
  4714. });
  4715. }
  4716. }
  4717. }
  4718. this.inputShow = true;
  4719. if (cPan == 2) {
  4720. this.steps--;
  4721. return;
  4722. }
  4723. for (var i = 0; i < this.unitJson.length; i++) {
  4724. delete this.unitJson[i].isUpdate;
  4725. }
  4726. let params = [
  4727. {
  4728. uid: this.userid,
  4729. title: this.courseName.replace(/%/g, "%25"),
  4730. brief: this.courseText.replace(/%/g, "%25"),
  4731. cover:
  4732. this.cover.length > 0
  4733. ? JSON.stringify(this.cover)
  4734. : JSON.stringify([
  4735. {
  4736. name: "noBanner.jpg",
  4737. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4738. uid: 1656409780264,
  4739. status: "success",
  4740. },
  4741. ]),
  4742. evaId: this.evalua,
  4743. astudent:
  4744. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4745. see: this.isTeacherSee == true ? 1 : 0,
  4746. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4747. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4748. courseType: JSON.stringify(this.courseTypeId),
  4749. ateacher:
  4750. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4751. inviteCode: JSON.stringify(this.inviteCode),
  4752. },
  4753. ];
  4754. this.ajax
  4755. .post(this.$store.state.api + "addWorkNew2E", params)
  4756. .then((res) => {
  4757. console.log(this.steps);
  4758. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4759. this.$message({
  4760. message: "新增成功",
  4761. type: "success",
  4762. });
  4763. }
  4764. this.number = res.data.ordernumber;
  4765. this.courseId = res.data.courseId;
  4766. this.cid = res.data.courseId;
  4767. this.courseUserid = this.userid;
  4768. this.islogin = true;
  4769. })
  4770. .catch((err) => {
  4771. this.$message.error("网络不佳");
  4772. console.error(err);
  4773. });
  4774. },
  4775. goCourse() {
  4776. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  4777. },
  4778. updateWork2() {
  4779. let _unitIndex = this.unitIndex;
  4780. let cPan = 1;
  4781. for (
  4782. var j = 0;
  4783. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4784. j++
  4785. ) {
  4786. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4787. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4788. j
  4789. ].proVisible2 = false;
  4790. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4791. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4792. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4793. (ele) => {
  4794. return ele.value != "";
  4795. }
  4796. );
  4797. }
  4798. }
  4799. this.inputShow = true;
  4800. if (cPan == 2) {
  4801. this.steps--;
  4802. return;
  4803. }
  4804. let params = [
  4805. {
  4806. cid: this.cid,
  4807. chapters: JSON.stringify(this.unitJson),
  4808. uid: this.userid,
  4809. unitIndex: _unitIndex,
  4810. },
  4811. ];
  4812. this.ajax
  4813. .post(this.$store.state.api + "updateWorkNew4", params)
  4814. .then((res) => {
  4815. this.$message({
  4816. message: "修改成功",
  4817. type: "success",
  4818. });
  4819. this.courseId = this.cid;
  4820. })
  4821. .catch((err) => {
  4822. this.$message.error("网络不佳");
  4823. console.error(err);
  4824. });
  4825. },
  4826. updateWork() {
  4827. let cPan = 1;
  4828. for (var i = 0; i < this.unitJson.length; i++) {
  4829. for (
  4830. var j = 0;
  4831. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4832. j++
  4833. ) {
  4834. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4835. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4836. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4837. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4838. i
  4839. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4840. return ele.value != "";
  4841. });
  4842. }
  4843. }
  4844. }
  4845. this.inputShow = true;
  4846. if (cPan == 2) {
  4847. this.steps--;
  4848. return;
  4849. }
  4850. for (var i = 0; i < this.unitJson.length; i++) {
  4851. delete this.unitJson[i].isUpdate;
  4852. }
  4853. let params = [
  4854. {
  4855. cid: this.cid,
  4856. title: this.courseName.replace(/%/g, "%25"),
  4857. brief: this.courseText.replace(/%/g, "%25"),
  4858. cover:
  4859. this.cover.length > 0
  4860. ? JSON.stringify(this.cover)
  4861. : JSON.stringify([
  4862. {
  4863. name: "noBanner.jpg",
  4864. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4865. uid: 1656409780264,
  4866. status: "success",
  4867. },
  4868. ]),
  4869. evaId: this.evalua,
  4870. astudent:
  4871. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4872. see: this.isTeacherSee == true ? 1 : 0,
  4873. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4874. template: this.myWord != "undefined" ? this.myWord : [],
  4875. uid: this.userid,
  4876. courseType: JSON.stringify(this.courseTypeId),
  4877. ateacher:
  4878. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4879. inviteCode: JSON.stringify(this.inviteCode),
  4880. },
  4881. ];
  4882. this.ajax
  4883. .post(this.$store.state.api + "updateWorkNew2", params)
  4884. .then((res) => {
  4885. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4886. if (this.cidType == 1) {
  4887. this.$message({
  4888. message: "修改成功",
  4889. type: "success",
  4890. });
  4891. } else {
  4892. this.$message({
  4893. message: "新增成功",
  4894. type: "success",
  4895. });
  4896. }
  4897. }
  4898. this.number = this.nbOrder;
  4899. this.courseId = this.cid;
  4900. })
  4901. .catch((err) => {
  4902. this.$message.error("网络不佳");
  4903. console.error(err);
  4904. });
  4905. },
  4906. guid() {
  4907. var _num,
  4908. i,
  4909. _guid = "";
  4910. for (i = 0; i < 32; i++) {
  4911. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4912. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4913. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4914. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4915. _guid += "-";
  4916. }
  4917. }
  4918. return _guid;
  4919. },
  4920. insertWord() {
  4921. this.dialogVisible1 = true;
  4922. this.updateBoolean2 = false;
  4923. this.tTitle = "";
  4924. this.tdetail = "";
  4925. },
  4926. addWord() {
  4927. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  4928. name: this.tTitle,
  4929. content: this.tdetail,
  4930. uid: this.guid(),
  4931. });
  4932. this.dialogVisible1 = false;
  4933. },
  4934. upWord() { },
  4935. selectWord(uid, i, c) {
  4936. this.dialogVisible1 = true;
  4937. this.updateBoolean2 = true;
  4938. if (
  4939. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  4940. ) {
  4941. this.tTitle =
  4942. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  4943. this.tdetail =
  4944. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  4945. }
  4946. },
  4947. isAddPP() {
  4948. if (this.checkboxList.length > 0) {
  4949. this.$message({
  4950. message: "添加成功",
  4951. type: "success",
  4952. });
  4953. this.dialogVisible3 = false;
  4954. } else {
  4955. this.$message({
  4956. message: "请添加课程成员",
  4957. type: "error",
  4958. });
  4959. }
  4960. },
  4961. isAddClass() {
  4962. this.dialogVisibleClass = false;
  4963. },
  4964. isAddPPTeacher() {
  4965. this.dialogVisibleMember = false;
  4966. this.setMan();
  4967. },
  4968. getTemplate() {
  4969. this.ajax
  4970. .get(this.$store.state.api + "getCourseTemplateT", "")
  4971. .then((res) => {
  4972. this.templateArray = res.data[0];
  4973. this.getTemplateOid();
  4974. this.$forceUpdate();
  4975. })
  4976. .catch((err) => { });
  4977. },
  4978. getTemplateOid() {
  4979. let params = {
  4980. oid: this.oid,
  4981. };
  4982. this.ajax
  4983. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  4984. .then((res) => {
  4985. if (res.data[0].length) {
  4986. this.templateArray = [...res.data[0], ...this.templateArray];
  4987. }
  4988. this.getTemplateOrg();
  4989. this.$forceUpdate();
  4990. })
  4991. .catch((err) => { });
  4992. },
  4993. getTemplateOrg() {
  4994. let params = {
  4995. oid: this.org,
  4996. };
  4997. this.ajax
  4998. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  4999. .then((res) => {
  5000. if (res.data[0].length) {
  5001. this.templateArray = [...res.data[0], ...this.templateArray];
  5002. }
  5003. this.$forceUpdate();
  5004. })
  5005. .catch((err) => { });
  5006. },
  5007. clearChoose() {
  5008. this.clearArray.splice(this.templateC.id, 1);
  5009. this.dialogVisible2 = false;
  5010. },
  5011. clearAttText() {
  5012. this.AttText = {
  5013. title: "",
  5014. text: "",
  5015. };
  5016. this.dialogVisible6 = false;
  5017. },
  5018. clearLine() {
  5019. this.line = "";
  5020. this.dialogVisible7 = false;
  5021. },
  5022. checkTemplate(res) {
  5023. let _this = this;
  5024. _this
  5025. .$confirm("确定选择此模板吗?", "提示", {
  5026. confirmButtonText: "确定",
  5027. cancelButtonText: "取消",
  5028. type: "warning",
  5029. })
  5030. .then(() => {
  5031. _this.unitJson = JSON.parse(res.chapters);
  5032. _this.steps++;
  5033. setTimeout(() => {
  5034. this.checkEva(this.checkId);
  5035. }, 1000);
  5036. })
  5037. .catch(() => {
  5038. return;
  5039. });
  5040. },
  5041. checkTemplate1(w) {
  5042. this.steps++;
  5043. },
  5044. checkTemplate2() {
  5045. let _this = this;
  5046. _this
  5047. .$confirm("确定选择空模板吗?", "提示", {
  5048. confirmButtonText: "确定",
  5049. cancelButtonText: "取消",
  5050. type: "warning",
  5051. })
  5052. .then(() => {
  5053. _this.unitIndex = 0;
  5054. _this.unitJson = [
  5055. {
  5056. dyName: "", //单元标题
  5057. chapterInfo: [
  5058. {
  5059. isread: false,
  5060. chapterid: this.guid(),
  5061. title: "",
  5062. courseName: "",
  5063. taskJson: [
  5064. {
  5065. task: "",
  5066. taskDetail: "",
  5067. chapterData: [],
  5068. toolText: "",
  5069. toolChoose: [
  5070. {
  5071. tool: [],
  5072. toolDetail: "",
  5073. toolType: 0,
  5074. askCount: 1,
  5075. askTitle: "",
  5076. askJson: [
  5077. { askstitle: "", askItem: 1, checkList: [] },
  5078. ],
  5079. },
  5080. ],
  5081. isShowTools: false,
  5082. askCount: 1,
  5083. isFold: 0,
  5084. askTitle: "",
  5085. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5086. checkJson: [{ checkCount: [], checkPerent: [] }],
  5087. homeworkList: [],
  5088. },
  5089. ],
  5090. itemCount: 1,
  5091. fileList1: [],
  5092. video: [],
  5093. testData: [],
  5094. pData: [],
  5095. templateArray: [],
  5096. },
  5097. ],
  5098. },
  5099. ];
  5100. this.steps++;
  5101. this.updateWork();
  5102. })
  5103. .catch(() => {
  5104. return;
  5105. });
  5106. },
  5107. checkTemplate3() {
  5108. let _this = this;
  5109. _this
  5110. .$confirm("确定选择简易模式吗?", "提示", {
  5111. confirmButtonText: "确定",
  5112. cancelButtonText: "取消",
  5113. type: "warning",
  5114. })
  5115. .then(() => {
  5116. _this.unitIndex = 0;
  5117. _this.unitJson = [
  5118. {
  5119. dyName: "", //单元标题
  5120. easy: 1,
  5121. chapterInfo: [
  5122. {
  5123. isread: false,
  5124. chapterid: this.guid(),
  5125. title: "",
  5126. courseName: "",
  5127. taskJson: [
  5128. {
  5129. task: "",
  5130. taskDetail: "",
  5131. chapterData: [],
  5132. toolText: "",
  5133. toolChoose: [
  5134. {
  5135. tool: [],
  5136. toolDetail: "",
  5137. toolType: 0,
  5138. askCount: 1,
  5139. askTitle: "",
  5140. askJson: [
  5141. { askstitle: "", askItem: 1, checkList: [] },
  5142. ],
  5143. },
  5144. ],
  5145. isShowTools: false,
  5146. askCount: 1,
  5147. isFold: 0,
  5148. askTitle: "",
  5149. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5150. checkJson: [{ checkCount: [], checkPerent: [] }],
  5151. homeworkList: [],
  5152. },
  5153. ],
  5154. itemCount: 1,
  5155. fileList1: [],
  5156. video: [],
  5157. testData: [],
  5158. pData: [],
  5159. templateArray: [],
  5160. },
  5161. ],
  5162. },
  5163. ];
  5164. this.steps++;
  5165. this.updateWork();
  5166. })
  5167. .catch(() => {
  5168. return;
  5169. });
  5170. },
  5171. checkTemplate4() {
  5172. let _this = this;
  5173. _this
  5174. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5175. confirmButtonText: "确定",
  5176. cancelButtonText: "取消",
  5177. type: "warning",
  5178. })
  5179. .then(() => {
  5180. _this.unitIndex = 0;
  5181. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5182. this.steps++;
  5183. this.updateWork();
  5184. })
  5185. .catch(() => {
  5186. return;
  5187. });
  5188. },
  5189. wordNext() {
  5190. this.dialogVisible2 = false;
  5191. },
  5192. isAddOrUpdateAttText() {
  5193. if (this.AttTextType == 0) {
  5194. this.addAttTextMessage();
  5195. } else {
  5196. this.updateAttText();
  5197. }
  5198. },
  5199. isAddOrUpdateLine() {
  5200. if (!this.lineTitle) {
  5201. this.$message.error("请填写链接标题");
  5202. return;
  5203. }
  5204. if (this.lineType == 0) {
  5205. this.addLine();
  5206. } else {
  5207. this.updateLine();
  5208. }
  5209. },
  5210. addAttTextMessage() {
  5211. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5212. this.taskCount
  5213. ].chapterData.push({
  5214. name: this.AttText.title,
  5215. url: this.AttText.text,
  5216. type: 6,
  5217. });
  5218. this.imgChange1(null, null, 6, this.taskCount);
  5219. this.dialogVisible6 = false;
  5220. },
  5221. selectAttText(itemTaskIndex, i) {
  5222. this.AttText.title =
  5223. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5224. itemTaskIndex
  5225. ].chapterData[i].name;
  5226. this.AttText.text =
  5227. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5228. itemTaskIndex
  5229. ].chapterData[i].url;
  5230. this.taskCount = itemTaskIndex;
  5231. this.AttTextIndex = i;
  5232. this.AttTextType = 1;
  5233. this.dialogVisible6 = true;
  5234. },
  5235. updateAttText() {
  5236. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5237. this.taskCount
  5238. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5240. this.taskCount
  5241. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5242. this.dialogVisible6 = false;
  5243. },
  5244. addLine() {
  5245. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5246. this.lineCount
  5247. ].chapterData.push({
  5248. name: "链接",
  5249. title: this.lineTitle,
  5250. url: this.line,
  5251. type: 8,
  5252. });
  5253. this.imgChange1(null, null, 8, this.lineCount);
  5254. this.dialogVisible7 = false;
  5255. },
  5256. selectLine(itemTaskIndex, i) {
  5257. this.line =
  5258. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5259. itemTaskIndex
  5260. ].chapterData[i].url;
  5261. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5262. itemTaskIndex
  5263. ].chapterData[i].title
  5264. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5265. .chapterData[i].title
  5266. : "";
  5267. this.taskCount = itemTaskIndex;
  5268. this.lineCount = i;
  5269. this.lineType = 1;
  5270. this.dialogVisible7 = true;
  5271. },
  5272. updateLine() {
  5273. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5274. this.taskCount
  5275. ].chapterData[this.lineCount].url = this.line;
  5276. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5277. this.taskCount
  5278. ].chapterData[this.lineCount].title = this.lineTitle;
  5279. this.dialogVisible7 = false;
  5280. },
  5281. addPP() {
  5282. this.dialogVisible3 = true;
  5283. },
  5284. goTo(path) {
  5285. this.$router.push(path);
  5286. },
  5287. openTools(itemTaskIndex, i, toolIndex) {
  5288. this.toolIndex = toolIndex;
  5289. this.taskCount = itemTaskIndex;
  5290. if (i == 4) {
  5291. if (toolIndex == null) {
  5292. var a =
  5293. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5294. .chapterData;
  5295. for (var i = 0; i < a.length; i++) {
  5296. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5297. this.askJson =
  5298. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5299. itemTaskIndex
  5300. ].chapterData[i].askJson;
  5301. }
  5302. }
  5303. } else {
  5304. this.askJson = JSON.parse(
  5305. JSON.stringify(
  5306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5307. itemTaskIndex
  5308. ].toolChoose[toolIndex]
  5309. )
  5310. );
  5311. }
  5312. this.dialogVisible5 = true;
  5313. } else if (i == 45) {
  5314. if (
  5315. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5316. .toolChoose[toolIndex].testJson
  5317. ) {
  5318. this.testJson = JSON.parse(
  5319. JSON.stringify(
  5320. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5321. itemTaskIndex
  5322. ].toolChoose[toolIndex].testJson
  5323. )
  5324. );
  5325. } else {
  5326. var testJson = {
  5327. testCount: 1,
  5328. testTitle: "",
  5329. testJson: [
  5330. {
  5331. teststitle: "",
  5332. testItem: 1,
  5333. checkList: [],
  5334. timuList: [],
  5335. answer: [],
  5336. type: "1",
  5337. },
  5338. ],
  5339. };
  5340. this.testJson = testJson;
  5341. }
  5342. this.dialogVisibleChoice = true;
  5343. } else if (i == 47) {
  5344. if (
  5345. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5346. .toolChoose[toolIndex].sentenceList
  5347. ) {
  5348. this.sentenceList = JSON.parse(
  5349. JSON.stringify(
  5350. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5351. itemTaskIndex
  5352. ].toolChoose[toolIndex].sentenceList
  5353. )
  5354. );
  5355. } else {
  5356. var sentenceList = [
  5357. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5358. ];
  5359. this.sentenceList = sentenceList;
  5360. }
  5361. this.dialogVisibleSentence = true;
  5362. } else if (i == 48) {
  5363. if (
  5364. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5365. .toolChoose[toolIndex].tableJson
  5366. ) {
  5367. this.tableJson = JSON.parse(
  5368. JSON.stringify(
  5369. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5370. itemTaskIndex
  5371. ].toolChoose[toolIndex].tableJson
  5372. )
  5373. );
  5374. } else {
  5375. var tableJson = { text: "" };
  5376. this.tableJson = tableJson;
  5377. }
  5378. this.dialogVisibleTable = true;
  5379. } else if (i == 52) {
  5380. if (
  5381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5382. .toolChoose[toolIndex].wordJson
  5383. ) {
  5384. this.wordJson = JSON.parse(
  5385. JSON.stringify(
  5386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5387. itemTaskIndex
  5388. ].toolChoose[toolIndex].wordJson
  5389. )
  5390. );
  5391. } else {
  5392. var wordJson = { text: "" };
  5393. this.wordJson = wordJson;
  5394. }
  5395. this.dialogVisibleWord = true;
  5396. // else if (i == 50) {
  5397. // if (
  5398. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5399. // .toolChoose[toolIndex].uploadJson
  5400. // ) {
  5401. // this.uploadJson = JSON.parse(
  5402. // JSON.stringify(
  5403. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5404. // itemTaskIndex
  5405. // ].toolChoose[toolIndex].uploadJson
  5406. // )
  5407. // );
  5408. // } else {
  5409. // var uploadJson = [];
  5410. // this.uploadJson = uploadJson;
  5411. // }
  5412. // this.dialogVisibleMoreUpload = true;
  5413. // }
  5414. } else if (i == 10) {
  5415. if (
  5416. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5417. .toolChoose[toolIndex].preTime
  5418. ) {
  5419. this.preTime = JSON.parse(
  5420. JSON.stringify(
  5421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5422. itemTaskIndex
  5423. ].toolChoose[toolIndex].preTime
  5424. )
  5425. );
  5426. } else {
  5427. var preTime = 0;
  5428. this.preTime = preTime;
  5429. }
  5430. this.dialogVisiblePreTime = true;
  5431. } else if (i == 49) {
  5432. if (
  5433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5434. .toolChoose[toolIndex].groupJson
  5435. ) {
  5436. this.groupJson = JSON.parse(
  5437. JSON.stringify(
  5438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5439. itemTaskIndex
  5440. ].toolChoose[toolIndex].groupJson
  5441. )
  5442. );
  5443. } else {
  5444. var groupJson = {
  5445. group: [{ name: "第1组" }],
  5446. number: undefined,
  5447. islock: 1,
  5448. };
  5449. this.groupJson = groupJson;
  5450. }
  5451. this.dialogVisibleGroup = true;
  5452. } else if (i == 62) {
  5453. if (
  5454. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5455. .toolChoose[toolIndex].videoJson
  5456. ) {
  5457. this.videoJson = JSON.parse(
  5458. JSON.stringify(
  5459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5460. itemTaskIndex
  5461. ].toolChoose[toolIndex].videoJson
  5462. )
  5463. );
  5464. } else {
  5465. var videoJson = {
  5466. video: "",
  5467. setting: []
  5468. };
  5469. this.videoJson = videoJson;
  5470. }
  5471. this.dialogVisibleVideo = true;
  5472. } else if (i == 15) {
  5473. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5474. itemTaskIndex
  5475. ].toolChoose[toolIndex].answerQ
  5476. ? JSON.parse(
  5477. JSON.stringify(
  5478. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5479. itemTaskIndex
  5480. ].toolChoose[toolIndex].answerQ
  5481. )
  5482. )
  5483. : "";
  5484. this.dialogVisible8 = true;
  5485. } else if (i == 40) {
  5486. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5487. itemTaskIndex
  5488. ].toolChoose[toolIndex].rateJson
  5489. ? JSON.parse(
  5490. JSON.stringify(
  5491. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5492. itemTaskIndex
  5493. ].toolChoose[toolIndex].rateJson
  5494. )
  5495. )
  5496. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5497. this.selectSteps = 1;
  5498. this.dialogVisibleRate = true;
  5499. } else if (i == 42) {
  5500. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5501. itemTaskIndex
  5502. ].toolChoose[toolIndex].answerQ
  5503. ? JSON.parse(
  5504. JSON.stringify(
  5505. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5506. itemTaskIndex
  5507. ].toolChoose[toolIndex].answerQ
  5508. )
  5509. )
  5510. : "";
  5511. this.dialogVisibleMp3 = true;
  5512. } else if (i == 41) {
  5513. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5514. itemTaskIndex
  5515. ].toolChoose[toolIndex].selectJson
  5516. ? JSON.parse(
  5517. JSON.stringify(
  5518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5519. itemTaskIndex
  5520. ].toolChoose[toolIndex].selectJson
  5521. )
  5522. )
  5523. : { url: "", select: [], answer: [] };
  5524. this.selectSteps = 1;
  5525. this.dialogVisibleSelect = true;
  5526. } else if (i == 3) {
  5527. window.parent.postMessage(
  5528. {
  5529. tools: "3y",
  5530. cid: this.cid,
  5531. stage: this.unitIndex,
  5532. task: itemTaskIndex,
  5533. tool: toolIndex,
  5534. },
  5535. "*"
  5536. );
  5537. } else if (i == 1) {
  5538. window.parent.postMessage(
  5539. {
  5540. tools: "1y",
  5541. cid: this.cid,
  5542. stage: this.unitIndex,
  5543. task: itemTaskIndex,
  5544. tool: toolIndex,
  5545. },
  5546. "*"
  5547. );
  5548. }
  5549. },
  5550. chapAddTools(i) {
  5551. if (this.chapTools[0].tools.length == 0) {
  5552. this.chapTools[0].tools.push(i);
  5553. } else {
  5554. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5555. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5556. } else {
  5557. this.chapTools[0].tools.push(i);
  5558. }
  5559. }
  5560. this.$forceUpdate();
  5561. },
  5562. addChaptersDataTools() {
  5563. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5565. this.chapCount
  5566. ].chapterData.push({
  5567. name: this.chapTools[0].toolDetail,
  5568. url: this.chapTools[0].tools,
  5569. type: 7,
  5570. askJson: this.askJson,
  5571. });
  5572. } else {
  5573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5574. this.chapCount
  5575. ].chapterData.push({
  5576. name: this.chapTools[0].toolDetail,
  5577. url: this.chapTools[0].tools,
  5578. type: 7,
  5579. });
  5580. }
  5581. this.imgChange1(null, null, 7, this.chapCount);
  5582. this.dialogVisible4 = false;
  5583. },
  5584. addTools(i, itemTaskIndex, toolIndex) {
  5585. // if (
  5586. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5587. // .toolChoose[toolIndex].tool.length == 0
  5588. // ) {
  5589. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5590. // itemTaskIndex
  5591. // ].toolChoose[toolIndex].tool.push(i);
  5592. // } else {
  5593. // if (
  5594. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5595. // itemTaskIndex
  5596. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5597. // ) {
  5598. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5599. // itemTaskIndex
  5600. // ].toolChoose[toolIndex].tool.splice(
  5601. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5602. // itemTaskIndex
  5603. // ].toolChoose[toolIndex].tool.indexOf(i),
  5604. // 1
  5605. // );
  5606. // } else {
  5607. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5608. // itemTaskIndex
  5609. // ].toolChoose[toolIndex].tool.push(i);
  5610. // }
  5611. // console.log(
  5612. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5613. // .toolChoose[toolIndex].tool
  5614. // );
  5615. // }
  5616. if (i == 4) {
  5617. if (
  5618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5619. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5621. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5622. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5623. .toolChoose[toolIndex].askJson[0].checkList < 2
  5624. ) {
  5625. this.openTools(itemTaskIndex, 4, toolIndex);
  5626. // this.$message({
  5627. // message: "请填写完整问卷内容",
  5628. // type: "error",
  5629. // });
  5630. return;
  5631. }
  5632. }
  5633. if (i == 45) {
  5634. if (
  5635. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5636. .toolChoose[toolIndex].testJson ||
  5637. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5638. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5639. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5640. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5641. ) {
  5642. this.openTools(itemTaskIndex, 45, toolIndex);
  5643. // this.$message({
  5644. // message: "请填写完整问卷内容",
  5645. // type: "error",
  5646. // });
  5647. return;
  5648. }
  5649. }
  5650. if (i == 47) {
  5651. if (
  5652. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5653. .toolChoose[toolIndex].sentenceList ||
  5654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5655. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5656. ) {
  5657. this.openTools(itemTaskIndex, 47, toolIndex);
  5658. return;
  5659. }
  5660. }
  5661. // if (i == 48) {
  5662. // if (
  5663. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5664. // .toolChoose[toolIndex].tableJson
  5665. // ) {
  5666. // this.openTools(itemTaskIndex, 48, toolIndex);
  5667. // return;
  5668. // }
  5669. // }
  5670. // if (i == 50) {
  5671. // if (
  5672. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5673. // .toolChoose[toolIndex].uploadJson
  5674. // ) {
  5675. // this.openTools(itemTaskIndex, 50, toolIndex);
  5676. // return;
  5677. // }
  5678. // }
  5679. if (i == 49) {
  5680. if (
  5681. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5682. .toolChoose[toolIndex].groupJson
  5683. ) {
  5684. this.openTools(itemTaskIndex, 49, toolIndex);
  5685. return;
  5686. }
  5687. }
  5688. if (i == 62) {
  5689. if (
  5690. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5691. .toolChoose[toolIndex].videoJson
  5692. ) {
  5693. this.openTools(itemTaskIndex, 62, toolIndex);
  5694. return;
  5695. }
  5696. }
  5697. if (i == 15) {
  5698. if (
  5699. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5700. .toolChoose[toolIndex].answerQ ||
  5701. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5702. .toolChoose[toolIndex].answerQ == ""
  5703. ) {
  5704. this.openTools(itemTaskIndex, 15, toolIndex);
  5705. // this.$message({
  5706. // message: "请填写问答内容",
  5707. // type: "error",
  5708. // });
  5709. return;
  5710. }
  5711. }
  5712. if (i == 40) {
  5713. if (
  5714. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5715. .toolChoose[toolIndex].rateJson ||
  5716. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5717. .toolChoose[toolIndex].rateJson.length
  5718. ) {
  5719. this.openTools(itemTaskIndex, 40, toolIndex);
  5720. return;
  5721. }
  5722. }
  5723. if (i == 41) {
  5724. if (
  5725. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5726. .toolChoose[toolIndex].selectJson ||
  5727. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5728. .toolChoose[toolIndex].selectJson.url == "" ||
  5729. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5730. .toolChoose[toolIndex].selectJson.select.length ||
  5731. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5732. .toolChoose[toolIndex].selectJson.answer.length
  5733. ) {
  5734. this.openTools(itemTaskIndex, 41, toolIndex);
  5735. return;
  5736. }
  5737. }
  5738. if (i == 42) {
  5739. if (
  5740. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5741. .toolChoose[toolIndex].answerQ ||
  5742. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5743. .toolChoose[toolIndex].answerQ == ""
  5744. ) {
  5745. this.openTools(itemTaskIndex, 42, toolIndex);
  5746. return;
  5747. }
  5748. }
  5749. if (
  5750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5751. .toolChoose[toolIndex].tool.length > 0
  5752. ) {
  5753. if (
  5754. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5755. itemTaskIndex
  5756. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5757. ) {
  5758. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5759. itemTaskIndex
  5760. ].toolChoose[toolIndex].tool.splice(
  5761. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5762. itemTaskIndex
  5763. ].toolChoose[toolIndex].tool.indexOf(i),
  5764. 1
  5765. );
  5766. } else {
  5767. // this.$message({
  5768. // message: "每个工具只能添加一个",
  5769. // type: "error",
  5770. // });
  5771. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5772. itemTaskIndex
  5773. ].toolChoose[toolIndex].tool = [];
  5774. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5775. itemTaskIndex
  5776. ].toolChoose[toolIndex].tool.push(i);
  5777. }
  5778. } else {
  5779. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5780. itemTaskIndex
  5781. ].toolChoose[toolIndex].tool.push(i);
  5782. }
  5783. this.$forceUpdate();
  5784. },
  5785. addAskList() {
  5786. this.askJson.askJson.push({
  5787. askstitle: "",
  5788. askItem: 1,
  5789. checkList: [],
  5790. });
  5791. this.askJson.askCount++;
  5792. },
  5793. addTestList() {
  5794. this.testJson.testJson.push({
  5795. teststitle: "",
  5796. testItem: 1,
  5797. checkList: [],
  5798. timuList: [],
  5799. answer: [],
  5800. type: "1",
  5801. });
  5802. this.testJson.testCount++;
  5803. },
  5804. deleteAskList(index) {
  5805. this.askJson.askJson.splice(index, 1);
  5806. this.askJson.askCount--;
  5807. },
  5808. deleteTestList(index) {
  5809. this.testJson.testJson.splice(index, 1);
  5810. this.testJson.testCount--;
  5811. },
  5812. addcheckList(json) {
  5813. json.checkList.length++;
  5814. json.askItem++;
  5815. },
  5816. deletecheckList(json) {
  5817. json.checkList.length--;
  5818. json.askItem--;
  5819. },
  5820. addTcheckList(json) {
  5821. json.checkList.length++;
  5822. json.testItem++;
  5823. },
  5824. deleteTcheckList(json) {
  5825. json.checkList.length--;
  5826. json.testItem--;
  5827. },
  5828. checkTestType(type, json) {
  5829. json.type = type;
  5830. json.answer = [];
  5831. },
  5832. checkAskType(type, json) {
  5833. json.type = type;
  5834. json.checkList = [];
  5835. },
  5836. addSelectList(json) {
  5837. json.select.push("");
  5838. json.answer.push("");
  5839. },
  5840. deleteSelectList(json) {
  5841. // json.select.length--;
  5842. // json.answer.length--;
  5843. json.select.splice(json.select.length - 1, 1);
  5844. json.answer.splice(json.answer.length - 1, 1);
  5845. },
  5846. addAsk() {
  5847. if (this.askJson.askTitle === "") {
  5848. this.$message.error("标题不能为空!");
  5849. return;
  5850. }
  5851. var aj = this.askJson.askJson;
  5852. var b = 1;
  5853. for (var i = 0; i < aj.length; i++) {
  5854. if (aj[i].askstitle === "") {
  5855. var a = 1;
  5856. for (let index = 0; index < aj[i].askItem; index++) {
  5857. const element = aj[i].checkList[index]
  5858. ? aj[i].checkList[index]
  5859. : "";
  5860. if (element != "") {
  5861. b++;
  5862. this.$message.error("填写了选项,题目不能为空!");
  5863. return;
  5864. } else {
  5865. a++;
  5866. }
  5867. }
  5868. if (b == 1) {
  5869. this.$message.error("至少填写一个问题");
  5870. return;
  5871. }
  5872. } else if (aj[i].askstitle != "") {
  5873. for (let index = 0; index < aj[i].askItem; index++) {
  5874. const element = aj[i].checkList[index]
  5875. ? aj[i].checkList[index]
  5876. : "";
  5877. var index = 0;
  5878. for (var z = 0; z < aj[i].checkList.length; z++) {
  5879. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5880. if (checkC != "") {
  5881. index++;
  5882. } else {
  5883. this.$message.error("选项不能为空!");
  5884. return;
  5885. }
  5886. }
  5887. b++;
  5888. if (index < 2) {
  5889. this.$message.error("填写了的题目,选项至少要有两项!");
  5890. return;
  5891. }
  5892. }
  5893. }
  5894. }
  5895. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  5896. var elc = el.checkList.filter((element) => {
  5897. return element != "";
  5898. });
  5899. return el.askstitle != "" && elc.length != 0;
  5900. });
  5901. if (!this.dialogVisible4) {
  5902. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5903. this.taskCount
  5904. ].toolChoose[this.toolIndex] = this.askJson;
  5905. }
  5906. this.dialogVisible5 = false;
  5907. if (
  5908. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5909. .toolChoose[this.toolIndex].tool != 4
  5910. ) {
  5911. this.addTools(4, this.taskCount, this.toolIndex);
  5912. }
  5913. },
  5914. addTest() {
  5915. // if (this.testJson.testTitle === "") {
  5916. // this.$message.error("标题不能为空!");
  5917. // return;
  5918. // }
  5919. var aj = this.testJson.testJson;
  5920. var b = 1;
  5921. for (var i = 0; i < aj.length; i++) {
  5922. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  5923. var a = 1;
  5924. for (let index = 0; index < aj[i].testItem; index++) {
  5925. const element = aj[i].checkList[index]
  5926. ? aj[i].checkList[index]
  5927. : "";
  5928. if (element != "") {
  5929. b++;
  5930. this.$message.error("填写了选项,题目不能为空!");
  5931. return;
  5932. } else {
  5933. a++;
  5934. }
  5935. }
  5936. if (b == 1) {
  5937. this.$message.error("至少填写一个问题");
  5938. return;
  5939. }
  5940. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  5941. for (let index = 0; index < aj[i].testItem; index++) {
  5942. const element = aj[i].checkList[index]
  5943. ? aj[i].checkList[index]
  5944. : "";
  5945. var index = 0;
  5946. for (var z = 0; z < aj[i].checkList.length; z++) {
  5947. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5948. if (checkC != "") {
  5949. index++;
  5950. } else {
  5951. this.$message.error("选项不能为空!");
  5952. return;
  5953. }
  5954. }
  5955. b++;
  5956. if (index < 2) {
  5957. this.$message.error("填写了的题目,选项至少要有两项!");
  5958. return;
  5959. }
  5960. if (
  5961. (aj[i].type == "2" && !aj[i].answer.length) ||
  5962. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  5963. ) {
  5964. this.$message.error("有题目未选择答案请选择答案");
  5965. return;
  5966. }
  5967. }
  5968. }
  5969. }
  5970. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  5971. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  5972. var elc = el.checkList.filter((element) => {
  5973. return element != "";
  5974. });
  5975. return (
  5976. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  5977. );
  5978. });
  5979. isTestJson.testCount = isTestJson.testJson.length;
  5980. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5981. this.taskCount
  5982. ].toolChoose[this.toolIndex].testJson = isTestJson;
  5983. this.dialogVisibleChoice = false;
  5984. if (
  5985. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5986. .toolChoose[this.toolIndex].tool != 45
  5987. ) {
  5988. this.addTools(45, this.taskCount, this.toolIndex);
  5989. }
  5990. },
  5991. addVideoJson(videoJson) {
  5992. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5993. this.taskCount
  5994. ].toolChoose[this.toolIndex].videoJson = videoJson;
  5995. this.dialogVisibleVideo = false;
  5996. if (
  5997. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5998. .toolChoose[this.toolIndex].tool != 62
  5999. ) {
  6000. this.addTools(62, this.taskCount, this.toolIndex);
  6001. }
  6002. },
  6003. //自动获取剪贴板
  6004. pasteOption() {
  6005. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6006. if (!iframe) {
  6007. this.$message.error("请使用AI共创生成题目")
  6008. return;
  6009. }
  6010. let copyData = iframe.contentWindow.copyData
  6011. if (!copyData || !copyData.selectData.length) {
  6012. this.$message.error("请使用AI共创生成题目")
  6013. return;
  6014. }
  6015. let selectData = copyData.selectData;
  6016. for (var i = 0; i < selectData.length; i++) {
  6017. let answer = 0
  6018. switch (selectData[i].answer[0]) {
  6019. case 'A':
  6020. answer = 0
  6021. break;
  6022. case 'B':
  6023. answer = 1
  6024. break;
  6025. case 'C':
  6026. answer = 2
  6027. break;
  6028. case 'D':
  6029. answer = 3
  6030. break;
  6031. case 'E':
  6032. answer = 4
  6033. break;
  6034. default:
  6035. break;
  6036. }
  6037. this.testJson.testJson.push({
  6038. teststitle: selectData[i].subject,
  6039. testItem: selectData[i].options.length,
  6040. checkList: selectData[i].options,
  6041. timuList: [],
  6042. answer: answer,
  6043. type: "1",
  6044. });
  6045. this.testJson.testCount++;
  6046. }
  6047. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6048. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6049. var elc = el.checkList.filter((element) => {
  6050. return element != "";
  6051. });
  6052. return (
  6053. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6054. );
  6055. });
  6056. isTestJson.testCount = isTestJson.testJson.length;
  6057. this.testJson = isTestJson
  6058. this.$forceUpdate();
  6059. },
  6060. pasteTask() {
  6061. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6062. if (!iframe) {
  6063. this.$message.error("请使用AI共创生成")
  6064. return;
  6065. }
  6066. let copyData = iframe.contentWindow.copyData
  6067. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6068. this.$message.error("请使用AI共创生成")
  6069. return;
  6070. }
  6071. let stageTasksData = copyData.tasksData;
  6072. let taskA = []
  6073. let tasks = stageTasksData
  6074. for (var j = 0; j < tasks.length; j++) {
  6075. taskA.push({
  6076. task: tasks[j].taskName,
  6077. taskDetail: tasks[j].taskDecs,
  6078. chapterData: [],
  6079. toolText: "",
  6080. toolChoose: [
  6081. {
  6082. tool: [],
  6083. toolDetail: "",
  6084. toolType: 0,
  6085. askCount: 1,
  6086. askTitle: "",
  6087. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6088. },
  6089. ],
  6090. isShowTools: false,
  6091. askCount: 1,
  6092. isFold: 0,
  6093. askTitle: "",
  6094. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6095. checkJson: [{ checkCount: [], checkPerent: [] }],
  6096. homeworkList: [],
  6097. })
  6098. }
  6099. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA
  6100. this.$forceUpdate();
  6101. },
  6102. pasteStage() {
  6103. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6104. if (!iframe) {
  6105. this.$message.error("请使用AI共创生成")
  6106. return;
  6107. }
  6108. let copyData = iframe.contentWindow.copyData
  6109. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6110. this.$message.error("请使用AI共创生成")
  6111. return;
  6112. }
  6113. let stageData = copyData.stageData;
  6114. let stage = []
  6115. for (var i = 0; i < stageData.length; i++) {
  6116. stage.push({
  6117. dyName: stageData[i], //单元标题
  6118. chapterInfo: [
  6119. {
  6120. isread: false,
  6121. chapterid: this.guid(),
  6122. title: "",
  6123. courseName: "",
  6124. taskJson: [
  6125. {
  6126. task: "",
  6127. taskDetail: "",
  6128. chapterData: [],
  6129. toolText: "",
  6130. toolChoose: [
  6131. {
  6132. tool: [],
  6133. toolDetail: "",
  6134. toolType: 0,
  6135. askCount: 1,
  6136. askTitle: "",
  6137. askJson: [
  6138. { askstitle: "", askItem: 1, checkList: [] },
  6139. ],
  6140. },
  6141. ],
  6142. isShowTools: false,
  6143. askCount: 1,
  6144. isFold: 0,
  6145. askTitle: "",
  6146. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6147. checkJson: [{ checkCount: [], checkPerent: [] }],
  6148. homeworkList: [],
  6149. },
  6150. ],
  6151. itemCount: 1,
  6152. fileList1: [],
  6153. video: [],
  6154. testData: [],
  6155. pData: [],
  6156. templateArray: [],
  6157. },
  6158. ],
  6159. },)
  6160. }
  6161. let _this = this;
  6162. _this
  6163. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6164. confirmButtonText: "确定",
  6165. cancelButtonText: "取消",
  6166. type: "warning",
  6167. })
  6168. .then(() => {
  6169. _this.unitIndex = 0;
  6170. _this.unitJson = stage;
  6171. _this.steps++;
  6172. _this.updateWork();
  6173. })
  6174. .catch(() => {
  6175. return;
  6176. });
  6177. },
  6178. addAnswer() {
  6179. if (this.answerQ == "") {
  6180. this.$message.error("请输入您想要问的问题");
  6181. return;
  6182. }
  6183. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6184. this.taskCount
  6185. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6186. this.dialogVisible8 = false;
  6187. if (
  6188. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6189. .toolChoose[this.toolIndex].tool != 15
  6190. ) {
  6191. this.addTools(15, this.taskCount, this.toolIndex);
  6192. }
  6193. },
  6194. addMp3Answer() {
  6195. if (this.answerQ == "") {
  6196. this.$message.error("请输入您想要回答的问题");
  6197. return;
  6198. }
  6199. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6200. this.taskCount
  6201. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6202. this.dialogVisibleMp3 = false;
  6203. },
  6204. addRateAnswer() {
  6205. var a = 1;
  6206. for (var i = 0; i < this.rateJson.length; i++) {
  6207. if (this.rateJson[i].value == "") {
  6208. a = 2;
  6209. break;
  6210. }
  6211. }
  6212. if (a == 2) {
  6213. this.$message.error("请把评价信息填写完整");
  6214. return;
  6215. }
  6216. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6217. this.taskCount
  6218. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6219. this.dialogVisibleRate = false;
  6220. if (
  6221. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6222. .toolChoose[this.toolIndex].tool != 40
  6223. ) {
  6224. this.addTools(40, this.taskCount, this.toolIndex);
  6225. }
  6226. },
  6227. addSelectAnswer() {
  6228. if (this.selectJson.url == "") {
  6229. this.$message.error("请上传题目");
  6230. return;
  6231. }
  6232. if (!this.selectJson.select.length) {
  6233. this.$message.error("请添加选项");
  6234. return;
  6235. }
  6236. if (!this.selectJson.answer.length) {
  6237. this.$message.error("请设置答案");
  6238. return;
  6239. }
  6240. var a = 1;
  6241. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6242. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6243. a = 2;
  6244. }
  6245. }
  6246. if (a == 2) {
  6247. this.$message.error("请设置答案");
  6248. return;
  6249. }
  6250. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6251. this.taskCount
  6252. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6253. this.dialogVisibleSelect = false;
  6254. if (
  6255. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6256. .toolChoose[this.toolIndex].tool != 41
  6257. ) {
  6258. this.addTools(41, this.taskCount, this.toolIndex);
  6259. }
  6260. },
  6261. nextSelectSteps() {
  6262. if (this.selectJson.url == "") {
  6263. this.$message.error("请上传题目");
  6264. return;
  6265. }
  6266. if (!this.selectJson.select.length) {
  6267. this.$message.error("请添加选项");
  6268. return;
  6269. }
  6270. var a = 1;
  6271. for (var i = 0; i < this.selectJson.select.length; i++) {
  6272. if (!this.selectJson.select[i]) {
  6273. a = 2;
  6274. }
  6275. }
  6276. if (a == 2) {
  6277. this.$message.error("添加的选项不能为空");
  6278. return;
  6279. }
  6280. this.selectSteps++;
  6281. },
  6282. selectCourseDetail() {
  6283. if (this.cid == "" || this.cid == undefined) {
  6284. console.log("这是新增课程");
  6285. this.selectAllType();
  6286. } else {
  6287. this.cidType = 1;
  6288. let params = {
  6289. cid: this.cid,
  6290. };
  6291. this.ajax
  6292. .get(this.$store.state.api + "select_course_detail", params)
  6293. .then((res) => {
  6294. this.loading = true;
  6295. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6296. for (var j = 0; j < this.unitJson.length; j++) {
  6297. for (
  6298. var k = 0;
  6299. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6300. k++
  6301. ) {
  6302. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6303. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6304. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6305. : [];
  6306. let _chapterData = [];
  6307. for (
  6308. var c = 0;
  6309. c <
  6310. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6311. .length;
  6312. c++
  6313. ) {
  6314. if (
  6315. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6316. ) {
  6317. _chapterData.push(
  6318. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6319. );
  6320. }
  6321. }
  6322. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6323. _chapterData;
  6324. }
  6325. }
  6326. this.$forceUpdate();
  6327. this.courseName = res.data[0][0].title;
  6328. this.courseText = res.data[0][0].brief;
  6329. this.evalua = res.data[0][0].evaId;
  6330. this.cover = JSON.parse(res.data[0][0].cover);
  6331. this.noneBtnImg = this.cover.length >= 1;
  6332. // this.checkboxList =
  6333. // res.data[0][0].course_student.length > 0
  6334. // ? JSON.parse(res.data[0][0].course_student)
  6335. // : [];
  6336. this.checkboxList2 = res.data[0][0].juri
  6337. ? res.data[0][0].juri.split(",")
  6338. : [];
  6339. this.inviteCode = [];
  6340. for (var i = 0; i < res.data[2].length; i++) {
  6341. this.inviteCode.push({
  6342. cid: res.data[2][i].classid,
  6343. ic: res.data[2][i].code,
  6344. });
  6345. }
  6346. this.checkboxList3 = res.data[0][0].course_teacher
  6347. ? res.data[0][0].course_teacher.split(",")
  6348. : [];
  6349. // this.isTeacherSee =
  6350. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6351. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6352. this.myWord = res.data[0][0].template;
  6353. this.templateC.id = "123";
  6354. this.courseUserid = res.data[0][0].userid;
  6355. // if(this.courseUserid == this.userid){
  6356. // this.InviteChange(this.checkboxList2)
  6357. // }
  6358. this.nbOrder = res.data[0][0].ordernumber;
  6359. this.courseTypeId = [];
  6360. for (var i = 0; i < res.data[1].length; i++) {
  6361. this.courseTypeId.push(res.data[1][i].typeid);
  6362. }
  6363. console.log(this.courseTypeId);
  6364. // if (this.timer) clearInterval(this.timer);
  6365. if (this.timer) clearTimeout(this.timer);
  6366. this.timer = null;
  6367. // this.timer = setInterval(() => {
  6368. // this.seleteCourseUpdate();
  6369. this.setMan();
  6370. this.selectAllType();
  6371. // }, 5000);
  6372. this.$forceUpdate();
  6373. setTimeout(() => {
  6374. this.checkEva(this.evalua);
  6375. }, 0);
  6376. })
  6377. .catch((err) => {
  6378. console.error(err);
  6379. });
  6380. }
  6381. },
  6382. seleteCourseUpdate() {
  6383. let params = {
  6384. cid: this.cid,
  6385. };
  6386. this.ajax
  6387. .get(this.$store.state.api + "select_course_detail", params)
  6388. .then((res) => {
  6389. // console.log(this.unitJson);
  6390. let unitJson = JSON.parse(res.data[0][0].chapters);
  6391. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6392. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6393. let _unitJson = [];
  6394. let _chapAarry = [];
  6395. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6396. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6397. let index = 1;
  6398. let chapindex;
  6399. if (_unitJson2.length > unitJson.length) {
  6400. for (let c = 0; c < _unitJson2.length; c++) {
  6401. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6402. }
  6403. for (let j = 0; j < unitJson.length; j++) {
  6404. let count = 0;
  6405. for (let k = 0; k < _unitJson2.length; k++) {
  6406. if (
  6407. unitJson[j].chapterInfo[0].chapterid ==
  6408. _unitJson2[k].chapterInfo[0].chapterid
  6409. ) {
  6410. count++;
  6411. _chapAarry.splice(
  6412. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6413. 1
  6414. );
  6415. _unitJson.push(unitJson[j]);
  6416. break;
  6417. }
  6418. }
  6419. // if(count === 0){
  6420. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6421. // }
  6422. }
  6423. for (let k = 0; k < _unitJson2.length; k++) {
  6424. if (_unitJson2[k].isUpdate == 1) {
  6425. _chapAarry.splice(
  6426. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6427. 1
  6428. );
  6429. _unitJson.push(_unitJson2[k]);
  6430. }
  6431. }
  6432. console.log(_chapAarry);
  6433. for (let d = 0; d < _unitJson2.length; d++) {
  6434. if (
  6435. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6436. ) {
  6437. if (_unitIndex == d) {
  6438. index = 2;
  6439. }
  6440. chapindex = d;
  6441. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6442. }
  6443. }
  6444. } else {
  6445. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6446. }
  6447. for (let i = 0; i < unitJson.length; i++) {
  6448. if (
  6449. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6450. _unitJson[i].chapterInfo[0].chapterid !=
  6451. unitJson[i].chapterInfo[0].chapterid
  6452. ) {
  6453. if (i == _unitJson.length - 1) {
  6454. // this.unitIndex++
  6455. _unitIndex2++;
  6456. }
  6457. _unitJson.splice(i, 0, unitJson[i]);
  6458. } else if (i > _unitJson.length - 1) {
  6459. _unitJson.push(unitJson[i]);
  6460. } else if (
  6461. _unitJson[i].chapterInfo[0].chapterid ==
  6462. unitJson[i].chapterInfo[0].chapterid
  6463. ) {
  6464. _unitJson[i] = unitJson[i];
  6465. }
  6466. // if (i == _unitIndex) {
  6467. // continue;
  6468. // } else
  6469. }
  6470. if (_chapAarry.length && index != 2) {
  6471. if (chapindex < _unitIndex) {
  6472. this.isDelete = 2;
  6473. // this.unitIndex--;
  6474. _unitIndex2--;
  6475. } else if (
  6476. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6477. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6478. ) {
  6479. this.isDelete = 2;
  6480. for (let n = 0; n < _unitJson.length; n++) {
  6481. if (
  6482. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6483. _unitJson[n].chapterInfo[0].chapterid
  6484. ) {
  6485. // this.unitIndex = n;
  6486. _unitIndex2 = n;
  6487. _unitJson[n] = _unitJson2[_unitIndex];
  6488. break;
  6489. }
  6490. }
  6491. }
  6492. } else if (index != 2) {
  6493. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6494. _unitJson2[_unitIndex];
  6495. for (
  6496. var ci = 0;
  6497. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6498. ci++
  6499. ) {
  6500. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6501. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6502. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6503. .toolChoose
  6504. : [];
  6505. let _chapterData = [];
  6506. for (
  6507. var c = 0;
  6508. c <
  6509. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6510. .length;
  6511. c++
  6512. ) {
  6513. if (
  6514. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6515. .chapterData[c]
  6516. ) {
  6517. _chapterData.push(
  6518. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6519. .chapterData[c]
  6520. );
  6521. }
  6522. }
  6523. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6524. _chapterData;
  6525. }
  6526. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6527. }
  6528. if (index == 1) {
  6529. this.unitJson = _unitJson;
  6530. this.$forceUpdate();
  6531. setTimeout(() => {
  6532. if (this.unitIndex != _unitIndex2) {
  6533. this.isDelete = 2;
  6534. this.unitIndex = _unitIndex2;
  6535. }
  6536. }, 0);
  6537. this.timer = setTimeout(() => {
  6538. this.seleteCourseUpdate();
  6539. }, 1000);
  6540. } else if (index == 2) {
  6541. let _this = this;
  6542. _this
  6543. .$confirm(
  6544. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6545. "提示",
  6546. {
  6547. confirmButtonText: "需要",
  6548. cancelButtonText: "取消",
  6549. type: "warning",
  6550. }
  6551. )
  6552. .then(() => {
  6553. if (_this.time()) {
  6554. _this.restoreWork(
  6555. _chapAarry[0],
  6556. _unitJson,
  6557. chapindex,
  6558. _unitJson2,
  6559. _unitIndex2
  6560. );
  6561. }
  6562. })
  6563. .catch(() => {
  6564. _this.unitJson = _unitJson;
  6565. _this.$forceUpdate();
  6566. setTimeout(() => {
  6567. if (this.unitIndex != _unitIndex2) {
  6568. this.isDelete = 2;
  6569. this.unitIndex = _unitIndex2;
  6570. }
  6571. }, 0);
  6572. _this.timer = setTimeout(() => {
  6573. _this.seleteCourseUpdate();
  6574. }, 1000);
  6575. });
  6576. }
  6577. })
  6578. .catch((err) => {
  6579. console.error(err);
  6580. });
  6581. },
  6582. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  6583. let params = [
  6584. {
  6585. cid: this.cid,
  6586. chapters: JSON.stringify(this.unitJson),
  6587. uid: this.userid,
  6588. chapid: chapid,
  6589. },
  6590. ];
  6591. this.ajax
  6592. .post(this.$store.state.api + "restoreWork", params)
  6593. .then((res) => {
  6594. this.$message({
  6595. message: "恢复成功",
  6596. type: "success",
  6597. });
  6598. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  6599. this.unitJson = unitJson;
  6600. this.$forceUpdate();
  6601. setTimeout(() => {
  6602. if (this.unitIndex != unitIndex2) {
  6603. this.isDelete = 2;
  6604. this.unitIndex = unitIndex2;
  6605. }
  6606. }, 0);
  6607. this.timer = setTimeout(() => {
  6608. this.seleteCourseUpdate();
  6609. }, 1000);
  6610. })
  6611. .catch((err) => {
  6612. this.$message.error("网络不佳");
  6613. console.error(err);
  6614. });
  6615. },
  6616. getTypeName() {
  6617. console.log(this.courseTypeId);
  6618. this.$forceUpdate();
  6619. },
  6620. selectAllType() {
  6621. let params = {
  6622. org: this.org && this.org != "" ? this.org : "",
  6623. oid: this.oid && this.oid != "" ? this.oid : "",
  6624. };
  6625. this.ajax
  6626. .get(this.$store.state.api + "selectAllType", params)
  6627. .then((res) => {
  6628. this.CourseType = res.data;
  6629. this.CourseType2 = [
  6630. { name: "智见课程", id: [] },
  6631. { name: "智行课程", id: [] },
  6632. { name: "智创课程", id: [] },
  6633. ];
  6634. for (var cti = 0; cti < res.data[0].length; cti++) {
  6635. if (
  6636. res.data[0][cti].name == "年级" ||
  6637. res.data[0][cti].name == "学科"
  6638. ) {
  6639. this.CourseType2[1].id.push(res.data[0][cti].id);
  6640. this.CourseType2[0].id.push(res.data[0][cti].id);
  6641. } else if (res.data[0][cti].name == "主题") {
  6642. this.CourseType2[2].id.push(res.data[0][cti].id);
  6643. }
  6644. }
  6645. let _courseTypeId = [];
  6646. for (var i = 0; i < res.data[0].length; i++) {
  6647. if (!this.cid) {
  6648. this.courseTypeId[res.data[0][i].id] = [];
  6649. }
  6650. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  6651. // }
  6652. this.CourseTypeJson[res.data[0][i].id] = [];
  6653. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6654. if (res.data[0][i].name == "栏目") {
  6655. this.CourseType[0][i].name = "主题";
  6656. }
  6657. }
  6658. if (res.data[2].length == 0 && res.data[3].length == 0) {
  6659. for (var j = 0; j < res.data[1].length; j++) {
  6660. if (
  6661. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  6662. _courseTypeId.indexOf(res.data[1][j].id) == -1
  6663. ) {
  6664. _courseTypeId.push(res.data[1][j].id);
  6665. }
  6666. if (res.data[0][i].id == res.data[1][j].pid) {
  6667. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6668. }
  6669. }
  6670. } else {
  6671. if (res.data[2].length > 0) {
  6672. for (var j = 0; j < res.data[2].length; j++) {
  6673. if (
  6674. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  6675. _courseTypeId.indexOf(res.data[2][j].id) == -1
  6676. ) {
  6677. _courseTypeId.push(res.data[2][j].id);
  6678. }
  6679. if (res.data[0][i].id == res.data[2][j].pid) {
  6680. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  6681. }
  6682. }
  6683. }
  6684. if (res.data[3].length > 0) {
  6685. for (var j = 0; j < res.data[3].length; j++) {
  6686. if (
  6687. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  6688. _courseTypeId.indexOf(res.data[3][j].id) == -1
  6689. ) {
  6690. _courseTypeId.push(res.data[3][j].id);
  6691. }
  6692. if (res.data[0][i].id == res.data[3][j].pid) {
  6693. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  6694. }
  6695. }
  6696. }
  6697. }
  6698. }
  6699. this.courseTypeId = _courseTypeId;
  6700. })
  6701. .catch((err) => {
  6702. console.error(err);
  6703. });
  6704. },
  6705. selectType() {
  6706. this.ajax
  6707. .get(this.$store.state.api + "selectType")
  6708. .then((res) => {
  6709. this.CourseType = res.data;
  6710. for (var i = 0; i < res.data[0].length; i++) {
  6711. if (!this.cid) {
  6712. this.courseTypeId[res.data[0][i].id] = "";
  6713. }
  6714. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6715. if (res.data[0][i].name == "栏目") {
  6716. this.CourseType[0][i].name = "主题";
  6717. }
  6718. }
  6719. for (var j = 0; j < res.data[1].length; j++) {
  6720. if (res.data[0][i].id == res.data[1][j].pid) {
  6721. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6722. this.CourseTypeJson[res.data[0][i].id] = [];
  6723. }
  6724. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6725. }
  6726. }
  6727. }
  6728. this.selectTypeByOid();
  6729. this.selectTypeByOrg();
  6730. })
  6731. .catch((err) => {
  6732. console.error(err);
  6733. });
  6734. },
  6735. selectTypeByOid() {
  6736. let params = {
  6737. oid: this.oid,
  6738. };
  6739. this.ajax
  6740. .get(this.$store.state.api + "selectTypeByOid", params)
  6741. .then((res) => {
  6742. for (var i = 0; i < res.data[0].length; i++) {
  6743. for (var j = 0; j < res.data[1].length; j++) {
  6744. if (res.data[0][i].id == res.data[1][j].pid) {
  6745. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6746. this.CourseTypeJson[res.data[0][i].id] = [];
  6747. }
  6748. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6749. }
  6750. }
  6751. }
  6752. })
  6753. .catch((err) => {
  6754. console.error(err);
  6755. });
  6756. },
  6757. selectTypeByOrg() {
  6758. let params = {
  6759. oid: this.org,
  6760. };
  6761. this.ajax
  6762. .get(this.$store.state.api + "selectTypeByOrg", params)
  6763. .then((res) => {
  6764. for (var i = 0; i < res.data[0].length; i++) {
  6765. for (var j = 0; j < res.data[1].length; j++) {
  6766. if (res.data[0][i].id == res.data[1][j].pid) {
  6767. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6768. this.CourseTypeJson[res.data[0][i].id] = [];
  6769. }
  6770. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6771. }
  6772. }
  6773. }
  6774. this.$forceUpdate();
  6775. })
  6776. .catch((err) => {
  6777. console.error(err);
  6778. });
  6779. },
  6780. OtherMb(type) {
  6781. this.typeMode = type;
  6782. setTimeout(() => {
  6783. this.checkEva(this.checkId);
  6784. }, 0);
  6785. },
  6786. openMember() {
  6787. this.searchTN = "";
  6788. this.getTeacher();
  6789. this.dialogVisibleMember = true;
  6790. },
  6791. checkEva(id, type) {
  6792. this.dialogVisiblemb = false;
  6793. this.selectEva();
  6794. if (this.evalua != id && type == 2) {
  6795. this.$message.success("导入成功");
  6796. }
  6797. this.evalua = id;
  6798. this.checkId = id;
  6799. if (this.evalua != "") {
  6800. for (var i = 0; i < this.evaJuri.length; i++) {
  6801. if (this.evalua == this.evaJuri[i].id) {
  6802. this.eTitle = this.evaJuri[i].title;
  6803. this.eJson = JSON.parse(this.evaJuri[i].content);
  6804. }
  6805. }
  6806. this.data.data = [];
  6807. this.$forceUpdate();
  6808. setTimeout(() => {
  6809. this.setMindData();
  6810. }, 500);
  6811. }
  6812. },
  6813. deleteEva() {
  6814. let _this = this;
  6815. if (_this.evalua == "") {
  6816. this.$message.warning("内容已经清空了,请勿重复清空");
  6817. return;
  6818. }
  6819. _this
  6820. .$confirm("确定删除此目标吗?", "提示", {
  6821. confirmButtonText: "确定",
  6822. cancelButtonText: "取消",
  6823. type: "warning",
  6824. })
  6825. .then(() => {
  6826. _this.evalua = "";
  6827. _this.checkId = "";
  6828. _this.eTitle = "";
  6829. let _unitJson = _this.unitJson;
  6830. for (var i = 0; i < _unitJson.length; i++) {
  6831. let _task = _unitJson[i].chapterInfo[0].taskJson;
  6832. for (var j = 0; j < _task.length; j++) {
  6833. let _eList = _task[j].eList;
  6834. for (var k = 0; k < _eList.length; k++) {
  6835. delete _eList[k].target;
  6836. }
  6837. }
  6838. }
  6839. _this.$forceUpdate();
  6840. if (_this.cid) {
  6841. _this.updateWork();
  6842. }
  6843. })
  6844. .catch(() => {
  6845. return;
  6846. });
  6847. },
  6848. selectEva() {
  6849. let params = {
  6850. oid: this.oid,
  6851. };
  6852. this.ajax
  6853. .get(this.$store.state.api + "selectAllEvaluation", params)
  6854. .then((res) => {
  6855. this.evaJuri = res.data[0];
  6856. })
  6857. .catch((err) => {
  6858. console.error(err);
  6859. });
  6860. },
  6861. setMindData() {
  6862. let targetArray = [];
  6863. this.data.data = [];
  6864. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  6865. let _eJson = Object.keys(this.eJson);
  6866. let _e = this.eJson;
  6867. for (let i = 0; i < _eJson.length; i++) {
  6868. let element = _e[_eJson[i]];
  6869. this.data.data.push({
  6870. id: element.id,
  6871. parentid: "root",
  6872. topic: element.name,
  6873. });
  6874. // targetArray.push({
  6875. // id: element.id,
  6876. // parentid: "root",
  6877. // name: element.name,
  6878. // });
  6879. targetArray.push({
  6880. value: element.name,
  6881. label: element.name,
  6882. children: [],
  6883. });
  6884. let _eJsonc = Object.keys(element.child);
  6885. let _e2 = element.child;
  6886. for (let j = 0; j < _eJsonc.length; j++) {
  6887. let _ec = _e2[_eJsonc[j]];
  6888. this.data.data.push({
  6889. id: _ec.id,
  6890. parentid: element.id,
  6891. topic: _ec.name,
  6892. });
  6893. // targetArray.push({
  6894. // id: _ec.id,
  6895. // parentid: element.id,
  6896. // name: _ec.name,
  6897. // });
  6898. targetArray[i].children.push({
  6899. value: _ec.name,
  6900. label: _ec.name,
  6901. children: [],
  6902. });
  6903. let _eJsonz = Object.keys(_ec.child);
  6904. let _e3 = _ec.child;
  6905. for (let z = 0; z < _eJsonz.length; z++) {
  6906. let _ez = _e3[_eJsonz[z]];
  6907. this.data.data.push({
  6908. id: _ez.id,
  6909. parentid: _ec.id,
  6910. topic: _ez.name,
  6911. });
  6912. // targetArray.push({
  6913. // id: _ez.id,
  6914. // parentid: _ec.id,
  6915. // name: _ez.name,
  6916. // });
  6917. targetArray[i].children[j].children.push({
  6918. value: _ez.name,
  6919. label: _ez.name,
  6920. });
  6921. }
  6922. }
  6923. }
  6924. this.targetArray = targetArray;
  6925. this.$forceUpdate();
  6926. },
  6927. /*添加评价 */
  6928. addEList(index, tIndex) {
  6929. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  6930. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  6931. value: "",
  6932. detail: "",
  6933. score: 5,
  6934. })
  6935. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  6936. { value: "", detail: "", score: 5 },
  6937. ]);
  6938. this.$forceUpdate();
  6939. },
  6940. forceUpdate() {
  6941. this.$forceUpdate();
  6942. },
  6943. deletEList(index, tIndex, eIndex) {
  6944. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  6945. eIndex,
  6946. 1
  6947. );
  6948. this.$forceUpdate();
  6949. },
  6950. getChoosePic(t) {
  6951. this.chooseType = t;
  6952. this.getAllBanner();
  6953. },
  6954. getAllBanner() {
  6955. this.sysPicVisible = true;
  6956. let params = {
  6957. t: this.chooseType,
  6958. };
  6959. this.ajax
  6960. .get(this.$store.state.api + "selectAllBanner", params)
  6961. .then((res) => {
  6962. this.sysPic = res.data[0];
  6963. })
  6964. .catch((err) => {
  6965. console.error(err);
  6966. });
  6967. },
  6968. // getClass() {
  6969. // let params = {
  6970. // oid: this.oid,
  6971. // };
  6972. // this.ajax
  6973. // .get(this.$store.state.api + "selectClassBySchool", params)
  6974. // .then((res) => {
  6975. // this.classJuri = res.data[0];
  6976. // })
  6977. // .catch((err) => {
  6978. // console.error(err);
  6979. // });
  6980. // },
  6981. deleteSysPic() {
  6982. this.cover = [];
  6983. this.isSysPic = false;
  6984. },
  6985. deleteSelectPic() {
  6986. this.selectJson.url = "";
  6987. },
  6988. setEListStar() {
  6989. this.$forceUpdate();
  6990. },
  6991. deletRateList(i) {
  6992. this.rateJson.splice(i, 1);
  6993. },
  6994. addRateList() {
  6995. this.rateJson.push({ detail: "", score: 5, value: "" });
  6996. },
  6997. addSt() {
  6998. this.sentenceList.push({
  6999. sentenceTitle: "",
  7000. addSentence: [],
  7001. rightAnswer: [],
  7002. });
  7003. },
  7004. addSen(i) {
  7005. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7006. // this.isPushTitleList.push(this.sentenceTitle);
  7007. this.sentenceList[i].sentenceTitle = "";
  7008. },
  7009. setRightAnswer(s, i, j) {
  7010. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7011. this.sentenceList[i].rightAnswer.push(s);
  7012. }
  7013. },
  7014. returnCard(r, i, j) {
  7015. this.sentenceList[i].rightAnswer.splice(j, 1);
  7016. },
  7017. addSentenceTool() {
  7018. for (var i = 0; i < this.sentenceList.length; i++) {
  7019. if (this.sentenceList[i].rightAnswer.length == 0) {
  7020. this.$message.error("请将信息填写完整!");
  7021. return;
  7022. }
  7023. if (
  7024. this.sentenceList[i].addSentence.length !=
  7025. this.sentenceList[i].rightAnswer.length
  7026. ) {
  7027. this.$message.error("请将信息填写完整!");
  7028. return;
  7029. }
  7030. }
  7031. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7032. this.taskCount
  7033. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7034. this.sentenceList = [
  7035. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7036. ];
  7037. this.dialogVisibleSentence = false;
  7038. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7039. // itemTaskIndex
  7040. // ].toolChoose[toolIndex].tool = [];
  7041. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7042. // itemTaskIndex
  7043. // ].toolChoose[toolIndex].tool.push(i);
  7044. if (
  7045. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7046. .toolChoose[this.toolIndex].tool != 47
  7047. ) {
  7048. this.addTools(47, this.taskCount, this.toolIndex);
  7049. }
  7050. },
  7051. addTableJson() {
  7052. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7053. // this.$message.error("请将信息填写完整!");
  7054. // return;
  7055. // }
  7056. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7057. this.taskCount
  7058. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7059. // this.tableJson = [{ text: "" }];
  7060. // this.dialogVisibleTable = false;
  7061. this.$message.success("上传成功");
  7062. if (
  7063. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7064. .toolChoose[this.toolIndex].tool != 48
  7065. ) {
  7066. this.addTools(48, this.taskCount, this.toolIndex);
  7067. }
  7068. },
  7069. addWordJson() {
  7070. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7071. this.taskCount
  7072. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7073. // this.wordJson = [{ text: "" }];
  7074. // this.dialogVisibleWord = false;
  7075. this.$message.success("上传成功");
  7076. if (
  7077. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7078. .toolChoose[this.toolIndex].tool != 52
  7079. ) {
  7080. this.addTools(52, this.taskCount, this.toolIndex);
  7081. }
  7082. },
  7083. addMoreUpload() {
  7084. if (this.uploadJson.length == 0) {
  7085. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7086. this.taskCount
  7087. ].toolChoose[this.toolIndex].uploadJson = [];
  7088. } else {
  7089. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7090. this.taskCount
  7091. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7092. }
  7093. this.uploadJson = [];
  7094. this.dialogVisibleMoreUpload = false;
  7095. if (
  7096. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7097. .toolChoose[this.toolIndex].tool != 50
  7098. ) {
  7099. this.addTools(50, this.taskCount, this.toolIndex);
  7100. }
  7101. },
  7102. addPreTime() {
  7103. if (this.preTime == 0) {
  7104. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7105. this.taskCount
  7106. ].toolChoose[this.toolIndex].preTime = 0;
  7107. } else {
  7108. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7109. this.taskCount
  7110. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7111. }
  7112. this.preTime = 0;
  7113. this.dialogVisiblePreTime = false;
  7114. if (
  7115. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7116. .toolChoose[this.toolIndex].tool != 10
  7117. ) {
  7118. this.addTools(10, this.taskCount, this.toolIndex);
  7119. }
  7120. },
  7121. goToTask(i) {
  7122. $(".rightBox")[0].scrollTop = $(".taskBorder")[i].offsetTop + $(".taskBorder")[i].parentElement.parentElement.offsetTop;
  7123. this.isClickColor = i + 1;
  7124. },
  7125. taskMove(type, index) {
  7126. // this
  7127. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  7128. // confirmButtonText: "确定",
  7129. // cancelButtonText: "取消",
  7130. // type: "warning",
  7131. // })
  7132. // .then(() => {
  7133. if (type == 1) {
  7134. if (index > 0) {
  7135. let a = JSON.parse(
  7136. JSON.stringify(
  7137. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  7138. )
  7139. );
  7140. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7141. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7142. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7143. }
  7144. } else {
  7145. if (
  7146. index <
  7147. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7148. ) {
  7149. let a = JSON.parse(
  7150. JSON.stringify(
  7151. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  7152. )
  7153. );
  7154. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7155. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7156. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7157. }
  7158. }
  7159. this.$forceUpdate();
  7160. // })
  7161. // .catch(() => {
  7162. // return;
  7163. // })
  7164. },
  7165. addGroup(i) {
  7166. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7167. this.groupJson.group.push({
  7168. name: "第" + (this.groupJson.group.length + 1) + "组",
  7169. });
  7170. },
  7171. deleteGroup(i) {
  7172. this.groupJson.group.splice(i, 1);
  7173. },
  7174. addGroupJson() {
  7175. for (var i = 0; i < this.groupJson.group.length; i++) {
  7176. if (!this.groupJson.group[i].name) {
  7177. this.$message.error("请将信息填写完整!");
  7178. return;
  7179. }
  7180. }
  7181. if (!this.groupJson.number) {
  7182. this.$message.error("请将信息填写完整!");
  7183. return;
  7184. }
  7185. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7186. this.taskCount
  7187. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7188. JSON.stringify(this.groupJson)
  7189. );
  7190. this.dialogVisibleGroup = false;
  7191. this.groupJson = {};
  7192. if (
  7193. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7194. .toolChoose[this.toolIndex].tool != 49
  7195. ) {
  7196. this.addTools(49, this.taskCount, this.toolIndex);
  7197. }
  7198. },
  7199. updateTime(preTime) {
  7200. this.preTime = preTime;
  7201. },
  7202. InviteChange(val) {
  7203. console.log(val);
  7204. return;
  7205. let array = JSON.parse(JSON.stringify(val));
  7206. this.inviteCode = this.inviteCode.filter((el) => {
  7207. if (val.indexOf(el.cid) != -1) {
  7208. array.splice(array.indexOf(el.cid), 1);
  7209. return el;
  7210. }
  7211. });
  7212. for (var i = 0; i < array.length; i++) {
  7213. this.getInviteCode(array[i]);
  7214. }
  7215. },
  7216. async getInviteCode(cid) {
  7217. let code = this.randomNumber();
  7218. let params = {
  7219. code: code,
  7220. oid: this.oid,
  7221. };
  7222. let type = 1;
  7223. for (var i = 0; i < this.inviteCode.length; i++) {
  7224. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7225. type = 2;
  7226. }
  7227. }
  7228. if (type == 2) {
  7229. this.getInviteCode(cid);
  7230. return;
  7231. }
  7232. const res = await this.ajax.get(
  7233. this.$store.state.api + "selectInviteCode2",
  7234. params
  7235. );
  7236. if (
  7237. res.data.length &&
  7238. res.data[0].length &&
  7239. res.data[0][0].courseId != this.cid
  7240. ) {
  7241. this.getInviteCode(cid);
  7242. return;
  7243. }
  7244. let array = [];
  7245. for (var i = 0; i < this.inviteCode.length; i++) {
  7246. array.push(this.inviteCode[i].cid);
  7247. }
  7248. if (array.indexOf(cid) != -1) {
  7249. this.inviteCode[array.indexOf(cid)].ic = code;
  7250. } else {
  7251. this.inviteCode.push({ cid: cid, ic: code });
  7252. }
  7253. },
  7254. OpenInviteD(cid) {
  7255. let array = [];
  7256. this.icode = "";
  7257. for (var i = 0; i < this.inviteCode.length; i++) {
  7258. array.push(this.inviteCode[i].cid);
  7259. }
  7260. if (array.indexOf(cid) != -1) {
  7261. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7262. }
  7263. this.inviteId = cid;
  7264. this.dialogVisibleInvite = true;
  7265. },
  7266. addInvite() {
  7267. let reg = /^[A-Za-z0-9]{4,}$/;
  7268. if (!reg.test(this.icode)) {
  7269. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7270. return;
  7271. }
  7272. let type = 1;
  7273. for (var i = 0; i < this.inviteCode.length; i++) {
  7274. if (
  7275. this.inviteCode[i].cid != this.inviteId &&
  7276. this.icode == this.inviteCode[i].ic
  7277. ) {
  7278. type = 2;
  7279. }
  7280. }
  7281. if (type == 2) {
  7282. this.$message.error("已有此随机码,不能重复");
  7283. return;
  7284. }
  7285. let params = {
  7286. code: this.icode,
  7287. oid: this.oid,
  7288. };
  7289. this.ajax
  7290. .get(this.$store.state.api + "selectInviteCode", params)
  7291. .then((res) => {
  7292. if (
  7293. res.data.length &&
  7294. res.data[0].length &&
  7295. res.data[0][0].courseId != this.cid
  7296. ) {
  7297. this.$message.error("已有此随机码,不能重复");
  7298. return;
  7299. }
  7300. let array = [];
  7301. for (var i = 0; i < this.inviteCode.length; i++) {
  7302. array.push(this.inviteCode[i].cid);
  7303. }
  7304. if (array.indexOf(this.inviteId) != -1) {
  7305. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7306. } else {
  7307. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7308. }
  7309. this.icode = "";
  7310. this.dialogVisibleInvite = false;
  7311. })
  7312. .catch((err) => {
  7313. console.error(err);
  7314. });
  7315. },
  7316. randomNumber() {
  7317. // 随机生成两位数
  7318. // let num = Math.floor(Math.random() * 900) + 100;
  7319. // 生成 0 到 99 之间的随机整数
  7320. const randomNumber = Math.floor(Math.random() * 100);
  7321. // 如果随机数小于 10,补上前导零
  7322. const num =
  7323. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7324. // 随机生成两个大写字母
  7325. let letters = "";
  7326. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7327. for (let i = 0; i < 3; i++) {
  7328. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7329. }
  7330. // 随机生成两位数字和字母的组合
  7331. let mix = "";
  7332. let chars =
  7333. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7334. for (let i = 0; i < 3; i++) {
  7335. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7336. mix += char;
  7337. }
  7338. // 随机选择一种类型
  7339. let type = Math.floor(Math.random() * 3);
  7340. return num;
  7341. // 根据类型输出结果
  7342. switch (type) {
  7343. case 0:
  7344. console.log(num); // 输出两位数
  7345. return num;
  7346. case 1:
  7347. console.log(letters); // 输出两个大写字母
  7348. return letters;
  7349. case 2:
  7350. console.log(mix); // 输出两位数字和字母的组合
  7351. return mix;
  7352. }
  7353. },
  7354. },
  7355. beforeDestroy() {
  7356. clearTimeout(this.timer);
  7357. this.timer = null;
  7358. clearInterval(this.timer2);
  7359. this.timer2 = null;
  7360. },
  7361. beforeRouteLeave(to, from, next) {
  7362. clearTimeout(this.timer);
  7363. this.timer = null;
  7364. clearInterval(this.timer2);
  7365. this.timer2 = null;
  7366. next();
  7367. },
  7368. created() {
  7369. this.getStudent();
  7370. this.getTeacher();
  7371. this.getClass();
  7372. this.getTemplate();
  7373. // this.selectType();
  7374. this.selectEva();
  7375. this.loading = false;
  7376. this.timer2 = setInterval(() => {
  7377. this.selectEva();
  7378. }, 5000);
  7379. setTimeout(() => {
  7380. this.selectCourseDetail();
  7381. }, 500);
  7382. },
  7383. mounted() {
  7384. this.$nextTick(() => {
  7385. //监听这个dom的scroll事件
  7386. $('.rightBox')[0].addEventListener("scroll", this.scrollChange);
  7387. });;
  7388. },
  7389. };
  7390. </script>
  7391. <style scoped>
  7392. @media screen and (max-width: 1280px) {
  7393. .mbCss {
  7394. flex-direction: column !important;
  7395. }
  7396. .pjCss {
  7397. width: 100% !important;
  7398. }
  7399. .evaCss {
  7400. width: 100% !important;
  7401. }
  7402. }
  7403. .dialog_diy>>>.el-dialog__header {
  7404. background: #3c3c3c !important;
  7405. padding: 15px 20px;
  7406. }
  7407. .dialog_diy>>>.el-dialog__title {
  7408. color: #fff;
  7409. }
  7410. .dialog_diy>>>.el-dialog__headerbtn {
  7411. top: 19px;
  7412. }
  7413. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  7414. color: #fff;
  7415. }
  7416. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  7417. color: #fff;
  7418. }
  7419. .dialog_diy>>>.el-dialog__body,
  7420. .dialog_diy>>>.el-dialog__footer {
  7421. background: #fafafa;
  7422. }
  7423. .dialog_diy3>>>.el-dialog__body,
  7424. .dialog_diy3>>>.el-dialog__footer {
  7425. background: #eee !important;
  7426. }
  7427. .dialog_diy3>>>.el-dialog__body {
  7428. padding: 20px 20px;
  7429. }
  7430. .source_diy>>>.el-dialog {
  7431. height: 100% !important;
  7432. margin: 0 auto !important;
  7433. }
  7434. .source_diy>>>.el-dialog__body {
  7435. height: calc(100% - 185px);
  7436. overflow: auto;
  7437. background: #e6eaf0;
  7438. }
  7439. .source_diy>>>.el-dialog__footer {
  7440. background: #e6eaf0 !important;
  7441. }
  7442. .left {
  7443. border-right: 1px solid rgb(60, 94, 143);
  7444. display: flex;
  7445. flex-direction: column;
  7446. align-items: center;
  7447. min-height: 600px;
  7448. width: 385px;
  7449. height: 80%;
  7450. }
  7451. .tips {
  7452. color: rgb(128, 128, 128);
  7453. font-size: 12px;
  7454. width: 270px;
  7455. margin: 40px;
  7456. }
  7457. .pb_content {
  7458. height: 100% !important;
  7459. /* margin: 0 20px 0 20px; */
  7460. }
  7461. .pb_content_body {
  7462. width: 100% !important;
  7463. height: 100%;
  7464. }
  7465. .info_solid {
  7466. width: 270px;
  7467. height: 30px;
  7468. border-left: 1px solid #bdbdbd;
  7469. margin: 10px 0px 10px 30px;
  7470. }
  7471. .info_steps {
  7472. width: 270px;
  7473. font-size: 0.875rem;
  7474. display: flex;
  7475. align-items: center;
  7476. }
  7477. .info_steps span:nth-child(1) {
  7478. width: 30px;
  7479. height: 30px;
  7480. background: rgba(0, 0, 0, 0.38);
  7481. display: block;
  7482. color: #fff;
  7483. border-radius: 40px;
  7484. text-align: center;
  7485. line-height: 30px;
  7486. }
  7487. .steps_active {
  7488. background: #3d67bc !important;
  7489. }
  7490. .info_steps span:nth-child(2) {
  7491. margin-left: 5px;
  7492. }
  7493. .right {
  7494. height: 100%;
  7495. width: 100%;
  7496. display: flex;
  7497. overflow: hidden;
  7498. }
  7499. .basic_box {
  7500. margin: 0 auto;
  7501. position: relative;
  7502. padding: 0 20px 0 20px;
  7503. }
  7504. .basic_box2 {
  7505. position: relative;
  7506. width: calc(100% - 300px);
  7507. }
  7508. .basic_box_success {
  7509. width: 100%;
  7510. height: 100%;
  7511. padding: 50px 0;
  7512. position: relative;
  7513. text-align: center;
  7514. /* border-bottom: 1px solid #bfbfbf; */
  7515. box-sizing: border-box;
  7516. display: flex;
  7517. align-items: center;
  7518. flex-direction: column;
  7519. justify-content: center;
  7520. }
  7521. .info_title {
  7522. font-size: 1.5em;
  7523. margin-right: 25px;
  7524. /* margin: 20px 30px 20px 30px; */
  7525. }
  7526. .bInfo_title {
  7527. text-align: left;
  7528. margin: 10px 0;
  7529. }
  7530. .small_title {
  7531. font-size: 14px;
  7532. line-height: 40px;
  7533. }
  7534. .chapter_beizhu {
  7535. font-size: 12px;
  7536. font-weight: bold;
  7537. float: right;
  7538. color: rgb(128, 128, 128);
  7539. margin-top: 5px;
  7540. }
  7541. .chapter_uploadBox1 {
  7542. text-align: left;
  7543. background-color: rgb(242, 242, 242);
  7544. width: 100%;
  7545. height: 67px;
  7546. padding: 0px 15px;
  7547. border-radius: 8px;
  7548. overflow: hidden;
  7549. font-size: 16px;
  7550. box-sizing: border-box;
  7551. position: relative;
  7552. }
  7553. .chapter_add {
  7554. width: 100%;
  7555. height: 32px;
  7556. margin-top: 15px;
  7557. cursor: pointer;
  7558. }
  7559. .chapter_add_l {
  7560. margin-left: 5px;
  7561. width: 30px;
  7562. height: 30px;
  7563. float: left;
  7564. border: 1px solid #aaa;
  7565. color: #aaa;
  7566. border-radius: 50%;
  7567. font-size: 25px;
  7568. text-align: center;
  7569. }
  7570. .chapter_add_r {
  7571. font-size: 18px;
  7572. height: 40px;
  7573. line-height: 30px;
  7574. text-indent: 10px;
  7575. color: #aaa;
  7576. }
  7577. .chapter_add_r span {
  7578. font-size: 12px;
  7579. color: rgb(204, 204, 204);
  7580. }
  7581. .chapter_add_input {
  7582. display: none;
  7583. }
  7584. .line {
  7585. width: 85%;
  7586. margin: 0 auto;
  7587. border-top: 1px solid #e5e5e5;
  7588. margin-top: 20px;
  7589. }
  7590. .info_btnBox {
  7591. width: 100%;
  7592. display: flex;
  7593. justify-content: space-evenly;
  7594. margin: 10px 0 10px 0;
  7595. }
  7596. .info_btn,
  7597. .teacherWord {
  7598. color: #fff;
  7599. background-color: #0f7eff;
  7600. padding: 8px 24px;
  7601. font-size: 0.9375rem;
  7602. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  7603. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  7604. min-width: 64px;
  7605. font-weight: 500;
  7606. border-radius: 4px;
  7607. box-sizing: border-box;
  7608. border: none;
  7609. cursor: pointer;
  7610. }
  7611. .teacherWord {
  7612. width: 105px !important;
  7613. text-align: center !important;
  7614. line-height: 36px !important;
  7615. padding: 0 !important;
  7616. font-size: 14px !important;
  7617. margin: 10px 0 !important;
  7618. }
  7619. .wordTeacher {
  7620. display: flex;
  7621. flex-direction: column;
  7622. width: 20%;
  7623. text-align: center;
  7624. font-size: 14px;
  7625. margin: 30px 30px 0 10px;
  7626. background: #fff;
  7627. position: relative;
  7628. border-radius: 5px;
  7629. padding: 25px 0px;
  7630. }
  7631. .wordPic {
  7632. margin: 0 auto;
  7633. width: 60px;
  7634. height: 60px;
  7635. cursor: pointer;
  7636. }
  7637. .deleteWord {
  7638. width: 22px;
  7639. height: 22px;
  7640. position: absolute;
  7641. right: 5px;
  7642. top: -15px;
  7643. cursor: pointer;
  7644. display: none;
  7645. z-index: 999;
  7646. }
  7647. .wordPic>img,
  7648. .deleteWord>img,
  7649. .addToolImg>img {
  7650. width: 100%;
  7651. height: 100%;
  7652. }
  7653. .info_btn:hover {
  7654. background-color: #4f7cd5 !important;
  7655. }
  7656. .cru_selectBox {
  7657. display: flex;
  7658. margin: 24px 0 10px;
  7659. flex-wrap: nowrap;
  7660. white-space: nowrap;
  7661. overflow: auto;
  7662. position: relative;
  7663. height: 47px;
  7664. }
  7665. .cru_selectBox::-webkit-scrollbar {
  7666. /*滚动条整体样式*/
  7667. width: 6px;
  7668. /*高宽分别对应横竖滚动条的尺寸*/
  7669. height: 6px;
  7670. }
  7671. /*定义滚动条轨道 内阴影+圆角*/
  7672. .cru_selectBox::-webkit-scrollbar-track {
  7673. border-radius: 10px;
  7674. background-color: #eee;
  7675. }
  7676. /*定义滑块 内阴影+圆角*/
  7677. .cru_selectBox::-webkit-scrollbar-thumb {
  7678. border-radius: 10px;
  7679. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  7680. background-color: rgba(0, 0, 0, 0.1);
  7681. }
  7682. .cru_line {
  7683. position: absolute;
  7684. bottom: 0px;
  7685. transition: all 0.5s;
  7686. left: 0px;
  7687. width: 125px;
  7688. margin-left: -25px;
  7689. }
  7690. .cru_select {
  7691. font-size: 21px;
  7692. margin-right: 37px;
  7693. margin-left: 5px;
  7694. cursor: pointer;
  7695. color: #a6a6a6;
  7696. }
  7697. .cru_selected {
  7698. color: #0b7fc2 !important;
  7699. }
  7700. .chapter_contentbox {
  7701. display: flex;
  7702. align-items: center;
  7703. margin-top: 15px;
  7704. }
  7705. .chapter_contentbox div:nth-child(1) {
  7706. /* width: 150px; */
  7707. margin: 0px;
  7708. /* font-size: 2em; */
  7709. color: black;
  7710. display: block;
  7711. white-space: nowrap;
  7712. overflow: hidden;
  7713. text-overflow: ellipsis;
  7714. /* font-weight: 600; */
  7715. margin-right: 20px;
  7716. font-size: 18px;
  7717. }
  7718. .chapter_contentbox div:nth-child(2) {
  7719. width: 380px;
  7720. }
  7721. .chapter_contentbox div:nth-child(3),
  7722. .remove {
  7723. background-image: url("../../../assets/remove.png");
  7724. cursor: pointer;
  7725. opacity: 0.5;
  7726. width: 40px;
  7727. height: 50px;
  7728. background-repeat: no-repeat;
  7729. background-position: 5px 10px;
  7730. }
  7731. .remove1 {
  7732. background-image: url("../../../assets/remove1.png");
  7733. background-repeat: no-repeat;
  7734. background-position: 5px 10px;
  7735. width: 40px;
  7736. height: 50px;
  7737. cursor: pointer;
  7738. }
  7739. .binfo_input {
  7740. font: inherit;
  7741. color: currentColor;
  7742. width: 100%;
  7743. margin: 0;
  7744. /* padding: 15px 14px; */
  7745. padding: 8px 14px;
  7746. display: block;
  7747. min-width: 0;
  7748. outline: none;
  7749. box-sizing: content-box;
  7750. background: none;
  7751. border: 1px solid rgba(0, 0, 0, 0.23);
  7752. border-radius: 4px;
  7753. box-sizing: border-box;
  7754. background: #fff;
  7755. font-size: 18px;
  7756. }
  7757. .binfo_input:focus-visible {
  7758. border: 1px solid rgba(61, 103, 188);
  7759. }
  7760. .time {
  7761. display: flex;
  7762. margin: 35px 0 80px 0;
  7763. }
  7764. .chapter_btnbox {
  7765. width: 160px;
  7766. border-radius: 5px;
  7767. border: 2px dashed gray;
  7768. display: flex;
  7769. padding: 8px 50px;
  7770. align-items: center;
  7771. justify-content: center;
  7772. margin: 30px auto 0;
  7773. cursor: pointer;
  7774. }
  7775. .icon_add {
  7776. position: relative;
  7777. width: 24px;
  7778. padding-top: 20px;
  7779. border-radius: 100%;
  7780. border-width: 2px;
  7781. border-style: solid;
  7782. border-color: gray;
  7783. }
  7784. .icon_add i:nth-child(1) {
  7785. position: absolute;
  7786. left: 50%;
  7787. top: 50%;
  7788. height: 60%;
  7789. transform: translate(-50%, -50%);
  7790. border-width: 1px;
  7791. border-style: solid;
  7792. border-color: inherit;
  7793. }
  7794. .icon_add i:nth-child(2) {
  7795. position: absolute;
  7796. top: 50%;
  7797. left: 50%;
  7798. width: 60%;
  7799. transform: translate(-50%, -50%);
  7800. border-width: 1px;
  7801. border-style: solid;
  7802. border-color: inherit;
  7803. }
  7804. .chapter_btn_w {
  7805. font-size: 0.9375rem;
  7806. font-weight: bold;
  7807. color: gray;
  7808. margin-left: 20px;
  7809. }
  7810. .disUoloadSty>>>.el-icon-plus {
  7811. display: none !important;
  7812. /* 上传按钮隐藏 */
  7813. }
  7814. .imgLeft {
  7815. margin: 15px 0;
  7816. }
  7817. .add_info_box {
  7818. margin: 20px 0;
  7819. }
  7820. .add_info_box button {
  7821. margin: 0 10px 10px 0;
  7822. }
  7823. .add_info_box2 {
  7824. display: flex;
  7825. align-items: center;
  7826. flex-wrap: wrap;
  7827. }
  7828. .add_info_box2::after {
  7829. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  7830. color: red;
  7831. font-size: 14px;
  7832. margin-bottom: 10px;
  7833. }
  7834. .add_chapters_box {
  7835. text-align: left;
  7836. background-color: rgb(232 234 237);
  7837. width: 100%;
  7838. padding: 0px 15px;
  7839. border-radius: 15px;
  7840. font-size: 16px;
  7841. box-sizing: border-box;
  7842. position: relative;
  7843. padding: 0 10px 5px 10px;
  7844. height: 185px;
  7845. overflow-y: auto;
  7846. overflow-x: hidden;
  7847. }
  7848. .homework_box {
  7849. display: flex;
  7850. align-items: flex-start;
  7851. flex-wrap: wrap;
  7852. margin: 15px 0 0 0;
  7853. flex-direction: column;
  7854. align-content: flex-start;
  7855. }
  7856. .course_homework {
  7857. display: flex;
  7858. justify-content: center;
  7859. flex-direction: row;
  7860. align-items: center;
  7861. margin: 0 10px 0 0;
  7862. }
  7863. .course_homework>>>.el-input__inner {
  7864. width: 140px;
  7865. margin-left: 15px;
  7866. }
  7867. .chapter_upload_move {
  7868. position: relative;
  7869. background-color: #fff;
  7870. position: absolute;
  7871. width: 100%;
  7872. top: 0px;
  7873. left: 0px;
  7874. border: 1px solid #eee;
  7875. border-radius: 5px;
  7876. transition: width 2s;
  7877. -moz-transition: width 2s;
  7878. -webkit-transition: width 2s;
  7879. -o-transition: width 2s;
  7880. }
  7881. .chapter_upload_l_i {
  7882. background-image: url("../../../assets/icon.png");
  7883. background-position: 3px -165px;
  7884. width: 30px;
  7885. height: 30px;
  7886. margin: 10px auto 0 auto;
  7887. }
  7888. .left_first {
  7889. display: flex;
  7890. flex-direction: column;
  7891. flex-wrap: nowrap;
  7892. }
  7893. .right_first {
  7894. width: 100%;
  7895. height: 100%;
  7896. margin-top: 15px;
  7897. }
  7898. .right_title {
  7899. height: 30px;
  7900. padding: 15px 20px 15px 20px;
  7901. border-bottom: 1px solid #f2f2f2;
  7902. font-size: 1.5em;
  7903. font-weight: bold;
  7904. color: #0f7eff;
  7905. margin: 0 auto;
  7906. display: flex;
  7907. justify-content: space-between;
  7908. }
  7909. .people {
  7910. border: 1px solid rgb(229 229 229);
  7911. height: 495px;
  7912. border-radius: 5px;
  7913. width: 100%;
  7914. overflow: auto;
  7915. }
  7916. .people_top {
  7917. display: flex;
  7918. width: 100%;
  7919. /* justify-content: space-between; */
  7920. /* align-items: center; */
  7921. flex-direction: column;
  7922. padding: 10px 25px 0;
  7923. box-sizing: border-box;
  7924. }
  7925. .people_nav,
  7926. .people_top_right {
  7927. /* padding: 20px 0 0 20px; */
  7928. }
  7929. .people_top_right {
  7930. height: 40px;
  7931. margin-bottom: 10px;
  7932. }
  7933. .people_search {
  7934. display: flex;
  7935. position: relative;
  7936. }
  7937. .people_search>>>.el-input__inner {
  7938. /* height: 25px; */
  7939. width: 95%;
  7940. }
  7941. .search_img {
  7942. width: 20px;
  7943. height: 20px;
  7944. position: absolute;
  7945. right: 30px;
  7946. top: 50%;
  7947. transform: translateY(-50%);
  7948. }
  7949. .search_img>img {
  7950. width: 100%;
  7951. height: 100%;
  7952. }
  7953. .people_name {
  7954. display: flex;
  7955. justify-content: flex-start;
  7956. padding: 20px 0 0 25px;
  7957. flex-direction: column;
  7958. flex-wrap: wrap;
  7959. }
  7960. .p_box {
  7961. position: relative;
  7962. }
  7963. .people_name>>>.el-checkbox {
  7964. width: 100%;
  7965. display: flex;
  7966. align-items: center;
  7967. margin-bottom: 10px;
  7968. }
  7969. .people_name>>>.el-checkbox__label {
  7970. text-overflow: ellipsis;
  7971. overflow: hidden;
  7972. width: calc(100%);
  7973. }
  7974. .people_name2>>>.el-checkbox__label {
  7975. width: calc(100% - 130px);
  7976. }
  7977. .inviteCode {
  7978. position: absolute;
  7979. right: 30px;
  7980. color: #237ade;
  7981. top: 0;
  7982. cursor: pointer;
  7983. font-size: 13px;
  7984. }
  7985. .noneInvite {
  7986. color: #a8a8a8;
  7987. }
  7988. .inviteImg {
  7989. position: absolute;
  7990. right: 5px;
  7991. top: 0;
  7992. width: 20px;
  7993. }
  7994. .right_img {
  7995. width: 150px;
  7996. height: 150px;
  7997. margin: 20px auto;
  7998. }
  7999. .right_img>img {
  8000. width: 100%;
  8001. height: 100%;
  8002. }
  8003. .number {
  8004. margin-top: 20px;
  8005. color: #4aa6ff;
  8006. text-decoration: underline;
  8007. }
  8008. .success_button {
  8009. display: flex;
  8010. text-align: center;
  8011. margin: 5% 0 auto;
  8012. flex-direction: row;
  8013. justify-content: center;
  8014. }
  8015. .look_course {
  8016. margin-right: 40px;
  8017. background: #3d67bc;
  8018. width: 200px;
  8019. height: 35px;
  8020. line-height: 35px;
  8021. color: #fff;
  8022. text-align: center;
  8023. font-size: 14px;
  8024. border-radius: 5px;
  8025. cursor: pointer;
  8026. }
  8027. .attend_others {
  8028. width: 250px;
  8029. background: #4fb13c;
  8030. height: 35px;
  8031. line-height: 35px;
  8032. color: #fff;
  8033. text-align: center;
  8034. font-size: 14px;
  8035. border-radius: 5px;
  8036. cursor: pointer;
  8037. }
  8038. .dialog_diy2>>>.el-dialog__body {
  8039. text-align: center;
  8040. }
  8041. .write_togother {
  8042. position: absolute;
  8043. right: 45px;
  8044. display: flex;
  8045. top: 5%;
  8046. }
  8047. .write_people {
  8048. font-size: 14px;
  8049. line-height: 50px;
  8050. padding-right: 10px;
  8051. }
  8052. .end_write {
  8053. background: #3d67bc;
  8054. color: #fff;
  8055. width: 100px;
  8056. height: 35px;
  8057. line-height: 35px;
  8058. text-align: center;
  8059. font-size: 14px;
  8060. border-radius: 5px;
  8061. cursor: pointer;
  8062. }
  8063. .chapter_upload {
  8064. height: 50px;
  8065. margin-top: 12px;
  8066. position: relative;
  8067. display: flex;
  8068. align-items: center;
  8069. width: 100%;
  8070. min-height: 50px;
  8071. }
  8072. .chapter_upload_t {
  8073. background-color: #fff;
  8074. position: absolute;
  8075. height: 100%;
  8076. top: 0px;
  8077. left: 0px;
  8078. border-radius: 40px;
  8079. box-sizing: border-box;
  8080. box-shadow: 0 0 3px 3px #dfdfdf;
  8081. }
  8082. .chapter_upload_o {
  8083. width: 100%;
  8084. height: 100%;
  8085. position: relative;
  8086. z-index: 1;
  8087. }
  8088. .chapter_upload_ic {
  8089. height: 30px;
  8090. float: right;
  8091. }
  8092. .chapter_upload_ic_l {
  8093. width: 50px;
  8094. height: 50px;
  8095. float: left;
  8096. }
  8097. .chapter_upload_ic_l div {
  8098. width: 30px;
  8099. height: 35px;
  8100. background: url("../../../assets/icon/icon.png");
  8101. }
  8102. .chapter_upload_ic_r {
  8103. width: 50px;
  8104. height: 50px;
  8105. float: left;
  8106. margin-left: 0px;
  8107. display: flex;
  8108. align-items: center;
  8109. }
  8110. .chapter_upload_ic_r div {
  8111. width: 25px;
  8112. height: 25px;
  8113. background-image: url("../../../assets/delete.png");
  8114. background-size: 100% 100%;
  8115. }
  8116. .chapter_upload_n {
  8117. display: flex;
  8118. text-indent: 10px;
  8119. text-decoration: none;
  8120. text-overflow: ellipsis;
  8121. white-space: nowrap;
  8122. overflow: hidden;
  8123. width: 55%;
  8124. margin-left: 10px;
  8125. cursor: pointer;
  8126. margin-top: 2px;
  8127. align-items: center;
  8128. }
  8129. .chapter_upload_l_i1 {
  8130. background-image: url("../../../assets/icon/video.png");
  8131. width: 28px;
  8132. height: 28px;
  8133. background-size: 100% 100%;
  8134. }
  8135. .chapter_upload_l_i5 {
  8136. background-image: url("../../../assets/icon/word.png");
  8137. width: 24px;
  8138. height: 24px;
  8139. background-size: 100% 100%;
  8140. }
  8141. .chapter_upload_l_i8 {
  8142. background-image: url("../../../assets/icon/line.png");
  8143. width: 24px;
  8144. height: 24px;
  8145. background-size: 100% 100%;
  8146. }
  8147. .chapter_upload_ud {
  8148. display: flex;
  8149. flex-direction: column;
  8150. margin-left: 5px;
  8151. justify-content: center;
  8152. }
  8153. .chapter_upload_up {
  8154. background-image: url("../../../assets/icon/up.png");
  8155. width: 17px;
  8156. height: 15px;
  8157. background-size: 100% 100%;
  8158. cursor: pointer;
  8159. }
  8160. .chapter_upload_down {
  8161. background-image: url("../../../assets/icon/down.png");
  8162. width: 17px;
  8163. height: 15px;
  8164. margin: 2px auto 0 auto;
  8165. background-size: 100% 100%;
  8166. cursor: pointer;
  8167. }
  8168. .addWordStyle {
  8169. display: flex;
  8170. flex-direction: row;
  8171. justify-content: flex-start;
  8172. overflow-x: auto;
  8173. white-space: nowrap;
  8174. flex-wrap: wrap;
  8175. }
  8176. /* table 样式 */
  8177. .cont>>>table {
  8178. border-top: 1px solid #ccc;
  8179. border-left: 1px solid #ccc;
  8180. }
  8181. .cont>>>table td,
  8182. .cont>>>table th {
  8183. border-bottom: 1px solid #ccc;
  8184. border-right: 1px solid #ccc;
  8185. /* padding: 20px 5px; */
  8186. padding: 5px 10px;
  8187. max-width: 0px;
  8188. height: 30px;
  8189. vertical-align: baseline;
  8190. }
  8191. .cont>>>table th {
  8192. border-bottom: 2px solid #ccc;
  8193. text-align: center;
  8194. }
  8195. /* blockquote 样式 */
  8196. .cont>>>blockquote {
  8197. display: block;
  8198. border-left: 8px solid #d0e5f2;
  8199. padding: 5px 10px;
  8200. margin: 10px 0;
  8201. line-height: 1.4;
  8202. font-size: 100%;
  8203. background-color: #f1f1f1;
  8204. }
  8205. /* code 样式 */
  8206. .cont>>>code {
  8207. display: inline-block;
  8208. *display: inline;
  8209. *zoom: 1;
  8210. background-color: #f1f1f1;
  8211. border-radius: 3px;
  8212. padding: 3px 5px;
  8213. margin: 0 3px;
  8214. }
  8215. .cont>>>pre code {
  8216. display: block;
  8217. }
  8218. /* ul ol 样式 */
  8219. .cont>>>ul,
  8220. ol {
  8221. margin: 10px 0 10px 20px;
  8222. }
  8223. .wordbox {
  8224. display: flex;
  8225. flex-wrap: wrap;
  8226. cursor: pointer;
  8227. width: 100%;
  8228. }
  8229. .checkword {
  8230. width: 22px;
  8231. height: 22px;
  8232. margin: 10px auto 0;
  8233. cursor: pointer;
  8234. }
  8235. .checkword img {
  8236. width: 100%;
  8237. }
  8238. .stepBg {
  8239. display: flex;
  8240. flex-direction: column;
  8241. justify-content: space-between;
  8242. align-items: center;
  8243. background: #fff;
  8244. width: 300px;
  8245. margin: 0 25px 0 0;
  8246. }
  8247. .stepTop {
  8248. min-width: 300px;
  8249. width: 300px;
  8250. /* border-radius: 10px; */
  8251. display: flex;
  8252. flex-direction: column;
  8253. justify-content: flex-start;
  8254. align-items: center;
  8255. flex-wrap: nowrap;
  8256. background: #fff;
  8257. /* top: 18%; */
  8258. }
  8259. .stepTop>div {
  8260. height: 80px;
  8261. width: 85%;
  8262. cursor: pointer;
  8263. margin: 10px 0;
  8264. border-radius: 10px;
  8265. }
  8266. .first,
  8267. .second,
  8268. .third,
  8269. .four {
  8270. background: #4a83d0;
  8271. height: 90px;
  8272. color: #fff;
  8273. display: flex;
  8274. flex-direction: row;
  8275. align-items: center;
  8276. justify-content: center;
  8277. }
  8278. .first>div:nth-child(1),
  8279. .second>div:nth-child(1),
  8280. .third>div:nth-child(1),
  8281. .four>div:nth-child(1) {
  8282. margin: 5px 10px 0 0;
  8283. width: 2rem;
  8284. }
  8285. .firstNo,
  8286. .secondNo,
  8287. .thirdNo,
  8288. .fourNo {
  8289. background: #e7e7e7;
  8290. color: #adadad;
  8291. display: flex;
  8292. flex-direction: row;
  8293. align-items: center;
  8294. justify-content: center;
  8295. }
  8296. .firstNo>div:nth-child(1),
  8297. .secondNo>div:nth-child(1),
  8298. .thirdNo>div:nth-child(1),
  8299. .fourNo>div:nth-child(1) {
  8300. margin: 5px 10px 0 0;
  8301. width: 2rem;
  8302. }
  8303. .uploadWidth>>>.el-upload {
  8304. width: 60px;
  8305. height: 60px;
  8306. position: relative;
  8307. }
  8308. .addPeople {
  8309. background: #fa6060;
  8310. width: 150px;
  8311. height: 40px;
  8312. color: #fff;
  8313. border-radius: 5px;
  8314. text-align: center;
  8315. line-height: 40px;
  8316. font-size: 14px;
  8317. cursor: pointer;
  8318. margin-top: 20px;
  8319. }
  8320. .kcImg {
  8321. width: 60px;
  8322. margin-left: 10px;
  8323. }
  8324. .zyImg {
  8325. width: 55px;
  8326. margin: 0 10px;
  8327. }
  8328. .deleteZy {
  8329. width: 20px;
  8330. position: absolute;
  8331. top: 5px;
  8332. right: 5px;
  8333. cursor: pointer;
  8334. }
  8335. .kcImg>img,
  8336. .zyImg>img,
  8337. .deleteZy>img {
  8338. width: 100%;
  8339. height: 100%;
  8340. }
  8341. .zyBox {
  8342. display: flex;
  8343. flex-direction: row;
  8344. align-items: center;
  8345. background: #67d37d;
  8346. color: #fff;
  8347. width: 210px;
  8348. margin: 20px 20px 0 0;
  8349. border-radius: 10px;
  8350. height: 70px;
  8351. position: relative;
  8352. }
  8353. .upCss {
  8354. display: flex;
  8355. flex-direction: row;
  8356. justify-content: flex-start;
  8357. }
  8358. .upCss>>>.el-icon-plus {
  8359. position: none !important;
  8360. width: 200px;
  8361. height: 100px;
  8362. display: flex;
  8363. flex-wrap: nowrap;
  8364. flex-direction: column;
  8365. align-items: center;
  8366. justify-content: center;
  8367. border: 1px dashed #ccc;
  8368. min-width: 78px;
  8369. min-height: 100px;
  8370. z-index: 999;
  8371. }
  8372. .upCss>>>.el-upload-list__item-name {
  8373. width: 100px;
  8374. white-space: nowrap;
  8375. overflow: hidden;
  8376. text-overflow: ellipsis;
  8377. }
  8378. .addStageImg {
  8379. min-width: 25px;
  8380. min-height: 25px;
  8381. width: 25px;
  8382. height: 25px;
  8383. cursor: pointer;
  8384. }
  8385. .addHW {
  8386. width: 28px;
  8387. height: 28px;
  8388. cursor: pointer;
  8389. }
  8390. .addStageImg>img,
  8391. .addHW>img {
  8392. width: 100%;
  8393. height: 100%;
  8394. }
  8395. .addNewPP>>>.el-dialog__body {
  8396. padding: 5px 20px;
  8397. }
  8398. .isHeight {
  8399. height: 680px;
  8400. }
  8401. .toolChoose {
  8402. display: flex;
  8403. /* width: 100%; */
  8404. flex-direction: row;
  8405. flex-wrap: wrap;
  8406. }
  8407. .tool {
  8408. display: flex;
  8409. flex-direction: column;
  8410. flex-wrap: nowrap;
  8411. width: fit-content;
  8412. margin: 10px 0 10px 0;
  8413. align-items: center;
  8414. }
  8415. .tool+.tool {
  8416. margin-right: 45px;
  8417. }
  8418. .whiteBIcon {
  8419. width: 80px;
  8420. cursor: pointer;
  8421. display: flex;
  8422. flex-direction: column;
  8423. flex-wrap: nowrap;
  8424. align-items: center;
  8425. }
  8426. .whiteBIcon>img,
  8427. .toolIcon>img,
  8428. .arrow>img {
  8429. width: 100%;
  8430. height: 100%;
  8431. }
  8432. .check img {
  8433. width: 20px;
  8434. height: 20px;
  8435. }
  8436. .whiteBIcon>img {
  8437. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  8438. border-radius: 15px;
  8439. }
  8440. .check {
  8441. /* width: 20px;
  8442. height: 20px; */
  8443. cursor: pointer;
  8444. margin: 10px 0;
  8445. }
  8446. .checkDiv {
  8447. display: flex;
  8448. align-items: center;
  8449. }
  8450. .checkDiv span {
  8451. margin-left: 5px;
  8452. color: #858585;
  8453. }
  8454. .customWidth>>>.el-dialog {
  8455. min-width: 500px !important;
  8456. }
  8457. .a_addBox {
  8458. margin: 10px 0;
  8459. background: #fff;
  8460. padding: 15px;
  8461. max-height: 600px;
  8462. overflow: auto;
  8463. }
  8464. .a_add_box {
  8465. border-bottom: 2px solid #eee;
  8466. padding-bottom: 25px;
  8467. }
  8468. .a_add_head {
  8469. display: flex;
  8470. align-items: center;
  8471. justify-content: space-between;
  8472. margin: 10px 0 0 0;
  8473. font-size: 18px;
  8474. }
  8475. .a_add_checkType {
  8476. margin-top: 10px;
  8477. display: flex;
  8478. font-size: 16px;
  8479. align-items: center;
  8480. }
  8481. .a_add_checkType span {
  8482. box-sizing: border-box;
  8483. padding: 0 0 5px 0;
  8484. cursor: pointer;
  8485. }
  8486. .a_add_checkType span+span {
  8487. margin-left: 10px;
  8488. }
  8489. .a_add_checkType .active {
  8490. border-bottom: 2px solid #409eff;
  8491. color: #409eff;
  8492. }
  8493. .a_add_head .a_add_head_input {
  8494. width: 300px;
  8495. }
  8496. .a_add_head .a_add_head_div {
  8497. display: flex;
  8498. align-items: center;
  8499. justify-content: space-between;
  8500. }
  8501. .a_add_body {
  8502. display: flex;
  8503. /* align-items: center; */
  8504. align-items: flex-end;
  8505. }
  8506. .a_add_input {
  8507. display: flex;
  8508. align-items: center;
  8509. flex-wrap: wrap;
  8510. }
  8511. .a_add_input_choice {
  8512. flex-direction: column;
  8513. margin-right: 10px;
  8514. }
  8515. .a_add_input_choice>>>.el-radio {
  8516. display: flex;
  8517. align-items: center;
  8518. flex-direction: row-reverse;
  8519. margin: 30px 0 0 0;
  8520. }
  8521. .a_add_input_choice>>>.el-checkbox {
  8522. display: flex;
  8523. align-items: center;
  8524. flex-direction: row-reverse;
  8525. margin: 30px 0 0 0;
  8526. }
  8527. .width100 {
  8528. width: 100%;
  8529. }
  8530. .a_add_input .a_add_persent {
  8531. width: 100%;
  8532. }
  8533. .a_add_persent_div {
  8534. width: 100%;
  8535. display: flex;
  8536. align-items: center;
  8537. }
  8538. .a_add_persent_div span {
  8539. margin: 5px 0;
  8540. }
  8541. .a_add_persent_div span:nth-child(1) {
  8542. width: 30%;
  8543. }
  8544. .a_add_persent_div span:nth-child(2) {
  8545. width: 7%;
  8546. }
  8547. .a_add_persent_div span:nth-child(3) {
  8548. width: 40%;
  8549. }
  8550. .a_add_body_div {
  8551. display: flex;
  8552. align-items: center;
  8553. justify-content: center;
  8554. /* flex-direction: column; */
  8555. }
  8556. .all_choose {
  8557. display: flex;
  8558. flex-direction: row;
  8559. align-items: flex-start;
  8560. width: 100%;
  8561. }
  8562. .all_choose>span {
  8563. min-width: 100px;
  8564. display: block;
  8565. letter-spacing: 14px;
  8566. white-space: nowrap;
  8567. overflow: hidden;
  8568. text-overflow: ellipsis;
  8569. }
  8570. .all_choose>>>.el-checkbox-group {
  8571. display: flex;
  8572. flex-direction: row;
  8573. width: 100%;
  8574. flex-wrap: wrap;
  8575. align-content: center;
  8576. justify-content: flex-start;
  8577. align-items: center;
  8578. margin-top: 3px;
  8579. }
  8580. .all_choose>.el-checkbox-group>>>.el-checkbox {
  8581. margin-bottom: 10px;
  8582. display: flex;
  8583. flex-direction: row;
  8584. align-items: center;
  8585. }
  8586. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  8587. min-width: 80px;
  8588. overflow: hidden;
  8589. width: 80px;
  8590. text-overflow: ellipsis;
  8591. white-space: nowrap;
  8592. }
  8593. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  8594. width: auto;
  8595. }
  8596. .choose>div:nth-child(3)>span {
  8597. /* letter-spacing: 0 !important; */
  8598. }
  8599. .choose {
  8600. display: flex;
  8601. flex-direction: column;
  8602. flex-wrap: nowrap;
  8603. height: 100%;
  8604. justify-content: space-evenly;
  8605. align-items: flex-start;
  8606. }
  8607. .both {
  8608. display: flex;
  8609. flex-direction: row;
  8610. flex-wrap: wrap;
  8611. width: 100%;
  8612. align-items: center;
  8613. justify-content: flex-start;
  8614. margin: 15px 0;
  8615. }
  8616. .notice>>>.el-dialog {
  8617. width: 500px !important;
  8618. text-align: center;
  8619. }
  8620. .notice>>>.el-button {
  8621. margin-top: 20px;
  8622. }
  8623. .whiteBg {
  8624. background: #fff;
  8625. border-radius: 10px;
  8626. }
  8627. .chooseWho {
  8628. display: flex;
  8629. width: 380px;
  8630. flex-direction: row;
  8631. flex-wrap: nowrap;
  8632. justify-content: space-between;
  8633. padding-bottom: 10px;
  8634. }
  8635. .chooseWho>div {
  8636. cursor: pointer;
  8637. padding-bottom: 10px;
  8638. font-weight: bold;
  8639. }
  8640. .isChooseActive {
  8641. color: #3e88f4;
  8642. border-bottom: 2px solid #2f80f3;
  8643. }
  8644. .toolSort {
  8645. display: flex;
  8646. flex-direction: row;
  8647. flex-wrap: wrap;
  8648. justify-content: flex-start;
  8649. align-items: flex-start;
  8650. }
  8651. .toolSort>div {
  8652. margin-right: 45px;
  8653. }
  8654. .tools {
  8655. width: 100%;
  8656. display: flex;
  8657. flex-direction: column;
  8658. flex-wrap: nowrap;
  8659. align-items: flex-start;
  8660. }
  8661. .leftTools,
  8662. .rightTools {
  8663. width: 50%;
  8664. }
  8665. .rightTools {
  8666. display: flex;
  8667. flex-direction: row;
  8668. flex-wrap: nowrap;
  8669. justify-content: space-around;
  8670. }
  8671. .firstToolList {
  8672. display: flex;
  8673. flex-direction: column;
  8674. flex-wrap: nowrap;
  8675. align-items: center;
  8676. }
  8677. .iconList {
  8678. display: flex;
  8679. flex-direction: row;
  8680. flex-wrap: wrap;
  8681. justify-content: flex-start;
  8682. align-items: center;
  8683. margin: 20px 0 5px 0;
  8684. width: 240px;
  8685. min-width: 240px;
  8686. }
  8687. .iconTool {
  8688. display: flex;
  8689. flex-direction: column;
  8690. flex-wrap: nowrap;
  8691. align-items: center;
  8692. justify-content: flex-start;
  8693. margin: 15px 10px;
  8694. }
  8695. .toolIcon {
  8696. width: 50px;
  8697. }
  8698. .taskBorder {
  8699. border: 1px solid #e1e1e1;
  8700. border-radius: 10px;
  8701. margin-top: 20px;
  8702. /* min-height: 1160px; */
  8703. position: relative;
  8704. background: #fbfbfb;
  8705. }
  8706. .smallTaskBorder {
  8707. height: 170px;
  8708. min-height: 170px !important;
  8709. overflow: hidden;
  8710. }
  8711. .taskBorder>div {
  8712. padding: 30px 0 10px 30px;
  8713. }
  8714. .addTaskBorder {
  8715. border: 2px solid #e1e1e1;
  8716. border-radius: 10px;
  8717. margin-top: 25px;
  8718. cursor: pointer;
  8719. }
  8720. .addTaskBorder>div {
  8721. margin: 0 auto;
  8722. display: flex;
  8723. align-items: center;
  8724. justify-content: center;
  8725. }
  8726. .addTaskBorder>div>img {
  8727. width: 100px;
  8728. }
  8729. .addTaskBorder>div>span {
  8730. font-size: 23px;
  8731. color: #dbdbdb;
  8732. }
  8733. .funBlock {
  8734. display: flex;
  8735. padding: 15px 0;
  8736. flex-direction: row;
  8737. justify-content: flex-end;
  8738. align-items: center;
  8739. position: absolute;
  8740. right: 15px;
  8741. bottom: 35px;
  8742. }
  8743. .fold {
  8744. display: flex;
  8745. margin: 0 10px;
  8746. flex-direction: row;
  8747. align-items: center;
  8748. cursor: pointer;
  8749. }
  8750. .arrow {
  8751. width: 15px;
  8752. height: 15px;
  8753. margin-left: 10px;
  8754. }
  8755. .addToolFun {
  8756. display: flex;
  8757. width: 150px;
  8758. flex-direction: row;
  8759. align-items: center;
  8760. justify-content: center;
  8761. border: 1px dashed;
  8762. border-radius: 5px;
  8763. height: 50px;
  8764. margin: 35px auto 0;
  8765. cursor: pointer;
  8766. }
  8767. .addToolImg {
  8768. width: 30px;
  8769. height: 30px;
  8770. margin-right: 20px;
  8771. }
  8772. .addToolsDia>>>.el-dialog__body {
  8773. padding: 20px;
  8774. }
  8775. .addToolsDia>>>.el-dialog__body>.toolChoose {
  8776. padding: 0;
  8777. }
  8778. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  8779. padding: 0;
  8780. border-bottom: none;
  8781. margin-bottom: 0;
  8782. }
  8783. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  8784. width: 100%;
  8785. }
  8786. .lineCss>>>.el-form-item__label {
  8787. width: auto !important;
  8788. }
  8789. .lineCss>>>.el-form-item__content {
  8790. margin-left: 50px !important;
  8791. }
  8792. .newSteps {
  8793. display: flex;
  8794. width: 100% !important;
  8795. height: 80px;
  8796. cursor: pointer;
  8797. margin: 10px 0;
  8798. border-radius: 10px;
  8799. flex-direction: row;
  8800. align-content: center;
  8801. justify-content: center;
  8802. align-items: center;
  8803. margin: 0 !important;
  8804. }
  8805. /* 评价样式 */
  8806. .elist_css {
  8807. padding-bottom: 60px !important;
  8808. }
  8809. .elist_title {
  8810. margin-bottom: 10px;
  8811. }
  8812. .elist_input {}
  8813. .elist_input_box {
  8814. display: flex;
  8815. align-items: center;
  8816. flex-wrap: wrap;
  8817. }
  8818. .elist_input_box+.elist_input_box {
  8819. margin-top: 30px;
  8820. }
  8821. .elist_input .elist_input_box input {
  8822. font: inherit;
  8823. color: currentColor;
  8824. /* width: 200px; */
  8825. max-width: 200px;
  8826. padding: 8px 14px;
  8827. display: block;
  8828. min-width: 0;
  8829. outline: none;
  8830. border: 1px solid rgba(0, 0, 0, 0.23);
  8831. border-radius: 4px;
  8832. box-sizing: border-box;
  8833. background: #fff;
  8834. margin: 0 20px 0 0;
  8835. }
  8836. .elist_input .elist_input_box span {
  8837. height: 36px;
  8838. line-height: 36px;
  8839. color: rgb(82, 82, 82);
  8840. min-width: 80px;
  8841. }
  8842. .elist_input .elist_input_box .remove {
  8843. height: 20px;
  8844. width: 20px;
  8845. background-size: 100% 100%;
  8846. background-position: unset;
  8847. margin-left: 5px;
  8848. }
  8849. .elist_input_box>>>.el-rate {
  8850. display: flex;
  8851. height: 36px;
  8852. align-items: center;
  8853. }
  8854. .elist_input_box .elist_inptu_text {
  8855. width: 100%;
  8856. display: flex;
  8857. align-items: center;
  8858. margin-top: 10px;
  8859. }
  8860. .elist_input_box .elist_inptu_text input {
  8861. /* width: 500px; */
  8862. width: 100%;
  8863. max-width: unset;
  8864. }
  8865. .elist_input_box>>>.el-rate__icon {
  8866. font-size: 24px;
  8867. }
  8868. .elist_btn {
  8869. margin-top: 10px;
  8870. }
  8871. .lineTitle {
  8872. margin-top: 15px;
  8873. width: 110px;
  8874. }
  8875. .courseTop {
  8876. display: flex;
  8877. flex-direction: row;
  8878. justify-content: flex-start;
  8879. align-items: center;
  8880. width: calc(100% - 40px);
  8881. padding: 20px 0;
  8882. margin: 0 auto;
  8883. }
  8884. .stepsNav {
  8885. display: flex;
  8886. flex-direction: row;
  8887. justify-content: flex-start;
  8888. align-items: center;
  8889. }
  8890. .stepsWord {
  8891. font-size: 18px;
  8892. color: #fff;
  8893. font-weight: bold;
  8894. margin-left: auto;
  8895. background: rgb(15, 126, 255);
  8896. border-radius: 5px;
  8897. padding: 3px 25px;
  8898. box-sizing: border-box;
  8899. }
  8900. .rightBox {
  8901. width: calc(100% - 40px);
  8902. background: rgb(255, 255, 255);
  8903. border-radius: 10px;
  8904. overflow: auto;
  8905. height: calc(100% - 160px);
  8906. position: relative;
  8907. margin: 0px auto 0;
  8908. }
  8909. .e_add_top {
  8910. display: flex;
  8911. justify-content: space-between;
  8912. padding: 20px 20px 0 20px;
  8913. border-radius: 3px;
  8914. background: #fff;
  8915. }
  8916. .e_add_title2 {
  8917. display: flex;
  8918. align-items: center;
  8919. }
  8920. .e_add_title2 span {
  8921. width: 40px;
  8922. }
  8923. .e_add_title {
  8924. display: flex;
  8925. align-items: center;
  8926. color: #b8b8b8;
  8927. font-size: 18px;
  8928. position: relative;
  8929. height: 40px;
  8930. }
  8931. .e_add_title span {
  8932. margin-right: 10px;
  8933. }
  8934. .e_add_title .el_input {
  8935. width: 300px;
  8936. }
  8937. .e_add_title>>>.el-input__inner {
  8938. width: 400px;
  8939. }
  8940. .e_add_btn {}
  8941. .e_add_content {
  8942. display: flex;
  8943. width: 100%;
  8944. }
  8945. .e_add_list {
  8946. background: #fff;
  8947. height: 500px;
  8948. width: 210px;
  8949. position: relative;
  8950. margin: 15px 5px 0 0;
  8951. flex-shrink: 0;
  8952. display: flex;
  8953. flex-direction: column;
  8954. }
  8955. .e_add_list_title {
  8956. font-size: 20px;
  8957. width: 100%;
  8958. box-sizing: border-box;
  8959. padding: 15px 40px;
  8960. text-align: center;
  8961. border-bottom: 1px solid #eaeaea;
  8962. position: relative;
  8963. display: flex;
  8964. align-items: center;
  8965. justify-content: center;
  8966. height: 57px;
  8967. background: #f6f6f6;
  8968. }
  8969. .e_add_list_title span {
  8970. overflow: hidden;
  8971. white-space: nowrap;
  8972. text-overflow: ellipsis;
  8973. }
  8974. .e_add_list_title img {
  8975. position: absolute;
  8976. right: 15px;
  8977. width: 25px;
  8978. cursor: pointer;
  8979. top: 50%;
  8980. transform: translateY(-50%);
  8981. }
  8982. .e_add_list_body {
  8983. height: calc(100% - 187px);
  8984. overflow: auto;
  8985. }
  8986. .e_add_list_child {
  8987. width: 100%;
  8988. display: flex;
  8989. align-items: center;
  8990. justify-content: center;
  8991. position: relative;
  8992. box-sizing: border-box;
  8993. padding: 15px 40px;
  8994. text-align: center;
  8995. }
  8996. .e_add_list_child span {
  8997. overflow: hidden;
  8998. white-space: nowrap;
  8999. text-overflow: ellipsis;
  9000. cursor: pointer;
  9001. }
  9002. .e_add_list_child img {
  9003. position: absolute;
  9004. right: 10px;
  9005. width: 21px;
  9006. cursor: pointer;
  9007. top: 50%;
  9008. transform: translateY(-50%);
  9009. }
  9010. .e_add_list_child+.e_add_list_child {
  9011. border-top: 1px solid #eaeaea;
  9012. }
  9013. .e_add_list_child .active {
  9014. color: #409eff;
  9015. }
  9016. .e_add_list_btn {
  9017. position: absolute;
  9018. bottom: 0;
  9019. height: 50px;
  9020. background: rgb(120, 120, 254);
  9021. width: 100%;
  9022. color: #fff;
  9023. font-size: 16px;
  9024. text-align: center;
  9025. line-height: 50px;
  9026. cursor: pointer;
  9027. }
  9028. .e_add_list_detail {
  9029. position: absolute;
  9030. bottom: 0;
  9031. height: 130px;
  9032. background: rgb(120, 120, 254);
  9033. width: 100%;
  9034. color: #fff;
  9035. font-size: 16px;
  9036. display: flex;
  9037. align-items: center;
  9038. justify-content: center;
  9039. }
  9040. .e_add_list_detail textarea {
  9041. height: 90%;
  9042. width: 95%;
  9043. border: none;
  9044. resize: none;
  9045. outline: none;
  9046. padding: 5px;
  9047. box-sizing: border-box;
  9048. }
  9049. .e_add_list_pbox {
  9050. width: 100%;
  9051. }
  9052. .e_add_list_pbox_title {
  9053. height: 50px;
  9054. background: #fff;
  9055. display: flex;
  9056. align-items: center;
  9057. width: 100%;
  9058. box-sizing: border-box;
  9059. padding: 0 20px;
  9060. flex-direction: row;
  9061. flex-wrap: wrap;
  9062. }
  9063. .type_title {
  9064. font-size: 18px;
  9065. font-weight: 700;
  9066. }
  9067. .type_content {
  9068. font-size: 16px;
  9069. margin-left: 30px;
  9070. }
  9071. .type_content span+span {
  9072. margin-left: 20px;
  9073. }
  9074. .type_content span {
  9075. cursor: pointer;
  9076. padding-bottom: 5px;
  9077. box-sizing: border-box;
  9078. }
  9079. .type_content .active {
  9080. color: #409eff;
  9081. border-bottom: 2px solid #409eff;
  9082. }
  9083. .e_add_list_pbox_content {
  9084. height: calc(100% - 50px);
  9085. display: flex;
  9086. align-items: center;
  9087. width: 100%;
  9088. background: #fff;
  9089. }
  9090. .mbCss {
  9091. width: 100%;
  9092. display: flex;
  9093. flex-direction: row;
  9094. flex-wrap: nowrap;
  9095. align-content: center;
  9096. align-items: flex-start;
  9097. justify-content: flex-start;
  9098. }
  9099. .pjCss {
  9100. /* width: 42%; */
  9101. width: calc(100% - 55%);
  9102. display: flex;
  9103. flex-direction: column;
  9104. flex-wrap: nowrap;
  9105. align-items: flex-start;
  9106. margin-top: 1.5%;
  9107. }
  9108. .e_box {
  9109. display: flex;
  9110. flex-wrap: wrap;
  9111. max-height: 500px;
  9112. align-items: flex-start;
  9113. overflow: auto;
  9114. }
  9115. .e_card {
  9116. border: 1px solid #ccc;
  9117. background: #fff;
  9118. margin-right: 20px;
  9119. width: 270px;
  9120. display: flex;
  9121. flex-direction: column;
  9122. align-items: center;
  9123. border-radius: 5px;
  9124. margin-top: 10px;
  9125. text-align: center;
  9126. }
  9127. .e_card_picture {
  9128. margin: 10px 0;
  9129. }
  9130. .e_card_picture>img {
  9131. width: 50px;
  9132. }
  9133. .e_card_name {
  9134. width: 100%;
  9135. padding: 0 10px;
  9136. box-sizing: border-box;
  9137. margin-bottom: 10px;
  9138. overflow: hidden;
  9139. text-overflow: ellipsis;
  9140. white-space: nowrap;
  9141. }
  9142. .e_card_time {
  9143. width: 100%;
  9144. padding: 0 10px;
  9145. box-sizing: border-box;
  9146. font-size: 15px;
  9147. color: #c3c3c3;
  9148. margin-bottom: 10px;
  9149. }
  9150. .e_card_btn {
  9151. height: 40px;
  9152. display: flex;
  9153. align-items: center;
  9154. width: 100%;
  9155. background: rgb(244, 244, 244);
  9156. }
  9157. .e_card_btn:hover {
  9158. background: rgb(221 221 221);
  9159. }
  9160. .e_card_btn span {
  9161. flex: 1 1 auto;
  9162. text-align: center;
  9163. cursor: pointer;
  9164. }
  9165. .addEva {
  9166. border: 1px solid #ccc;
  9167. background: #fff;
  9168. margin-right: 20px;
  9169. width: 270px;
  9170. height: 149px;
  9171. display: flex;
  9172. flex-direction: column;
  9173. align-items: center;
  9174. border-radius: 5px;
  9175. margin-top: 10px;
  9176. text-align: center;
  9177. cursor: pointer;
  9178. justify-content: center;
  9179. }
  9180. .addEva>img {
  9181. width: 50px;
  9182. object-fit: cover;
  9183. }
  9184. .uploadFm {
  9185. border: 1px dashed #ccc;
  9186. width: 202px;
  9187. height: 102px;
  9188. position: relative;
  9189. cursor: pointer;
  9190. }
  9191. .uploadFm>img {
  9192. position: absolute;
  9193. top: 25px;
  9194. left: 35%;
  9195. width: 50px;
  9196. }
  9197. .fileCss {
  9198. width: 100%;
  9199. display: flex;
  9200. flex-direction: row;
  9201. flex-wrap: nowrap;
  9202. justify-content: space-around;
  9203. align-items: center;
  9204. padding-top: 15px;
  9205. }
  9206. .sysPicBox {
  9207. display: flex;
  9208. flex-direction: row;
  9209. flex-wrap: wrap;
  9210. align-content: flex-start;
  9211. height: 435px;
  9212. overflow: auto;
  9213. }
  9214. .sysPic {
  9215. width: 200px;
  9216. height: 115px;
  9217. margin: 0 20px 20px 0;
  9218. cursor: pointer;
  9219. }
  9220. .sysPic>img,
  9221. .isSysPic>img,
  9222. .deletePic>img {
  9223. width: 100%;
  9224. height: 100%;
  9225. object-fit: cover;
  9226. }
  9227. .isSysPic {
  9228. width: 200px;
  9229. height: 115px;
  9230. position: relative;
  9231. }
  9232. .deletePic {
  9233. width: 20px;
  9234. height: 20px;
  9235. position: absolute;
  9236. top: 0;
  9237. right: 0;
  9238. cursor: pointer;
  9239. }
  9240. .select_box1 {}
  9241. .select_box1_img {
  9242. background: #fff;
  9243. border-radius: 5px;
  9244. padding: 15px;
  9245. box-sizing: border-box;
  9246. margin-bottom: 20px;
  9247. }
  9248. .select_box1_title {
  9249. padding: 0 0 15px 0;
  9250. border-bottom: 1px solid #eee;
  9251. margin-bottom: 15px;
  9252. }
  9253. .select_box1_title span:nth-child(1) {
  9254. font-size: 16px;
  9255. margin-right: 20px;
  9256. color: #000;
  9257. }
  9258. .select_box1_title span:nth-child(2) {
  9259. font-size: 14px;
  9260. color: rgb(112, 112, 112);
  9261. }
  9262. .select_box1_add_img {}
  9263. .select_box1_select {
  9264. background: #fff;
  9265. border-radius: 5px;
  9266. padding: 15px;
  9267. box-sizing: border-box;
  9268. }
  9269. .select_box2 {}
  9270. .select_box2_title {
  9271. background: #fff;
  9272. border-radius: 5px;
  9273. padding: 5px 10px;
  9274. box-sizing: border-box;
  9275. margin-bottom: 10px;
  9276. }
  9277. .select_box2_box {
  9278. display: flex;
  9279. height: 500px;
  9280. }
  9281. .select_box2_img {
  9282. width: calc(100% - 310px);
  9283. height: 100%;
  9284. overflow: auto;
  9285. background: #fff;
  9286. border-radius: 5px;
  9287. }
  9288. .select_box2_img img {
  9289. width: 100%;
  9290. }
  9291. .select_box2_answer {
  9292. background: #fff;
  9293. margin-left: 10px;
  9294. border-radius: 5px;
  9295. width: 300px;
  9296. overflow: auto;
  9297. height: 100%;
  9298. display: flex;
  9299. flex-direction: column;
  9300. align-items: center;
  9301. padding-top: 10px;
  9302. box-sizing: border-box;
  9303. }
  9304. .select_box2_answer_box {
  9305. margin: 0 0 10px 0;
  9306. width: 85%;
  9307. }
  9308. .rate_textarea {
  9309. font: inherit;
  9310. color: currentColor;
  9311. width: 100%;
  9312. padding: 8px 14px;
  9313. display: block;
  9314. min-width: 0;
  9315. outline: none;
  9316. border: 1px solid rgba(0, 0, 0, 0.23);
  9317. border-radius: 4px;
  9318. box-sizing: border-box;
  9319. background: #fff;
  9320. margin: 0 20px 0 0;
  9321. resize: none;
  9322. }
  9323. .select_answer_title {
  9324. text-align: left;
  9325. width: 85%;
  9326. margin-bottom: 10px;
  9327. font-size: 18px;
  9328. color: #8e8e8e;
  9329. }
  9330. .mask {
  9331. background-color: rgb(0 0 0 / 30%);
  9332. /* position: fixed; */
  9333. position: absolute;
  9334. top: 0;
  9335. left: 0;
  9336. width: 100%;
  9337. height: 100%;
  9338. z-index: 90;
  9339. display: flex;
  9340. align-items: center;
  9341. justify-content: center;
  9342. }
  9343. .progressBox {
  9344. width: 300px;
  9345. height: 150px;
  9346. background: #fff;
  9347. border-radius: 10px;
  9348. box-shadow: 0 0 6px 1px #bfbfbf;
  9349. display: flex;
  9350. align-items: center;
  9351. justify-content: center;
  9352. flex-direction: column;
  9353. position: relative;
  9354. color: #6c6c6c;
  9355. }
  9356. .progressBox>>>.el-progress-bar__outer {
  9357. background-color: #d1dfff !important;
  9358. }
  9359. .progressBox .lbox {
  9360. height: 50px;
  9361. font-size: 19px;
  9362. display: flex;
  9363. align-items: center;
  9364. color: #747474;
  9365. }
  9366. .progressBox .lbox img {
  9367. width: 40px;
  9368. margin-right: 20px;
  9369. }
  9370. .closeCss {
  9371. position: absolute;
  9372. top: 8px;
  9373. right: 8px;
  9374. cursor: pointer;
  9375. width: 20px;
  9376. height: 20px;
  9377. }
  9378. .closeCss>img {
  9379. width: 100%;
  9380. height: 100%;
  9381. }
  9382. .updateTips::after {
  9383. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  9384. font-size: 14px;
  9385. margin-left: 20px;
  9386. font-weight: 400;
  9387. color: #ff3a3a;
  9388. }
  9389. .updateMask {
  9390. width: 100%;
  9391. z-index: 3;
  9392. top: 0;
  9393. position: absolute;
  9394. /* background-color: rgba(0,0,0,.3); */
  9395. }
  9396. .t_j_box {
  9397. display: flex;
  9398. }
  9399. .t_j_box span:nth-child(1) {
  9400. width: 15%;
  9401. overflow: hidden;
  9402. margin-right: 10px;
  9403. text-overflow: ellipsis;
  9404. white-space: nowrap;
  9405. }
  9406. .t_j_box span:nth-child(2) {
  9407. width: 30%;
  9408. overflow: hidden;
  9409. text-overflow: ellipsis;
  9410. margin-right: 10px;
  9411. }
  9412. .t_j_box span:nth-child(3) {
  9413. max-width: calc(55% - 20px);
  9414. overflow: hidden;
  9415. text-overflow: ellipsis;
  9416. }
  9417. .sentenBox {
  9418. background: #fff;
  9419. height: 600px;
  9420. overflow: auto;
  9421. background-image: url("../../../assets/icon/conSentences/csBg.png");
  9422. background-position: 102%;
  9423. background-repeat: no-repeat;
  9424. background-size: 60%;
  9425. }
  9426. .addSen {
  9427. background: #409efe;
  9428. width: 90px;
  9429. color: #fff;
  9430. height: 35px;
  9431. text-align: center;
  9432. line-height: 35px;
  9433. border-radius: 5px;
  9434. float: right;
  9435. margin: 10px 20px 0 0;
  9436. cursor: pointer;
  9437. }
  9438. .sentenTop {
  9439. display: flex;
  9440. flex-direction: row;
  9441. flex-wrap: nowrap;
  9442. align-items: center;
  9443. }
  9444. .sentenTop>div:nth-child(2) {
  9445. width: 300px;
  9446. margin: 0 15px;
  9447. }
  9448. .sentenTop>div:nth-child(3) {
  9449. background: #409efe;
  9450. color: #fff;
  9451. width: 65px;
  9452. height: 35px;
  9453. text-align: center;
  9454. line-height: 35px;
  9455. border-radius: 5px;
  9456. cursor: pointer;
  9457. }
  9458. .cardList {
  9459. padding: 30px 0 20px 0;
  9460. display: flex;
  9461. flex-direction: row;
  9462. flex-wrap: wrap;
  9463. align-items: center;
  9464. box-sizing: border-box;
  9465. border-bottom: 1px solid #f4f4f4;
  9466. width: 98%;
  9467. margin: 0 auto;
  9468. }
  9469. .cardBox {
  9470. display: flex;
  9471. flex-direction: row;
  9472. flex-wrap: wrap;
  9473. align-items: center;
  9474. align-content: center;
  9475. }
  9476. .isCard,
  9477. .isCard1 {
  9478. width: 140px;
  9479. height: 65px;
  9480. text-align: center;
  9481. line-height: 65px;
  9482. font-size: 20px;
  9483. cursor: pointer;
  9484. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  9485. background-size: cover;
  9486. position: relative;
  9487. z-index: 99;
  9488. }
  9489. .isCard1 {
  9490. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  9491. }
  9492. .isCard:hover .deleteWord {
  9493. display: block;
  9494. }
  9495. .isCard>div:nth-child(1),
  9496. .isCard1>div:nth-child(1) {
  9497. white-space: nowrap;
  9498. overflow: hidden;
  9499. text-overflow: ellipsis;
  9500. width: 80%;
  9501. margin: 0 auto;
  9502. }
  9503. .card {
  9504. width: 140px;
  9505. height: 65px;
  9506. }
  9507. .card>img {
  9508. width: 100%;
  9509. height: 100%;
  9510. }
  9511. .rightCardBox {
  9512. margin: 10px 0 0 10px;
  9513. }
  9514. .rightCardBox>div:nth-child(1) {
  9515. margin-bottom: 10px;
  9516. }
  9517. .cardCss {
  9518. display: flex;
  9519. flex-direction: column;
  9520. flex-wrap: nowrap;
  9521. align-items: center;
  9522. border-bottom: 3px solid #b4c3d3;
  9523. padding: 0 0 5px 0;
  9524. margin-right: 10px;
  9525. }
  9526. .cardCss>div:nth-child(2) {
  9527. background: #5b7b9d;
  9528. color: #fff;
  9529. width: 20px;
  9530. height: 20px;
  9531. border-radius: 50%;
  9532. text-align: center;
  9533. line-height: 20px;
  9534. }
  9535. .sentenTopBox {
  9536. display: flex;
  9537. flex-direction: row;
  9538. flex-wrap: nowrap;
  9539. align-items: center;
  9540. justify-content: space-between;
  9541. padding: 55px 0 0 20px;
  9542. box-sizing: border-box;
  9543. width: 85%;
  9544. }
  9545. .stepsBottom {
  9546. width: 85%;
  9547. margin-bottom: 20px;
  9548. box-shadow: 0 0 10px 10px #f7f7f7;
  9549. background: #f7f7f7;
  9550. border-radius: 10px;
  9551. overflow: hidden;
  9552. }
  9553. .course_left {
  9554. width: 300px;
  9555. height: auto;
  9556. position: relative;
  9557. }
  9558. .stepsBottom2 {
  9559. width: 300px;
  9560. margin: 20px 0;
  9561. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  9562. /* background: #f7f7f7; */
  9563. border-radius: 10px;
  9564. overflow: hidden;
  9565. height: fit-content;
  9566. position: relative;
  9567. /* transition: all .5s; */
  9568. }
  9569. .navTop {
  9570. background: #53749b;
  9571. color: #fff;
  9572. height: 40px;
  9573. line-height: 40px;
  9574. padding-left: 15px;
  9575. font-size: 18px;
  9576. }
  9577. .navBottom {
  9578. background: #6b91b7;
  9579. height: 300px;
  9580. overflow: auto;
  9581. }
  9582. .navTask {
  9583. display: flex;
  9584. flex-direction: row;
  9585. flex-wrap: nowrap;
  9586. align-items: center;
  9587. padding: 5px 5px 5px 0;
  9588. cursor: pointer;
  9589. background: #ffffff;
  9590. width: 95%;
  9591. margin: 10px auto;
  9592. box-sizing: border-box;
  9593. border-radius: 5px;
  9594. }
  9595. .isNavTask {
  9596. /* background: #7e9ebd; */
  9597. }
  9598. .navTask>div:nth-child(1) {
  9599. background: #468fe4;
  9600. color: #fff;
  9601. width: 65px;
  9602. height: 25px;
  9603. line-height: 25px;
  9604. text-align: center;
  9605. border-radius: 5px;
  9606. margin: 0 10px 0 5px;
  9607. font-size: 14px;
  9608. }
  9609. .navTask>div:nth-child(2) {
  9610. /* color: #fff; */
  9611. /* max-width: 130px; */
  9612. width: 130px;
  9613. white-space: nowrap;
  9614. overflow: hidden;
  9615. text-overflow: ellipsis;
  9616. font-size: 15px;
  9617. }
  9618. .groupBox {}
  9619. .groupContent+.groupContent {
  9620. margin-top: 30px;
  9621. }
  9622. .groupTitle {
  9623. font-size: 24px;
  9624. color: rgb(80, 80, 80);
  9625. margin-bottom: 20px;
  9626. }
  9627. .groupName {
  9628. display: flex;
  9629. align-items: center;
  9630. }
  9631. .groupn {
  9632. font-size: 15px;
  9633. margin-right: 10px;
  9634. }
  9635. .groupName+.groupName {
  9636. margin-top: 15px;
  9637. }
  9638. .groupBtn {
  9639. margin-left: 10px;
  9640. }
  9641. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  9642. text-align: left;
  9643. }
  9644. .radioBox>div {
  9645. margin: 10px 0 0 10px;
  9646. }
  9647. .radioBox>>>.el-radio__input,
  9648. .radioBox>>>.el-checkbox__inner {
  9649. margin-left: 10px;
  9650. }
  9651. .radioBox>>>.el-radio__label,
  9652. .radioBox>>>.el-checkbox__label {
  9653. display: flex;
  9654. align-items: center;
  9655. }
  9656. .inImg {
  9657. width: 50px;
  9658. }
  9659. .inImg>img {
  9660. width: 100%;
  9661. height: 100%;
  9662. object-fit: cover;
  9663. }
  9664. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  9665. height: auto;
  9666. }
  9667. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  9668. width: 200px;
  9669. height: 100px;
  9670. object-fit: contain;
  9671. background: unset;
  9672. }
  9673. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  9674. display: none;
  9675. }
  9676. .tcMember+.tcMember::before {
  9677. content: "、";
  9678. }
  9679. .xzUpImg {
  9680. width: 25px;
  9681. height: 25px;
  9682. cursor: pointer;
  9683. }
  9684. .xzUpImg>img {
  9685. width: 100%;
  9686. height: 100%;
  9687. }
  9688. .closeCss {
  9689. position: absolute;
  9690. top: 8px;
  9691. right: 8px;
  9692. cursor: pointer;
  9693. width: 20px;
  9694. height: 20px;
  9695. }
  9696. .closeCss>img {
  9697. width: 100%;
  9698. height: 100%;
  9699. }
  9700. .moveBtn {
  9701. display: flex;
  9702. flex-direction: column;
  9703. align-items: flex-end;
  9704. width: 40px;
  9705. }
  9706. .timuUpImg {
  9707. display: flex;
  9708. flex-direction: row;
  9709. align-items: center;
  9710. }
  9711. .timuUpImg>div:nth-child(1) {
  9712. margin-right: 10px;
  9713. }
  9714. .timuImgBox {
  9715. margin: 10px 0;
  9716. display: flex;
  9717. flex-direction: column;
  9718. flex-wrap: wrap;
  9719. align-items: flex-start;
  9720. }
  9721. .timuImg {
  9722. width: 100px;
  9723. margin: 5px 0;
  9724. cursor: pointer;
  9725. position: relative;
  9726. }
  9727. .timuImg:hover .deleteWord {
  9728. display: block;
  9729. }
  9730. .deleteWord {
  9731. width: 25px;
  9732. height: 25px;
  9733. position: absolute;
  9734. right: -5px;
  9735. top: -5px;
  9736. cursor: pointer;
  9737. display: none;
  9738. }
  9739. .timuImg>img,
  9740. .deleteWord>img {
  9741. width: 100%;
  9742. height: 100%;
  9743. object-fit: cover;
  9744. }
  9745. .e_add_delete {
  9746. cursor: pointer;
  9747. margin-left: 10px;
  9748. }
  9749. .pType_box {
  9750. margin-top: 30px;
  9751. align-items: flex-end;
  9752. }
  9753. .noneBox {
  9754. height: 100%;
  9755. width: 100%;
  9756. display: flex;
  9757. align-items: center;
  9758. justify-content: center;
  9759. margin-top: 150px;
  9760. }
  9761. .noneBox>img {
  9762. width: 300px;
  9763. }
  9764. </style>