addCourse.vue 492 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  6. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  7. <div class="courseTop">
  8. <div class="stepsNav">
  9. <el-breadcrumb separator-class="el-icon-arrow-right">
  10. <el-breadcrumb-item :to="{
  11. path:
  12. '/course?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org +
  18. '&role=' +
  19. role,
  20. }">课程管理</el-breadcrumb-item>
  21. <el-breadcrumb-item>
  22. <span style="color: rgb(15, 126, 255)">添加课程</span>
  23. </el-breadcrumb-item>
  24. </el-breadcrumb>
  25. </div>
  26. <div class="r_pub_button_retrun" @click="lastSteps()">返回</div>
  27. </div>
  28. <div class="rightBox" style="padding: 0;"
  29. :style="{ height: (!isBtnDisplay) ? 'calc(100% - 50px)' : 'calc(100% - 120px)' }" v-if="this.steps == 1"
  30. @mousewheel="scrollChange">
  31. <div class="updateMask" :style="{
  32. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  33. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  34. <div class="whiteBg" style="background:unset;padding: 0;">
  35. <div>
  36. <div class="basic_box" style="padding: 0;">
  37. <div class="big_box">
  38. <div class="left_first">
  39. <div :class="{
  40. updateTips: cid && userid != courseUserid && role != '1',
  41. }">
  42. <div style="width: 100%;">
  43. <div class="course_input_box">
  44. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  45. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  46. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  47. <!-- background: #f6f6f6; -->
  48. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  49. style="justify-content: center;width: 200px;"></el-switch>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  54. <span>类型</span>
  55. <!-- 学科+ 主题+ 未来+ -->
  56. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  57. style="display: flex; align-items: center">
  58. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  59. <el-radio :label="item.name">{{
  60. item.name
  61. }}</el-radio>
  62. </div>
  63. </el-radio-group>
  64. </div>
  65. <div class="both">
  66. <div class="choose">
  67. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  68. <span v-if="CourseTypeJson[item.id].length > 0 &&
  69. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  70. ? pTypeCheck.indexOf(item.id) != -1
  71. : true)
  72. ">{{ item.name }}:</span>
  73. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  74. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  75. ? pTypeCheck.indexOf(item.id) != -1
  76. : true)
  77. ">
  78. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  79. item1.name }}</el-checkbox>
  80. </el-checkbox-group>
  81. <!-- <div
  82. v-else
  83. style="font-size: 14px; margin-left: -8px"
  84. >
  85. 暂无
  86. </div> -->
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="right_first">
  92. <!-- <div class="ai_box">
  93. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  94. </div> -->
  95. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  96. <div style="width: 100%;">
  97. <div class="uploadFm" @click="choosePicVisible = true" :class="{uploadFm2:cover.length}">
  98. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0"/>
  99. <img :src="cover[0].url" alt="" class="cover_p" v-else/>
  100. <div v-if="cover.length == 0">点击添加封面</div>
  101. <div class="cover_mask"><img src="../../../assets/icon/new/cover_update.png" /><span style="margin-top:5px;">修改封面</span></div>
  102. </div>
  103. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  104. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  105. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  106. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  107. <i class="el-icon-plus"></i>
  108. </el-upload> -->
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="whiteBg" style="margin-top: 10px">
  116. <div class="wb_j_box">
  117. <div class="wb_j_box_content">
  118. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  119. (dialogVisibleClass = true),
  120. (classSearch = ''),
  121. (gradeId = ''),
  122. getClass()
  123. ">添加班级</button>
  124. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  125. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  126. getClassC(tc) }}</span>
  127. </div> -->
  128. <div class="wb_j_box_btn" @click="
  129. (dialogVisibleClass = true),
  130. (classSearch = ''),
  131. (gradeId = ''),
  132. getClass()
  133. ">
  134. <div class="wb_j_box_title">授课班级</div>
  135. <div class="wb_j_box_btn_c">
  136. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  137. v-if="checkboxList2.length" popper-class="text_tooltip2">
  138. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  139. </el-tooltip>
  140. <div v-else class="wb_j_box_span">请选择授课班级</div>
  141. <div class="wb_j_box_arrow"></div>
  142. </div>
  143. </div>
  144. </div>
  145. <div style="margin-left: auto;">
  146. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask">智能粘贴</button>
  147. </div>
  148. </div>
  149. </div>
  150. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="false">
  151. <div class="right_title">课程简要描述</div>
  152. <div style="width: 95%; padding: 15px 0px 15px 20px">
  153. <div style="width: 55%">
  154. <textarea rows="8" class="binfo_input" cols v-model="courseText"></textarea>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="whiteBg" style="border-radius: 0; background:#F0F2F5;">
  159. <!-- <div class="right_title">
  160. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" />
  161. </div>
  162. <span style="margin:0 10px">上传课程内容</span>
  163. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px"
  164. v-if="isPasteTask">智能粘贴</button>
  165. </div> -->
  166. <div style="display: flex">
  167. <div class="course_left">
  168. <div class="stepsBottom2">
  169. <div class="navBottom" :style="{ height: heightPx }">
  170. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  171. .taskJson" :key="tIndex" :class="{
  172. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex,
  173. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex,
  174. }">
  175. <div @dragstart="dragTaskStart(t, tIndex)" @dragover.prevent="dragTaskOver(tIndex)"
  176. @dragend="dragTaskEnd()" draggable @click="goToTask(tIndex)" class="navTask" :class="{
  177. isNavTask:
  178. isClickColor > 0 && isClickColor == tIndex + 1,
  179. isNavOpen: t.toolOpen,
  180. }">
  181. <div style="left: 8px;" class="chapter_upload_drag"></div>
  182. <div class="nt_taskBox">
  183. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  184. <div class="nt_taskName">
  185. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  186. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  187. </el-tooltip>
  188. </div>
  189. </div>
  190. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  191. 1
  192. ">
  193. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  194. @click.stop="taskMove(1, tIndex)"></div>
  195. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  196. @click.stop="taskMove(2, tIndex)"></div>
  197. </div> -->
  198. </div>
  199. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  200. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  201. @click="jumpGj(tIndex, toolIndex2)">
  202. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  203. <div>工具{{ toolIndex2 + 1 }}:</div>
  204. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. <div class="basic_box2">
  213. <div style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  214. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  215. <div class="taskBorder" style="padding: 20px 20px 10px;">
  216. <div class="basic_box" style="
  217. margin: 0;
  218. min-height: 0;
  219. padding: 10px 0 0 !important;
  220. ">
  221. <div style="
  222. display: flex;
  223. margin: 0 0 0 0;
  224. flex-direction: row;
  225. justify-content: space-between;
  226. align-items: center;
  227. ">
  228. <div class="lineTitle" style="margin-bottom:10px">学习内容</div>
  229. <div style="margin-bottom:10px" v-if="!item.taskJson[0].isFoldchapter" class="show_taskD show"
  230. @click="foldC(0)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  231. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(0)"><img
  232. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  233. </div>
  234. <div v-if="!item.taskJson[0].isFoldchapter">
  235. <div class="add_chapters_box add_c_none" v-if="item.taskJson[0].chapterData &&
  236. item.taskJson[0].chapterData.length == 0
  237. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  238. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  239. <div @dragstart="dragStart(item1, index1, 0)" @dragover.prevent="dragOver(index1, 0)"
  240. @dragend="dragEnd()" draggable class="chapter_upload" v-for="(item1, index1) in item.taskJson[0]
  241. .chapterData" :key="item1.id" @click="
  242. getChapterData(
  243. $event,
  244. unitIndex,
  245. index,
  246. index1,
  247. item1.type
  248. )
  249. " :class="{
  250. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+'0'+'-'+index1 && oldIndex > index1,
  251. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+'0'+'-'+index1 && oldIndex < index1,
  252. }">
  253. <div class="chapter_upload_drag"></div>
  254. <div class="chapter_upload_t" style="width: 100%"></div>
  255. <div class="chapter_upload_o" style="
  256. position: relative;
  257. display: flex;
  258. align-items: center;
  259. ">
  260. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  261. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  262. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  263. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  264. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  265. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  266. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  267. </div>
  268. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  269. </div>
  270. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  271. </div>
  272. </div>
  273. <div class="chapter_upload_n">
  274. <input readonly="true" v-if="item1.type == 2 ||
  275. item1.type == 3 ||
  276. item1.type == 12 ||
  277. item1.type == 13 ||
  278. item1.type == 7
  279. " :placeholder="item1.name" @click="
  280. updataVideoT(
  281. $event,
  282. unitIndex,
  283. 0,
  284. index1
  285. )
  286. " style="
  287. border: none;
  288. outline: none;
  289. width: 80%;
  290. minwidth: 215px;
  291. z-index: 99;
  292. font-size: 14px;
  293. white-space: nowrap;
  294. overflow: hidden;
  295. text-overflow: ellipsis;
  296. " />
  297. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  298. border: none;
  299. outline: none;
  300. width: 80%;
  301. white-space: nowrap;
  302. overflow: hidden;
  303. text-overflow: ellipsis;
  304. " readonly="true" @click="selectAttText(0, index1)" />
  305. <input :placeholder="item1.title ? item1.title : '链接'
  306. " v-if="item1.type == 8" style="
  307. border: none;
  308. outline: none;
  309. width: 80%;
  310. white-space: nowrap;
  311. overflow: hidden;
  312. text-overflow: ellipsis;
  313. " readonly="true" @click="selectLine(0, index1)" />
  314. <input :placeholder="item1.title ? item1.title : '链接'
  315. " v-if="item1.type == 14" style="
  316. border: none;
  317. outline: none;
  318. width: 80%;
  319. white-space: nowrap;
  320. overflow: hidden;
  321. text-overflow: ellipsis;
  322. " readonly="true" @click="openUpdateSource(0, index1)" />
  323. </div>
  324. <div class="chapter_upload_ic">
  325. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  326. </div>
  327. <div class="chapter_upload_ud" style="z-index: 99">
  328. <div class="chapter_upload_up" @click.stop="
  329. upCd(
  330. $event,
  331. unitIndex,
  332. index,
  333. 0,
  334. index1
  335. )
  336. "></div>
  337. <div class="chapter_upload_down" @click.stop="
  338. downCd(
  339. $event,
  340. unitIndex,
  341. index,
  342. 0,
  343. index1
  344. )
  345. "></div>
  346. </div>
  347. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  348. item1.type == 3 ||
  349. item1.type == 12 ||
  350. item1.type == 13 ||
  351. item1.type == 7
  352. " @click.stop="
  353. updataVideoT(
  354. $event,
  355. unitIndex,
  356. 0,
  357. index1
  358. )
  359. ">
  360. <div></div>
  361. </div>
  362. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  363. @click="selectAttText(0, index1)">
  364. <div></div>
  365. </div>
  366. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  367. @click="selectLine(0, index1)">
  368. <div></div>
  369. </div>
  370. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  371. @click="openUpdateSource(0, index1)">
  372. <div></div>
  373. </div>
  374. <div class="chapter_upload_ic_r" @click.stop="
  375. deleteChapterData(
  376. $event,
  377. unitIndex,
  378. index,
  379. index1,
  380. 0
  381. )
  382. ">
  383. <div></div>
  384. </div>
  385. </div>
  386. </div>
  387. </div>
  388. </div>
  389. </div>
  390. <div class="add_info_box" style="margin:10px 0 0" v-if="!item.taskJson[0].isFoldchapter">
  391. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  392. 文件
  393. <input type="file" accept="*" style="display: none" v-if="inputShow"
  394. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  395. </button>
  396. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  397. 图文
  398. </button>
  399. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  400. 链接
  401. </button>
  402. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  403. 代码
  404. </button>
  405. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  406. 资源
  407. </button> -->
  408. <!-- <button class="info_btn" @click="addImg($event)">
  409. 其他附件
  410. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  411. " />
  412. </button> -->
  413. </div>
  414. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  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[0]
  427. .isFinishSize
  428. }}M</span>
  429. /
  430. <span>{{
  431. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  432. .isAllSize
  433. }}M</span>
  434. </div>
  435. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  436. .progress
  437. ? unitJson[unitIndex].chapterInfo[0]
  438. .taskJson[0].progress
  439. : 0
  440. " style="width: 80%"></el-progress>
  441. </div>
  442. </div>
  443. </div>
  444. </div>
  445. <div class="taskBorder" :style="{
  446. minHeight: unitJson[unitIndex].easy && 'unset',
  447. }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  448. <div v-if="unitJson[unitIndex].easy != 1">
  449. <div :style="{
  450. marginBottom:
  451. unitJson[unitIndex].easy == 3 ||
  452. (unitJson[unitIndex].easy == 5 &&
  453. itemTask.taskType == 1)
  454. ? '75px'
  455. : '0',
  456. }">
  457. <div style="
  458. display: flex;
  459. margin: 0px 0 20px;
  460. flex-direction: row;
  461. justify-content: flex-start;
  462. align-items: center;
  463. ">
  464. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  465. </div>
  466. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  467. flex-direction: row;
  468. justify-content: flex-start;
  469. align-items: center;
  470. ">
  471. <!-- <div class="cc_title">
  472. 任务{{ itemTaskIndex + 1 }}
  473. </div> -->
  474. <div class="cc_input">
  475. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  476. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  477. itemTaskIndex
  478. ].task
  479. " />
  480. <div v-if="!itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  481. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  482. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  483. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  484. </div>
  485. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  486. </div>
  487. </div>
  488. </div>
  489. <div style="margin: 25px 0" v-if="!itemTask.isFold2">
  490. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  491. itemTaskIndex
  492. ].taskDetail
  493. " @change="change"></editor-bar> -->
  494. <textarea rows="2" v-autoHeight="70" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  495. itemTaskIndex
  496. ].taskDetail
  497. "></textarea>
  498. </div>
  499. <div class="toolChoose" style="margin: 20px 0">
  500. <div class="tools">
  501. <div class="leftTools" style="
  502. width: 100%;
  503. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  504. <div style="
  505. display: flex;
  506. flex-direction: row;
  507. align-items: baseline;
  508. flex-wrap: nowrap;
  509. justify-content: flex-start;
  510. position: relative;
  511. ">
  512. <div :id="'gj' + itemTaskIndex + '' + toolIndex"
  513. style="margin-right: 20px; font-weight: bold">
  514. 步骤 {{ toolIndex + 1 }} :
  515. </div>
  516. <div class="chooseWho">
  517. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  518. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  519. 互动类
  520. </div>
  521. <div :class="itemTool.toolType == 1
  522. ? 'isChooseActive'
  523. : ''
  524. " @click="
  525. (itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()
  526. ">
  527. 思维类
  528. </div>
  529. <div :class="itemTool.toolType == 6
  530. ? 'isChooseActive'
  531. : ''
  532. " @click="
  533. (itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()
  534. ">
  535. 协作类
  536. </div>
  537. <div :class="itemTool.toolType == 2
  538. ? 'isChooseActive'
  539. : ''
  540. " @click="
  541. (itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()
  542. ">
  543. 测评类
  544. </div>
  545. <div :class="itemTool.toolType == 7
  546. ? 'isChooseActive'
  547. : ''
  548. " @click="
  549. (itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()
  550. ">
  551. 评价类
  552. </div>
  553. <div :class="itemTool.toolType == 3
  554. ? 'isChooseActive'
  555. : ''
  556. " @click="
  557. (itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()
  558. ">
  559. 编程类
  560. </div>
  561. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  562. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  563. 学科类
  564. </div>
  565. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  566. " @click="(itemTool.toolType = 4), $forceUpdate()">
  567. 其他
  568. </div> -->
  569. </div>
  570. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" v-if="itemTask.toolChoose.length > 1">
  571. <div class="chapter_upload_up2" @click.stop="
  572. upTool(
  573. $event,
  574. unitIndex,
  575. itemTaskIndex,
  576. toolIndex
  577. )
  578. ">上移</div>
  579. <div class="chapter_upload_down2" @click.stop="
  580. downTool(
  581. $event,
  582. unitIndex,
  583. itemTaskIndex,
  584. toolIndex
  585. )
  586. ">下移</div>
  587. </div>
  588. <div v-if="!itemTool.isFold3" class="show_toolD show"
  589. @click="fold3(itemTaskIndex, toolIndex)"
  590. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  591. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  592. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  593. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  594. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  595. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  596. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  597. </div>
  598. <div style="min-height: 163px" v-show="!itemTool.isFold3">
  599. <div class="toolSort" v-if="itemTool.toolType == 0">
  600. <!-- <div class="tool">
  601. <div
  602. class="whiteBIcon"
  603. @click="addTools(8, itemTaskIndex, toolIndex)"
  604. >
  605. <img src="../../../assets/icon/secondToolList/library.png" alt />
  606. <div style="margin: 5px 0">素材库</div>
  607. </div>
  608. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  609. <img
  610. src="../../../assets/icon/checkNo.png"
  611. alt
  612. v-if="itemTool.tool.indexOf(8) == -1"
  613. />
  614. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  615. alt /><span>已选择</span></div>
  616. </div>
  617. </div>-->
  618. <!-- <div class="tool">
  619. <div
  620. class="whiteBIcon"
  621. @click="addTools(17, itemTaskIndex, toolIndex)"
  622. >
  623. <img
  624. src="../../../assets/icon/secondToolList/library.png"
  625. alt
  626. />
  627. <div style="margin: 5px 0">学习资料</div>
  628. </div>
  629. <div
  630. class="check"
  631. @click="addTools(17, itemTaskIndex, toolIndex)"
  632. >
  633. <img
  634. src="../../../assets/icon/checkNo.png"
  635. alt
  636. v-if="itemTool.tool.indexOf(17) == -1"
  637. />
  638. <img
  639. src="../../../assets/icon/checkedIs.png"
  640. alt
  641. v-else
  642. />
  643. </div>10
  644. </div> -->
  645. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  646. @click="addTools(10, itemTaskIndex, toolIndex)">
  647. <div class="whiteBIcon" @click.stop="
  648. openTools(itemTaskIndex, 10, toolIndex)
  649. ">
  650. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  651. <div style="margin: 5px 0">倒计时</div>
  652. </div>
  653. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  654. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  655. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  656. <!-- <div class="check" @click="
  657. addTools(10, itemTaskIndex, toolIndex)
  658. ">
  659. <img src="../../../assets/icon/checkNo.png" alt
  660. v-if="itemTool.tool.indexOf(10) == -1" />
  661. <div class="checkDiv" v-else>
  662. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  663. </div>
  664. </div> -->
  665. </div>
  666. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  667. @click="addTools(65, itemTaskIndex, toolIndex)">
  668. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  669. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  670. <div style="margin: 5px 0">挑人</div>
  671. </div>
  672. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  673. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  674. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  675. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  676. <img src="../../../assets/icon/checkNo.png" alt
  677. v-if="itemTool.tool.indexOf(65) == -1" />
  678. <div class="checkDiv" v-else>
  679. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  680. </div>
  681. </div> -->
  682. </div>
  683. <!-- <div class="tool">
  684. <div
  685. class="whiteBIcon"
  686. @click="
  687. openTools(itemTaskIndex, 49, toolIndex)
  688. "
  689. >
  690. <img
  691. src="../../../assets/icon/fourthToolList/group.png"
  692. alt
  693. />
  694. <div style="margin: 5px 0">学生分组</div>
  695. </div>
  696. <div
  697. class="check"
  698. @click="
  699. addTools(49, itemTaskIndex, toolIndex)
  700. "
  701. >
  702. <img
  703. src="../../../assets/icon/checkNo.png"
  704. alt
  705. v-if="itemTool.tool.indexOf(49) == -1"
  706. />
  707. <div class="checkDiv" v-else>
  708. <img
  709. src="../../../assets/icon/checkedIs.png"
  710. alt
  711. /><span>已选择</span>
  712. </div>
  713. </div>
  714. </div> -->
  715. <!-- <div class="tool">
  716. <div class="whiteBIcon" @click="
  717. openTools(itemTaskIndex, 62, toolIndex)
  718. ">
  719. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  720. <div style="margin: 5px 0">交互视频</div>
  721. </div>
  722. <div class="check" @click="
  723. addTools(62, itemTaskIndex, toolIndex)
  724. ">
  725. <img src="../../../assets/icon/checkNo.png" alt
  726. v-if="itemTool.tool.indexOf(62) == -1" />
  727. <div class="checkDiv" v-else>
  728. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  729. </div>
  730. </div>
  731. </div> -->
  732. </div>
  733. <div class="toolSort" v-if="itemTool.toolType == 1">
  734. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  735. @click="addTools(7, itemTaskIndex, toolIndex)">
  736. <div class="whiteBIcon" @click.stop="
  737. addTools(7, itemTaskIndex, toolIndex)
  738. ">
  739. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  740. <div style="margin: 5px 0">思维网格</div>
  741. </div>
  742. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  743. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  744. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  745. <!-- <div class="check" @click="
  746. addTools(7, itemTaskIndex, toolIndex)
  747. ">
  748. <img src="../../../assets/icon/checkNo.png" alt
  749. v-if="itemTool.tool.indexOf(7) == -1" />
  750. <div class="checkDiv" v-else>
  751. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  752. </div>
  753. </div> -->
  754. </div>
  755. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  756. @click="addTools(1, itemTaskIndex, toolIndex)">
  757. <div class="whiteBIcon" @click.stop="
  758. openTools(itemTaskIndex, 1, toolIndex)
  759. ">
  760. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  761. <div style="margin: 5px 0">电子白板</div>
  762. </div>
  763. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  764. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  765. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  766. <!-- <div class="check" @click="
  767. addTools(1, itemTaskIndex, toolIndex)
  768. ">
  769. <img src="../../../assets/icon/checkNo.png" alt
  770. v-if="itemTool.tool.indexOf(1) == -1" />
  771. <div class="checkDiv" v-else>
  772. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  773. </div>
  774. </div> -->
  775. </div>
  776. <!-- <div class="tool">
  777. <div
  778. class="whiteBIcon"
  779. @click="addTools(2, itemTaskIndex, toolIndex)"
  780. >
  781. <img
  782. src="../../../assets/icon/secondToolList/note.png"
  783. alt
  784. />
  785. <div style="margin: 5px 0">便签</div>
  786. </div>
  787. <div
  788. class="check"
  789. @click="addTools(2, itemTaskIndex, toolIndex)"
  790. >
  791. <img
  792. src="../../../assets/icon/checkNo.png"
  793. alt
  794. v-if="itemTool.tool.indexOf(2) == -1"
  795. />
  796. <div class="checkDiv" v-else>
  797. <img
  798. src="../../../assets/icon/checkedIs.png"
  799. alt
  800. /><span>已选择</span>
  801. </div>
  802. </div>
  803. </div> -->
  804. <!-- <div class="tool">
  805. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  806. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  807. <div style="margin: 5px 0">协同文档</div>
  808. </div>
  809. <div
  810. class="check"
  811. @click="addTools(6, itemTaskIndex, toolIndex)"
  812. >
  813. <img
  814. src="../../../assets/icon/checkNo.png"
  815. alt
  816. v-if="itemTool.tool.indexOf(6) == -1"
  817. />
  818. <div class="checkDiv" v-else>
  819. <img
  820. src="../../../assets/icon/checkedIs.png"
  821. alt
  822. /><span>已选择</span>
  823. </div>
  824. </div>
  825. </div> -->
  826. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  827. @click="addTools(52, itemTaskIndex, toolIndex)">
  828. <div class="whiteBIcon" @click.stop="
  829. openTools(itemTaskIndex, 52, toolIndex)
  830. ">
  831. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  832. <div style="margin: 5px 0">文档</div>
  833. </div>
  834. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  835. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  836. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  837. <!-- <div class="check" @click="
  838. addTools(52, itemTaskIndex, toolIndex)
  839. ">
  840. <img src="../../../assets/icon/checkNo.png" alt
  841. v-if="itemTool.tool.indexOf(52) == -1" />
  842. <div class="checkDiv" v-else>
  843. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  844. </div>
  845. </div> -->
  846. </div>
  847. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  848. @click="addTools(3, itemTaskIndex, toolIndex)">
  849. <div class="whiteBIcon" @click.stop="
  850. openTools(itemTaskIndex, 3, toolIndex)
  851. ">
  852. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  853. <div style="margin: 5px 0">思维导图</div>
  854. </div>
  855. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  856. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  857. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  858. <!-- <div class="check" @click="
  859. addTools(3, itemTaskIndex, toolIndex)
  860. ">
  861. <img src="../../../assets/icon/checkNo.png" alt
  862. v-if="itemTool.tool.indexOf(3) == -1" />
  863. <div class="checkDiv" v-else>
  864. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  865. </div>
  866. </div> -->
  867. </div>
  868. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  869. @click="addTools(48, itemTaskIndex, toolIndex)">
  870. <div class="whiteBIcon" @click.stop="
  871. openTools(itemTaskIndex, 48, toolIndex)
  872. ">
  873. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  874. <div style="margin: 5px 0">表格</div>
  875. </div>
  876. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  877. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  878. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  879. <!-- <div class="check" @click="
  880. addTools(48, itemTaskIndex, toolIndex)
  881. ">
  882. <img src="../../../assets/icon/checkNo.png" alt
  883. v-if="itemTool.tool.indexOf(48) == -1" />
  884. <div class="checkDiv" v-else>
  885. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  886. </div>
  887. </div> -->
  888. </div>
  889. </div>
  890. <div class="toolSort" v-if="itemTool.toolType == 6">
  891. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  892. @click="addTools(49, itemTaskIndex, toolIndex)">
  893. <div class="whiteBIcon" @click.stop="
  894. openTools(itemTaskIndex, 49, toolIndex)
  895. ">
  896. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  897. <div style="margin: 5px 0">学生分组</div>
  898. </div>
  899. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  900. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  901. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  902. <!-- <div class="check" @click="
  903. addTools(49, itemTaskIndex, toolIndex)
  904. ">
  905. <img src="../../../assets/icon/checkNo.png" alt
  906. v-if="itemTool.tool.indexOf(49) == -1" />
  907. <div class="checkDiv" v-else>
  908. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  909. </div>
  910. </div> -->
  911. </div>
  912. </div>
  913. <div class="toolSort" v-if="itemTool.toolType == 2">
  914. <!-- <div class="tool">
  915. <div
  916. class="whiteBIcon"
  917. @click="addTools(5, itemTaskIndex, toolIndex)"
  918. >
  919. <img
  920. src="../../../assets/icon/thirdToolList/score.png"
  921. alt
  922. />
  923. <div style="margin: 5px 0">量规评分</div>
  924. </div>
  925. <div
  926. class="check"
  927. @click="addTools(5, itemTaskIndex, toolIndex)"
  928. >
  929. <img
  930. src="../../../assets/icon/checkNo.png"
  931. alt
  932. v-if="itemTool.tool.indexOf(5) == -1"
  933. />
  934. <img
  935. src="../../../assets/icon/checkedIs.png"
  936. alt
  937. v-else
  938. />
  939. </div>
  940. </div>-->
  941. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  942. @click="addTools(4, itemTaskIndex, toolIndex)">
  943. <div class="whiteBIcon" @click.stop="
  944. openTools(itemTaskIndex, 4, toolIndex)
  945. ">
  946. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  947. <div style="margin: 5px 0">问卷调查</div>
  948. </div>
  949. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  950. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  951. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  952. <!-- <div class="check" @click="
  953. addTools(4, itemTaskIndex, toolIndex)
  954. ">
  955. <img src="../../../assets/icon/checkNo.png" alt
  956. v-if="itemTool.tool.indexOf(4) == -1" />
  957. <div class="checkDiv" v-else>
  958. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  959. </div>
  960. </div> -->
  961. </div>
  962. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  963. @click="addTools(45, itemTaskIndex, toolIndex)">
  964. <div class="whiteBIcon" @click.stop="
  965. openTools(itemTaskIndex, 45, toolIndex)
  966. ">
  967. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  968. <div style="margin: 5px 0">选择题</div>
  969. </div>
  970. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  971. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  972. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  973. <!-- <div class="check" @click="
  974. addTools(45, itemTaskIndex, toolIndex)
  975. ">
  976. <img src="../../../assets/icon/checkNo.png" alt
  977. v-if="itemTool.tool.indexOf(45) == -1" />
  978. <div class="checkDiv" v-else>
  979. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  980. </div>
  981. </div> -->
  982. </div>
  983. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  984. @click="addTools(15, itemTaskIndex, toolIndex)">
  985. <div class="whiteBIcon" @click.stop="
  986. openTools(itemTaskIndex, 15, toolIndex)
  987. ">
  988. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  989. <div style="margin: 5px 0">问答</div>
  990. </div>
  991. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  992. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  993. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  994. <!-- <div class="check" @click="
  995. addTools(15, itemTaskIndex, toolIndex)
  996. ">
  997. <img src="../../../assets/icon/checkNo.png" alt
  998. v-if="itemTool.tool.indexOf(15) == -1" />
  999. <div class="checkDiv" v-else>
  1000. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1001. </div>
  1002. </div> -->
  1003. </div>
  1004. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1005. @click="addTools(16, itemTaskIndex, toolIndex)">
  1006. <div class="whiteBIcon" @click.stop="
  1007. addTools(16, itemTaskIndex, toolIndex)
  1008. ">
  1009. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1010. <div style="margin: 5px 0">作业提交</div>
  1011. </div>
  1012. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1013. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1014. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1015. <!-- <div class="check" @click="
  1016. addTools(16, itemTaskIndex, toolIndex)
  1017. ">
  1018. <img src="../../../assets/icon/checkNo.png" alt
  1019. v-if="itemTool.tool.indexOf(16) == -1" />
  1020. <div class="checkDiv" v-else>
  1021. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1022. </div>
  1023. </div> -->
  1024. </div>
  1025. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1026. @click="addTools(50, itemTaskIndex, toolIndex)">
  1027. <div class="whiteBIcon" @click.stop="
  1028. addTools(50, itemTaskIndex, toolIndex)
  1029. ">
  1030. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1031. <div style="margin: 5px 0">批量上传</div>
  1032. </div>
  1033. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1034. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1035. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1036. <!-- <div class="check" @click="
  1037. addTools(50, itemTaskIndex, toolIndex)
  1038. ">
  1039. <img src="../../../assets/icon/checkNo.png" alt
  1040. v-if="itemTool.tool.indexOf(50) == -1" />
  1041. <div class="checkDiv" v-else>
  1042. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1043. </div>
  1044. </div> -->
  1045. </div>
  1046. <!-- <div class="tool">
  1047. <div
  1048. class="whiteBIcon"
  1049. @click="
  1050. openTools(itemTaskIndex, 40, toolIndex)
  1051. "
  1052. >
  1053. <img
  1054. src="../../../assets/icon/thirdToolList/eval.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">个人评价</div>
  1058. </div>
  1059. <div
  1060. class="check"
  1061. @click="
  1062. addTools(40, itemTaskIndex, toolIndex)
  1063. "
  1064. >
  1065. <img
  1066. src="../../../assets/icon/checkNo.png"
  1067. alt
  1068. v-if="itemTool.tool.indexOf(40) == -1"
  1069. />
  1070. <div class="checkDiv" v-else>
  1071. <img
  1072. src="../../../assets/icon/checkedIs.png"
  1073. alt
  1074. /><span>已选择</span>
  1075. </div>
  1076. </div>
  1077. </div> -->
  1078. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1079. @click="addTools(41, itemTaskIndex, toolIndex)">
  1080. <div class="whiteBIcon" @click.stop="
  1081. openTools(itemTaskIndex, 41, toolIndex)
  1082. ">
  1083. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1084. <div style="margin: 5px 0">选择匹配</div>
  1085. </div>
  1086. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1087. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1088. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1089. <!-- <div class="check" @click="
  1090. addTools(41, itemTaskIndex, toolIndex)
  1091. ">
  1092. <img src="../../../assets/icon/checkNo.png" alt
  1093. v-if="itemTool.tool.indexOf(41) == -1" />
  1094. <div class="checkDiv" v-else>
  1095. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1096. </div>
  1097. </div> -->
  1098. </div>
  1099. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1100. @click="addTools(47, itemTaskIndex, toolIndex)">
  1101. <div class="whiteBIcon" @click.stop="
  1102. openTools(itemTaskIndex, 47, toolIndex)
  1103. ">
  1104. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1105. <div style="margin: 5px 0">排序</div>
  1106. </div>
  1107. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1108. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1109. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1110. <!-- <div class="check" @click="
  1111. addTools(47, itemTaskIndex, toolIndex)
  1112. ">
  1113. <img src="../../../assets/icon/checkNo.png" alt
  1114. v-if="itemTool.tool.indexOf(47) == -1" />
  1115. <div class="checkDiv" v-else>
  1116. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1117. </div>
  1118. </div> -->
  1119. </div>
  1120. <!-- <div class="tool">
  1121. <div
  1122. class="whiteBIcon"
  1123. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1124. >
  1125. <img
  1126. src="../../../assets/icon/thirdToolList/mp3.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">上传音频</div>
  1130. </div>
  1131. <div
  1132. class="check"
  1133. @click="addTools(42, itemTaskIndex, toolIndex)"
  1134. >
  1135. <img
  1136. src="../../../assets/icon/checkNo.png"
  1137. alt
  1138. v-if="itemTool.tool.indexOf(42) == -1"
  1139. />
  1140. <img
  1141. src="../../../assets/icon/checkedIs.png"
  1142. alt
  1143. v-else
  1144. />
  1145. </div>
  1146. </div> -->
  1147. </div>
  1148. <div class="toolSort" v-if="itemTool.toolType == 3">
  1149. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1150. @click="addTools(18, itemTaskIndex, toolIndex)">
  1151. <div class="whiteBIcon" @click.stop="
  1152. addTools(18, itemTaskIndex, toolIndex)
  1153. ">
  1154. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1155. <div style="margin: 5px 0">训练平台</div>
  1156. </div>
  1157. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1158. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1159. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1160. <!-- <div class="check" @click="
  1161. addTools(18, itemTaskIndex, toolIndex)
  1162. ">
  1163. <img src="../../../assets/icon/checkNo.png" alt
  1164. v-if="itemTool.tool.indexOf(18) == -1" />
  1165. <div class="checkDiv" v-else>
  1166. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1167. </div>
  1168. </div> -->
  1169. </div>
  1170. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1171. @click="addTools(21, itemTaskIndex, toolIndex)">
  1172. <div class="whiteBIcon" @click.stop="
  1173. addTools(21, itemTaskIndex, toolIndex)
  1174. ">
  1175. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1176. <div style="margin: 5px 0">AIoT Blockly</div>
  1177. </div>
  1178. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1179. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1180. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1181. <!-- <div class="check" @click="
  1182. addTools(21, itemTaskIndex, toolIndex)
  1183. ">
  1184. <img src="../../../assets/icon/checkNo.png" alt
  1185. v-if="itemTool.tool.indexOf(21) == -1" />
  1186. <div class="checkDiv" v-else>
  1187. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1188. </div>
  1189. </div> -->
  1190. </div>
  1191. <!-- <div class="tool">
  1192. <div class="whiteBIcon" @click="
  1193. addTools(22, itemTaskIndex, toolIndex)
  1194. ">
  1195. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1196. <div style="margin: 5px 0">AI体验</div>
  1197. </div>
  1198. <div class="check" @click="
  1199. addTools(22, itemTaskIndex, toolIndex)
  1200. ">
  1201. <img src="../../../assets/icon/checkNo.png" alt
  1202. v-if="itemTool.tool.indexOf(22) == -1" />
  1203. <div class="checkDiv" v-else>
  1204. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1205. </div>
  1206. </div>
  1207. </div> -->
  1208. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1209. @click="addTools(23, itemTaskIndex, toolIndex)">
  1210. <div class="whiteBIcon" @click.stop="
  1211. addTools(23, itemTaskIndex, toolIndex)
  1212. ">
  1213. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1214. <div style="margin: 5px 0">AI Python</div>
  1215. </div>
  1216. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1217. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1218. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1219. <!-- <div class="check" @click="
  1220. addTools(23, itemTaskIndex, toolIndex)
  1221. ">
  1222. <img src="../../../assets/icon/checkNo.png" alt
  1223. v-if="itemTool.tool.indexOf(23) == -1" />
  1224. <div class="checkDiv" v-else>
  1225. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1226. </div>
  1227. </div> -->
  1228. </div>
  1229. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1230. @click="addTools(24, itemTaskIndex, toolIndex)">
  1231. <div class="whiteBIcon" @click.stop="
  1232. addTools(24, itemTaskIndex, toolIndex)
  1233. ">
  1234. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1235. <div style="margin: 5px 0">AI Blockly</div>
  1236. </div>
  1237. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1238. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1239. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1240. <!-- <div class="check" @click="
  1241. addTools(24, itemTaskIndex, toolIndex)
  1242. ">
  1243. <img src="../../../assets/icon/checkNo.png" alt
  1244. v-if="itemTool.tool.indexOf(24) == -1" />
  1245. <div class="checkDiv" v-else>
  1246. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1247. </div>
  1248. </div> -->
  1249. </div>
  1250. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1251. @click="addTools(32, itemTaskIndex, toolIndex)">
  1252. <div class="whiteBIcon" @click.stop="
  1253. addTools(32, itemTaskIndex, toolIndex)
  1254. ">
  1255. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1256. <div style="margin: 5px 0">源码编辑</div>
  1257. </div>
  1258. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1259. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1260. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1261. <!-- <div class="check" @click="
  1262. addTools(32, itemTaskIndex, toolIndex)
  1263. ">
  1264. <img src="../../../assets/icon/checkNo.png" alt
  1265. v-if="itemTool.tool.indexOf(32) == -1" />
  1266. <div class="checkDiv" v-else>
  1267. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1268. </div>
  1269. </div> -->
  1270. </div>
  1271. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1272. @click="addTools(57, itemTaskIndex, toolIndex)">
  1273. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1274. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1275. <div style="margin: 5px 0">CocoPi</div>
  1276. </div>
  1277. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1278. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1279. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1280. <!-- <div class="check" @click="
  1281. addTools(57, itemTaskIndex, toolIndex)
  1282. ">
  1283. <img src="../../../assets/icon/checkNo.png" alt
  1284. v-if="itemTool.tool.indexOf(57) == -1" />
  1285. <div class="checkDiv" v-else>
  1286. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1287. </div>
  1288. </div> -->
  1289. </div>
  1290. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1291. @click="addTools(63, itemTaskIndex, toolIndex)">
  1292. <div class="whiteBIcon" @click.stop="
  1293. addTools(63, itemTaskIndex, toolIndex)
  1294. ">
  1295. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1296. <div style="margin: 5px 0">海龟编程</div>
  1297. </div>
  1298. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1299. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1300. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1301. <!-- <div class="check" @click="
  1302. addTools(63, itemTaskIndex, toolIndex)
  1303. ">
  1304. <img src="../../../assets/icon/checkNo.png" alt
  1305. v-if="itemTool.tool.indexOf(63) == -1" />
  1306. <div class="checkDiv" v-else>
  1307. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1308. </div>
  1309. </div> -->
  1310. </div>
  1311. </div>
  1312. <div class="toolSort" v-if="itemTool.toolType == 5">
  1313. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1314. @click="addTools(28, itemTaskIndex, toolIndex)">
  1315. <div class="whiteBIcon" @click.stop="
  1316. addTools(28, itemTaskIndex, toolIndex)
  1317. ">
  1318. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1319. <div style="margin: 5px 0">翻译</div>
  1320. </div>
  1321. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1322. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1323. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1324. <!-- <div class="check" @click="
  1325. addTools(28, itemTaskIndex, toolIndex)
  1326. ">
  1327. <img src="../../../assets/icon/checkNo.png" alt
  1328. v-if="itemTool.tool.indexOf(28) == -1" />
  1329. <div class="checkDiv" v-else>
  1330. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1331. </div>
  1332. </div> -->
  1333. </div>
  1334. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1335. @click="addTools(31, itemTaskIndex, toolIndex)">
  1336. <div class="whiteBIcon" @click.stop="
  1337. addTools(31, itemTaskIndex, toolIndex)
  1338. ">
  1339. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1340. <div style="margin: 5px 0">数字画板</div>
  1341. </div>
  1342. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1343. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1344. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1345. <!-- <div class="check" @click="
  1346. addTools(31, itemTaskIndex, toolIndex)
  1347. ">
  1348. <img src="../../../assets/icon/checkNo.png" alt
  1349. v-if="itemTool.tool.indexOf(31) == -1" />
  1350. <div class="checkDiv" v-else>
  1351. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1352. </div>
  1353. </div> -->
  1354. </div>
  1355. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1356. @click="addTools(39, itemTaskIndex, toolIndex)">
  1357. <div class="whiteBIcon" @click.stop="
  1358. addTools(39, itemTaskIndex, toolIndex)
  1359. ">
  1360. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1361. <div style="margin: 5px 0">GeoGebra</div>
  1362. </div>
  1363. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1364. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  1365. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1366. <!-- <div class="check" @click="
  1367. addTools(39, itemTaskIndex, toolIndex)
  1368. ">
  1369. <img src="../../../assets/icon/checkNo.png" alt
  1370. v-if="itemTool.tool.indexOf(39) == -1" />
  1371. <div class="checkDiv" v-else>
  1372. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1373. </div>
  1374. </div> -->
  1375. </div>
  1376. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  1377. @click="addTools(66, itemTaskIndex, toolIndex)">
  1378. <div class="whiteBIcon" @click.stop="
  1379. addTools(66, itemTaskIndex, toolIndex)
  1380. ">
  1381. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1382. <div style="margin: 5px 0">公式编辑</div>
  1383. </div>
  1384. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1385. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  1386. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1387. <!-- <div class="check" @click="
  1388. addTools(66, itemTaskIndex, toolIndex)
  1389. ">
  1390. <img src="../../../assets/icon/checkNo.png" alt
  1391. v-if="itemTool.tool.indexOf(66) == -1" />
  1392. <div class="checkDiv" v-else>
  1393. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1394. </div>
  1395. </div> -->
  1396. </div>
  1397. <!-- <div class="tool">
  1398. <div class="whiteBIcon" @click="
  1399. addTools(67, itemTaskIndex, toolIndex)
  1400. ">
  1401. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1402. <div style="margin: 5px 0">分子结构</div>
  1403. </div>
  1404. <div class="check" @click="
  1405. addTools(67, itemTaskIndex, toolIndex)
  1406. ">
  1407. <img src="../../../assets/icon/checkNo.png" alt
  1408. v-if="itemTool.tool.indexOf(67) == -1" />
  1409. <div class="checkDiv" v-else>
  1410. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1411. </div>
  1412. </div>
  1413. </div> -->
  1414. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  1415. @click="addTools(68, itemTaskIndex, toolIndex)">
  1416. <div class="whiteBIcon" @click.stop="
  1417. addTools(68, itemTaskIndex, toolIndex)
  1418. ">
  1419. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1420. <div style="margin: 5px 0">时间轴</div>
  1421. </div>
  1422. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1423. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  1424. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1425. <!-- <div class="check" @click="
  1426. addTools(68, itemTaskIndex, toolIndex)
  1427. ">
  1428. <img src="../../../assets/icon/checkNo.png" alt
  1429. v-if="itemTool.tool.indexOf(68) == -1" />
  1430. <div class="checkDiv" v-else>
  1431. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1432. </div>
  1433. </div> -->
  1434. </div>
  1435. <!-- <div class="tool">
  1436. <div class="whiteBIcon" @click="
  1437. addTools(28, itemTaskIndex, toolIndex)
  1438. ">
  1439. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1440. <div style="margin: 5px 0">翻译</div>
  1441. </div>
  1442. <div class="check" @click="
  1443. addTools(28, itemTaskIndex, toolIndex)
  1444. ">
  1445. <img src="../../../assets/icon/checkNo.png" alt
  1446. v-if="itemTool.tool.indexOf(28) == -1" />
  1447. <div class="checkDiv" v-else>
  1448. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1449. </div>
  1450. </div>
  1451. </div>
  1452. <div class="tool">
  1453. <div class="whiteBIcon" @click="
  1454. addTools(37, itemTaskIndex, toolIndex)
  1455. ">
  1456. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1457. <div style="margin: 5px 0">魔盒识字</div>
  1458. </div>
  1459. <div class="check" @click="
  1460. addTools(37, itemTaskIndex, toolIndex)
  1461. ">
  1462. <img src="../../../assets/icon/checkNo.png" alt
  1463. v-if="itemTool.tool.indexOf(37) == -1" />
  1464. <div class="checkDiv" v-else>
  1465. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1466. </div>
  1467. </div>
  1468. </div>
  1469. <div class="tool">
  1470. <div class="whiteBIcon" @click="
  1471. addTools(38, itemTaskIndex, toolIndex)
  1472. ">
  1473. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1474. <div style="margin: 5px 0">24点</div>
  1475. </div>
  1476. <div class="check" @click="
  1477. addTools(38, itemTaskIndex, toolIndex)
  1478. ">
  1479. <img src="../../../assets/icon/checkNo.png" alt
  1480. v-if="itemTool.tool.indexOf(38) == -1" />
  1481. <div class="checkDiv" v-else>
  1482. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1483. </div>
  1484. </div>
  1485. </div>
  1486. <div class="tool">
  1487. <div class="whiteBIcon" @click="
  1488. addTools(31, itemTaskIndex, toolIndex)
  1489. ">
  1490. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1491. <div style="margin: 5px 0">数学画板</div>
  1492. </div>
  1493. <div class="check" @click="
  1494. addTools(31, itemTaskIndex, toolIndex)
  1495. ">
  1496. <img src="../../../assets/icon/checkNo.png" alt
  1497. v-if="itemTool.tool.indexOf(31) == -1" />
  1498. <div class="checkDiv" v-else>
  1499. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1500. </div>
  1501. </div>
  1502. </div>
  1503. <div class="tool">
  1504. <div class="whiteBIcon" @click="
  1505. addTools(39, itemTaskIndex, toolIndex)
  1506. ">
  1507. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1508. <div style="margin: 5px 0">GeoGebra</div>
  1509. </div>
  1510. <div class="check" @click="
  1511. addTools(39, itemTaskIndex, toolIndex)
  1512. ">
  1513. <img src="../../../assets/icon/checkNo.png" alt
  1514. v-if="itemTool.tool.indexOf(39) == -1" />
  1515. <div class="checkDiv" v-else>
  1516. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1517. </div>
  1518. </div>
  1519. </div>
  1520. <div class="tool">
  1521. <div class="whiteBIcon" @click="
  1522. addTools(58, itemTaskIndex, toolIndex)
  1523. ">
  1524. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1525. <div style="margin: 5px 0">模拟驾驶</div>
  1526. </div>
  1527. <div class="check" @click="
  1528. addTools(58, itemTaskIndex, toolIndex)
  1529. ">
  1530. <img src="../../../assets/icon/checkNo.png" alt
  1531. v-if="itemTool.tool.indexOf(58) == -1" />
  1532. <div class="checkDiv" v-else>
  1533. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1534. </div>
  1535. </div>
  1536. </div>
  1537. <div class="tool">
  1538. <div class="whiteBIcon" @click="
  1539. addTools(59, itemTaskIndex, toolIndex)
  1540. ">
  1541. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1542. <div style="margin: 5px 0">路径搜索</div>
  1543. </div>
  1544. <div class="check" @click="
  1545. addTools(59, itemTaskIndex, toolIndex)
  1546. ">
  1547. <img src="../../../assets/icon/checkNo.png" alt
  1548. v-if="itemTool.tool.indexOf(59) == -1" />
  1549. <div class="checkDiv" v-else>
  1550. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1551. </div>
  1552. </div>
  1553. </div>
  1554. <div class="tool">
  1555. <div class="whiteBIcon" @click="
  1556. addTools(60, itemTaskIndex, toolIndex)
  1557. ">
  1558. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1559. <div style="margin: 5px 0">深度学习</div>
  1560. </div>
  1561. <div class="check" @click="
  1562. addTools(60, itemTaskIndex, toolIndex)
  1563. ">
  1564. <img src="../../../assets/icon/checkNo.png" alt
  1565. v-if="itemTool.tool.indexOf(60) == -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="
  1573. addTools(61, itemTaskIndex, toolIndex)
  1574. ">
  1575. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1576. <div style="margin: 5px 0">全历史</div>
  1577. </div>
  1578. <div class="check" @click="
  1579. addTools(61, itemTaskIndex, toolIndex)
  1580. ">
  1581. <img src="../../../assets/icon/checkNo.png" alt
  1582. v-if="itemTool.tool.indexOf(61) == -1" />
  1583. <div class="checkDiv" v-else>
  1584. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1585. </div>
  1586. </div>
  1587. </div> -->
  1588. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  1589. @click="addTools(69, itemTaskIndex, toolIndex)">
  1590. <div class="whiteBIcon" @click.stop="
  1591. openTools(itemTaskIndex, 69, toolIndex)
  1592. ">
  1593. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  1594. <div style="margin: 5px 0">英语写作</div>
  1595. </div>
  1596. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1597. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1"><img
  1598. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1599. <!-- <div class="check" @click="
  1600. addTools(4, itemTaskIndex, toolIndex)
  1601. ">
  1602. <img src="../../../assets/icon/checkNo.png" alt
  1603. v-if="itemTool.tool.indexOf(4) == -1" />
  1604. <div class="checkDiv" v-else>
  1605. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1606. </div>
  1607. </div> -->
  1608. </div>
  1609. </div>
  1610. <div class="toolSort" v-if="itemTool.toolType == 7">
  1611. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1612. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1613. <div class="whiteBIcon" @click="
  1614. openTools(itemTaskIndex, 40, toolIndex)
  1615. ">
  1616. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1617. <div style="margin: 5px 0">个人评价</div>
  1618. </div>
  1619. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1620. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1621. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1622. <!-- <div class="check" @click="
  1623. addTools(40, itemTaskIndex, toolIndex)
  1624. ">
  1625. <img src="../../../assets/icon/checkNo.png" alt
  1626. v-if="itemTool.tool.indexOf(40) == -1" />
  1627. <div class="checkDiv" v-else>
  1628. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1629. </div>
  1630. </div> -->
  1631. </div>
  1632. </div>
  1633. <div class="toolSort" v-if="itemTool.toolType == 4">
  1634. <div class="tool">
  1635. <div class="whiteBIcon" @click="
  1636. addTools(26, itemTaskIndex, toolIndex)
  1637. ">
  1638. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1639. <div style="margin: 5px 0">课程设计</div>
  1640. </div>
  1641. <div class="check" @click="
  1642. addTools(26, itemTaskIndex, toolIndex)
  1643. ">
  1644. <img src="../../../assets/icon/checkNo.png" alt
  1645. v-if="itemTool.tool.indexOf(26) == -1" />
  1646. <div class="checkDiv" v-else>
  1647. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1648. </div>
  1649. </div>
  1650. </div>
  1651. <div class="tool">
  1652. <div class="whiteBIcon" @click="
  1653. addTools(25, itemTaskIndex, toolIndex)
  1654. ">
  1655. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1656. <div style="margin: 5px 0">目标管理</div>
  1657. </div>
  1658. <div class="check" @click="
  1659. addTools(25, itemTaskIndex, toolIndex)
  1660. ">
  1661. <img src="../../../assets/icon/checkNo.png" alt
  1662. v-if="itemTool.tool.indexOf(25) == -1" />
  1663. <div class="checkDiv" v-else>
  1664. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1665. </div>
  1666. </div>
  1667. </div>
  1668. <!-- <div class="tool">
  1669. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1670. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1671. <div style="margin: 5px 0">汉字宫</div>
  1672. </div>
  1673. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1674. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1675. <div class="checkDiv" v-else>
  1676. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1677. </div>
  1678. </div>
  1679. </div> -->
  1680. </div>
  1681. </div>
  1682. <div v-show="!itemTool.isFold3">
  1683. <textarea rows="3" type="text" v-autoHeight="87" placeholder="添加工具描述" class="binfo_input"
  1684. style="
  1685. margin: 0 0 20px 0;
  1686. " v-model="itemTool.toolDetail"></textarea>
  1687. </div>
  1688. </div>
  1689. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1690. <div class="addToolImg">
  1691. <img src="../../../assets/icon/add.png" alt />
  1692. </div>
  1693. <div>添加工具</div>
  1694. </div> -->
  1695. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)"
  1696. style="margin: 0 auto;padding: 0 30px;height: 45px;">
  1697. 添加工具
  1698. </button>
  1699. </div>
  1700. </div>
  1701. </div>
  1702. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1703. <!-- <div>
  1704. <img src="../../../assets/icon/new/addStage.png" alt />
  1705. <span>添加任务</span>
  1706. </div> -->
  1707. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  1708. 添加任务
  1709. </button>
  1710. </div>
  1711. </div>
  1712. </div>
  1713. </div>
  1714. </div>
  1715. <div class="info_btnBox3">
  1716. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  1717. 返回课程
  1718. </button>
  1719. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  1720. 确认上传
  1721. </button>
  1722. </div>
  1723. </div>
  1724. <div class="rightBox" v-if="this.steps == 2">
  1725. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  1726. <div class="right_title" style="border: none; margin: 0; padding: 0">
  1727. 请选择合适的课程模板
  1728. </div>
  1729. <div class="wordbox">
  1730. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  1731. <div class="wordPic">
  1732. <img src="../../../assets/icon/wordMub.png" alt />
  1733. </div>
  1734. <div style="
  1735. margin-top: 10px;
  1736. line-height: 19px;
  1737. overflow: hidden;
  1738. text-overflow: ellipsis;
  1739. white-space: nowrap;
  1740. padding: 0 20px;
  1741. ">
  1742. {{ aa.title }}
  1743. </div>
  1744. </div>
  1745. <div class="wordTeacher" @click="checkTemplate2()">
  1746. <div class="wordPic">
  1747. <img src="../../../assets/icon/wordMub.png" alt />
  1748. </div>
  1749. <div style="
  1750. margin-top: 10px;
  1751. line-height: 19px;
  1752. overflow: hidden;
  1753. text-overflow: ellipsis;
  1754. white-space: nowrap;
  1755. padding: 0 20px;
  1756. ">
  1757. 任务模式
  1758. </div>
  1759. </div>
  1760. <div class="wordTeacher" @click="checkTemplate3()">
  1761. <div class="wordPic">
  1762. <img src="../../../assets/icon/wordMub.png" alt />
  1763. </div>
  1764. <div style="
  1765. margin-top: 10px;
  1766. line-height: 19px;
  1767. overflow: hidden;
  1768. text-overflow: ellipsis;
  1769. white-space: nowrap;
  1770. padding: 0 20px;
  1771. ">
  1772. 简易模式
  1773. </div>
  1774. </div>
  1775. <div class="wordTeacher" @click="pasteStage()">
  1776. <div class="wordPic">
  1777. <img src="../../../assets/icon/wordMub.png" alt />
  1778. </div>
  1779. <div style="
  1780. margin-top: 10px;
  1781. line-height: 19px;
  1782. overflow: hidden;
  1783. text-overflow: ellipsis;
  1784. white-space: nowrap;
  1785. padding: 0 20px;
  1786. ">
  1787. 智能粘贴模式
  1788. </div>
  1789. </div>
  1790. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  1791. <div class="wordPic">
  1792. <img src="../../../assets/icon/wordMub.png" alt />
  1793. </div>
  1794. <div style="
  1795. margin-top: 10px;
  1796. line-height: 19px;
  1797. overflow: hidden;
  1798. text-overflow: ellipsis;
  1799. white-space: nowrap;
  1800. padding: 0 20px;
  1801. ">
  1802. 未来小学课程设计
  1803. </div>
  1804. </div> -->
  1805. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  1806. <div class="wordPic">
  1807. <img src="../../../assets/icon/wordMub.png" alt />
  1808. </div>
  1809. <div style="
  1810. margin-top: 10px;
  1811. line-height: 19px;
  1812. overflow: hidden;
  1813. text-overflow: ellipsis;
  1814. white-space: nowrap;
  1815. padding: 0 20px;
  1816. ">
  1817. 我的课程
  1818. </div>
  1819. </div> -->
  1820. </div>
  1821. </div>
  1822. </div>
  1823. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  1824. <div class="basic_box">
  1825. <div style="
  1826. display: flex;
  1827. flex-direction: row;
  1828. align-items: center;
  1829. position: sticky;
  1830. top: 0;
  1831. background: #fff;
  1832. z-index: 99;
  1833. width: 100%;
  1834. padding: 0 20px 0 20px;
  1835. box-sizing: border-box;
  1836. ">
  1837. <div class="cru_selectBox">
  1838. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1839. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1840. <!-- item.dyName ? item.dyName : -->
  1841. {{ "第" + (index + 1) + "阶段" }}
  1842. </div>
  1843. <img src="../../../assets/line.png" class="cru_line" :style="{
  1844. left: offsetLetfPx + 'px',
  1845. }" />
  1846. </div>
  1847. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  1848. !(unitJson[unitJson.length - 1].easy == 6)
  1849. ">
  1850. <img src="../../../assets/icon/add.png" alt />
  1851. </div>
  1852. </div>
  1853. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  1854. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  1855. <div>
  1856. <div class="chapter_contentbox">
  1857. <div>第{{ unitIndex + 1 }}阶段</div>
  1858. <div>
  1859. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  1860. </div>
  1861. <div v-if="unitJson.length > 1 &&
  1862. !(unitJson[unitJson.length - 1].easy == 4) &&
  1863. !(unitJson[unitJson.length - 1].easy == 6)
  1864. " @click="deleteUnit(unitIndex)"></div>
  1865. </div>
  1866. </div>
  1867. <div v-if="!unitJson[unitIndex].easy" style="
  1868. margin: 50px 0px 10px;
  1869. font-size: 1.5em;
  1870. font-weight: 700;
  1871. color: #0f7eff;
  1872. ">
  1873. 添加任务
  1874. </div>
  1875. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  1876. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1877. <div v-if="unitJson[unitIndex].easy != 1">
  1878. <div :style="{
  1879. marginBottom:
  1880. unitJson[unitIndex].easy == 3 ||
  1881. (unitJson[unitIndex].easy == 5 &&
  1882. itemTask.taskType == 1)
  1883. ? '75px'
  1884. : '0',
  1885. }">
  1886. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  1887. 任务{{ itemTaskIndex + 1 }}
  1888. </div>
  1889. <div class="chapter_contentbox" style="
  1890. flex-direction: row;
  1891. justify-content: flex-start;
  1892. align-items: center;
  1893. ">
  1894. <div style="
  1895. border-left: 6px solid #5699e8;
  1896. height: 20px;
  1897. padding-left: 10px;
  1898. line-height: 22px;
  1899. ">
  1900. 任务名称
  1901. </div>
  1902. <div>
  1903. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1904. itemTaskIndex
  1905. ].task
  1906. " />
  1907. </div>
  1908. <div class="remove" v-if="item.taskJson.length > 1 &&
  1909. (!unitJson[unitIndex].easy ||
  1910. unitJson[unitIndex].easy == 6)
  1911. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  1912. </div>
  1913. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  1914. display: flex;
  1915. margin: 0 0 20px 0;
  1916. flex-direction: row;
  1917. justify-content: flex-start;
  1918. align-items: center;
  1919. width: 70.5% !important;
  1920. padding-top: 30px;
  1921. ">
  1922. <div class="lineTitle">任务描述</div>
  1923. </div>
  1924. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  1925. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1926. itemTaskIndex
  1927. ].taskDetail
  1928. " @change="change"></editor-bar>
  1929. <!-- <textarea
  1930. rows="6"
  1931. class="binfo_input"
  1932. placeholder="请输入任务描述"
  1933. cols
  1934. style="width: 70.5% !important; height: 120px"
  1935. v-model="
  1936. unitJson[unitIndex].chapterInfo[0].taskJson[
  1937. itemTaskIndex
  1938. ].taskDetail
  1939. "
  1940. ></textarea>-->
  1941. </div>
  1942. </div>
  1943. </div>
  1944. <div v-if="!unitJson[unitIndex].easy ||
  1945. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1946. " class="basic_box" style="
  1947. padding: 0 !important;
  1948. ">
  1949. <div style="
  1950. display: flex;
  1951. margin: 0 0 20px 0;
  1952. flex-direction: row;
  1953. justify-content: flex-start;
  1954. align-items: center;
  1955. ">
  1956. <div class="lineTitle">学习内容</div>
  1957. </div>
  1958. <div>
  1959. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  1960. itemTask.chapterData.length == 0
  1961. " style="height: 185px"></div>
  1962. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1963. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  1964. @click="
  1965. getChapterData(
  1966. $event,
  1967. unitIndex,
  1968. index,
  1969. index1,
  1970. item1.type
  1971. )
  1972. ">
  1973. <div class="chapter_upload_t" style="width: 100%"></div>
  1974. <div class="chapter_upload_o" style="
  1975. position: relative;
  1976. display: flex;
  1977. align-items: center;
  1978. ">
  1979. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1980. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  1981. <div v-if="item1.type == 3 ||
  1982. item1.type == 12 ||
  1983. item1.type == 13 ||
  1984. item1.type == 6 ||
  1985. item1.type == 7
  1986. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  1987. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  1988. </div>
  1989. <div class="chapter_upload_ic" style="
  1990. cursor: pointer;
  1991. position: absolute;
  1992. width: 45px;
  1993. right: 0;
  1994. top: 0;
  1995. ">
  1996. <div class="chapter_upload_ic_l"></div>
  1997. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  1998. deleteChapterData(
  1999. $event,
  2000. unitIndex,
  2001. index,
  2002. index1,
  2003. itemTaskIndex
  2004. )
  2005. ">
  2006. <div></div>
  2007. </div>
  2008. </div>
  2009. <div class="chapter_upload_n">
  2010. <input v-if="item1.type == 2 ||
  2011. item1.type == 3 ||
  2012. item1.type == 12 ||
  2013. item1.type == 13 ||
  2014. item1.type == 7
  2015. " :placeholder="item1.name" @change="
  2016. updataVideoT(
  2017. $event,
  2018. unitIndex,
  2019. chapterIndex,
  2020. index1
  2021. )
  2022. " style="
  2023. border: none;
  2024. outline: none;
  2025. width: 80%;
  2026. minwidth: 215px;
  2027. z-index: 99;
  2028. font-size: 14px;
  2029. white-space: nowrap;
  2030. overflow: hidden;
  2031. text-overflow: ellipsis;
  2032. " />
  2033. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2034. border: none;
  2035. outline: none;
  2036. width: 80%;
  2037. white-space: nowrap;
  2038. overflow: hidden;
  2039. text-overflow: ellipsis;
  2040. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2041. <input :placeholder="item1.title ? item1.title : '链接'
  2042. " v-if="item1.type == 8" style="
  2043. border: none;
  2044. outline: none;
  2045. width: 80%;
  2046. white-space: nowrap;
  2047. overflow: hidden;
  2048. text-overflow: ellipsis;
  2049. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2050. <div class="chapter_upload_ud" style="z-index: 99">
  2051. <div class="chapter_upload_up" @click="
  2052. upCd(
  2053. $event,
  2054. unitIndex,
  2055. index,
  2056. itemTaskIndex,
  2057. index1
  2058. )
  2059. "></div>
  2060. <div class="chapter_upload_down" @click="
  2061. downCd(
  2062. $event,
  2063. unitIndex,
  2064. index,
  2065. itemTaskIndex,
  2066. index1
  2067. )
  2068. "></div>
  2069. </div>
  2070. </div>
  2071. </div>
  2072. </div>
  2073. </div>
  2074. </div>
  2075. <div class="add_info_box">
  2076. <button class="info_btn" @click="addImg($event)">
  2077. 添加文件
  2078. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  2079. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2080. " />
  2081. </button>
  2082. <!-- <button class="info_btn" @click="addImg($event)">
  2083. 添加视频
  2084. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2085. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2086. " />
  2087. </button>
  2088. <button class="info_btn" @click="addImg($event)">
  2089. 添加文档
  2090. <input type="file"
  2091. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2092. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2093. " />
  2094. </button> -->
  2095. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  2096. 添加图文
  2097. </button>
  2098. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2099. 添加链接
  2100. </button>
  2101. <button class="info_btn" @click="openSource(itemTaskIndex)">
  2102. 添加资源
  2103. </button>
  2104. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  2105. 嵌入代码
  2106. </button>
  2107. <!-- <button class="info_btn" @click="addImg($event)">
  2108. 其他附件
  2109. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2110. " />
  2111. </button> -->
  2112. </div>
  2113. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2114. itemTaskIndex
  2115. ].proVisible
  2116. " class="mask">
  2117. <div class="progressBox">
  2118. <!-- <div id="closePro" class="closeCss">
  2119. <img src="../../../../assets/icon/close.png" alt />
  2120. </div> -->
  2121. <div class="lbox">
  2122. <img src="../../../assets/loading.gif" />上传中,请稍后
  2123. </div>
  2124. <div style="margin-bottom: 10px">
  2125. <span>{{
  2126. unitJson[unitIndex].chapterInfo[0].taskJson[
  2127. itemTaskIndex
  2128. ].isFinishSize
  2129. }}M</span>
  2130. /
  2131. <span>{{
  2132. unitJson[unitIndex].chapterInfo[0].taskJson[
  2133. itemTaskIndex
  2134. ].isAllSize
  2135. }}M</span>
  2136. </div>
  2137. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2138. itemTaskIndex
  2139. ].progress
  2140. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2141. itemTaskIndex
  2142. ].progress
  2143. : 0
  2144. " style="width: 80%"></el-progress>
  2145. </div>
  2146. </div>
  2147. </div>
  2148. <div v-if="unitJson[unitIndex].easy == 1 ||
  2149. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2150. " class="basic_box" style="
  2151. margin: 0 auto;
  2152. min-height: 0;
  2153. width: 95% !important;
  2154. padding: 20px 10px 10px;
  2155. ">
  2156. <div>
  2157. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  2158. itemTask.chapterData.length == 0
  2159. " style="height: 185px"></div>
  2160. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2161. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  2162. <div class="chapter_upload" @click="
  2163. getChapterData(
  2164. $event,
  2165. unitIndex,
  2166. index,
  2167. index1,
  2168. item1.type
  2169. )
  2170. ">
  2171. <div class="chapter_upload_t" style="width: 100%"></div>
  2172. <div class="chapter_upload_o" style="
  2173. position: relative;
  2174. display: flex;
  2175. align-items: center;
  2176. ">
  2177. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2178. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2179. <div v-if="item1.type == 3 ||
  2180. item1.type == 6 ||
  2181. item1.type == 7
  2182. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2183. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2184. </div>
  2185. <div class="chapter_upload_ic" style="
  2186. cursor: pointer;
  2187. position: absolute;
  2188. width: 45px;
  2189. right: 0;
  2190. top: 0;
  2191. ">
  2192. <div class="chapter_upload_ic_l"></div>
  2193. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2194. deleteChapterData(
  2195. $event,
  2196. unitIndex,
  2197. index,
  2198. index1,
  2199. itemTaskIndex
  2200. )
  2201. ">
  2202. <div></div>
  2203. </div>
  2204. </div>
  2205. <div class="chapter_upload_n">
  2206. <span style="
  2207. font-size: 14px;
  2208. color: rgb(109, 109, 109);
  2209. height: 14px;
  2210. line-height: 12px;
  2211. " v-if="item1.type == 2 ||
  2212. item1.type == 3 ||
  2213. item1.type == 7
  2214. ">{{ item1.text }}-</span>
  2215. <input v-if="item1.type == 2 ||
  2216. item1.type == 3 ||
  2217. item1.type == 7
  2218. " :placeholder="item1.name" @change="
  2219. updataVideoT(
  2220. $event,
  2221. unitIndex,
  2222. chapterIndex,
  2223. index1
  2224. )
  2225. " style="
  2226. border: none;
  2227. outline: none;
  2228. width: 80%;
  2229. minwidth: 215px;
  2230. z-index: 99;
  2231. font-size: 14px;
  2232. white-space: nowrap;
  2233. overflow: hidden;
  2234. text-overflow: ellipsis;
  2235. " />
  2236. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2237. border: none;
  2238. outline: none;
  2239. width: 80%;
  2240. white-space: nowrap;
  2241. overflow: hidden;
  2242. text-overflow: ellipsis;
  2243. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2244. <input :placeholder="item1.title ? item1.title : '链接'
  2245. " v-if="item1.type == 8" style="
  2246. border: none;
  2247. outline: none;
  2248. width: 80%;
  2249. white-space: nowrap;
  2250. overflow: hidden;
  2251. text-overflow: ellipsis;
  2252. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2253. <div class="chapter_upload_ud" style="z-index: 99">
  2254. <div class="chapter_upload_up" @click="
  2255. upCd(
  2256. $event,
  2257. unitIndex,
  2258. index,
  2259. itemTaskIndex,
  2260. index1
  2261. )
  2262. "></div>
  2263. <div class="chapter_upload_down" @click="
  2264. downCd(
  2265. $event,
  2266. unitIndex,
  2267. index,
  2268. itemTaskIndex,
  2269. index1
  2270. )
  2271. "></div>
  2272. </div>
  2273. </div>
  2274. </div>
  2275. </div>
  2276. </div>
  2277. </div>
  2278. </div>
  2279. <div class="add_info_box" style="margin: 10px 0 0">
  2280. <button class="info_btn" @click="addImg($event)">
  2281. <span style="color: red">*</span>
  2282. 教学设计
  2283. <input type="file"
  2284. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2285. style="display: none" v-if="inputShow" @change="
  2286. beforeUpload3(
  2287. $event,
  2288. unitIndex,
  2289. 3,
  2290. itemTaskIndex,
  2291. '教学设计'
  2292. )
  2293. " />
  2294. </button>
  2295. <button class="info_btn" @click="addImg($event)">
  2296. <span style="color: red">*</span>
  2297. 教学课件
  2298. <input type="file"
  2299. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2300. style="display: none" v-if="inputShow" @change="
  2301. beforeUpload3(
  2302. $event,
  2303. unitIndex,
  2304. 3,
  2305. itemTaskIndex,
  2306. '教学课件'
  2307. )
  2308. " />
  2309. </button>
  2310. <button class="info_btn" @click="addImg($event)">
  2311. 教学视频
  2312. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2313. v-if="inputShow" @change="
  2314. beforeUpload3(
  2315. $event,
  2316. unitIndex,
  2317. 2,
  2318. itemTaskIndex,
  2319. '教学视频'
  2320. )
  2321. " />
  2322. </button>
  2323. <button class="info_btn" @click="addImg($event)">
  2324. 教学音频
  2325. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  2326. beforeUpload3(
  2327. $event,
  2328. unitIndex,
  2329. 2,
  2330. itemTaskIndex,
  2331. '教学音频'
  2332. )
  2333. " />
  2334. </button>
  2335. <button class="info_btn" @click="addImg($event)">
  2336. 学习单
  2337. <input type="file"
  2338. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2339. style="display: none" v-if="inputShow" @change="
  2340. beforeUpload3(
  2341. $event,
  2342. unitIndex,
  2343. 3,
  2344. itemTaskIndex,
  2345. '学习单'
  2346. )
  2347. " />
  2348. </button>
  2349. </div>
  2350. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2351. itemTaskIndex
  2352. ].proVisible
  2353. " class="mask">
  2354. <div class="progressBox">
  2355. <!-- <div id="closePro" class="closeCss">
  2356. <img src="../../../../assets/icon/close.png" alt />
  2357. </div> -->
  2358. <div class="lbox">
  2359. <img src="../../../assets/loading.gif" />上传中,请稍后
  2360. </div>
  2361. <div style="margin-bottom: 10px">
  2362. <span>{{
  2363. unitJson[unitIndex].chapterInfo[0].taskJson[
  2364. itemTaskIndex
  2365. ].isFinishSize
  2366. }}M</span>
  2367. /
  2368. <span>{{
  2369. unitJson[unitIndex].chapterInfo[0].taskJson[
  2370. itemTaskIndex
  2371. ].isAllSize
  2372. }}M</span>
  2373. </div>
  2374. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2375. itemTaskIndex
  2376. ].progress
  2377. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2378. itemTaskIndex
  2379. ].progress
  2380. : 0
  2381. " style="width: 80%"></el-progress>
  2382. </div>
  2383. </div>
  2384. </div>
  2385. <div v-if="unitJson[unitIndex].easy != 3 &&
  2386. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  2387. " style="
  2388. flex-direction: row;
  2389. justify-content: flex-start;
  2390. align-items: center;
  2391. padding: 0 0 0 30px;
  2392. paddint-top: 10px !important;
  2393. ">
  2394. <div style="
  2395. display: flex;
  2396. flex-direction: row;
  2397. align-items: center;
  2398. margin-bottom: 20px;
  2399. ">
  2400. <div class="lineTitle">
  2401. {{
  2402. !unitJson[unitIndex].easy ||
  2403. unitJson[unitIndex].easy == 6 ||
  2404. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2405. ? "练习内容"
  2406. : "评价内容"
  2407. }}
  2408. </div>
  2409. </div>
  2410. </div>
  2411. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  2412. " class="toolChoose" style="padding: 0 0 0 30px">
  2413. <div class="tools">
  2414. <div class="leftTools" style="
  2415. width: 95%;
  2416. padding: 0 0 15px 0;
  2417. margin: 15px 0;
  2418. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2419. <div>
  2420. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2421. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2422. </div>
  2423. <div style="
  2424. display: flex;
  2425. flex-direction: row;
  2426. align-items: baseline;
  2427. flex-wrap: nowrap;
  2428. justify-content: flex-start;
  2429. position: relative;
  2430. ">
  2431. <div style="margin-right: 20px; font-weight: bold">
  2432. 步骤 {{ toolIndex + 1 }} :
  2433. </div>
  2434. <div class="chooseWho">
  2435. <!-- <div
  2436. :class="
  2437. itemTool.toolType == 0 ? 'isChooseActive' : ''
  2438. "
  2439. @click="(itemTool.toolType = 0), $forceUpdate()"
  2440. >
  2441. 互动类
  2442. </div> -->
  2443. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  2444. " @click="(itemTool.toolType = 1), $forceUpdate()">
  2445. 思维类
  2446. </div>
  2447. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  2448. " @click="(itemTool.toolType = 6), $forceUpdate()">
  2449. 协作类
  2450. </div>
  2451. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  2452. " @click="(itemTool.toolType = 2), $forceUpdate()">
  2453. 测评类
  2454. </div>
  2455. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  2456. " @click="(itemTool.toolType = 7), $forceUpdate()">
  2457. 评价类
  2458. </div>
  2459. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  2460. " @click="(itemTool.toolType = 3), $forceUpdate()">
  2461. 学科类
  2462. </div>
  2463. <!-- <div
  2464. :class="
  2465. itemTool.toolType == 5 ? 'isChooseActive' : ''
  2466. "
  2467. @click="(itemTool.toolType = 5), $forceUpdate()"
  2468. >
  2469. 学科类
  2470. </div>
  2471. <div
  2472. :class="
  2473. itemTool.toolType == 4 ? 'isChooseActive' : ''
  2474. "
  2475. @click="(itemTool.toolType = 4), $forceUpdate()"
  2476. >
  2477. 其他
  2478. </div> -->
  2479. </div>
  2480. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2481. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2482. </div>
  2483. <div style="min-height: 163px">
  2484. <div class="toolSort" v-if="itemTool.toolType == 0">
  2485. <!-- <div class="tool">
  2486. <div
  2487. class="whiteBIcon"
  2488. @click="addTools(8, itemTaskIndex, toolIndex)"
  2489. >
  2490. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2491. <div style="margin: 5px 0">素材库</div>
  2492. </div>
  2493. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2494. <img
  2495. src="../../../assets/icon/checkNo.png"
  2496. alt
  2497. v-if="itemTool.tool.indexOf(8) == -1"
  2498. />
  2499. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2500. alt /><span>已选择</span></div>
  2501. </div>
  2502. </div>-->
  2503. <!-- <div class="tool">
  2504. <div
  2505. class="whiteBIcon"
  2506. @click="addTools(17, itemTaskIndex, toolIndex)"
  2507. >
  2508. <img
  2509. src="../../../assets/icon/secondToolList/library.png"
  2510. alt
  2511. />
  2512. <div style="margin: 5px 0">学习资料</div>
  2513. </div>
  2514. <div
  2515. class="check"
  2516. @click="addTools(17, itemTaskIndex, toolIndex)"
  2517. >
  2518. <img
  2519. src="../../../assets/icon/checkNo.png"
  2520. alt
  2521. v-if="itemTool.tool.indexOf(17) == -1"
  2522. />
  2523. <img
  2524. src="../../../assets/icon/checkedIs.png"
  2525. alt
  2526. v-else
  2527. />
  2528. </div>10
  2529. </div> -->
  2530. <div class="tool">
  2531. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  2532. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2533. <div style="margin: 5px 0">倒计时</div>
  2534. </div>
  2535. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2536. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  2537. <div class="checkDiv" v-else>
  2538. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2539. </div>
  2540. </div>
  2541. </div>
  2542. <!-- <div class="tool">
  2543. <div
  2544. class="whiteBIcon"
  2545. @click="openTools(itemTaskIndex, 49, toolIndex)"
  2546. >
  2547. <img
  2548. src="../../../assets/icon/fourthToolList/group.png"
  2549. alt
  2550. />
  2551. <div style="margin: 5px 0">学生分组</div>
  2552. </div>
  2553. <div
  2554. class="check"
  2555. @click="addTools(49, itemTaskIndex, toolIndex)"
  2556. >
  2557. <img
  2558. src="../../../assets/icon/checkNo.png"
  2559. alt
  2560. v-if="itemTool.tool.indexOf(49) == -1"
  2561. />
  2562. <div class="checkDiv" v-else>
  2563. <img
  2564. src="../../../assets/icon/checkedIs.png"
  2565. alt
  2566. /><span>已选择</span>
  2567. </div>
  2568. </div>
  2569. </div> -->
  2570. <div class="tool">
  2571. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2572. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2573. <div style="margin: 5px 0">交互视频</div>
  2574. </div>
  2575. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2576. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2577. <div class="checkDiv" v-else>
  2578. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. <div class="toolSort" v-if="itemTool.toolType == 1">
  2584. <div class="tool">
  2585. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  2586. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2587. <div style="margin: 5px 0">思维网格</div>
  2588. </div>
  2589. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2590. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  2591. <div class="checkDiv" v-else>
  2592. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2593. </div>
  2594. </div>
  2595. </div>
  2596. <div class="tool">
  2597. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2598. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2599. <div style="margin: 5px 0">电子白板</div>
  2600. </div>
  2601. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2602. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2603. <div class="checkDiv" v-else>
  2604. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2605. </div>
  2606. </div>
  2607. </div>
  2608. <!-- <div class="tool">
  2609. <div
  2610. class="whiteBIcon"
  2611. @click="addTools(2, itemTaskIndex, toolIndex)"
  2612. >
  2613. <img
  2614. src="../../../assets/icon/secondToolList/note.png"
  2615. alt
  2616. />
  2617. <div style="margin: 5px 0">便签</div>
  2618. </div>
  2619. <div
  2620. class="check"
  2621. @click="addTools(2, itemTaskIndex, toolIndex)"
  2622. >
  2623. <img
  2624. src="../../../assets/icon/checkNo.png"
  2625. alt
  2626. v-if="itemTool.tool.indexOf(2) == -1"
  2627. />
  2628. <div class="checkDiv" v-else>
  2629. <img
  2630. src="../../../assets/icon/checkedIs.png"
  2631. alt
  2632. /><span>已选择</span>
  2633. </div>
  2634. </div>
  2635. </div> -->
  2636. <!-- <div class="tool">
  2637. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2638. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2639. <div style="margin: 5px 0">协同文档</div>
  2640. </div>
  2641. <div
  2642. class="check"
  2643. @click="addTools(6, itemTaskIndex, toolIndex)"
  2644. >
  2645. <img
  2646. src="../../../assets/icon/checkNo.png"
  2647. alt
  2648. v-if="itemTool.tool.indexOf(6) == -1"
  2649. />
  2650. <div class="checkDiv" v-else>
  2651. <img
  2652. src="../../../assets/icon/checkedIs.png"
  2653. alt
  2654. /><span>已选择</span>
  2655. </div>
  2656. </div>
  2657. </div> -->
  2658. <div class="tool">
  2659. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2660. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2661. <div style="margin: 5px 0">文档</div>
  2662. </div>
  2663. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2664. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2665. <div class="checkDiv" v-else>
  2666. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2667. </div>
  2668. </div>
  2669. </div>
  2670. <div class="tool">
  2671. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2672. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2673. <div style="margin: 5px 0">思维导图</div>
  2674. </div>
  2675. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2676. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  2677. <div class="checkDiv" v-else>
  2678. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2679. </div>
  2680. </div>
  2681. </div>
  2682. <div class="tool">
  2683. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2684. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2685. <div style="margin: 5px 0">表格</div>
  2686. </div>
  2687. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2688. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  2689. <div class="checkDiv" v-else>
  2690. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2691. </div>
  2692. </div>
  2693. </div>
  2694. </div>
  2695. <div class="toolSort" v-if="itemTool.toolType == 6">
  2696. <div class="tool">
  2697. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2698. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2699. <div style="margin: 5px 0">学生分组</div>
  2700. </div>
  2701. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2702. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2703. <div class="checkDiv" v-else>
  2704. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2705. </div>
  2706. </div>
  2707. </div>
  2708. </div>
  2709. <div class="toolSort" v-if="itemTool.toolType == 2">
  2710. <!-- <div class="tool">
  2711. <div
  2712. class="whiteBIcon"
  2713. @click="addTools(5, itemTaskIndex, toolIndex)"
  2714. >
  2715. <img
  2716. src="../../../assets/icon/thirdToolList/score.png"
  2717. alt
  2718. />
  2719. <div style="margin: 5px 0">量规评分</div>
  2720. </div>
  2721. <div
  2722. class="check"
  2723. @click="addTools(5, itemTaskIndex, toolIndex)"
  2724. >
  2725. <img
  2726. src="../../../assets/icon/checkNo.png"
  2727. alt
  2728. v-if="itemTool.tool.indexOf(5) == -1"
  2729. />
  2730. <img
  2731. src="../../../assets/icon/checkedIs.png"
  2732. alt
  2733. v-else
  2734. />
  2735. </div>
  2736. </div>-->
  2737. <div class="tool">
  2738. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2739. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2740. <div style="margin: 5px 0">问卷调查</div>
  2741. </div>
  2742. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2743. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  2744. <div class="checkDiv" v-else>
  2745. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2746. </div>
  2747. </div>
  2748. </div>
  2749. <div class="tool">
  2750. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2751. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2752. <div style="margin: 5px 0">选择题</div>
  2753. </div>
  2754. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2755. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  2756. <div class="checkDiv" v-else>
  2757. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2758. </div>
  2759. </div>
  2760. </div>
  2761. <div class="tool">
  2762. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2763. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2764. <div style="margin: 5px 0">问答</div>
  2765. </div>
  2766. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2767. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  2768. <div class="checkDiv" v-else>
  2769. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2770. </div>
  2771. </div>
  2772. </div>
  2773. <div class="tool">
  2774. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2775. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2776. <div style="margin: 5px 0">作业提交</div>
  2777. </div>
  2778. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2779. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  2780. <div class="checkDiv" v-else>
  2781. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2782. </div>
  2783. </div>
  2784. </div>
  2785. <div class="tool">
  2786. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  2787. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2788. <div style="margin: 5px 0">批量上传</div>
  2789. </div>
  2790. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2791. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2792. <div class="checkDiv" v-else>
  2793. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2794. </div>
  2795. </div>
  2796. </div>
  2797. <!-- <div class="tool">
  2798. <div
  2799. class="whiteBIcon"
  2800. @click="openTools(itemTaskIndex, 40, toolIndex)"
  2801. >
  2802. <img
  2803. src="../../../assets/icon/thirdToolList/eval.png"
  2804. alt
  2805. />
  2806. <div style="margin: 5px 0">个人评价</div>
  2807. </div>
  2808. <div
  2809. class="check"
  2810. @click="addTools(40, itemTaskIndex, toolIndex)"
  2811. >
  2812. <img
  2813. src="../../../assets/icon/checkNo.png"
  2814. alt
  2815. v-if="itemTool.tool.indexOf(40) == -1"
  2816. />
  2817. <div class="checkDiv" v-else>
  2818. <img
  2819. src="../../../assets/icon/checkedIs.png"
  2820. alt
  2821. /><span>已选择</span>
  2822. </div>
  2823. </div>
  2824. </div> -->
  2825. <div class="tool">
  2826. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2827. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2828. <div style="margin: 5px 0">选择匹配</div>
  2829. </div>
  2830. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2831. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  2832. <div class="checkDiv" v-else>
  2833. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2834. </div>
  2835. </div>
  2836. </div>
  2837. <div class="tool">
  2838. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2839. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2840. <div style="margin: 5px 0">排序</div>
  2841. </div>
  2842. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2843. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  2844. <div class="checkDiv" v-else>
  2845. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2846. </div>
  2847. </div>
  2848. </div>
  2849. <!-- <div class="tool">
  2850. <div
  2851. class="whiteBIcon"
  2852. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2853. >
  2854. <img
  2855. src="../../../assets/icon/thirdToolList/mp3.png"
  2856. alt
  2857. />
  2858. <div style="margin: 5px 0">上传音频</div>
  2859. </div>
  2860. <div
  2861. class="check"
  2862. @click="addTools(42, itemTaskIndex, toolIndex)"
  2863. >
  2864. <img
  2865. src="../../../assets/icon/checkNo.png"
  2866. alt
  2867. v-if="itemTool.tool.indexOf(42) == -1"
  2868. />
  2869. <img
  2870. src="../../../assets/icon/checkedIs.png"
  2871. alt
  2872. v-else
  2873. />
  2874. </div>
  2875. </div> -->
  2876. </div>
  2877. <div class="toolSort" v-if="itemTool.toolType == 3">
  2878. <div class="tool">
  2879. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  2880. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2881. <div style="margin: 5px 0">训练平台</div>
  2882. </div>
  2883. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2884. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  2885. <div class="checkDiv" v-else>
  2886. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2887. </div>
  2888. </div>
  2889. </div>
  2890. <div class="tool">
  2891. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  2892. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2893. <div style="margin: 5px 0">AIoT Blockly</div>
  2894. </div>
  2895. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2896. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  2897. <div class="checkDiv" v-else>
  2898. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2899. </div>
  2900. </div>
  2901. </div>
  2902. <div class="tool">
  2903. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2904. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2905. <div style="margin: 5px 0">AI体验</div>
  2906. </div>
  2907. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2908. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2909. <div class="checkDiv" v-else>
  2910. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2911. </div>
  2912. </div>
  2913. </div>
  2914. <div class="tool">
  2915. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  2916. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2917. <div style="margin: 5px 0">AI Python</div>
  2918. </div>
  2919. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2920. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  2921. <div class="checkDiv" v-else>
  2922. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2923. </div>
  2924. </div>
  2925. </div>
  2926. <div class="tool">
  2927. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  2928. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2929. <div style="margin: 5px 0">AI Blockly</div>
  2930. </div>
  2931. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2932. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  2933. <div class="checkDiv" v-else>
  2934. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2935. </div>
  2936. </div>
  2937. </div>
  2938. <!-- <div class="tool">
  2939. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  2940. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2941. <div style="margin: 5px 0">源码编辑</div>
  2942. </div>
  2943. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2944. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  2945. <div class="checkDiv" v-else>
  2946. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2947. </div>
  2948. </div>
  2949. </div> -->
  2950. <div class="tool">
  2951. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  2952. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2953. <div style="margin: 5px 0">CocoPi</div>
  2954. </div>
  2955. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2956. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  2957. <div class="checkDiv" v-else>
  2958. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2959. </div>
  2960. </div>
  2961. </div>
  2962. <div class="tool">
  2963. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  2964. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2965. <div style="margin: 5px 0">海龟编程</div>
  2966. </div>
  2967. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2968. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  2969. <div class="checkDiv" v-else>
  2970. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2971. </div>
  2972. </div>
  2973. </div>
  2974. </div>
  2975. <div class="toolSort" v-if="itemTool.toolType == 7">
  2976. <div class="tool">
  2977. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2978. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2979. <div style="margin: 5px 0">个人评价</div>
  2980. </div>
  2981. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2982. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2983. <div class="checkDiv" v-else>
  2984. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2985. </div>
  2986. </div>
  2987. </div>
  2988. </div>
  2989. <div class="toolSort" v-if="itemTool.toolType == 5">
  2990. <div class="tool">
  2991. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2992. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  2993. <div style="margin: 5px 0">翻译</div>
  2994. </div>
  2995. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2996. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2997. <div class="checkDiv" v-else>
  2998. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2999. </div>
  3000. </div>
  3001. </div>
  3002. <div class="tool">
  3003. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3004. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3005. <div style="margin: 5px 0">魔盒识字</div>
  3006. </div>
  3007. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3008. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3009. <div class="checkDiv" v-else>
  3010. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3011. </div>
  3012. </div>
  3013. </div>
  3014. <div class="tool">
  3015. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3016. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3017. <div style="margin: 5px 0">24点</div>
  3018. </div>
  3019. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3020. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3021. <div class="checkDiv" v-else>
  3022. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3023. </div>
  3024. </div>
  3025. </div>
  3026. <div class="tool">
  3027. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3028. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3029. <div style="margin: 5px 0">数学画板</div>
  3030. </div>
  3031. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3032. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3033. <div class="checkDiv" v-else>
  3034. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3035. </div>
  3036. </div>
  3037. </div>
  3038. <div class="tool">
  3039. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3040. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3041. <div style="margin: 5px 0">GeoGebra</div>
  3042. </div>
  3043. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3044. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3045. <div class="checkDiv" v-else>
  3046. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3047. </div>
  3048. </div>
  3049. </div>
  3050. <div class="tool">
  3051. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3052. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3053. <div style="margin: 5px 0">模拟驾驶</div>
  3054. </div>
  3055. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3056. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3057. <div class="checkDiv" v-else>
  3058. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3059. </div>
  3060. </div>
  3061. </div>
  3062. <div class="tool">
  3063. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3064. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3065. <div style="margin: 5px 0">路径搜索</div>
  3066. </div>
  3067. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3068. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3069. <div class="checkDiv" v-else>
  3070. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3071. </div>
  3072. </div>
  3073. </div>
  3074. <div class="tool">
  3075. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3076. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3077. <div style="margin: 5px 0">深度学习</div>
  3078. </div>
  3079. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3080. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3081. <div class="checkDiv" v-else>
  3082. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3083. </div>
  3084. </div>
  3085. </div>
  3086. <div class="tool">
  3087. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3088. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3089. <div style="margin: 5px 0">全历史</div>
  3090. </div>
  3091. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3092. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3093. <div class="checkDiv" v-else>
  3094. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3095. </div>
  3096. </div>
  3097. </div>
  3098. </div>
  3099. <div class="toolSort" v-if="itemTool.toolType == 4">
  3100. <div class="tool">
  3101. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3102. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3103. <div style="margin: 5px 0">课程设计</div>
  3104. </div>
  3105. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3106. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3107. <div class="checkDiv" v-else>
  3108. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3109. </div>
  3110. </div>
  3111. </div>
  3112. <div class="tool">
  3113. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3114. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3115. <div style="margin: 5px 0">目标管理</div>
  3116. </div>
  3117. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3118. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3119. <div class="checkDiv" v-else>
  3120. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3121. </div>
  3122. </div>
  3123. </div>
  3124. <!-- <div class="tool">
  3125. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3126. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3127. <div style="margin: 5px 0">汉字宫</div>
  3128. </div>
  3129. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3130. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3131. <div class="checkDiv" v-else>
  3132. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3133. </div>
  3134. </div>
  3135. </div> -->
  3136. </div>
  3137. </div>
  3138. </div>
  3139. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  3140. <div class="addToolImg">
  3141. <img src="../../../assets/icon/add.png" alt />
  3142. </div>
  3143. <div>添加工具</div>
  3144. </div>
  3145. </div>
  3146. </div>
  3147. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  3148. unitJson[unitIndex].easy == 4
  3149. " class="toolChoose" style="padding: 0 0 0 30px">
  3150. <div class="tools">
  3151. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3152. :key="toolIndex">
  3153. <div>
  3154. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  3155. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  3156. </div>
  3157. <div style="
  3158. display: flex;
  3159. flex-direction: row;
  3160. align-items: baseline;
  3161. flex-wrap: nowrap;
  3162. justify-content: flex-start;
  3163. position: relative;
  3164. ">
  3165. <div style="margin-right: 20px; font-weight: bold">
  3166. 步骤 {{ toolIndex + 1 }} :
  3167. </div>
  3168. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3169. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  3170. </div>
  3171. <div style="min-height: 163px">
  3172. <div class="toolSort">
  3173. <div class="tool">
  3174. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  3175. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3176. <div style="margin: 5px 0">电子白板</div>
  3177. </div>
  3178. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  3179. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  3180. <div class="checkDiv" v-else>
  3181. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3182. </div>
  3183. </div>
  3184. </div>
  3185. <div class="tool">
  3186. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  3187. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3188. <div style="margin: 5px 0">文档</div>
  3189. </div>
  3190. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  3191. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  3192. <div class="checkDiv" v-else>
  3193. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3194. </div>
  3195. </div>
  3196. </div>
  3197. <div class="tool">
  3198. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  3199. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3200. <div style="margin: 5px 0">思维导图</div>
  3201. </div>
  3202. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  3203. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  3204. <div class="checkDiv" v-else>
  3205. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3206. </div>
  3207. </div>
  3208. </div>
  3209. <div class="tool">
  3210. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  3211. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3212. <div style="margin: 5px 0">问卷调查</div>
  3213. </div>
  3214. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3215. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  3216. <div class="checkDiv" v-else>
  3217. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3218. </div>
  3219. </div>
  3220. </div>
  3221. <div class="tool">
  3222. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  3223. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3224. <div style="margin: 5px 0">选择题</div>
  3225. </div>
  3226. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3227. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  3228. <div class="checkDiv" v-else>
  3229. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3230. </div>
  3231. </div>
  3232. </div>
  3233. <div class="tool">
  3234. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  3235. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3236. <div style="margin: 5px 0">问答</div>
  3237. </div>
  3238. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3239. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  3240. <div class="checkDiv" v-else>
  3241. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3242. </div>
  3243. </div>
  3244. </div>
  3245. <div class="tool">
  3246. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  3247. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3248. <div style="margin: 5px 0">作业提交</div>
  3249. </div>
  3250. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3251. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  3252. <div class="checkDiv" v-else>
  3253. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3254. </div>
  3255. </div>
  3256. </div>
  3257. <div class="tool">
  3258. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3259. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3260. <div style="margin: 5px 0">批量上传</div>
  3261. </div>
  3262. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3263. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3264. <div class="checkDiv" v-else>
  3265. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3266. </div>
  3267. </div>
  3268. </div>
  3269. <div class="tool">
  3270. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  3271. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3272. <div style="margin: 5px 0">选择匹配</div>
  3273. </div>
  3274. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3275. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  3276. <div class="checkDiv" v-else>
  3277. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3278. </div>
  3279. </div>
  3280. </div>
  3281. <div class="tool">
  3282. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  3283. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3284. <div style="margin: 5px 0">排序</div>
  3285. </div>
  3286. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3287. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  3288. <div class="checkDiv" v-else>
  3289. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3290. </div>
  3291. </div>
  3292. </div>
  3293. <div class="tool">
  3294. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  3295. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3296. <div style="margin: 5px 0">表格</div>
  3297. </div>
  3298. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  3299. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  3300. <div class="checkDiv" v-else>
  3301. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3302. </div>
  3303. </div>
  3304. </div>
  3305. </div>
  3306. </div>
  3307. </div>
  3308. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3309. <div class="addToolImg">
  3310. <img src="../../../assets/icon/add.png" alt />
  3311. </div>
  3312. <div>添加工具</div>
  3313. </div>
  3314. </div>
  3315. </div>
  3316. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  3317. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  3318. " class="toolChoose" style="padding: 0 0 0 30px">
  3319. <div class="tools">
  3320. <div class="leftTools" style="
  3321. width: 95%;
  3322. padding: 0 0 15px 0;
  3323. margin-bottom: 15px;
  3324. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  3325. <div style="min-height: 163px">
  3326. <div class="toolSort">
  3327. <div class="tool">
  3328. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3329. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3330. <div style="margin: 5px 0">批量上传</div>
  3331. </div>
  3332. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3333. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3334. <div class="checkDiv" v-else>
  3335. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3336. </div>
  3337. </div>
  3338. </div>
  3339. </div>
  3340. </div>
  3341. </div>
  3342. </div>
  3343. </div>
  3344. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  3345. <div class="elist_title">
  3346. <div style="
  3347. display: flex;
  3348. flex-direction: row;
  3349. align-items: center;
  3350. margin-bottom: 20px;
  3351. ">
  3352. <div class="lineTitle">评价设置</div>
  3353. </div>
  3354. </div>
  3355. <div class="mbCss">
  3356. <div class="pjCss">
  3357. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3358. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3359. <span>评价名称:</span>
  3360. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  3361. <span>评星等级:</span>
  3362. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  3363. <div class="remove" @click="
  3364. deletEList(unitIndex, itemTaskIndex, eIndex)
  3365. "></div>
  3366. <div class="elist_inptu_text">
  3367. <span>评价描述:</span>
  3368. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  3369. </div>
  3370. <div class="elist_inptu_text" v-if="evalua">
  3371. <span>目标:</span>
  3372. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  3373. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3374. @change="forceUpdate()">
  3375. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3376. :value="e.name">
  3377. </el-option>
  3378. </el-select> -->
  3379. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3380. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3381. </div>
  3382. </div>
  3383. </div>
  3384. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  3385. <div class="addToolImg">
  3386. <img src="../../../assets/icon/add.png" alt />
  3387. </div>
  3388. <div>添加</div>
  3389. </div>
  3390. </div>
  3391. <div v-if="evalua" style="
  3392. border: 1px solid #e5e5e5;
  3393. width: 55%;
  3394. margin-top: 20px;
  3395. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3396. " class="evaCss">
  3397. <div class="e_add_top">
  3398. <div class="e_add_title">
  3399. <span>当前使用目标管理</span>
  3400. <span>{{ eTitle }}</span>
  3401. <img src="../../../assets/line.png" class="cru_line" style="
  3402. width: 125px;
  3403. height: 20px;
  3404. bottom: -10px;
  3405. left: 155px;
  3406. " />
  3407. </div>
  3408. </div>
  3409. <div class="e_add_content" style="width: 100%">
  3410. <div class="e_add_list_pbox" style="width: 100%">
  3411. <div class="e_add_list_pbox_title">
  3412. <span class="type_title">切换模式</span>
  3413. <div class="type_content">
  3414. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  3415. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  3416. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  3417. </div>
  3418. </div>
  3419. <div class="e_add_list_pbox_content">
  3420. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3421. " v-if="typeMode == 1"></Mind>
  3422. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3423. </Sunburst>
  3424. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3425. v-if="typeMode == 3"></SeeBoard>
  3426. </div>
  3427. </div>
  3428. </div>
  3429. </div>
  3430. </div>
  3431. </div>
  3432. <div class="funBlock" style="padding: 0">
  3433. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  3434. <div>折叠</div>
  3435. <div class="arrow">
  3436. <img src="../../../assets/icon/fold.png" alt />
  3437. </div>
  3438. </div>
  3439. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3440. <div>展开</div>
  3441. <div class="arrow">
  3442. <img src="../../../assets/icon/expand.png" alt />
  3443. </div>
  3444. </div>
  3445. </div>
  3446. </div>
  3447. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3448. <div>
  3449. <img src="../../../assets/icon/new/addStage.png" alt />
  3450. <span>添加任务</span>
  3451. </div>
  3452. </div>
  3453. </div>
  3454. </div>
  3455. </div>
  3456. <div class="rightBox" v-if="this.steps == 4">
  3457. <div class="basic_box_success">
  3458. <div class="right_img">
  3459. <img src="../../../assets/icon/right.png" alt />
  3460. </div>
  3461. <div style="font-weight: bold">成功</div>
  3462. <!-- <div>您的课程编号</div>
  3463. <div class="number">{{ number }}</div>-->
  3464. <!-- <div class="success_button">
  3465. <div class="look_course" @click="isNoFinsh">
  3466. 邀请老师协同编辑
  3467. </div>
  3468. <div class="attend_others" @click="goCourse">预览课程</div>
  3469. </div> -->
  3470. </div>
  3471. </div>
  3472. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3473. @mouseleave="btnDisplay(false)" v-if="false">
  3474. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps" v-if="isBtnDisplay">
  3475. 返回课程
  3476. </button>
  3477. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="isBtnDisplay">
  3478. 确认上传
  3479. </button>
  3480. </div>
  3481. </div>
  3482. </div>
  3483. </div>
  3484. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3485. class="dialog_diy2 customWidth">
  3486. <div>请复制该链接邀请协同编辑</div>
  3487. <div>http://www.boomyon.com/index-zhang.com</div>
  3488. <span slot="footer" class="dialog-footer">
  3489. <el-button type="primary">复制链接分享</el-button>
  3490. <el-button @click="dialogVisible = false">取消</el-button>
  3491. </span>
  3492. </el-dialog>
  3493. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  3494. :before-close="handleClose" class="dialog_diy2 customWidth">
  3495. <el-form>
  3496. <el-form-item label="文档标题">
  3497. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3498. </el-form-item>
  3499. <div>文档简介</div>
  3500. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3501. </el-form>
  3502. <span slot="footer" class="dialog-footer">
  3503. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3504. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3505. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3506. </span>
  3507. </el-dialog>
  3508. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3509. :before-close="handleClose" class="dialog_diy">
  3510. <el-form>
  3511. <el-form-item label="文档标题">
  3512. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3513. </el-form-item>
  3514. <div>文档内容</div>
  3515. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3516. </el-form>
  3517. <span slot="footer" class="dialog-footer">
  3518. <el-button @click="clearChoose">取 消</el-button>
  3519. <el-button type="primary" @click="wordNext()">确定</el-button>
  3520. </span>
  3521. </el-dialog>
  3522. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3523. :before-close="handleClose" class="dialog_diy">
  3524. <el-form>
  3525. <el-form-item label="文本标题">
  3526. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3527. placeholder="请输入文本标题..."></el-input>
  3528. </el-form-item>
  3529. <!-- <div>富文本内容</div> -->
  3530. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3531. </el-form>
  3532. <span slot="footer" class="dialog-footer">
  3533. <el-button @click="clearAttText">取 消</el-button>
  3534. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3535. </span>
  3536. </el-dialog>
  3537. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3538. :before-close="handleClose" class="dialog_diy lineCss">
  3539. <el-form>
  3540. <el-form-item label="标题" :label-width="formLabelWidth">
  3541. <span>
  3542. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3543. </span>
  3544. </el-form-item>
  3545. <el-form-item label="链接" :label-width="formLabelWidth">
  3546. <span>
  3547. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3548. </span>
  3549. </el-form-item>
  3550. </el-form>
  3551. <span slot="footer" class="dialog-footer">
  3552. <el-button @click="clearLine">取 消</el-button>
  3553. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3554. </span>
  3555. </el-dialog>
  3556. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3557. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3558. <div>
  3559. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3560. </div>
  3561. <span slot="footer" class="dialog-footer">
  3562. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3563. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3564. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3565. </span>
  3566. </el-dialog>
  3567. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3568. :before-close="handleClose" class="addNewPP customWidth">
  3569. <div class="people">
  3570. <div class="people_top">
  3571. <div class="people_nav">选择成员</div>
  3572. <div class="people_top_right">
  3573. <div class="people_search">
  3574. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3575. <div class="search_img" @click="searchStudent">
  3576. <img src="../../../assets/icon/search.png" alt />
  3577. </div>
  3578. </div>
  3579. </div>
  3580. </div>
  3581. <el-checkbox-group v-model="checkboxList" class="people_name">
  3582. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3583. "暂无学生可选" }}</el-checkbox>
  3584. </el-checkbox-group>
  3585. </div>
  3586. <span slot="footer" class="dialog-footer">
  3587. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3588. <el-button type="primary" @click="isAddPP">确定</el-button>
  3589. </span>
  3590. </el-dialog>
  3591. <!-- <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  3592. :before-close="handleClose" class="addNewPP">
  3593. <div class="people" style="height: 300px">
  3594. <div class="people_top">
  3595. <div class="people_top_right">
  3596. <div class="people_search">
  3597. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  3598. <el-option label="全部" value=""></el-option>
  3599. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
  3600. :value="item.id"></el-option>
  3601. </el-select>
  3602. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  3603. <div class="search_img">
  3604. <img src="../../../assets/icon/search.png" alt />
  3605. </div>
  3606. </div>
  3607. </div>
  3608. <div class="people_nav">选择班级</div>
  3609. </div>
  3610. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
  3611. v-if="grade2.length">
  3612. <div v-for="item in grade2" :key="item.id" class="p_box">
  3613. <el-checkbox :label="item.id">
  3614. {{ item.name }}
  3615. </el-checkbox>
  3616. </div>
  3617. </el-checkbox-group>
  3618. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  3619. </div>
  3620. <span slot="footer" class="dialog-footer">
  3621. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3622. <el-button type="primary" @click="isAddClass">确定</el-button>
  3623. </span>
  3624. </el-dialog> -->
  3625. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3626. :before-close="handleClose" class="addNewPP2">
  3627. <div class="check_classBox">
  3628. <div class="check_class_right">
  3629. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  3630. 全部
  3631. </div>
  3632. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3633. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  3634. {{ item.name }}
  3635. </div>
  3636. </el-tooltip>
  3637. </div>
  3638. <div class="check_class_left">
  3639. <div class="check_class_all_box">
  3640. <div class="check_class_left_title">选择班级</div>
  3641. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  3642. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  3643. </div>
  3644. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  3645. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  3646. </div> -->
  3647. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  3648. <div v-for="item in grade2" :key="item.id" class="class_item">
  3649. <el-checkbox :label="item.id">
  3650. {{ item.name }}
  3651. </el-checkbox>
  3652. </div>
  3653. </el-checkbox-group>
  3654. <div v-if="!grade2.length">暂无数据</div>
  3655. </div>
  3656. </div>
  3657. <span slot="footer" class="dialog-footer">
  3658. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3659. <el-button type="primary" @click="isAddClass">确定</el-button>
  3660. </span>
  3661. </el-dialog>
  3662. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3663. :before-close="handleClose" class="addNewPP customWidth">
  3664. <div class="people">
  3665. <div class="people_top">
  3666. <div class="people_top_right">
  3667. <div class="people_search">
  3668. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3669. <div class="search_img" @click="getTeacher">
  3670. <img src="../../../assets/icon/search.png" alt />
  3671. </div>
  3672. </div>
  3673. </div>
  3674. <div class="people_nav">选择成员</div>
  3675. </div>
  3676. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  3677. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3678. <div class="t_j_box">
  3679. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3680. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3681. </el-tooltip>
  3682. <el-tooltip placement="top" :content="item.username">
  3683. <span>{{ item.username }}</span>
  3684. </el-tooltip>
  3685. <el-tooltip placement="top" :content="item.school">
  3686. <span>{{ item.school }}</span>
  3687. </el-tooltip>
  3688. </div>
  3689. </el-checkbox>
  3690. </el-checkbox-group>
  3691. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3692. </div>
  3693. <span slot="footer" class="dialog-footer">
  3694. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3695. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3696. </span>
  3697. </el-dialog>
  3698. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  3699. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  3700. <div style="height:100%">
  3701. <div class="a_add_title" style="
  3702. display: flex;
  3703. flex-direction: row;
  3704. align-items: center;
  3705. justify-content: center;
  3706. ">
  3707. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3708. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3709. </div>
  3710. <div class="a_addBox" style="height:calc(100% - 50px)">
  3711. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3712. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3713. <div class="a_add_checkType">
  3714. <span :class="{
  3715. active:
  3716. askJson.askJson[index1].type == '1' ||
  3717. !askJson.askJson[index1].type,
  3718. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3719. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3720. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3721. </div>
  3722. <div class="a_add_head">
  3723. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  3724. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  3725. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  3726. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  3727. </div>
  3728. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  3729. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  3730. </div>
  3731. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  3732. </div>
  3733. <div class="a_add_head_div">
  3734. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3735. </el-button>
  3736. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  3737. </div>
  3738. </div>
  3739. <div class="a_add_body">
  3740. <div class="a_add_input" style="flex-direction: column;">
  3741. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  3742. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  3743. <div style="margin-right: 10px">
  3744. 选项{{ checkIndex + 1 }}
  3745. </div>
  3746. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  3747. " placeholder="请输入选项" style="width: 300px" @change="() => { $forceUpdate() }"></textarea>
  3748. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  3749. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  3750. </div>
  3751. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  3752. </div>
  3753. <div class="a_add_body_div">
  3754. <el-button type="primary" size="small"
  3755. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  3756. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  3757. v-if="askJson.askJson[index1].askItem != 1">删除
  3758. </el-button>
  3759. </div>
  3760. </div>
  3761. </div>
  3762. <!-- <div class="a_add_body_div">
  3763. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3764. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3765. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3766. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3767. </el-button>
  3768. </div> -->
  3769. </div>
  3770. </div>
  3771. </div>
  3772. </div>
  3773. <span slot="footer" class="dialog-footer">
  3774. <el-button @click="closePan(4)">取 消</el-button>
  3775. <el-button type="primary" @click="addAsk">确 定</el-button>
  3776. </span>
  3777. </el-dialog>
  3778. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  3779. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  3780. <div style="height:100%">
  3781. <!-- <div class="a_add_title" style="
  3782. display: flex;
  3783. flex-direction: row;
  3784. align-items: center;
  3785. justify-content: center;
  3786. ">
  3787. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3788. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3789. </div> -->
  3790. <div class="a_addBox" style="height:100%">
  3791. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  3792. <!-- 请输入题目内容 -->
  3793. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  3794. v-if="isPasteChoice">智能粘贴</button>
  3795. </div>
  3796. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3797. <div class="a_add_checkType">
  3798. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  3799. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  3800. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  3801. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  3802. </div>
  3803. <div class="a_add_head">
  3804. <div class="timuUpImg">
  3805. <div style="display: flex;align-items: center;">
  3806. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  3807. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  3808. placeholder="请输入题目">
  3809. </el-input> -->
  3810. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3811. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  3812. @change="() => { $forceUpdate() }"></textarea>
  3813. </div>
  3814. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  3815. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  3816. </div>
  3817. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  3818. </div>
  3819. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  3820. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3821. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  3822. </div>
  3823. </div>
  3824. <div class="a_add_head_div">
  3825. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  3826. </el-button>
  3827. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  3828. </div>
  3829. </div>
  3830. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3831. testJson.testJson[index1].timuList.length
  3832. ">
  3833. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3834. @click.stop="previewImg(timg.src)">
  3835. <img :src="timg.src" alt="" />
  3836. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  3837. <img src="../../../assets/icon/delete.png" alt="" />
  3838. </div>
  3839. </div>
  3840. </div>
  3841. <div class="a_add_body">
  3842. <div class="a_add_input a_add_input_choice">
  3843. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  3844. @change="() => { $forceUpdate() }">
  3845. <div class="radioBox">
  3846. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3847. .testItem" :key="checkIndex" :label="checkIndex">
  3848. <div style="margin-right: 10px">
  3849. 选项{{ checkIndex + 1 }}
  3850. </div>
  3851. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3852. testJson.testJson[index1].checkList[checkIndex]
  3853. .imgType &&
  3854. testJson.testJson[index1].checkList[checkIndex]
  3855. .imgType == 1
  3856. ">
  3857. <div class="inImg" @click.stop="
  3858. previewImg(
  3859. testJson.testJson[index1].checkList[checkIndex]
  3860. .src
  3861. )
  3862. ">
  3863. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3864. .src
  3865. " lazy />
  3866. <!-- <img :src="
  3867. testJson.testJson[index1].checkList[checkIndex]
  3868. .src
  3869. " alt="" /> -->
  3870. </div>
  3871. </div>
  3872. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3873. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3874. @change="() => { $forceUpdate() }"></textarea>
  3875. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3876. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  3877. </div>
  3878. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  3879. </div>
  3880. <div class="xzUpImg" @click.stop="addImg($event)">
  3881. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3882. <input type="file" accept="image/*" style="display: none"
  3883. @change="beforeUploadTi($event, index1, checkIndex)" />
  3884. </div>
  3885. <div class="a_add_body_div">
  3886. <el-button type="primary" size="small"
  3887. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  3888. <el-button type="primary" size="small"
  3889. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  3890. v-if="testJson.testJson[index1].testItem != 1">删除
  3891. </el-button>
  3892. </div>
  3893. </el-radio>
  3894. </div>
  3895. </el-radio-group>
  3896. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  3897. @change="() => { $forceUpdate() }">
  3898. <div class="radioBox">
  3899. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3900. .testItem" :key="checkIndex1" :label="checkIndex1">
  3901. <div style="margin-right: 10px">
  3902. 选项{{ checkIndex1 + 1 }}
  3903. </div>
  3904. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3905. testJson.testJson[index1].checkList[checkIndex1]
  3906. .imgType &&
  3907. testJson.testJson[index1].checkList[checkIndex1]
  3908. .imgType == 1
  3909. ">
  3910. <div class="inImg" @click.stop="
  3911. previewImg(
  3912. testJson.testJson[index1].checkList[checkIndex1]
  3913. .src
  3914. )
  3915. ">
  3916. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3917. .src
  3918. " lazy />
  3919. <!-- <img :src="
  3920. testJson.testJson[index1].checkList[checkIndex1]
  3921. .src
  3922. " alt="" /> -->
  3923. </div>
  3924. </div>
  3925. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3926. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3927. @change="() => { $forceUpdate() }"></textarea>
  3928. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3929. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3930. </div>
  3931. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3932. </div>
  3933. <div class="xzUpImg" @click.stop="addImg($event)">
  3934. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3935. <input type="file" accept="image/*" style="display: none"
  3936. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3937. </div>
  3938. <div class="a_add_body_div">
  3939. <el-button type="primary" size="small"
  3940. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3941. <el-button type="primary" size="small"
  3942. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3943. v-if="testJson.testJson[index1].testItem != 1">删除
  3944. </el-button>
  3945. </div>
  3946. </el-checkbox>
  3947. </div>
  3948. </el-checkbox-group>
  3949. </div>
  3950. <!-- <div class="a_add_body_div">
  3951. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3952. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3953. v-if="testJson.testJson[index1].testItem != 1">删除
  3954. </el-button>
  3955. </div> -->
  3956. </div>
  3957. </div>
  3958. </div>
  3959. </div>
  3960. <span slot="footer" class="dialog-footer">
  3961. <el-button @click="closePan(45)">取 消</el-button>
  3962. <el-button type="primary" @click="addTest">确 定</el-button>
  3963. </span>
  3964. </el-dialog>
  3965. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3966. :before-close="handleClose" class="dialog_diy addToolsDia">
  3967. <div class="toolChoose" style="padding: 0 0 0 30px">
  3968. <div class="tools">
  3969. <div class="leftTools" style="
  3970. width: 95%;
  3971. padding: 0 0 15px 0;
  3972. margin: 15px 0;
  3973. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3974. <div style="
  3975. display: flex;
  3976. flex-direction: row;
  3977. align-items: baseline;
  3978. flex-wrap: nowrap;
  3979. justify-content: flex-start;
  3980. position: relative;
  3981. ">
  3982. <div class="chooseWho">
  3983. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3984. 互动类
  3985. </div>
  3986. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3987. 思维类
  3988. </div>
  3989. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3990. 评价类
  3991. </div>
  3992. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3993. 其他
  3994. </div>
  3995. </div>
  3996. </div>
  3997. <div style="min-height: 163px">
  3998. <div class="toolSort" v-if="chapToolsType == 0">
  3999. <div class="tool">
  4000. <div class="whiteBIcon" @click="chapAddTools(8)">
  4001. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4002. <div style="margin: 5px 0">素材库</div>
  4003. </div>
  4004. <div class="check" @click="chapAddTools(8)">
  4005. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4006. <div class="checkDiv" v-else>
  4007. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4008. </div>
  4009. </div>
  4010. </div>
  4011. </div>
  4012. <div class="toolSort" v-if="chapToolsType == 1">
  4013. <div class="tool">
  4014. <div class="whiteBIcon" @click="chapAddTools(7)">
  4015. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4016. <div style="margin: 5px 0">思维网格</div>
  4017. </div>
  4018. <div class="check" @click="chapAddTools(7)">
  4019. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4020. <div class="checkDiv" v-else>
  4021. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4022. </div>
  4023. </div>
  4024. </div>
  4025. <div class="tool">
  4026. <div class="whiteBIcon" @click="chapAddTools(1)">
  4027. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4028. <div style="margin: 5px 0">电子白板</div>
  4029. </div>
  4030. <div class="check" @click="chapAddTools(1)">
  4031. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4032. <div class="checkDiv" v-else>
  4033. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4034. </div>
  4035. </div>
  4036. </div>
  4037. <div class="tool">
  4038. <div class="whiteBIcon" @click="chapAddTools(2)">
  4039. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4040. <div style="margin: 5px 0">便签</div>
  4041. </div>
  4042. <div class="check" @click="chapAddTools(2)">
  4043. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4044. <div class="checkDiv" v-else>
  4045. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4046. </div>
  4047. </div>
  4048. </div>
  4049. <div class="tool">
  4050. <div class="whiteBIcon" @click="chapAddTools(6)">
  4051. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4052. <div style="margin: 5px 0">协同文档</div>
  4053. </div>
  4054. <div class="check" @click="chapAddTools(6)">
  4055. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4056. <div class="checkDiv" v-else>
  4057. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4058. </div>
  4059. </div>
  4060. </div>
  4061. <div class="tool">
  4062. <div class="whiteBIcon" @click="chapAddTools(3)">
  4063. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4064. <div style="margin: 5px 0">思维导图</div>
  4065. </div>
  4066. <div class="check" @click="chapAddTools(3)">
  4067. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4068. <div class="checkDiv" v-else>
  4069. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4070. </div>
  4071. </div>
  4072. </div>
  4073. <div class="tool">
  4074. <div class="whiteBIcon" @click="chapAddTools(31)">
  4075. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4076. <div style="margin: 5px 0">数学画板</div>
  4077. </div>
  4078. <div class="check" @click="chapAddTools(31)">
  4079. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4080. <div class="checkDiv" v-else>
  4081. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4082. </div>
  4083. </div>
  4084. </div>
  4085. </div>
  4086. <div class="toolSort" v-if="chapToolsType == 2">
  4087. <div class="tool">
  4088. <div class="whiteBIcon" @click="chapAddTools(5)">
  4089. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4090. <div style="margin: 5px 0">量规评分</div>
  4091. </div>
  4092. <div class="check" @click="chapAddTools(5)">
  4093. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4094. <div class="checkDiv" v-else>
  4095. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4096. </div>
  4097. </div>
  4098. </div>
  4099. <div class="tool">
  4100. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  4101. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4102. <div style="margin: 5px 0">问卷调查</div>
  4103. </div>
  4104. <div class="check" @click="chapAddTools(4)">
  4105. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4106. <div class="checkDiv" v-else>
  4107. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4108. </div>
  4109. </div>
  4110. </div>
  4111. </div>
  4112. </div>
  4113. <div>
  4114. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  4115. v-model="itemTools.toolDetail" />
  4116. </div>
  4117. </div>
  4118. </div>
  4119. </div>
  4120. <span slot="footer" class="dialog-footer">
  4121. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4122. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4123. </span>
  4124. </el-dialog>
  4125. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  4126. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  4127. <div>
  4128. <div class="a_add_title" style="
  4129. display: flex;
  4130. flex-direction: column;
  4131. align-items: flex-start;
  4132. justify-content: center;
  4133. ">
  4134. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4135. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  4136. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4137. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  4138. </div>
  4139. </div>
  4140. <span slot="footer" class="dialog-footer">
  4141. <el-button @click="closePan(15)">取 消</el-button>
  4142. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4143. </span>
  4144. </el-dialog>
  4145. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4146. :before-close="handleClose" class="dialog_diy">
  4147. <div>
  4148. <div class="a_add_title" style="
  4149. display: flex;
  4150. flex-direction: column;
  4151. align-items: flex-start;
  4152. justify-content: center;
  4153. ">
  4154. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4155. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4156. </div>
  4157. </div>
  4158. <span slot="footer" class="dialog-footer">
  4159. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4160. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4161. </span>
  4162. </el-dialog>
  4163. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4164. :before-close="handleClose" class="dialog_diy">
  4165. <div>
  4166. <div class="fileCss" style="padding-top: 20px">
  4167. <div>
  4168. <button class="info_btn" @click="addImg($event)">
  4169. 选择本地文件
  4170. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4171. </button>
  4172. <div class="spanName">选择本地文件</div>
  4173. </div>
  4174. <div>
  4175. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4176. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4177. <img :src="cover[0].url" alt="" />
  4178. <div class="deletePic" @click="deleteSysPic">
  4179. <img src="../../../assets/icon/delete.png" alt="" />
  4180. </div>
  4181. </div>
  4182. <div class="spanName">选择系统文件</div>
  4183. </div>
  4184. <div>
  4185. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  4186. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4187. <img :src="cover[0].url" alt="" />
  4188. <div class="deletePic" @click="deleteSysPic">
  4189. <img src="../../../assets/icon/delete.png" alt="" />
  4190. </div>
  4191. </div>
  4192. <div class="spanName">选择网络文件</div>
  4193. </div>
  4194. </div>
  4195. <!-- <div class="fileCss">
  4196. <div>选择本地文件</div>
  4197. <div>选择系统文件</div>
  4198. </div> -->
  4199. </div>
  4200. <span slot="footer" class="dialog-footer">
  4201. <el-button @click="choosePicVisible = false">取 消</el-button>
  4202. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4203. </span>
  4204. </el-dialog>
  4205. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4206. :before-close="handleClose" class="dialog_diy">
  4207. <div class="cru_selectBox" style="margin: 0">
  4208. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4209. 绘画
  4210. </div>
  4211. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4212. 科技
  4213. </div>
  4214. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4215. 人文
  4216. </div>
  4217. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4218. 艺术
  4219. </div>
  4220. </div>
  4221. <div class="sysPicBox">
  4222. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4223. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4224. </div>
  4225. </div>
  4226. </el-dialog>
  4227. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4228. :before-close="handleClose" class="dialog_diy">
  4229. <div>
  4230. <div class="people_top_right" style="display: flex;align-items: center;">
  4231. <div style="position: relative; width: 100%;">
  4232. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4233. @keyup.enter.native="resetImage()"></el-input>
  4234. <div class="search_img" @click="resetImage" style="right: 10px;">
  4235. <img src="../../../assets/icon/search.png" alt />
  4236. </div>
  4237. </div>
  4238. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  4239. </div>
  4240. <div class="sysPicBox" v-loading="imageloading">
  4241. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  4242. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4243. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4244. </div>
  4245. </div>
  4246. </div>
  4247. </el-dialog>
  4248. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  4249. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  4250. <div v-if="selectJson" style="height:100%">
  4251. <div class="select_box1" v-if="selectSteps == 1">
  4252. <div class="select_box1_img">
  4253. <div class="select_box1_title">
  4254. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4255. </div>
  4256. <div class="select_box1_add_img">
  4257. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4258. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4259. <img src="../../../assets/icon/addPoster.png" alt="" />
  4260. </div>
  4261. <div class="isSysPic" v-else>
  4262. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4263. <div class="deletePic" @click="deleteSelectPic">
  4264. <img src="../../../assets/icon/delete.png" alt="" />
  4265. </div>
  4266. </div>
  4267. </div>
  4268. </div>
  4269. <div class="select_box1_select">
  4270. <div class="select_box1_title">
  4271. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4272. </div>
  4273. <div class="select_box1_select_box">
  4274. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4275. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4276. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4277. <div class="select_box1_select_box_add">
  4278. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4279. 添加</el-button>
  4280. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4281. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4282. </div>
  4283. </div>
  4284. </div>
  4285. </div>
  4286. <div v-if="selectSteps == 2" style="height:100%">
  4287. <div class="select_box2">
  4288. <div class="select_box2_title">设置每道题目的正确选项</div>
  4289. <div class="select_box2_box">
  4290. <div class="select_box2_img">
  4291. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4292. </div>
  4293. <div class="select_box2_answer">
  4294. <div class="select_answer_title">根据题目选择对应答案</div>
  4295. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4296. <span>{{ checkIndex + 1 }}、</span>
  4297. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4298. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4299. </el-option>
  4300. </el-select>
  4301. </div>
  4302. </div>
  4303. </div>
  4304. </div>
  4305. </div>
  4306. </div>
  4307. <span slot="footer" class="dialog-footer">
  4308. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4309. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4310. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4311. </span>
  4312. </el-dialog>
  4313. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4314. :before-close="handleClose" class="dialog_diy">
  4315. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4316. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4317. <div class="pjCss" style="width: 100%">
  4318. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4319. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4320. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4321. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  4322. <div class="remove" @click="deletRateList(eIndex)"></div>
  4323. <div style="width: 100%; display: flex">
  4324. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4325. <el-rate v-model="eItem.score" disabled></el-rate>
  4326. </div>
  4327. <div class="elist_inptu_text" style="align-items: flex-start">
  4328. <span style="min-width: 100px; text-align: right">描述:</span>
  4329. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  4330. </div>
  4331. </div>
  4332. </div>
  4333. <div class="addToolFun" @click="addRateList()">
  4334. <div class="addToolImg">
  4335. <img src="../../../assets/icon/add.png" alt />
  4336. </div>
  4337. <div>添加</div>
  4338. </div>
  4339. </div>
  4340. </div>
  4341. <span slot="footer" class="dialog-footer">
  4342. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4343. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4344. </span>
  4345. </el-dialog>
  4346. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4347. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  4348. <div style="height: 100%;">
  4349. <div class="sentenBox" style="height: 100%;">
  4350. <div class="addSen" @click="addSt">添加题目</div>
  4351. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4352. <div class="sentenTopBox">
  4353. <div class="sentenTop" :index="stIndex + 1">
  4354. <div>题目设置</div>
  4355. <div>
  4356. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4357. </div>
  4358. <div @click="addSen(stIndex)">添加</div>
  4359. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4360. </div>
  4361. </div>
  4362. <div class="cardList">
  4363. <div v-if="st.addSentence.length > 0" class="cardBox">
  4364. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4365. @click="setRightAnswer(s, stIndex, sIndex)">
  4366. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4367. <div>{{ s }}</div>
  4368. </el-tooltip>
  4369. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4370. <img src="../../../assets/icon/delete.png" alt="" />
  4371. </div>
  4372. </div>
  4373. </div>
  4374. <div class="card">
  4375. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4376. </div>
  4377. </div>
  4378. <div class="rightCardBox">
  4379. <div>正确顺序</div>
  4380. <div class="rightCardList">
  4381. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4382. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4383. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4384. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4385. <div>{{ r }}</div>
  4386. </el-tooltip>
  4387. </div>
  4388. <div>{{ rIndex + 1 }}</div>
  4389. </div>
  4390. </div>
  4391. <div class="card" v-if="st.rightAnswer.length == 0">
  4392. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4393. </div>
  4394. <div class="card" v-else>
  4395. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4396. </div>
  4397. </div>
  4398. </div>
  4399. </div>
  4400. </div>
  4401. </div>
  4402. <span slot="footer" class="dialog-footer">
  4403. <el-button @click="closePan(47)">取 消</el-button>
  4404. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4405. </span>
  4406. </el-dialog>
  4407. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4408. :before-close="handleClose" class="dialog_diy">
  4409. <el-form>
  4410. <!-- <el-form-item label="文本标题">
  4411. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4412. </el-form-item> -->
  4413. <div>表格内容</div>
  4414. <Table v-model="tableJson.text" @change="change"></Table>
  4415. </el-form>
  4416. <span slot="footer" class="dialog-footer">
  4417. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4418. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4419. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4420. </span>
  4421. </el-dialog>
  4422. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  4423. :before-close="handleClose" class="dialog_diy">
  4424. <el-form>
  4425. <!-- <el-form-item label="文本标题">
  4426. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4427. </el-form-item> -->
  4428. <div>文档内容</div>
  4429. <editor-bar v-model="wordJson.text"></editor-bar>
  4430. </el-form>
  4431. <span slot="footer" class="dialog-footer">
  4432. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4433. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4434. </span>
  4435. </el-dialog>
  4436. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4437. :before-close="handleClose" class="dialog_diy">
  4438. <div style="
  4439. width: 100%;
  4440. display: flex;
  4441. flex-direction: row;
  4442. flex-wrap: nowrap;
  4443. align-items: center;
  4444. justify-content: center;
  4445. ">
  4446. <div>班级:</div>
  4447. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4448. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4449. </el-option>
  4450. </el-select>
  4451. </div>
  4452. <span slot="footer" class="dialog-footer">
  4453. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4454. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4455. </span>
  4456. </el-dialog>
  4457. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4458. :before-close="handleClose" class="dialog_diy">
  4459. <div style="
  4460. width: 100%;
  4461. display: flex;
  4462. flex-direction: row;
  4463. flex-wrap: nowrap;
  4464. align-items: center;
  4465. justify-content: center;
  4466. ">
  4467. <div>随机码:</div>
  4468. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4469. </div>
  4470. <span slot="footer" class="dialog-footer">
  4471. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4472. <el-button type="primary" @click="addInvite">确定</el-button>
  4473. </span>
  4474. </el-dialog>
  4475. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4476. :before-close="handleClose" class="dialog_diy">
  4477. <div>
  4478. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  4479. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4480. </div>
  4481. <span slot="footer" class="dialog-footer">
  4482. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4483. <el-button type="primary" @click="addPreTime">确定</el-button>
  4484. </span>
  4485. </el-dialog>
  4486. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  4487. class="dialog_diy">
  4488. <div>
  4489. <div style="
  4490. width: 100%;
  4491. display: flex;
  4492. flex-direction: row;
  4493. flex-wrap: nowrap;
  4494. align-content: center;
  4495. align-items: center;
  4496. justify-content: space-between;
  4497. ">
  4498. <div style="
  4499. display: flex;
  4500. flex-flow: row nowrap;
  4501. align-items: flex-start;
  4502. width: 100%;
  4503. flex-direction: column;
  4504. flex-wrap: nowrap;
  4505. position: relative;
  4506. ">
  4507. <div class="e_box">
  4508. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4509. <div class="e_card_picture">
  4510. <img src="../../../assets/e_picture.png" />
  4511. </div>
  4512. <div class="e_card_name">
  4513. <span>{{ item.title }}</span>
  4514. </div>
  4515. <div class="e_card_btn">
  4516. <span @click="checkEva(item.id, 2)">导入</span>
  4517. </div>
  4518. </div>
  4519. <div class="addEva" @click="openT">
  4520. <img src="../../../assets/icon/addEva.png" alt="" />
  4521. </div>
  4522. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4523. 暂无数据
  4524. </div>
  4525. </div>
  4526. </div>
  4527. </div>
  4528. </div>
  4529. <span slot="footer" class="dialog-footer">
  4530. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4531. </span>
  4532. </el-dialog>
  4533. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4534. :before-close="handleClose" class="dialog_diy">
  4535. <div class="groupBox">
  4536. <div v-if="groupJson.group" class="groupContent">
  4537. <div class="groupTitle">请设置小组数量及名称</div>
  4538. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4539. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4540. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4541. <div class="groupBtn">
  4542. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  4543. 添加</el-button>
  4544. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4545. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4546. </div>
  4547. </div>
  4548. </div>
  4549. <div class="groupContent">
  4550. <div class="groupTitle">请设置每组人数</div>
  4551. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4552. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4553. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  4554. @change="numberPan"></el-input>
  4555. </div>
  4556. </div>
  4557. <span slot="footer" class="dialog-footer">
  4558. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4559. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4560. </span>
  4561. </el-dialog>
  4562. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4563. :before-close="handleClose" class="dialog_diy">
  4564. <div style="
  4565. width: 100%;
  4566. display: flex;
  4567. flex-direction: row;
  4568. flex-wrap: nowrap;
  4569. align-items: center;
  4570. justify-content: center;
  4571. ">
  4572. <div style="min-width: fit-content;">文件名称:</div>
  4573. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4574. </div>
  4575. <span slot="footer" class="dialog-footer">
  4576. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4577. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4578. </span>
  4579. </el-dialog>
  4580. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  4581. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle">
  4582. <englishRight @setEngList="setEnglishList" :englishList="englishList"></englishRight>
  4583. <span slot="footer" class="dialog-footer">
  4584. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4585. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4586. </span>
  4587. </el-dialog>
  4588. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4589. </div>
  4590. </template>
  4591. <script>
  4592. import "../../../common/aws-sdk-2.235.1.min.js";
  4593. import { tools as toolsData } from "../../../common/tools.js";
  4594. import $ from "jquery";
  4595. import EditorBar from "../../../components/tools/wangEnduit";
  4596. import Table from "../../../components/tools/table";
  4597. import Mind from "../../tools/jsmind2";
  4598. import Time from "../../tools/time.vue";
  4599. import Sunburst from "../../tools/sunburst";
  4600. import SeeBoard from "../../tools/seeBoard";
  4601. import weilaiData from "../components/weilai.js";
  4602. import sourceDialog from "../teacherSource/dialog.vue";
  4603. import interVideo from "../interVideo/index.vue";
  4604. import englishRight from "./commpont/englishRight.vue";
  4605. export default {
  4606. components: {
  4607. EditorBar,
  4608. Mind,
  4609. Time,
  4610. Sunburst,
  4611. SeeBoard,
  4612. Table,
  4613. sourceDialog,
  4614. interVideo,
  4615. englishRight,
  4616. },
  4617. data() {
  4618. return {
  4619. checkAll: false,
  4620. chooseType: 1,
  4621. checkedCities: [],
  4622. isIndeterminate: true,
  4623. isSysPic: false,
  4624. isSysPic2: false,
  4625. steps: 1,
  4626. nbOrder: 0,
  4627. courseId: "",
  4628. chapToolsType: 0,
  4629. chapTools: [
  4630. {
  4631. tools: [],
  4632. toolDetail: "",
  4633. },
  4634. ],
  4635. line: "",
  4636. lineTitle: "",
  4637. sysPic: [],
  4638. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4639. sentenceList2: [],
  4640. isPushTitleList: [],
  4641. lineCount: 0,
  4642. lineType: 0,
  4643. chapCount: 0,
  4644. courseName: "",
  4645. isTeacherSee: false,
  4646. courseText: "",
  4647. preTime: 0,
  4648. formLabelWidth: "100px",
  4649. choosePicVisible: false,
  4650. sysPicVisible: false,
  4651. uploadLoading1: false,
  4652. noneBtnImg: false,
  4653. updateBoolean2: false,
  4654. unitIndex: 0,
  4655. taskCount: 0,
  4656. dialogVisible: false,
  4657. dialogVisible1: false,
  4658. dialogVisible2: false,
  4659. dialogVisible3: false,
  4660. dialogVisible4: false,
  4661. dialogVisible5: false,
  4662. dialogVisible6: false,
  4663. dialogVisible7: false,
  4664. dialogVisible8: false,
  4665. dialogVisible9: false,
  4666. dialogVisibleClass: false,
  4667. dialogVisibleMember: false,
  4668. dialogVisibleMp3: false,
  4669. dialogVisibleSelect: false,
  4670. dialogVisibleSentence: false,
  4671. dialogVisibleRate: false,
  4672. dialogVisibleChoice: false,
  4673. dialogVisiblemb: false,
  4674. dialogVisibleInvite: false,
  4675. dialogVisibleSource: false,
  4676. dialogVisibleVideo: false,
  4677. dialogVisibleupdataVideoT: false,
  4678. isClickColor: 1,
  4679. toolIndexType: "",
  4680. publicTool: 0,
  4681. searchPeople: "",
  4682. searchTN: "",
  4683. userid: this.$route.query.userid,
  4684. oid: this.$route.query.oid,
  4685. org: this.$route.query.org,
  4686. role: this.$route.query.role,
  4687. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4688. dialogVisibleTable: false,
  4689. dialogVisibleWord: false,
  4690. tableJson: { text: "" },
  4691. wordJson: { text: "" },
  4692. dialogVisibleMoreUpload: false,
  4693. dialogVisiblePreTime: false,
  4694. englishDialogVisible: false,
  4695. uploadJson: [],
  4696. classJuri: [],
  4697. gradeList: [],
  4698. cover: [], //课程封面
  4699. myWord: [],
  4700. evaJuri: [],
  4701. evalua: "",
  4702. targetArray: [],
  4703. eTitle: "",
  4704. eJson: {},
  4705. fid: "", //一级
  4706. sid: "", //二级
  4707. tid: "", //二级
  4708. typeMode: 1,
  4709. eJSONNum: 0,
  4710. data: {
  4711. meta: {
  4712. name: "example",
  4713. author: "dd@163.com",
  4714. version: "0.2",
  4715. },
  4716. format: "node_array",
  4717. data: [{ id: "root", isroot: true, topic: "" }],
  4718. },
  4719. askJson: {
  4720. askCount: 1,
  4721. askTitle: "",
  4722. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4723. },
  4724. askJson2: {},
  4725. testJson: {},
  4726. testJson2: {},
  4727. selectJson: {},
  4728. selectJson2: {},
  4729. englishList:{},
  4730. rateJson: [],
  4731. unitJson2: [],
  4732. unitJson: [
  4733. {
  4734. dyName: "", //单元标题
  4735. chapterInfo: [
  4736. {
  4737. isread: false,
  4738. chapterid: this.guid(),
  4739. title: "",
  4740. courseName: "",
  4741. taskJson: [
  4742. {
  4743. task: "",
  4744. taskDetail: "",
  4745. chapterData: [],
  4746. toolChoose: [
  4747. {
  4748. tool: [],
  4749. toolDetail: "",
  4750. toolType: 0,
  4751. askCount: 1,
  4752. askTitle: "",
  4753. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4754. },
  4755. ],
  4756. toolText: "",
  4757. isShowTools: false,
  4758. askCount: 1,
  4759. isFold: 0,
  4760. askTitle: "",
  4761. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4762. checkJson: [{ checkCount: [], checkPerent: [] }],
  4763. homeworkList: [],
  4764. },
  4765. ],
  4766. itemCount: 1,
  4767. fileList1: [],
  4768. video: [],
  4769. testData: [],
  4770. pData: [],
  4771. templateArray: [],
  4772. },
  4773. ],
  4774. },
  4775. ],
  4776. templateArray: [],
  4777. studentJuri: [],
  4778. teacherJuri: [],
  4779. checkboxList: [],
  4780. checkboxList2: [],
  4781. checkboxList3: [],
  4782. classSearch: "",
  4783. gradeId: "",
  4784. number: "",
  4785. tTitle: "",
  4786. tdetail: "",
  4787. templateC: {},
  4788. AttText: {},
  4789. AttTextType: 0,
  4790. AttTextIndex: 0,
  4791. cTemplate: "",
  4792. CourseType: [],
  4793. CourseType2: [],
  4794. CourseTypeJson: {},
  4795. courseTypeId: [],
  4796. courseTypeSon: [],
  4797. clearArray: [],
  4798. pTypeCheck: [],
  4799. pTypeCheckName: [],
  4800. loading: false,
  4801. toolType: 0,
  4802. inputShow: true,
  4803. inputShow2: true,
  4804. toolIndex: 0,
  4805. cidType: 0,
  4806. answerQ: "",
  4807. answerQ2: "",
  4808. grade: [],
  4809. grade2: [],
  4810. courseUserid: "",
  4811. timer: null,
  4812. timer2: null,
  4813. pasteTimer: null,
  4814. checkId: "",
  4815. isDelete: 1,
  4816. addindex: 0,
  4817. selectSteps: 1,
  4818. groupJson: {},
  4819. dialogVisibleGroup: false,
  4820. rightBoxHeight: 0,
  4821. ManAarray: [],
  4822. checkBoolean: false,
  4823. inviteCode: [],
  4824. inviteId: "",
  4825. icode: "",
  4826. easyArray: [2, 4],
  4827. sourceData: {},
  4828. updateSourcePan: false,
  4829. videoJson: {},
  4830. isBtnDisplay: false,
  4831. isPasteTask: false,
  4832. isPasteChoice: false,
  4833. sysPicVisible2: false,
  4834. imageloading: false,
  4835. searchImageValue: "",
  4836. ppage: 1,
  4837. imageList: [],
  4838. heightPx: '100%',
  4839. toolsData: toolsData,
  4840. oldIndex: 0,
  4841. oldData: null,
  4842. newIndex: "",
  4843. typeIndex: "",
  4844. };
  4845. },
  4846. directives: {
  4847. autoHeight: {
  4848. update(el, binding) {
  4849. const { value } = binding
  4850. if (value && typeof value === 'number') {
  4851. el.style.height = `${value}px`
  4852. } else {
  4853. el.style.height = 'auto'
  4854. }
  4855. },
  4856. componentUpdated(el) {
  4857. el.style.height = `${el.scrollHeight + 5}px`
  4858. },
  4859. },
  4860. },
  4861. computed: {
  4862. // rightBoxHeight: function () {
  4863. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4864. // },
  4865. offsetLetfPx: function () {
  4866. //addnum可以直接在模板语法里面用,相当于data内的值
  4867. return (
  4868. $(".cru_select")[this.unitIndex] &&
  4869. $(".cru_select")[this.unitIndex].offsetLeft
  4870. );
  4871. },
  4872. getMan2() {
  4873. return function (people) {
  4874. let _people = people;
  4875. let _people2 = "";
  4876. if (this.ManAarray.length) {
  4877. for (var i = 0; i < this.ManAarray.length; i++) {
  4878. if (this.ManAarray[i].userid == people) {
  4879. _people2 = this.ManAarray[i].name;
  4880. break;
  4881. }
  4882. }
  4883. }
  4884. if (people == this.courseUserid) {
  4885. return "";
  4886. }
  4887. return this.ManAarray.length ? _people2 : "";
  4888. };
  4889. },
  4890. isInvite() {
  4891. return function (cid) {
  4892. let array = [];
  4893. for (var i = 0; i < this.inviteCode.length; i++) {
  4894. array.push(this.inviteCode[i].cid);
  4895. }
  4896. return array.indexOf(cid) != -1;
  4897. };
  4898. },
  4899. getInviteCodeC() {
  4900. return function (cid) {
  4901. let array = [];
  4902. for (var i = 0; i < this.inviteCode.length; i++) {
  4903. array.push(this.inviteCode[i].cid);
  4904. }
  4905. return this.inviteCode[array.indexOf(cid)].ic;
  4906. };
  4907. },
  4908. getClassC() {
  4909. return function (c) {
  4910. let _c2 = "";
  4911. if (this.grade.length) {
  4912. for (var i = 0; i < this.grade.length; i++) {
  4913. if (this.grade[i].id == c) {
  4914. _c2 = this.grade[i].name;
  4915. break;
  4916. }
  4917. }
  4918. }
  4919. return this.grade.length ? _c2 : "";
  4920. };
  4921. },
  4922. getListClassC() {
  4923. return function (list) {
  4924. let _c2 = [];
  4925. if (this.grade.length) {
  4926. for (var j = 0; j < list.length; j++) {
  4927. let c = list[j]
  4928. for (var i = 0; i < this.grade.length; i++) {
  4929. if (this.grade[i].id == c) {
  4930. _c2.push(this.grade[i].name);
  4931. break;
  4932. }
  4933. }
  4934. }
  4935. }
  4936. return this.grade.length ? _c2.join('、') : "";
  4937. };
  4938. },
  4939. },
  4940. watch: {
  4941. unitIndex(newValue, oldValue) {
  4942. if (this.isDelete == 2) {
  4943. this.isDelete = 1;
  4944. return;
  4945. }
  4946. if (this.cid != "") {
  4947. let _unitIndex = oldValue;
  4948. if (
  4949. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4950. JSON.stringify(this.unitJson[_unitIndex])
  4951. ) {
  4952. this.$refs.rightboxR.scrollTop = 0;
  4953. return;
  4954. }
  4955. let cPan = 1;
  4956. for (
  4957. var j = 0;
  4958. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4959. j++
  4960. ) {
  4961. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4962. j
  4963. ].proVisible = false;
  4964. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4965. j
  4966. ].proVisible2 = false;
  4967. if (
  4968. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4969. .length > 1
  4970. ) {
  4971. for (
  4972. var z = 0;
  4973. z <
  4974. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4975. .length;
  4976. z++
  4977. ) {
  4978. if (
  4979. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4980. .toolChoose[z].tool.length
  4981. ) {
  4982. this.$message.error("请把工具添加完整");
  4983. cPan = 2;
  4984. break;
  4985. }
  4986. }
  4987. }
  4988. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4989. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4990. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4991. (ele) => {
  4992. return ele.value != "";
  4993. }
  4994. );
  4995. }
  4996. }
  4997. if (cPan == 2) {
  4998. this.unitIndex = oldValue;
  4999. return;
  5000. }
  5001. for (var i = 0; i < this.unitJson.length; i++) {
  5002. if (this.addindex != i) {
  5003. delete this.unitJson[i].isUpdate;
  5004. }
  5005. }
  5006. this.$refs.rightboxR.scrollTop = 0;
  5007. this.addindex = -1;
  5008. let params = [
  5009. {
  5010. cid: this.cid,
  5011. chapters: JSON.stringify(this.unitJson),
  5012. uid: this.userid,
  5013. unitIndex: _unitIndex,
  5014. },
  5015. ];
  5016. this.ajax
  5017. .post(this.$store.state.api + "updateWorkNew4", params)
  5018. .then((res) => {
  5019. // this.$message({
  5020. // message: "修改成功",
  5021. // type: "success",
  5022. // });
  5023. // this.courseId = this.cid;
  5024. })
  5025. .catch((err) => {
  5026. this.$message.error("网络不佳");
  5027. console.error(err);
  5028. });
  5029. }
  5030. },
  5031. steps(newValue) {
  5032. if (newValue == 4) {
  5033. this.goTo(
  5034. "/course?userid=" +
  5035. this.userid +
  5036. "&oid=" +
  5037. this.oid +
  5038. "&org=" +
  5039. this.org +
  5040. "&role=" +
  5041. this.role
  5042. );
  5043. }
  5044. },
  5045. },
  5046. methods: {
  5047. openAI() {
  5048. window.parent.postMessage({ tools: "64" }, "*");
  5049. },
  5050. setMan() {
  5051. // let teacherJuri = this.teacherJuri2;
  5052. this.ManAarray = [];
  5053. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5054. if (_user.indexOf(this.userid) == -1) {
  5055. _user.push(this.userid);
  5056. }
  5057. if (_user.indexOf(this.courseUserid) == -1) {
  5058. _user.push(this.courseUserid);
  5059. }
  5060. let params = {
  5061. uid: _user.join(","),
  5062. };
  5063. this.ajax
  5064. .get(this.$store.state.api + "getAllUserById", params)
  5065. .then((res) => {
  5066. let teacherJuri = res.data[0];
  5067. this.ManAarray = teacherJuri;
  5068. })
  5069. .catch((err) => {
  5070. console.error(err);
  5071. });
  5072. },
  5073. previewImg(url) {
  5074. this.$hevueImgPreview(url);
  5075. },
  5076. btnDisplay(bool) {
  5077. this.isBtnDisplay = bool
  5078. },
  5079. scrollChange() {
  5080. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  5081. // document.querySelector('.course_left').scrollHeight
  5082. // document.querySelector('.stepsBottom2').scrollHeight
  5083. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  5084. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  5085. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  5086. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  5087. let top = $(".rightBox")[0].scrollTop - maxheight;
  5088. // if (top < client) {
  5089. // $('.stepsBottom2')[0].style.position = 'absolute'
  5090. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  5091. // // $('.stepsBottom2')[0].style.top = client + 'px'
  5092. // } else
  5093. if (top > 0) {
  5094. let top = $(".rightBox")[0].offsetTop;
  5095. $(".stepsBottom2")[0].style.position = "fixed";
  5096. $(".stepsBottom2")[0].style.top = top + "px";
  5097. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  5098. // $('.stepsBottom2')[0].style.top = top + 'px'
  5099. } else {
  5100. $(".stepsBottom2")[0].style.position = "absolute";
  5101. $(".stepsBottom2")[0].style.top = "0px";
  5102. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  5103. }
  5104. const clientHeight = $(".rightBox")[0].clientHeight;
  5105. const scrollTop = $(".rightBox")[0].scrollTop;
  5106. const scrollHeight = $(".rightBox")[0].scrollHeight;
  5107. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  5108. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  5109. }
  5110. },
  5111. addHw(e) {
  5112. var el = e.currentTarget;
  5113. el.getElementsByTagName("input")[0].click();
  5114. },
  5115. change(val) {
  5116. if (this.dialogVisible1) {
  5117. this.tdetail = val
  5118. } else if (this.dialogVisible6) {
  5119. this.AttText.text = val
  5120. } else if (this.dialogVisible2) {
  5121. this.cTemplate = val
  5122. } else if (this.dialogVisibleTable) {
  5123. this.tableJson.text = val
  5124. }
  5125. this.$forceUpdate();
  5126. console.log(val);
  5127. },
  5128. change2(val) {
  5129. console.log(val);
  5130. this.$forceUpdate();
  5131. },
  5132. handleClose(done) {
  5133. done();
  5134. },
  5135. closePan(tool) {
  5136. if (tool == 15) {
  5137. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5138. this.dialogVisible8 = false
  5139. } else {
  5140. this.closeConfirm(tool);
  5141. }
  5142. } else if (tool == 4) {
  5143. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5144. this.dialogVisible5 = false
  5145. } else {
  5146. this.closeConfirm(tool);
  5147. }
  5148. } else if (tool == 45) {
  5149. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5150. this.dialogVisibleChoice = false
  5151. } else {
  5152. this.closeConfirm(tool);
  5153. }
  5154. } else if (tool == 41) {
  5155. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  5156. this.dialogVisibleSelect = false
  5157. } else {
  5158. this.closeConfirm(tool);
  5159. }
  5160. } else if (tool == 47) {
  5161. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  5162. this.dialogVisibleSentence = false
  5163. } else {
  5164. this.closeConfirm(tool);
  5165. }
  5166. }else if (tool == 69){
  5167. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  5168. this.englishDialogVisible = false
  5169. } else {
  5170. this.closeConfirm(tool);
  5171. }
  5172. }
  5173. },
  5174. closeConfirm(tool) {
  5175. this
  5176. .$confirm("是否保存已编辑内容?", "提示", {
  5177. confirmButtonText: "保存",
  5178. cancelButtonText: "不保存",
  5179. type: "warning",
  5180. })
  5181. .then(() => {
  5182. if (tool == 15) {
  5183. this.addAnswer();
  5184. } else if (tool == 4) {
  5185. this.addAsk();
  5186. } else if (tool == 45) {
  5187. this.addTest();
  5188. } else if (tool == 41) {
  5189. this.addSelectAnswer();
  5190. } else if (tool == 47) {
  5191. this.addSentenceTool();
  5192. }else if(tool == 69){
  5193. this.addEnglish();
  5194. }
  5195. })
  5196. .catch(() => {
  5197. if (tool == 15) {
  5198. this.dialogVisible8 = false;
  5199. } else if (tool == 4) {
  5200. this.dialogVisible5 = false;
  5201. } else if (tool == 45) {
  5202. this.dialogVisibleChoice = false;
  5203. } else if (tool == 41) {
  5204. this.dialogVisibleSelect = false;
  5205. } else if (tool == 47) {
  5206. this.dialogVisibleSentence = false;
  5207. } else if (tool == 69) {
  5208. this.englishDialogVisible = false;
  5209. }
  5210. });
  5211. },
  5212. addEnglish(){
  5213. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  5214. this.$message.error("请将内容填写完整!");
  5215. return;
  5216. }
  5217. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5218. this.taskCount
  5219. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5220. this.englishList = {};
  5221. this.englishDialogVisible = false;
  5222. if (
  5223. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5224. .toolChoose[this.toolIndex].tool != 69
  5225. ) {
  5226. this.addTools(69, this.taskCount, this.toolIndex);
  5227. }
  5228. },
  5229. setEnglishList(engList){
  5230. this.englishList = engList;
  5231. },
  5232. imgChange2(i, j) {
  5233. var _tmp = this.testJson.testJson[i].checkList[j];
  5234. this.noneBtnImg = _tmp.length >= 1;
  5235. },
  5236. imgChange3(i) {
  5237. var _tmp = this.testJson.testJson[i];
  5238. this.noneBtnImg = _tmp.length >= 1;
  5239. },
  5240. imgChange1(file, fileList, type, itemTaskIndex) {
  5241. if (type == 1) {
  5242. var _tmp = this.cover;
  5243. } else if (
  5244. type == 2 ||
  5245. type == 3 ||
  5246. type == 6 ||
  5247. type == 7 ||
  5248. type == 8
  5249. ) {
  5250. var _tmp =
  5251. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5252. .chapterData;
  5253. } else if (type == 4) {
  5254. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5255. } else {
  5256. var _tmp =
  5257. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5258. .homeworkList;
  5259. }
  5260. this.noneBtnImg = _tmp.length >= 1;
  5261. },
  5262. goTo(path) {
  5263. this.$router.push(path);
  5264. },
  5265. guid() {
  5266. var _num,
  5267. i,
  5268. _guid = "";
  5269. for (i = 0; i < 32; i++) {
  5270. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5271. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5272. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5273. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5274. _guid += "-";
  5275. }
  5276. }
  5277. return _guid;
  5278. },
  5279. lastSteps() {
  5280. this
  5281. .$confirm("是否保存已编辑内容?", "提示", {
  5282. confirmButtonText: "保存",
  5283. cancelButtonText: "不保存",
  5284. distinguishCancelAndClose: true,
  5285. type: "warning",
  5286. })
  5287. .then(() => {
  5288. if (this.cid == "" || this.cid == undefined) {
  5289. if (this.courseName == "") {
  5290. this.$message.error("请补充填写课程名称");
  5291. return;
  5292. } else {
  5293. this.addWork();
  5294. }
  5295. } else {
  5296. if (this.courseName == "") {
  5297. this.$message.error("请补充填写课程名称");
  5298. return;
  5299. } else {
  5300. if (this.userid != this.courseUserid && this.role != "1") {
  5301. this.updateWork2();
  5302. } else {
  5303. this.updateWork();
  5304. }
  5305. }
  5306. }
  5307. })
  5308. .catch((v) => {
  5309. console.log(v)
  5310. if(v == "cancel"){
  5311. this.goTo(
  5312. "/course?userid=" +
  5313. this.userid +
  5314. "&oid=" +
  5315. this.oid +
  5316. "&org=" +
  5317. this.org +
  5318. "&role=" +
  5319. this.role
  5320. );
  5321. }
  5322. });
  5323. },
  5324. nextSteps() {
  5325. if (this.cid == "" || this.cid == undefined) {
  5326. if (this.courseName == "") {
  5327. this.$message.error("请补充填写课程名称");
  5328. return;
  5329. } else {
  5330. this.addWork();
  5331. }
  5332. } else {
  5333. if (this.courseName == "") {
  5334. this.$message.error("请补充填写课程名称");
  5335. return;
  5336. } else {
  5337. if (this.userid != this.courseUserid && this.role != "1") {
  5338. this.updateWork2();
  5339. } else {
  5340. this.updateWork();
  5341. }
  5342. }
  5343. }
  5344. this.$refs.stepBox.scrollTop = 0;
  5345. },
  5346. unitSet(i) {
  5347. this.unitIndex = i;
  5348. // this.$refs.rightboxR.scrollTop = 0;
  5349. },
  5350. time() {
  5351. if (!this.now) {
  5352. this.now = new Date().getTime();
  5353. return true;
  5354. } else {
  5355. let time = new Date().getTime();
  5356. if (time - this.now > 3000) {
  5357. this.now = time;
  5358. return true;
  5359. } else {
  5360. return false;
  5361. }
  5362. }
  5363. },
  5364. deleteUnit(i) {
  5365. var _this = this;
  5366. if (_this.time()) {
  5367. _this
  5368. .$confirm("确定删除此单元吗?", "提示", {
  5369. confirmButtonText: "确定",
  5370. cancelButtonText: "取消",
  5371. type: "warning",
  5372. })
  5373. .then(() => {
  5374. _this.isDelete = 2;
  5375. // _this.unitIndex = _this.unitIndex - 1;
  5376. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5377. // _this.$message.success("删除成功");
  5378. })
  5379. .catch(() => {
  5380. return;
  5381. });
  5382. }
  5383. },
  5384. deleteWork(chapid) {
  5385. let params = [
  5386. {
  5387. cid: this.cid,
  5388. chapters: JSON.stringify(this.unitJson),
  5389. uid: this.userid,
  5390. chapid: chapid,
  5391. },
  5392. ];
  5393. this.ajax
  5394. .post(this.$store.state.api + "deleteWork", params)
  5395. .then((res) => {
  5396. this.$message({
  5397. message: "删除成功",
  5398. type: "success",
  5399. });
  5400. this.unitJson.splice(this.unitIndex, 1);
  5401. this.unitIndex = this.unitIndex - 1;
  5402. })
  5403. .catch((err) => {
  5404. this.$message.error("网络不佳");
  5405. console.error(err);
  5406. });
  5407. },
  5408. deleteTool(itemTaskIndex, i) {
  5409. var _this = this;
  5410. if (_this.time()) {
  5411. _this
  5412. .$confirm("确定删除此工具吗?", "提示", {
  5413. confirmButtonText: "确定",
  5414. cancelButtonText: "取消",
  5415. type: "warning",
  5416. })
  5417. .then(() => {
  5418. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5419. itemTaskIndex
  5420. ].toolChoose.splice(i, 1);
  5421. _this.$message.success("删除成功");
  5422. })
  5423. .catch(() => {
  5424. return;
  5425. });
  5426. }
  5427. },
  5428. deleteSentence(i) {
  5429. var _this = this;
  5430. _this
  5431. .$confirm("确定删除此题目吗?", "提示", {
  5432. confirmButtonText: "确定",
  5433. cancelButtonText: "取消",
  5434. type: "warning",
  5435. })
  5436. .then(() => {
  5437. _this.sentenceList.splice(i, 1);
  5438. _this.$message.success("删除成功");
  5439. })
  5440. .catch(() => {
  5441. return;
  5442. });
  5443. },
  5444. deleteS(s, i, j) {
  5445. this.sentenceList[i].addSentence.splice(j, 1);
  5446. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5447. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5448. this.sentenceList[i].rightAnswer.splice(a, 1);
  5449. }
  5450. },
  5451. openT() {
  5452. window.parent.postMessage({ tools: "25" }, "*");
  5453. },
  5454. deleteTask(i) {
  5455. var _this = this;
  5456. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  5457. _this
  5458. .$confirm("确定删除此任务吗?", "提示", {
  5459. confirmButtonText: "确定",
  5460. cancelButtonText: "取消",
  5461. type: "warning",
  5462. })
  5463. .then(() => {
  5464. if (i == 0) {
  5465. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5466. i + 1
  5467. ].chapterData = JSON.parse(
  5468. JSON.stringify(
  5469. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  5470. .chapterData
  5471. )
  5472. );
  5473. }
  5474. _this.$forceUpdate();
  5475. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  5476. _this.$message.success("删除成功");
  5477. // this.$nextTick(() => {
  5478. // $('.stepsBottom2')[0].style.transition = 'unset'
  5479. // setTimeout(() => {
  5480. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  5481. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  5482. // let top = $('.stepsBottom2')[0].offsetTop - 20
  5483. // if (top > client) {
  5484. // $('.stepsBottom2')[0].style.top = client + 'px'
  5485. // }
  5486. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  5487. // this.$forceUpdate()
  5488. // }, 500)
  5489. // })
  5490. })
  5491. .catch(() => {
  5492. return;
  5493. });
  5494. },
  5495. handlePictureCardPreview(file) {
  5496. this.dialogImageUrl = file.url;
  5497. },
  5498. clean(i, c) {
  5499. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5500. },
  5501. handle_remove1(file, fileList, type) {
  5502. var _tmp = this.cover;
  5503. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5504. // if (_tmp[i].uid == file.uid) {
  5505. // _tmp.splice(i, 1);
  5506. // break;
  5507. // }
  5508. // this.cover = _tmp;
  5509. // }
  5510. this.cover = [];
  5511. this.noneBtnImg = this.cover.length >= 1;
  5512. this.isSysPic = false;
  5513. this.isSysPic2 = false;
  5514. this.$forceUpdate();
  5515. },
  5516. addImg(e) {
  5517. var el = e.currentTarget;
  5518. el.getElementsByTagName("input")[0].click();
  5519. e.target.value = "";
  5520. },
  5521. addChaptersTools(i) {
  5522. this.chapTools = [
  5523. {
  5524. tools: [],
  5525. toolDetail: "",
  5526. },
  5527. ];
  5528. this.chapCount = i;
  5529. this.dialogVisible4 = true;
  5530. },
  5531. isNoFinsh() {
  5532. this.$message.warning("功能正在开发中");
  5533. },
  5534. addAttText(i) {
  5535. this.AttText = {
  5536. title: "",
  5537. text: "",
  5538. };
  5539. this.taskCount = i;
  5540. this.AttTextType = 0;
  5541. this.$forceUpdate();
  5542. this.dialogVisible6 = true;
  5543. setTimeout(() => {
  5544. this.$refs['fuInput'].focus();
  5545. }, 100);
  5546. },
  5547. openLine(i) {
  5548. this.line = "";
  5549. this.lineCount = i;
  5550. this.lineType = 0;
  5551. this.$forceUpdate();
  5552. this.dialogVisible7 = true;
  5553. },
  5554. pasteLine(i) {
  5555. navigator.clipboard
  5556. .readText()
  5557. .then((v) => {
  5558. console.log("获取剪贴板成功:", v);
  5559. const html = v;
  5560. const regex = /src="(.*?)"/g;
  5561. const match = regex.exec(html);
  5562. if (match && match[1]) {
  5563. console.log(match[1]);
  5564. this.$message.success("粘贴成功");
  5565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5566. i
  5567. ].chapterData.push({
  5568. name: "链接",
  5569. title: "嵌入代码",
  5570. url: match[1],
  5571. type: 8,
  5572. });
  5573. } else {
  5574. // console.log("未找到包含 src 属性的 iframe");
  5575. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5576. }
  5577. })
  5578. .catch((v) => {
  5579. console.log("获取剪贴板失败: ", v);
  5580. });
  5581. },
  5582. openSource(i) {
  5583. this.lineCount = i;
  5584. this.sourceData = {};
  5585. this.dialogVisibleSource = true;
  5586. this.updateSourcePan = false;
  5587. },
  5588. addSource() {
  5589. if (!Object.keys(this.sourceData).length) {
  5590. this.$message.error("请选择要上传的资源");
  5591. return;
  5592. }
  5593. let keys = Object.keys(this.sourceData);
  5594. for (var i = 0; i < keys.length; i++) {
  5595. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5596. this.lineCount
  5597. ].chapterData.push({
  5598. name: "链接",
  5599. title: this.sourceData[keys[i]].name,
  5600. url: this.sourceData[keys[i]].url,
  5601. type: 14,
  5602. id: keys[i]
  5603. });
  5604. }
  5605. this.$forceUpdate();
  5606. this.dialogVisibleSource = false;
  5607. },
  5608. updateSource() {
  5609. if (!Object.keys(this.sourceData).length) {
  5610. this.$message.error("请选择要上传的资源");
  5611. return;
  5612. }
  5613. let keys = Object.keys(this.sourceData);
  5614. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5615. this.taskCount
  5616. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5617. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5618. this.taskCount
  5619. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5621. this.taskCount
  5622. ].chapterData[this.lineCount].id = keys[0];
  5623. this.updateSourcePan = false;
  5624. this.$forceUpdate();
  5625. this.dialogVisibleSource = false;
  5626. },
  5627. deleteM(i, j) {
  5628. this.testJson.testJson[i].timuList.splice(j, 1);
  5629. },
  5630. beforeUploadTiMu(event, i) {
  5631. const loading = this.openLoading();
  5632. var file = event.target.files[0];
  5633. var credentials = {
  5634. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5635. secretAccessKey: "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",
  5636. }; //秘钥形式的登录上传
  5637. window.AWS.config.update(credentials);
  5638. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5639. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5640. var _this = this;
  5641. if (file) {
  5642. var params = {
  5643. Key:
  5644. file.name.split(".")[0] +
  5645. new Date().getTime() +
  5646. "." +
  5647. file.name.split(".")[file.name.split(".").length - 1],
  5648. ContentType: file.type,
  5649. Body: file,
  5650. "Access-Control-Allow-Credentials": "*",
  5651. ACL: "public-read",
  5652. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5653. var options = {
  5654. partSize: 2048 * 1024 * 1024,
  5655. queueSize: 2,
  5656. leavePartsOnError: true,
  5657. };
  5658. bucket
  5659. .upload(params, options)
  5660. .on("httpUploadProgress", function (evt) {
  5661. //这里可以写进度条
  5662. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5663. })
  5664. .send(function (err, data) {
  5665. loading.close();
  5666. if (err) {
  5667. _this.$message.error("上传失败");
  5668. } else {
  5669. if (_this.testJson.testJson[i].timuList) {
  5670. _this.testJson.testJson[i].timuList.push({
  5671. src: data.Location,
  5672. });
  5673. } else {
  5674. _this.testJson.testJson[i].timuList = [];
  5675. _this.testJson.testJson[i].timuList.push({
  5676. src: data.Location,
  5677. });
  5678. }
  5679. _this.imgChange3(i);
  5680. _this.$forceUpdate();
  5681. }
  5682. });
  5683. }
  5684. },
  5685. beforeUploadTi(event, i, j) {
  5686. const loading = this.openLoading();
  5687. var file = event.target.files[0];
  5688. var credentials = {
  5689. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5690. secretAccessKey: "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",
  5691. }; //秘钥形式的登录上传
  5692. window.AWS.config.update(credentials);
  5693. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5694. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5695. var _this = this;
  5696. if (file) {
  5697. var params = {
  5698. Key:
  5699. file.name.split(".")[0] +
  5700. new Date().getTime() +
  5701. "." +
  5702. file.name.split(".")[file.name.split(".").length - 1],
  5703. ContentType: file.type,
  5704. Body: file,
  5705. "Access-Control-Allow-Credentials": "*",
  5706. ACL: "public-read",
  5707. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5708. var options = {
  5709. partSize: 2048 * 1024 * 1024,
  5710. queueSize: 2,
  5711. leavePartsOnError: true,
  5712. };
  5713. bucket
  5714. .upload(params, options)
  5715. .on("httpUploadProgress", function (evt) {
  5716. //这里可以写进度条
  5717. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5718. })
  5719. .send(function (err, data) {
  5720. loading.close();
  5721. if (err) {
  5722. _this.$message.error("上传失败");
  5723. } else {
  5724. _this.testJson.testJson[i].checkList[j] = {};
  5725. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5726. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5727. _this.imgChange2(i, j);
  5728. _this.$forceUpdate();
  5729. }
  5730. });
  5731. }
  5732. },
  5733. beforeUpload1(event, type) {
  5734. // const loading = this.openLoading();
  5735. var file = event.target.files[0];
  5736. var credentials = {
  5737. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5738. secretAccessKey: "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",
  5739. }; //秘钥形式的登录上传
  5740. window.AWS.config.update(credentials);
  5741. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5742. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5743. var _this = this;
  5744. if (file) {
  5745. var params = {
  5746. Key:
  5747. file.name.split(".")[0] +
  5748. new Date().getTime() +
  5749. "." +
  5750. file.name.split(".")[file.name.split(".").length - 1],
  5751. ContentType: file.type,
  5752. Body: file,
  5753. "Access-Control-Allow-Credentials": "*",
  5754. ACL: "public-read",
  5755. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5756. var options = {
  5757. partSize: 2048 * 1024 * 1024,
  5758. queueSize: 2,
  5759. leavePartsOnError: true,
  5760. };
  5761. bucket
  5762. .upload(params, options)
  5763. .on("httpUploadProgress", function (evt) {
  5764. //这里可以写进度条
  5765. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5766. })
  5767. .send(function (err, data) {
  5768. // loading.close();
  5769. if (err) {
  5770. // var a = _this.$refs.upload1.uploadFiles;
  5771. // a.splice(a.length - 1, a.length);
  5772. _this.$message.error("上传失败");
  5773. } else {
  5774. _this.cover.push({
  5775. name: file.name,
  5776. url: data.Location,
  5777. uid: file.uid,
  5778. });
  5779. _this.imgChange1(null, null, 1, null);
  5780. _this.choosePicVisible = false;
  5781. console.log(data.Location);
  5782. }
  5783. });
  5784. }
  5785. },
  5786. beforeUploadSelect(event, type) {
  5787. // const loading = this.openLoading();
  5788. var file = event.target.files[0];
  5789. var credentials = {
  5790. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5791. secretAccessKey: "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",
  5792. }; //秘钥形式的登录上传
  5793. window.AWS.config.update(credentials);
  5794. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5795. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5796. var _this = this;
  5797. if (file) {
  5798. var params = {
  5799. Key:
  5800. file.name.split(".")[0] +
  5801. new Date().getTime() +
  5802. "." +
  5803. file.name.split(".")[file.name.split(".").length - 1],
  5804. ContentType: file.type,
  5805. Body: file,
  5806. "Access-Control-Allow-Credentials": "*",
  5807. ACL: "public-read",
  5808. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5809. var options = {
  5810. partSize: 2048 * 1024 * 1024,
  5811. queueSize: 2,
  5812. leavePartsOnError: true,
  5813. };
  5814. bucket
  5815. .upload(params, options)
  5816. .on("httpUploadProgress", function (evt) {
  5817. //这里可以写进度条
  5818. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5819. })
  5820. .send(function (err, data) {
  5821. // loading.close();
  5822. if (err) {
  5823. _this.$message.error("上传失败");
  5824. } else {
  5825. _this.selectJson.url = data.Location;
  5826. console.log(data.Location);
  5827. }
  5828. });
  5829. }
  5830. },
  5831. chooseSysPic(p) {
  5832. this.cover = []
  5833. setTimeout(() => {
  5834. this.cover[0] = {
  5835. name: "系统图片.png",
  5836. url: p,
  5837. };
  5838. this.imgChange1(null, null, 1, null);
  5839. this.$forceUpdate();
  5840. }, 0);
  5841. this.isSysPic = true;
  5842. this.isSysPic2 = false;
  5843. this.sysPicVisible = false;
  5844. this.$forceUpdate();
  5845. },
  5846. chooseSysPic2(p) {
  5847. this.cover = []
  5848. setTimeout(() => {
  5849. this.cover[0] = {
  5850. name: "网络图片.png",
  5851. url: p,
  5852. };
  5853. this.imgChange1(null, null, 1, null);
  5854. this.$forceUpdate();
  5855. }, 0);
  5856. this.isSysPic2 = true;
  5857. this.isSysPic = false;
  5858. this.sysPicVisible2 = false;
  5859. this.$forceUpdate();
  5860. },
  5861. beforeUpload(data) {
  5862. this.$refs.upload1.uploadFiles;
  5863. this.uploadLoading1 = true;
  5864. var file = data.file;
  5865. var credentials = {
  5866. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5867. secretAccessKey: "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",
  5868. }; //秘钥形式的登录上传
  5869. window.AWS.config.update(credentials);
  5870. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5871. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5872. var _this = this;
  5873. if (file) {
  5874. var params = {
  5875. Key:
  5876. file.name.split(".")[0] +
  5877. new Date().getTime() +
  5878. "." +
  5879. file.name.split(".")[file.name.split(".").length - 1],
  5880. ContentType: file.type,
  5881. Body: file,
  5882. "Access-Control-Allow-Credentials": "*",
  5883. ACL: "public-read",
  5884. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5885. var options = {
  5886. partSize: 2048 * 1024 * 1024,
  5887. queueSize: 2,
  5888. leavePartsOnError: true,
  5889. };
  5890. bucket
  5891. .upload(params, options)
  5892. .on("httpUploadProgress", function (evt) {
  5893. //这里可以写进度条
  5894. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5895. })
  5896. .send(function (err, data) {
  5897. _this.uploadLoading1 = false;
  5898. if (err) {
  5899. // var a = _this.$refs.upload1.uploadFiles;
  5900. // a.splice(a.length - 1, a.length);
  5901. _this.$message.error("上传失败");
  5902. } else {
  5903. //上传成功处理
  5904. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5905. name: file.name,
  5906. url: data.Location,
  5907. uid: file.uid,
  5908. });
  5909. _this.imgChange();
  5910. console.log(data.Location);
  5911. }
  5912. });
  5913. }
  5914. },
  5915. onExceed() {
  5916. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5917. },
  5918. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5919. // const loading = this.openLoading();
  5920. var file = event.target.files[0];
  5921. var credentials = {
  5922. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5923. secretAccessKey: "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",
  5924. }; //秘钥形式的登录上传
  5925. window.AWS.config.update(credentials);
  5926. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5927. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5928. var _this = this;
  5929. if (type == 3) {
  5930. var b = [
  5931. "DOC",
  5932. "DOCX",
  5933. "DOCM",
  5934. "DOTM",
  5935. "DOTX",
  5936. "PPTX",
  5937. "PPSX",
  5938. "PPT",
  5939. "PPS",
  5940. "PPTM",
  5941. "POTM",
  5942. "PPAM",
  5943. "POTX",
  5944. "PPSM",
  5945. "XLSX",
  5946. "XLS",
  5947. ];
  5948. if (
  5949. b.indexOf(
  5950. file.name
  5951. .split(".")
  5952. [file.name.split(".").length - 1].toLocaleUpperCase()
  5953. ) != -1
  5954. ) {
  5955. if (file.size / 1024 / 1024 > 80) {
  5956. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5957. this.inputShow = true;
  5958. // var a = _this.$refs.upload1.uploadFiles;
  5959. // a.splice(a.length - 1, a.length);
  5960. // loading.close();
  5961. return;
  5962. }
  5963. } else if (
  5964. file.name
  5965. .split(".")
  5966. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5967. ) {
  5968. if (file.size / 1024 / 1024 > 80) {
  5969. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5970. this.inputShow = true;
  5971. // var a = _this.$refs.upload1.uploadFiles;
  5972. // a.splice(a.length - 1, a.length);
  5973. // loading.close();
  5974. return;
  5975. }
  5976. }
  5977. }
  5978. this.inputShow = false;
  5979. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5980. itemTaskIndex
  5981. ].progress = 0;
  5982. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5983. itemTaskIndex
  5984. ].proVisible = true;
  5985. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5986. itemTaskIndex
  5987. ].isFinishSize = 0;
  5988. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5989. itemTaskIndex
  5990. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5991. _this.$forceUpdate();
  5992. if (file) {
  5993. var params = {
  5994. Key:
  5995. file.name.split(".")[0] +
  5996. new Date().getTime() +
  5997. "." +
  5998. file.name.split(".")[file.name.split(".").length - 1],
  5999. ContentType: file.type,
  6000. Body: file,
  6001. "Access-Control-Allow-Credentials": "*",
  6002. ACL: "public-read",
  6003. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6004. var options = {
  6005. partSize: 2048 * 1024 * 1024,
  6006. queueSize: 2,
  6007. leavePartsOnError: true,
  6008. };
  6009. bucket
  6010. .upload(params, options)
  6011. .on("httpUploadProgress", function (evt) {
  6012. //这里可以写进度条
  6013. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6014. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6015. itemTaskIndex
  6016. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6017. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6018. itemTaskIndex
  6019. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6020. _this.$forceUpdate();
  6021. })
  6022. .send(function (err, data) {
  6023. // loading.close();
  6024. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6025. itemTaskIndex
  6026. ].progress = 100;
  6027. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6028. itemTaskIndex
  6029. ].isFinishSize =
  6030. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6031. itemTaskIndex
  6032. ].isAllSize;
  6033. _this.$forceUpdate();
  6034. setTimeout(() => {
  6035. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6036. itemTaskIndex
  6037. ].proVisible = false;
  6038. _this.$forceUpdate();
  6039. }, 1000);
  6040. _this.inputShow = true;
  6041. if (err) {
  6042. // var a = _this.$refs.upload1.uploadFiles;
  6043. // a.splice(a.length - 1, a.length);
  6044. _this.$message.error("上传失败");
  6045. } else {
  6046. if (type == 13) {
  6047. let _type = 2;
  6048. var imgA = [
  6049. "png",
  6050. "jpg",
  6051. "jpeg",
  6052. "bmp",
  6053. "gif",
  6054. "webp",
  6055. "psd",
  6056. "svg",
  6057. "tiff",
  6058. ];
  6059. var fileA = [
  6060. "PDF",
  6061. "DOC",
  6062. "DOCX",
  6063. "DOCM",
  6064. "DOTM",
  6065. "DOTX",
  6066. "PPTX",
  6067. "PPSX",
  6068. "PPT",
  6069. "PPS",
  6070. "PPTM",
  6071. "POTM",
  6072. "PPAM",
  6073. "POTX",
  6074. "PPSM",
  6075. "XLSX",
  6076. "XLS",
  6077. ];
  6078. var videoA = [
  6079. "AVI",
  6080. "NAVI",
  6081. "MPEG",
  6082. "ASF",
  6083. "MOV",
  6084. "WMV",
  6085. "3GP",
  6086. "RM",
  6087. "RMVB",
  6088. "FLV",
  6089. "F4V",
  6090. "H.264",
  6091. "H.265",
  6092. "REAL VIDEO",
  6093. "MKV",
  6094. "WebM",
  6095. "HDDVD",
  6096. "MP4",
  6097. "MPG",
  6098. "M4V",
  6099. "MGV",
  6100. "OGV",
  6101. "QTM",
  6102. "STR",
  6103. "AMC",
  6104. "DVX",
  6105. "EVO",
  6106. "DAT",
  6107. "OGG",
  6108. "OGM",
  6109. ];
  6110. if (
  6111. fileA.indexOf(
  6112. data.Location.split(".")[
  6113. data.Location.split(".").length - 1
  6114. ].toLocaleUpperCase()
  6115. ) != -1
  6116. ) {
  6117. _type = 3;
  6118. } else if (
  6119. videoA.indexOf(
  6120. data.Location.split(".")[
  6121. data.Location.split(".").length - 1
  6122. ].toLocaleUpperCase()
  6123. ) != -1
  6124. ) {
  6125. _type = 2;
  6126. } else if (
  6127. imgA.indexOf(
  6128. data.Location.split(".")[
  6129. data.Location.split(".").length - 1
  6130. ].toLocaleLowerCase()
  6131. ) != -1
  6132. ) {
  6133. _type = 13;
  6134. } else {
  6135. _type = 12;
  6136. }
  6137. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6138. itemTaskIndex
  6139. ].chapterData.push({
  6140. name: file.name,
  6141. url: data.Location,
  6142. uid: file.uid,
  6143. type: _type,
  6144. });
  6145. _this.imgChange1(null, null, _type, itemTaskIndex);
  6146. } else if (type == 2 || type == 3 || type == 12) {
  6147. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6148. itemTaskIndex
  6149. ].chapterData.push({
  6150. name: file.name,
  6151. url: data.Location,
  6152. uid: file.uid,
  6153. type: type,
  6154. });
  6155. _this.imgChange1(null, null, type, itemTaskIndex);
  6156. } else if (type == 4) {
  6157. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6158. itemTaskIndex
  6159. ].fileList1.push({
  6160. name: file.name,
  6161. url: data.Location,
  6162. uid: file.uid,
  6163. });
  6164. _this.imgChange1(null, null, type, itemTaskIndex);
  6165. } else if (type == 5) {
  6166. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6167. itemTaskIndex
  6168. ].homeworkList.push({
  6169. name: file.name,
  6170. url: data.Location,
  6171. uid: file.uid,
  6172. });
  6173. _this.imgChange1(null, null, type, itemTaskIndex);
  6174. }
  6175. console.log(data.Location);
  6176. }
  6177. });
  6178. }
  6179. },
  6180. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  6181. // const loading = this.openLoading();
  6182. var file = event.target.files[0];
  6183. var credentials = {
  6184. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6185. secretAccessKey: "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",
  6186. }; //秘钥形式的登录上传
  6187. window.AWS.config.update(credentials);
  6188. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6189. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6190. var _this = this;
  6191. if (type == 3) {
  6192. var b = [
  6193. "DOC",
  6194. "DOCX",
  6195. "DOCM",
  6196. "DOTM",
  6197. "DOTX",
  6198. "PPTX",
  6199. "PPSX",
  6200. "PPT",
  6201. "PPS",
  6202. "PPTM",
  6203. "POTM",
  6204. "PPAM",
  6205. "POTX",
  6206. "PPSM",
  6207. ];
  6208. if (
  6209. b.indexOf(
  6210. file.name
  6211. .split(".")
  6212. [file.name.split(".").length - 1].toLocaleUpperCase()
  6213. ) != -1
  6214. ) {
  6215. if (file.size / 1024 / 1024 > 80) {
  6216. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6217. this.inputShow = true;
  6218. // var a = _this.$refs.upload1.uploadFiles;
  6219. // a.splice(a.length - 1, a.length);
  6220. // loading.close();
  6221. return;
  6222. }
  6223. } else if (
  6224. file.name
  6225. .split(".")
  6226. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6227. ) {
  6228. if (file.size / 1024 / 1024 > 80) {
  6229. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6230. this.inputShow = true;
  6231. // var a = _this.$refs.upload1.uploadFiles;
  6232. // a.splice(a.length - 1, a.length);
  6233. // loading.close();
  6234. return;
  6235. }
  6236. }
  6237. }
  6238. this.inputShow = false;
  6239. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6240. itemTaskIndex
  6241. ].progress = 0;
  6242. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6243. itemTaskIndex
  6244. ].proVisible = true;
  6245. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6246. itemTaskIndex
  6247. ].isFinishSize = 0;
  6248. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6249. itemTaskIndex
  6250. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6251. _this.$forceUpdate();
  6252. if (file) {
  6253. var params = {
  6254. Key:
  6255. file.name.split(".")[0] +
  6256. new Date().getTime() +
  6257. "." +
  6258. file.name.split(".")[file.name.split(".").length - 1],
  6259. ContentType: file.type,
  6260. Body: file,
  6261. "Access-Control-Allow-Credentials": "*",
  6262. ACL: "public-read",
  6263. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6264. var options = {
  6265. partSize: 2048 * 1024 * 1024,
  6266. queueSize: 2,
  6267. leavePartsOnError: true,
  6268. };
  6269. bucket
  6270. .upload(params, options)
  6271. .on("httpUploadProgress", function (evt) {
  6272. //这里可以写进度条
  6273. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6274. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6275. itemTaskIndex
  6276. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6277. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6278. itemTaskIndex
  6279. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6280. _this.$forceUpdate();
  6281. })
  6282. .send(function (err, data) {
  6283. // loading.close();
  6284. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6285. itemTaskIndex
  6286. ].progress = 100;
  6287. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6288. itemTaskIndex
  6289. ].isFinishSize =
  6290. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6291. itemTaskIndex
  6292. ].isAllSize;
  6293. _this.$forceUpdate();
  6294. setTimeout(() => {
  6295. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6296. itemTaskIndex
  6297. ].proVisible = false;
  6298. _this.$forceUpdate();
  6299. }, 1000);
  6300. _this.inputShow = true;
  6301. if (err) {
  6302. // var a = _this.$refs.upload1.uploadFiles;
  6303. // a.splice(a.length - 1, a.length);
  6304. _this.$message.error("上传失败");
  6305. } else {
  6306. if (type == 2 || type == 3) {
  6307. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6308. itemTaskIndex
  6309. ].chapterData.push({
  6310. name: file.name,
  6311. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6312. // itemTaskIndex
  6313. // ].chapterData.length+1),
  6314. url: data.Location,
  6315. uid: file.uid,
  6316. type: type,
  6317. text: string,
  6318. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6319. // itemTaskIndex
  6320. // ].chapterData.length + 1),
  6321. });
  6322. _this.imgChange1(null, null, type, itemTaskIndex);
  6323. } else if (type == 4) {
  6324. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6325. itemTaskIndex
  6326. ].fileList1.push({
  6327. name: file.name,
  6328. url: data.Location,
  6329. uid: file.uid,
  6330. });
  6331. _this.imgChange1(null, null, type, itemTaskIndex);
  6332. } else if (type == 5) {
  6333. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6334. itemTaskIndex
  6335. ].homeworkList.push({
  6336. name: file.name,
  6337. url: data.Location,
  6338. uid: file.uid,
  6339. });
  6340. _this.imgChange1(null, null, type, itemTaskIndex);
  6341. }
  6342. console.log(data.Location);
  6343. }
  6344. });
  6345. }
  6346. },
  6347. addunit() {
  6348. this.unitJson.push({
  6349. dyName: "", //单元标题
  6350. isUpdate: 1,
  6351. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6352. chapterInfo: [
  6353. {
  6354. isread: false,
  6355. chapterid: this.guid(),
  6356. title: "",
  6357. courseName: "",
  6358. taskJson: [
  6359. {
  6360. task: "",
  6361. taskDetail: "",
  6362. chapterData: [],
  6363. toolText: "",
  6364. toolChoose: [
  6365. {
  6366. tool: [],
  6367. toolDetail: "",
  6368. toolType: 0,
  6369. askCount: 1,
  6370. askTitle: "",
  6371. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6372. },
  6373. ],
  6374. isShowTools: false,
  6375. askCount: 1,
  6376. isFold: 0,
  6377. askTitle: "",
  6378. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6379. checkJson: [{ checkCount: [], checkPerent: [] }],
  6380. homeworkList: [],
  6381. },
  6382. ],
  6383. itemCount: 1,
  6384. fileList1: [],
  6385. video: [],
  6386. testData: [],
  6387. pData: [],
  6388. templateArray: [],
  6389. },
  6390. ],
  6391. });
  6392. this.addindex = this.unitJson.length - 1;
  6393. setTimeout(() => {
  6394. this.unitIndex = this.unitJson.length - 1;
  6395. this.unitSet(this.unitIndex);
  6396. }, 0);
  6397. },
  6398. addToolFun(itemTaskIndex) {
  6399. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6400. itemTaskIndex
  6401. ].toolChoose.push({
  6402. tool: [],
  6403. toolDetail: "",
  6404. toolType: 0,
  6405. askCount: 1,
  6406. askTitle: "",
  6407. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6408. });
  6409. },
  6410. addTaskBorder() {
  6411. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6412. task: "",
  6413. taskDetail: "",
  6414. chapterData: [],
  6415. toolChoose: [
  6416. {
  6417. tool: [],
  6418. toolDetail: "",
  6419. toolType: 0,
  6420. askCount: 1,
  6421. askTitle: "",
  6422. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6423. },
  6424. ],
  6425. toolText: "",
  6426. isShowTools: false,
  6427. askCount: 1,
  6428. isFold: 0,
  6429. askTitle: "",
  6430. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6431. checkJson: [{ checkCount: [], checkPerent: [] }],
  6432. homeworkList: [],
  6433. });
  6434. },
  6435. add(e, i) {
  6436. var el = e.currentTarget;
  6437. el.getElementsByTagName("input")[0].click();
  6438. },
  6439. fold(i, e, type) {
  6440. var a = e.currentTarget.parentElement.parentElement;
  6441. var b = e.currentTarget.parentElement;
  6442. if (type == 1) {
  6443. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6444. a.className += " smallTaskBorder";
  6445. b.className += " funBlockTop";
  6446. } else {
  6447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6448. a.className = "taskBorder";
  6449. b.className = "funBlock";
  6450. }
  6451. console.log(e);
  6452. },
  6453. fold2(i) {
  6454. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6455. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6456. } else {
  6457. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6458. }
  6459. setTimeout(() => {
  6460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  6461. setTimeout(() => {
  6462. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  6463. }, 0);
  6464. }, 0);
  6465. this.$forceUpdate();
  6466. },
  6467. foldC(i) {
  6468. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6469. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6470. } else {
  6471. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6472. }
  6473. this.$forceUpdate();
  6474. },
  6475. fold3(i, ti) {
  6476. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6477. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6478. } else {
  6479. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6480. }
  6481. this.$forceUpdate();
  6482. },
  6483. deleteHomeworkBox(unitIndex, index, i) {
  6484. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6485. this.taskCount
  6486. ].homeworkList.splice(i, 1);
  6487. },
  6488. getStudent() {
  6489. let params = {
  6490. oid: this.oid,
  6491. cu: "",
  6492. cn: this.searchPeople,
  6493. };
  6494. this.ajax
  6495. .get(this.$store.state.api + "selectStudentAdd", params)
  6496. .then((res) => {
  6497. this.studentJuri = res.data[0];
  6498. })
  6499. .catch((err) => {
  6500. this.isLoading = false;
  6501. console.error(err);
  6502. });
  6503. },
  6504. getTeacher() {
  6505. let params = {
  6506. oid:
  6507. this.org && this.org != "undefined" && this.org != "null"
  6508. ? this.org
  6509. : this.oid,
  6510. cu: "",
  6511. cn: this.searchTN,
  6512. };
  6513. this.ajax
  6514. .get(
  6515. this.$store.state.api +
  6516. (this.org && this.org != "undefined" && this.org != "null"
  6517. ? "selectTeacherAddOrg"
  6518. : "selectTeacherAdd"),
  6519. params
  6520. )
  6521. .then((res) => {
  6522. let teacherJuri = res.data[0];
  6523. for (var i = 0; i < teacherJuri.length; i++) {
  6524. if (teacherJuri[i].userid == this.userid) {
  6525. teacherJuri.splice(i, 1);
  6526. break;
  6527. }
  6528. }
  6529. this.teacherJuri = teacherJuri;
  6530. })
  6531. .catch((err) => {
  6532. console.error(err);
  6533. });
  6534. },
  6535. searchStudent() {
  6536. this.getStudent();
  6537. },
  6538. selectGrage() {
  6539. let params = {
  6540. oid: this.oid,
  6541. };
  6542. this.ajax
  6543. .get(this.$store.state.api + "selectGrageBySchool", params)
  6544. .then((res) => {
  6545. this.gradeList = res.data[0];
  6546. })
  6547. .catch((err) => {
  6548. this.isLoading = false;
  6549. console.error(err);
  6550. });
  6551. },
  6552. //获取班级列表
  6553. getClass() {
  6554. let params = {
  6555. oid: this.oid,
  6556. gid: this.gradeId,
  6557. cn: this.classSearch,
  6558. };
  6559. this.ajax
  6560. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6561. .then((res) => {
  6562. if (!this.grade.length) {
  6563. this.grade = res.data[0];
  6564. }
  6565. this.grade2 = res.data[0];
  6566. this.classJuri = res.data[0];
  6567. let _check = []
  6568. let _check2 = []
  6569. for (var i = 0; i < this.grade2.length; i++) {
  6570. var gid = this.grade2[i].id
  6571. _check.push(gid)
  6572. }
  6573. for (var i = 0; i < this.checkboxList2.length; i++) {
  6574. var _id = this.checkboxList2[i]
  6575. if (_check.indexOf(_id) !== -1) {
  6576. _check2.push(_id)
  6577. }
  6578. }
  6579. this.checkAll = _check2.length === _check.length;
  6580. })
  6581. .catch((err) => {
  6582. this.isLoading = false;
  6583. console.error(err);
  6584. });
  6585. },
  6586. CourseType2Change(val) {
  6587. this.pTypeCheck = [];
  6588. for (var i = 0; i < this.CourseType2.length; i++) {
  6589. let typeA = this.CourseType2[i];
  6590. if (val.indexOf(typeA.name) != -1) {
  6591. this.pTypeCheck.push(...typeA.id);
  6592. }
  6593. }
  6594. },
  6595. getChapterData(e, i, j, ic, type) {
  6596. e.stopPropagation();
  6597. this.updataC = true;
  6598. this.icc = ic;
  6599. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6600. console.log("还不能下载图片喔");
  6601. }
  6602. },
  6603. deleteChapterData(e, i, j, ic, taskI) {
  6604. e.stopPropagation();
  6605. let _this = this;
  6606. _this
  6607. .$confirm("确定删除此项?", "提示", {
  6608. confirmButtonText: "确定",
  6609. cancelButtonText: "取消",
  6610. type: "warning",
  6611. })
  6612. .then(() => {
  6613. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6614. })
  6615. .catch(() => {
  6616. return;
  6617. });
  6618. },
  6619. updataVideoT(e, i, j, ic) {
  6620. // e.stopPropagation();
  6621. // this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6622. // ic
  6623. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6624. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6625. ic
  6626. ].name;
  6627. this.taskCount = j;
  6628. this.lineCount = ic;
  6629. this.dialogVisibleupdataVideoT = true;
  6630. this.$forceUpdate();
  6631. },
  6632. updataVideoC() {
  6633. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6634. this.dialogVisibleupdataVideoT = false;
  6635. this.$forceUpdate();
  6636. },
  6637. upCd(e, i, j, taskCount, ic) {
  6638. e.stopPropagation();
  6639. if (ic == 0) {
  6640. return;
  6641. }
  6642. var a =
  6643. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6644. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6645. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6646. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6647. this.$forceUpdate();
  6648. },
  6649. downCd(e, i, j, taskCount, ic) {
  6650. e.stopPropagation();
  6651. if (
  6652. ic ==
  6653. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6654. 1
  6655. ) {
  6656. return;
  6657. }
  6658. var a =
  6659. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6660. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6661. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6662. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6663. this.$forceUpdate();
  6664. },
  6665. upTool(e, i, j, tooli){
  6666. e.stopPropagation();
  6667. if (tooli == 0) {
  6668. return;
  6669. }
  6670. this.$confirm(
  6671. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6672. "提示",
  6673. {
  6674. confirmButtonText: "确定",
  6675. cancelButtonText: "取消",
  6676. type: "warning",
  6677. }
  6678. )
  6679. .then(() => {
  6680. var a =
  6681. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6682. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6683. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6684. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6685. this.$forceUpdate()
  6686. })
  6687. .catch(() => {
  6688. return;
  6689. });
  6690. },
  6691. downTool(e, i, j, tooli){
  6692. e.stopPropagation();
  6693. if ( tooli ==
  6694. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6695. 1) {
  6696. return;
  6697. }
  6698. this.$confirm(
  6699. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6700. "提示",
  6701. {
  6702. confirmButtonText: "确定",
  6703. cancelButtonText: "取消",
  6704. type: "warning",
  6705. }
  6706. )
  6707. .then(() => {
  6708. var a =
  6709. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6710. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6711. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6712. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6713. this.$forceUpdate()
  6714. })
  6715. .catch(() => {
  6716. return;
  6717. });
  6718. },
  6719. addWork() {
  6720. let cPan = 1;
  6721. for (var i = 0; i < this.unitJson.length; i++) {
  6722. for (
  6723. var j = 0;
  6724. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6725. j++
  6726. ) {
  6727. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6728. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6729. if (
  6730. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6731. ) {
  6732. for (
  6733. var z = 0;
  6734. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6735. z++
  6736. ) {
  6737. if (
  6738. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6739. .length
  6740. ) {
  6741. this.$message.error("请把工具添加完整");
  6742. cPan = 2;
  6743. break;
  6744. }
  6745. }
  6746. }
  6747. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6748. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6749. i
  6750. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6751. return ele.value != "";
  6752. });
  6753. }
  6754. }
  6755. }
  6756. this.inputShow = true;
  6757. if (cPan == 2) {
  6758. return;
  6759. }
  6760. for (var i = 0; i < this.unitJson.length; i++) {
  6761. delete this.unitJson[i].isUpdate;
  6762. }
  6763. let params = [
  6764. {
  6765. uid: this.userid,
  6766. title: this.courseName.replace(/%/g, "%25"),
  6767. brief: this.courseText.replace(/%/g, "%25"),
  6768. cover:
  6769. this.cover.length > 0
  6770. ? JSON.stringify(this.cover)
  6771. : JSON.stringify([
  6772. {
  6773. name: "noBanner.jpg",
  6774. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6775. uid: 1656409780264,
  6776. status: "success",
  6777. },
  6778. ]),
  6779. evaId: this.evalua,
  6780. astudent:
  6781. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6782. see: this.isTeacherSee == true ? 1 : 0,
  6783. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6784. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6785. courseType: JSON.stringify(this.courseTypeId),
  6786. ateacher:
  6787. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6788. inviteCode: JSON.stringify(this.inviteCode),
  6789. },
  6790. ];
  6791. this.ajax
  6792. .post(this.$store.state.api + "addWorkNew2T", params)
  6793. .then((res) => {
  6794. console.log(this.steps);
  6795. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6796. this.$message({
  6797. message: "新增成功",
  6798. type: "success",
  6799. });
  6800. // }
  6801. this.number = res.data.ordernumber;
  6802. this.courseId = res.data.courseId;
  6803. this.cid = res.data.courseId;
  6804. this.courseUserid = this.userid;
  6805. this.islogin = true;
  6806. this.steps = 4;
  6807. })
  6808. .catch((err) => {
  6809. this.$message.error("网络不佳");
  6810. console.error(err);
  6811. });
  6812. },
  6813. goCourse() {
  6814. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  6815. },
  6816. updateWork2() {
  6817. let _unitIndex = this.unitIndex;
  6818. let cPan = 1;
  6819. for (
  6820. var j = 0;
  6821. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6822. j++
  6823. ) {
  6824. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6825. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6826. j
  6827. ].proVisible2 = false;
  6828. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6829. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6830. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6831. (ele) => {
  6832. return ele.value != "";
  6833. }
  6834. );
  6835. }
  6836. }
  6837. this.inputShow = true;
  6838. if (cPan == 2) {
  6839. return;
  6840. }
  6841. let params = [
  6842. {
  6843. cid: this.cid,
  6844. chapters: JSON.stringify(this.unitJson),
  6845. uid: this.userid,
  6846. unitIndex: _unitIndex,
  6847. },
  6848. ];
  6849. this.ajax
  6850. .post(this.$store.state.api + "updateWorkNew4", params)
  6851. .then((res) => {
  6852. this.$message({
  6853. message: "修改成功",
  6854. type: "success",
  6855. });
  6856. this.courseId = this.cid;
  6857. })
  6858. .catch((err) => {
  6859. this.$message.error("网络不佳");
  6860. console.error(err);
  6861. });
  6862. },
  6863. updateWork() {
  6864. let cPan = 1;
  6865. for (var i = 0; i < this.unitJson.length; i++) {
  6866. for (
  6867. var j = 0;
  6868. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6869. j++
  6870. ) {
  6871. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6872. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6873. if (
  6874. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6875. ) {
  6876. for (
  6877. var z = 0;
  6878. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6879. z++
  6880. ) {
  6881. if (
  6882. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6883. .length
  6884. ) {
  6885. this.$message.error("请把工具添加完整");
  6886. cPan = 2;
  6887. break;
  6888. }
  6889. }
  6890. }
  6891. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6892. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6893. i
  6894. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6895. return ele.value != "";
  6896. });
  6897. }
  6898. }
  6899. }
  6900. this.inputShow = true;
  6901. if (cPan == 2) {
  6902. return;
  6903. }
  6904. for (var i = 0; i < this.unitJson.length; i++) {
  6905. delete this.unitJson[i].isUpdate;
  6906. }
  6907. let params = [
  6908. {
  6909. cid: this.cid,
  6910. title: this.courseName.replace(/%/g, "%25"),
  6911. brief: this.courseText.replace(/%/g, "%25"),
  6912. cover:
  6913. this.cover.length > 0
  6914. ? JSON.stringify(this.cover)
  6915. : JSON.stringify([
  6916. {
  6917. name: "noBanner.jpg",
  6918. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6919. uid: 1656409780264,
  6920. status: "success",
  6921. },
  6922. ]),
  6923. evaId: this.evalua,
  6924. astudent:
  6925. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6926. see: this.isTeacherSee == true ? 1 : 0,
  6927. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6928. template: this.myWord != "undefined" ? this.myWord : [],
  6929. uid: this.userid,
  6930. courseType: JSON.stringify(this.courseTypeId),
  6931. ateacher:
  6932. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6933. inviteCode: JSON.stringify(this.inviteCode),
  6934. },
  6935. ];
  6936. this.ajax
  6937. .post(this.$store.state.api + "updateWorkNew2", params)
  6938. .then((res) => {
  6939. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6940. if (this.cidType == 1) {
  6941. this.$message({
  6942. message: "修改成功",
  6943. type: "success",
  6944. });
  6945. } else {
  6946. this.$message({
  6947. message: "新增成功",
  6948. type: "success",
  6949. });
  6950. }
  6951. // }
  6952. this.number = this.nbOrder;
  6953. this.courseId = this.cid;
  6954. this.steps = 4;
  6955. })
  6956. .catch((err) => {
  6957. this.$message.error("网络不佳");
  6958. console.error(err);
  6959. });
  6960. },
  6961. guid() {
  6962. var _num,
  6963. i,
  6964. _guid = "";
  6965. for (i = 0; i < 32; i++) {
  6966. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6967. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6968. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6969. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6970. _guid += "-";
  6971. }
  6972. }
  6973. return _guid;
  6974. },
  6975. insertWord() {
  6976. this.dialogVisible1 = true;
  6977. this.updateBoolean2 = false;
  6978. this.tTitle = "";
  6979. this.tdetail = "";
  6980. },
  6981. addWord() {
  6982. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6983. name: this.tTitle,
  6984. content: this.tdetail,
  6985. uid: this.guid(),
  6986. });
  6987. this.dialogVisible1 = false;
  6988. },
  6989. upWord() { },
  6990. selectWord(uid, i, c) {
  6991. this.dialogVisible1 = true;
  6992. this.updateBoolean2 = true;
  6993. if (
  6994. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6995. ) {
  6996. this.tTitle =
  6997. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6998. this.tdetail =
  6999. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  7000. }
  7001. },
  7002. isAddPP() {
  7003. if (this.checkboxList.length > 0) {
  7004. this.$message({
  7005. message: "添加成功",
  7006. type: "success",
  7007. });
  7008. this.dialogVisible3 = false;
  7009. } else {
  7010. this.$message({
  7011. message: "请添加课程成员",
  7012. type: "error",
  7013. });
  7014. }
  7015. },
  7016. isAddClass() {
  7017. this.dialogVisibleClass = false;
  7018. },
  7019. isAddPPTeacher() {
  7020. this.dialogVisibleMember = false;
  7021. this.setMan();
  7022. },
  7023. getTemplate() {
  7024. this.ajax
  7025. .get(this.$store.state.api + "getCourseTemplateT", "")
  7026. .then((res) => {
  7027. this.templateArray = res.data[0];
  7028. this.getTemplateOid();
  7029. this.$forceUpdate();
  7030. })
  7031. .catch((err) => { });
  7032. },
  7033. getTemplateOid() {
  7034. let params = {
  7035. oid: this.oid,
  7036. };
  7037. this.ajax
  7038. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7039. .then((res) => {
  7040. if (res.data[0].length) {
  7041. this.templateArray = [...res.data[0], ...this.templateArray];
  7042. }
  7043. this.getTemplateOrg();
  7044. this.$forceUpdate();
  7045. })
  7046. .catch((err) => { });
  7047. },
  7048. getTemplateOrg() {
  7049. let params = {
  7050. oid: this.org,
  7051. };
  7052. this.ajax
  7053. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7054. .then((res) => {
  7055. if (res.data[0].length) {
  7056. this.templateArray = [...res.data[0], ...this.templateArray];
  7057. }
  7058. this.$forceUpdate();
  7059. })
  7060. .catch((err) => { });
  7061. },
  7062. clearChoose() {
  7063. this.clearArray.splice(this.templateC.id, 1);
  7064. this.dialogVisible2 = false;
  7065. },
  7066. clearAttText() {
  7067. this.AttText = {
  7068. title: "",
  7069. text: "",
  7070. };
  7071. this.dialogVisible6 = false;
  7072. },
  7073. clearLine() {
  7074. this.line = "";
  7075. this.dialogVisible7 = false;
  7076. },
  7077. checkTemplate(res) {
  7078. let _this = this;
  7079. _this
  7080. .$confirm("确定选择此模板吗?", "提示", {
  7081. confirmButtonText: "确定",
  7082. cancelButtonText: "取消",
  7083. type: "warning",
  7084. })
  7085. .then(() => {
  7086. _this.unitJson = JSON.parse(res.chapters);
  7087. _this.steps++;
  7088. setTimeout(() => {
  7089. this.checkEva(this.checkId);
  7090. }, 1000);
  7091. })
  7092. .catch(() => {
  7093. return;
  7094. });
  7095. },
  7096. checkTemplate1(w) {
  7097. this.steps++;
  7098. },
  7099. checkTemplate2() {
  7100. let _this = this;
  7101. _this
  7102. .$confirm("确定选择空模板吗?", "提示", {
  7103. confirmButtonText: "确定",
  7104. cancelButtonText: "取消",
  7105. type: "warning",
  7106. })
  7107. .then(() => {
  7108. _this.unitIndex = 0;
  7109. _this.unitJson = [
  7110. {
  7111. dyName: "", //单元标题
  7112. chapterInfo: [
  7113. {
  7114. isread: false,
  7115. chapterid: this.guid(),
  7116. title: "",
  7117. courseName: "",
  7118. taskJson: [
  7119. {
  7120. task: "",
  7121. taskDetail: "",
  7122. chapterData: [],
  7123. toolText: "",
  7124. toolChoose: [
  7125. {
  7126. tool: [],
  7127. toolDetail: "",
  7128. toolType: 0,
  7129. askCount: 1,
  7130. askTitle: "",
  7131. askJson: [
  7132. { askstitle: "", askItem: 1, checkList: [] },
  7133. ],
  7134. },
  7135. ],
  7136. isShowTools: false,
  7137. askCount: 1,
  7138. isFold: 0,
  7139. askTitle: "",
  7140. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7141. checkJson: [{ checkCount: [], checkPerent: [] }],
  7142. homeworkList: [],
  7143. },
  7144. ],
  7145. itemCount: 1,
  7146. fileList1: [],
  7147. video: [],
  7148. testData: [],
  7149. pData: [],
  7150. templateArray: [],
  7151. },
  7152. ],
  7153. },
  7154. ];
  7155. this.steps++;
  7156. this.updateWork();
  7157. })
  7158. .catch(() => {
  7159. return;
  7160. });
  7161. },
  7162. checkTemplate3() {
  7163. let _this = this;
  7164. _this
  7165. .$confirm("确定选择简易模式吗?", "提示", {
  7166. confirmButtonText: "确定",
  7167. cancelButtonText: "取消",
  7168. type: "warning",
  7169. })
  7170. .then(() => {
  7171. _this.unitIndex = 0;
  7172. _this.unitJson = [
  7173. {
  7174. dyName: "", //单元标题
  7175. easy: 1,
  7176. chapterInfo: [
  7177. {
  7178. isread: false,
  7179. chapterid: this.guid(),
  7180. title: "",
  7181. courseName: "",
  7182. taskJson: [
  7183. {
  7184. task: "",
  7185. taskDetail: "",
  7186. chapterData: [],
  7187. toolText: "",
  7188. toolChoose: [
  7189. {
  7190. tool: [],
  7191. toolDetail: "",
  7192. toolType: 0,
  7193. askCount: 1,
  7194. askTitle: "",
  7195. askJson: [
  7196. { askstitle: "", askItem: 1, checkList: [] },
  7197. ],
  7198. },
  7199. ],
  7200. isShowTools: false,
  7201. askCount: 1,
  7202. isFold: 0,
  7203. askTitle: "",
  7204. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7205. checkJson: [{ checkCount: [], checkPerent: [] }],
  7206. homeworkList: [],
  7207. },
  7208. ],
  7209. itemCount: 1,
  7210. fileList1: [],
  7211. video: [],
  7212. testData: [],
  7213. pData: [],
  7214. templateArray: [],
  7215. },
  7216. ],
  7217. },
  7218. ];
  7219. this.steps++;
  7220. this.updateWork();
  7221. })
  7222. .catch(() => {
  7223. return;
  7224. });
  7225. },
  7226. checkTemplate4() {
  7227. let _this = this;
  7228. _this
  7229. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7230. confirmButtonText: "确定",
  7231. cancelButtonText: "取消",
  7232. type: "warning",
  7233. })
  7234. .then(() => {
  7235. _this.unitIndex = 0;
  7236. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7237. this.steps++;
  7238. this.updateWork();
  7239. })
  7240. .catch(() => {
  7241. return;
  7242. });
  7243. },
  7244. wordNext() {
  7245. this.dialogVisible2 = false;
  7246. },
  7247. isAddOrUpdateAttText() {
  7248. if (this.AttTextType == 0) {
  7249. this.addAttTextMessage();
  7250. } else {
  7251. this.updateAttText();
  7252. }
  7253. },
  7254. isAddOrUpdateLine() {
  7255. if (!this.lineTitle) {
  7256. this.$message.error("请填写链接标题");
  7257. return;
  7258. }
  7259. if (this.lineType == 0) {
  7260. this.addLine();
  7261. } else {
  7262. this.updateLine();
  7263. }
  7264. },
  7265. addAttTextMessage() {
  7266. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7267. this.taskCount
  7268. ].chapterData.push({
  7269. name: this.AttText.title,
  7270. url: this.AttText.text,
  7271. type: 6,
  7272. });
  7273. this.imgChange1(null, null, 6, this.taskCount);
  7274. this.dialogVisible6 = false;
  7275. },
  7276. selectAttText(itemTaskIndex, i) {
  7277. this.AttText.title =
  7278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7279. itemTaskIndex
  7280. ].chapterData[i].name;
  7281. this.AttText.text =
  7282. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7283. itemTaskIndex
  7284. ].chapterData[i].url;
  7285. this.taskCount = itemTaskIndex;
  7286. this.AttTextIndex = i;
  7287. this.AttTextType = 1;
  7288. this.dialogVisible6 = true;
  7289. },
  7290. updateAttText() {
  7291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7292. this.taskCount
  7293. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7294. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7295. this.taskCount
  7296. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7297. this.dialogVisible6 = false;
  7298. },
  7299. addLine() {
  7300. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7301. this.lineCount
  7302. ].chapterData.push({
  7303. name: "链接",
  7304. title: this.lineTitle,
  7305. url: this.line,
  7306. type: 8,
  7307. });
  7308. this.imgChange1(null, null, 8, this.lineCount);
  7309. this.dialogVisible7 = false;
  7310. },
  7311. selectLine(itemTaskIndex, i) {
  7312. this.line =
  7313. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7314. itemTaskIndex
  7315. ].chapterData[i].url;
  7316. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7317. itemTaskIndex
  7318. ].chapterData[i].title
  7319. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7320. .chapterData[i].title
  7321. : "";
  7322. this.taskCount = itemTaskIndex;
  7323. this.lineCount = i;
  7324. this.lineType = 1;
  7325. this.dialogVisible7 = true;
  7326. },
  7327. openUpdateSource(itemTaskIndex, i) {
  7328. this.sourceData = {}
  7329. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7330. this.sourceData[source.id] = {}
  7331. this.sourceData[source.id].name = source.title
  7332. this.sourceData[source.id].url = source.url
  7333. this.dialogVisibleSource = true;
  7334. this.updateSourcePan = true;
  7335. this.taskCount = itemTaskIndex;
  7336. this.lineCount = i;
  7337. },
  7338. updateLine() {
  7339. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7340. this.taskCount
  7341. ].chapterData[this.lineCount].url = this.line;
  7342. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7343. this.taskCount
  7344. ].chapterData[this.lineCount].title = this.lineTitle;
  7345. this.dialogVisible7 = false;
  7346. },
  7347. addPP() {
  7348. this.dialogVisible3 = true;
  7349. },
  7350. goTo(path) {
  7351. this.$router.push(path);
  7352. },
  7353. openTools(itemTaskIndex, i, toolIndex) {
  7354. this.toolIndex = toolIndex;
  7355. this.taskCount = itemTaskIndex;
  7356. if (i == 4) {
  7357. if (toolIndex == null) {
  7358. var a =
  7359. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7360. .chapterData;
  7361. for (var i = 0; i < a.length; i++) {
  7362. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7363. this.askJson =
  7364. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7365. itemTaskIndex
  7366. ].chapterData[i].askJson;
  7367. }
  7368. }
  7369. } else {
  7370. this.askJson = JSON.parse(
  7371. JSON.stringify(
  7372. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7373. itemTaskIndex
  7374. ].toolChoose[toolIndex]
  7375. )
  7376. );
  7377. }
  7378. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7379. this.dialogVisible5 = true;
  7380. } else if (i == 45) {
  7381. if (
  7382. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7383. .toolChoose[toolIndex].testJson
  7384. ) {
  7385. this.testJson = JSON.parse(
  7386. JSON.stringify(
  7387. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7388. itemTaskIndex
  7389. ].toolChoose[toolIndex].testJson
  7390. )
  7391. );
  7392. } else {
  7393. var testJson = {
  7394. testCount: 1,
  7395. testTitle: "",
  7396. testJson: [
  7397. {
  7398. teststitle: "",
  7399. testItem: 1,
  7400. checkList: [],
  7401. timuList: [],
  7402. answer: [],
  7403. type: "1",
  7404. },
  7405. ],
  7406. };
  7407. this.testJson = testJson;
  7408. }
  7409. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7410. this.dialogVisibleChoice = true;
  7411. } else if (i == 47) {
  7412. if (
  7413. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7414. .toolChoose[toolIndex].sentenceList
  7415. ) {
  7416. this.sentenceList = JSON.parse(
  7417. JSON.stringify(
  7418. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7419. itemTaskIndex
  7420. ].toolChoose[toolIndex].sentenceList
  7421. )
  7422. );
  7423. } else {
  7424. var sentenceList = [
  7425. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7426. ];
  7427. this.sentenceList = sentenceList;
  7428. }
  7429. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7430. this.dialogVisibleSentence = true;
  7431. } else if (i == 48) {
  7432. if (
  7433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7434. .toolChoose[toolIndex].tableJson
  7435. ) {
  7436. this.tableJson = JSON.parse(
  7437. JSON.stringify(
  7438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7439. itemTaskIndex
  7440. ].toolChoose[toolIndex].tableJson
  7441. )
  7442. );
  7443. } else {
  7444. var tableJson = { text: "" };
  7445. this.tableJson = tableJson;
  7446. }
  7447. this.dialogVisibleTable = true;
  7448. } else if (i == 52) {
  7449. if (
  7450. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7451. .toolChoose[toolIndex].wordJson
  7452. ) {
  7453. this.wordJson = JSON.parse(
  7454. JSON.stringify(
  7455. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7456. itemTaskIndex
  7457. ].toolChoose[toolIndex].wordJson
  7458. )
  7459. );
  7460. } else {
  7461. var wordJson = { text: "" };
  7462. this.wordJson = wordJson;
  7463. }
  7464. this.dialogVisibleWord = true;
  7465. // else if (i == 50) {
  7466. // if (
  7467. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7468. // .toolChoose[toolIndex].uploadJson
  7469. // ) {
  7470. // this.uploadJson = JSON.parse(
  7471. // JSON.stringify(
  7472. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7473. // itemTaskIndex
  7474. // ].toolChoose[toolIndex].uploadJson
  7475. // )
  7476. // );
  7477. // } else {
  7478. // var uploadJson = [];
  7479. // this.uploadJson = uploadJson;
  7480. // }
  7481. // this.dialogVisibleMoreUpload = true;
  7482. // }
  7483. } else if (i == 10) {
  7484. if (
  7485. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7486. .toolChoose[toolIndex].preTime
  7487. ) {
  7488. this.preTime = JSON.parse(
  7489. JSON.stringify(
  7490. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7491. itemTaskIndex
  7492. ].toolChoose[toolIndex].preTime
  7493. )
  7494. );
  7495. } else {
  7496. var preTime = 0;
  7497. this.preTime = preTime;
  7498. }
  7499. this.dialogVisiblePreTime = true;
  7500. } else if (i == 49) {
  7501. if (
  7502. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7503. .toolChoose[toolIndex].groupJson
  7504. ) {
  7505. this.groupJson = JSON.parse(
  7506. JSON.stringify(
  7507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7508. itemTaskIndex
  7509. ].toolChoose[toolIndex].groupJson
  7510. )
  7511. );
  7512. } else {
  7513. var groupJson = {
  7514. group: [{ name: "第1组" }],
  7515. number: undefined,
  7516. islock: 1,
  7517. };
  7518. this.groupJson = groupJson;
  7519. }
  7520. this.dialogVisibleGroup = true;
  7521. } else if (i == 62) {
  7522. if (
  7523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7524. .toolChoose[toolIndex].videoJson
  7525. ) {
  7526. this.videoJson = JSON.parse(
  7527. JSON.stringify(
  7528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7529. itemTaskIndex
  7530. ].toolChoose[toolIndex].videoJson
  7531. )
  7532. );
  7533. } else {
  7534. var videoJson = {
  7535. video: "",
  7536. setting: [],
  7537. };
  7538. this.videoJson = videoJson;
  7539. }
  7540. this.dialogVisibleVideo = true;
  7541. } else if (i == 15) {
  7542. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7543. itemTaskIndex
  7544. ].toolChoose[toolIndex].answerQ
  7545. ? JSON.parse(
  7546. JSON.stringify(
  7547. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7548. itemTaskIndex
  7549. ].toolChoose[toolIndex].answerQ
  7550. )
  7551. )
  7552. : "";
  7553. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7554. this.dialogVisible8 = true;
  7555. } else if (i == 40) {
  7556. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7557. itemTaskIndex
  7558. ].toolChoose[toolIndex].rateJson
  7559. ? JSON.parse(
  7560. JSON.stringify(
  7561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7562. itemTaskIndex
  7563. ].toolChoose[toolIndex].rateJson
  7564. )
  7565. )
  7566. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7567. this.selectSteps = 1;
  7568. this.dialogVisibleRate = true;
  7569. } else if (i == 42) {
  7570. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7571. itemTaskIndex
  7572. ].toolChoose[toolIndex].answerQ
  7573. ? JSON.parse(
  7574. JSON.stringify(
  7575. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7576. itemTaskIndex
  7577. ].toolChoose[toolIndex].answerQ
  7578. )
  7579. )
  7580. : "";
  7581. this.dialogVisibleMp3 = true;
  7582. } else if (i == 41) {
  7583. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7584. itemTaskIndex
  7585. ].toolChoose[toolIndex].selectJson
  7586. ? JSON.parse(
  7587. JSON.stringify(
  7588. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7589. itemTaskIndex
  7590. ].toolChoose[toolIndex].selectJson
  7591. )
  7592. )
  7593. : { url: "", select: [], answer: [] };
  7594. this.selectSteps = 1;
  7595. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7596. this.dialogVisibleSelect = true;
  7597. } else if (i == 3) {
  7598. if (!this.cid) {
  7599. this.$message.error(
  7600. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7601. );
  7602. return;
  7603. }
  7604. window.parent.postMessage(
  7605. {
  7606. tools: "3y",
  7607. cid: this.cid,
  7608. stage: this.unitIndex,
  7609. task: itemTaskIndex,
  7610. tool: toolIndex,
  7611. },
  7612. "*"
  7613. );
  7614. } else if (i == 1) {
  7615. if (!this.cid) {
  7616. this.$message.error(
  7617. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7618. );
  7619. return;
  7620. }
  7621. window.parent.postMessage(
  7622. {
  7623. tools: "1y",
  7624. cid: this.cid,
  7625. stage: this.unitIndex,
  7626. task: itemTaskIndex,
  7627. tool: toolIndex,
  7628. },
  7629. "*"
  7630. );
  7631. } else if (i == 57) {
  7632. if (!this.cid) {
  7633. this.$message.error(
  7634. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7635. );
  7636. return;
  7637. }
  7638. window.parent.postMessage(
  7639. {
  7640. tools: "57y",
  7641. cid: this.cid,
  7642. stage: this.unitIndex,
  7643. task: itemTaskIndex,
  7644. tool: toolIndex,
  7645. },
  7646. "*"
  7647. );
  7648. }else if(i == 69){
  7649. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7650. itemTaskIndex
  7651. ].toolChoose[toolIndex].englishList
  7652. ? JSON.parse(
  7653. JSON.stringify(
  7654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7655. itemTaskIndex
  7656. ].toolChoose[toolIndex].englishList
  7657. )
  7658. )
  7659. : { };
  7660. this.englishDialogVisible = true;
  7661. }
  7662. },
  7663. chapAddTools(i) {
  7664. if (this.chapTools[0].tools.length == 0) {
  7665. this.chapTools[0].tools.push(i);
  7666. } else {
  7667. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7668. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7669. } else {
  7670. this.chapTools[0].tools.push(i);
  7671. }
  7672. }
  7673. this.$forceUpdate();
  7674. },
  7675. addChaptersDataTools() {
  7676. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7677. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7678. this.chapCount
  7679. ].chapterData.push({
  7680. name: this.chapTools[0].toolDetail,
  7681. url: this.chapTools[0].tools,
  7682. type: 7,
  7683. askJson: this.askJson,
  7684. });
  7685. } else {
  7686. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7687. this.chapCount
  7688. ].chapterData.push({
  7689. name: this.chapTools[0].toolDetail,
  7690. url: this.chapTools[0].tools,
  7691. type: 7,
  7692. });
  7693. }
  7694. this.imgChange1(null, null, 7, this.chapCount);
  7695. this.dialogVisible4 = false;
  7696. },
  7697. addTools(i, itemTaskIndex, toolIndex) {
  7698. // if (
  7699. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7700. // .toolChoose[toolIndex].tool.length == 0
  7701. // ) {
  7702. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7703. // itemTaskIndex
  7704. // ].toolChoose[toolIndex].tool.push(i);
  7705. // } else {
  7706. // if (
  7707. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7708. // itemTaskIndex
  7709. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7710. // ) {
  7711. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7712. // itemTaskIndex
  7713. // ].toolChoose[toolIndex].tool.splice(
  7714. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7715. // itemTaskIndex
  7716. // ].toolChoose[toolIndex].tool.indexOf(i),
  7717. // 1
  7718. // );
  7719. // } else {
  7720. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7721. // itemTaskIndex
  7722. // ].toolChoose[toolIndex].tool.push(i);
  7723. // }
  7724. // console.log(
  7725. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7726. // .toolChoose[toolIndex].tool
  7727. // );
  7728. // }
  7729. if (i == 4) {
  7730. if (
  7731. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7732. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7733. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7734. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7735. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7736. .toolChoose[toolIndex].askJson[0].checkList < 2
  7737. ) {
  7738. this.openTools(itemTaskIndex, 4, toolIndex);
  7739. // this.$message({
  7740. // message: "请填写完整问卷内容",
  7741. // type: "error",
  7742. // });
  7743. return;
  7744. }
  7745. }
  7746. if (i == 45) {
  7747. if (
  7748. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7749. .toolChoose[toolIndex].testJson ||
  7750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7751. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7752. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7753. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7754. ) {
  7755. this.openTools(itemTaskIndex, 45, toolIndex);
  7756. // this.$message({
  7757. // message: "请填写完整问卷内容",
  7758. // type: "error",
  7759. // });
  7760. return;
  7761. }
  7762. }
  7763. if (i == 47) {
  7764. if (
  7765. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7766. .toolChoose[toolIndex].sentenceList ||
  7767. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7768. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7769. ) {
  7770. this.openTools(itemTaskIndex, 47, toolIndex);
  7771. return;
  7772. }
  7773. }
  7774. if(i == 69){
  7775. if (
  7776. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7777. .toolChoose[toolIndex].englishList
  7778. ) {
  7779. this.openTools(itemTaskIndex, 69, toolIndex);
  7780. return;
  7781. }
  7782. }
  7783. // if (i == 48) {
  7784. // if (
  7785. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7786. // .toolChoose[toolIndex].tableJson
  7787. // ) {
  7788. // this.openTools(itemTaskIndex, 48, toolIndex);
  7789. // return;
  7790. // }
  7791. // }
  7792. // if (i == 50) {
  7793. // if (
  7794. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7795. // .toolChoose[toolIndex].uploadJson
  7796. // ) {
  7797. // this.openTools(itemTaskIndex, 50, toolIndex);
  7798. // return;
  7799. // }
  7800. // }
  7801. if (i == 49) {
  7802. if (
  7803. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7804. .toolChoose[toolIndex].groupJson
  7805. ) {
  7806. this.openTools(itemTaskIndex, 49, toolIndex);
  7807. return;
  7808. }
  7809. }
  7810. if (i == 62) {
  7811. if (
  7812. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7813. .toolChoose[toolIndex].videoJson
  7814. ) {
  7815. this.openTools(itemTaskIndex, 62, toolIndex);
  7816. return;
  7817. }
  7818. }
  7819. if (i == 15) {
  7820. if (
  7821. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7822. .toolChoose[toolIndex].answerQ ||
  7823. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7824. .toolChoose[toolIndex].answerQ == ""
  7825. ) {
  7826. this.openTools(itemTaskIndex, 15, toolIndex);
  7827. // this.$message({
  7828. // message: "请填写问答内容",
  7829. // type: "error",
  7830. // });
  7831. return;
  7832. }
  7833. }
  7834. if (i == 40) {
  7835. if (
  7836. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7837. .toolChoose[toolIndex].rateJson ||
  7838. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7839. .toolChoose[toolIndex].rateJson.length
  7840. ) {
  7841. this.openTools(itemTaskIndex, 40, toolIndex);
  7842. return;
  7843. }
  7844. }
  7845. if (i == 41) {
  7846. if (
  7847. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7848. .toolChoose[toolIndex].selectJson ||
  7849. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7850. .toolChoose[toolIndex].selectJson.url == "" ||
  7851. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7852. .toolChoose[toolIndex].selectJson.select.length ||
  7853. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7854. .toolChoose[toolIndex].selectJson.answer.length
  7855. ) {
  7856. this.openTools(itemTaskIndex, 41, toolIndex);
  7857. return;
  7858. }
  7859. }
  7860. if (i == 42) {
  7861. if (
  7862. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7863. .toolChoose[toolIndex].answerQ ||
  7864. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7865. .toolChoose[toolIndex].answerQ == ""
  7866. ) {
  7867. this.openTools(itemTaskIndex, 42, toolIndex);
  7868. return;
  7869. }
  7870. }
  7871. if (
  7872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7873. .toolChoose[toolIndex].tool.length > 0
  7874. ) {
  7875. if (
  7876. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7877. itemTaskIndex
  7878. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7879. ) {
  7880. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7881. itemTaskIndex
  7882. ].toolChoose[toolIndex].tool.splice(
  7883. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7884. itemTaskIndex
  7885. ].toolChoose[toolIndex].tool.indexOf(i),
  7886. 1
  7887. );
  7888. } else {
  7889. // this.$message({
  7890. // message: "每个工具只能添加一个",
  7891. // type: "error",
  7892. // });
  7893. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7894. itemTaskIndex
  7895. ].toolChoose[toolIndex].tool = [];
  7896. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7897. itemTaskIndex
  7898. ].toolChoose[toolIndex].tool.push(i);
  7899. }
  7900. } else {
  7901. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7902. itemTaskIndex
  7903. ].toolChoose[toolIndex].tool.push(i);
  7904. }
  7905. this.$forceUpdate();
  7906. },
  7907. addAskList(index) {
  7908. this.askJson.askJson.splice(index + 1, 0, {
  7909. askstitle: "",
  7910. askItem: 1,
  7911. checkList: [],
  7912. })
  7913. this.askJson.askCount++;
  7914. },
  7915. addTestList(index) {
  7916. this.testJson.testJson.splice(index + 1, 0, {
  7917. teststitle: "",
  7918. testItem: 1,
  7919. checkList: [],
  7920. timuList: [],
  7921. answer: [],
  7922. type: "1",
  7923. })
  7924. this.testJson.testCount++;
  7925. },
  7926. deleteAskList(index) {
  7927. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7928. this.askJson.askJson.splice(index, 1);
  7929. this.askJson.askCount--;
  7930. } else {
  7931. let _this = this;
  7932. _this
  7933. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7934. confirmButtonText: "确定",
  7935. cancelButtonText: "取消",
  7936. type: "warning",
  7937. })
  7938. .then(() => {
  7939. _this.askJson.askJson.splice(index, 1);
  7940. _this.askJson.askCount--;
  7941. })
  7942. .catch(() => {
  7943. return;
  7944. });
  7945. }
  7946. },
  7947. deleteTestList(index) {
  7948. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7949. this.testJson.testJson.splice(index, 1);
  7950. this.testJson.testCount--;
  7951. } else {
  7952. let _this = this;
  7953. _this
  7954. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7955. confirmButtonText: "确定",
  7956. cancelButtonText: "取消",
  7957. type: "warning",
  7958. })
  7959. .then(() => {
  7960. _this.testJson.testJson.splice(index, 1);
  7961. _this.testJson.testCount--;
  7962. })
  7963. .catch(() => {
  7964. return;
  7965. });
  7966. }
  7967. },
  7968. askMove(type, index) {
  7969. if (type == 1) {
  7970. if (index > 0) {
  7971. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  7972. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7973. this.askJson.askJson[index - 1] = b;
  7974. this.askJson.askJson[index] = a;
  7975. }
  7976. } else {
  7977. if (
  7978. index < this.askJson.askJson.length - 1
  7979. ) {
  7980. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  7981. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7982. this.askJson.askJson[index + 1] = b;
  7983. this.askJson.askJson[index] = a;
  7984. }
  7985. }
  7986. this.$forceUpdate();
  7987. },
  7988. checkMove(type, index, checkIndex) {
  7989. if (type == 1) {
  7990. if (checkIndex > 0) {
  7991. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  7992. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7993. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  7994. this.askJson.askJson[index].checkList[checkIndex] = a;
  7995. }
  7996. } else {
  7997. if (
  7998. checkIndex < this.askJson.askJson[index].checkList.length - 1
  7999. ) {
  8000. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  8001. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8002. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  8003. this.askJson.askJson[index].checkList[checkIndex] = a;
  8004. }
  8005. }
  8006. this.$forceUpdate();
  8007. },
  8008. testMove(type, index) {
  8009. if (type == 1) {
  8010. if (index > 0) {
  8011. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  8012. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8013. this.testJson.testJson[index - 1] = b;
  8014. this.testJson.testJson[index] = a;
  8015. }
  8016. } else {
  8017. if (
  8018. index < this.testJson.testJson.length - 1
  8019. ) {
  8020. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  8021. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8022. this.testJson.testJson[index + 1] = b;
  8023. this.testJson.testJson[index] = a;
  8024. }
  8025. }
  8026. this.$forceUpdate();
  8027. },
  8028. tcheckMove(type, index, checkIndex) {
  8029. if (type == 1) {
  8030. if (checkIndex > 0) {
  8031. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  8032. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8033. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  8034. this.testJson.testJson[index].checkList[checkIndex] = a;
  8035. }
  8036. } else {
  8037. if (
  8038. checkIndex < this.testJson.testJson[index].checkList.length - 1
  8039. ) {
  8040. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  8041. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8042. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  8043. this.testJson.testJson[index].checkList[checkIndex] = a;
  8044. }
  8045. }
  8046. this.$forceUpdate();
  8047. },
  8048. addcheckList(json, index) {
  8049. // json.checkList.length++;
  8050. json.checkList.splice(index + 1, 0, '')
  8051. json.askItem++;
  8052. this.$forceUpdate();
  8053. },
  8054. deletecheckList(json, index) {
  8055. // json.checkList.length--;
  8056. json.checkList.splice(index, 1)
  8057. json.askItem--;
  8058. this.$forceUpdate();
  8059. },
  8060. addTcheckList(json, index) {
  8061. // json.checkList.length++;
  8062. json.checkList.splice(index + 1, 0, '')
  8063. json.testItem++;
  8064. this.$forceUpdate();
  8065. },
  8066. deleteTcheckList(json, index) {
  8067. // json.checkList.length--;
  8068. json.checkList.splice(index, 1)
  8069. json.testItem--;
  8070. this.$forceUpdate();
  8071. },
  8072. checkTestType(type, json) {
  8073. json.type = type;
  8074. setTimeout(() => {
  8075. json.answer = [];
  8076. }, 100)
  8077. this.$forceUpdate();
  8078. },
  8079. checkAskType(type, json) {
  8080. json.type = type;
  8081. // json.checkList = [];
  8082. this.$forceUpdate();
  8083. },
  8084. addSelectList(json) {
  8085. json.select.push("");
  8086. json.answer.push("");
  8087. },
  8088. deleteSelectList(json) {
  8089. // json.select.length--;
  8090. // json.answer.length--;
  8091. json.select.splice(json.select.length - 1, 1);
  8092. json.answer.splice(json.answer.length - 1, 1);
  8093. },
  8094. addAsk() {
  8095. if (this.askJson.askTitle === "") {
  8096. this.$message.error("标题不能为空!");
  8097. return;
  8098. }
  8099. var aj = this.askJson.askJson;
  8100. var b = 1;
  8101. for (var i = 0; i < aj.length; i++) {
  8102. if (aj[i].askstitle === "") {
  8103. var a = 1;
  8104. for (let index = 0; index < aj[i].askItem; index++) {
  8105. const element = aj[i].checkList[index]
  8106. ? aj[i].checkList[index]
  8107. : "";
  8108. if (element != "") {
  8109. b++;
  8110. this.$message.error(`请将题目${i + 1}填写完整。`);
  8111. return;
  8112. } else {
  8113. a++;
  8114. }
  8115. }
  8116. if (b == 1) {
  8117. this.$message.error("至少填写一个问题");
  8118. return;
  8119. }
  8120. } else if (aj[i].askstitle != "") {
  8121. for (let index = 0; index < aj[i].askItem; index++) {
  8122. const element = aj[i].checkList[index]
  8123. ? aj[i].checkList[index]
  8124. : "";
  8125. var index = 0;
  8126. for (var z = 0; z < aj[i].checkList.length; z++) {
  8127. let checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8128. if (checkC != "") {
  8129. index++;
  8130. } else {
  8131. this.$message.error(`题目${i + 1}选项不能为空!`);
  8132. return;
  8133. }
  8134. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8135. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8136. if (checkC == checkC2) {
  8137. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8138. return;
  8139. }
  8140. }
  8141. }
  8142. b++;
  8143. if (index < 2) {
  8144. this.$message.error("每道题目至少需要设置2个选项。");
  8145. return;
  8146. }
  8147. }
  8148. }
  8149. }
  8150. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8151. var elc = el.checkList.filter((element) => {
  8152. return element != "";
  8153. });
  8154. return el.askstitle != "" && elc.length != 0;
  8155. });
  8156. if (!this.dialogVisible4) {
  8157. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8158. this.taskCount
  8159. ].toolChoose[this.toolIndex] = this.askJson;
  8160. }
  8161. this.dialogVisible5 = false;
  8162. if (
  8163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8164. .toolChoose[this.toolIndex].tool != 4
  8165. ) {
  8166. this.addTools(4, this.taskCount, this.toolIndex);
  8167. }
  8168. },
  8169. addTest() {
  8170. // if (this.testJson.testTitle === "") {
  8171. // this.$message.error("标题不能为空!");
  8172. // return;
  8173. // }
  8174. var aj = this.testJson.testJson;
  8175. var b = 1;
  8176. for (var i = 0; i < aj.length; i++) {
  8177. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8178. var a = 1;
  8179. for (let index = 0; index < aj[i].testItem; index++) {
  8180. const element = aj[i].checkList[index]
  8181. ? aj[i].checkList[index]
  8182. : "";
  8183. if (element != "") {
  8184. b++;
  8185. this.$message.error(`请将题目${i + 1}填写完整。`);
  8186. return;
  8187. } else {
  8188. a++;
  8189. }
  8190. }
  8191. if (b == 1) {
  8192. this.$message.error("至少填写一个问题");
  8193. return;
  8194. }
  8195. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8196. for (let index = 0; index < aj[i].testItem; index++) {
  8197. const element = aj[i].checkList[index]
  8198. ? aj[i].checkList[index]
  8199. : "";
  8200. var index = 0;
  8201. for (var z = 0; z < aj[i].checkList.length; z++) {
  8202. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8203. if (checkC != "") {
  8204. index++;
  8205. } else {
  8206. this.$message.error(`题目${i + 1}选项不能为空!`);
  8207. return;
  8208. }
  8209. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8210. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8211. if (checkC == checkC2) {
  8212. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8213. return;
  8214. }
  8215. }
  8216. }
  8217. b++;
  8218. if (index < 2) {
  8219. this.$message.error("每道题目至少需要设置2个选项。");
  8220. return;
  8221. }
  8222. if (
  8223. (aj[i].type == "2" && !aj[i].answer.length) ||
  8224. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8225. ) {
  8226. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8227. return;
  8228. }
  8229. }
  8230. }
  8231. }
  8232. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8233. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8234. var elc = el.checkList.filter((element) => {
  8235. return element != "";
  8236. });
  8237. return (
  8238. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8239. );
  8240. });
  8241. isTestJson.testCount = isTestJson.testJson.length;
  8242. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8243. this.taskCount
  8244. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8245. this.dialogVisibleChoice = false;
  8246. if (
  8247. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8248. .toolChoose[this.toolIndex].tool != 45
  8249. ) {
  8250. this.addTools(45, this.taskCount, this.toolIndex);
  8251. }
  8252. },
  8253. addVideoJson(videoJson) {
  8254. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8255. this.taskCount
  8256. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8257. this.dialogVisibleVideo = false;
  8258. if (
  8259. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8260. .toolChoose[this.toolIndex].tool != 62
  8261. ) {
  8262. this.addTools(62, this.taskCount, this.toolIndex);
  8263. }
  8264. },
  8265. //自动获取剪贴板
  8266. pasteOption() {
  8267. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8268. if (!iframe) {
  8269. this.$message.error("请使用AI共创生成题目");
  8270. return;
  8271. }
  8272. let copyData = iframe.contentWindow.copyData;
  8273. if (!copyData || !copyData.selectData.length) {
  8274. this.$message.error("请使用AI共创生成题目");
  8275. return;
  8276. }
  8277. let selectData = copyData.selectData;
  8278. for (var i = 0; i < selectData.length; i++) {
  8279. let answer = 0;
  8280. switch (selectData[i].answer[0]) {
  8281. case "A":
  8282. answer = 0;
  8283. break;
  8284. case "B":
  8285. answer = 1;
  8286. break;
  8287. case "C":
  8288. answer = 2;
  8289. break;
  8290. case "D":
  8291. answer = 3;
  8292. break;
  8293. case "E":
  8294. answer = 4;
  8295. break;
  8296. default:
  8297. break;
  8298. }
  8299. this.testJson.testJson.push({
  8300. teststitle: selectData[i].subject,
  8301. testItem: selectData[i].options.length,
  8302. checkList: selectData[i].options,
  8303. timuList: [],
  8304. answer: answer,
  8305. type: "1",
  8306. });
  8307. this.testJson.testCount++;
  8308. }
  8309. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8310. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8311. var elc = el.checkList.filter((element) => {
  8312. return element != "";
  8313. });
  8314. return (
  8315. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8316. );
  8317. });
  8318. isTestJson.testCount = isTestJson.testJson.length;
  8319. this.testJson = isTestJson;
  8320. this.$forceUpdate();
  8321. },
  8322. pasteTask() {
  8323. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8324. if (!iframe) {
  8325. this.$message.error("请使用AI共创生成");
  8326. return;
  8327. }
  8328. let copyData = iframe.contentWindow.copyData;
  8329. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  8330. this.$message.error("请使用AI共创生成");
  8331. return;
  8332. }
  8333. let stageTasksData = copyData.tasksData;
  8334. let taskA = [];
  8335. let tasks = stageTasksData;
  8336. for (var j = 0; j < tasks.length; j++) {
  8337. taskA.push({
  8338. task: tasks[j].taskName,
  8339. taskDetail: tasks[j].taskDecs,
  8340. chapterData: [],
  8341. toolText: "",
  8342. toolChoose: [
  8343. {
  8344. tool: [],
  8345. toolDetail: "",
  8346. toolType: 0,
  8347. askCount: 1,
  8348. askTitle: "",
  8349. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8350. },
  8351. ],
  8352. isShowTools: false,
  8353. askCount: 1,
  8354. isFold: 0,
  8355. askTitle: "",
  8356. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8357. checkJson: [{ checkCount: [], checkPerent: [] }],
  8358. homeworkList: [],
  8359. });
  8360. }
  8361. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8362. this.$forceUpdate();
  8363. },
  8364. pasteStage() {
  8365. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8366. if (!iframe) {
  8367. this.$message.error("请使用AI共创生成");
  8368. return;
  8369. }
  8370. let copyData = iframe.contentWindow.copyData;
  8371. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  8372. this.$message.error("请使用AI共创生成");
  8373. return;
  8374. }
  8375. let stageData = copyData.stageData;
  8376. let stage = [];
  8377. for (var i = 0; i < stageData.length; i++) {
  8378. stage.push({
  8379. dyName: stageData[i], //单元标题
  8380. chapterInfo: [
  8381. {
  8382. isread: false,
  8383. chapterid: this.guid(),
  8384. title: "",
  8385. courseName: "",
  8386. taskJson: [
  8387. {
  8388. task: "",
  8389. taskDetail: "",
  8390. chapterData: [],
  8391. toolText: "",
  8392. toolChoose: [
  8393. {
  8394. tool: [],
  8395. toolDetail: "",
  8396. toolType: 0,
  8397. askCount: 1,
  8398. askTitle: "",
  8399. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8400. },
  8401. ],
  8402. isShowTools: false,
  8403. askCount: 1,
  8404. isFold: 0,
  8405. askTitle: "",
  8406. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8407. checkJson: [{ checkCount: [], checkPerent: [] }],
  8408. homeworkList: [],
  8409. },
  8410. ],
  8411. itemCount: 1,
  8412. fileList1: [],
  8413. video: [],
  8414. testData: [],
  8415. pData: [],
  8416. templateArray: [],
  8417. },
  8418. ],
  8419. });
  8420. }
  8421. let _this = this;
  8422. _this
  8423. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  8424. confirmButtonText: "确定",
  8425. cancelButtonText: "取消",
  8426. type: "warning",
  8427. })
  8428. .then(() => {
  8429. _this.unitIndex = 0;
  8430. _this.unitJson = stage;
  8431. _this.steps++;
  8432. _this.updateWork();
  8433. })
  8434. .catch(() => {
  8435. return;
  8436. });
  8437. },
  8438. addAnswer() {
  8439. if (this.answerQ == "") {
  8440. this.$message.error("请输入您想要问的问题");
  8441. return;
  8442. }
  8443. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8444. this.taskCount
  8445. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8446. this.dialogVisible8 = false;
  8447. if (
  8448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8449. .toolChoose[this.toolIndex].tool != 15
  8450. ) {
  8451. this.addTools(15, this.taskCount, this.toolIndex);
  8452. }
  8453. },
  8454. addMp3Answer() {
  8455. if (this.answerQ == "") {
  8456. this.$message.error("请输入您想要回答的问题");
  8457. return;
  8458. }
  8459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8460. this.taskCount
  8461. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8462. this.dialogVisibleMp3 = false;
  8463. },
  8464. addRateAnswer() {
  8465. var a = 1;
  8466. for (var i = 0; i < this.rateJson.length; i++) {
  8467. if (this.rateJson[i].value == "") {
  8468. a = 2;
  8469. break;
  8470. }
  8471. }
  8472. if (a == 2) {
  8473. this.$message.error("请把评价信息填写完整");
  8474. return;
  8475. }
  8476. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8477. this.taskCount
  8478. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8479. this.dialogVisibleRate = false;
  8480. if (
  8481. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8482. .toolChoose[this.toolIndex].tool != 40
  8483. ) {
  8484. this.addTools(40, this.taskCount, this.toolIndex);
  8485. }
  8486. },
  8487. addSelectAnswer() {
  8488. if (this.selectJson.url == "") {
  8489. this.$message.error("请上传题目");
  8490. return;
  8491. }
  8492. if (!this.selectJson.select.length) {
  8493. this.$message.error("请添加选项");
  8494. return;
  8495. }
  8496. if (!this.selectJson.answer.length) {
  8497. this.$message.error("请设置答案");
  8498. return;
  8499. }
  8500. var a = 1;
  8501. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8502. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8503. a = 2;
  8504. }
  8505. }
  8506. if (a == 2) {
  8507. this.$message.error("请设置答案");
  8508. return;
  8509. }
  8510. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8511. this.taskCount
  8512. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8513. this.dialogVisibleSelect = false;
  8514. if (
  8515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8516. .toolChoose[this.toolIndex].tool != 41
  8517. ) {
  8518. this.addTools(41, this.taskCount, this.toolIndex);
  8519. }
  8520. },
  8521. nextSelectSteps() {
  8522. if (this.selectJson.url == "") {
  8523. this.$message.error("请上传题目");
  8524. return;
  8525. }
  8526. if (!this.selectJson.select.length) {
  8527. this.$message.error("请添加选项");
  8528. return;
  8529. } else {
  8530. for (var z = 0; z < this.selectJson.select.length; z++) {
  8531. let checkC = this.selectJson.select[z];
  8532. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8533. let checkC2 = this.selectJson.select[z2];
  8534. if (checkC == checkC2) {
  8535. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8536. return;
  8537. }
  8538. }
  8539. }
  8540. }
  8541. var a = 1;
  8542. for (var i = 0; i < this.selectJson.select.length; i++) {
  8543. if (!this.selectJson.select[i]) {
  8544. a = 2;
  8545. }
  8546. }
  8547. if (a == 2) {
  8548. this.$message.error("添加的选项不能为空");
  8549. return;
  8550. }
  8551. this.selectSteps++;
  8552. },
  8553. selectCourseDetail() {
  8554. if (this.cid == "" || this.cid == undefined) {
  8555. console.log("这是新增课程");
  8556. this.selectAllType();
  8557. } else {
  8558. this.cidType = 1;
  8559. let params = {
  8560. cid: this.cid,
  8561. };
  8562. this.ajax
  8563. .get(this.$store.state.api + "select_course_detail", params)
  8564. .then((res) => {
  8565. this.loading = true;
  8566. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8567. for (var j = 0; j < this.unitJson.length; j++) {
  8568. for (
  8569. var k = 0;
  8570. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8571. k++
  8572. ) {
  8573. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8574. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8575. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8576. : [];
  8577. let _chapterData = [];
  8578. for (
  8579. var c = 0;
  8580. c <
  8581. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8582. .length;
  8583. c++
  8584. ) {
  8585. if (
  8586. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8587. ) {
  8588. _chapterData.push(
  8589. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8590. );
  8591. }
  8592. }
  8593. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8594. _chapterData;
  8595. }
  8596. }
  8597. this.$forceUpdate();
  8598. this.courseName = res.data[0][0].title;
  8599. this.courseText = res.data[0][0].brief;
  8600. this.evalua = res.data[0][0].evaId;
  8601. this.cover = JSON.parse(res.data[0][0].cover);
  8602. this.noneBtnImg = this.cover.length >= 1;
  8603. // this.checkboxList =
  8604. // res.data[0][0].course_student.length > 0
  8605. // ? JSON.parse(res.data[0][0].course_student)
  8606. // : [];
  8607. this.checkboxList2 = res.data[0][0].juri
  8608. ? res.data[0][0].juri.split(",")
  8609. : [];
  8610. this.inviteCode = [];
  8611. for (var i = 0; i < res.data[2].length; i++) {
  8612. this.inviteCode.push({
  8613. cid: res.data[2][i].classid,
  8614. ic: res.data[2][i].code,
  8615. });
  8616. }
  8617. this.checkboxList3 = res.data[0][0].course_teacher
  8618. ? res.data[0][0].course_teacher.split(",")
  8619. : [];
  8620. // this.isTeacherSee =
  8621. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8622. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8623. this.myWord = res.data[0][0].template;
  8624. this.templateC.id = "123";
  8625. this.courseUserid = res.data[0][0].userid;
  8626. // if(this.courseUserid == this.userid){
  8627. // this.InviteChange(this.checkboxList2)
  8628. // }
  8629. this.nbOrder = res.data[0][0].ordernumber;
  8630. this.courseTypeId = [];
  8631. for (var i = 0; i < res.data[1].length; i++) {
  8632. this.courseTypeId.push(res.data[1][i].typeid);
  8633. }
  8634. console.log(this.courseTypeId);
  8635. // if (this.timer) clearInterval(this.timer);
  8636. if (this.timer) clearTimeout(this.timer);
  8637. this.timer = null;
  8638. // this.timer = setInterval(() => {
  8639. // this.seleteCourseUpdate();
  8640. this.setMan();
  8641. this.selectAllType();
  8642. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8643. // }, 5000);
  8644. this.$forceUpdate();
  8645. setTimeout(() => {
  8646. this.checkEva(this.evalua);
  8647. }, 0);
  8648. })
  8649. .catch((err) => {
  8650. console.error(err);
  8651. });
  8652. }
  8653. },
  8654. seleteCourseUpdate() {
  8655. let params = {
  8656. cid: this.cid,
  8657. };
  8658. this.ajax
  8659. .get(this.$store.state.api + "select_course_detail", params)
  8660. .then((res) => {
  8661. // console.log(this.unitJson);
  8662. let unitJson = JSON.parse(res.data[0][0].chapters);
  8663. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8664. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8665. let _unitJson = [];
  8666. let _chapAarry = [];
  8667. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8668. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8669. let index = 1;
  8670. let chapindex;
  8671. if (_unitJson2.length > unitJson.length) {
  8672. for (let c = 0; c < _unitJson2.length; c++) {
  8673. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8674. }
  8675. for (let j = 0; j < unitJson.length; j++) {
  8676. let count = 0;
  8677. for (let k = 0; k < _unitJson2.length; k++) {
  8678. if (
  8679. unitJson[j].chapterInfo[0].chapterid ==
  8680. _unitJson2[k].chapterInfo[0].chapterid
  8681. ) {
  8682. count++;
  8683. _chapAarry.splice(
  8684. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8685. 1
  8686. );
  8687. _unitJson.push(unitJson[j]);
  8688. break;
  8689. }
  8690. }
  8691. // if(count === 0){
  8692. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8693. // }
  8694. }
  8695. for (let k = 0; k < _unitJson2.length; k++) {
  8696. if (_unitJson2[k].isUpdate == 1) {
  8697. _chapAarry.splice(
  8698. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8699. 1
  8700. );
  8701. _unitJson.push(_unitJson2[k]);
  8702. }
  8703. }
  8704. console.log(_chapAarry);
  8705. for (let d = 0; d < _unitJson2.length; d++) {
  8706. if (
  8707. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8708. ) {
  8709. if (_unitIndex == d) {
  8710. index = 2;
  8711. }
  8712. chapindex = d;
  8713. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8714. }
  8715. }
  8716. } else {
  8717. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8718. }
  8719. for (let i = 0; i < unitJson.length; i++) {
  8720. if (
  8721. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8722. _unitJson[i].chapterInfo[0].chapterid !=
  8723. unitJson[i].chapterInfo[0].chapterid
  8724. ) {
  8725. if (i == _unitJson.length - 1) {
  8726. // this.unitIndex++
  8727. _unitIndex2++;
  8728. }
  8729. _unitJson.splice(i, 0, unitJson[i]);
  8730. } else if (i > _unitJson.length - 1) {
  8731. _unitJson.push(unitJson[i]);
  8732. } else if (
  8733. _unitJson[i].chapterInfo[0].chapterid ==
  8734. unitJson[i].chapterInfo[0].chapterid
  8735. ) {
  8736. _unitJson[i] = unitJson[i];
  8737. }
  8738. // if (i == _unitIndex) {
  8739. // continue;
  8740. // } else
  8741. }
  8742. if (_chapAarry.length && index != 2) {
  8743. if (chapindex < _unitIndex) {
  8744. this.isDelete = 2;
  8745. // this.unitIndex--;
  8746. _unitIndex2--;
  8747. } else if (
  8748. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8749. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8750. ) {
  8751. this.isDelete = 2;
  8752. for (let n = 0; n < _unitJson.length; n++) {
  8753. if (
  8754. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8755. _unitJson[n].chapterInfo[0].chapterid
  8756. ) {
  8757. // this.unitIndex = n;
  8758. _unitIndex2 = n;
  8759. _unitJson[n] = _unitJson2[_unitIndex];
  8760. break;
  8761. }
  8762. }
  8763. }
  8764. } else if (index != 2) {
  8765. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8766. _unitJson2[_unitIndex];
  8767. for (
  8768. var ci = 0;
  8769. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8770. ci++
  8771. ) {
  8772. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8773. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8774. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8775. .toolChoose
  8776. : [];
  8777. let _chapterData = [];
  8778. for (
  8779. var c = 0;
  8780. c <
  8781. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8782. .length;
  8783. c++
  8784. ) {
  8785. if (
  8786. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8787. .chapterData[c]
  8788. ) {
  8789. _chapterData.push(
  8790. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8791. .chapterData[c]
  8792. );
  8793. }
  8794. }
  8795. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8796. _chapterData;
  8797. }
  8798. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8799. }
  8800. if (index == 1) {
  8801. this.unitJson = _unitJson;
  8802. this.$forceUpdate();
  8803. setTimeout(() => {
  8804. if (this.unitIndex != _unitIndex2) {
  8805. this.isDelete = 2;
  8806. this.unitIndex = _unitIndex2;
  8807. }
  8808. }, 0);
  8809. this.timer = setTimeout(() => {
  8810. this.seleteCourseUpdate();
  8811. }, 1000);
  8812. } else if (index == 2) {
  8813. let _this = this;
  8814. _this
  8815. .$confirm(
  8816. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8817. "提示",
  8818. {
  8819. confirmButtonText: "需要",
  8820. cancelButtonText: "取消",
  8821. type: "warning",
  8822. }
  8823. )
  8824. .then(() => {
  8825. if (_this.time()) {
  8826. _this.restoreWork(
  8827. _chapAarry[0],
  8828. _unitJson,
  8829. chapindex,
  8830. _unitJson2,
  8831. _unitIndex2
  8832. );
  8833. }
  8834. })
  8835. .catch(() => {
  8836. _this.unitJson = _unitJson;
  8837. _this.$forceUpdate();
  8838. setTimeout(() => {
  8839. if (this.unitIndex != _unitIndex2) {
  8840. this.isDelete = 2;
  8841. this.unitIndex = _unitIndex2;
  8842. }
  8843. }, 0);
  8844. _this.timer = setTimeout(() => {
  8845. _this.seleteCourseUpdate();
  8846. }, 1000);
  8847. });
  8848. }
  8849. })
  8850. .catch((err) => {
  8851. console.error(err);
  8852. });
  8853. },
  8854. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8855. let params = [
  8856. {
  8857. cid: this.cid,
  8858. chapters: JSON.stringify(this.unitJson),
  8859. uid: this.userid,
  8860. chapid: chapid,
  8861. },
  8862. ];
  8863. this.ajax
  8864. .post(this.$store.state.api + "restoreWork", params)
  8865. .then((res) => {
  8866. this.$message({
  8867. message: "恢复成功",
  8868. type: "success",
  8869. });
  8870. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8871. this.unitJson = unitJson;
  8872. this.$forceUpdate();
  8873. setTimeout(() => {
  8874. if (this.unitIndex != unitIndex2) {
  8875. this.isDelete = 2;
  8876. this.unitIndex = unitIndex2;
  8877. }
  8878. }, 0);
  8879. this.timer = setTimeout(() => {
  8880. this.seleteCourseUpdate();
  8881. }, 1000);
  8882. })
  8883. .catch((err) => {
  8884. this.$message.error("网络不佳");
  8885. console.error(err);
  8886. });
  8887. },
  8888. getTypeName() {
  8889. console.log(this.courseTypeId);
  8890. this.$forceUpdate();
  8891. },
  8892. selectAllType() {
  8893. let params = {
  8894. org: this.org && this.org != "" ? this.org : "",
  8895. oid: this.oid && this.oid != "" ? this.oid : "",
  8896. };
  8897. this.ajax
  8898. .get(this.$store.state.api + "selectAllType", params)
  8899. .then((res) => {
  8900. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8901. res.data[0] = [...res.data[0], ...res.data[4]]
  8902. }
  8903. this.CourseType = res.data;
  8904. this.CourseType2 = [
  8905. { name: "智见课程", id: [] },
  8906. { name: "智行课程", id: [] },
  8907. { name: "智创课程", id: [] },
  8908. ];
  8909. for (var cti = 0; cti < res.data[0].length; cti++) {
  8910. if (
  8911. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  8912. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  8913. ) {
  8914. this.CourseType2[0].id.push(res.data[0][cti].id);
  8915. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  8916. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8917. this.CourseType2[1].id.push(res.data[0][cti].id);
  8918. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8919. this.CourseType2[2].id.push(res.data[0][cti].id);
  8920. }
  8921. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  8922. res.data[0][cti].name = "年级";
  8923. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8924. res.data[0][cti].name = "学科";
  8925. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8926. res.data[0][cti].name = "主题";
  8927. }
  8928. }
  8929. let _courseTypeId = [];
  8930. for (var i = 0; i < res.data[0].length; i++) {
  8931. if (!this.cid) {
  8932. this.courseTypeId[res.data[0][i].id] = [];
  8933. }
  8934. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8935. // }
  8936. this.CourseTypeJson[res.data[0][i].id] = [];
  8937. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8938. if (res.data[0][i].name == "栏目") {
  8939. this.CourseType[0][i].name = "主题";
  8940. }
  8941. }
  8942. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8943. for (var j = 0; j < res.data[1].length; j++) {
  8944. if (
  8945. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8946. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8947. ) {
  8948. _courseTypeId.push(res.data[1][j].id);
  8949. }
  8950. if (res.data[0][i].id == res.data[1][j].pid) {
  8951. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8952. }
  8953. }
  8954. } else {
  8955. if (res.data[2].length > 0) {
  8956. for (var j = 0; j < res.data[2].length; j++) {
  8957. if (
  8958. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8959. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8960. ) {
  8961. _courseTypeId.push(res.data[2][j].id);
  8962. }
  8963. if (res.data[0][i].id == res.data[2][j].pid) {
  8964. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8965. }
  8966. }
  8967. }
  8968. if (res.data[3].length > 0) {
  8969. for (var j = 0; j < res.data[3].length; j++) {
  8970. if (
  8971. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8972. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8973. ) {
  8974. _courseTypeId.push(res.data[3][j].id);
  8975. }
  8976. if (res.data[0][i].id == res.data[3][j].pid) {
  8977. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8978. }
  8979. }
  8980. }
  8981. }
  8982. }
  8983. this.courseTypeId = _courseTypeId;
  8984. })
  8985. .catch((err) => {
  8986. console.error(err);
  8987. });
  8988. },
  8989. selectType() {
  8990. this.ajax
  8991. .get(this.$store.state.api + "selectType")
  8992. .then((res) => {
  8993. this.CourseType = res.data;
  8994. for (var i = 0; i < res.data[0].length; i++) {
  8995. if (!this.cid) {
  8996. this.courseTypeId[res.data[0][i].id] = "";
  8997. }
  8998. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8999. if (res.data[0][i].name == "栏目") {
  9000. this.CourseType[0][i].name = "主题";
  9001. }
  9002. }
  9003. for (var j = 0; j < res.data[1].length; j++) {
  9004. if (res.data[0][i].id == res.data[1][j].pid) {
  9005. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9006. this.CourseTypeJson[res.data[0][i].id] = [];
  9007. }
  9008. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9009. }
  9010. }
  9011. }
  9012. this.selectTypeByOid();
  9013. this.selectTypeByOrg();
  9014. })
  9015. .catch((err) => {
  9016. console.error(err);
  9017. });
  9018. },
  9019. selectTypeByOid() {
  9020. let params = {
  9021. oid: this.oid,
  9022. };
  9023. this.ajax
  9024. .get(this.$store.state.api + "selectTypeByOid", params)
  9025. .then((res) => {
  9026. for (var i = 0; i < res.data[0].length; i++) {
  9027. for (var j = 0; j < res.data[1].length; j++) {
  9028. if (res.data[0][i].id == res.data[1][j].pid) {
  9029. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9030. this.CourseTypeJson[res.data[0][i].id] = [];
  9031. }
  9032. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9033. }
  9034. }
  9035. }
  9036. })
  9037. .catch((err) => {
  9038. console.error(err);
  9039. });
  9040. },
  9041. selectTypeByOrg() {
  9042. let params = {
  9043. oid: this.org,
  9044. };
  9045. this.ajax
  9046. .get(this.$store.state.api + "selectTypeByOrg", params)
  9047. .then((res) => {
  9048. for (var i = 0; i < res.data[0].length; i++) {
  9049. for (var j = 0; j < res.data[1].length; j++) {
  9050. if (res.data[0][i].id == res.data[1][j].pid) {
  9051. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9052. this.CourseTypeJson[res.data[0][i].id] = [];
  9053. }
  9054. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9055. }
  9056. }
  9057. }
  9058. this.$forceUpdate();
  9059. })
  9060. .catch((err) => {
  9061. console.error(err);
  9062. });
  9063. },
  9064. OtherMb(type) {
  9065. this.typeMode = type;
  9066. setTimeout(() => {
  9067. this.checkEva(this.checkId);
  9068. }, 0);
  9069. },
  9070. openMember() {
  9071. this.searchTN = "";
  9072. this.getTeacher();
  9073. this.dialogVisibleMember = true;
  9074. },
  9075. checkEva(id, type) {
  9076. this.dialogVisiblemb = false;
  9077. this.selectEva();
  9078. if (this.evalua != id && type == 2) {
  9079. this.$message.success("导入成功");
  9080. }
  9081. this.evalua = id;
  9082. this.checkId = id;
  9083. if (this.evalua != "") {
  9084. for (var i = 0; i < this.evaJuri.length; i++) {
  9085. if (this.evalua == this.evaJuri[i].id) {
  9086. this.eTitle = this.evaJuri[i].title;
  9087. this.eJson = JSON.parse(this.evaJuri[i].content);
  9088. }
  9089. }
  9090. this.data.data = [];
  9091. this.$forceUpdate();
  9092. setTimeout(() => {
  9093. this.setMindData();
  9094. }, 500);
  9095. }
  9096. },
  9097. deleteEva() {
  9098. let _this = this;
  9099. if (_this.evalua == "") {
  9100. this.$message.warning("内容已经清空了,请勿重复清空");
  9101. return;
  9102. }
  9103. _this
  9104. .$confirm("确定删除此目标吗?", "提示", {
  9105. confirmButtonText: "确定",
  9106. cancelButtonText: "取消",
  9107. type: "warning",
  9108. })
  9109. .then(() => {
  9110. _this.evalua = "";
  9111. _this.checkId = "";
  9112. _this.eTitle = "";
  9113. let _unitJson = _this.unitJson;
  9114. for (var i = 0; i < _unitJson.length; i++) {
  9115. let _task = _unitJson[i].chapterInfo[0].taskJson;
  9116. for (var j = 0; j < _task.length; j++) {
  9117. let _eList = _task[j].eList;
  9118. for (var k = 0; k < _eList.length; k++) {
  9119. delete _eList[k].target;
  9120. }
  9121. }
  9122. }
  9123. _this.$forceUpdate();
  9124. if (_this.cid) {
  9125. _this.updateWork();
  9126. }
  9127. })
  9128. .catch(() => {
  9129. return;
  9130. });
  9131. },
  9132. selectEva() {
  9133. let params = {
  9134. oid: this.oid,
  9135. };
  9136. this.ajax
  9137. .get(this.$store.state.api + "selectAllEvaluation", params)
  9138. .then((res) => {
  9139. this.evaJuri = res.data[0];
  9140. })
  9141. .catch((err) => {
  9142. console.error(err);
  9143. });
  9144. },
  9145. setMindData() {
  9146. let targetArray = [];
  9147. this.data.data = [];
  9148. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9149. let _eJson = Object.keys(this.eJson);
  9150. let _e = this.eJson;
  9151. for (let i = 0; i < _eJson.length; i++) {
  9152. let element = _e[_eJson[i]];
  9153. this.data.data.push({
  9154. id: element.id,
  9155. parentid: "root",
  9156. topic: element.name,
  9157. });
  9158. // targetArray.push({
  9159. // id: element.id,
  9160. // parentid: "root",
  9161. // name: element.name,
  9162. // });
  9163. targetArray.push({
  9164. value: element.name,
  9165. label: element.name,
  9166. children: [],
  9167. });
  9168. let _eJsonc = Object.keys(element.child);
  9169. let _e2 = element.child;
  9170. for (let j = 0; j < _eJsonc.length; j++) {
  9171. let _ec = _e2[_eJsonc[j]];
  9172. this.data.data.push({
  9173. id: _ec.id,
  9174. parentid: element.id,
  9175. topic: _ec.name,
  9176. });
  9177. // targetArray.push({
  9178. // id: _ec.id,
  9179. // parentid: element.id,
  9180. // name: _ec.name,
  9181. // });
  9182. targetArray[i].children.push({
  9183. value: _ec.name,
  9184. label: _ec.name,
  9185. children: [],
  9186. });
  9187. let _eJsonz = Object.keys(_ec.child);
  9188. let _e3 = _ec.child;
  9189. for (let z = 0; z < _eJsonz.length; z++) {
  9190. let _ez = _e3[_eJsonz[z]];
  9191. this.data.data.push({
  9192. id: _ez.id,
  9193. parentid: _ec.id,
  9194. topic: _ez.name,
  9195. });
  9196. // targetArray.push({
  9197. // id: _ez.id,
  9198. // parentid: _ec.id,
  9199. // name: _ez.name,
  9200. // });
  9201. targetArray[i].children[j].children.push({
  9202. value: _ez.name,
  9203. label: _ez.name,
  9204. });
  9205. }
  9206. }
  9207. }
  9208. this.targetArray = targetArray;
  9209. this.$forceUpdate();
  9210. },
  9211. /*添加评价 */
  9212. addEList(index, tIndex) {
  9213. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9214. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9215. value: "",
  9216. detail: "",
  9217. score: 5,
  9218. })
  9219. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9220. { value: "", detail: "", score: 5 },
  9221. ]);
  9222. this.$forceUpdate();
  9223. },
  9224. forceUpdate() {
  9225. this.$forceUpdate();
  9226. },
  9227. deletEList(index, tIndex, eIndex) {
  9228. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9229. eIndex,
  9230. 1
  9231. );
  9232. this.$forceUpdate();
  9233. },
  9234. getChoosePic(t) {
  9235. this.chooseType = t;
  9236. this.getAllBanner();
  9237. },
  9238. getAllBanner() {
  9239. this.sysPicVisible = true;
  9240. let params = {
  9241. t: this.chooseType,
  9242. };
  9243. this.ajax
  9244. .get(this.$store.state.api + "selectAllBanner", params)
  9245. .then((res) => {
  9246. this.sysPic = res.data[0];
  9247. })
  9248. .catch((err) => {
  9249. console.error(err);
  9250. });
  9251. },
  9252. // getClass() {
  9253. // let params = {
  9254. // oid: this.oid,
  9255. // };
  9256. // this.ajax
  9257. // .get(this.$store.state.api + "selectClassBySchool", params)
  9258. // .then((res) => {
  9259. // this.classJuri = res.data[0];
  9260. // })
  9261. // .catch((err) => {
  9262. // console.error(err);
  9263. // });
  9264. // },
  9265. deleteSysPic() {
  9266. this.cover = [];
  9267. this.isSysPic = false;
  9268. this.isSysPic2 = false;
  9269. },
  9270. deleteSelectPic() {
  9271. this.selectJson.url = "";
  9272. },
  9273. setEListStar() {
  9274. this.$forceUpdate();
  9275. },
  9276. deletRateList(i) {
  9277. this.rateJson.splice(i, 1);
  9278. },
  9279. addRateList() {
  9280. this.rateJson.push({ detail: "", score: 5, value: "" });
  9281. },
  9282. addSt() {
  9283. this.sentenceList.push({
  9284. sentenceTitle: "",
  9285. addSentence: [],
  9286. rightAnswer: [],
  9287. });
  9288. },
  9289. addSen(i) {
  9290. if (!this.sentenceList[i].sentenceTitle) {
  9291. this.$message.error("请填写卡片内容!");
  9292. return;
  9293. }
  9294. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9295. this.$message.error("卡片内容字数不能超过10位");
  9296. return;
  9297. }
  9298. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9299. this.$message.error("不能添加重复的卡片内容!");
  9300. return;
  9301. }
  9302. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9303. // this.isPushTitleList.push(this.sentenceTitle);
  9304. this.sentenceList[i].sentenceTitle = "";
  9305. },
  9306. setRightAnswer(s, i, j) {
  9307. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9308. this.sentenceList[i].rightAnswer.push(s);
  9309. }
  9310. },
  9311. returnCard(r, i, j) {
  9312. this.sentenceList[i].rightAnswer.splice(j, 1);
  9313. },
  9314. addSentenceTool() {
  9315. for (var i = 0; i < this.sentenceList.length; i++) {
  9316. if (this.sentenceList[i].rightAnswer.length == 0) {
  9317. this.$message.error(`请将题目${i + 1}设置完整。`);
  9318. return;
  9319. }
  9320. if (
  9321. this.sentenceList[i].addSentence.length !=
  9322. this.sentenceList[i].rightAnswer.length
  9323. ) {
  9324. this.$message.error(`请将题目${i + 1}设置完整。`);
  9325. return;
  9326. }
  9327. }
  9328. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9329. this.taskCount
  9330. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9331. this.sentenceList = [
  9332. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9333. ];
  9334. this.dialogVisibleSentence = false;
  9335. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9336. // itemTaskIndex
  9337. // ].toolChoose[toolIndex].tool = [];
  9338. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9339. // itemTaskIndex
  9340. // ].toolChoose[toolIndex].tool.push(i);
  9341. if (
  9342. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9343. .toolChoose[this.toolIndex].tool != 47
  9344. ) {
  9345. this.addTools(47, this.taskCount, this.toolIndex);
  9346. }
  9347. },
  9348. addTableJson() {
  9349. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9350. // this.$message.error("请将信息填写完整!");
  9351. // return;
  9352. // }
  9353. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9354. this.taskCount
  9355. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9356. // this.tableJson = [{ text: "" }];
  9357. // this.dialogVisibleTable = false;
  9358. this.$message.success("上传成功");
  9359. if (
  9360. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9361. .toolChoose[this.toolIndex].tool != 48
  9362. ) {
  9363. this.addTools(48, this.taskCount, this.toolIndex);
  9364. }
  9365. },
  9366. addWordJson() {
  9367. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9368. this.taskCount
  9369. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9370. // this.wordJson = [{ text: "" }];
  9371. // this.dialogVisibleWord = false;
  9372. this.$message.success("上传成功");
  9373. if (
  9374. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9375. .toolChoose[this.toolIndex].tool != 52
  9376. ) {
  9377. this.addTools(52, this.taskCount, this.toolIndex);
  9378. }
  9379. },
  9380. addMoreUpload() {
  9381. if (this.uploadJson.length == 0) {
  9382. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9383. this.taskCount
  9384. ].toolChoose[this.toolIndex].uploadJson = [];
  9385. } else {
  9386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9387. this.taskCount
  9388. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9389. }
  9390. this.uploadJson = [];
  9391. this.dialogVisibleMoreUpload = false;
  9392. if (
  9393. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9394. .toolChoose[this.toolIndex].tool != 50
  9395. ) {
  9396. this.addTools(50, this.taskCount, this.toolIndex);
  9397. }
  9398. },
  9399. addPreTime() {
  9400. if (this.preTime == 0) {
  9401. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9402. this.taskCount
  9403. ].toolChoose[this.toolIndex].preTime = 0;
  9404. } else {
  9405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9406. this.taskCount
  9407. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9408. }
  9409. this.preTime = 0;
  9410. this.dialogVisiblePreTime = false;
  9411. if (
  9412. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9413. .toolChoose[this.toolIndex].tool != 10
  9414. ) {
  9415. this.addTools(10, this.taskCount, this.toolIndex);
  9416. }
  9417. },
  9418. goToTask(i) {
  9419. this.toolIndexType = ''
  9420. if (this.isClickColor == (i + 1)) {
  9421. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9422. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9423. } else {
  9424. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9425. }
  9426. this.$forceUpdate();
  9427. return;
  9428. }
  9429. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9430. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9431. } else {
  9432. document.querySelectorAll(".rightBox")[0].scrollTop =
  9433. document.querySelectorAll(".taskBorder")[i + 1].offsetTop +
  9434. document.querySelectorAll(".taskBorder")[i + 1].parentElement.parentElement.offsetTop;
  9435. this.isClickColor = i + 1;
  9436. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9437. }
  9438. this.$forceUpdate();
  9439. },
  9440. taskMove(type, index) {
  9441. // this
  9442. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  9443. // confirmButtonText: "确定",
  9444. // cancelButtonText: "取消",
  9445. // type: "warning",
  9446. // })
  9447. // .then(() => {
  9448. if (type == 1) {
  9449. if (index > 0) {
  9450. let a = JSON.parse(
  9451. JSON.stringify(
  9452. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  9453. )
  9454. );
  9455. let b = JSON.parse(
  9456. JSON.stringify(
  9457. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  9458. )
  9459. );
  9460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9461. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9462. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9463. if (index - 1 == 0) {
  9464. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9465. index - 1
  9466. ].chapterData = a.chapterData;
  9467. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9468. index
  9469. ].chapterData = b.chapterData;
  9470. }
  9471. }
  9472. } else {
  9473. if (
  9474. index <
  9475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9476. ) {
  9477. let a = JSON.parse(
  9478. JSON.stringify(
  9479. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  9480. )
  9481. );
  9482. let b = JSON.parse(
  9483. JSON.stringify(
  9484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  9485. )
  9486. );
  9487. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9488. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9490. if (index == 0) {
  9491. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9492. index + 1
  9493. ].chapterData = a.chapterData;
  9494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9495. index
  9496. ].chapterData = b.chapterData;
  9497. }
  9498. }
  9499. }
  9500. this.$forceUpdate();
  9501. // })
  9502. // .catch(() => {
  9503. // return;
  9504. // })
  9505. },
  9506. addGroup(i) {
  9507. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9508. this.groupJson.group.push({
  9509. name: "第" + (this.groupJson.group.length + 1) + "组",
  9510. });
  9511. },
  9512. deleteGroup(i) {
  9513. this.groupJson.group.splice(i, 1);
  9514. },
  9515. numberPan() {
  9516. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9517. this.$message.error('请输入2-10的数字')
  9518. this.groupJson.number = ''
  9519. }
  9520. },
  9521. addGroupJson() {
  9522. for (var i = 0; i < this.groupJson.group.length; i++) {
  9523. if (!this.groupJson.group[i].name) {
  9524. this.$message.error("请将信息填写完整!");
  9525. return;
  9526. }
  9527. }
  9528. if (!this.groupJson.number) {
  9529. this.$message.error("请将信息填写完整!");
  9530. return;
  9531. }
  9532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9533. this.taskCount
  9534. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9535. JSON.stringify(this.groupJson)
  9536. );
  9537. this.dialogVisibleGroup = false;
  9538. this.groupJson = {};
  9539. if (
  9540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9541. .toolChoose[this.toolIndex].tool != 49
  9542. ) {
  9543. this.addTools(49, this.taskCount, this.toolIndex);
  9544. }
  9545. },
  9546. updateTime(preTime) {
  9547. this.preTime = preTime;
  9548. },
  9549. InviteChange(val) {
  9550. console.log(val);
  9551. let _check = []
  9552. let _check2 = []
  9553. for (var i = 0; i < this.grade2.length; i++) {
  9554. var gid = this.grade2[i].id
  9555. _check.push(gid)
  9556. }
  9557. for (var i = 0; i < this.checkboxList2.length; i++) {
  9558. var _id = this.checkboxList2[i]
  9559. if (_check.indexOf(_id) !== -1) {
  9560. _check2.push(_id)
  9561. }
  9562. }
  9563. this.checkAll = _check2.length === _check.length;
  9564. return;
  9565. let array = JSON.parse(JSON.stringify(val));
  9566. this.inviteCode = this.inviteCode.filter((el) => {
  9567. if (val.indexOf(el.cid) != -1) {
  9568. array.splice(array.indexOf(el.cid), 1);
  9569. return el;
  9570. }
  9571. });
  9572. for (var i = 0; i < array.length; i++) {
  9573. this.getInviteCode(array[i]);
  9574. }
  9575. },
  9576. handleCheckAllChange(val) {
  9577. if (val) {
  9578. for (var i = 0; i < this.grade2.length; i++) {
  9579. var gid = this.grade2[i].id
  9580. if (this.checkboxList2.indexOf(gid) === -1) {
  9581. this.checkboxList2.push(gid)
  9582. }
  9583. }
  9584. } else {
  9585. let _check = []
  9586. let _check2 = []
  9587. for (var i = 0; i < this.grade2.length; i++) {
  9588. var gid = this.grade2[i].id
  9589. _check.push(gid)
  9590. }
  9591. for (var i = 0; i < this.checkboxList2.length; i++) {
  9592. var _id = this.checkboxList2[i]
  9593. if (_check.indexOf(_id) === -1) {
  9594. _check2.push(_id)
  9595. }
  9596. }
  9597. this.checkboxList2 = _check2
  9598. }
  9599. this.isIndeterminate = false;
  9600. },
  9601. async getInviteCode(cid) {
  9602. let code = this.randomNumber();
  9603. let params = {
  9604. code: code,
  9605. oid: this.oid,
  9606. };
  9607. let type = 1;
  9608. for (var i = 0; i < this.inviteCode.length; i++) {
  9609. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9610. type = 2;
  9611. }
  9612. }
  9613. if (type == 2) {
  9614. this.getInviteCode(cid);
  9615. return;
  9616. }
  9617. const res = await this.ajax.get(
  9618. this.$store.state.api + "selectInviteCode2",
  9619. params
  9620. );
  9621. if (
  9622. res.data.length &&
  9623. res.data[0].length &&
  9624. res.data[0][0].courseId != this.cid
  9625. ) {
  9626. this.getInviteCode(cid);
  9627. return;
  9628. }
  9629. let array = [];
  9630. for (var i = 0; i < this.inviteCode.length; i++) {
  9631. array.push(this.inviteCode[i].cid);
  9632. }
  9633. if (array.indexOf(cid) != -1) {
  9634. this.inviteCode[array.indexOf(cid)].ic = code;
  9635. } else {
  9636. this.inviteCode.push({ cid: cid, ic: code });
  9637. }
  9638. },
  9639. OpenInviteD(cid) {
  9640. let array = [];
  9641. this.icode = "";
  9642. for (var i = 0; i < this.inviteCode.length; i++) {
  9643. array.push(this.inviteCode[i].cid);
  9644. }
  9645. if (array.indexOf(cid) != -1) {
  9646. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9647. }
  9648. this.inviteId = cid;
  9649. this.dialogVisibleInvite = true;
  9650. },
  9651. addInvite() {
  9652. let reg = /^[A-Za-z0-9]{4,}$/;
  9653. if (!reg.test(this.icode)) {
  9654. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9655. return;
  9656. }
  9657. let type = 1;
  9658. for (var i = 0; i < this.inviteCode.length; i++) {
  9659. if (
  9660. this.inviteCode[i].cid != this.inviteId &&
  9661. this.icode == this.inviteCode[i].ic
  9662. ) {
  9663. type = 2;
  9664. }
  9665. }
  9666. if (type == 2) {
  9667. this.$message.error("已有此随机码,不能重复");
  9668. return;
  9669. }
  9670. let params = {
  9671. code: this.icode,
  9672. oid: this.oid,
  9673. };
  9674. this.ajax
  9675. .get(this.$store.state.api + "selectInviteCode", params)
  9676. .then((res) => {
  9677. if (
  9678. res.data.length &&
  9679. res.data[0].length &&
  9680. res.data[0][0].courseId != this.cid
  9681. ) {
  9682. this.$message.error("已有此随机码,不能重复");
  9683. return;
  9684. }
  9685. let array = [];
  9686. for (var i = 0; i < this.inviteCode.length; i++) {
  9687. array.push(this.inviteCode[i].cid);
  9688. }
  9689. if (array.indexOf(this.inviteId) != -1) {
  9690. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9691. } else {
  9692. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9693. }
  9694. this.icode = "";
  9695. this.dialogVisibleInvite = false;
  9696. })
  9697. .catch((err) => {
  9698. console.error(err);
  9699. });
  9700. },
  9701. randomNumber() {
  9702. // 随机生成两位数
  9703. // let num = Math.floor(Math.random() * 900) + 100;
  9704. // 生成 0 到 99 之间的随机整数
  9705. const randomNumber = Math.floor(Math.random() * 100);
  9706. // 如果随机数小于 10,补上前导零
  9707. const num =
  9708. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9709. // 随机生成两个大写字母
  9710. let letters = "";
  9711. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9712. for (let i = 0; i < 3; i++) {
  9713. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9714. }
  9715. // 随机生成两位数字和字母的组合
  9716. let mix = "";
  9717. let chars =
  9718. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9719. for (let i = 0; i < 3; i++) {
  9720. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9721. mix += char;
  9722. }
  9723. // 随机选择一种类型
  9724. let type = Math.floor(Math.random() * 3);
  9725. return num;
  9726. // 根据类型输出结果
  9727. switch (type) {
  9728. case 0:
  9729. console.log(num); // 输出两位数
  9730. return num;
  9731. case 1:
  9732. console.log(letters); // 输出两个大写字母
  9733. return letters;
  9734. case 2:
  9735. console.log(mix); // 输出两位数字和字母的组合
  9736. return mix;
  9737. }
  9738. },
  9739. getPaste() {
  9740. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9741. if (!iframe) {
  9742. return;
  9743. }
  9744. let copyData = iframe.contentWindow.copyData;
  9745. // if (copyData && copyData.stageData && copyData.stageData.length) {
  9746. // this.isPasteStage = true
  9747. // }
  9748. if (copyData && copyData.selectData.length) {
  9749. this.isPasteChoice = true
  9750. }
  9751. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9752. this.isPasteTask = true
  9753. }
  9754. },
  9755. searchImage() {
  9756. var _this = this;
  9757. _this.imageList = []
  9758. if (!_this.searchImageValue) {
  9759. _this.sysPicVisible2 = true
  9760. return
  9761. }
  9762. _this.imageloading = true
  9763. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9764. page: _this.ppage,
  9765. pagesize: 9,
  9766. query: _this.searchImageValue
  9767. }).then(function (response) {
  9768. // console.log(response.data.data);
  9769. var data = response.data.FunctionResponse.result;
  9770. for (var i = 0; i < data.length; i++) {
  9771. _this.imageList.push({ url: data[i].thumbnail })
  9772. }
  9773. _this.imageloading = false
  9774. }).catch(function (error) {
  9775. console.log(error);
  9776. });
  9777. _this.sysPicVisible2 = true
  9778. },
  9779. changePicture() {
  9780. this.ppage++
  9781. this.searchImage()
  9782. },
  9783. resetImage() {
  9784. this.ppage = 1
  9785. this.searchImage()
  9786. },
  9787. jumpGj(i, j) {
  9788. if ((i + 1) != this.isClickColor) {
  9789. this.isClickColor = (i + 1)
  9790. }
  9791. var a = document.scrollingElement;
  9792. this.toolIndexType = `gj${i}${j}`
  9793. let target = document.querySelector(`#gj${i}${j}`);
  9794. if (target) {
  9795. target.scrollIntoView(true);
  9796. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  9797. // setTimeout(() => {
  9798. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  9799. // }, 0);
  9800. }
  9801. },
  9802. dragStart(val, i, j) {
  9803. this.taskCount = j
  9804. this.oldIndex = i;
  9805. this.oldData = val;
  9806. },
  9807. dragOver(i, j) {
  9808. this.typeIndex = "chapter-" + j + '-' + i
  9809. this.newIndex = i;
  9810. },
  9811. dragEnd() {
  9812. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9813. // 删除老的节点
  9814. newItems.splice(this.oldIndex, 1);
  9815. // 在列表中目标位置增加新的节点
  9816. newItems.splice(this.newIndex, 0, this.oldData);
  9817. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9818. this.newIndex = "";
  9819. this.typeIndex = "";
  9820. this.$forceUpdate()
  9821. },
  9822. dragTaskStart(val, i) {
  9823. this.oldIndex = i;
  9824. this.oldData = val;
  9825. },
  9826. dragTaskOver(i) {
  9827. this.typeIndex = "task-" + i
  9828. this.newIndex = i;
  9829. },
  9830. dragTaskEnd() {
  9831. if (this.newIndex == this.oldIndex) {
  9832. this.typeIndex = "";
  9833. this.newIndex = "";
  9834. return;
  9835. }
  9836. this.$confirm(
  9837. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9838. "提示",
  9839. {
  9840. confirmButtonText: "确定",
  9841. cancelButtonText: "取消",
  9842. type: "warning",
  9843. }
  9844. )
  9845. .then(() => {
  9846. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9847. let chapterData = []
  9848. if (this.oldIndex == 0) {
  9849. chapterData = newItems[this.oldIndex].chapterData
  9850. newItems[this.oldIndex].chapterData = []
  9851. }else if(this.newIndex == 0){
  9852. chapterData = newItems[this.newIndex].chapterData
  9853. newItems[this.oldIndex].chapterData = []
  9854. }
  9855. // 删除老的节点
  9856. newItems.splice(this.oldIndex, 1);
  9857. // 在列表中目标位置增加新的节点
  9858. newItems.splice(this.newIndex, 0, this.oldData);
  9859. if (this.oldIndex == 0 || this.newIndex == 0) {
  9860. newItems[0].chapterData = chapterData
  9861. }
  9862. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  9863. this.typeIndex = "";
  9864. this.newIndex = "";
  9865. this.$forceUpdate()
  9866. })
  9867. .catch(() => {
  9868. this.typeIndex = "";
  9869. this.newIndex = "";
  9870. return;
  9871. });
  9872. },
  9873. },
  9874. beforeDestroy() {
  9875. clearTimeout(this.timer);
  9876. this.timer = null;
  9877. clearInterval(this.timer2);
  9878. this.timer2 = null;
  9879. clearInterval(this.pasteTimer);
  9880. this.pasteTimer = null;
  9881. },
  9882. beforeRouteLeave(to, from, next) {
  9883. clearTimeout(this.timer);
  9884. this.timer = null;
  9885. clearInterval(this.timer2);
  9886. this.timer2 = null;
  9887. clearInterval(this.pasteTimer);
  9888. this.pasteTimer = null;
  9889. next();
  9890. },
  9891. created() {
  9892. this.getStudent();
  9893. this.getTeacher();
  9894. this.getClass();
  9895. this.selectGrage();
  9896. this.getTemplate();
  9897. // this.selectType();
  9898. this.selectEva();
  9899. this.loading = false;
  9900. this.timer2 = setInterval(() => {
  9901. this.selectEva();
  9902. }, 5000);
  9903. this.pasteTimer = setInterval(() => {
  9904. this.getPaste();
  9905. }, 1000);
  9906. setTimeout(() => {
  9907. this.selectCourseDetail();
  9908. }, 500);
  9909. },
  9910. mounted() {
  9911. this.$nextTick(() => {
  9912. //监听这个dom的scroll事件
  9913. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  9914. this.heightPx = $(".rightBox")[0].offsetHeight + 'px'
  9915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  9916. this.$forceUpdate();
  9917. });
  9918. },
  9919. };
  9920. </script>
  9921. <style scoped>
  9922. @media screen and (max-width: 1280px) {
  9923. .mbCss {
  9924. flex-direction: column !important;
  9925. }
  9926. .pjCss {
  9927. width: 100% !important;
  9928. }
  9929. .evaCss {
  9930. width: 100% !important;
  9931. }
  9932. }
  9933. .dialog_diy>>>.el-dialog__header {
  9934. background: #3c3c3c !important;
  9935. padding: 15px 20px;
  9936. }
  9937. .dialog_diy>>>.el-dialog__title {
  9938. color: #fff;
  9939. }
  9940. .dialog_diy>>>.el-dialog__headerbtn {
  9941. top: 19px;
  9942. }
  9943. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  9944. color: #fff;
  9945. }
  9946. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  9947. color: #fff;
  9948. }
  9949. .dialog_diy>>>.el-dialog__body,
  9950. .dialog_diy>>>.el-dialog__footer {
  9951. background: #fafafa;
  9952. }
  9953. .dialog_diy3>>>.el-dialog__body,
  9954. .dialog_diy3>>>.el-dialog__footer {
  9955. background: #eee !important;
  9956. }
  9957. .dialog_diy3>>>.el-dialog__body {
  9958. padding: 20px 20px;
  9959. }
  9960. .source_diy>>>.el-dialog {
  9961. height: 100% !important;
  9962. margin: 0 auto !important;
  9963. }
  9964. .source_diy>>>.el-dialog__body {
  9965. height: calc(100% - 185px);
  9966. overflow: auto;
  9967. background: #e6eaf0;
  9968. }
  9969. .source_diy>>>.el-dialog__footer {
  9970. background: #e6eaf0 !important;
  9971. }
  9972. .left {
  9973. border-right: 1px solid rgb(60, 94, 143);
  9974. display: flex;
  9975. flex-direction: column;
  9976. align-items: center;
  9977. min-height: 600px;
  9978. width: 385px;
  9979. height: 80%;
  9980. }
  9981. .tips {
  9982. color: rgb(128, 128, 128);
  9983. font-size: 12px;
  9984. width: 270px;
  9985. margin: 40px;
  9986. }
  9987. .pb_content {
  9988. height: 100% !important;
  9989. /* margin: 0 20px 0 20px; */
  9990. }
  9991. .pb_content_body {
  9992. width: 100% !important;
  9993. height: 100%;
  9994. }
  9995. .info_solid {
  9996. width: 270px;
  9997. height: 30px;
  9998. border-left: 1px solid #bdbdbd;
  9999. margin: 10px 0px 10px 30px;
  10000. }
  10001. .info_steps {
  10002. width: 270px;
  10003. font-size: 0.875rem;
  10004. display: flex;
  10005. align-items: center;
  10006. }
  10007. .info_steps span:nth-child(1) {
  10008. width: 30px;
  10009. height: 30px;
  10010. background: rgba(0, 0, 0, 0.38);
  10011. display: block;
  10012. color: #fff;
  10013. border-radius: 40px;
  10014. text-align: center;
  10015. line-height: 30px;
  10016. }
  10017. .steps_active {
  10018. background: #3d67bc !important;
  10019. }
  10020. .info_steps span:nth-child(2) {
  10021. margin-left: 5px;
  10022. }
  10023. .right {
  10024. height: 100%;
  10025. width: calc(100% - 40px);
  10026. display: flex;
  10027. overflow: hidden;
  10028. margin: 0 auto;
  10029. }
  10030. .basic_box {
  10031. margin: 0 auto;
  10032. position: relative;
  10033. padding: 0 20px 0 20px;
  10034. }
  10035. .basic_box2 {
  10036. position: relative;
  10037. width: calc(100% - 300px);
  10038. }
  10039. .basic_box_success {
  10040. width: 100%;
  10041. height: 100%;
  10042. padding: 50px 0;
  10043. position: relative;
  10044. text-align: center;
  10045. /* border-bottom: 1px solid #bfbfbf; */
  10046. box-sizing: border-box;
  10047. display: flex;
  10048. align-items: center;
  10049. flex-direction: column;
  10050. justify-content: center;
  10051. }
  10052. .info_title {
  10053. font-size: 1.5em;
  10054. margin-right: 25px;
  10055. /* margin: 20px 30px 20px 30px; */
  10056. }
  10057. .bInfo_title {
  10058. text-align: left;
  10059. margin: 10px 0;
  10060. }
  10061. .small_title {
  10062. font-size: 14px;
  10063. line-height: 40px;
  10064. }
  10065. .chapter_beizhu {
  10066. font-size: 12px;
  10067. font-weight: bold;
  10068. float: right;
  10069. color: rgb(128, 128, 128);
  10070. margin-top: 5px;
  10071. }
  10072. .chapter_uploadBox1 {
  10073. text-align: left;
  10074. background-color: rgb(242, 242, 242);
  10075. width: 100%;
  10076. height: 67px;
  10077. padding: 0px 15px;
  10078. border-radius: 8px;
  10079. overflow: hidden;
  10080. font-size: 16px;
  10081. box-sizing: border-box;
  10082. position: relative;
  10083. }
  10084. .chapter_add {
  10085. width: 100%;
  10086. height: 32px;
  10087. margin-top: 15px;
  10088. cursor: pointer;
  10089. }
  10090. .chapter_add_l {
  10091. margin-left: 5px;
  10092. width: 30px;
  10093. height: 30px;
  10094. float: left;
  10095. border: 1px solid #aaa;
  10096. color: #aaa;
  10097. border-radius: 50%;
  10098. font-size: 25px;
  10099. text-align: center;
  10100. }
  10101. .chapter_add_r {
  10102. font-size: 18px;
  10103. height: 40px;
  10104. line-height: 30px;
  10105. text-indent: 10px;
  10106. color: #aaa;
  10107. }
  10108. .chapter_add_r span {
  10109. font-size: 12px;
  10110. color: rgb(204, 204, 204);
  10111. }
  10112. .chapter_add_input {
  10113. display: none;
  10114. }
  10115. .line {
  10116. width: 85%;
  10117. margin: 0 auto;
  10118. border-top: 1px solid #e5e5e5;
  10119. margin-top: 20px;
  10120. }
  10121. .info_btnBox {
  10122. width: calc(100%);
  10123. display: flex;
  10124. justify-content: center;
  10125. height: 70px;
  10126. align-items: center;
  10127. background: #fff;
  10128. margin: 0 auto;
  10129. border-top: 2px solid rgb(228, 232, 237);
  10130. box-sizing: border-box;
  10131. border-radius: 0px 0 5px 5px;
  10132. }
  10133. .info_btnBox2 {
  10134. width: calc(100%);
  10135. display: flex;
  10136. justify-content: center;
  10137. height: 20px;
  10138. align-items: center;
  10139. background: #fff;
  10140. margin: 0 auto;
  10141. border-top: 2px solid rgb(228, 232, 237);
  10142. box-sizing: border-box;
  10143. overflow: hidden;
  10144. cursor: pointer;
  10145. }
  10146. .info_btnBox3 {
  10147. width: calc(100%);
  10148. display: flex;
  10149. justify-content: flex-end;
  10150. padding: 0 20px;
  10151. height: 60px;
  10152. align-items: center;
  10153. background: unset;
  10154. margin: 0 auto;
  10155. /* border-top: 1px solid rgb(228, 232, 237); */
  10156. box-sizing: border-box;
  10157. overflow: hidden;
  10158. cursor: pointer;
  10159. background: #fff;
  10160. border-radius: 10px;
  10161. }
  10162. .info_btn+.info_btn {
  10163. margin-left: 15px;
  10164. }
  10165. .info_btn,
  10166. .teacherWord {
  10167. color: #fff;
  10168. background-color: #0f7eff;
  10169. padding: 8px 24px;
  10170. font-size: 0.9375rem;
  10171. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10172. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10173. min-width: 64px;
  10174. font-weight: 500;
  10175. border-radius: 4px;
  10176. box-sizing: border-box;
  10177. border: none;
  10178. cursor: pointer;
  10179. }
  10180. .teacherWord {
  10181. width: 105px !important;
  10182. text-align: center !important;
  10183. line-height: 36px !important;
  10184. padding: 0 !important;
  10185. font-size: 14px !important;
  10186. margin: 10px 0 !important;
  10187. }
  10188. .wordTeacher {
  10189. display: flex;
  10190. flex-direction: column;
  10191. width: 20%;
  10192. text-align: center;
  10193. font-size: 14px;
  10194. margin: 30px 30px 0 10px;
  10195. background: #fff;
  10196. position: relative;
  10197. border-radius: 5px;
  10198. padding: 25px 0px;
  10199. }
  10200. .wordPic {
  10201. margin: 0 auto;
  10202. width: 60px;
  10203. height: 60px;
  10204. cursor: pointer;
  10205. }
  10206. .deleteWord {
  10207. width: 22px;
  10208. height: 22px;
  10209. position: absolute;
  10210. right: 5px;
  10211. top: -15px;
  10212. cursor: pointer;
  10213. display: none;
  10214. z-index: 999;
  10215. }
  10216. .wordPic>img,
  10217. .deleteWord>img,
  10218. .addToolImg>img {
  10219. width: 100%;
  10220. height: 100%;
  10221. }
  10222. .info_btn:hover {
  10223. background-color: #4f7cd5 !important;
  10224. }
  10225. .cru_selectBox {
  10226. display: flex;
  10227. margin: 24px 0 10px;
  10228. flex-wrap: nowrap;
  10229. white-space: nowrap;
  10230. overflow: auto;
  10231. position: relative;
  10232. height: 47px;
  10233. }
  10234. .cru_selectBox::-webkit-scrollbar {
  10235. /*滚动条整体样式*/
  10236. width: 6px;
  10237. /*高宽分别对应横竖滚动条的尺寸*/
  10238. height: 6px;
  10239. }
  10240. /*定义滚动条轨道 内阴影+圆角*/
  10241. .cru_selectBox::-webkit-scrollbar-track {
  10242. border-radius: 10px;
  10243. background-color: #eee;
  10244. }
  10245. /*定义滑块 内阴影+圆角*/
  10246. .cru_selectBox::-webkit-scrollbar-thumb {
  10247. border-radius: 10px;
  10248. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10249. background-color: rgba(0, 0, 0, 0.1);
  10250. }
  10251. .cru_line {
  10252. position: absolute;
  10253. bottom: 0px;
  10254. transition: all 0.5s;
  10255. left: 0px;
  10256. width: 125px;
  10257. margin-left: -25px;
  10258. }
  10259. .cru_select {
  10260. font-size: 21px;
  10261. margin-right: 37px;
  10262. margin-left: 5px;
  10263. cursor: pointer;
  10264. color: #a6a6a6;
  10265. }
  10266. .cru_selected {
  10267. color: #0b7fc2 !important;
  10268. }
  10269. .chapter_contentbox {
  10270. display: flex;
  10271. align-items: center;
  10272. margin-top: 15px;
  10273. }
  10274. .chapter_contentbox .cc_title {
  10275. margin: 0px;
  10276. color: black;
  10277. display: block;
  10278. white-space: nowrap;
  10279. overflow: hidden;
  10280. text-overflow: ellipsis;
  10281. margin-right: 20px;
  10282. font-size: 18px;
  10283. height: 20px;
  10284. line-height: 22px;
  10285. min-width: fit-content;
  10286. display: flex;
  10287. }
  10288. .chapter_contentbox .cc_title::before {
  10289. content: '';
  10290. height: 100%;
  10291. width: 3px;
  10292. background: #3681FC;
  10293. border-radius: 3px;
  10294. opacity: 1;
  10295. display: block;
  10296. margin-right: 10px;
  10297. }
  10298. .chapter_contentbox .cc_input {
  10299. width: 100%;
  10300. display: flex;
  10301. }
  10302. .show_taskD {
  10303. min-width: fit-content;
  10304. margin-left: 10px;
  10305. display: flex;
  10306. align-items: center;
  10307. font-size: 14px;
  10308. cursor: pointer;
  10309. color: #717C8D;
  10310. }
  10311. .show_taskD>img {
  10312. width: 15px;
  10313. margin-right: 5px;
  10314. transition: .2s all;
  10315. transform: rotate(-90deg);
  10316. }
  10317. .show_taskD.show>img {
  10318. transform: rotate(0deg);
  10319. }
  10320. .show_toolD {
  10321. min-width: fit-content;
  10322. margin-left: 10px;
  10323. display: flex;
  10324. align-items: center;
  10325. font-size: 14px;
  10326. cursor: pointer;
  10327. color: #717C8D;
  10328. /* position: absolute;
  10329. right: 45px;
  10330. top: 5px; */
  10331. }
  10332. .show_toolD>img {
  10333. width: 15px;
  10334. margin-right: 5px;
  10335. transition: .2s all;
  10336. transform: rotate(-90deg);
  10337. }
  10338. .show_toolD.show>img {
  10339. transform: rotate(0deg);
  10340. }
  10341. .remove {
  10342. background-image: url("../../../assets/icon/new/delete_u.png");
  10343. cursor: pointer;
  10344. opacity: 0.5;
  10345. width: 30px;
  10346. min-width: 30px;
  10347. height: 30px;
  10348. background-size: 100% 100%;
  10349. background-repeat: no-repeat;
  10350. margin-left: 10px;
  10351. }
  10352. .remove1 {
  10353. background-image: url("../../../assets/remove1.png");
  10354. background-repeat: no-repeat;
  10355. background-position: 5px 10px;
  10356. width: 40px;
  10357. height: 50px;
  10358. cursor: pointer;
  10359. margin-left: 10px;
  10360. }
  10361. .binfo_input {
  10362. width: 100%;
  10363. margin: 0;
  10364. padding: 12px 14px;
  10365. display: block;
  10366. min-width: 0;
  10367. outline: none;
  10368. box-sizing: border-box;
  10369. background: none;
  10370. border: none;
  10371. border-radius: 4px;
  10372. background: #fff;
  10373. font-size: 16px;
  10374. resize: none;
  10375. font-family: 'Microsoft YaHei';
  10376. min-height: 48px;
  10377. border: 1.5px solid #CAD1DC;
  10378. }
  10379. .binfo_textarea {
  10380. border: 1.5px solid #CAD1DC;
  10381. font-size: 16px;
  10382. resize: none;
  10383. background: #f6f6f6;
  10384. font-family: 'Microsoft YaHei';
  10385. }
  10386. .binfo_input:focus-visible {
  10387. border: 1.5px solid #3681FC !important;
  10388. }
  10389. .time {
  10390. display: flex;
  10391. margin: 35px 0 80px 0;
  10392. }
  10393. .chapter_btnbox {
  10394. width: 160px;
  10395. border-radius: 5px;
  10396. border: 2px dashed gray;
  10397. display: flex;
  10398. padding: 8px 50px;
  10399. align-items: center;
  10400. justify-content: center;
  10401. margin: 30px auto 0;
  10402. cursor: pointer;
  10403. }
  10404. .icon_add {
  10405. position: relative;
  10406. width: 24px;
  10407. padding-top: 20px;
  10408. border-radius: 100%;
  10409. border-width: 2px;
  10410. border-style: solid;
  10411. border-color: gray;
  10412. }
  10413. .icon_add i:nth-child(1) {
  10414. position: absolute;
  10415. left: 50%;
  10416. top: 50%;
  10417. height: 60%;
  10418. transform: translate(-50%, -50%);
  10419. border-width: 1px;
  10420. border-style: solid;
  10421. border-color: inherit;
  10422. }
  10423. .icon_add i:nth-child(2) {
  10424. position: absolute;
  10425. top: 50%;
  10426. left: 50%;
  10427. width: 60%;
  10428. transform: translate(-50%, -50%);
  10429. border-width: 1px;
  10430. border-style: solid;
  10431. border-color: inherit;
  10432. }
  10433. .chapter_btn_w {
  10434. font-size: 0.9375rem;
  10435. font-weight: bold;
  10436. color: gray;
  10437. margin-left: 20px;
  10438. }
  10439. .disUoloadSty>>>.el-icon-plus {
  10440. display: none !important;
  10441. /* 上传按钮隐藏 */
  10442. }
  10443. .imgLeft {
  10444. margin: 15px 0;
  10445. }
  10446. .add_info_box {
  10447. margin: 0 0 0 auto;
  10448. display: flex;
  10449. flex-wrap: wrap;
  10450. }
  10451. .add_info_box button {
  10452. margin: 0 5px 10px 0;
  10453. }
  10454. .add_info_box2 {
  10455. display: flex;
  10456. align-items: center;
  10457. flex-wrap: wrap;
  10458. }
  10459. .add_info_box2::after {
  10460. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10461. color: red;
  10462. font-size: 14px;
  10463. margin-bottom: 10px;
  10464. }
  10465. .add_chapters_box {
  10466. text-align: left;
  10467. background-color: #fff;
  10468. width: 100%;
  10469. border-radius: 4px;
  10470. font-size: 16px;
  10471. box-sizing: border-box;
  10472. position: relative;
  10473. padding: 0 15px;
  10474. height: auto;
  10475. overflow-y: auto;
  10476. overflow-x: hidden;
  10477. border: 1px solid #CAD1DC;
  10478. }
  10479. .add_chapters_box.add_c_none {
  10480. display: flex;
  10481. justify-content: center;
  10482. align-items: center;
  10483. padding: 15px;
  10484. }
  10485. .add_c_none>img {
  10486. width: 25px;
  10487. }
  10488. .add_chapters_box.add_c_none>span {
  10489. font-size: 14px;
  10490. font-weight: 400;
  10491. margin: 0 0 5px 5px;
  10492. }
  10493. .homework_box {
  10494. display: flex;
  10495. align-items: flex-start;
  10496. flex-wrap: wrap;
  10497. margin: 15px 0 0 0;
  10498. flex-direction: column;
  10499. align-content: flex-start;
  10500. }
  10501. .course_homework {
  10502. display: flex;
  10503. justify-content: center;
  10504. flex-direction: row;
  10505. align-items: center;
  10506. margin: 0 10px 0 0;
  10507. }
  10508. .course_homework>>>.el-input__inner {
  10509. width: 140px;
  10510. margin-left: 15px;
  10511. }
  10512. .chapter_upload_move {
  10513. position: relative;
  10514. background-color: #fff;
  10515. position: absolute;
  10516. width: 100%;
  10517. top: 0px;
  10518. left: 0px;
  10519. border: 1px solid #eee;
  10520. border-radius: 5px;
  10521. transition: width 2s;
  10522. -moz-transition: width 2s;
  10523. -webkit-transition: width 2s;
  10524. -o-transition: width 2s;
  10525. }
  10526. .chapter_upload_l_i {
  10527. background-image: url("../../../assets/icon.png");
  10528. background-position: 3px -165px;
  10529. width: 30px;
  10530. height: 30px;
  10531. margin: 10px auto 0 auto;
  10532. }
  10533. .course_input_box {
  10534. display: flex;
  10535. margin-right: 20px;
  10536. width: 100%;
  10537. align-items: center;
  10538. position: relative;
  10539. }
  10540. .course_input_box>.binfo_input {
  10541. width: calc(100% - 0 - 200px - 20px);
  10542. margin: 0 10px;
  10543. }
  10544. .bb_courseIcon {
  10545. width: 57px;
  10546. height: 45px;
  10547. background: #F0F4FA;
  10548. border-radius: 5px 0px 0px 5px;
  10549. display: flex;
  10550. align-items: center;
  10551. justify-content: center;
  10552. border-right: 1.5px solid rgb(202, 209, 220);
  10553. box-sizing: border-box;
  10554. position: absolute;
  10555. left: 1.5px
  10556. }
  10557. .bb_courseIcon>img {
  10558. width: 25px;
  10559. height: auto
  10560. }
  10561. .big_box {
  10562. /* margin-top: 20px; */
  10563. display: flex;
  10564. justify-content: space-between;
  10565. /* border-bottom: 1px solid #E0E2ED; */
  10566. }
  10567. .left_first {
  10568. display: flex;
  10569. flex-direction: column;
  10570. flex-wrap: nowrap;
  10571. width: calc(100% - 310px);
  10572. padding: 20px;
  10573. box-sizing: border-box;
  10574. background: #fff;
  10575. border-radius: 5px;
  10576. }
  10577. .right_first {
  10578. width: 300px;
  10579. display: flex;
  10580. align-items: center;
  10581. justify-content: center;
  10582. /* border-left: 1px solid #E0E2ED; */
  10583. box-sizing: border-box;
  10584. padding: 20px;
  10585. flex-direction: column;
  10586. background: #fff;
  10587. border-radius: 5px;
  10588. }
  10589. .ai_box {
  10590. width: 204px;
  10591. display: flex;
  10592. justify-content: flex-end;
  10593. margin-bottom: 15px;
  10594. }
  10595. .ai_content {
  10596. display: flex;
  10597. align-items: center;
  10598. font-size: 14px;
  10599. padding: 7px 20px;
  10600. box-sizing: border-box;
  10601. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10602. border-radius: 12px;
  10603. font-weight: 700;
  10604. cursor: pointer;
  10605. }
  10606. .ai_content>img {
  10607. width: 40px;
  10608. margin-right: 5px;
  10609. }
  10610. .c_info_title {
  10611. padding: 15px 0 15px 0;
  10612. font-size: 16px;
  10613. font-weight: bold;
  10614. margin: 0 0 0 20px;
  10615. box-sizing: border-box;
  10616. display: flex;
  10617. align-items: center;
  10618. line-height: 20px;
  10619. }
  10620. .c_info_title::before {
  10621. content: '';
  10622. display: block;
  10623. width: 3px;
  10624. height: 20px;
  10625. background: #0061FF;
  10626. border-radius: 3px;
  10627. margin: 0 5px 0 0;
  10628. }
  10629. .right_title {
  10630. /* height: 30px; */
  10631. padding: 0 20px;
  10632. font-size: 18px;
  10633. font-weight: bold;
  10634. /* color: #0f7eff; */
  10635. margin: 20px auto 0;
  10636. display: flex;
  10637. /* justify-content: space-between; */
  10638. align-items: center;
  10639. }
  10640. .people {
  10641. border: 1px solid rgb(229 229 229);
  10642. height: 495px;
  10643. border-radius: 5px;
  10644. width: 100%;
  10645. overflow: auto;
  10646. }
  10647. .people_top {
  10648. display: flex;
  10649. width: 100%;
  10650. /* justify-content: space-between; */
  10651. /* align-items: center; */
  10652. flex-direction: column;
  10653. padding: 10px 10px 0;
  10654. box-sizing: border-box;
  10655. }
  10656. .people_nav,
  10657. .people_top_right {
  10658. /* padding: 20px 0 0 20px; */
  10659. }
  10660. .people_top_right {
  10661. height: 40px;
  10662. margin-bottom: 10px;
  10663. }
  10664. .people_search {
  10665. display: flex;
  10666. position: relative;
  10667. }
  10668. .people_search>>>.el-input__inner {
  10669. /* height: 25px; */
  10670. width: 95%;
  10671. }
  10672. .search_img {
  10673. width: 20px;
  10674. height: 20px;
  10675. position: absolute;
  10676. right: 30px;
  10677. top: 50%;
  10678. transform: translateY(-50%);
  10679. }
  10680. .search_img>img {
  10681. width: 100%;
  10682. height: 100%;
  10683. }
  10684. .people_name {
  10685. display: flex;
  10686. justify-content: flex-start;
  10687. padding: 20px 10px;
  10688. flex-direction: column;
  10689. flex-wrap: wrap;
  10690. }
  10691. .p_box {
  10692. position: relative;
  10693. }
  10694. .people_name>>>.el-checkbox {
  10695. width: 100%;
  10696. display: flex;
  10697. align-items: center;
  10698. margin-bottom: 10px;
  10699. }
  10700. .people_name>>>.el-checkbox__label {
  10701. text-overflow: ellipsis;
  10702. overflow: hidden;
  10703. width: calc(100%);
  10704. }
  10705. .people_name2>>>.el-checkbox__label {
  10706. width: calc(100% - 130px);
  10707. }
  10708. .inviteCode {
  10709. position: absolute;
  10710. right: 30px;
  10711. color: #237ade;
  10712. top: 0;
  10713. cursor: pointer;
  10714. font-size: 13px;
  10715. }
  10716. .noneInvite {
  10717. color: #a8a8a8;
  10718. }
  10719. .inviteImg {
  10720. position: absolute;
  10721. right: 5px;
  10722. top: 0;
  10723. width: 20px;
  10724. }
  10725. .right_img {
  10726. width: 150px;
  10727. height: 150px;
  10728. margin: 20px auto;
  10729. }
  10730. .right_img>img {
  10731. width: 100%;
  10732. height: 100%;
  10733. }
  10734. .number {
  10735. margin-top: 20px;
  10736. color: #4aa6ff;
  10737. text-decoration: underline;
  10738. }
  10739. .success_button {
  10740. display: flex;
  10741. text-align: center;
  10742. margin: 5% 0 auto;
  10743. flex-direction: row;
  10744. justify-content: center;
  10745. }
  10746. .look_course {
  10747. margin-right: 40px;
  10748. background: #3d67bc;
  10749. width: 200px;
  10750. height: 35px;
  10751. line-height: 35px;
  10752. color: #fff;
  10753. text-align: center;
  10754. font-size: 14px;
  10755. border-radius: 5px;
  10756. cursor: pointer;
  10757. }
  10758. .attend_others {
  10759. width: 250px;
  10760. background: #4fb13c;
  10761. height: 35px;
  10762. line-height: 35px;
  10763. color: #fff;
  10764. text-align: center;
  10765. font-size: 14px;
  10766. border-radius: 5px;
  10767. cursor: pointer;
  10768. }
  10769. .dialog_diy2>>>.el-dialog__body {
  10770. text-align: center;
  10771. }
  10772. .write_togother {
  10773. position: absolute;
  10774. right: 45px;
  10775. display: flex;
  10776. top: 5%;
  10777. }
  10778. .write_people {
  10779. font-size: 14px;
  10780. line-height: 50px;
  10781. padding-right: 10px;
  10782. }
  10783. .end_write {
  10784. background: #3d67bc;
  10785. color: #fff;
  10786. width: 100px;
  10787. height: 35px;
  10788. line-height: 35px;
  10789. text-align: center;
  10790. font-size: 14px;
  10791. border-radius: 5px;
  10792. cursor: pointer;
  10793. }
  10794. .chapter_upload+.chapter_upload {
  10795. /* margin-top: 15px; */
  10796. border-top: 1px solid #E7EBF1;
  10797. }
  10798. .chapter_upload {
  10799. height: 45px;
  10800. position: relative;
  10801. display: flex;
  10802. align-items: center;
  10803. width: 100%;
  10804. min-height: 45px;
  10805. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  10806. /* border-radius: 4px; */
  10807. /* overflow: hidden; */
  10808. box-sizing: border-box;
  10809. }
  10810. .chapter_upload_drag {
  10811. position: absolute;
  10812. cursor: pointer;
  10813. width: 16px;
  10814. height: 16px;
  10815. left: -9px;
  10816. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  10817. background-size: 100% 100%;
  10818. z-index: 10;
  10819. }
  10820. .chapter_upload_t {
  10821. background-color: #fff;
  10822. position: absolute;
  10823. height: 100%;
  10824. top: 0px;
  10825. left: 0px;
  10826. box-sizing: border-box;
  10827. }
  10828. .chapter_upload_o {
  10829. width: 100%;
  10830. height: 100%;
  10831. position: relative;
  10832. z-index: 1;
  10833. }
  10834. .chapter_upload_ic {
  10835. margin: 0 15px 0px auto;
  10836. display: flex;
  10837. align-items: center;
  10838. }
  10839. .chapter_upload_ic_l {
  10840. width: 50px;
  10841. height: 50px;
  10842. float: left;
  10843. }
  10844. .chapter_upload_ic_l div {
  10845. width: 30px;
  10846. height: 35px;
  10847. background: url("../../../assets/icon/icon.png");
  10848. }
  10849. .chapter_upload_ic_edit {
  10850. height: 100%;
  10851. display: flex;
  10852. align-items: center;
  10853. cursor: pointer;
  10854. margin: 0 10px 0 0;
  10855. }
  10856. .chapter_upload_ic_edit div {
  10857. width: 18px;
  10858. height: 18px;
  10859. background-image: url("../../../assets/icon/new/edit_u.png");
  10860. background-size: 100% 100%;
  10861. }
  10862. .chapter_upload_ic_r {
  10863. height: 100%;
  10864. display: flex;
  10865. align-items: center;
  10866. cursor: pointer;
  10867. }
  10868. .chapter_upload_ic_r div {
  10869. width: 18px;
  10870. height: 18px;
  10871. background-image: url("../../../assets/icon/new/delete_u.png");
  10872. background-size: 100% 100%;
  10873. }
  10874. .chapter_upload_n {
  10875. display: flex;
  10876. text-indent: 10px;
  10877. text-decoration: none;
  10878. text-overflow: ellipsis;
  10879. white-space: nowrap;
  10880. overflow: hidden;
  10881. width: 55%;
  10882. margin-left: 10px;
  10883. cursor: pointer;
  10884. margin-top: 2px;
  10885. align-items: center;
  10886. }
  10887. .chapter_upload_l_i2,
  10888. .chapter_upload_l_i3,
  10889. .chapter_upload_l_i8,
  10890. .chapter_upload_l_i6,
  10891. .chapter_upload_l_i12,
  10892. .chapter_upload_l_i14,
  10893. .chapter_upload_l_i13 {
  10894. width: 15px;
  10895. height: 15px;
  10896. background-size: 100% 100%;
  10897. }
  10898. .chapter_upload_l_i2 {
  10899. background-image: url("../../../assets/icon/new/u_word.png");
  10900. }
  10901. .chapter_upload_l_i3 {
  10902. background-image: url("../../../assets/icon/new/u_video.png");
  10903. }
  10904. .chapter_upload_l_i8 {
  10905. background-image: url("../../../assets/icon/new/u_url.png");
  10906. }
  10907. .chapter_upload_l_i14 {
  10908. background-image: url("../../../assets/icon/new/u_source.png");
  10909. }
  10910. .chapter_upload_l_i6 {
  10911. background-image: url("../../../assets/icon/new/u_picture.png");
  10912. }
  10913. .chapter_upload_l_i12 {
  10914. background-image: url("../../../assets/icon/new/u_word.png");
  10915. }
  10916. .chapter_upload_l_i13 {
  10917. background-image: url("../../../assets/icon/new/u_img.png");
  10918. }
  10919. .chapter_upload_noSee {
  10920. background-image: url("../../../assets/icon/new/u_noUpload.png");
  10921. width: 18px;
  10922. height: 18px;
  10923. background-size: 100% 100%;
  10924. display: block;
  10925. margin-right: 10px;
  10926. }
  10927. .chapter_upload_ud {
  10928. display: flex;
  10929. flex-direction: row;
  10930. justify-content: center;
  10931. margin: 0 10px 0 0;
  10932. }
  10933. .chapter_upload_ud>.chapter_upload_up {
  10934. margin-bottom: 0;
  10935. margin-right: 10px;
  10936. }
  10937. .chapter_upload_down,
  10938. .chapter_upload_up {
  10939. width: 20px;
  10940. height: 20px;
  10941. background: #e4eaf2;
  10942. cursor: pointer;
  10943. margin: 0 auto;
  10944. border-radius: 5px;
  10945. display: flex;
  10946. justify-content: center;
  10947. align-items: center;
  10948. }
  10949. .chapter_upload_up::after,
  10950. .chapter_upload_down::after {
  10951. content: '';
  10952. background-image: url('../../../assets/icon/new/downBtn.png');
  10953. width: 13px;
  10954. height: 13px;
  10955. background-size: 100% 100%;
  10956. display: block;
  10957. }
  10958. .chapter_upload_up::after {
  10959. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  10960. }
  10961. .chapter_upload_up {
  10962. margin-bottom: 5px;
  10963. }
  10964. .chapter_upload_ud2 {
  10965. display: flex;
  10966. flex-direction: row;
  10967. justify-content: center;
  10968. margin: 0 10px 0 0;
  10969. }
  10970. .chapter_upload_ud2>.chapter_upload_up2 {
  10971. margin-bottom: 0;
  10972. margin-right: 10px;
  10973. }
  10974. .chapter_upload_down2,
  10975. .chapter_upload_up2 {
  10976. cursor: pointer;
  10977. margin: 0 auto;
  10978. border-radius: 5px;
  10979. display: flex;
  10980. justify-content: center;
  10981. align-items: center;
  10982. color: #717C8D;
  10983. font-size: 14px;
  10984. }
  10985. .chapter_upload_up2{
  10986. margin-right:10px;
  10987. }
  10988. .chapter_upload_up2::before,
  10989. .chapter_upload_down2::before {
  10990. content: '';
  10991. background-image: url('../../../assets/icon/new/c_up.png');
  10992. width: 14px;
  10993. height: 14px;
  10994. background-size: 100% 100%;
  10995. display: block;
  10996. margin-right: 5px;
  10997. }
  10998. .chapter_upload_up2::before {
  10999. background-image: url('../../../assets/icon/new/c_down.png') !important;
  11000. }
  11001. .addWordStyle {
  11002. display: flex;
  11003. flex-direction: row;
  11004. justify-content: flex-start;
  11005. overflow-x: auto;
  11006. white-space: nowrap;
  11007. flex-wrap: wrap;
  11008. }
  11009. /* table 样式 */
  11010. .cont>>>table {
  11011. border-top: 1px solid #ccc;
  11012. border-left: 1px solid #ccc;
  11013. }
  11014. .cont>>>table td,
  11015. .cont>>>table th {
  11016. border-bottom: 1px solid #ccc;
  11017. border-right: 1px solid #ccc;
  11018. /* padding: 20px 5px; */
  11019. padding: 5px 10px;
  11020. max-width: 0px;
  11021. height: 30px;
  11022. vertical-align: baseline;
  11023. }
  11024. .cont>>>table th {
  11025. border-bottom: 2px solid #ccc;
  11026. text-align: center;
  11027. }
  11028. /* blockquote 样式 */
  11029. .cont>>>blockquote {
  11030. display: block;
  11031. border-left: 8px solid #d0e5f2;
  11032. padding: 5px 10px;
  11033. margin: 10px 0;
  11034. line-height: 1.4;
  11035. font-size: 100%;
  11036. background-color: #f1f1f1;
  11037. }
  11038. /* code 样式 */
  11039. .cont>>>code {
  11040. display: inline-block;
  11041. /* *display: inline; */
  11042. zoom: 1;
  11043. background-color: #f1f1f1;
  11044. border-radius: 3px;
  11045. padding: 3px 5px;
  11046. margin: 0 3px;
  11047. }
  11048. .cont>>>pre code {
  11049. display: block;
  11050. }
  11051. /* ul ol 样式 */
  11052. .cont>>>ul,
  11053. ol {
  11054. margin: 10px 0 10px 20px;
  11055. }
  11056. .wordbox {
  11057. display: flex;
  11058. flex-wrap: wrap;
  11059. cursor: pointer;
  11060. width: 100%;
  11061. }
  11062. .checkword {
  11063. width: 22px;
  11064. height: 22px;
  11065. margin: 10px auto 0;
  11066. cursor: pointer;
  11067. }
  11068. .checkword img {
  11069. width: 100%;
  11070. }
  11071. .stepBg {
  11072. display: flex;
  11073. flex-direction: column;
  11074. justify-content: space-between;
  11075. align-items: center;
  11076. background: #fff;
  11077. width: 300px;
  11078. margin: 0 25px 0 0;
  11079. }
  11080. .stepTop {
  11081. min-width: 300px;
  11082. width: 300px;
  11083. /* border-radius: 10px; */
  11084. display: flex;
  11085. flex-direction: column;
  11086. justify-content: flex-start;
  11087. align-items: center;
  11088. flex-wrap: nowrap;
  11089. background: #fff;
  11090. /* top: 18%; */
  11091. }
  11092. .stepTop>div {
  11093. height: 80px;
  11094. width: 85%;
  11095. cursor: pointer;
  11096. margin: 10px 0;
  11097. border-radius: 10px;
  11098. }
  11099. .first,
  11100. .second,
  11101. .third,
  11102. .four {
  11103. background: #4a83d0;
  11104. height: 90px;
  11105. color: #fff;
  11106. display: flex;
  11107. flex-direction: row;
  11108. align-items: center;
  11109. justify-content: center;
  11110. }
  11111. .first>div:nth-child(1),
  11112. .second>div:nth-child(1),
  11113. .third>div:nth-child(1),
  11114. .four>div:nth-child(1) {
  11115. margin: 5px 10px 0 0;
  11116. width: 2rem;
  11117. }
  11118. .firstNo,
  11119. .secondNo,
  11120. .thirdNo,
  11121. .fourNo {
  11122. background: #e7e7e7;
  11123. color: #adadad;
  11124. display: flex;
  11125. flex-direction: row;
  11126. align-items: center;
  11127. justify-content: center;
  11128. }
  11129. .firstNo>div:nth-child(1),
  11130. .secondNo>div:nth-child(1),
  11131. .thirdNo>div:nth-child(1),
  11132. .fourNo>div:nth-child(1) {
  11133. margin: 5px 10px 0 0;
  11134. width: 2rem;
  11135. }
  11136. .uploadWidth>>>.el-upload {
  11137. width: 60px;
  11138. height: 60px;
  11139. position: relative;
  11140. }
  11141. .addPeople {
  11142. background: #fa6060;
  11143. width: 150px;
  11144. height: 40px;
  11145. color: #fff;
  11146. border-radius: 5px;
  11147. text-align: center;
  11148. line-height: 40px;
  11149. font-size: 14px;
  11150. cursor: pointer;
  11151. }
  11152. .kcImg {
  11153. width: 60px;
  11154. margin-left: 10px;
  11155. }
  11156. .zyImg {
  11157. width: 55px;
  11158. margin: 0 10px;
  11159. }
  11160. .deleteZy {
  11161. width: 20px;
  11162. position: absolute;
  11163. top: 5px;
  11164. right: 5px;
  11165. cursor: pointer;
  11166. }
  11167. .kcImg>img,
  11168. .zyImg>img,
  11169. .deleteZy>img {
  11170. width: 100%;
  11171. height: 100%;
  11172. }
  11173. .zyBox {
  11174. display: flex;
  11175. flex-direction: row;
  11176. align-items: center;
  11177. background: #67d37d;
  11178. color: #fff;
  11179. width: 210px;
  11180. margin: 20px 20px 0 0;
  11181. border-radius: 10px;
  11182. height: 70px;
  11183. position: relative;
  11184. }
  11185. .upCss {
  11186. display: flex;
  11187. flex-direction: row;
  11188. justify-content: flex-start;
  11189. }
  11190. .upCss>>>.el-icon-plus {
  11191. position: none !important;
  11192. width: 200px;
  11193. height: 100px;
  11194. display: flex;
  11195. flex-wrap: nowrap;
  11196. flex-direction: column;
  11197. align-items: center;
  11198. justify-content: center;
  11199. border: 1px dashed #ccc;
  11200. min-width: 78px;
  11201. min-height: 100px;
  11202. z-index: 999;
  11203. }
  11204. .upCss>>>.el-upload-list__item-name {
  11205. width: 100px;
  11206. white-space: nowrap;
  11207. overflow: hidden;
  11208. text-overflow: ellipsis;
  11209. }
  11210. .upCss>>>.el-upload-list__item .el-icon-close {
  11211. font-size: 20px;
  11212. z-index: 9999;
  11213. }
  11214. .addStageImg {
  11215. min-width: 25px;
  11216. min-height: 25px;
  11217. width: 25px;
  11218. height: 25px;
  11219. cursor: pointer;
  11220. }
  11221. .addHW {
  11222. width: 28px;
  11223. height: 28px;
  11224. cursor: pointer;
  11225. }
  11226. .addStageImg>img,
  11227. .addHW>img {
  11228. width: 100%;
  11229. height: 100%;
  11230. }
  11231. .addNewPP>>>.el-dialog__body {
  11232. padding: 5px 20px;
  11233. }
  11234. .addNewPP>>>.el-dialog {
  11235. margin-top: 5vh !important;
  11236. }
  11237. .addNewPP2>>>.el-dialog__body {
  11238. padding: 5px 0;
  11239. }
  11240. .addNewPP2>>>.el-dialog {
  11241. margin-top: 5vh !important;
  11242. }
  11243. .isHeight {
  11244. height: 680px;
  11245. }
  11246. .toolChoose {
  11247. display: flex;
  11248. /* width: 100%; */
  11249. flex-direction: row;
  11250. flex-wrap: wrap;
  11251. }
  11252. .tool,
  11253. .isToolChoose {
  11254. display: flex;
  11255. flex-direction: column;
  11256. flex-wrap: nowrap;
  11257. width: fit-content;
  11258. margin: 10px 0 10px 0;
  11259. align-items: center;
  11260. border: 2px solid #dbdbdb00;
  11261. padding: 10px 20px;
  11262. border-radius: 5px;
  11263. cursor: pointer;
  11264. /* box-shadow: 0 0 2px 0px #dedede; */
  11265. position: relative;
  11266. box-sizing: border-box;
  11267. }
  11268. .tool:hover {
  11269. border: 2px solid #a5c7ff;
  11270. }
  11271. .tool:hover>.noCTool {
  11272. display: block;
  11273. opacity: 0.5;
  11274. }
  11275. .isToolChoose {
  11276. border: 2px solid #438aff !important;
  11277. box-shadow: 0 0 2px 0px #438aff;
  11278. opacity: 1 !important;
  11279. }
  11280. .isCTool,
  11281. .noCTool {
  11282. width: 30px;
  11283. height: 30px;
  11284. position: absolute;
  11285. top: -4px;
  11286. right: -4px;
  11287. }
  11288. .noCTool {
  11289. display: none;
  11290. }
  11291. .isCTool>img,
  11292. .noCTool>img {
  11293. width: 100%;
  11294. height: 100%;
  11295. }
  11296. .tool+.tool {
  11297. margin-right: 10px;
  11298. }
  11299. .whiteBIcon {
  11300. width: 80px;
  11301. cursor: pointer;
  11302. display: flex;
  11303. flex-direction: column;
  11304. flex-wrap: nowrap;
  11305. align-items: center;
  11306. font-size: 14px;
  11307. }
  11308. .whiteBIcon>img,
  11309. .toolIcon>img,
  11310. .arrow>img {
  11311. width: 100%;
  11312. height: 100%;
  11313. }
  11314. .check img {
  11315. width: 20px;
  11316. height: 20px;
  11317. }
  11318. .whiteBIcon>img {
  11319. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11320. border-radius: 15px;
  11321. }
  11322. .whiteBIcon>div:nth-child(2) {
  11323. height: 20px;
  11324. line-height: 20px;
  11325. }
  11326. .check {
  11327. /* width: 20px;
  11328. height: 20px; */
  11329. cursor: pointer;
  11330. margin: 10px 0 0;
  11331. }
  11332. .checkDiv {
  11333. display: flex;
  11334. align-items: center;
  11335. }
  11336. .checkDiv span {
  11337. margin-left: 5px;
  11338. color: #858585;
  11339. }
  11340. .customWidth>>>.el-dialog {
  11341. min-width: 500px !important;
  11342. }
  11343. .a_addBox {
  11344. margin: 10px 0;
  11345. background: #fff;
  11346. padding: 15px;
  11347. /* max-height: 600px; */
  11348. overflow: auto;
  11349. }
  11350. .a_add_box {
  11351. border-bottom: 2px solid #eee;
  11352. padding-bottom: 25px;
  11353. }
  11354. .a_add_head {
  11355. display: flex;
  11356. align-items: center;
  11357. justify-content: space-between;
  11358. margin: 10px 0 0 0;
  11359. font-size: 18px;
  11360. }
  11361. .a_add_checkType {
  11362. margin-top: 10px;
  11363. display: flex;
  11364. font-size: 14px;
  11365. align-items: center;
  11366. }
  11367. .a_add_checkType span {
  11368. box-sizing: border-box;
  11369. padding: 0 0 5px 0;
  11370. cursor: pointer;
  11371. }
  11372. .a_add_checkType span+span {
  11373. margin-left: 10px;
  11374. }
  11375. .a_add_checkType .active {
  11376. border-bottom: 2px solid #409eff;
  11377. color: #409eff;
  11378. }
  11379. .a_add_head .a_add_head_input {
  11380. width: 100%;
  11381. }
  11382. .a_add_head .a_add_head_div {
  11383. display: flex;
  11384. align-items: center;
  11385. justify-content: space-between;
  11386. }
  11387. .a_add_body {
  11388. display: flex;
  11389. /* align-items: center; */
  11390. align-items: flex-end;
  11391. }
  11392. .a_add_input {
  11393. display: flex;
  11394. align-items: center;
  11395. flex-wrap: wrap;
  11396. }
  11397. .a_add_input_choice {
  11398. flex-direction: column;
  11399. margin-right: 10px;
  11400. }
  11401. .a_add_input_choice>>>.el-radio {
  11402. display: flex;
  11403. align-items: center;
  11404. flex-direction: row-reverse;
  11405. margin: 30px 0 0 0;
  11406. position: relative;
  11407. }
  11408. .a_add_input_choice>>>.el-checkbox {
  11409. display: flex;
  11410. align-items: center;
  11411. flex-direction: row-reverse;
  11412. margin: 30px 0 0 0;
  11413. position: relative;
  11414. }
  11415. .width100 {
  11416. width: 100%;
  11417. }
  11418. .a_add_input .a_add_persent {
  11419. width: 100%;
  11420. }
  11421. .a_add_persent_div {
  11422. width: 100%;
  11423. display: flex;
  11424. align-items: center;
  11425. }
  11426. .a_add_persent_div span {
  11427. margin: 5px 0;
  11428. }
  11429. .a_add_persent_div span:nth-child(1) {
  11430. width: 30%;
  11431. }
  11432. .a_add_persent_div span:nth-child(2) {
  11433. width: 7%;
  11434. }
  11435. .a_add_persent_div span:nth-child(3) {
  11436. width: 40%;
  11437. }
  11438. .a_add_body_div {
  11439. display: flex;
  11440. align-items: center;
  11441. justify-content: center;
  11442. /* flex-direction: column; */
  11443. position: absolute;
  11444. right: -20px;
  11445. transform: translateX(100%);
  11446. }
  11447. .a_add_body_div>>>.el-button--primary {
  11448. background: #466b99;
  11449. border: none;
  11450. }
  11451. .all_choose {
  11452. display: flex;
  11453. flex-direction: row;
  11454. align-items: flex-start;
  11455. width: 100%;
  11456. }
  11457. .all_choose>span {
  11458. min-width: fit-content;
  11459. display: block;
  11460. white-space: nowrap;
  11461. overflow: hidden;
  11462. text-overflow: ellipsis;
  11463. margin-right: 20px;
  11464. font-weight: bold;
  11465. font-size: 14px;
  11466. }
  11467. .all_choose>>>.el-checkbox-group {
  11468. display: flex;
  11469. flex-direction: row;
  11470. width: 100%;
  11471. flex-wrap: wrap;
  11472. align-content: center;
  11473. justify-content: flex-start;
  11474. align-items: center;
  11475. margin-top: 3px;
  11476. }
  11477. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11478. margin-bottom: 10px;
  11479. display: flex;
  11480. flex-direction: row;
  11481. align-items: center;
  11482. margin-right: 10px;
  11483. }
  11484. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11485. min-width: 80px;
  11486. overflow: hidden;
  11487. width: 80px;
  11488. text-overflow: ellipsis;
  11489. white-space: nowrap;
  11490. }
  11491. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11492. width: auto;
  11493. }
  11494. .choose>div:nth-child(3)>span {
  11495. /* letter-spacing: 0 !important; */
  11496. }
  11497. .choose {
  11498. display: flex;
  11499. flex-direction: column;
  11500. flex-wrap: nowrap;
  11501. height: 100%;
  11502. justify-content: space-evenly;
  11503. align-items: flex-start;
  11504. }
  11505. .both {
  11506. display: flex;
  11507. flex-direction: row;
  11508. flex-wrap: wrap;
  11509. width: 100%;
  11510. align-items: center;
  11511. justify-content: flex-start;
  11512. margin: 15px 0;
  11513. }
  11514. .notice>>>.el-dialog {
  11515. width: 500px !important;
  11516. text-align: center;
  11517. }
  11518. .notice>>>.el-button {
  11519. margin-top: 20px;
  11520. }
  11521. .whiteBg {
  11522. background: #fff;
  11523. border-radius: 10px;
  11524. }
  11525. .wb_j_box {
  11526. display: flex;
  11527. width: 100%;
  11528. padding: 10px 20px;
  11529. box-sizing: border-box;
  11530. }
  11531. .wb_j_box_content {
  11532. width: calc(100% - 55% - 100px);
  11533. display: flex;
  11534. align-items: center;
  11535. }
  11536. .wb_j_box_p_box {
  11537. max-width: calc(100% - 200px);
  11538. word-break: break-all;
  11539. overflow: hidden;
  11540. margin: 0 0 0 10px;
  11541. font-size: 14px;
  11542. color: #6e6e6e;
  11543. }
  11544. .chooseWho {
  11545. display: flex;
  11546. width: 410px;
  11547. flex-direction: row;
  11548. flex-wrap: nowrap;
  11549. justify-content: space-between;
  11550. padding-bottom: 10px;
  11551. }
  11552. .chooseWho>div {
  11553. cursor: pointer;
  11554. padding-bottom: 10px;
  11555. font-weight: bold;
  11556. }
  11557. .isChooseActive {
  11558. color: #3e88f4;
  11559. border-bottom: 2px solid #2f80f3;
  11560. }
  11561. .toolSort {
  11562. display: flex;
  11563. flex-direction: row;
  11564. flex-wrap: wrap;
  11565. justify-content: flex-start;
  11566. align-items: flex-start;
  11567. }
  11568. .toolSort>div {
  11569. margin-right: 10px;
  11570. }
  11571. .tools {
  11572. width: 100%;
  11573. display: flex;
  11574. flex-direction: column;
  11575. flex-wrap: nowrap;
  11576. align-items: flex-start;
  11577. }
  11578. .leftTools,
  11579. .rightTools {
  11580. width: 50%;
  11581. }
  11582. .leftTools+.leftTools {
  11583. border-top: 1px solid #dbdbdb;
  11584. padding-top: 30px;
  11585. }
  11586. .rightTools {
  11587. display: flex;
  11588. flex-direction: row;
  11589. flex-wrap: nowrap;
  11590. justify-content: space-around;
  11591. }
  11592. .firstToolList {
  11593. display: flex;
  11594. flex-direction: column;
  11595. flex-wrap: nowrap;
  11596. align-items: center;
  11597. }
  11598. .iconList {
  11599. display: flex;
  11600. flex-direction: row;
  11601. flex-wrap: wrap;
  11602. justify-content: flex-start;
  11603. align-items: center;
  11604. margin: 20px 0 5px 0;
  11605. width: 240px;
  11606. min-width: 240px;
  11607. }
  11608. .iconTool {
  11609. display: flex;
  11610. flex-direction: column;
  11611. flex-wrap: nowrap;
  11612. align-items: center;
  11613. justify-content: flex-start;
  11614. margin: 15px 10px;
  11615. }
  11616. .toolIcon {
  11617. width: 50px;
  11618. }
  11619. .taskBorder {
  11620. /*border: 1px solid #e1e1e1; */
  11621. border-radius: 8px;
  11622. margin-top: 10px;
  11623. /* min-height: 1160px; */
  11624. position: relative;
  11625. background: #fff;
  11626. padding: 20px 20px 0;
  11627. overflow: hidden;
  11628. box-sizing: border-box;
  11629. }
  11630. .smallTaskBorder {
  11631. height: 170px;
  11632. min-height: 170px !important;
  11633. overflow: hidden;
  11634. }
  11635. .taskBorder>div {
  11636. /* padding: 30px 0 10px 30px; */
  11637. }
  11638. .addTaskBorder {
  11639. /* border: 2px solid #5E9AFC; */
  11640. border-radius: 8px;
  11641. margin-top: 10px;
  11642. cursor: pointer;
  11643. /* height: 50px;
  11644. line-height: 50px; */
  11645. background: #fff;
  11646. padding: 15px 0;
  11647. display: flex;
  11648. align-items: center;
  11649. justify-content: center;
  11650. }
  11651. /* .addTaskBorder>div {
  11652. margin: 0 auto;
  11653. display: flex;
  11654. align-items: center;
  11655. justify-content: center;
  11656. }
  11657. .addTaskBorder>div>img {
  11658. width: 20px;
  11659. }
  11660. .addTaskBorder>div>span {
  11661. font-size: 16px;
  11662. margin-left: 10px;
  11663. color: #5E9AFC;
  11664. } */
  11665. .funBlock {
  11666. display: flex;
  11667. padding: 15px 0;
  11668. flex-direction: row;
  11669. justify-content: flex-end;
  11670. align-items: center;
  11671. position: absolute;
  11672. right: 15px;
  11673. bottom: 35px;
  11674. z-index: 9;
  11675. }
  11676. .fold {
  11677. display: flex;
  11678. margin: 0 10px;
  11679. flex-direction: row;
  11680. align-items: center;
  11681. cursor: pointer;
  11682. }
  11683. .arrow {
  11684. width: 15px;
  11685. height: 15px;
  11686. margin-left: 10px;
  11687. }
  11688. .addToolFun {
  11689. display: flex;
  11690. width: 150px;
  11691. flex-direction: row;
  11692. align-items: center;
  11693. justify-content: center;
  11694. border: 1px dashed;
  11695. border-radius: 5px;
  11696. height: 50px;
  11697. margin: 20px auto 35px;
  11698. cursor: pointer;
  11699. }
  11700. .addToolFun2 {
  11701. display: flex;
  11702. width: 150px;
  11703. border: 2px dashed #CAD1DC;
  11704. flex-direction: row;
  11705. align-items: center;
  11706. justify-content: center;
  11707. border-radius: 5px;
  11708. height: 50px;
  11709. margin: 0 auto 0;
  11710. cursor: pointer;
  11711. }
  11712. .addToolImg {
  11713. width: 20px;
  11714. height: 20px;
  11715. margin-right: 10px;
  11716. }
  11717. .addToolsDia>>>.el-dialog__body {
  11718. padding: 20px;
  11719. }
  11720. .addToolsDia>>>.el-dialog__body>.toolChoose {
  11721. padding: 0;
  11722. }
  11723. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  11724. padding: 0;
  11725. border-bottom: none;
  11726. margin-bottom: 0;
  11727. }
  11728. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  11729. width: 100%;
  11730. }
  11731. .lineCss>>>.el-form-item__label {
  11732. width: auto !important;
  11733. }
  11734. .lineCss>>>.el-form-item__content {
  11735. margin-left: 50px !important;
  11736. }
  11737. .newSteps {
  11738. display: flex;
  11739. width: 100% !important;
  11740. height: 80px;
  11741. cursor: pointer;
  11742. margin: 10px 0;
  11743. border-radius: 10px;
  11744. flex-direction: row;
  11745. align-content: center;
  11746. justify-content: center;
  11747. align-items: center;
  11748. margin: 0 !important;
  11749. }
  11750. /* 评价样式 */
  11751. .elist_css {
  11752. padding-bottom: 60px !important;
  11753. }
  11754. .elist_title {
  11755. margin-bottom: 10px;
  11756. }
  11757. .elist_input {}
  11758. .elist_input_box {
  11759. display: flex;
  11760. align-items: center;
  11761. flex-wrap: wrap;
  11762. }
  11763. .elist_input_box+.elist_input_box {
  11764. margin-top: 30px;
  11765. }
  11766. .elist_input .elist_input_box input {
  11767. font: inherit;
  11768. color: currentColor;
  11769. /* width: 200px; */
  11770. max-width: 200px;
  11771. padding: 8px 14px;
  11772. display: block;
  11773. min-width: 0;
  11774. outline: none;
  11775. border: 1px solid rgba(0, 0, 0, 0.23);
  11776. border-radius: 4px;
  11777. box-sizing: border-box;
  11778. background: #fff;
  11779. margin: 0 5px 0 0;
  11780. }
  11781. .elist_input .elist_input_box span {
  11782. height: 36px;
  11783. line-height: 36px;
  11784. color: rgb(82, 82, 82);
  11785. min-width: 80px;
  11786. }
  11787. .elist_input .elist_input_box .remove {
  11788. height: 20px;
  11789. width: 20px;
  11790. min-width: 20px;
  11791. background-size: 100% 100%;
  11792. background-position: unset;
  11793. margin-left: 5px;
  11794. }
  11795. .elist_input_box>>>.el-rate {
  11796. display: flex;
  11797. height: 36px;
  11798. align-items: center;
  11799. }
  11800. .elist_input_box .elist_inptu_text {
  11801. width: 100%;
  11802. display: flex;
  11803. align-items: center;
  11804. margin-top: 10px;
  11805. }
  11806. .elist_input_box .elist_inptu_text input {
  11807. /* width: 500px; */
  11808. width: 100%;
  11809. max-width: unset;
  11810. }
  11811. .elist_input_box>>>.el-rate__icon {
  11812. font-size: 24px;
  11813. }
  11814. .elist_btn {
  11815. margin-top: 10px;
  11816. }
  11817. .lineTitle {
  11818. /* margin-top: 15px; */
  11819. width: 110px;
  11820. font-size: 16px;
  11821. display: flex;
  11822. align-items: center;
  11823. line-height: 20px;
  11824. }
  11825. .lineTitle::before {
  11826. content: '';
  11827. display: block;
  11828. width: 3px;
  11829. height: 20px;
  11830. background: #0061FF;
  11831. border-radius: 3px;
  11832. margin: 0 5px 0 0;
  11833. }
  11834. .courseTop {
  11835. display: flex;
  11836. flex-direction: row;
  11837. justify-content: space-between;
  11838. align-items: center;
  11839. width: calc(100%);
  11840. padding: 10px 0;
  11841. margin: 0 auto;
  11842. }
  11843. .stepsNav {
  11844. display: flex;
  11845. flex-direction: row;
  11846. justify-content: flex-start;
  11847. align-items: center;
  11848. }
  11849. .stepsWord {
  11850. font-size: 18px;
  11851. color: #fff;
  11852. font-weight: bold;
  11853. margin-left: auto;
  11854. background: rgb(15, 126, 255);
  11855. border-radius: 5px;
  11856. padding: 3px 25px;
  11857. box-sizing: border-box;
  11858. }
  11859. .rightBox {
  11860. width: calc(100%);
  11861. background: #F0F2F5;
  11862. /* border-radius: 10px; */
  11863. overflow: auto;
  11864. height: calc(100% - 120px);
  11865. margin: 0 auto;
  11866. position: relative;
  11867. box-sizing: border-box;
  11868. border-radius: 5px;
  11869. }
  11870. .e_add_top {
  11871. display: flex;
  11872. justify-content: space-between;
  11873. padding: 20px 20px 0 20px;
  11874. border-radius: 3px;
  11875. background: #fff;
  11876. }
  11877. .e_add_title2 {
  11878. display: flex;
  11879. align-items: center;
  11880. }
  11881. .e_add_title2 span {
  11882. width: 40px;
  11883. }
  11884. .e_add_title {
  11885. display: flex;
  11886. align-items: center;
  11887. color: #b8b8b8;
  11888. font-size: 18px;
  11889. position: relative;
  11890. height: 40px;
  11891. }
  11892. .e_add_title span {
  11893. margin-right: 10px;
  11894. }
  11895. .e_add_title .el_input {
  11896. width: 300px;
  11897. }
  11898. .e_add_title>>>.el-input__inner {
  11899. width: 400px;
  11900. }
  11901. .e_add_btn {}
  11902. .e_add_content {
  11903. display: flex;
  11904. width: 100%;
  11905. }
  11906. .e_add_list {
  11907. background: #fff;
  11908. height: 500px;
  11909. width: 210px;
  11910. position: relative;
  11911. margin: 15px 5px 0 0;
  11912. flex-shrink: 0;
  11913. display: flex;
  11914. flex-direction: column;
  11915. }
  11916. .e_add_list_title {
  11917. font-size: 20px;
  11918. width: 100%;
  11919. box-sizing: border-box;
  11920. padding: 15px 40px;
  11921. text-align: center;
  11922. border-bottom: 1px solid #eaeaea;
  11923. position: relative;
  11924. display: flex;
  11925. align-items: center;
  11926. justify-content: center;
  11927. height: 57px;
  11928. background: #f6f6f6;
  11929. }
  11930. .e_add_list_title span {
  11931. overflow: hidden;
  11932. white-space: nowrap;
  11933. text-overflow: ellipsis;
  11934. }
  11935. .e_add_list_title img {
  11936. position: absolute;
  11937. right: 15px;
  11938. width: 25px;
  11939. cursor: pointer;
  11940. top: 50%;
  11941. transform: translateY(-50%);
  11942. }
  11943. .e_add_list_body {
  11944. height: calc(100% - 187px);
  11945. overflow: auto;
  11946. }
  11947. .e_add_list_child {
  11948. width: 100%;
  11949. display: flex;
  11950. align-items: center;
  11951. justify-content: center;
  11952. position: relative;
  11953. box-sizing: border-box;
  11954. padding: 15px 40px;
  11955. text-align: center;
  11956. }
  11957. .e_add_list_child span {
  11958. overflow: hidden;
  11959. white-space: nowrap;
  11960. text-overflow: ellipsis;
  11961. cursor: pointer;
  11962. }
  11963. .e_add_list_child img {
  11964. position: absolute;
  11965. right: 10px;
  11966. width: 21px;
  11967. cursor: pointer;
  11968. top: 50%;
  11969. transform: translateY(-50%);
  11970. }
  11971. .e_add_list_child+.e_add_list_child {
  11972. border-top: 1px solid #eaeaea;
  11973. }
  11974. .e_add_list_child .active {
  11975. color: #409eff;
  11976. }
  11977. .e_add_list_btn {
  11978. position: absolute;
  11979. bottom: 0;
  11980. height: 50px;
  11981. background: rgb(120, 120, 254);
  11982. width: 100%;
  11983. color: #fff;
  11984. font-size: 16px;
  11985. text-align: center;
  11986. line-height: 50px;
  11987. cursor: pointer;
  11988. }
  11989. .e_add_list_detail {
  11990. position: absolute;
  11991. bottom: 0;
  11992. height: 130px;
  11993. background: rgb(120, 120, 254);
  11994. width: 100%;
  11995. color: #fff;
  11996. font-size: 16px;
  11997. display: flex;
  11998. align-items: center;
  11999. justify-content: center;
  12000. }
  12001. .e_add_list_detail textarea {
  12002. height: 90%;
  12003. width: 95%;
  12004. border: none;
  12005. resize: none;
  12006. outline: none;
  12007. padding: 5px;
  12008. box-sizing: border-box;
  12009. }
  12010. .e_add_list_pbox {
  12011. width: 100%;
  12012. }
  12013. .e_add_list_pbox_title {
  12014. height: 50px;
  12015. background: #fff;
  12016. display: flex;
  12017. align-items: center;
  12018. width: 100%;
  12019. box-sizing: border-box;
  12020. padding: 0 20px;
  12021. flex-direction: row;
  12022. flex-wrap: wrap;
  12023. }
  12024. .type_title {
  12025. font-size: 18px;
  12026. font-weight: 700;
  12027. }
  12028. .type_content {
  12029. font-size: 16px;
  12030. margin-left: 30px;
  12031. }
  12032. .type_content span+span {
  12033. margin-left: 20px;
  12034. }
  12035. .type_content span {
  12036. cursor: pointer;
  12037. padding-bottom: 5px;
  12038. box-sizing: border-box;
  12039. }
  12040. .type_content .active {
  12041. color: #409eff;
  12042. border-bottom: 2px solid #409eff;
  12043. }
  12044. .e_add_list_pbox_content {
  12045. height: calc(100% - 50px);
  12046. display: flex;
  12047. align-items: center;
  12048. width: 100%;
  12049. background: #fff;
  12050. }
  12051. .mbCss {
  12052. width: 100%;
  12053. display: flex;
  12054. flex-direction: row;
  12055. flex-wrap: nowrap;
  12056. align-content: center;
  12057. align-items: flex-start;
  12058. justify-content: flex-start;
  12059. }
  12060. .pjCss {
  12061. /* width: 42%; */
  12062. width: calc(100% - 55%);
  12063. display: flex;
  12064. flex-direction: column;
  12065. flex-wrap: nowrap;
  12066. align-items: flex-start;
  12067. margin-top: 1.5%;
  12068. }
  12069. .e_box {
  12070. display: flex;
  12071. flex-wrap: wrap;
  12072. max-height: 500px;
  12073. align-items: flex-start;
  12074. overflow: auto;
  12075. }
  12076. .e_card {
  12077. border: 1px solid #ccc;
  12078. background: #fff;
  12079. margin-right: 20px;
  12080. width: 270px;
  12081. display: flex;
  12082. flex-direction: column;
  12083. align-items: center;
  12084. border-radius: 5px;
  12085. margin-top: 10px;
  12086. text-align: center;
  12087. }
  12088. .e_card_picture {
  12089. margin: 10px 0;
  12090. }
  12091. .e_card_picture>img {
  12092. width: 50px;
  12093. }
  12094. .e_card_name {
  12095. width: 100%;
  12096. padding: 0 10px;
  12097. box-sizing: border-box;
  12098. margin-bottom: 10px;
  12099. overflow: hidden;
  12100. text-overflow: ellipsis;
  12101. white-space: nowrap;
  12102. }
  12103. .e_card_time {
  12104. width: 100%;
  12105. padding: 0 10px;
  12106. box-sizing: border-box;
  12107. font-size: 15px;
  12108. color: #c3c3c3;
  12109. margin-bottom: 10px;
  12110. }
  12111. .e_card_btn {
  12112. height: 40px;
  12113. display: flex;
  12114. align-items: center;
  12115. width: 100%;
  12116. background: rgb(244, 244, 244);
  12117. }
  12118. .e_card_btn:hover {
  12119. background: rgb(221 221 221);
  12120. }
  12121. .e_card_btn span {
  12122. flex: 1 1 auto;
  12123. text-align: center;
  12124. cursor: pointer;
  12125. }
  12126. .addEva {
  12127. border: 1px solid #ccc;
  12128. background: #fff;
  12129. margin-right: 20px;
  12130. width: 270px;
  12131. height: 149px;
  12132. display: flex;
  12133. flex-direction: column;
  12134. align-items: center;
  12135. border-radius: 5px;
  12136. margin-top: 10px;
  12137. text-align: center;
  12138. cursor: pointer;
  12139. justify-content: center;
  12140. }
  12141. .addEva>img {
  12142. width: 50px;
  12143. object-fit: cover;
  12144. }
  12145. .uploadFm {
  12146. border: 1px dashed #ccc;
  12147. width: 100%;
  12148. height: 140px;
  12149. position: relative;
  12150. cursor: pointer;
  12151. display: flex;
  12152. flex-direction: column;
  12153. justify-content: center;
  12154. align-items: center;
  12155. font-size: 14px;
  12156. color: #6e6e6e;
  12157. position:relative;
  12158. }
  12159. .cover_p{
  12160. width: 100% !important;
  12161. height: 100%;
  12162. object-fit: cover;
  12163. }
  12164. .uploadFm2:hover .cover_mask{
  12165. display: flex !important;
  12166. }
  12167. .cover_mask{
  12168. display:none;
  12169. width:100%;
  12170. height:100%;
  12171. position:absolute;
  12172. background:#00000054;
  12173. align-items: center;
  12174. justify-content: center;
  12175. flex-direction: column;
  12176. }
  12177. .cover_mask > img{
  12178. width: 30px;
  12179. }
  12180. .cover_mask > span{
  12181. color: #fff;
  12182. font-size: 12px;
  12183. }
  12184. .uploadFm>img {
  12185. width: 50px;
  12186. }
  12187. .fileCss {
  12188. width: 100%;
  12189. display: flex;
  12190. flex-direction: row;
  12191. flex-wrap: nowrap;
  12192. justify-content: space-around;
  12193. align-items: center;
  12194. padding-top: 15px;
  12195. }
  12196. .fileCss>div {
  12197. display: flex;
  12198. flex-direction: column;
  12199. align-items: center;
  12200. }
  12201. .fileCss .spanName {
  12202. margin-top: 10px
  12203. }
  12204. .sysPicBox {
  12205. display: flex;
  12206. flex-direction: row;
  12207. flex-wrap: wrap;
  12208. align-content: flex-start;
  12209. height: 435px;
  12210. overflow: auto;
  12211. position: relative;
  12212. }
  12213. .picNone {
  12214. position: absolute;
  12215. left: 50%;
  12216. top: 45%;
  12217. transform: translate(-50%, -50%);
  12218. width: fit-content;
  12219. color: #9c9c9c;
  12220. }
  12221. .sysPic {
  12222. width: 200px;
  12223. height: 115px;
  12224. margin: 0 20px 20px 0;
  12225. cursor: pointer;
  12226. }
  12227. .sysPic>img,
  12228. .isSysPic>img,
  12229. .deletePic>img {
  12230. width: 100%;
  12231. height: 100%;
  12232. object-fit: cover;
  12233. }
  12234. .isSysPic {
  12235. width: 200px;
  12236. height: 115px;
  12237. position: relative;
  12238. }
  12239. .deletePic {
  12240. width: 20px;
  12241. height: 20px;
  12242. position: absolute;
  12243. top: 0;
  12244. right: 0;
  12245. cursor: pointer;
  12246. }
  12247. .select_box1 {
  12248. height: 100%;
  12249. }
  12250. .select_box1_img {
  12251. background: #fff;
  12252. border-radius: 5px;
  12253. padding: 15px;
  12254. box-sizing: border-box;
  12255. margin-bottom: 20px;
  12256. }
  12257. .select_box1_title {
  12258. padding: 0 0 15px 0;
  12259. border-bottom: 1px solid #eee;
  12260. margin-bottom: 15px;
  12261. }
  12262. .select_box1_title span:nth-child(1) {
  12263. font-size: 16px;
  12264. margin-right: 20px;
  12265. color: #000;
  12266. }
  12267. .select_box1_title span:nth-child(2) {
  12268. font-size: 14px;
  12269. color: rgb(112, 112, 112);
  12270. }
  12271. .select_box1_add_img {}
  12272. .select_box1_select {
  12273. background: #fff;
  12274. border-radius: 5px;
  12275. padding: 15px;
  12276. box-sizing: border-box;
  12277. height: calc(100% - 200px);
  12278. overflow: auto;
  12279. }
  12280. .select_box2 {
  12281. height: 100%;
  12282. }
  12283. .select_box2_title {
  12284. background: #fff;
  12285. border-radius: 5px;
  12286. padding: 5px 10px;
  12287. box-sizing: border-box;
  12288. margin-bottom: 10px;
  12289. }
  12290. .select_box2_box {
  12291. display: flex;
  12292. height: calc(100% - 30px);
  12293. }
  12294. .select_box2_img {
  12295. width: calc(100% - 310px);
  12296. height: 100%;
  12297. overflow: auto;
  12298. background: #fff;
  12299. border-radius: 5px;
  12300. }
  12301. .select_box2_img img {
  12302. width: 100%;
  12303. }
  12304. .select_box2_answer {
  12305. background: #fff;
  12306. margin-left: 10px;
  12307. border-radius: 5px;
  12308. width: 300px;
  12309. overflow: auto;
  12310. height: 100%;
  12311. display: flex;
  12312. flex-direction: column;
  12313. align-items: center;
  12314. padding-top: 10px;
  12315. box-sizing: border-box;
  12316. }
  12317. .select_box2_answer_box {
  12318. margin: 0 0 10px 0;
  12319. width: 85%;
  12320. }
  12321. .rate_textarea {
  12322. font: inherit;
  12323. color: currentColor;
  12324. width: 100%;
  12325. padding: 8px 14px;
  12326. display: block;
  12327. min-width: 0;
  12328. outline: none;
  12329. border: 1px solid rgba(0, 0, 0, 0.23);
  12330. border-radius: 4px;
  12331. box-sizing: border-box;
  12332. background: #fff;
  12333. margin: 0 20px 0 0;
  12334. resize: none;
  12335. }
  12336. .select_answer_title {
  12337. text-align: left;
  12338. width: 85%;
  12339. margin-bottom: 10px;
  12340. font-size: 18px;
  12341. color: #8e8e8e;
  12342. }
  12343. .mask {
  12344. background-color: rgb(0 0 0 / 30%);
  12345. /* position: fixed; */
  12346. position: absolute;
  12347. top: 0;
  12348. left: 0;
  12349. width: 100%;
  12350. height: 100%;
  12351. z-index: 90;
  12352. display: flex;
  12353. align-items: center;
  12354. justify-content: center;
  12355. }
  12356. .progressBox {
  12357. width: 300px;
  12358. height: 150px;
  12359. background: #fff;
  12360. border-radius: 10px;
  12361. box-shadow: 0 0 6px 1px #bfbfbf;
  12362. display: flex;
  12363. align-items: center;
  12364. justify-content: center;
  12365. flex-direction: column;
  12366. position: relative;
  12367. color: #6c6c6c;
  12368. }
  12369. .progressBox>>>.el-progress-bar__outer {
  12370. background-color: #d1dfff !important;
  12371. }
  12372. .progressBox .lbox {
  12373. height: 50px;
  12374. font-size: 19px;
  12375. display: flex;
  12376. align-items: center;
  12377. color: #747474;
  12378. }
  12379. .progressBox .lbox img {
  12380. width: 40px;
  12381. margin-right: 20px;
  12382. }
  12383. .closeCss {
  12384. position: absolute;
  12385. top: 8px;
  12386. right: 8px;
  12387. cursor: pointer;
  12388. width: 20px;
  12389. height: 20px;
  12390. }
  12391. .closeCss>img {
  12392. width: 100%;
  12393. height: 100%;
  12394. }
  12395. .updateTips::after {
  12396. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  12397. font-size: 14px;
  12398. margin-left: 20px;
  12399. font-weight: 400;
  12400. color: #ff3a3a;
  12401. }
  12402. .updateMask {
  12403. width: 100%;
  12404. z-index: 3;
  12405. top: 0;
  12406. position: absolute;
  12407. /* background-color: rgba(0,0,0,.3); */
  12408. }
  12409. .t_j_box {
  12410. display: flex;
  12411. }
  12412. .t_j_box span:nth-child(1) {
  12413. width: 15%;
  12414. overflow: hidden;
  12415. margin-right: 10px;
  12416. text-overflow: ellipsis;
  12417. white-space: nowrap;
  12418. }
  12419. .t_j_box span:nth-child(2) {
  12420. width: 30%;
  12421. overflow: hidden;
  12422. text-overflow: ellipsis;
  12423. margin-right: 10px;
  12424. }
  12425. .t_j_box span:nth-child(3) {
  12426. max-width: calc(55% - 20px);
  12427. overflow: hidden;
  12428. text-overflow: ellipsis;
  12429. }
  12430. .sentenBox {
  12431. background: #fff;
  12432. height: 600px;
  12433. overflow: auto;
  12434. background-image: url("../../../assets/icon/conSentences/csBg.png");
  12435. background-position: 102%;
  12436. background-repeat: no-repeat;
  12437. background-size: 60%;
  12438. }
  12439. .sentenBox>.sentenContent {
  12440. padding-bottom: 10px;
  12441. width: 97%;
  12442. margin: 0 auto;
  12443. }
  12444. .sentenBox>.sentenContent+.sentenContent {
  12445. border-top: 1px solid #cbcbcb;
  12446. }
  12447. .addSen {
  12448. background: #409efe;
  12449. width: 90px;
  12450. color: #fff;
  12451. height: 35px;
  12452. text-align: center;
  12453. line-height: 35px;
  12454. border-radius: 5px;
  12455. float: right;
  12456. margin: 10px 20px 0 0;
  12457. cursor: pointer;
  12458. }
  12459. .sentenTop {
  12460. display: flex;
  12461. flex-direction: row;
  12462. flex-wrap: nowrap;
  12463. align-items: center;
  12464. }
  12465. .sentenTop::before {
  12466. content: attr(index);
  12467. background: #3681fc;
  12468. border-radius: 50%;
  12469. color: #fff;
  12470. width: 25px;
  12471. height: 25px;
  12472. min-width: 25px;
  12473. min-height: 25px;
  12474. text-align: center;
  12475. line-height: 25px;
  12476. margin-right: 5px;
  12477. }
  12478. .sentenTop>div:nth-child(2) {
  12479. width: 300px;
  12480. margin: 0 15px;
  12481. }
  12482. .sentenTop>div:nth-child(3) {
  12483. background: #409efe;
  12484. color: #fff;
  12485. width: 65px;
  12486. height: 35px;
  12487. text-align: center;
  12488. line-height: 35px;
  12489. border-radius: 5px;
  12490. cursor: pointer;
  12491. }
  12492. .cardList {
  12493. padding: 20px 0 20px 0;
  12494. display: flex;
  12495. flex-direction: row;
  12496. flex-wrap: wrap;
  12497. align-items: center;
  12498. box-sizing: border-box;
  12499. border-bottom: 1px solid #f4f4f4;
  12500. width: 98%;
  12501. margin: 0 auto;
  12502. }
  12503. .rightCardList {
  12504. display: flex;
  12505. flex-wrap: wrap;
  12506. }
  12507. .cardBox {
  12508. display: flex;
  12509. flex-direction: row;
  12510. flex-wrap: wrap;
  12511. align-items: center;
  12512. align-content: center;
  12513. }
  12514. .isCard,
  12515. .isCard1 {
  12516. width: auto;
  12517. padding: 0 20px;
  12518. height: 65px;
  12519. text-align: center;
  12520. line-height: 65px;
  12521. font-size: 14px;
  12522. cursor: pointer;
  12523. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  12524. background-size: 100% 100%;
  12525. position: relative;
  12526. z-index: 99;
  12527. }
  12528. .isCard1 {
  12529. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  12530. }
  12531. .isCard:hover .deleteWord {
  12532. display: block;
  12533. }
  12534. .isCard>div:nth-child(1),
  12535. .isCard1>div:nth-child(1) {
  12536. white-space: nowrap;
  12537. overflow: hidden;
  12538. text-overflow: ellipsis;
  12539. width: 100%;
  12540. margin: 0 auto;
  12541. }
  12542. .card {
  12543. width: 140px;
  12544. height: 65px;
  12545. }
  12546. .card>img {
  12547. width: 100%;
  12548. height: 100%;
  12549. }
  12550. .rightCardBox {
  12551. width: 98%;
  12552. margin: 10px auto 0;
  12553. }
  12554. .rightCardBox>div:nth-child(1) {
  12555. margin-bottom: 10px;
  12556. }
  12557. .cardCss {
  12558. display: flex;
  12559. flex-direction: column;
  12560. flex-wrap: nowrap;
  12561. align-items: center;
  12562. border-bottom: 3px solid #b4c3d3;
  12563. padding: 0 0 5px 0;
  12564. /* margin-right: 10px; */
  12565. }
  12566. .cardCss>div:nth-child(2) {
  12567. background: #5b7b9d;
  12568. color: #fff;
  12569. width: 20px;
  12570. height: 20px;
  12571. border-radius: 50%;
  12572. text-align: center;
  12573. line-height: 20px;
  12574. }
  12575. .sentenTopBox {
  12576. display: flex;
  12577. flex-direction: row;
  12578. flex-wrap: nowrap;
  12579. align-items: center;
  12580. justify-content: space-between;
  12581. padding: 55px 0 0 20px;
  12582. box-sizing: border-box;
  12583. width: 85%;
  12584. }
  12585. .stepsBottom {
  12586. width: 85%;
  12587. margin-bottom: 20px;
  12588. box-shadow: 0 0 10px 10px #f7f7f7;
  12589. background: #f7f7f7;
  12590. border-radius: 10px;
  12591. overflow: hidden;
  12592. }
  12593. .course_left {
  12594. width: 300px;
  12595. height: auto;
  12596. position: relative;
  12597. }
  12598. .stepsBottom2 {
  12599. width: 300px;
  12600. margin: 10px 0;
  12601. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  12602. /* background: #f7f7f7; */
  12603. border-radius: 8px;
  12604. overflow: hidden;
  12605. height: fit-content;
  12606. position: relative;
  12607. /* transition: all .5s; */
  12608. }
  12609. .navTop {
  12610. background: #53749b;
  12611. color: #fff;
  12612. height: 40px;
  12613. line-height: 40px;
  12614. padding-left: 15px;
  12615. font-size: 18px;
  12616. }
  12617. .navBottom {
  12618. background: #fff;
  12619. height: calc(100vh - 210px);
  12620. overflow: auto;
  12621. }
  12622. .navTask {
  12623. display: flex;
  12624. flex-direction: row;
  12625. flex-wrap: nowrap;
  12626. align-items: center;
  12627. padding: 10px 10px 10px 0;
  12628. cursor: pointer;
  12629. background: #ffffff;
  12630. width: 95%;
  12631. margin: 10px auto 0;
  12632. box-sizing: border-box;
  12633. border-radius: 5px;
  12634. flex-wrap: wrap;
  12635. position: relative;
  12636. }
  12637. .navTask::before {
  12638. content: '';
  12639. display: block;
  12640. width: 16px;
  12641. height: 16px;
  12642. background-image: url(../../../assets/icon/new/icon_arrow.png);
  12643. background-size: 100%;
  12644. margin-left: 23px;
  12645. }
  12646. .isNavOpen::before {
  12647. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  12648. }
  12649. .dragOverTop {
  12650. border-top: 2px solid #0061FF !important;
  12651. border-radius: 0 !important;
  12652. margin-top: 10px;
  12653. }
  12654. .dragOverBottom {
  12655. border-bottom: 2px solid #0061FF !important;
  12656. border-radius: 0 !important;
  12657. margin-top: 10px;
  12658. }
  12659. .dragOverTop2 {
  12660. border-top: 2px solid #0061FF !important;
  12661. border-radius: 0 !important;
  12662. }
  12663. .dragOverBottom2 {
  12664. border-bottom: 2px solid #0061FF !important;
  12665. border-radius: 0 !important;
  12666. }
  12667. .isNavTask {
  12668. /* background: #3681FC; */
  12669. background: #EEF3FB;
  12670. }
  12671. .isNavTask>.chapter_upload_drag {
  12672. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  12673. }
  12674. .isNavTask .nt_taskName {
  12675. /* color: #fff !important; */
  12676. font-weight: bold !important;
  12677. color: #0061FF !important;
  12678. }
  12679. .isNavTask .nt_taskTitle {
  12680. /* color: #AECCFE !important; */
  12681. font-weight: bold !important;
  12682. color: #0061FF !important;
  12683. }
  12684. .navTask .nt_taskBox {
  12685. width: calc(100% - 40px);
  12686. padding: 0 0 0 5px;
  12687. box-sizing: border-box;
  12688. box-sizing: border-box;
  12689. display: flex;
  12690. flex-direction: row;
  12691. flex-wrap: nowrap;
  12692. align-items: baseline;
  12693. }
  12694. .navTask .nt_taskTitle {
  12695. /* color: #717C8D; */
  12696. color: #060E17;
  12697. line-height: 25px;
  12698. font-size: 16px;
  12699. /* min-width: 66px; */
  12700. }
  12701. .navTask .nt_taskName {
  12702. /* color: #fff; */
  12703. /* max-width: 130px; */
  12704. /* width: 100%; */
  12705. max-width: calc(100% - 66px);
  12706. white-space: nowrap;
  12707. overflow: hidden;
  12708. text-overflow: ellipsis;
  12709. font-size: 16px;
  12710. color: #060E17;
  12711. /* color: #0E1E33; */
  12712. }
  12713. .gjBox {
  12714. width: calc(100% - 25px);
  12715. padding: 0 0 0 0;
  12716. box-sizing: border-box;
  12717. border-left: 1px solid #CAD1DC;
  12718. margin-left: 25px;
  12719. }
  12720. .gjBox>div {
  12721. display: flex;
  12722. align-items: center;
  12723. }
  12724. .gjBox>div::before {
  12725. content: '';
  12726. height: 1px;
  12727. width: 10px;
  12728. background: #CAD1DC;
  12729. display: block;
  12730. margin-right: 5px;
  12731. }
  12732. .gjCss {
  12733. display: flex;
  12734. flex-direction: row;
  12735. flex-wrap: nowrap;
  12736. align-items: center;
  12737. padding: 15px 0;
  12738. box-sizing: border-box;
  12739. font-size: 14px;
  12740. cursor: pointer;
  12741. }
  12742. .isGjCss {
  12743. color: #0061ff;
  12744. }
  12745. .groupBox {}
  12746. .groupContent+.groupContent {
  12747. margin-top: 30px;
  12748. }
  12749. .groupTitle {
  12750. font-size: 24px;
  12751. color: rgb(80, 80, 80);
  12752. margin-bottom: 20px;
  12753. }
  12754. .groupName {
  12755. display: flex;
  12756. align-items: center;
  12757. }
  12758. .groupn {
  12759. font-size: 15px;
  12760. margin-right: 10px;
  12761. }
  12762. .groupName+.groupName {
  12763. margin-top: 15px;
  12764. }
  12765. .groupBtn {
  12766. margin-left: 10px;
  12767. }
  12768. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  12769. text-align: left;
  12770. }
  12771. .radioBox>div {
  12772. margin: 10px 0 0 10px;
  12773. }
  12774. .radioBox>>>.el-radio__input,
  12775. .radioBox>>>.el-checkbox__inner {
  12776. margin-left: 10px;
  12777. }
  12778. .radioBox>>>.el-radio__label,
  12779. .radioBox>>>.el-checkbox__label {
  12780. display: flex;
  12781. align-items: center;
  12782. }
  12783. .inImg {
  12784. width: 50px;
  12785. }
  12786. .inImg>img {
  12787. width: 100%;
  12788. height: 100%;
  12789. object-fit: cover;
  12790. }
  12791. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  12792. height: auto;
  12793. padding: 10px;
  12794. margin: 0;
  12795. }
  12796. .upCss>>>.el-upload-list {
  12797. width: 100%;
  12798. }
  12799. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  12800. width: 100%;
  12801. height: 120px;
  12802. object-fit: contain;
  12803. background: unset;
  12804. margin-left: 0;
  12805. }
  12806. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  12807. display: none;
  12808. }
  12809. .tcMember+.tcMember::before {
  12810. content: "、";
  12811. }
  12812. .xzUpImg {
  12813. width: 25px;
  12814. height: 25px;
  12815. min-width: 25px;
  12816. min-height: 25px;
  12817. cursor: pointer;
  12818. margin: 0 10px;
  12819. }
  12820. .xzUpImg>img {
  12821. width: 100%;
  12822. height: 100%;
  12823. }
  12824. .closeCss {
  12825. position: absolute;
  12826. top: 8px;
  12827. right: 8px;
  12828. cursor: pointer;
  12829. width: 20px;
  12830. height: 20px;
  12831. }
  12832. .closeCss>img {
  12833. width: 100%;
  12834. height: 100%;
  12835. }
  12836. .moveBtn {
  12837. display: flex;
  12838. flex-direction: row;
  12839. flex-wrap: nowrap;
  12840. align-items: center;
  12841. width: 55px;
  12842. }
  12843. .timuUpImg {
  12844. display: flex;
  12845. flex-direction: row;
  12846. align-items: center;
  12847. width: 100%;
  12848. margin-right: 10px;
  12849. }
  12850. .timuUpImg>div:nth-child(1) {
  12851. margin-right: 10px;
  12852. display: flex;
  12853. align-items: center;
  12854. width: 100%;
  12855. }
  12856. .timuImgBox {
  12857. margin: 10px 0;
  12858. display: flex;
  12859. flex-direction: column;
  12860. flex-wrap: wrap;
  12861. align-items: flex-start;
  12862. }
  12863. .timuImg {
  12864. width: 100px;
  12865. margin: 5px 0;
  12866. cursor: pointer;
  12867. position: relative;
  12868. }
  12869. .timuImg:hover .deleteWord {
  12870. display: block;
  12871. }
  12872. .deleteWord {
  12873. width: 25px;
  12874. height: 25px;
  12875. position: absolute;
  12876. right: -5px;
  12877. top: -5px;
  12878. cursor: pointer;
  12879. display: none;
  12880. }
  12881. .timuImg>img,
  12882. .deleteWord>img {
  12883. width: 100%;
  12884. height: 100%;
  12885. object-fit: cover;
  12886. }
  12887. .e_add_delete {
  12888. cursor: pointer;
  12889. margin-left: 10px;
  12890. }
  12891. .pType_box {
  12892. margin-top: 30px;
  12893. align-items: flex-end;
  12894. }
  12895. .noneBox {
  12896. height: 100%;
  12897. width: 100%;
  12898. display: flex;
  12899. align-items: center;
  12900. justify-content: center;
  12901. margin-top: 150px;
  12902. }
  12903. .noneBox>img {
  12904. width: 300px;
  12905. }
  12906. .textarea_css {
  12907. display: block;
  12908. resize: none;
  12909. padding: 10px 15px;
  12910. line-height: 1.5;
  12911. box-sizing: border-box;
  12912. width: 100%;
  12913. font-size: 14px;
  12914. color: #606266;
  12915. background-color: #FFF;
  12916. background-image: none;
  12917. border: 1px solid #DCDFE6;
  12918. border-radius: 4px;
  12919. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  12920. outline: none;
  12921. overflow: hidden;
  12922. height: 46px;
  12923. font-family: 'Microsoft YaHei';
  12924. }
  12925. .textarea_css::-webkit-input-placeholder {
  12926. color: #C0C4CC
  12927. }
  12928. .textarea_css:focus {
  12929. border-color: #409EFF;
  12930. outline: 0;
  12931. }
  12932. .moveBtn2 {
  12933. flex-direction: column;
  12934. width: fit-content;
  12935. margin: 0 10px 0 10px;
  12936. }
  12937. .moveBtn2 .chapter_upload_down,
  12938. .moveBtn2 .chapter_upload_up {
  12939. width: 16px;
  12940. height: 16px;
  12941. }
  12942. .moveBtn2 .chapter_upload_up::after,
  12943. .moveBtn2 .chapter_upload_down::after {
  12944. width: 10px;
  12945. height: 10px;
  12946. }
  12947. .fullStyle>>>.el-dialog__body {
  12948. height: calc(100% - 125px) !important;
  12949. box-sizing: border-box;
  12950. }
  12951. .fullStyle>>>.el-dialog {
  12952. width: 100% !important;
  12953. max-width: 100% !important;
  12954. height: 100% !important;
  12955. margin: 0 !important;
  12956. }
  12957. .fullStyle {
  12958. width: 100% !important;
  12959. max-width: 100% !important;
  12960. height: 100% !important;
  12961. margin: 0 auto !important;
  12962. }
  12963. .wb_j_box_btn {
  12964. width: calc(100% - 30px);
  12965. display: flex;
  12966. height: 40px;
  12967. border: 1.5px solid #CAD1DC;
  12968. border-radius: 4px;
  12969. box-sizing: border-box;
  12970. align-items: center;
  12971. font-size: 14px;
  12972. cursor: pointer;
  12973. overflow: hidden;
  12974. }
  12975. .wb_j_box_btn:hover {
  12976. border: 1.5px solid #0061FF;
  12977. }
  12978. .wb_j_box_title {
  12979. background: #F0F4FA;
  12980. height: 100%;
  12981. line-height: 40px;
  12982. width: 90px;
  12983. text-align: center;
  12984. color: #060E17;
  12985. border-right: 1.5px solid #CAD1DC;
  12986. box-sizing: border-box;
  12987. }
  12988. .wb_j_box_btn_c {
  12989. width: calc(100% - 90px);
  12990. padding: 0 35px 0 10px;
  12991. box-sizing: border-box;
  12992. position: relative;
  12993. }
  12994. .wb_j_box_span {
  12995. width: 100%;
  12996. overflow: hidden;
  12997. white-space: nowrap;
  12998. text-overflow: ellipsis;
  12999. word-wrap: break-word;
  13000. color: #717C8D;
  13001. }
  13002. .wb_j_box_arrow {
  13003. content: '';
  13004. width: 14px;
  13005. height: 14px;
  13006. background: url(../../../assets/icon/new/u_arrow.png);
  13007. background-size: 100% 100%;
  13008. position: absolute;
  13009. right: 12px;
  13010. top: 50%;
  13011. transform: translateY(-50%);
  13012. }
  13013. .check_classBox {
  13014. height: 400px;
  13015. display: flex;
  13016. border-top: 1.5px solid #E7EBF1;
  13017. border-bottom: 1.5px solid #E7EBF1;
  13018. }
  13019. .check_class_right {
  13020. width: 130px;
  13021. border-right: 1px solid #E7EBF1;
  13022. display: flex;
  13023. align-items: center;
  13024. flex-direction: column;
  13025. height: 100%;
  13026. overflow: auto;
  13027. padding: 15px 0;
  13028. box-sizing: border-box;
  13029. }
  13030. .check_class {
  13031. width: 85%;
  13032. border-radius: 5px;
  13033. height: 30px;
  13034. line-height: 30px;
  13035. text-align: center;
  13036. padding: 0 10px;
  13037. box-sizing: border-box;
  13038. cursor: pointer;
  13039. white-space: nowrap;
  13040. overflow: hidden;
  13041. text-overflow: ellipsis;
  13042. }
  13043. .check_class.activeX {
  13044. background: #E0EAFB;
  13045. color: #3681FC;
  13046. font-weight: 700;
  13047. }
  13048. .check_class+.check_class {
  13049. margin-top: 15px;
  13050. }
  13051. .check_class_left {
  13052. background: #FAFAFA;
  13053. width: calc(100% - 130px);
  13054. padding: 15px;
  13055. box-sizing: border-box;
  13056. }
  13057. .check_class_all_box {
  13058. display: flex;
  13059. margin-bottom: 10px;
  13060. }
  13061. .all_check {
  13062. display: flex;
  13063. align-items: center;
  13064. padding: 2px 0 0;
  13065. margin-left: 10px;
  13066. }
  13067. .all_check>>>.el-checkbox__label {
  13068. line-height: 18px;
  13069. }
  13070. .check_class_left_title {
  13071. font-size: 16px;
  13072. font-weight: 700;
  13073. }
  13074. .check_class_item {
  13075. display: flex;
  13076. flex-wrap: wrap;
  13077. height: calc(100% - 45px);
  13078. overflow: auto;
  13079. justify-content: flex-start;
  13080. align-items: flex-start;
  13081. align-content: flex-start;
  13082. }
  13083. .class_item:first-child {
  13084. /* margin: 0 15px 15px 67px; */
  13085. }
  13086. .class_item {
  13087. margin: 0 15px 15px 0;
  13088. }
  13089. .class_item:hover>>>.el-checkbox__label {
  13090. color: #409EFF;
  13091. }
  13092. .class_item>>>.el-checkbox__label {
  13093. color: #0E1E33;
  13094. }
  13095. .class_item:hover>>>.el-checkbox__inner {
  13096. border-color: #409EFF;
  13097. }
  13098. .class_item>>>.el-checkbox,
  13099. .class_item>>>.el-checkbox__input {
  13100. display: flex;
  13101. align-items: center;
  13102. }</style>