addCourse.vue 499 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894
  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="isdrag == 'task-'+tIndex" @click="goToTask(tIndex)" class="navTask" :class="{
  177. isNavTask:
  178. isClickColor > 0 && isClickColor == tIndex + 1,
  179. isNavOpen: t.toolOpen,
  180. }">
  181. <div @click.stop="taskOpen(tIndex)" class="chapter_upload_open"></div>
  182. <div @mousedown="isdrag = 'task-'+tIndex" @mouseup="isdrag = ''"
  183. @touchstart="isdrag = 'task-'+tIndex" @touchend="isdrag = ''" style="left: 8px;" class="chapter_upload_drag"></div>
  184. <div class="nt_taskBox">
  185. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  186. <div class="nt_taskName">
  187. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  188. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  189. </el-tooltip>
  190. </div>
  191. </div>
  192. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  193. 1
  194. ">
  195. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  196. @click.stop="taskMove(1, tIndex)"></div>
  197. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  198. @click.stop="taskMove(2, tIndex)"></div>
  199. </div> -->
  200. </div>
  201. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  202. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  203. @click="jumpGj(tIndex, toolIndex2)">
  204. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  205. <div>工具{{ toolIndex2 + 1 }}:</div>
  206. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. <div class="basic_box2">
  215. <div style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  216. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  217. <div class="taskBorder" style="padding: 20px 20px 10px;" >
  218. <div class="basic_box" style="
  219. margin: 0;
  220. min-height: 0;
  221. padding: 10px 0 0 !important;
  222. ">
  223. <div style="
  224. display: flex;
  225. margin: 0 0 0 0;
  226. flex-direction: row;
  227. justify-content: space-between;
  228. align-items: center;
  229. ">
  230. <div class="lineTitle" style="margin-bottom:10px">学习内容</div>
  231. <!-- <div style="margin-bottom:10px" v-if="!item.taskJson[0].isFoldchapter" class="show_taskD show"
  232. @click="foldC(0)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  233. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(0)"><img
  234. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  235. </div>
  236. <!-- v-if="!item.taskJson[0].isFoldchapter" -->
  237. <div>
  238. <div class="add_chapters_box add_c_none" v-if="item.taskJson[0].chapterData &&
  239. item.taskJson[0].chapterData.length == 0
  240. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  241. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  242. <div @dragstart="dragStart(item1, index1, 0)" @dragover.prevent="dragOver(index1, 0)"
  243. @dragend="dragEnd()" :draggable="isdrag == 'chapter-'+'0'+'-'+index1" class="chapter_upload" v-for="(item1, index1) in item.taskJson[0]
  244. .chapterData" :key="item1.id" @click="
  245. getChapterData(
  246. $event,
  247. unitIndex,
  248. index,
  249. index1,
  250. item1.type
  251. )
  252. " :class="{
  253. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+'0'+'-'+index1 && oldIndex > index1,
  254. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+'0'+'-'+index1 && oldIndex < index1,
  255. }">
  256. <div @mousedown="isdrag = 'chapter-'+'0'+'-'+index1" @mouseup="isdrag = ''"
  257. @touchstart="isdrag = 'chapter-'+'0'+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  258. <div class="chapter_upload_t" style="width: 100%"></div>
  259. <div class="chapter_upload_o" style="
  260. position: relative;
  261. display: flex;
  262. align-items: center;
  263. ">
  264. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  265. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  266. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  267. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  268. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  269. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  270. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  271. </div>
  272. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  273. </div>
  274. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  275. </div>
  276. </div>
  277. <div class="chapter_upload_n">
  278. <input readonly="true" v-if="item1.type == 2 ||
  279. item1.type == 3 ||
  280. item1.type == 12 ||
  281. item1.type == 13 ||
  282. item1.type == 7
  283. " :placeholder="item1.name" @click="
  284. updataVideoT(
  285. $event,
  286. unitIndex,
  287. 0,
  288. index1
  289. )
  290. " style="
  291. border: none;
  292. outline: none;
  293. width: 80%;
  294. minwidth: 215px;
  295. z-index: 99;
  296. font-size: 14px;
  297. white-space: nowrap;
  298. overflow: hidden;
  299. text-overflow: ellipsis;
  300. " />
  301. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  302. border: none;
  303. outline: none;
  304. width: 80%;
  305. white-space: nowrap;
  306. overflow: hidden;
  307. text-overflow: ellipsis;
  308. " readonly="true" @click="selectAttText(0, index1)" />
  309. <input :placeholder="item1.title ? item1.title : '链接'
  310. " v-if="item1.type == 8" style="
  311. border: none;
  312. outline: none;
  313. width: 80%;
  314. white-space: nowrap;
  315. overflow: hidden;
  316. text-overflow: ellipsis;
  317. " readonly="true" @click="selectLine(0, index1)" />
  318. <input :placeholder="item1.title ? item1.title : '链接'
  319. " v-if="item1.type == 14" style="
  320. border: none;
  321. outline: none;
  322. width: 80%;
  323. white-space: nowrap;
  324. overflow: hidden;
  325. text-overflow: ellipsis;
  326. " readonly="true" @click="openUpdateSource(0, index1)" />
  327. </div>
  328. <div class="chapter_upload_ic">
  329. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  330. </div>
  331. <div class="chapter_upload_ud" style="z-index: 99">
  332. <div class="chapter_upload_up" @click.stop="
  333. upCd(
  334. $event,
  335. unitIndex,
  336. index,
  337. 0,
  338. index1
  339. )
  340. "></div>
  341. <div class="chapter_upload_down" @click.stop="
  342. downCd(
  343. $event,
  344. unitIndex,
  345. index,
  346. 0,
  347. index1
  348. )
  349. "></div>
  350. </div>
  351. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  352. item1.type == 3 ||
  353. item1.type == 12 ||
  354. item1.type == 13 ||
  355. item1.type == 7
  356. " @click.stop="
  357. updataVideoT(
  358. $event,
  359. unitIndex,
  360. 0,
  361. index1
  362. )
  363. ">
  364. <div></div>
  365. </div>
  366. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  367. @click="selectAttText(0, index1)">
  368. <div></div>
  369. </div>
  370. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  371. @click="selectLine(0, index1)">
  372. <div></div>
  373. </div>
  374. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  375. @click="openUpdateSource(0, index1)">
  376. <div></div>
  377. </div>
  378. <div class="chapter_upload_ic_r" @click.stop="
  379. deleteChapterData(
  380. $event,
  381. unitIndex,
  382. index,
  383. index1,
  384. 0
  385. )
  386. ">
  387. <div></div>
  388. </div>
  389. </div>
  390. </div>
  391. </div>
  392. </div>
  393. </div>
  394. <!-- v-if="!item.taskJson[0].isFoldchapter" -->
  395. <div class="add_info_box" style="margin:10px 0 0">
  396. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  397. 文件
  398. <input type="file" accept="*" style="display: none" v-if="inputShow"
  399. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  400. </button>
  401. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  402. 图文
  403. </button>
  404. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  405. 链接
  406. </button>
  407. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  408. 代码
  409. </button>
  410. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  411. 资源
  412. </button>
  413. <!-- <button class="info_btn" @click="addImg($event)">
  414. 其他附件
  415. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  416. " />
  417. </button> -->
  418. </div>
  419. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  420. .proVisible
  421. " class="mask">
  422. <div class="progressBox">
  423. <!-- <div id="closePro" class="closeCss">
  424. <img src="../../../../assets/icon/close.png" alt />
  425. </div> -->
  426. <div class="lbox">
  427. <img src="../../../assets/loading.gif" />上传中,请稍后
  428. </div>
  429. <div style="margin-bottom: 10px">
  430. <span>{{
  431. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  432. .isFinishSize
  433. }}M</span>
  434. /
  435. <span>{{
  436. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  437. .isAllSize
  438. }}M</span>
  439. </div>
  440. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  441. .progress
  442. ? unitJson[unitIndex].chapterInfo[0]
  443. .taskJson[0].progress
  444. : 0
  445. " style="width: 80%"></el-progress>
  446. </div>
  447. </div>
  448. </div>
  449. </div>
  450. <div class="taskBorder" :style="{
  451. minHeight: unitJson[unitIndex].easy && 'unset', paddingBottom: '40px'
  452. }" :class="{ smallTaskBorder: itemTask.isFold === 1 }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  453. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  454. <div v-if="unitJson[unitIndex].easy != 1">
  455. <div :style="{
  456. marginBottom:
  457. unitJson[unitIndex].easy == 3 ||
  458. (unitJson[unitIndex].easy == 5 &&
  459. itemTask.taskType == 1)
  460. ? '75px'
  461. : '0',
  462. }">
  463. <div style="
  464. display: flex;
  465. margin: 0px 0 20px;
  466. flex-direction: row;
  467. justify-content: flex-start;
  468. align-items: center;
  469. ">
  470. <div class="lineTitle">任务概述</div>
  471. </div>
  472. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  473. flex-direction: row;
  474. justify-content: flex-start;
  475. align-items: center;
  476. ">
  477. <!-- <div class="cc_title">
  478. 任务{{ itemTaskIndex + 1 }}
  479. </div> -->
  480. <div class="cc_input">
  481. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  482. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  483. itemTaskIndex
  484. ].task
  485. " />
  486. <!-- <div v-if="!itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  487. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  488. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  489. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div> -->
  490. </div>
  491. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  492. </div>
  493. </div>
  494. </div>
  495. <div style="margin: 25px 0">
  496. <!-- v-if="!itemTask.isFold2" -->
  497. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  498. itemTaskIndex
  499. ].taskDetail
  500. " @change="change"></editor-bar> -->
  501. <textarea rows="2" v-autoHeight="70" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  502. itemTaskIndex
  503. ].taskDetail
  504. "></textarea>
  505. </div>
  506. <div class="toolChoose" style="margin: 20px 0">
  507. <div class="tools">
  508. <div class="leftTools" style="
  509. width: 100%;
  510. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  511. <div style="
  512. display: flex;
  513. flex-direction: row;
  514. align-items: baseline;
  515. flex-wrap: nowrap;
  516. justify-content: flex-start;
  517. position: relative;
  518. ">
  519. <div :id="'gj' + itemTaskIndex + '' + toolIndex"
  520. style="margin-right: 20px; font-weight: bold">
  521. 工具 {{ toolIndex + 1 }} :
  522. </div>
  523. <div class="chooseWho">
  524. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  525. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  526. 互动类
  527. </div>
  528. <div :class="itemTool.toolType == 1
  529. ? 'isChooseActive'
  530. : ''
  531. " @click="
  532. (itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()
  533. ">
  534. 思维类
  535. </div>
  536. <div :class="itemTool.toolType == 6
  537. ? 'isChooseActive'
  538. : ''
  539. " @click="
  540. (itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()
  541. ">
  542. 协作类
  543. </div>
  544. <div :class="itemTool.toolType == 2
  545. ? 'isChooseActive'
  546. : ''
  547. " @click="
  548. (itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()
  549. ">
  550. 测评类
  551. </div>
  552. <div :class="itemTool.toolType == 7
  553. ? 'isChooseActive'
  554. : ''
  555. " @click="
  556. (itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()
  557. ">
  558. 评价类
  559. </div>
  560. <div :class="itemTool.toolType == 3
  561. ? 'isChooseActive'
  562. : ''
  563. " @click="
  564. (itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()
  565. ">
  566. 编程类
  567. </div>
  568. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  569. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  570. 学科类
  571. </div>
  572. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  573. " @click="(itemTool.toolType = 4), $forceUpdate()">
  574. 其他
  575. </div> -->
  576. </div>
  577. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px auto' : '0 0 0 auto' }" v-if="itemTask.toolChoose.length > 1">
  578. <div class="chapter_upload_up2" @click.stop="
  579. upTool(
  580. $event,
  581. unitIndex,
  582. itemTaskIndex,
  583. toolIndex
  584. )
  585. ">上移</div>
  586. <div class="chapter_upload_down2" @click.stop="
  587. downTool(
  588. $event,
  589. unitIndex,
  590. itemTaskIndex,
  591. toolIndex
  592. )
  593. ">下移</div>
  594. </div>
  595. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  596. @click="fold3(itemTaskIndex, toolIndex)"
  597. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  598. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  599. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  600. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  601. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  602. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  603. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  604. </div>
  605. <!-- v-show="!itemTool.isFold3" -->
  606. <div style="min-height: 163px" >
  607. <div class="toolSort" v-if="itemTool.toolType == 0">
  608. <!-- <div class="tool">
  609. <div
  610. class="whiteBIcon"
  611. @click="addTools(8, itemTaskIndex, toolIndex)"
  612. >
  613. <img src="../../../assets/icon/secondToolList/library.png" alt />
  614. <div style="margin: 5px 0">素材库</div>
  615. </div>
  616. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  617. <img
  618. src="../../../assets/icon/checkNo.png"
  619. alt
  620. v-if="itemTool.tool.indexOf(8) == -1"
  621. />
  622. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  623. alt /><span>已选择</span></div>
  624. </div>
  625. </div>-->
  626. <!-- <div class="tool">
  627. <div
  628. class="whiteBIcon"
  629. @click="addTools(17, itemTaskIndex, toolIndex)"
  630. >
  631. <img
  632. src="../../../assets/icon/secondToolList/library.png"
  633. alt
  634. />
  635. <div style="margin: 5px 0">学习资料</div>
  636. </div>
  637. <div
  638. class="check"
  639. @click="addTools(17, itemTaskIndex, toolIndex)"
  640. >
  641. <img
  642. src="../../../assets/icon/checkNo.png"
  643. alt
  644. v-if="itemTool.tool.indexOf(17) == -1"
  645. />
  646. <img
  647. src="../../../assets/icon/checkedIs.png"
  648. alt
  649. v-else
  650. />
  651. </div>10
  652. </div> -->
  653. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  654. @click="addTools(10, itemTaskIndex, toolIndex)">
  655. <div class="whiteBIcon" @click.stop="
  656. openTools(itemTaskIndex, 10, toolIndex)
  657. ">
  658. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  659. <div style="margin: 5px 0">倒计时</div>
  660. </div>
  661. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  662. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  663. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  664. <!-- <div class="check" @click="
  665. addTools(10, itemTaskIndex, toolIndex)
  666. ">
  667. <img src="../../../assets/icon/checkNo.png" alt
  668. v-if="itemTool.tool.indexOf(10) == -1" />
  669. <div class="checkDiv" v-else>
  670. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  671. </div>
  672. </div> -->
  673. </div>
  674. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  675. @click="addTools(65, itemTaskIndex, toolIndex)">
  676. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  677. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  678. <div style="margin: 5px 0">挑人</div>
  679. </div>
  680. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  681. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  682. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  683. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  684. <img src="../../../assets/icon/checkNo.png" alt
  685. v-if="itemTool.tool.indexOf(65) == -1" />
  686. <div class="checkDiv" v-else>
  687. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  688. </div>
  689. </div> -->
  690. </div>
  691. <!-- <div class="tool">
  692. <div
  693. class="whiteBIcon"
  694. @click="
  695. openTools(itemTaskIndex, 49, toolIndex)
  696. "
  697. >
  698. <img
  699. src="../../../assets/icon/fourthToolList/group.png"
  700. alt
  701. />
  702. <div style="margin: 5px 0">学生分组</div>
  703. </div>
  704. <div
  705. class="check"
  706. @click="
  707. addTools(49, itemTaskIndex, toolIndex)
  708. "
  709. >
  710. <img
  711. src="../../../assets/icon/checkNo.png"
  712. alt
  713. v-if="itemTool.tool.indexOf(49) == -1"
  714. />
  715. <div class="checkDiv" v-else>
  716. <img
  717. src="../../../assets/icon/checkedIs.png"
  718. alt
  719. /><span>已选择</span>
  720. </div>
  721. </div>
  722. </div> -->
  723. <!-- <div class="tool">
  724. <div class="whiteBIcon" @click="
  725. openTools(itemTaskIndex, 62, toolIndex)
  726. ">
  727. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  728. <div style="margin: 5px 0">交互视频</div>
  729. </div>
  730. <div class="check" @click="
  731. addTools(62, itemTaskIndex, toolIndex)
  732. ">
  733. <img src="../../../assets/icon/checkNo.png" alt
  734. v-if="itemTool.tool.indexOf(62) == -1" />
  735. <div class="checkDiv" v-else>
  736. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  737. </div>
  738. </div>
  739. </div> -->
  740. </div>
  741. <div class="toolSort" v-if="itemTool.toolType == 1">
  742. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  743. @click="addTools(7, itemTaskIndex, toolIndex)">
  744. <div class="whiteBIcon" @click.stop="
  745. addTools(7, itemTaskIndex, toolIndex)
  746. ">
  747. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  748. <div style="margin: 5px 0">思维网格</div>
  749. </div>
  750. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  751. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  752. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  753. <!-- <div class="check" @click="
  754. addTools(7, itemTaskIndex, toolIndex)
  755. ">
  756. <img src="../../../assets/icon/checkNo.png" alt
  757. v-if="itemTool.tool.indexOf(7) == -1" />
  758. <div class="checkDiv" v-else>
  759. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  760. </div>
  761. </div> -->
  762. </div>
  763. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  764. @click="addTools(1, itemTaskIndex, toolIndex)">
  765. <div class="whiteBIcon" @click.stop="
  766. openTools(itemTaskIndex, 1, toolIndex)
  767. ">
  768. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  769. <div style="margin: 5px 0">电子白板</div>
  770. </div>
  771. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  772. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  773. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  774. <!-- <div class="check" @click="
  775. addTools(1, itemTaskIndex, toolIndex)
  776. ">
  777. <img src="../../../assets/icon/checkNo.png" alt
  778. v-if="itemTool.tool.indexOf(1) == -1" />
  779. <div class="checkDiv" v-else>
  780. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  781. </div>
  782. </div> -->
  783. </div>
  784. <!-- <div class="tool">
  785. <div
  786. class="whiteBIcon"
  787. @click="addTools(2, itemTaskIndex, toolIndex)"
  788. >
  789. <img
  790. src="../../../assets/icon/secondToolList/note.png"
  791. alt
  792. />
  793. <div style="margin: 5px 0">便签</div>
  794. </div>
  795. <div
  796. class="check"
  797. @click="addTools(2, itemTaskIndex, toolIndex)"
  798. >
  799. <img
  800. src="../../../assets/icon/checkNo.png"
  801. alt
  802. v-if="itemTool.tool.indexOf(2) == -1"
  803. />
  804. <div class="checkDiv" v-else>
  805. <img
  806. src="../../../assets/icon/checkedIs.png"
  807. alt
  808. /><span>已选择</span>
  809. </div>
  810. </div>
  811. </div> -->
  812. <!-- <div class="tool">
  813. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  814. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  815. <div style="margin: 5px 0">协同文档</div>
  816. </div>
  817. <div
  818. class="check"
  819. @click="addTools(6, itemTaskIndex, toolIndex)"
  820. >
  821. <img
  822. src="../../../assets/icon/checkNo.png"
  823. alt
  824. v-if="itemTool.tool.indexOf(6) == -1"
  825. />
  826. <div class="checkDiv" v-else>
  827. <img
  828. src="../../../assets/icon/checkedIs.png"
  829. alt
  830. /><span>已选择</span>
  831. </div>
  832. </div>
  833. </div> -->
  834. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  835. @click="addTools(52, itemTaskIndex, toolIndex)">
  836. <div class="whiteBIcon" @click.stop="
  837. openTools(itemTaskIndex, 52, toolIndex)
  838. ">
  839. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  840. <div style="margin: 5px 0">文档</div>
  841. </div>
  842. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  843. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  844. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  845. <!-- <div class="check" @click="
  846. addTools(52, itemTaskIndex, toolIndex)
  847. ">
  848. <img src="../../../assets/icon/checkNo.png" alt
  849. v-if="itemTool.tool.indexOf(52) == -1" />
  850. <div class="checkDiv" v-else>
  851. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  852. </div>
  853. </div> -->
  854. </div>
  855. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  856. @click="addTools(3, itemTaskIndex, toolIndex)">
  857. <div class="whiteBIcon" @click.stop="
  858. openTools(itemTaskIndex, 3, toolIndex)
  859. ">
  860. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  861. <div style="margin: 5px 0">思维导图</div>
  862. </div>
  863. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  864. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  865. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  866. <!-- <div class="check" @click="
  867. addTools(3, itemTaskIndex, toolIndex)
  868. ">
  869. <img src="../../../assets/icon/checkNo.png" alt
  870. v-if="itemTool.tool.indexOf(3) == -1" />
  871. <div class="checkDiv" v-else>
  872. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  873. </div>
  874. </div> -->
  875. </div>
  876. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  877. @click="addTools(48, itemTaskIndex, toolIndex)">
  878. <div class="whiteBIcon" @click.stop="
  879. openTools(itemTaskIndex, 48, toolIndex)
  880. ">
  881. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  882. <div style="margin: 5px 0">表格</div>
  883. </div>
  884. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  885. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  886. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  887. <!-- <div class="check" @click="
  888. addTools(48, itemTaskIndex, toolIndex)
  889. ">
  890. <img src="../../../assets/icon/checkNo.png" alt
  891. v-if="itemTool.tool.indexOf(48) == -1" />
  892. <div class="checkDiv" v-else>
  893. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  894. </div>
  895. </div> -->
  896. </div>
  897. </div>
  898. <div class="toolSort" v-if="itemTool.toolType == 6">
  899. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  900. @click="addTools(49, itemTaskIndex, toolIndex)">
  901. <div class="whiteBIcon" @click.stop="
  902. openTools(itemTaskIndex, 49, toolIndex)
  903. ">
  904. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  905. <div style="margin: 5px 0">学生分组</div>
  906. </div>
  907. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  908. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  909. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  910. <!-- <div class="check" @click="
  911. addTools(49, itemTaskIndex, toolIndex)
  912. ">
  913. <img src="../../../assets/icon/checkNo.png" alt
  914. v-if="itemTool.tool.indexOf(49) == -1" />
  915. <div class="checkDiv" v-else>
  916. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  917. </div>
  918. </div> -->
  919. </div>
  920. </div>
  921. <div class="toolSort" v-if="itemTool.toolType == 2">
  922. <!-- <div class="tool">
  923. <div
  924. class="whiteBIcon"
  925. @click="addTools(5, itemTaskIndex, toolIndex)"
  926. >
  927. <img
  928. src="../../../assets/icon/thirdToolList/score.png"
  929. alt
  930. />
  931. <div style="margin: 5px 0">量规评分</div>
  932. </div>
  933. <div
  934. class="check"
  935. @click="addTools(5, itemTaskIndex, toolIndex)"
  936. >
  937. <img
  938. src="../../../assets/icon/checkNo.png"
  939. alt
  940. v-if="itemTool.tool.indexOf(5) == -1"
  941. />
  942. <img
  943. src="../../../assets/icon/checkedIs.png"
  944. alt
  945. v-else
  946. />
  947. </div>
  948. </div>-->
  949. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  950. @click="addTools(4, itemTaskIndex, toolIndex)">
  951. <div class="whiteBIcon" @click.stop="
  952. openTools(itemTaskIndex, 4, toolIndex)
  953. ">
  954. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  955. <div style="margin: 5px 0">问卷调查</div>
  956. </div>
  957. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  958. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  959. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  960. <!-- <div class="check" @click="
  961. addTools(4, itemTaskIndex, toolIndex)
  962. ">
  963. <img src="../../../assets/icon/checkNo.png" alt
  964. v-if="itemTool.tool.indexOf(4) == -1" />
  965. <div class="checkDiv" v-else>
  966. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  967. </div>
  968. </div> -->
  969. </div>
  970. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  971. @click="addTools(45, itemTaskIndex, toolIndex)">
  972. <div class="whiteBIcon" @click.stop="
  973. openTools(itemTaskIndex, 45, toolIndex)
  974. ">
  975. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  976. <div style="margin: 5px 0">选择题</div>
  977. </div>
  978. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  979. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  980. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  981. <!-- <div class="check" @click="
  982. addTools(45, itemTaskIndex, toolIndex)
  983. ">
  984. <img src="../../../assets/icon/checkNo.png" alt
  985. v-if="itemTool.tool.indexOf(45) == -1" />
  986. <div class="checkDiv" v-else>
  987. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  988. </div>
  989. </div> -->
  990. </div>
  991. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  992. @click="addTools(15, itemTaskIndex, toolIndex)">
  993. <div class="whiteBIcon" @click.stop="
  994. openTools(itemTaskIndex, 15, toolIndex)
  995. ">
  996. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  997. <div style="margin: 5px 0">问答</div>
  998. </div>
  999. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1000. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  1001. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1002. <!-- <div class="check" @click="
  1003. addTools(15, itemTaskIndex, toolIndex)
  1004. ">
  1005. <img src="../../../assets/icon/checkNo.png" alt
  1006. v-if="itemTool.tool.indexOf(15) == -1" />
  1007. <div class="checkDiv" v-else>
  1008. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1009. </div>
  1010. </div> -->
  1011. </div>
  1012. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1013. @click="addTools(16, itemTaskIndex, toolIndex)">
  1014. <div class="whiteBIcon" @click.stop="
  1015. addTools(16, itemTaskIndex, toolIndex)
  1016. ">
  1017. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1018. <div style="margin: 5px 0">作业提交</div>
  1019. </div>
  1020. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1021. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1022. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1023. <!-- <div class="check" @click="
  1024. addTools(16, itemTaskIndex, toolIndex)
  1025. ">
  1026. <img src="../../../assets/icon/checkNo.png" alt
  1027. v-if="itemTool.tool.indexOf(16) == -1" />
  1028. <div class="checkDiv" v-else>
  1029. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1030. </div>
  1031. </div> -->
  1032. </div>
  1033. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1034. @click="addTools(50, itemTaskIndex, toolIndex)">
  1035. <div class="whiteBIcon" @click.stop="
  1036. addTools(50, itemTaskIndex, toolIndex)
  1037. ">
  1038. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1039. <div style="margin: 5px 0">批量上传</div>
  1040. </div>
  1041. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1042. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1043. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1044. <!-- <div class="check" @click="
  1045. addTools(50, itemTaskIndex, toolIndex)
  1046. ">
  1047. <img src="../../../assets/icon/checkNo.png" alt
  1048. v-if="itemTool.tool.indexOf(50) == -1" />
  1049. <div class="checkDiv" v-else>
  1050. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1051. </div>
  1052. </div> -->
  1053. </div>
  1054. <!-- <div class="tool">
  1055. <div
  1056. class="whiteBIcon"
  1057. @click="
  1058. openTools(itemTaskIndex, 40, toolIndex)
  1059. "
  1060. >
  1061. <img
  1062. src="../../../assets/icon/thirdToolList/eval.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">个人评价</div>
  1066. </div>
  1067. <div
  1068. class="check"
  1069. @click="
  1070. addTools(40, itemTaskIndex, toolIndex)
  1071. "
  1072. >
  1073. <img
  1074. src="../../../assets/icon/checkNo.png"
  1075. alt
  1076. v-if="itemTool.tool.indexOf(40) == -1"
  1077. />
  1078. <div class="checkDiv" v-else>
  1079. <img
  1080. src="../../../assets/icon/checkedIs.png"
  1081. alt
  1082. /><span>已选择</span>
  1083. </div>
  1084. </div>
  1085. </div> -->
  1086. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1087. @click="addTools(41, itemTaskIndex, toolIndex)">
  1088. <div class="whiteBIcon" @click.stop="
  1089. openTools(itemTaskIndex, 41, toolIndex)
  1090. ">
  1091. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1092. <div style="margin: 5px 0">选择匹配</div>
  1093. </div>
  1094. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1095. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1096. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1097. <!-- <div class="check" @click="
  1098. addTools(41, itemTaskIndex, toolIndex)
  1099. ">
  1100. <img src="../../../assets/icon/checkNo.png" alt
  1101. v-if="itemTool.tool.indexOf(41) == -1" />
  1102. <div class="checkDiv" v-else>
  1103. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1104. </div>
  1105. </div> -->
  1106. </div>
  1107. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1108. @click="addTools(47, itemTaskIndex, toolIndex)">
  1109. <div class="whiteBIcon" @click.stop="
  1110. openTools(itemTaskIndex, 47, toolIndex)
  1111. ">
  1112. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1113. <div style="margin: 5px 0">排序</div>
  1114. </div>
  1115. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1116. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1117. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1118. <!-- <div class="check" @click="
  1119. addTools(47, itemTaskIndex, toolIndex)
  1120. ">
  1121. <img src="../../../assets/icon/checkNo.png" alt
  1122. v-if="itemTool.tool.indexOf(47) == -1" />
  1123. <div class="checkDiv" v-else>
  1124. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1125. </div>
  1126. </div> -->
  1127. </div>
  1128. <!-- <div class="tool">
  1129. <div
  1130. class="whiteBIcon"
  1131. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1132. >
  1133. <img
  1134. src="../../../assets/icon/thirdToolList/mp3.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">上传音频</div>
  1138. </div>
  1139. <div
  1140. class="check"
  1141. @click="addTools(42, itemTaskIndex, toolIndex)"
  1142. >
  1143. <img
  1144. src="../../../assets/icon/checkNo.png"
  1145. alt
  1146. v-if="itemTool.tool.indexOf(42) == -1"
  1147. />
  1148. <img
  1149. src="../../../assets/icon/checkedIs.png"
  1150. alt
  1151. v-else
  1152. />
  1153. </div>
  1154. </div> -->
  1155. </div>
  1156. <div class="toolSort" v-if="itemTool.toolType == 3">
  1157. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1158. @click="addTools(18, itemTaskIndex, toolIndex)">
  1159. <div class="whiteBIcon" @click.stop="
  1160. addTools(18, itemTaskIndex, toolIndex)
  1161. ">
  1162. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1163. <div style="margin: 5px 0">训练平台</div>
  1164. </div>
  1165. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1166. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1167. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1168. <!-- <div class="check" @click="
  1169. addTools(18, itemTaskIndex, toolIndex)
  1170. ">
  1171. <img src="../../../assets/icon/checkNo.png" alt
  1172. v-if="itemTool.tool.indexOf(18) == -1" />
  1173. <div class="checkDiv" v-else>
  1174. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1175. </div>
  1176. </div> -->
  1177. </div>
  1178. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1179. @click="addTools(21, itemTaskIndex, toolIndex)">
  1180. <div class="whiteBIcon" @click.stop="
  1181. addTools(21, itemTaskIndex, toolIndex)
  1182. ">
  1183. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1184. <div style="margin: 5px 0">AIoT Blockly</div>
  1185. </div>
  1186. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1187. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1188. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1189. <!-- <div class="check" @click="
  1190. addTools(21, itemTaskIndex, toolIndex)
  1191. ">
  1192. <img src="../../../assets/icon/checkNo.png" alt
  1193. v-if="itemTool.tool.indexOf(21) == -1" />
  1194. <div class="checkDiv" v-else>
  1195. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1196. </div>
  1197. </div> -->
  1198. </div>
  1199. <!-- <div class="tool">
  1200. <div class="whiteBIcon" @click="
  1201. addTools(22, itemTaskIndex, toolIndex)
  1202. ">
  1203. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1204. <div style="margin: 5px 0">AI体验</div>
  1205. </div>
  1206. <div class="check" @click="
  1207. addTools(22, itemTaskIndex, toolIndex)
  1208. ">
  1209. <img src="../../../assets/icon/checkNo.png" alt
  1210. v-if="itemTool.tool.indexOf(22) == -1" />
  1211. <div class="checkDiv" v-else>
  1212. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1213. </div>
  1214. </div>
  1215. </div> -->
  1216. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1217. @click="addTools(23, itemTaskIndex, toolIndex)">
  1218. <div class="whiteBIcon" @click.stop="
  1219. addTools(23, itemTaskIndex, toolIndex)
  1220. ">
  1221. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1222. <div style="margin: 5px 0">AI Python</div>
  1223. </div>
  1224. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1225. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1226. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1227. <!-- <div class="check" @click="
  1228. addTools(23, itemTaskIndex, toolIndex)
  1229. ">
  1230. <img src="../../../assets/icon/checkNo.png" alt
  1231. v-if="itemTool.tool.indexOf(23) == -1" />
  1232. <div class="checkDiv" v-else>
  1233. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1234. </div>
  1235. </div> -->
  1236. </div>
  1237. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1238. @click="addTools(24, itemTaskIndex, toolIndex)">
  1239. <div class="whiteBIcon" @click.stop="
  1240. addTools(24, itemTaskIndex, toolIndex)
  1241. ">
  1242. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1243. <div style="margin: 5px 0">AI Blockly</div>
  1244. </div>
  1245. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1246. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1247. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1248. <!-- <div class="check" @click="
  1249. addTools(24, itemTaskIndex, toolIndex)
  1250. ">
  1251. <img src="../../../assets/icon/checkNo.png" alt
  1252. v-if="itemTool.tool.indexOf(24) == -1" />
  1253. <div class="checkDiv" v-else>
  1254. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1255. </div>
  1256. </div> -->
  1257. </div>
  1258. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1259. @click="addTools(32, itemTaskIndex, toolIndex)">
  1260. <div class="whiteBIcon" @click.stop="
  1261. addTools(32, itemTaskIndex, toolIndex)
  1262. ">
  1263. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1264. <div style="margin: 5px 0">源码编辑</div>
  1265. </div>
  1266. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1267. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1268. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1269. <!-- <div class="check" @click="
  1270. addTools(32, itemTaskIndex, toolIndex)
  1271. ">
  1272. <img src="../../../assets/icon/checkNo.png" alt
  1273. v-if="itemTool.tool.indexOf(32) == -1" />
  1274. <div class="checkDiv" v-else>
  1275. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1276. </div>
  1277. </div> -->
  1278. </div>
  1279. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1280. @click="addTools(57, itemTaskIndex, toolIndex)">
  1281. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1282. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1283. <div style="margin: 5px 0">CocoPi</div>
  1284. </div>
  1285. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1286. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1287. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1288. <!-- <div class="check" @click="
  1289. addTools(57, itemTaskIndex, toolIndex)
  1290. ">
  1291. <img src="../../../assets/icon/checkNo.png" alt
  1292. v-if="itemTool.tool.indexOf(57) == -1" />
  1293. <div class="checkDiv" v-else>
  1294. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1295. </div>
  1296. </div> -->
  1297. </div>
  1298. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1299. @click="addTools(63, itemTaskIndex, toolIndex)">
  1300. <div class="whiteBIcon" @click.stop="
  1301. addTools(63, itemTaskIndex, toolIndex)
  1302. ">
  1303. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1304. <div style="margin: 5px 0">海龟编程</div>
  1305. </div>
  1306. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1307. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1308. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1309. <!-- <div class="check" @click="
  1310. addTools(63, itemTaskIndex, toolIndex)
  1311. ">
  1312. <img src="../../../assets/icon/checkNo.png" alt
  1313. v-if="itemTool.tool.indexOf(63) == -1" />
  1314. <div class="checkDiv" v-else>
  1315. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1316. </div>
  1317. </div> -->
  1318. </div>
  1319. </div>
  1320. <div class="toolSort" v-if="itemTool.toolType == 5">
  1321. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1322. @click="addTools(28, itemTaskIndex, toolIndex)">
  1323. <div class="whiteBIcon" @click.stop="
  1324. addTools(28, itemTaskIndex, toolIndex)
  1325. ">
  1326. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1327. <div style="margin: 5px 0">翻译</div>
  1328. </div>
  1329. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1330. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1331. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1332. <!-- <div class="check" @click="
  1333. addTools(28, itemTaskIndex, toolIndex)
  1334. ">
  1335. <img src="../../../assets/icon/checkNo.png" alt
  1336. v-if="itemTool.tool.indexOf(28) == -1" />
  1337. <div class="checkDiv" v-else>
  1338. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1339. </div>
  1340. </div> -->
  1341. </div>
  1342. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1343. @click="addTools(31, itemTaskIndex, toolIndex)">
  1344. <div class="whiteBIcon" @click.stop="
  1345. addTools(31, itemTaskIndex, toolIndex)
  1346. ">
  1347. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1348. <div style="margin: 5px 0">数字画板</div>
  1349. </div>
  1350. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1351. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1352. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1353. <!-- <div class="check" @click="
  1354. addTools(31, itemTaskIndex, toolIndex)
  1355. ">
  1356. <img src="../../../assets/icon/checkNo.png" alt
  1357. v-if="itemTool.tool.indexOf(31) == -1" />
  1358. <div class="checkDiv" v-else>
  1359. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1360. </div>
  1361. </div> -->
  1362. </div>
  1363. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1364. @click="addTools(39, itemTaskIndex, toolIndex)">
  1365. <div class="whiteBIcon" @click.stop="
  1366. addTools(39, itemTaskIndex, toolIndex)
  1367. ">
  1368. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1369. <div style="margin: 5px 0">GeoGebra</div>
  1370. </div>
  1371. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1372. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  1373. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1374. <!-- <div class="check" @click="
  1375. addTools(39, itemTaskIndex, toolIndex)
  1376. ">
  1377. <img src="../../../assets/icon/checkNo.png" alt
  1378. v-if="itemTool.tool.indexOf(39) == -1" />
  1379. <div class="checkDiv" v-else>
  1380. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1381. </div>
  1382. </div> -->
  1383. </div>
  1384. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  1385. @click="addTools(66, itemTaskIndex, toolIndex)">
  1386. <div class="whiteBIcon" @click.stop="
  1387. addTools(66, itemTaskIndex, toolIndex)
  1388. ">
  1389. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1390. <div style="margin: 5px 0">公式编辑</div>
  1391. </div>
  1392. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1393. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  1394. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1395. <!-- <div class="check" @click="
  1396. addTools(66, itemTaskIndex, toolIndex)
  1397. ">
  1398. <img src="../../../assets/icon/checkNo.png" alt
  1399. v-if="itemTool.tool.indexOf(66) == -1" />
  1400. <div class="checkDiv" v-else>
  1401. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1402. </div>
  1403. </div> -->
  1404. </div>
  1405. <!-- <div class="tool">
  1406. <div class="whiteBIcon" @click="
  1407. addTools(67, itemTaskIndex, toolIndex)
  1408. ">
  1409. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1410. <div style="margin: 5px 0">分子结构</div>
  1411. </div>
  1412. <div class="check" @click="
  1413. addTools(67, itemTaskIndex, toolIndex)
  1414. ">
  1415. <img src="../../../assets/icon/checkNo.png" alt
  1416. v-if="itemTool.tool.indexOf(67) == -1" />
  1417. <div class="checkDiv" v-else>
  1418. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1419. </div>
  1420. </div>
  1421. </div> -->
  1422. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  1423. @click="addTools(68, itemTaskIndex, toolIndex)">
  1424. <div class="whiteBIcon" @click.stop="
  1425. addTools(68, itemTaskIndex, toolIndex)
  1426. ">
  1427. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1428. <div style="margin: 5px 0">时间轴</div>
  1429. </div>
  1430. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1431. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  1432. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1433. <!-- <div class="check" @click="
  1434. addTools(68, itemTaskIndex, toolIndex)
  1435. ">
  1436. <img src="../../../assets/icon/checkNo.png" alt
  1437. v-if="itemTool.tool.indexOf(68) == -1" />
  1438. <div class="checkDiv" v-else>
  1439. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1440. </div>
  1441. </div> -->
  1442. </div>
  1443. <!-- <div class="tool">
  1444. <div class="whiteBIcon" @click="
  1445. addTools(28, itemTaskIndex, toolIndex)
  1446. ">
  1447. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1448. <div style="margin: 5px 0">翻译</div>
  1449. </div>
  1450. <div class="check" @click="
  1451. addTools(28, itemTaskIndex, toolIndex)
  1452. ">
  1453. <img src="../../../assets/icon/checkNo.png" alt
  1454. v-if="itemTool.tool.indexOf(28) == -1" />
  1455. <div class="checkDiv" v-else>
  1456. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1457. </div>
  1458. </div>
  1459. </div>
  1460. <div class="tool">
  1461. <div class="whiteBIcon" @click="
  1462. addTools(37, itemTaskIndex, toolIndex)
  1463. ">
  1464. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1465. <div style="margin: 5px 0">魔盒识字</div>
  1466. </div>
  1467. <div class="check" @click="
  1468. addTools(37, itemTaskIndex, toolIndex)
  1469. ">
  1470. <img src="../../../assets/icon/checkNo.png" alt
  1471. v-if="itemTool.tool.indexOf(37) == -1" />
  1472. <div class="checkDiv" v-else>
  1473. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1474. </div>
  1475. </div>
  1476. </div>
  1477. <div class="tool">
  1478. <div class="whiteBIcon" @click="
  1479. addTools(38, itemTaskIndex, toolIndex)
  1480. ">
  1481. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1482. <div style="margin: 5px 0">24点</div>
  1483. </div>
  1484. <div class="check" @click="
  1485. addTools(38, itemTaskIndex, toolIndex)
  1486. ">
  1487. <img src="../../../assets/icon/checkNo.png" alt
  1488. v-if="itemTool.tool.indexOf(38) == -1" />
  1489. <div class="checkDiv" v-else>
  1490. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1491. </div>
  1492. </div>
  1493. </div>
  1494. <div class="tool">
  1495. <div class="whiteBIcon" @click="
  1496. addTools(31, itemTaskIndex, toolIndex)
  1497. ">
  1498. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1499. <div style="margin: 5px 0">数学画板</div>
  1500. </div>
  1501. <div class="check" @click="
  1502. addTools(31, itemTaskIndex, toolIndex)
  1503. ">
  1504. <img src="../../../assets/icon/checkNo.png" alt
  1505. v-if="itemTool.tool.indexOf(31) == -1" />
  1506. <div class="checkDiv" v-else>
  1507. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1508. </div>
  1509. </div>
  1510. </div>
  1511. <div class="tool">
  1512. <div class="whiteBIcon" @click="
  1513. addTools(39, itemTaskIndex, toolIndex)
  1514. ">
  1515. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1516. <div style="margin: 5px 0">GeoGebra</div>
  1517. </div>
  1518. <div class="check" @click="
  1519. addTools(39, itemTaskIndex, toolIndex)
  1520. ">
  1521. <img src="../../../assets/icon/checkNo.png" alt
  1522. v-if="itemTool.tool.indexOf(39) == -1" />
  1523. <div class="checkDiv" v-else>
  1524. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1525. </div>
  1526. </div>
  1527. </div>
  1528. <div class="tool">
  1529. <div class="whiteBIcon" @click="
  1530. addTools(58, itemTaskIndex, toolIndex)
  1531. ">
  1532. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1533. <div style="margin: 5px 0">模拟驾驶</div>
  1534. </div>
  1535. <div class="check" @click="
  1536. addTools(58, itemTaskIndex, toolIndex)
  1537. ">
  1538. <img src="../../../assets/icon/checkNo.png" alt
  1539. v-if="itemTool.tool.indexOf(58) == -1" />
  1540. <div class="checkDiv" v-else>
  1541. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1542. </div>
  1543. </div>
  1544. </div>
  1545. <div class="tool">
  1546. <div class="whiteBIcon" @click="
  1547. addTools(59, itemTaskIndex, toolIndex)
  1548. ">
  1549. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1550. <div style="margin: 5px 0">路径搜索</div>
  1551. </div>
  1552. <div class="check" @click="
  1553. addTools(59, itemTaskIndex, toolIndex)
  1554. ">
  1555. <img src="../../../assets/icon/checkNo.png" alt
  1556. v-if="itemTool.tool.indexOf(59) == -1" />
  1557. <div class="checkDiv" v-else>
  1558. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1559. </div>
  1560. </div>
  1561. </div>
  1562. <div class="tool">
  1563. <div class="whiteBIcon" @click="
  1564. addTools(60, itemTaskIndex, toolIndex)
  1565. ">
  1566. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1567. <div style="margin: 5px 0">深度学习</div>
  1568. </div>
  1569. <div class="check" @click="
  1570. addTools(60, itemTaskIndex, toolIndex)
  1571. ">
  1572. <img src="../../../assets/icon/checkNo.png" alt
  1573. v-if="itemTool.tool.indexOf(60) == -1" />
  1574. <div class="checkDiv" v-else>
  1575. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1576. </div>
  1577. </div>
  1578. </div>
  1579. <div class="tool">
  1580. <div class="whiteBIcon" @click="
  1581. addTools(61, itemTaskIndex, toolIndex)
  1582. ">
  1583. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1584. <div style="margin: 5px 0">全历史</div>
  1585. </div>
  1586. <div class="check" @click="
  1587. addTools(61, itemTaskIndex, toolIndex)
  1588. ">
  1589. <img src="../../../assets/icon/checkNo.png" alt
  1590. v-if="itemTool.tool.indexOf(61) == -1" />
  1591. <div class="checkDiv" v-else>
  1592. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1593. </div>
  1594. </div>
  1595. </div> -->
  1596. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  1597. @click="addTools(69, itemTaskIndex, toolIndex)">
  1598. <div class="whiteBIcon" @click.stop="
  1599. openTools(itemTaskIndex, 69, toolIndex)
  1600. ">
  1601. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  1602. <div style="margin: 5px 0">英语写作</div>
  1603. </div>
  1604. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1605. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1"><img
  1606. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1607. <!-- <div class="check" @click="
  1608. addTools(4, itemTaskIndex, toolIndex)
  1609. ">
  1610. <img src="../../../assets/icon/checkNo.png" alt
  1611. v-if="itemTool.tool.indexOf(4) == -1" />
  1612. <div class="checkDiv" v-else>
  1613. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1614. </div>
  1615. </div> -->
  1616. </div>
  1617. </div>
  1618. <div class="toolSort" v-if="itemTool.toolType == 7">
  1619. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1620. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1621. <div class="whiteBIcon" @click="
  1622. openTools(itemTaskIndex, 40, toolIndex)
  1623. ">
  1624. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1625. <div style="margin: 5px 0">个人评价</div>
  1626. </div>
  1627. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1628. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1629. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1630. <!-- <div class="check" @click="
  1631. addTools(40, itemTaskIndex, toolIndex)
  1632. ">
  1633. <img src="../../../assets/icon/checkNo.png" alt
  1634. v-if="itemTool.tool.indexOf(40) == -1" />
  1635. <div class="checkDiv" v-else>
  1636. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1637. </div>
  1638. </div> -->
  1639. </div>
  1640. </div>
  1641. <div class="toolSort" v-if="itemTool.toolType == 4">
  1642. <div class="tool">
  1643. <div class="whiteBIcon" @click="
  1644. addTools(26, itemTaskIndex, toolIndex)
  1645. ">
  1646. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1647. <div style="margin: 5px 0">课程设计</div>
  1648. </div>
  1649. <div class="check" @click="
  1650. addTools(26, itemTaskIndex, toolIndex)
  1651. ">
  1652. <img src="../../../assets/icon/checkNo.png" alt
  1653. v-if="itemTool.tool.indexOf(26) == -1" />
  1654. <div class="checkDiv" v-else>
  1655. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1656. </div>
  1657. </div>
  1658. </div>
  1659. <div class="tool">
  1660. <div class="whiteBIcon" @click="
  1661. addTools(25, itemTaskIndex, toolIndex)
  1662. ">
  1663. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1664. <div style="margin: 5px 0">目标管理</div>
  1665. </div>
  1666. <div class="check" @click="
  1667. addTools(25, itemTaskIndex, toolIndex)
  1668. ">
  1669. <img src="../../../assets/icon/checkNo.png" alt
  1670. v-if="itemTool.tool.indexOf(25) == -1" />
  1671. <div class="checkDiv" v-else>
  1672. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1673. </div>
  1674. </div>
  1675. </div>
  1676. <!-- <div class="tool">
  1677. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1678. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1679. <div style="margin: 5px 0">汉字宫</div>
  1680. </div>
  1681. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1682. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1683. <div class="checkDiv" v-else>
  1684. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1685. </div>
  1686. </div>
  1687. </div> -->
  1688. </div>
  1689. </div>
  1690. <!-- v-show="!itemTool.isFold3" -->
  1691. <div>
  1692. <textarea rows="3" type="text" v-autoHeight="87" placeholder="添加工具描述" class="binfo_input"
  1693. style="
  1694. margin: 0 0 20px 0;
  1695. " v-model="itemTool.toolDetail"></textarea>
  1696. </div>
  1697. </div>
  1698. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1699. <div class="addToolImg">
  1700. <img src="../../../assets/icon/add.png" alt />
  1701. </div>
  1702. <div>添加工具</div>
  1703. </div> -->
  1704. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)"
  1705. style="margin: 0 auto;padding: 0 30px;height: 45px;">
  1706. 添加工具
  1707. </button>
  1708. </div>
  1709. </div>
  1710. <div class="funBlock" style="padding: 0">
  1711. <div class="fold" @click="fold(itemTaskIndex, $event)">
  1712. <div
  1713. class="arrow"
  1714. :class="{ arrowZ: !(itemTask.isFold === 1) }"
  1715. ></div>
  1716. <div>
  1717. {{ itemTask.isFold === 1 ? "展开任务" : "收起任务" }}
  1718. </div>
  1719. </div>
  1720. </div>
  1721. </div>
  1722. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1723. <!-- <div>
  1724. <img src="../../../assets/icon/new/addStage.png" alt />
  1725. <span>添加任务</span>
  1726. </div> -->
  1727. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  1728. 添加任务
  1729. </button>
  1730. </div>
  1731. </div>
  1732. </div>
  1733. </div>
  1734. </div>
  1735. <div class="info_btnBox3">
  1736. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  1737. 返回课程
  1738. </button>
  1739. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  1740. 确认上传
  1741. </button>
  1742. </div>
  1743. </div>
  1744. <div class="rightBox" v-if="this.steps == 2">
  1745. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  1746. <div class="right_title" style="border: none; margin: 0; padding: 0">
  1747. 请选择合适的课程模板
  1748. </div>
  1749. <div class="wordbox">
  1750. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  1751. <div class="wordPic">
  1752. <img src="../../../assets/icon/wordMub.png" alt />
  1753. </div>
  1754. <div style="
  1755. margin-top: 10px;
  1756. line-height: 19px;
  1757. overflow: hidden;
  1758. text-overflow: ellipsis;
  1759. white-space: nowrap;
  1760. padding: 0 20px;
  1761. ">
  1762. {{ aa.title }}
  1763. </div>
  1764. </div>
  1765. <div class="wordTeacher" @click="checkTemplate2()">
  1766. <div class="wordPic">
  1767. <img src="../../../assets/icon/wordMub.png" alt />
  1768. </div>
  1769. <div style="
  1770. margin-top: 10px;
  1771. line-height: 19px;
  1772. overflow: hidden;
  1773. text-overflow: ellipsis;
  1774. white-space: nowrap;
  1775. padding: 0 20px;
  1776. ">
  1777. 任务模式
  1778. </div>
  1779. </div>
  1780. <div class="wordTeacher" @click="checkTemplate3()">
  1781. <div class="wordPic">
  1782. <img src="../../../assets/icon/wordMub.png" alt />
  1783. </div>
  1784. <div style="
  1785. margin-top: 10px;
  1786. line-height: 19px;
  1787. overflow: hidden;
  1788. text-overflow: ellipsis;
  1789. white-space: nowrap;
  1790. padding: 0 20px;
  1791. ">
  1792. 简易模式
  1793. </div>
  1794. </div>
  1795. <div class="wordTeacher" @click="pasteStage()">
  1796. <div class="wordPic">
  1797. <img src="../../../assets/icon/wordMub.png" alt />
  1798. </div>
  1799. <div style="
  1800. margin-top: 10px;
  1801. line-height: 19px;
  1802. overflow: hidden;
  1803. text-overflow: ellipsis;
  1804. white-space: nowrap;
  1805. padding: 0 20px;
  1806. ">
  1807. 智能粘贴模式
  1808. </div>
  1809. </div>
  1810. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  1811. <div class="wordPic">
  1812. <img src="../../../assets/icon/wordMub.png" alt />
  1813. </div>
  1814. <div style="
  1815. margin-top: 10px;
  1816. line-height: 19px;
  1817. overflow: hidden;
  1818. text-overflow: ellipsis;
  1819. white-space: nowrap;
  1820. padding: 0 20px;
  1821. ">
  1822. 未来小学课程设计
  1823. </div>
  1824. </div> -->
  1825. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  1826. <div class="wordPic">
  1827. <img src="../../../assets/icon/wordMub.png" alt />
  1828. </div>
  1829. <div style="
  1830. margin-top: 10px;
  1831. line-height: 19px;
  1832. overflow: hidden;
  1833. text-overflow: ellipsis;
  1834. white-space: nowrap;
  1835. padding: 0 20px;
  1836. ">
  1837. 我的课程
  1838. </div>
  1839. </div> -->
  1840. </div>
  1841. </div>
  1842. </div>
  1843. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  1844. <div class="basic_box">
  1845. <div style="
  1846. display: flex;
  1847. flex-direction: row;
  1848. align-items: center;
  1849. position: sticky;
  1850. top: 0;
  1851. background: #fff;
  1852. z-index: 99;
  1853. width: 100%;
  1854. padding: 0 20px 0 20px;
  1855. box-sizing: border-box;
  1856. ">
  1857. <div class="cru_selectBox">
  1858. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1859. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1860. <!-- item.dyName ? item.dyName : -->
  1861. {{ "第" + (index + 1) + "阶段" }}
  1862. </div>
  1863. <img src="../../../assets/line.png" class="cru_line" :style="{
  1864. left: offsetLetfPx + 'px',
  1865. }" />
  1866. </div>
  1867. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  1868. !(unitJson[unitJson.length - 1].easy == 6)
  1869. ">
  1870. <img src="../../../assets/icon/add.png" alt />
  1871. </div>
  1872. </div>
  1873. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  1874. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  1875. <div>
  1876. <div class="chapter_contentbox">
  1877. <div>第{{ unitIndex + 1 }}阶段</div>
  1878. <div>
  1879. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  1880. </div>
  1881. <div v-if="unitJson.length > 1 &&
  1882. !(unitJson[unitJson.length - 1].easy == 4) &&
  1883. !(unitJson[unitJson.length - 1].easy == 6)
  1884. " @click="deleteUnit(unitIndex)"></div>
  1885. </div>
  1886. </div>
  1887. <div v-if="!unitJson[unitIndex].easy" style="
  1888. margin: 50px 0px 10px;
  1889. font-size: 1.5em;
  1890. font-weight: 700;
  1891. color: #0f7eff;
  1892. ">
  1893. 添加任务
  1894. </div>
  1895. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  1896. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1897. <div v-if="unitJson[unitIndex].easy != 1">
  1898. <div :style="{
  1899. marginBottom:
  1900. unitJson[unitIndex].easy == 3 ||
  1901. (unitJson[unitIndex].easy == 5 &&
  1902. itemTask.taskType == 1)
  1903. ? '75px'
  1904. : '0',
  1905. }">
  1906. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  1907. 任务{{ itemTaskIndex + 1 }}
  1908. </div>
  1909. <div class="chapter_contentbox" style="
  1910. flex-direction: row;
  1911. justify-content: flex-start;
  1912. align-items: center;
  1913. ">
  1914. <div style="
  1915. border-left: 6px solid #5699e8;
  1916. height: 20px;
  1917. padding-left: 10px;
  1918. line-height: 22px;
  1919. ">
  1920. 任务名称
  1921. </div>
  1922. <div>
  1923. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1924. itemTaskIndex
  1925. ].task
  1926. " />
  1927. </div>
  1928. <div class="remove" v-if="item.taskJson.length > 1 &&
  1929. (!unitJson[unitIndex].easy ||
  1930. unitJson[unitIndex].easy == 6)
  1931. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  1932. </div>
  1933. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  1934. display: flex;
  1935. margin: 0 0 20px 0;
  1936. flex-direction: row;
  1937. justify-content: flex-start;
  1938. align-items: center;
  1939. width: 70.5% !important;
  1940. padding-top: 30px;
  1941. ">
  1942. <div class="lineTitle">任务描述</div>
  1943. </div>
  1944. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  1945. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1946. itemTaskIndex
  1947. ].taskDetail
  1948. " @change="change"></editor-bar>
  1949. <!-- <textarea
  1950. rows="6"
  1951. class="binfo_input"
  1952. placeholder="请输入任务描述"
  1953. cols
  1954. style="width: 70.5% !important; height: 120px"
  1955. v-model="
  1956. unitJson[unitIndex].chapterInfo[0].taskJson[
  1957. itemTaskIndex
  1958. ].taskDetail
  1959. "
  1960. ></textarea>-->
  1961. </div>
  1962. </div>
  1963. </div>
  1964. <div v-if="!unitJson[unitIndex].easy ||
  1965. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1966. " class="basic_box" style="
  1967. padding: 0 !important;
  1968. ">
  1969. <div style="
  1970. display: flex;
  1971. margin: 0 0 20px 0;
  1972. flex-direction: row;
  1973. justify-content: flex-start;
  1974. align-items: center;
  1975. ">
  1976. <div class="lineTitle">学习内容</div>
  1977. </div>
  1978. <div>
  1979. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  1980. itemTask.chapterData.length == 0
  1981. " style="height: 185px"></div>
  1982. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1983. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  1984. @click="
  1985. getChapterData(
  1986. $event,
  1987. unitIndex,
  1988. index,
  1989. index1,
  1990. item1.type
  1991. )
  1992. ">
  1993. <div class="chapter_upload_t" style="width: 100%"></div>
  1994. <div class="chapter_upload_o" style="
  1995. position: relative;
  1996. display: flex;
  1997. align-items: center;
  1998. ">
  1999. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2000. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2001. <div v-if="item1.type == 3 ||
  2002. item1.type == 12 ||
  2003. item1.type == 13 ||
  2004. item1.type == 6 ||
  2005. item1.type == 7
  2006. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2007. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2008. </div>
  2009. <div class="chapter_upload_ic" style="
  2010. cursor: pointer;
  2011. position: absolute;
  2012. width: 45px;
  2013. right: 0;
  2014. top: 0;
  2015. ">
  2016. <div class="chapter_upload_ic_l"></div>
  2017. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2018. deleteChapterData(
  2019. $event,
  2020. unitIndex,
  2021. index,
  2022. index1,
  2023. itemTaskIndex
  2024. )
  2025. ">
  2026. <div></div>
  2027. </div>
  2028. </div>
  2029. <div class="chapter_upload_n">
  2030. <input v-if="item1.type == 2 ||
  2031. item1.type == 3 ||
  2032. item1.type == 12 ||
  2033. item1.type == 13 ||
  2034. item1.type == 7
  2035. " :placeholder="item1.name" @change="
  2036. updataVideoT(
  2037. $event,
  2038. unitIndex,
  2039. chapterIndex,
  2040. index1
  2041. )
  2042. " style="
  2043. border: none;
  2044. outline: none;
  2045. width: 80%;
  2046. minwidth: 215px;
  2047. z-index: 99;
  2048. font-size: 14px;
  2049. white-space: nowrap;
  2050. overflow: hidden;
  2051. text-overflow: ellipsis;
  2052. " />
  2053. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2054. border: none;
  2055. outline: none;
  2056. width: 80%;
  2057. white-space: nowrap;
  2058. overflow: hidden;
  2059. text-overflow: ellipsis;
  2060. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2061. <input :placeholder="item1.title ? item1.title : '链接'
  2062. " v-if="item1.type == 8" style="
  2063. border: none;
  2064. outline: none;
  2065. width: 80%;
  2066. white-space: nowrap;
  2067. overflow: hidden;
  2068. text-overflow: ellipsis;
  2069. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2070. <div class="chapter_upload_ud" style="z-index: 99">
  2071. <div class="chapter_upload_up" @click="
  2072. upCd(
  2073. $event,
  2074. unitIndex,
  2075. index,
  2076. itemTaskIndex,
  2077. index1
  2078. )
  2079. "></div>
  2080. <div class="chapter_upload_down" @click="
  2081. downCd(
  2082. $event,
  2083. unitIndex,
  2084. index,
  2085. itemTaskIndex,
  2086. index1
  2087. )
  2088. "></div>
  2089. </div>
  2090. </div>
  2091. </div>
  2092. </div>
  2093. </div>
  2094. </div>
  2095. <div class="add_info_box">
  2096. <button class="info_btn" @click="addImg($event)">
  2097. 添加文件
  2098. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  2099. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2100. " />
  2101. </button>
  2102. <!-- <button class="info_btn" @click="addImg($event)">
  2103. 添加视频
  2104. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2105. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2106. " />
  2107. </button>
  2108. <button class="info_btn" @click="addImg($event)">
  2109. 添加文档
  2110. <input type="file"
  2111. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2112. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2113. " />
  2114. </button> -->
  2115. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  2116. 添加图文
  2117. </button>
  2118. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2119. 添加链接
  2120. </button>
  2121. <button class="info_btn" @click="openSource(itemTaskIndex)">
  2122. 添加资源
  2123. </button>
  2124. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  2125. 嵌入代码
  2126. </button>
  2127. <!-- <button class="info_btn" @click="addImg($event)">
  2128. 其他附件
  2129. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2130. " />
  2131. </button> -->
  2132. </div>
  2133. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2134. itemTaskIndex
  2135. ].proVisible
  2136. " class="mask">
  2137. <div class="progressBox">
  2138. <!-- <div id="closePro" class="closeCss">
  2139. <img src="../../../../assets/icon/close.png" alt />
  2140. </div> -->
  2141. <div class="lbox">
  2142. <img src="../../../assets/loading.gif" />上传中,请稍后
  2143. </div>
  2144. <div style="margin-bottom: 10px">
  2145. <span>{{
  2146. unitJson[unitIndex].chapterInfo[0].taskJson[
  2147. itemTaskIndex
  2148. ].isFinishSize
  2149. }}M</span>
  2150. /
  2151. <span>{{
  2152. unitJson[unitIndex].chapterInfo[0].taskJson[
  2153. itemTaskIndex
  2154. ].isAllSize
  2155. }}M</span>
  2156. </div>
  2157. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2158. itemTaskIndex
  2159. ].progress
  2160. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2161. itemTaskIndex
  2162. ].progress
  2163. : 0
  2164. " style="width: 80%"></el-progress>
  2165. </div>
  2166. </div>
  2167. </div>
  2168. <div v-if="unitJson[unitIndex].easy == 1 ||
  2169. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2170. " class="basic_box" style="
  2171. margin: 0 auto;
  2172. min-height: 0;
  2173. width: 95% !important;
  2174. padding: 20px 10px 10px;
  2175. ">
  2176. <div>
  2177. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  2178. itemTask.chapterData.length == 0
  2179. " style="height: 185px"></div>
  2180. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2181. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  2182. <div class="chapter_upload" @click="
  2183. getChapterData(
  2184. $event,
  2185. unitIndex,
  2186. index,
  2187. index1,
  2188. item1.type
  2189. )
  2190. ">
  2191. <div class="chapter_upload_t" style="width: 100%"></div>
  2192. <div class="chapter_upload_o" style="
  2193. position: relative;
  2194. display: flex;
  2195. align-items: center;
  2196. ">
  2197. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2198. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2199. <div v-if="item1.type == 3 ||
  2200. item1.type == 6 ||
  2201. item1.type == 7
  2202. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2203. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2204. </div>
  2205. <div class="chapter_upload_ic" style="
  2206. cursor: pointer;
  2207. position: absolute;
  2208. width: 45px;
  2209. right: 0;
  2210. top: 0;
  2211. ">
  2212. <div class="chapter_upload_ic_l"></div>
  2213. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2214. deleteChapterData(
  2215. $event,
  2216. unitIndex,
  2217. index,
  2218. index1,
  2219. itemTaskIndex
  2220. )
  2221. ">
  2222. <div></div>
  2223. </div>
  2224. </div>
  2225. <div class="chapter_upload_n">
  2226. <span style="
  2227. font-size: 14px;
  2228. color: rgb(109, 109, 109);
  2229. height: 14px;
  2230. line-height: 12px;
  2231. " v-if="item1.type == 2 ||
  2232. item1.type == 3 ||
  2233. item1.type == 7
  2234. ">{{ item1.text }}-</span>
  2235. <input v-if="item1.type == 2 ||
  2236. item1.type == 3 ||
  2237. item1.type == 7
  2238. " :placeholder="item1.name" @change="
  2239. updataVideoT(
  2240. $event,
  2241. unitIndex,
  2242. chapterIndex,
  2243. index1
  2244. )
  2245. " style="
  2246. border: none;
  2247. outline: none;
  2248. width: 80%;
  2249. minwidth: 215px;
  2250. z-index: 99;
  2251. font-size: 14px;
  2252. white-space: nowrap;
  2253. overflow: hidden;
  2254. text-overflow: ellipsis;
  2255. " />
  2256. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2257. border: none;
  2258. outline: none;
  2259. width: 80%;
  2260. white-space: nowrap;
  2261. overflow: hidden;
  2262. text-overflow: ellipsis;
  2263. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2264. <input :placeholder="item1.title ? item1.title : '链接'
  2265. " v-if="item1.type == 8" style="
  2266. border: none;
  2267. outline: none;
  2268. width: 80%;
  2269. white-space: nowrap;
  2270. overflow: hidden;
  2271. text-overflow: ellipsis;
  2272. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2273. <div class="chapter_upload_ud" style="z-index: 99">
  2274. <div class="chapter_upload_up" @click="
  2275. upCd(
  2276. $event,
  2277. unitIndex,
  2278. index,
  2279. itemTaskIndex,
  2280. index1
  2281. )
  2282. "></div>
  2283. <div class="chapter_upload_down" @click="
  2284. downCd(
  2285. $event,
  2286. unitIndex,
  2287. index,
  2288. itemTaskIndex,
  2289. index1
  2290. )
  2291. "></div>
  2292. </div>
  2293. </div>
  2294. </div>
  2295. </div>
  2296. </div>
  2297. </div>
  2298. </div>
  2299. <div class="add_info_box" style="margin: 10px 0 0">
  2300. <button class="info_btn" @click="addImg($event)">
  2301. <span style="color: red">*</span>
  2302. 教学设计
  2303. <input type="file"
  2304. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2305. style="display: none" v-if="inputShow" @change="
  2306. beforeUpload3(
  2307. $event,
  2308. unitIndex,
  2309. 3,
  2310. itemTaskIndex,
  2311. '教学设计'
  2312. )
  2313. " />
  2314. </button>
  2315. <button class="info_btn" @click="addImg($event)">
  2316. <span style="color: red">*</span>
  2317. 教学课件
  2318. <input type="file"
  2319. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2320. style="display: none" v-if="inputShow" @change="
  2321. beforeUpload3(
  2322. $event,
  2323. unitIndex,
  2324. 3,
  2325. itemTaskIndex,
  2326. '教学课件'
  2327. )
  2328. " />
  2329. </button>
  2330. <button class="info_btn" @click="addImg($event)">
  2331. 教学视频
  2332. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2333. v-if="inputShow" @change="
  2334. beforeUpload3(
  2335. $event,
  2336. unitIndex,
  2337. 2,
  2338. itemTaskIndex,
  2339. '教学视频'
  2340. )
  2341. " />
  2342. </button>
  2343. <button class="info_btn" @click="addImg($event)">
  2344. 教学音频
  2345. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  2346. beforeUpload3(
  2347. $event,
  2348. unitIndex,
  2349. 2,
  2350. itemTaskIndex,
  2351. '教学音频'
  2352. )
  2353. " />
  2354. </button>
  2355. <button class="info_btn" @click="addImg($event)">
  2356. 学习单
  2357. <input type="file"
  2358. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2359. style="display: none" v-if="inputShow" @change="
  2360. beforeUpload3(
  2361. $event,
  2362. unitIndex,
  2363. 3,
  2364. itemTaskIndex,
  2365. '学习单'
  2366. )
  2367. " />
  2368. </button>
  2369. </div>
  2370. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2371. itemTaskIndex
  2372. ].proVisible
  2373. " class="mask">
  2374. <div class="progressBox">
  2375. <!-- <div id="closePro" class="closeCss">
  2376. <img src="../../../../assets/icon/close.png" alt />
  2377. </div> -->
  2378. <div class="lbox">
  2379. <img src="../../../assets/loading.gif" />上传中,请稍后
  2380. </div>
  2381. <div style="margin-bottom: 10px">
  2382. <span>{{
  2383. unitJson[unitIndex].chapterInfo[0].taskJson[
  2384. itemTaskIndex
  2385. ].isFinishSize
  2386. }}M</span>
  2387. /
  2388. <span>{{
  2389. unitJson[unitIndex].chapterInfo[0].taskJson[
  2390. itemTaskIndex
  2391. ].isAllSize
  2392. }}M</span>
  2393. </div>
  2394. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2395. itemTaskIndex
  2396. ].progress
  2397. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2398. itemTaskIndex
  2399. ].progress
  2400. : 0
  2401. " style="width: 80%"></el-progress>
  2402. </div>
  2403. </div>
  2404. </div>
  2405. <div v-if="unitJson[unitIndex].easy != 3 &&
  2406. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  2407. " style="
  2408. flex-direction: row;
  2409. justify-content: flex-start;
  2410. align-items: center;
  2411. padding: 0 0 0 30px;
  2412. paddint-top: 10px !important;
  2413. ">
  2414. <div style="
  2415. display: flex;
  2416. flex-direction: row;
  2417. align-items: center;
  2418. margin-bottom: 20px;
  2419. ">
  2420. <div class="lineTitle">
  2421. {{
  2422. !unitJson[unitIndex].easy ||
  2423. unitJson[unitIndex].easy == 6 ||
  2424. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2425. ? "练习内容"
  2426. : "评价内容"
  2427. }}
  2428. </div>
  2429. </div>
  2430. </div>
  2431. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  2432. " class="toolChoose" style="padding: 0 0 0 30px">
  2433. <div class="tools">
  2434. <div class="leftTools" style="
  2435. width: 95%;
  2436. padding: 0 0 15px 0;
  2437. margin: 15px 0;
  2438. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2439. <div>
  2440. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2441. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2442. </div>
  2443. <div style="
  2444. display: flex;
  2445. flex-direction: row;
  2446. align-items: baseline;
  2447. flex-wrap: nowrap;
  2448. justify-content: flex-start;
  2449. position: relative;
  2450. ">
  2451. <div style="margin-right: 20px; font-weight: bold">
  2452. 工具 {{ toolIndex + 1 }} :
  2453. </div>
  2454. <div class="chooseWho">
  2455. <!-- <div
  2456. :class="
  2457. itemTool.toolType == 0 ? 'isChooseActive' : ''
  2458. "
  2459. @click="(itemTool.toolType = 0), $forceUpdate()"
  2460. >
  2461. 互动类
  2462. </div> -->
  2463. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  2464. " @click="(itemTool.toolType = 1), $forceUpdate()">
  2465. 思维类
  2466. </div>
  2467. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  2468. " @click="(itemTool.toolType = 6), $forceUpdate()">
  2469. 协作类
  2470. </div>
  2471. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  2472. " @click="(itemTool.toolType = 2), $forceUpdate()">
  2473. 测评类
  2474. </div>
  2475. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  2476. " @click="(itemTool.toolType = 7), $forceUpdate()">
  2477. 评价类
  2478. </div>
  2479. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  2480. " @click="(itemTool.toolType = 3), $forceUpdate()">
  2481. 学科类
  2482. </div>
  2483. <!-- <div
  2484. :class="
  2485. itemTool.toolType == 5 ? 'isChooseActive' : ''
  2486. "
  2487. @click="(itemTool.toolType = 5), $forceUpdate()"
  2488. >
  2489. 学科类
  2490. </div>
  2491. <div
  2492. :class="
  2493. itemTool.toolType == 4 ? 'isChooseActive' : ''
  2494. "
  2495. @click="(itemTool.toolType = 4), $forceUpdate()"
  2496. >
  2497. 其他
  2498. </div> -->
  2499. </div>
  2500. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2501. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2502. </div>
  2503. <div style="min-height: 163px">
  2504. <div class="toolSort" v-if="itemTool.toolType == 0">
  2505. <!-- <div class="tool">
  2506. <div
  2507. class="whiteBIcon"
  2508. @click="addTools(8, itemTaskIndex, toolIndex)"
  2509. >
  2510. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2511. <div style="margin: 5px 0">素材库</div>
  2512. </div>
  2513. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2514. <img
  2515. src="../../../assets/icon/checkNo.png"
  2516. alt
  2517. v-if="itemTool.tool.indexOf(8) == -1"
  2518. />
  2519. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2520. alt /><span>已选择</span></div>
  2521. </div>
  2522. </div>-->
  2523. <!-- <div class="tool">
  2524. <div
  2525. class="whiteBIcon"
  2526. @click="addTools(17, itemTaskIndex, toolIndex)"
  2527. >
  2528. <img
  2529. src="../../../assets/icon/secondToolList/library.png"
  2530. alt
  2531. />
  2532. <div style="margin: 5px 0">学习资料</div>
  2533. </div>
  2534. <div
  2535. class="check"
  2536. @click="addTools(17, itemTaskIndex, toolIndex)"
  2537. >
  2538. <img
  2539. src="../../../assets/icon/checkNo.png"
  2540. alt
  2541. v-if="itemTool.tool.indexOf(17) == -1"
  2542. />
  2543. <img
  2544. src="../../../assets/icon/checkedIs.png"
  2545. alt
  2546. v-else
  2547. />
  2548. </div>10
  2549. </div> -->
  2550. <div class="tool">
  2551. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  2552. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2553. <div style="margin: 5px 0">倒计时</div>
  2554. </div>
  2555. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2556. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  2557. <div class="checkDiv" v-else>
  2558. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2559. </div>
  2560. </div>
  2561. </div>
  2562. <!-- <div class="tool">
  2563. <div
  2564. class="whiteBIcon"
  2565. @click="openTools(itemTaskIndex, 49, toolIndex)"
  2566. >
  2567. <img
  2568. src="../../../assets/icon/fourthToolList/group.png"
  2569. alt
  2570. />
  2571. <div style="margin: 5px 0">学生分组</div>
  2572. </div>
  2573. <div
  2574. class="check"
  2575. @click="addTools(49, itemTaskIndex, toolIndex)"
  2576. >
  2577. <img
  2578. src="../../../assets/icon/checkNo.png"
  2579. alt
  2580. v-if="itemTool.tool.indexOf(49) == -1"
  2581. />
  2582. <div class="checkDiv" v-else>
  2583. <img
  2584. src="../../../assets/icon/checkedIs.png"
  2585. alt
  2586. /><span>已选择</span>
  2587. </div>
  2588. </div>
  2589. </div> -->
  2590. <div class="tool">
  2591. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2592. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2593. <div style="margin: 5px 0">交互视频</div>
  2594. </div>
  2595. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2596. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2597. <div class="checkDiv" v-else>
  2598. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2599. </div>
  2600. </div>
  2601. </div>
  2602. </div>
  2603. <div class="toolSort" v-if="itemTool.toolType == 1">
  2604. <div class="tool">
  2605. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  2606. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2607. <div style="margin: 5px 0">思维网格</div>
  2608. </div>
  2609. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2610. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  2611. <div class="checkDiv" v-else>
  2612. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. <div class="tool">
  2617. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2618. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2619. <div style="margin: 5px 0">电子白板</div>
  2620. </div>
  2621. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2622. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2623. <div class="checkDiv" v-else>
  2624. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2625. </div>
  2626. </div>
  2627. </div>
  2628. <!-- <div class="tool">
  2629. <div
  2630. class="whiteBIcon"
  2631. @click="addTools(2, itemTaskIndex, toolIndex)"
  2632. >
  2633. <img
  2634. src="../../../assets/icon/secondToolList/note.png"
  2635. alt
  2636. />
  2637. <div style="margin: 5px 0">便签</div>
  2638. </div>
  2639. <div
  2640. class="check"
  2641. @click="addTools(2, itemTaskIndex, toolIndex)"
  2642. >
  2643. <img
  2644. src="../../../assets/icon/checkNo.png"
  2645. alt
  2646. v-if="itemTool.tool.indexOf(2) == -1"
  2647. />
  2648. <div class="checkDiv" v-else>
  2649. <img
  2650. src="../../../assets/icon/checkedIs.png"
  2651. alt
  2652. /><span>已选择</span>
  2653. </div>
  2654. </div>
  2655. </div> -->
  2656. <!-- <div class="tool">
  2657. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2658. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2659. <div style="margin: 5px 0">协同文档</div>
  2660. </div>
  2661. <div
  2662. class="check"
  2663. @click="addTools(6, itemTaskIndex, toolIndex)"
  2664. >
  2665. <img
  2666. src="../../../assets/icon/checkNo.png"
  2667. alt
  2668. v-if="itemTool.tool.indexOf(6) == -1"
  2669. />
  2670. <div class="checkDiv" v-else>
  2671. <img
  2672. src="../../../assets/icon/checkedIs.png"
  2673. alt
  2674. /><span>已选择</span>
  2675. </div>
  2676. </div>
  2677. </div> -->
  2678. <div class="tool">
  2679. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2680. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2681. <div style="margin: 5px 0">文档</div>
  2682. </div>
  2683. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2684. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2685. <div class="checkDiv" v-else>
  2686. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2687. </div>
  2688. </div>
  2689. </div>
  2690. <div class="tool">
  2691. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2692. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2693. <div style="margin: 5px 0">思维导图</div>
  2694. </div>
  2695. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2696. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  2697. <div class="checkDiv" v-else>
  2698. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2699. </div>
  2700. </div>
  2701. </div>
  2702. <div class="tool">
  2703. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2704. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2705. <div style="margin: 5px 0">表格</div>
  2706. </div>
  2707. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2708. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  2709. <div class="checkDiv" v-else>
  2710. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2711. </div>
  2712. </div>
  2713. </div>
  2714. </div>
  2715. <div class="toolSort" v-if="itemTool.toolType == 6">
  2716. <div class="tool">
  2717. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2718. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2719. <div style="margin: 5px 0">学生分组</div>
  2720. </div>
  2721. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2722. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2723. <div class="checkDiv" v-else>
  2724. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2725. </div>
  2726. </div>
  2727. </div>
  2728. </div>
  2729. <div class="toolSort" v-if="itemTool.toolType == 2">
  2730. <!-- <div class="tool">
  2731. <div
  2732. class="whiteBIcon"
  2733. @click="addTools(5, itemTaskIndex, toolIndex)"
  2734. >
  2735. <img
  2736. src="../../../assets/icon/thirdToolList/score.png"
  2737. alt
  2738. />
  2739. <div style="margin: 5px 0">量规评分</div>
  2740. </div>
  2741. <div
  2742. class="check"
  2743. @click="addTools(5, itemTaskIndex, toolIndex)"
  2744. >
  2745. <img
  2746. src="../../../assets/icon/checkNo.png"
  2747. alt
  2748. v-if="itemTool.tool.indexOf(5) == -1"
  2749. />
  2750. <img
  2751. src="../../../assets/icon/checkedIs.png"
  2752. alt
  2753. v-else
  2754. />
  2755. </div>
  2756. </div>-->
  2757. <div class="tool">
  2758. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2759. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2760. <div style="margin: 5px 0">问卷调查</div>
  2761. </div>
  2762. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2763. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  2764. <div class="checkDiv" v-else>
  2765. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2766. </div>
  2767. </div>
  2768. </div>
  2769. <div class="tool">
  2770. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2771. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2772. <div style="margin: 5px 0">选择题</div>
  2773. </div>
  2774. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2775. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  2776. <div class="checkDiv" v-else>
  2777. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2778. </div>
  2779. </div>
  2780. </div>
  2781. <div class="tool">
  2782. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2783. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2784. <div style="margin: 5px 0">问答</div>
  2785. </div>
  2786. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2787. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  2788. <div class="checkDiv" v-else>
  2789. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2790. </div>
  2791. </div>
  2792. </div>
  2793. <div class="tool">
  2794. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2795. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2796. <div style="margin: 5px 0">作业提交</div>
  2797. </div>
  2798. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2799. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  2800. <div class="checkDiv" v-else>
  2801. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2802. </div>
  2803. </div>
  2804. </div>
  2805. <div class="tool">
  2806. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  2807. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2808. <div style="margin: 5px 0">批量上传</div>
  2809. </div>
  2810. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2811. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2812. <div class="checkDiv" v-else>
  2813. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2814. </div>
  2815. </div>
  2816. </div>
  2817. <!-- <div class="tool">
  2818. <div
  2819. class="whiteBIcon"
  2820. @click="openTools(itemTaskIndex, 40, toolIndex)"
  2821. >
  2822. <img
  2823. src="../../../assets/icon/thirdToolList/eval.png"
  2824. alt
  2825. />
  2826. <div style="margin: 5px 0">个人评价</div>
  2827. </div>
  2828. <div
  2829. class="check"
  2830. @click="addTools(40, itemTaskIndex, toolIndex)"
  2831. >
  2832. <img
  2833. src="../../../assets/icon/checkNo.png"
  2834. alt
  2835. v-if="itemTool.tool.indexOf(40) == -1"
  2836. />
  2837. <div class="checkDiv" v-else>
  2838. <img
  2839. src="../../../assets/icon/checkedIs.png"
  2840. alt
  2841. /><span>已选择</span>
  2842. </div>
  2843. </div>
  2844. </div> -->
  2845. <div class="tool">
  2846. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2847. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2848. <div style="margin: 5px 0">选择匹配</div>
  2849. </div>
  2850. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2851. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  2852. <div class="checkDiv" v-else>
  2853. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2854. </div>
  2855. </div>
  2856. </div>
  2857. <div class="tool">
  2858. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2859. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2860. <div style="margin: 5px 0">排序</div>
  2861. </div>
  2862. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2863. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  2864. <div class="checkDiv" v-else>
  2865. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2866. </div>
  2867. </div>
  2868. </div>
  2869. <!-- <div class="tool">
  2870. <div
  2871. class="whiteBIcon"
  2872. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2873. >
  2874. <img
  2875. src="../../../assets/icon/thirdToolList/mp3.png"
  2876. alt
  2877. />
  2878. <div style="margin: 5px 0">上传音频</div>
  2879. </div>
  2880. <div
  2881. class="check"
  2882. @click="addTools(42, itemTaskIndex, toolIndex)"
  2883. >
  2884. <img
  2885. src="../../../assets/icon/checkNo.png"
  2886. alt
  2887. v-if="itemTool.tool.indexOf(42) == -1"
  2888. />
  2889. <img
  2890. src="../../../assets/icon/checkedIs.png"
  2891. alt
  2892. v-else
  2893. />
  2894. </div>
  2895. </div> -->
  2896. </div>
  2897. <div class="toolSort" v-if="itemTool.toolType == 3">
  2898. <div class="tool">
  2899. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  2900. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2901. <div style="margin: 5px 0">训练平台</div>
  2902. </div>
  2903. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2904. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  2905. <div class="checkDiv" v-else>
  2906. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2907. </div>
  2908. </div>
  2909. </div>
  2910. <div class="tool">
  2911. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  2912. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2913. <div style="margin: 5px 0">AIoT Blockly</div>
  2914. </div>
  2915. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2916. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  2917. <div class="checkDiv" v-else>
  2918. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2919. </div>
  2920. </div>
  2921. </div>
  2922. <div class="tool">
  2923. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2924. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2925. <div style="margin: 5px 0">AI体验</div>
  2926. </div>
  2927. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2928. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2929. <div class="checkDiv" v-else>
  2930. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2931. </div>
  2932. </div>
  2933. </div>
  2934. <div class="tool">
  2935. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  2936. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2937. <div style="margin: 5px 0">AI Python</div>
  2938. </div>
  2939. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2940. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  2941. <div class="checkDiv" v-else>
  2942. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2943. </div>
  2944. </div>
  2945. </div>
  2946. <div class="tool">
  2947. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  2948. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2949. <div style="margin: 5px 0">AI Blockly</div>
  2950. </div>
  2951. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2952. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  2953. <div class="checkDiv" v-else>
  2954. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2955. </div>
  2956. </div>
  2957. </div>
  2958. <!-- <div class="tool">
  2959. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  2960. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2961. <div style="margin: 5px 0">源码编辑</div>
  2962. </div>
  2963. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2964. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  2965. <div class="checkDiv" v-else>
  2966. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2967. </div>
  2968. </div>
  2969. </div> -->
  2970. <div class="tool">
  2971. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  2972. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2973. <div style="margin: 5px 0">CocoPi</div>
  2974. </div>
  2975. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2976. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  2977. <div class="checkDiv" v-else>
  2978. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. <div class="tool">
  2983. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  2984. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2985. <div style="margin: 5px 0">海龟编程</div>
  2986. </div>
  2987. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2988. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  2989. <div class="checkDiv" v-else>
  2990. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2991. </div>
  2992. </div>
  2993. </div>
  2994. </div>
  2995. <div class="toolSort" v-if="itemTool.toolType == 7">
  2996. <div class="tool">
  2997. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2998. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2999. <div style="margin: 5px 0">个人评价</div>
  3000. </div>
  3001. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3002. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  3003. <div class="checkDiv" v-else>
  3004. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3005. </div>
  3006. </div>
  3007. </div>
  3008. </div>
  3009. <div class="toolSort" v-if="itemTool.toolType == 5">
  3010. <div class="tool">
  3011. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3012. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3013. <div style="margin: 5px 0">翻译</div>
  3014. </div>
  3015. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3016. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3017. <div class="checkDiv" v-else>
  3018. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3019. </div>
  3020. </div>
  3021. </div>
  3022. <div class="tool">
  3023. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3024. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3025. <div style="margin: 5px 0">魔盒识字</div>
  3026. </div>
  3027. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3028. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3029. <div class="checkDiv" v-else>
  3030. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3031. </div>
  3032. </div>
  3033. </div>
  3034. <div class="tool">
  3035. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3036. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3037. <div style="margin: 5px 0">24点</div>
  3038. </div>
  3039. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3040. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3041. <div class="checkDiv" v-else>
  3042. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3043. </div>
  3044. </div>
  3045. </div>
  3046. <div class="tool">
  3047. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3048. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3049. <div style="margin: 5px 0">数学画板</div>
  3050. </div>
  3051. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3052. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3053. <div class="checkDiv" v-else>
  3054. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3055. </div>
  3056. </div>
  3057. </div>
  3058. <div class="tool">
  3059. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3060. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3061. <div style="margin: 5px 0">GeoGebra</div>
  3062. </div>
  3063. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3064. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3065. <div class="checkDiv" v-else>
  3066. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3067. </div>
  3068. </div>
  3069. </div>
  3070. <div class="tool">
  3071. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3072. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3073. <div style="margin: 5px 0">模拟驾驶</div>
  3074. </div>
  3075. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3076. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3077. <div class="checkDiv" v-else>
  3078. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3079. </div>
  3080. </div>
  3081. </div>
  3082. <div class="tool">
  3083. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3084. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3085. <div style="margin: 5px 0">路径搜索</div>
  3086. </div>
  3087. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3088. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3089. <div class="checkDiv" v-else>
  3090. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3091. </div>
  3092. </div>
  3093. </div>
  3094. <div class="tool">
  3095. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3096. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3097. <div style="margin: 5px 0">深度学习</div>
  3098. </div>
  3099. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3100. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3101. <div class="checkDiv" v-else>
  3102. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3103. </div>
  3104. </div>
  3105. </div>
  3106. <div class="tool">
  3107. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3108. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3109. <div style="margin: 5px 0">全历史</div>
  3110. </div>
  3111. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3112. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3113. <div class="checkDiv" v-else>
  3114. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3115. </div>
  3116. </div>
  3117. </div>
  3118. </div>
  3119. <div class="toolSort" v-if="itemTool.toolType == 4">
  3120. <div class="tool">
  3121. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3122. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3123. <div style="margin: 5px 0">课程设计</div>
  3124. </div>
  3125. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3126. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3127. <div class="checkDiv" v-else>
  3128. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3129. </div>
  3130. </div>
  3131. </div>
  3132. <div class="tool">
  3133. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3134. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3135. <div style="margin: 5px 0">目标管理</div>
  3136. </div>
  3137. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3138. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3139. <div class="checkDiv" v-else>
  3140. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3141. </div>
  3142. </div>
  3143. </div>
  3144. <!-- <div class="tool">
  3145. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3146. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3147. <div style="margin: 5px 0">汉字宫</div>
  3148. </div>
  3149. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3150. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3151. <div class="checkDiv" v-else>
  3152. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3153. </div>
  3154. </div>
  3155. </div> -->
  3156. </div>
  3157. </div>
  3158. </div>
  3159. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  3160. <div class="addToolImg">
  3161. <img src="../../../assets/icon/add.png" alt />
  3162. </div>
  3163. <div>添加工具</div>
  3164. </div>
  3165. </div>
  3166. </div>
  3167. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  3168. unitJson[unitIndex].easy == 4
  3169. " class="toolChoose" style="padding: 0 0 0 30px">
  3170. <div class="tools">
  3171. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3172. :key="toolIndex">
  3173. <div>
  3174. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  3175. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  3176. </div>
  3177. <div style="
  3178. display: flex;
  3179. flex-direction: row;
  3180. align-items: baseline;
  3181. flex-wrap: nowrap;
  3182. justify-content: flex-start;
  3183. position: relative;
  3184. ">
  3185. <div style="margin-right: 20px; font-weight: bold">
  3186. 工具 {{ toolIndex + 1 }} :
  3187. </div>
  3188. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3189. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  3190. </div>
  3191. <div style="min-height: 163px">
  3192. <div class="toolSort">
  3193. <div class="tool">
  3194. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  3195. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3196. <div style="margin: 5px 0">电子白板</div>
  3197. </div>
  3198. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  3199. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  3200. <div class="checkDiv" v-else>
  3201. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3202. </div>
  3203. </div>
  3204. </div>
  3205. <div class="tool">
  3206. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  3207. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3208. <div style="margin: 5px 0">文档</div>
  3209. </div>
  3210. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  3211. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  3212. <div class="checkDiv" v-else>
  3213. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3214. </div>
  3215. </div>
  3216. </div>
  3217. <div class="tool">
  3218. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  3219. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3220. <div style="margin: 5px 0">思维导图</div>
  3221. </div>
  3222. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  3223. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  3224. <div class="checkDiv" v-else>
  3225. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3226. </div>
  3227. </div>
  3228. </div>
  3229. <div class="tool">
  3230. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  3231. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3232. <div style="margin: 5px 0">问卷调查</div>
  3233. </div>
  3234. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3235. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  3236. <div class="checkDiv" v-else>
  3237. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3238. </div>
  3239. </div>
  3240. </div>
  3241. <div class="tool">
  3242. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  3243. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3244. <div style="margin: 5px 0">选择题</div>
  3245. </div>
  3246. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3247. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  3248. <div class="checkDiv" v-else>
  3249. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3250. </div>
  3251. </div>
  3252. </div>
  3253. <div class="tool">
  3254. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  3255. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3256. <div style="margin: 5px 0">问答</div>
  3257. </div>
  3258. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3259. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  3260. <div class="checkDiv" v-else>
  3261. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3262. </div>
  3263. </div>
  3264. </div>
  3265. <div class="tool">
  3266. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  3267. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3268. <div style="margin: 5px 0">作业提交</div>
  3269. </div>
  3270. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3271. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  3272. <div class="checkDiv" v-else>
  3273. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3274. </div>
  3275. </div>
  3276. </div>
  3277. <div class="tool">
  3278. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3279. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3280. <div style="margin: 5px 0">批量上传</div>
  3281. </div>
  3282. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3283. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3284. <div class="checkDiv" v-else>
  3285. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3286. </div>
  3287. </div>
  3288. </div>
  3289. <div class="tool">
  3290. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  3291. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3292. <div style="margin: 5px 0">选择匹配</div>
  3293. </div>
  3294. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3295. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  3296. <div class="checkDiv" v-else>
  3297. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3298. </div>
  3299. </div>
  3300. </div>
  3301. <div class="tool">
  3302. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  3303. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3304. <div style="margin: 5px 0">排序</div>
  3305. </div>
  3306. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3307. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  3308. <div class="checkDiv" v-else>
  3309. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3310. </div>
  3311. </div>
  3312. </div>
  3313. <div class="tool">
  3314. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  3315. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3316. <div style="margin: 5px 0">表格</div>
  3317. </div>
  3318. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  3319. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  3320. <div class="checkDiv" v-else>
  3321. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3322. </div>
  3323. </div>
  3324. </div>
  3325. </div>
  3326. </div>
  3327. </div>
  3328. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3329. <div class="addToolImg">
  3330. <img src="../../../assets/icon/add.png" alt />
  3331. </div>
  3332. <div>添加工具</div>
  3333. </div>
  3334. </div>
  3335. </div>
  3336. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  3337. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  3338. " class="toolChoose" style="padding: 0 0 0 30px">
  3339. <div class="tools">
  3340. <div class="leftTools" style="
  3341. width: 95%;
  3342. padding: 0 0 15px 0;
  3343. margin-bottom: 15px;
  3344. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  3345. <div style="min-height: 163px">
  3346. <div class="toolSort">
  3347. <div class="tool">
  3348. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3349. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3350. <div style="margin: 5px 0">批量上传</div>
  3351. </div>
  3352. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3353. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3354. <div class="checkDiv" v-else>
  3355. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3356. </div>
  3357. </div>
  3358. </div>
  3359. </div>
  3360. </div>
  3361. </div>
  3362. </div>
  3363. </div>
  3364. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  3365. <div class="elist_title">
  3366. <div style="
  3367. display: flex;
  3368. flex-direction: row;
  3369. align-items: center;
  3370. margin-bottom: 20px;
  3371. ">
  3372. <div class="lineTitle">评价设置</div>
  3373. </div>
  3374. </div>
  3375. <div class="mbCss">
  3376. <div class="pjCss">
  3377. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3378. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3379. <span>评价名称:</span>
  3380. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  3381. <span>评星等级:</span>
  3382. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  3383. <div class="remove" @click="
  3384. deletEList(unitIndex, itemTaskIndex, eIndex)
  3385. "></div>
  3386. <div class="elist_inptu_text">
  3387. <span>评价描述:</span>
  3388. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  3389. </div>
  3390. <div class="elist_inptu_text" v-if="evalua">
  3391. <span>目标:</span>
  3392. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  3393. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3394. @change="forceUpdate()">
  3395. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3396. :value="e.name">
  3397. </el-option>
  3398. </el-select> -->
  3399. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3400. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3401. </div>
  3402. </div>
  3403. </div>
  3404. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  3405. <div class="addToolImg">
  3406. <img src="../../../assets/icon/add.png" alt />
  3407. </div>
  3408. <div>添加</div>
  3409. </div>
  3410. </div>
  3411. <div v-if="evalua" style="
  3412. border: 1px solid #e5e5e5;
  3413. width: 55%;
  3414. margin-top: 20px;
  3415. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3416. " class="evaCss">
  3417. <div class="e_add_top">
  3418. <div class="e_add_title">
  3419. <span>当前使用目标管理</span>
  3420. <span>{{ eTitle }}</span>
  3421. <img src="../../../assets/line.png" class="cru_line" style="
  3422. width: 125px;
  3423. height: 20px;
  3424. bottom: -10px;
  3425. left: 155px;
  3426. " />
  3427. </div>
  3428. </div>
  3429. <div class="e_add_content" style="width: 100%">
  3430. <div class="e_add_list_pbox" style="width: 100%">
  3431. <div class="e_add_list_pbox_title">
  3432. <span class="type_title">切换模式</span>
  3433. <div class="type_content">
  3434. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  3435. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  3436. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  3437. </div>
  3438. </div>
  3439. <div class="e_add_list_pbox_content">
  3440. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3441. " v-if="typeMode == 1"></Mind>
  3442. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3443. </Sunburst>
  3444. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3445. v-if="typeMode == 3"></SeeBoard>
  3446. </div>
  3447. </div>
  3448. </div>
  3449. </div>
  3450. </div>
  3451. </div>
  3452. <div class="funBlock" style="padding: 0">
  3453. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  3454. <div>折叠</div>
  3455. <div class="arrow">
  3456. <img src="../../../assets/icon/fold.png" alt />
  3457. </div>
  3458. </div>
  3459. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3460. <div>展开</div>
  3461. <div class="arrow">
  3462. <img src="../../../assets/icon/expand.png" alt />
  3463. </div>
  3464. </div>
  3465. </div>
  3466. </div>
  3467. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3468. <div>
  3469. <img src="../../../assets/icon/new/addStage.png" alt />
  3470. <span>添加任务</span>
  3471. </div>
  3472. </div>
  3473. </div>
  3474. </div>
  3475. </div>
  3476. <div class="rightBox" v-if="this.steps == 4">
  3477. <div class="basic_box_success">
  3478. <div class="right_img">
  3479. <img src="../../../assets/icon/right.png" alt />
  3480. </div>
  3481. <div style="font-weight: bold">成功</div>
  3482. <!-- <div>您的课程编号</div>
  3483. <div class="number">{{ number }}</div>-->
  3484. <!-- <div class="success_button">
  3485. <div class="look_course" @click="isNoFinsh">
  3486. 邀请老师协同编辑
  3487. </div>
  3488. <div class="attend_others" @click="goCourse">预览课程</div>
  3489. </div> -->
  3490. </div>
  3491. </div>
  3492. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3493. @mouseleave="btnDisplay(false)" v-if="false">
  3494. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps" v-if="isBtnDisplay">
  3495. 返回课程
  3496. </button>
  3497. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="isBtnDisplay">
  3498. 确认上传
  3499. </button>
  3500. </div>
  3501. </div>
  3502. </div>
  3503. </div>
  3504. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3505. class="dialog_diy2 customWidth">
  3506. <div>请复制该链接邀请协同编辑</div>
  3507. <div>http://www.boomyon.com/index-zhang.com</div>
  3508. <span slot="footer" class="dialog-footer">
  3509. <el-button type="primary">复制链接分享</el-button>
  3510. <el-button @click="dialogVisible = false">取消</el-button>
  3511. </span>
  3512. </el-dialog>
  3513. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  3514. :before-close="handleClose" class="dialog_diy2 customWidth">
  3515. <el-form>
  3516. <el-form-item label="文档标题">
  3517. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3518. </el-form-item>
  3519. <div>文档简介</div>
  3520. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3521. </el-form>
  3522. <span slot="footer" class="dialog-footer">
  3523. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3524. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3525. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3526. </span>
  3527. </el-dialog>
  3528. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3529. :before-close="handleClose" class="dialog_diy">
  3530. <el-form>
  3531. <el-form-item label="文档标题">
  3532. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3533. </el-form-item>
  3534. <div>文档内容</div>
  3535. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3536. </el-form>
  3537. <span slot="footer" class="dialog-footer">
  3538. <el-button @click="clearChoose">取 消</el-button>
  3539. <el-button type="primary" @click="wordNext()">确定</el-button>
  3540. </span>
  3541. </el-dialog>
  3542. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3543. :before-close="handleClose" class="dialog_diy">
  3544. <el-form>
  3545. <el-form-item label="文本标题">
  3546. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3547. placeholder="请输入文本标题..."></el-input>
  3548. </el-form-item>
  3549. <!-- <div>富文本内容</div> -->
  3550. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3551. </el-form>
  3552. <span slot="footer" class="dialog-footer">
  3553. <el-button @click="clearAttText">取 消</el-button>
  3554. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3555. </span>
  3556. </el-dialog>
  3557. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3558. :before-close="handleClose" class="dialog_diy lineCss">
  3559. <el-form>
  3560. <el-form-item label="标题" :label-width="formLabelWidth">
  3561. <span>
  3562. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3563. </span>
  3564. </el-form-item>
  3565. <el-form-item label="链接" :label-width="formLabelWidth">
  3566. <span>
  3567. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3568. </span>
  3569. </el-form-item>
  3570. </el-form>
  3571. <span slot="footer" class="dialog-footer">
  3572. <el-button @click="clearLine">取 消</el-button>
  3573. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3574. </span>
  3575. </el-dialog>
  3576. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3577. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3578. <div>
  3579. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3580. </div>
  3581. <span slot="footer" class="dialog-footer">
  3582. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3583. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3584. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3585. </span>
  3586. </el-dialog>
  3587. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3588. :before-close="handleClose" class="addNewPP customWidth">
  3589. <div class="people">
  3590. <div class="people_top">
  3591. <div class="people_nav">选择成员</div>
  3592. <div class="people_top_right">
  3593. <div class="people_search">
  3594. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3595. <div class="search_img" @click="searchStudent">
  3596. <img src="../../../assets/icon/search.png" alt />
  3597. </div>
  3598. </div>
  3599. </div>
  3600. </div>
  3601. <el-checkbox-group v-model="checkboxList" class="people_name">
  3602. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3603. "暂无学生可选" }}</el-checkbox>
  3604. </el-checkbox-group>
  3605. </div>
  3606. <span slot="footer" class="dialog-footer">
  3607. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3608. <el-button type="primary" @click="isAddPP">确定</el-button>
  3609. </span>
  3610. </el-dialog>
  3611. <!-- <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  3612. :before-close="handleClose" class="addNewPP">
  3613. <div class="people" style="height: 300px">
  3614. <div class="people_top">
  3615. <div class="people_top_right">
  3616. <div class="people_search">
  3617. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  3618. <el-option label="全部" value=""></el-option>
  3619. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
  3620. :value="item.id"></el-option>
  3621. </el-select>
  3622. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  3623. <div class="search_img">
  3624. <img src="../../../assets/icon/search.png" alt />
  3625. </div>
  3626. </div>
  3627. </div>
  3628. <div class="people_nav">选择班级</div>
  3629. </div>
  3630. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
  3631. v-if="grade2.length">
  3632. <div v-for="item in grade2" :key="item.id" class="p_box">
  3633. <el-checkbox :label="item.id">
  3634. {{ item.name }}
  3635. </el-checkbox>
  3636. </div>
  3637. </el-checkbox-group>
  3638. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  3639. </div>
  3640. <span slot="footer" class="dialog-footer">
  3641. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3642. <el-button type="primary" @click="isAddClass">确定</el-button>
  3643. </span>
  3644. </el-dialog> -->
  3645. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3646. :before-close="handleClose" class="addNewPP2">
  3647. <div class="check_classBox">
  3648. <div class="check_class_right">
  3649. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  3650. 全部
  3651. </div>
  3652. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3653. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  3654. {{ item.name }}
  3655. </div>
  3656. </el-tooltip>
  3657. </div>
  3658. <div class="check_class_left">
  3659. <div class="check_class_all_box">
  3660. <div class="check_class_left_title">选择班级</div>
  3661. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  3662. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  3663. </div>
  3664. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  3665. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  3666. </div> -->
  3667. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  3668. <div v-for="item in grade2" :key="item.id" class="class_item">
  3669. <el-checkbox :label="item.id">
  3670. {{ item.name }}
  3671. </el-checkbox>
  3672. </div>
  3673. </el-checkbox-group>
  3674. <div v-if="!grade2.length">暂无数据</div>
  3675. </div>
  3676. </div>
  3677. <span slot="footer" class="dialog-footer">
  3678. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3679. <el-button type="primary" @click="isAddClass">确定</el-button>
  3680. </span>
  3681. </el-dialog>
  3682. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3683. :before-close="handleClose" class="addNewPP customWidth">
  3684. <div class="people">
  3685. <div class="people_top">
  3686. <div class="people_top_right">
  3687. <div class="people_search">
  3688. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3689. <div class="search_img" @click="getTeacher">
  3690. <img src="../../../assets/icon/search.png" alt />
  3691. </div>
  3692. </div>
  3693. </div>
  3694. <div class="people_nav">选择成员</div>
  3695. </div>
  3696. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  3697. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3698. <div class="t_j_box">
  3699. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3700. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3701. </el-tooltip>
  3702. <el-tooltip placement="top" :content="item.username">
  3703. <span>{{ item.username }}</span>
  3704. </el-tooltip>
  3705. <el-tooltip placement="top" :content="item.school">
  3706. <span>{{ item.school }}</span>
  3707. </el-tooltip>
  3708. </div>
  3709. </el-checkbox>
  3710. </el-checkbox-group>
  3711. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3712. </div>
  3713. <span slot="footer" class="dialog-footer">
  3714. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3715. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3716. </span>
  3717. </el-dialog>
  3718. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  3719. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  3720. <div style="height:100%">
  3721. <div class="a_add_title" style="
  3722. display: flex;
  3723. flex-direction: row;
  3724. align-items: center;
  3725. justify-content: center;
  3726. ">
  3727. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3728. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3729. </div>
  3730. <div class="a_addBox" style="height:calc(100% - 50px)">
  3731. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3732. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3733. <div class="a_add_checkType">
  3734. <span :class="{
  3735. active:
  3736. askJson.askJson[index1].type == '1' ||
  3737. !askJson.askJson[index1].type,
  3738. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3739. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3740. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3741. </div>
  3742. <div class="a_add_head">
  3743. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  3744. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  3745. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  3746. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  3747. </div>
  3748. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  3749. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  3750. </div>
  3751. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  3752. </div>
  3753. <div class="a_add_head_div">
  3754. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3755. </el-button>
  3756. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  3757. </div>
  3758. </div>
  3759. <div class="a_add_body">
  3760. <div class="a_add_input" style="flex-direction: column;">
  3761. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  3762. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  3763. <div style="margin-right: 10px">
  3764. 选项{{ checkIndex + 1 }}
  3765. </div>
  3766. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  3767. " placeholder="请输入选项" style="width: 300px" @change="() => { $forceUpdate() }"></textarea>
  3768. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  3769. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  3770. </div>
  3771. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  3772. </div>
  3773. <div class="a_add_body_div">
  3774. <el-button type="primary" size="small"
  3775. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  3776. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  3777. v-if="askJson.askJson[index1].askItem != 1">删除
  3778. </el-button>
  3779. </div>
  3780. </div>
  3781. </div>
  3782. <!-- <div class="a_add_body_div">
  3783. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3784. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3785. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3786. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3787. </el-button>
  3788. </div> -->
  3789. </div>
  3790. </div>
  3791. </div>
  3792. </div>
  3793. <span slot="footer" class="dialog-footer">
  3794. <el-button @click="closePan(4)">取 消</el-button>
  3795. <el-button type="primary" @click="addAsk">确 定</el-button>
  3796. </span>
  3797. </el-dialog>
  3798. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  3799. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  3800. <div style="height:100%">
  3801. <!-- <div class="a_add_title" style="
  3802. display: flex;
  3803. flex-direction: row;
  3804. align-items: center;
  3805. justify-content: center;
  3806. ">
  3807. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3808. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3809. </div> -->
  3810. <div class="a_addBox" style="height:100%">
  3811. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  3812. <!-- 请输入题目内容 -->
  3813. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  3814. v-if="isPasteChoice">智能粘贴</button>
  3815. </div>
  3816. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3817. <div class="a_add_checkType">
  3818. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  3819. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  3820. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  3821. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  3822. </div>
  3823. <div class="a_add_head">
  3824. <div class="timuUpImg">
  3825. <div style="display: flex;align-items: center;">
  3826. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  3827. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  3828. placeholder="请输入题目">
  3829. </el-input> -->
  3830. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3831. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  3832. @change="() => { $forceUpdate() }"></textarea>
  3833. </div>
  3834. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  3835. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  3836. </div>
  3837. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  3838. </div>
  3839. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  3840. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3841. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  3842. </div>
  3843. </div>
  3844. <div class="a_add_head_div">
  3845. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  3846. </el-button>
  3847. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  3848. </div>
  3849. </div>
  3850. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3851. testJson.testJson[index1].timuList.length
  3852. ">
  3853. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3854. @click.stop="previewImg(timg.src)">
  3855. <img :src="timg.src" alt="" />
  3856. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  3857. <img src="../../../assets/icon/delete.png" alt="" />
  3858. </div>
  3859. </div>
  3860. </div>
  3861. <div class="a_add_body">
  3862. <div class="a_add_input a_add_input_choice">
  3863. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  3864. @change="() => { $forceUpdate() }">
  3865. <div class="radioBox">
  3866. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3867. .testItem" :key="checkIndex" :label="checkIndex">
  3868. <div style="margin-right: 10px">
  3869. 选项{{ checkIndex + 1 }}
  3870. </div>
  3871. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3872. testJson.testJson[index1].checkList[checkIndex]
  3873. .imgType &&
  3874. testJson.testJson[index1].checkList[checkIndex]
  3875. .imgType == 1
  3876. ">
  3877. <div class="inImg" @click.stop="
  3878. previewImg(
  3879. testJson.testJson[index1].checkList[checkIndex]
  3880. .src
  3881. )
  3882. ">
  3883. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3884. .src
  3885. " lazy />
  3886. <!-- <img :src="
  3887. testJson.testJson[index1].checkList[checkIndex]
  3888. .src
  3889. " alt="" /> -->
  3890. </div>
  3891. </div>
  3892. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3893. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3894. @change="() => { $forceUpdate() }"></textarea>
  3895. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3896. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  3897. </div>
  3898. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  3899. </div>
  3900. <div class="xzUpImg" @click.stop="addImg($event)">
  3901. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3902. <input type="file" accept="image/*" style="display: none"
  3903. @change="beforeUploadTi($event, index1, checkIndex)" />
  3904. </div>
  3905. <div class="a_add_body_div">
  3906. <el-button type="primary" size="small"
  3907. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  3908. <el-button type="primary" size="small"
  3909. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  3910. v-if="testJson.testJson[index1].testItem != 1">删除
  3911. </el-button>
  3912. </div>
  3913. </el-radio>
  3914. </div>
  3915. </el-radio-group>
  3916. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  3917. @change="() => { $forceUpdate() }">
  3918. <div class="radioBox">
  3919. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3920. .testItem" :key="checkIndex1" :label="checkIndex1">
  3921. <div style="margin-right: 10px">
  3922. 选项{{ checkIndex1 + 1 }}
  3923. </div>
  3924. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3925. testJson.testJson[index1].checkList[checkIndex1]
  3926. .imgType &&
  3927. testJson.testJson[index1].checkList[checkIndex1]
  3928. .imgType == 1
  3929. ">
  3930. <div class="inImg" @click.stop="
  3931. previewImg(
  3932. testJson.testJson[index1].checkList[checkIndex1]
  3933. .src
  3934. )
  3935. ">
  3936. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3937. .src
  3938. " lazy />
  3939. <!-- <img :src="
  3940. testJson.testJson[index1].checkList[checkIndex1]
  3941. .src
  3942. " alt="" /> -->
  3943. </div>
  3944. </div>
  3945. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3946. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3947. @change="() => { $forceUpdate() }"></textarea>
  3948. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3949. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3950. </div>
  3951. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3952. </div>
  3953. <div class="xzUpImg" @click.stop="addImg($event)">
  3954. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3955. <input type="file" accept="image/*" style="display: none"
  3956. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3957. </div>
  3958. <div class="a_add_body_div">
  3959. <el-button type="primary" size="small"
  3960. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3961. <el-button type="primary" size="small"
  3962. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3963. v-if="testJson.testJson[index1].testItem != 1">删除
  3964. </el-button>
  3965. </div>
  3966. </el-checkbox>
  3967. </div>
  3968. </el-checkbox-group>
  3969. </div>
  3970. <!-- <div class="a_add_body_div">
  3971. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3972. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3973. v-if="testJson.testJson[index1].testItem != 1">删除
  3974. </el-button>
  3975. </div> -->
  3976. </div>
  3977. </div>
  3978. </div>
  3979. </div>
  3980. <span slot="footer" class="dialog-footer">
  3981. <el-button @click="closePan(45)">取 消</el-button>
  3982. <el-button type="primary" @click="addTest">确 定</el-button>
  3983. </span>
  3984. </el-dialog>
  3985. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3986. :before-close="handleClose" class="dialog_diy addToolsDia">
  3987. <div class="toolChoose" style="padding: 0 0 0 30px">
  3988. <div class="tools">
  3989. <div class="leftTools" style="
  3990. width: 95%;
  3991. padding: 0 0 15px 0;
  3992. margin: 15px 0;
  3993. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3994. <div style="
  3995. display: flex;
  3996. flex-direction: row;
  3997. align-items: baseline;
  3998. flex-wrap: nowrap;
  3999. justify-content: flex-start;
  4000. position: relative;
  4001. ">
  4002. <div class="chooseWho">
  4003. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4004. 互动类
  4005. </div>
  4006. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4007. 思维类
  4008. </div>
  4009. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4010. 评价类
  4011. </div>
  4012. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4013. 其他
  4014. </div>
  4015. </div>
  4016. </div>
  4017. <div style="min-height: 163px">
  4018. <div class="toolSort" v-if="chapToolsType == 0">
  4019. <div class="tool">
  4020. <div class="whiteBIcon" @click="chapAddTools(8)">
  4021. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4022. <div style="margin: 5px 0">素材库</div>
  4023. </div>
  4024. <div class="check" @click="chapAddTools(8)">
  4025. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4026. <div class="checkDiv" v-else>
  4027. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4028. </div>
  4029. </div>
  4030. </div>
  4031. </div>
  4032. <div class="toolSort" v-if="chapToolsType == 1">
  4033. <div class="tool">
  4034. <div class="whiteBIcon" @click="chapAddTools(7)">
  4035. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4036. <div style="margin: 5px 0">思维网格</div>
  4037. </div>
  4038. <div class="check" @click="chapAddTools(7)">
  4039. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4040. <div class="checkDiv" v-else>
  4041. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4042. </div>
  4043. </div>
  4044. </div>
  4045. <div class="tool">
  4046. <div class="whiteBIcon" @click="chapAddTools(1)">
  4047. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4048. <div style="margin: 5px 0">电子白板</div>
  4049. </div>
  4050. <div class="check" @click="chapAddTools(1)">
  4051. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4052. <div class="checkDiv" v-else>
  4053. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4054. </div>
  4055. </div>
  4056. </div>
  4057. <div class="tool">
  4058. <div class="whiteBIcon" @click="chapAddTools(2)">
  4059. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4060. <div style="margin: 5px 0">便签</div>
  4061. </div>
  4062. <div class="check" @click="chapAddTools(2)">
  4063. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4064. <div class="checkDiv" v-else>
  4065. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4066. </div>
  4067. </div>
  4068. </div>
  4069. <div class="tool">
  4070. <div class="whiteBIcon" @click="chapAddTools(6)">
  4071. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4072. <div style="margin: 5px 0">协同文档</div>
  4073. </div>
  4074. <div class="check" @click="chapAddTools(6)">
  4075. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4076. <div class="checkDiv" v-else>
  4077. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4078. </div>
  4079. </div>
  4080. </div>
  4081. <div class="tool">
  4082. <div class="whiteBIcon" @click="chapAddTools(3)">
  4083. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4084. <div style="margin: 5px 0">思维导图</div>
  4085. </div>
  4086. <div class="check" @click="chapAddTools(3)">
  4087. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4088. <div class="checkDiv" v-else>
  4089. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4090. </div>
  4091. </div>
  4092. </div>
  4093. <div class="tool">
  4094. <div class="whiteBIcon" @click="chapAddTools(31)">
  4095. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4096. <div style="margin: 5px 0">数学画板</div>
  4097. </div>
  4098. <div class="check" @click="chapAddTools(31)">
  4099. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4100. <div class="checkDiv" v-else>
  4101. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4102. </div>
  4103. </div>
  4104. </div>
  4105. </div>
  4106. <div class="toolSort" v-if="chapToolsType == 2">
  4107. <div class="tool">
  4108. <div class="whiteBIcon" @click="chapAddTools(5)">
  4109. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4110. <div style="margin: 5px 0">量规评分</div>
  4111. </div>
  4112. <div class="check" @click="chapAddTools(5)">
  4113. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4114. <div class="checkDiv" v-else>
  4115. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4116. </div>
  4117. </div>
  4118. </div>
  4119. <div class="tool">
  4120. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  4121. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4122. <div style="margin: 5px 0">问卷调查</div>
  4123. </div>
  4124. <div class="check" @click="chapAddTools(4)">
  4125. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4126. <div class="checkDiv" v-else>
  4127. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4128. </div>
  4129. </div>
  4130. </div>
  4131. </div>
  4132. </div>
  4133. <div>
  4134. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  4135. v-model="itemTools.toolDetail" />
  4136. </div>
  4137. </div>
  4138. </div>
  4139. </div>
  4140. <span slot="footer" class="dialog-footer">
  4141. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4142. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4143. </span>
  4144. </el-dialog>
  4145. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  4146. :before-close="(done) => { closePan(15) }" 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. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4157. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  4158. </div>
  4159. </div>
  4160. <span slot="footer" class="dialog-footer">
  4161. <el-button @click="closePan(15)">取 消</el-button>
  4162. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4163. </span>
  4164. </el-dialog>
  4165. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4166. :before-close="handleClose" class="dialog_diy">
  4167. <div>
  4168. <div class="a_add_title" style="
  4169. display: flex;
  4170. flex-direction: column;
  4171. align-items: flex-start;
  4172. justify-content: center;
  4173. ">
  4174. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4175. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4176. </div>
  4177. </div>
  4178. <span slot="footer" class="dialog-footer">
  4179. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4180. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4181. </span>
  4182. </el-dialog>
  4183. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4184. :before-close="handleClose" class="dialog_diy">
  4185. <div>
  4186. <div class="fileCss" style="padding-top: 20px">
  4187. <div>
  4188. <button class="info_btn" @click="addImg($event)">
  4189. 选择本地文件
  4190. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4191. </button>
  4192. <div class="spanName">选择本地文件</div>
  4193. </div>
  4194. <!-- <div>
  4195. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4196. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4197. <img :src="cover[0].url" alt="" />
  4198. <div class="deletePic" @click="deleteSysPic">
  4199. <img src="../../../assets/icon/delete.png" alt="" />
  4200. </div>
  4201. </div>
  4202. <div class="spanName">选择系统文件</div>
  4203. </div> -->
  4204. <div>
  4205. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  4206. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4207. <img :src="cover[0].url" alt="" />
  4208. <div class="deletePic" @click="deleteSysPic">
  4209. <img src="../../../assets/icon/delete.png" alt="" />
  4210. </div>
  4211. </div>
  4212. <div class="spanName">选择网络文件</div>
  4213. </div>
  4214. </div>
  4215. <!-- <div class="fileCss">
  4216. <div>选择本地文件</div>
  4217. <div>选择系统文件</div>
  4218. </div> -->
  4219. </div>
  4220. <span slot="footer" class="dialog-footer">
  4221. <el-button @click="choosePicVisible = false">取 消</el-button>
  4222. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4223. </span>
  4224. </el-dialog>
  4225. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4226. :before-close="handleClose" class="dialog_diy">
  4227. <div class="cru_selectBox" style="margin: 0">
  4228. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4229. 绘画
  4230. </div>
  4231. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4232. 科技
  4233. </div>
  4234. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4235. 人文
  4236. </div>
  4237. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4238. 艺术
  4239. </div>
  4240. </div>
  4241. <div class="sysPicBox">
  4242. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4243. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4244. </div>
  4245. </div>
  4246. </el-dialog>
  4247. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4248. :before-close="handleClose" class="dialog_diy">
  4249. <div>
  4250. <div class="people_top_right" style="display: flex;align-items: center;">
  4251. <div style="position: relative; width: 100%;">
  4252. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4253. @keyup.enter.native="resetImage()"></el-input>
  4254. <div class="search_img" @click="resetImage" style="right: 10px;">
  4255. <img src="../../../assets/icon/search.png" alt />
  4256. </div>
  4257. </div>
  4258. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  4259. </div>
  4260. <div class="sysPicBox" v-loading="imageloading">
  4261. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  4262. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4263. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4264. </div>
  4265. </div>
  4266. </div>
  4267. </el-dialog>
  4268. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  4269. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  4270. <div v-if="selectJson" style="height:100%">
  4271. <div class="select_box1" v-if="selectSteps == 1">
  4272. <div class="select_box1_img">
  4273. <div class="select_box1_title">
  4274. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4275. </div>
  4276. <div class="select_box1_add_img">
  4277. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4278. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4279. <img src="../../../assets/icon/addPoster.png" alt="" />
  4280. </div>
  4281. <div class="isSysPic" v-else>
  4282. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4283. <div class="deletePic" @click="deleteSelectPic">
  4284. <img src="../../../assets/icon/delete.png" alt="" />
  4285. </div>
  4286. </div>
  4287. </div>
  4288. </div>
  4289. <div class="select_box1_select">
  4290. <div class="select_box1_title">
  4291. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4292. </div>
  4293. <div class="select_box1_select_box">
  4294. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4295. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4296. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4297. <div class="select_box1_select_box_add">
  4298. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4299. 添加</el-button>
  4300. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4301. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4302. </div>
  4303. </div>
  4304. </div>
  4305. </div>
  4306. <div v-if="selectSteps == 2" style="height:100%">
  4307. <div class="select_box2">
  4308. <div class="select_box2_title">设置每道题目的正确选项</div>
  4309. <div class="select_box2_box">
  4310. <div class="select_box2_img">
  4311. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4312. </div>
  4313. <div class="select_box2_answer">
  4314. <div class="select_answer_title">根据题目选择对应答案</div>
  4315. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4316. <span>{{ checkIndex + 1 }}、</span>
  4317. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4318. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4319. </el-option>
  4320. </el-select>
  4321. </div>
  4322. </div>
  4323. </div>
  4324. </div>
  4325. </div>
  4326. </div>
  4327. <span slot="footer" class="dialog-footer">
  4328. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4329. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4330. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4331. </span>
  4332. </el-dialog>
  4333. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4334. :before-close="handleClose" class="dialog_diy">
  4335. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4336. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4337. <div class="pjCss" style="width: 100%">
  4338. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4339. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4340. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4341. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  4342. <div class="remove" @click="deletRateList(eIndex)"></div>
  4343. <div style="width: 100%; display: flex">
  4344. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4345. <el-rate v-model="eItem.score" disabled></el-rate>
  4346. </div>
  4347. <div class="elist_inptu_text" style="align-items: flex-start">
  4348. <span style="min-width: 100px; text-align: right">描述:</span>
  4349. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  4350. </div>
  4351. </div>
  4352. </div>
  4353. <div class="addToolFun" @click="addRateList()">
  4354. <div class="addToolImg">
  4355. <img src="../../../assets/icon/add.png" alt />
  4356. </div>
  4357. <div>添加</div>
  4358. </div>
  4359. </div>
  4360. </div>
  4361. <span slot="footer" class="dialog-footer">
  4362. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4363. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4364. </span>
  4365. </el-dialog>
  4366. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4367. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  4368. <div style="height: 100%;">
  4369. <div class="sentenBox" style="height: 100%;">
  4370. <div class="addSen" @click="addSt">添加题目</div>
  4371. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4372. <div class="sentenTopBox">
  4373. <div class="sentenTop" :index="stIndex + 1">
  4374. <div>题目设置</div>
  4375. <div>
  4376. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4377. </div>
  4378. <div @click="addSen(stIndex)">添加</div>
  4379. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4380. </div>
  4381. </div>
  4382. <div class="cardList">
  4383. <div v-if="st.addSentence.length > 0" class="cardBox">
  4384. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4385. @click="setRightAnswer(s, stIndex, sIndex)">
  4386. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4387. <div>{{ s }}</div>
  4388. </el-tooltip>
  4389. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4390. <img src="../../../assets/icon/delete.png" alt="" />
  4391. </div>
  4392. </div>
  4393. </div>
  4394. <div class="card">
  4395. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4396. </div>
  4397. </div>
  4398. <div class="rightCardBox">
  4399. <div>正确顺序</div>
  4400. <div class="rightCardList">
  4401. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4402. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4403. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4404. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4405. <div>{{ r }}</div>
  4406. </el-tooltip>
  4407. </div>
  4408. <div>{{ rIndex + 1 }}</div>
  4409. </div>
  4410. </div>
  4411. <div class="card" v-if="st.rightAnswer.length == 0">
  4412. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4413. </div>
  4414. <div class="card" v-else>
  4415. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4416. </div>
  4417. </div>
  4418. </div>
  4419. </div>
  4420. </div>
  4421. </div>
  4422. <span slot="footer" class="dialog-footer">
  4423. <el-button @click="closePan(47)">取 消</el-button>
  4424. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4425. </span>
  4426. </el-dialog>
  4427. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4428. :before-close="handleClose" class="dialog_diy">
  4429. <el-form>
  4430. <!-- <el-form-item label="文本标题">
  4431. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4432. </el-form-item> -->
  4433. <div>表格内容</div>
  4434. <Table v-model="tableJson.text" @change="change"></Table>
  4435. </el-form>
  4436. <span slot="footer" class="dialog-footer">
  4437. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4438. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4439. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4440. </span>
  4441. </el-dialog>
  4442. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  4443. :before-close="handleClose" class="dialog_diy">
  4444. <el-form>
  4445. <!-- <el-form-item label="文本标题">
  4446. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4447. </el-form-item> -->
  4448. <div>文档内容</div>
  4449. <editor-bar v-model="wordJson.text"></editor-bar>
  4450. </el-form>
  4451. <span slot="footer" class="dialog-footer">
  4452. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4453. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4454. </span>
  4455. </el-dialog>
  4456. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4457. :before-close="handleClose" class="dialog_diy">
  4458. <div style="
  4459. width: 100%;
  4460. display: flex;
  4461. flex-direction: row;
  4462. flex-wrap: nowrap;
  4463. align-items: center;
  4464. justify-content: center;
  4465. ">
  4466. <div>班级:</div>
  4467. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4468. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4469. </el-option>
  4470. </el-select>
  4471. </div>
  4472. <span slot="footer" class="dialog-footer">
  4473. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4474. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4475. </span>
  4476. </el-dialog>
  4477. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4478. :before-close="handleClose" class="dialog_diy">
  4479. <div style="
  4480. width: 100%;
  4481. display: flex;
  4482. flex-direction: row;
  4483. flex-wrap: nowrap;
  4484. align-items: center;
  4485. justify-content: center;
  4486. ">
  4487. <div>随机码:</div>
  4488. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4489. </div>
  4490. <span slot="footer" class="dialog-footer">
  4491. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4492. <el-button type="primary" @click="addInvite">确定</el-button>
  4493. </span>
  4494. </el-dialog>
  4495. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4496. :before-close="handleClose" class="dialog_diy">
  4497. <div>
  4498. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  4499. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4500. </div>
  4501. <span slot="footer" class="dialog-footer">
  4502. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4503. <el-button type="primary" @click="addPreTime">确定</el-button>
  4504. </span>
  4505. </el-dialog>
  4506. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  4507. class="dialog_diy">
  4508. <div>
  4509. <div style="
  4510. width: 100%;
  4511. display: flex;
  4512. flex-direction: row;
  4513. flex-wrap: nowrap;
  4514. align-content: center;
  4515. align-items: center;
  4516. justify-content: space-between;
  4517. ">
  4518. <div style="
  4519. display: flex;
  4520. flex-flow: row nowrap;
  4521. align-items: flex-start;
  4522. width: 100%;
  4523. flex-direction: column;
  4524. flex-wrap: nowrap;
  4525. position: relative;
  4526. ">
  4527. <div class="e_box">
  4528. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4529. <div class="e_card_picture">
  4530. <img src="../../../assets/e_picture.png" />
  4531. </div>
  4532. <div class="e_card_name">
  4533. <span>{{ item.title }}</span>
  4534. </div>
  4535. <div class="e_card_btn">
  4536. <span @click="checkEva(item.id, 2)">导入</span>
  4537. </div>
  4538. </div>
  4539. <div class="addEva" @click="openT">
  4540. <img src="../../../assets/icon/addEva.png" alt="" />
  4541. </div>
  4542. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4543. 暂无数据
  4544. </div>
  4545. </div>
  4546. </div>
  4547. </div>
  4548. </div>
  4549. <span slot="footer" class="dialog-footer">
  4550. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4551. </span>
  4552. </el-dialog>
  4553. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4554. :before-close="handleClose" class="dialog_diy">
  4555. <div class="groupBox">
  4556. <div v-if="groupJson.group" class="groupContent">
  4557. <div class="groupTitle">请设置小组数量及名称</div>
  4558. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4559. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4560. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4561. <div class="groupBtn">
  4562. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  4563. 添加</el-button>
  4564. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4565. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4566. </div>
  4567. </div>
  4568. </div>
  4569. <div class="groupContent">
  4570. <div class="groupTitle">请设置每组人数</div>
  4571. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4572. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4573. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  4574. @change="numberPan"></el-input>
  4575. </div>
  4576. </div>
  4577. <span slot="footer" class="dialog-footer">
  4578. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4579. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4580. </span>
  4581. </el-dialog>
  4582. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4583. :before-close="handleClose" class="dialog_diy">
  4584. <div style="
  4585. width: 100%;
  4586. display: flex;
  4587. flex-direction: row;
  4588. flex-wrap: nowrap;
  4589. align-items: center;
  4590. justify-content: center;
  4591. ">
  4592. <div style="min-width: fit-content;">文件名称:</div>
  4593. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4594. </div>
  4595. <span slot="footer" class="dialog-footer">
  4596. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4597. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4598. </span>
  4599. </el-dialog>
  4600. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  4601. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle fullStyle1">
  4602. <englishRight :englishList="englishList" :oid="oid" ref="engJson"></englishRight>
  4603. <span slot="footer" class="dialog-footer">
  4604. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4605. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4606. </span>
  4607. </el-dialog>
  4608. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4609. </div>
  4610. </template>
  4611. <script>
  4612. import "../../../common/aws-sdk-2.235.1.min.js";
  4613. import { tools as toolsData } from "../../../common/tools.js";
  4614. import $ from "jquery";
  4615. import EditorBar from "../../../components/tools/wangEnduit";
  4616. import Table from "../../../components/tools/table";
  4617. import Mind from "../../tools/jsmind2";
  4618. import Time from "../../tools/time.vue";
  4619. import Sunburst from "../../tools/sunburst";
  4620. import SeeBoard from "../../tools/seeBoard";
  4621. import weilaiData from "../components/weilai.js";
  4622. import sourceDialog from "../teacherSource/dialog.vue";
  4623. import interVideo from "../interVideo/index.vue";
  4624. import englishRight from "./commpont/englishRight.vue";
  4625. export default {
  4626. components: {
  4627. EditorBar,
  4628. Mind,
  4629. Time,
  4630. Sunburst,
  4631. SeeBoard,
  4632. Table,
  4633. sourceDialog,
  4634. interVideo,
  4635. englishRight,
  4636. },
  4637. data() {
  4638. return {
  4639. checkAll: false,
  4640. chooseType: 1,
  4641. checkedCities: [],
  4642. isIndeterminate: true,
  4643. isSysPic: false,
  4644. isSysPic2: false,
  4645. steps: 1,
  4646. nbOrder: 0,
  4647. courseId: "",
  4648. chapToolsType: 0,
  4649. chapTools: [
  4650. {
  4651. tools: [],
  4652. toolDetail: "",
  4653. },
  4654. ],
  4655. line: "",
  4656. lineTitle: "",
  4657. sysPic: [],
  4658. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4659. sentenceList2: [],
  4660. isPushTitleList: [],
  4661. lineCount: 0,
  4662. lineType: 0,
  4663. chapCount: 0,
  4664. courseName: "",
  4665. isTeacherSee: false,
  4666. courseText: "",
  4667. preTime: 0,
  4668. formLabelWidth: "100px",
  4669. choosePicVisible: false,
  4670. sysPicVisible: false,
  4671. uploadLoading1: false,
  4672. noneBtnImg: false,
  4673. updateBoolean2: false,
  4674. unitIndex: 0,
  4675. taskCount: 0,
  4676. dialogVisible: false,
  4677. dialogVisible1: false,
  4678. dialogVisible2: false,
  4679. dialogVisible3: false,
  4680. dialogVisible4: false,
  4681. dialogVisible5: false,
  4682. dialogVisible6: false,
  4683. dialogVisible7: false,
  4684. dialogVisible8: false,
  4685. dialogVisible9: false,
  4686. dialogVisibleClass: false,
  4687. dialogVisibleMember: false,
  4688. dialogVisibleMp3: false,
  4689. dialogVisibleSelect: false,
  4690. dialogVisibleSentence: false,
  4691. dialogVisibleRate: false,
  4692. dialogVisibleChoice: false,
  4693. dialogVisiblemb: false,
  4694. dialogVisibleInvite: false,
  4695. dialogVisibleSource: false,
  4696. dialogVisibleVideo: false,
  4697. dialogVisibleupdataVideoT: false,
  4698. isClickColor: 1,
  4699. toolIndexType: "",
  4700. publicTool: 0,
  4701. searchPeople: "",
  4702. searchTN: "",
  4703. userid: this.$route.query.userid,
  4704. oid: this.$route.query.oid,
  4705. org: this.$route.query.org,
  4706. role: this.$route.query.role,
  4707. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4708. dialogVisibleTable: false,
  4709. dialogVisibleWord: false,
  4710. tableJson: { text: "" },
  4711. wordJson: { text: "" },
  4712. dialogVisibleMoreUpload: false,
  4713. dialogVisiblePreTime: false,
  4714. englishDialogVisible: false,
  4715. uploadJson: [],
  4716. classJuri: [],
  4717. gradeList: [],
  4718. cover: [], //课程封面
  4719. myWord: [],
  4720. evaJuri: [],
  4721. evalua: "",
  4722. targetArray: [],
  4723. eTitle: "",
  4724. eJson: {},
  4725. fid: "", //一级
  4726. sid: "", //二级
  4727. tid: "", //二级
  4728. typeMode: 1,
  4729. eJSONNum: 0,
  4730. data: {
  4731. meta: {
  4732. name: "example",
  4733. author: "dd@163.com",
  4734. version: "0.2",
  4735. },
  4736. format: "node_array",
  4737. data: [{ id: "root", isroot: true, topic: "" }],
  4738. },
  4739. askJson: {
  4740. askCount: 1,
  4741. askTitle: "",
  4742. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4743. },
  4744. askJson2: {},
  4745. testJson: {},
  4746. testJson2: {},
  4747. selectJson: {},
  4748. selectJson2: {},
  4749. englishList:{},
  4750. rateJson: [],
  4751. unitJson2: [],
  4752. unitJson: [
  4753. {
  4754. dyName: "", //单元标题
  4755. chapterInfo: [
  4756. {
  4757. isread: false,
  4758. chapterid: this.guid(),
  4759. title: "",
  4760. courseName: "",
  4761. taskJson: [
  4762. {
  4763. task: "",
  4764. taskDetail: "",
  4765. chapterData: [],
  4766. toolChoose: [
  4767. {
  4768. tool: [],
  4769. toolDetail: "",
  4770. toolType: 0,
  4771. askCount: 1,
  4772. askTitle: "",
  4773. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4774. },
  4775. ],
  4776. toolText: "",
  4777. isShowTools: false,
  4778. askCount: 1,
  4779. isFold: 1,
  4780. askTitle: "",
  4781. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4782. checkJson: [{ checkCount: [], checkPerent: [] }],
  4783. homeworkList: [],
  4784. },
  4785. ],
  4786. itemCount: 1,
  4787. fileList1: [],
  4788. video: [],
  4789. testData: [],
  4790. pData: [],
  4791. templateArray: [],
  4792. },
  4793. ],
  4794. },
  4795. ],
  4796. templateArray: [],
  4797. studentJuri: [],
  4798. teacherJuri: [],
  4799. checkboxList: [],
  4800. checkboxList2: [],
  4801. checkboxList3: [],
  4802. classSearch: "",
  4803. gradeId: "",
  4804. number: "",
  4805. tTitle: "",
  4806. tdetail: "",
  4807. templateC: {},
  4808. AttText: {},
  4809. AttTextType: 0,
  4810. AttTextIndex: 0,
  4811. cTemplate: "",
  4812. CourseType: [],
  4813. CourseType2: [],
  4814. CourseTypeJson: {},
  4815. courseTypeId: [],
  4816. courseTypeSon: [],
  4817. clearArray: [],
  4818. pTypeCheck: [],
  4819. pTypeCheckName: [],
  4820. loading: false,
  4821. toolType: 0,
  4822. inputShow: true,
  4823. inputShow2: true,
  4824. toolIndex: 0,
  4825. cidType: 0,
  4826. answerQ: "",
  4827. answerQ2: "",
  4828. grade: [],
  4829. grade2: [],
  4830. courseUserid: "",
  4831. timer: null,
  4832. timer2: null,
  4833. pasteTimer: null,
  4834. checkId: "",
  4835. isDelete: 1,
  4836. addindex: 0,
  4837. selectSteps: 1,
  4838. groupJson: {},
  4839. dialogVisibleGroup: false,
  4840. rightBoxHeight: 0,
  4841. ManAarray: [],
  4842. checkBoolean: false,
  4843. inviteCode: [],
  4844. inviteId: "",
  4845. icode: "",
  4846. easyArray: [2, 4],
  4847. sourceData: {},
  4848. updateSourcePan: false,
  4849. videoJson: {},
  4850. isBtnDisplay: false,
  4851. isPasteTask: false,
  4852. isPasteChoice: false,
  4853. sysPicVisible2: false,
  4854. imageloading: false,
  4855. searchImageValue: "",
  4856. ppage: 1,
  4857. imageList: [],
  4858. heightPx: '100%',
  4859. toolsData: toolsData,
  4860. oldIndex: 0,
  4861. oldData: null,
  4862. newIndex: "",
  4863. typeIndex: "",
  4864. isdrag: '',
  4865. };
  4866. },
  4867. directives: {
  4868. autoHeight: {
  4869. update(el, binding) {
  4870. const { value } = binding
  4871. if (value && typeof value === 'number') {
  4872. el.style.height = `${value}px`
  4873. } else {
  4874. el.style.height = 'auto'
  4875. }
  4876. },
  4877. componentUpdated(el) {
  4878. el.style.height = `${el.scrollHeight + 5}px`
  4879. },
  4880. },
  4881. },
  4882. computed: {
  4883. // rightBoxHeight: function () {
  4884. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4885. // },
  4886. offsetLetfPx: function () {
  4887. //addnum可以直接在模板语法里面用,相当于data内的值
  4888. return (
  4889. $(".cru_select")[this.unitIndex] &&
  4890. $(".cru_select")[this.unitIndex].offsetLeft
  4891. );
  4892. },
  4893. getMan2() {
  4894. return function (people) {
  4895. let _people = people;
  4896. let _people2 = "";
  4897. if (this.ManAarray.length) {
  4898. for (var i = 0; i < this.ManAarray.length; i++) {
  4899. if (this.ManAarray[i].userid == people) {
  4900. _people2 = this.ManAarray[i].name;
  4901. break;
  4902. }
  4903. }
  4904. }
  4905. if (people == this.courseUserid) {
  4906. return "";
  4907. }
  4908. return this.ManAarray.length ? _people2 : "";
  4909. };
  4910. },
  4911. isInvite() {
  4912. return function (cid) {
  4913. let array = [];
  4914. for (var i = 0; i < this.inviteCode.length; i++) {
  4915. array.push(this.inviteCode[i].cid);
  4916. }
  4917. return array.indexOf(cid) != -1;
  4918. };
  4919. },
  4920. getInviteCodeC() {
  4921. return function (cid) {
  4922. let array = [];
  4923. for (var i = 0; i < this.inviteCode.length; i++) {
  4924. array.push(this.inviteCode[i].cid);
  4925. }
  4926. return this.inviteCode[array.indexOf(cid)].ic;
  4927. };
  4928. },
  4929. getClassC() {
  4930. return function (c) {
  4931. let _c2 = "";
  4932. if (this.grade.length) {
  4933. for (var i = 0; i < this.grade.length; i++) {
  4934. if (this.grade[i].id == c) {
  4935. _c2 = this.grade[i].name;
  4936. break;
  4937. }
  4938. }
  4939. }
  4940. return this.grade.length ? _c2 : "";
  4941. };
  4942. },
  4943. getListClassC() {
  4944. return function (list) {
  4945. let _c2 = [];
  4946. if (this.grade.length) {
  4947. for (var j = 0; j < list.length; j++) {
  4948. let c = list[j]
  4949. for (var i = 0; i < this.grade.length; i++) {
  4950. if (this.grade[i].id == c) {
  4951. _c2.push(this.grade[i].name);
  4952. break;
  4953. }
  4954. }
  4955. }
  4956. }
  4957. return this.grade.length ? _c2.join('、') : "";
  4958. };
  4959. },
  4960. },
  4961. watch: {
  4962. unitIndex(newValue, oldValue) {
  4963. if (this.isDelete == 2) {
  4964. this.isDelete = 1;
  4965. return;
  4966. }
  4967. if (this.cid != "") {
  4968. let _unitIndex = oldValue;
  4969. if (
  4970. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4971. JSON.stringify(this.unitJson[_unitIndex])
  4972. ) {
  4973. this.$refs.rightboxR.scrollTop = 0;
  4974. return;
  4975. }
  4976. let cPan = 1;
  4977. for (
  4978. var j = 0;
  4979. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4980. j++
  4981. ) {
  4982. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4983. j
  4984. ].proVisible = false;
  4985. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4986. j
  4987. ].proVisible2 = false;
  4988. if (
  4989. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4990. .length > 1
  4991. ) {
  4992. for (
  4993. var z = 0;
  4994. z <
  4995. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4996. .length;
  4997. z++
  4998. ) {
  4999. if (
  5000. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5001. .toolChoose[z].tool.length
  5002. ) {
  5003. this.$message.error("请把工具添加完整");
  5004. cPan = 2;
  5005. break;
  5006. }
  5007. }
  5008. }
  5009. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5010. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5011. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5012. (ele) => {
  5013. return ele.value != "";
  5014. }
  5015. );
  5016. }
  5017. }
  5018. if (cPan == 2) {
  5019. this.unitIndex = oldValue;
  5020. return;
  5021. }
  5022. for (var i = 0; i < this.unitJson.length; i++) {
  5023. if (this.addindex != i) {
  5024. delete this.unitJson[i].isUpdate;
  5025. }
  5026. }
  5027. this.$refs.rightboxR.scrollTop = 0;
  5028. this.addindex = -1;
  5029. let params = [
  5030. {
  5031. cid: this.cid,
  5032. chapters: JSON.stringify(this.unitJson),
  5033. uid: this.userid,
  5034. unitIndex: _unitIndex,
  5035. },
  5036. ];
  5037. this.ajax
  5038. .post(this.$store.state.api + "updateWorkNew4", params)
  5039. .then((res) => {
  5040. // this.$message({
  5041. // message: "修改成功",
  5042. // type: "success",
  5043. // });
  5044. // this.courseId = this.cid;
  5045. })
  5046. .catch((err) => {
  5047. this.$message.error("网络不佳");
  5048. console.error(err);
  5049. });
  5050. }
  5051. },
  5052. steps(newValue) {
  5053. if (newValue == 4) {
  5054. this.goTo(
  5055. "/course?userid=" +
  5056. this.userid +
  5057. "&oid=" +
  5058. this.oid +
  5059. "&org=" +
  5060. this.org +
  5061. "&role=" +
  5062. this.role
  5063. );
  5064. }
  5065. },
  5066. },
  5067. methods: {
  5068. openAI() {
  5069. top.postMessage({ tools: "64" }, "*");
  5070. },
  5071. setMan() {
  5072. // let teacherJuri = this.teacherJuri2;
  5073. this.ManAarray = [];
  5074. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5075. if (_user.indexOf(this.userid) == -1) {
  5076. _user.push(this.userid);
  5077. }
  5078. if (_user.indexOf(this.courseUserid) == -1) {
  5079. _user.push(this.courseUserid);
  5080. }
  5081. let params = {
  5082. uid: _user.join(","),
  5083. };
  5084. this.ajax
  5085. .get(this.$store.state.api + "getAllUserById", params)
  5086. .then((res) => {
  5087. let teacherJuri = res.data[0];
  5088. this.ManAarray = teacherJuri;
  5089. })
  5090. .catch((err) => {
  5091. console.error(err);
  5092. });
  5093. },
  5094. previewImg(url) {
  5095. this.$hevueImgPreview(url);
  5096. },
  5097. btnDisplay(bool) {
  5098. this.isBtnDisplay = bool
  5099. },
  5100. scrollChange() {
  5101. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  5102. // document.querySelector('.course_left').scrollHeight
  5103. // document.querySelector('.stepsBottom2').scrollHeight
  5104. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  5105. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  5106. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  5107. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  5108. let top = $(".rightBox")[0].scrollTop - maxheight;
  5109. // if (top < client) {
  5110. // $('.stepsBottom2')[0].style.position = 'absolute'
  5111. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  5112. // // $('.stepsBottom2')[0].style.top = client + 'px'
  5113. // } else
  5114. if (top > 0) {
  5115. let top = $(".rightBox")[0].offsetTop;
  5116. $(".stepsBottom2")[0].style.position = "fixed";
  5117. $(".stepsBottom2")[0].style.top = top + "px";
  5118. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  5119. // $('.stepsBottom2')[0].style.top = top + 'px'
  5120. } else {
  5121. $(".stepsBottom2")[0].style.position = "absolute";
  5122. $(".stepsBottom2")[0].style.top = "0px";
  5123. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  5124. }
  5125. const clientHeight = $(".rightBox")[0].clientHeight;
  5126. const scrollTop = $(".rightBox")[0].scrollTop;
  5127. const scrollHeight = $(".rightBox")[0].scrollHeight;
  5128. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  5129. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  5130. }
  5131. },
  5132. addHw(e) {
  5133. var el = e.currentTarget;
  5134. el.getElementsByTagName("input")[0].click();
  5135. },
  5136. change(val) {
  5137. if (this.dialogVisible1) {
  5138. this.tdetail = val
  5139. } else if (this.dialogVisible6) {
  5140. this.AttText.text = val
  5141. } else if (this.dialogVisible2) {
  5142. this.cTemplate = val
  5143. } else if (this.dialogVisibleTable) {
  5144. this.tableJson.text = val
  5145. }
  5146. this.$forceUpdate();
  5147. console.log(val);
  5148. },
  5149. change2(val) {
  5150. console.log(val);
  5151. this.$forceUpdate();
  5152. },
  5153. handleClose(done) {
  5154. done();
  5155. },
  5156. closePan(tool) {
  5157. if (tool == 15) {
  5158. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5159. this.dialogVisible8 = false
  5160. } else {
  5161. this.closeConfirm(tool);
  5162. }
  5163. } else if (tool == 4) {
  5164. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5165. this.dialogVisible5 = false
  5166. } else {
  5167. this.closeConfirm(tool);
  5168. }
  5169. } else if (tool == 45) {
  5170. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5171. this.dialogVisibleChoice = false
  5172. } else {
  5173. this.closeConfirm(tool);
  5174. }
  5175. } else if (tool == 41) {
  5176. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  5177. this.dialogVisibleSelect = false
  5178. } else {
  5179. this.closeConfirm(tool);
  5180. }
  5181. } else if (tool == 47) {
  5182. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  5183. this.dialogVisibleSentence = false
  5184. } else {
  5185. this.closeConfirm(tool);
  5186. }
  5187. }else if (tool == 69){
  5188. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  5189. this.englishDialogVisible = false
  5190. } else {
  5191. this.closeConfirm(tool);
  5192. }
  5193. }
  5194. },
  5195. closeConfirm(tool) {
  5196. this
  5197. .$confirm("是否保存已编辑内容?", "提示", {
  5198. confirmButtonText: "保存",
  5199. cancelButtonText: "不保存",
  5200. type: "warning",
  5201. })
  5202. .then(() => {
  5203. if (tool == 15) {
  5204. this.addAnswer();
  5205. } else if (tool == 4) {
  5206. this.addAsk();
  5207. } else if (tool == 45) {
  5208. this.addTest();
  5209. } else if (tool == 41) {
  5210. this.addSelectAnswer();
  5211. } else if (tool == 47) {
  5212. this.addSentenceTool();
  5213. }else if(tool == 69){
  5214. this.addEnglish();
  5215. }
  5216. })
  5217. .catch(() => {
  5218. if (tool == 15) {
  5219. this.dialogVisible8 = false;
  5220. } else if (tool == 4) {
  5221. this.dialogVisible5 = false;
  5222. } else if (tool == 45) {
  5223. this.dialogVisibleChoice = false;
  5224. } else if (tool == 41) {
  5225. this.dialogVisibleSelect = false;
  5226. } else if (tool == 47) {
  5227. this.dialogVisibleSentence = false;
  5228. } else if (tool == 69) {
  5229. this.englishDialogVisible = false;
  5230. }
  5231. });
  5232. },
  5233. addEnglish(){
  5234. this.englishList.engTitle = this.$refs['engJson'].engList.engTitle;
  5235. this.englishList.englishText = this.$refs['engJson'].engList.englishText;
  5236. this.englishList.textJson = this.$refs['engJson'].engList.textJson;
  5237. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  5238. this.$message.error("请将内容填写完整!");
  5239. return;
  5240. }
  5241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5242. this.taskCount
  5243. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5244. this.englishList = {};
  5245. this.englishDialogVisible = false;
  5246. if (
  5247. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5248. .toolChoose[this.toolIndex].tool != 69
  5249. ) {
  5250. this.addTools(69, this.taskCount, this.toolIndex);
  5251. }
  5252. },
  5253. imgChange2(i, j) {
  5254. var _tmp = this.testJson.testJson[i].checkList[j];
  5255. this.noneBtnImg = _tmp.length >= 1;
  5256. },
  5257. imgChange3(i) {
  5258. var _tmp = this.testJson.testJson[i];
  5259. this.noneBtnImg = _tmp.length >= 1;
  5260. },
  5261. imgChange1(file, fileList, type, itemTaskIndex) {
  5262. if (type == 1) {
  5263. var _tmp = this.cover;
  5264. } else if (
  5265. type == 2 ||
  5266. type == 3 ||
  5267. type == 6 ||
  5268. type == 7 ||
  5269. type == 8
  5270. ) {
  5271. var _tmp =
  5272. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5273. .chapterData;
  5274. } else if (type == 4) {
  5275. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5276. } else {
  5277. var _tmp =
  5278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5279. .homeworkList;
  5280. }
  5281. this.noneBtnImg = _tmp.length >= 1;
  5282. },
  5283. goTo(path) {
  5284. this.$router.push(path);
  5285. },
  5286. guid() {
  5287. var _num,
  5288. i,
  5289. _guid = "";
  5290. for (i = 0; i < 32; i++) {
  5291. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5292. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5293. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5294. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5295. _guid += "-";
  5296. }
  5297. }
  5298. return _guid;
  5299. },
  5300. lastSteps() {
  5301. this
  5302. .$confirm("是否保存已编辑内容?", "提示", {
  5303. confirmButtonText: "保存",
  5304. cancelButtonText: "不保存",
  5305. distinguishCancelAndClose: true,
  5306. type: "warning",
  5307. })
  5308. .then(() => {
  5309. if (this.cid == "" || this.cid == undefined) {
  5310. if (this.courseName == "") {
  5311. this.$message.error("请补充填写课程名称");
  5312. return;
  5313. } else {
  5314. this.addWork();
  5315. }
  5316. } else {
  5317. if (this.courseName == "") {
  5318. this.$message.error("请补充填写课程名称");
  5319. return;
  5320. } else {
  5321. if (this.userid != this.courseUserid && this.role != "1") {
  5322. this.updateWork2();
  5323. } else {
  5324. this.updateWork();
  5325. }
  5326. }
  5327. }
  5328. })
  5329. .catch((v) => {
  5330. console.log(v)
  5331. if(v == "cancel"){
  5332. this.goTo(
  5333. "/course?userid=" +
  5334. this.userid +
  5335. "&oid=" +
  5336. this.oid +
  5337. "&org=" +
  5338. this.org +
  5339. "&role=" +
  5340. this.role
  5341. );
  5342. }
  5343. });
  5344. },
  5345. nextSteps() {
  5346. if (this.cid == "" || this.cid == undefined) {
  5347. if (this.courseName == "") {
  5348. this.$message.error("请补充填写课程名称");
  5349. return;
  5350. } else {
  5351. this.addWork();
  5352. }
  5353. } else {
  5354. if (this.courseName == "") {
  5355. this.$message.error("请补充填写课程名称");
  5356. return;
  5357. } else {
  5358. if (this.userid != this.courseUserid && this.role != "1") {
  5359. this.updateWork2();
  5360. } else {
  5361. this.updateWork();
  5362. }
  5363. }
  5364. }
  5365. this.$refs.stepBox.scrollTop = 0;
  5366. },
  5367. unitSet(i) {
  5368. this.unitIndex = i;
  5369. // this.$refs.rightboxR.scrollTop = 0;
  5370. },
  5371. time() {
  5372. if (!this.now) {
  5373. this.now = new Date().getTime();
  5374. return true;
  5375. } else {
  5376. let time = new Date().getTime();
  5377. if (time - this.now > 3000) {
  5378. this.now = time;
  5379. return true;
  5380. } else {
  5381. return false;
  5382. }
  5383. }
  5384. },
  5385. deleteUnit(i) {
  5386. var _this = this;
  5387. if (_this.time()) {
  5388. _this
  5389. .$confirm("确定删除此单元吗?", "提示", {
  5390. confirmButtonText: "确定",
  5391. cancelButtonText: "取消",
  5392. type: "warning",
  5393. })
  5394. .then(() => {
  5395. _this.isDelete = 2;
  5396. // _this.unitIndex = _this.unitIndex - 1;
  5397. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5398. // _this.$message.success("删除成功");
  5399. })
  5400. .catch(() => {
  5401. return;
  5402. });
  5403. }
  5404. },
  5405. deleteWork(chapid) {
  5406. let params = [
  5407. {
  5408. cid: this.cid,
  5409. chapters: JSON.stringify(this.unitJson),
  5410. uid: this.userid,
  5411. chapid: chapid,
  5412. },
  5413. ];
  5414. this.ajax
  5415. .post(this.$store.state.api + "deleteWork", params)
  5416. .then((res) => {
  5417. this.$message({
  5418. message: "删除成功",
  5419. type: "success",
  5420. });
  5421. this.unitJson.splice(this.unitIndex, 1);
  5422. this.unitIndex = this.unitIndex - 1;
  5423. })
  5424. .catch((err) => {
  5425. this.$message.error("网络不佳");
  5426. console.error(err);
  5427. });
  5428. },
  5429. deleteTool(itemTaskIndex, i) {
  5430. var _this = this;
  5431. if (_this.time()) {
  5432. _this
  5433. .$confirm("确定删除此工具吗?", "提示", {
  5434. confirmButtonText: "确定",
  5435. cancelButtonText: "取消",
  5436. type: "warning",
  5437. })
  5438. .then(() => {
  5439. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5440. itemTaskIndex
  5441. ].toolChoose.splice(i, 1);
  5442. _this.$message.success("删除成功");
  5443. })
  5444. .catch(() => {
  5445. return;
  5446. });
  5447. }
  5448. },
  5449. deleteSentence(i) {
  5450. var _this = this;
  5451. _this
  5452. .$confirm("确定删除此题目吗?", "提示", {
  5453. confirmButtonText: "确定",
  5454. cancelButtonText: "取消",
  5455. type: "warning",
  5456. })
  5457. .then(() => {
  5458. _this.sentenceList.splice(i, 1);
  5459. _this.$message.success("删除成功");
  5460. })
  5461. .catch(() => {
  5462. return;
  5463. });
  5464. },
  5465. deleteS(s, i, j) {
  5466. this.sentenceList[i].addSentence.splice(j, 1);
  5467. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5468. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5469. this.sentenceList[i].rightAnswer.splice(a, 1);
  5470. }
  5471. },
  5472. openT() {
  5473. top.postMessage({ tools: "25" }, "*");
  5474. },
  5475. deleteTask(i) {
  5476. var _this = this;
  5477. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  5478. _this
  5479. .$confirm("确定删除此任务吗?", "提示", {
  5480. confirmButtonText: "确定",
  5481. cancelButtonText: "取消",
  5482. type: "warning",
  5483. })
  5484. .then(() => {
  5485. if (i == 0) {
  5486. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5487. i + 1
  5488. ].chapterData = JSON.parse(
  5489. JSON.stringify(
  5490. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  5491. .chapterData
  5492. )
  5493. );
  5494. }
  5495. _this.$forceUpdate();
  5496. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  5497. _this.$message.success("删除成功");
  5498. // this.$nextTick(() => {
  5499. // $('.stepsBottom2')[0].style.transition = 'unset'
  5500. // setTimeout(() => {
  5501. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  5502. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  5503. // let top = $('.stepsBottom2')[0].offsetTop - 20
  5504. // if (top > client) {
  5505. // $('.stepsBottom2')[0].style.top = client + 'px'
  5506. // }
  5507. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  5508. // this.$forceUpdate()
  5509. // }, 500)
  5510. // })
  5511. })
  5512. .catch(() => {
  5513. return;
  5514. });
  5515. },
  5516. handlePictureCardPreview(file) {
  5517. this.dialogImageUrl = file.url;
  5518. },
  5519. clean(i, c) {
  5520. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5521. },
  5522. handle_remove1(file, fileList, type) {
  5523. var _tmp = this.cover;
  5524. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5525. // if (_tmp[i].uid == file.uid) {
  5526. // _tmp.splice(i, 1);
  5527. // break;
  5528. // }
  5529. // this.cover = _tmp;
  5530. // }
  5531. this.cover = [];
  5532. this.noneBtnImg = this.cover.length >= 1;
  5533. this.isSysPic = false;
  5534. this.isSysPic2 = false;
  5535. this.$forceUpdate();
  5536. },
  5537. addImg(e) {
  5538. var el = e.currentTarget;
  5539. el.getElementsByTagName("input")[0].click();
  5540. e.target.value = "";
  5541. },
  5542. addChaptersTools(i) {
  5543. this.chapTools = [
  5544. {
  5545. tools: [],
  5546. toolDetail: "",
  5547. },
  5548. ];
  5549. this.chapCount = i;
  5550. this.dialogVisible4 = true;
  5551. },
  5552. isNoFinsh() {
  5553. this.$message.warning("功能正在开发中");
  5554. },
  5555. addAttText(i) {
  5556. this.AttText = {
  5557. title: "",
  5558. text: "",
  5559. };
  5560. this.taskCount = i;
  5561. this.AttTextType = 0;
  5562. this.$forceUpdate();
  5563. this.dialogVisible6 = true;
  5564. setTimeout(() => {
  5565. this.$refs['fuInput'].focus();
  5566. }, 100);
  5567. },
  5568. openLine(i) {
  5569. this.line = "";
  5570. this.lineCount = i;
  5571. this.lineType = 0;
  5572. this.$forceUpdate();
  5573. this.dialogVisible7 = true;
  5574. },
  5575. pasteLine(i) {
  5576. navigator.clipboard
  5577. .readText()
  5578. .then((v) => {
  5579. console.log("获取剪贴板成功:", v);
  5580. const html = v;
  5581. const regex = /src="(.*?)"/g;
  5582. const match = regex.exec(html);
  5583. if (match && match[1]) {
  5584. console.log(match[1]);
  5585. this.$message.success("粘贴成功");
  5586. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5587. i
  5588. ].chapterData.push({
  5589. name: "链接",
  5590. title: "嵌入代码",
  5591. url: match[1],
  5592. type: 8,
  5593. });
  5594. } else {
  5595. // console.log("未找到包含 src 属性的 iframe");
  5596. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5597. }
  5598. })
  5599. .catch((v) => {
  5600. console.log("获取剪贴板失败: ", v);
  5601. });
  5602. },
  5603. openSource(i) {
  5604. this.lineCount = i;
  5605. this.sourceData = {};
  5606. this.dialogVisibleSource = true;
  5607. this.updateSourcePan = false;
  5608. },
  5609. addSource() {
  5610. if (!Object.keys(this.sourceData).length) {
  5611. this.$message.error("请选择要上传的资源");
  5612. return;
  5613. }
  5614. let keys = Object.keys(this.sourceData);
  5615. for (var i = 0; i < keys.length; i++) {
  5616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5617. this.lineCount
  5618. ].chapterData.push({
  5619. name: "链接",
  5620. title: this.sourceData[keys[i]].name,
  5621. url: this.sourceData[keys[i]].url,
  5622. type: 14,
  5623. id: keys[i]
  5624. });
  5625. }
  5626. this.$forceUpdate();
  5627. this.dialogVisibleSource = false;
  5628. },
  5629. updateSource() {
  5630. if (!Object.keys(this.sourceData).length) {
  5631. this.$message.error("请选择要上传的资源");
  5632. return;
  5633. }
  5634. let keys = Object.keys(this.sourceData);
  5635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5636. this.taskCount
  5637. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5638. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5639. this.taskCount
  5640. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5641. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5642. this.taskCount
  5643. ].chapterData[this.lineCount].id = keys[0];
  5644. this.updateSourcePan = false;
  5645. this.$forceUpdate();
  5646. this.dialogVisibleSource = false;
  5647. },
  5648. deleteM(i, j) {
  5649. this.testJson.testJson[i].timuList.splice(j, 1);
  5650. },
  5651. beforeUploadTiMu(event, i) {
  5652. const loading = this.openLoading();
  5653. var file = event.target.files[0];
  5654. var credentials = {
  5655. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5656. secretAccessKey: "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",
  5657. }; //秘钥形式的登录上传
  5658. window.AWS.config.update(credentials);
  5659. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5660. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5661. var _this = this;
  5662. if (file) {
  5663. var params = {
  5664. Key:
  5665. file.name.split(".")[0] +
  5666. new Date().getTime() +
  5667. "." +
  5668. file.name.split(".")[file.name.split(".").length - 1],
  5669. ContentType: file.type,
  5670. Body: file,
  5671. "Access-Control-Allow-Credentials": "*",
  5672. ACL: "public-read",
  5673. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5674. var options = {
  5675. partSize: 2048 * 1024 * 1024,
  5676. queueSize: 2,
  5677. leavePartsOnError: true,
  5678. };
  5679. bucket
  5680. .upload(params, options)
  5681. .on("httpUploadProgress", function (evt) {
  5682. //这里可以写进度条
  5683. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5684. })
  5685. .send(function (err, data) {
  5686. loading.close();
  5687. if (err) {
  5688. _this.$message.error("上传失败");
  5689. } else {
  5690. if (_this.testJson.testJson[i].timuList) {
  5691. _this.testJson.testJson[i].timuList.push({
  5692. src: data.Location,
  5693. });
  5694. } else {
  5695. _this.testJson.testJson[i].timuList = [];
  5696. _this.testJson.testJson[i].timuList.push({
  5697. src: data.Location,
  5698. });
  5699. }
  5700. _this.imgChange3(i);
  5701. _this.$forceUpdate();
  5702. }
  5703. });
  5704. }
  5705. },
  5706. beforeUploadTi(event, i, j) {
  5707. const loading = this.openLoading();
  5708. var file = event.target.files[0];
  5709. var credentials = {
  5710. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5711. secretAccessKey: "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",
  5712. }; //秘钥形式的登录上传
  5713. window.AWS.config.update(credentials);
  5714. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5715. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5716. var _this = this;
  5717. if (file) {
  5718. var params = {
  5719. Key:
  5720. file.name.split(".")[0] +
  5721. new Date().getTime() +
  5722. "." +
  5723. file.name.split(".")[file.name.split(".").length - 1],
  5724. ContentType: file.type,
  5725. Body: file,
  5726. "Access-Control-Allow-Credentials": "*",
  5727. ACL: "public-read",
  5728. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5729. var options = {
  5730. partSize: 2048 * 1024 * 1024,
  5731. queueSize: 2,
  5732. leavePartsOnError: true,
  5733. };
  5734. bucket
  5735. .upload(params, options)
  5736. .on("httpUploadProgress", function (evt) {
  5737. //这里可以写进度条
  5738. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5739. })
  5740. .send(function (err, data) {
  5741. loading.close();
  5742. if (err) {
  5743. _this.$message.error("上传失败");
  5744. } else {
  5745. _this.testJson.testJson[i].checkList[j] = {};
  5746. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5747. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5748. _this.imgChange2(i, j);
  5749. _this.$forceUpdate();
  5750. }
  5751. });
  5752. }
  5753. },
  5754. beforeUpload1(event, type) {
  5755. // const loading = this.openLoading();
  5756. var file = event.target.files[0];
  5757. var credentials = {
  5758. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5759. secretAccessKey: "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",
  5760. }; //秘钥形式的登录上传
  5761. window.AWS.config.update(credentials);
  5762. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5763. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5764. var _this = this;
  5765. if (file) {
  5766. var params = {
  5767. Key:
  5768. file.name.split(".")[0] +
  5769. new Date().getTime() +
  5770. "." +
  5771. file.name.split(".")[file.name.split(".").length - 1],
  5772. ContentType: file.type,
  5773. Body: file,
  5774. "Access-Control-Allow-Credentials": "*",
  5775. ACL: "public-read",
  5776. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5777. var options = {
  5778. partSize: 2048 * 1024 * 1024,
  5779. queueSize: 2,
  5780. leavePartsOnError: true,
  5781. };
  5782. bucket
  5783. .upload(params, options)
  5784. .on("httpUploadProgress", function (evt) {
  5785. //这里可以写进度条
  5786. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5787. })
  5788. .send(function (err, data) {
  5789. // loading.close();
  5790. if (err) {
  5791. // var a = _this.$refs.upload1.uploadFiles;
  5792. // a.splice(a.length - 1, a.length);
  5793. _this.$message.error("上传失败");
  5794. } else {
  5795. _this.cover = [{
  5796. name: file.name,
  5797. url: data.Location,
  5798. uid: file.uid,
  5799. }];
  5800. _this.imgChange1(null, null, 1, null);
  5801. _this.choosePicVisible = false;
  5802. console.log(data.Location);
  5803. }
  5804. });
  5805. }
  5806. },
  5807. beforeUploadSelect(event, type) {
  5808. // const loading = this.openLoading();
  5809. var file = event.target.files[0];
  5810. var credentials = {
  5811. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5812. secretAccessKey: "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",
  5813. }; //秘钥形式的登录上传
  5814. window.AWS.config.update(credentials);
  5815. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5816. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5817. var _this = this;
  5818. if (file) {
  5819. var params = {
  5820. Key:
  5821. file.name.split(".")[0] +
  5822. new Date().getTime() +
  5823. "." +
  5824. file.name.split(".")[file.name.split(".").length - 1],
  5825. ContentType: file.type,
  5826. Body: file,
  5827. "Access-Control-Allow-Credentials": "*",
  5828. ACL: "public-read",
  5829. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5830. var options = {
  5831. partSize: 2048 * 1024 * 1024,
  5832. queueSize: 2,
  5833. leavePartsOnError: true,
  5834. };
  5835. bucket
  5836. .upload(params, options)
  5837. .on("httpUploadProgress", function (evt) {
  5838. //这里可以写进度条
  5839. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5840. })
  5841. .send(function (err, data) {
  5842. // loading.close();
  5843. if (err) {
  5844. _this.$message.error("上传失败");
  5845. } else {
  5846. _this.selectJson.url = data.Location;
  5847. console.log(data.Location);
  5848. }
  5849. });
  5850. }
  5851. },
  5852. chooseSysPic(p) {
  5853. this.cover = []
  5854. setTimeout(() => {
  5855. this.cover[0] = {
  5856. name: "系统图片.png",
  5857. url: p,
  5858. };
  5859. this.imgChange1(null, null, 1, null);
  5860. this.$forceUpdate();
  5861. }, 0);
  5862. this.isSysPic = true;
  5863. this.isSysPic2 = false;
  5864. this.sysPicVisible = false;
  5865. this.$forceUpdate();
  5866. },
  5867. chooseSysPic2(p) {
  5868. this.cover = []
  5869. setTimeout(() => {
  5870. this.cover[0] = {
  5871. name: "网络图片.png",
  5872. url: p,
  5873. };
  5874. this.imgChange1(null, null, 1, null);
  5875. this.$forceUpdate();
  5876. }, 0);
  5877. this.isSysPic2 = true;
  5878. this.isSysPic = false;
  5879. this.sysPicVisible2 = false;
  5880. this.$forceUpdate();
  5881. },
  5882. beforeUpload(data) {
  5883. this.$refs.upload1.uploadFiles;
  5884. this.uploadLoading1 = true;
  5885. var file = data.file;
  5886. var credentials = {
  5887. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5888. secretAccessKey: "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",
  5889. }; //秘钥形式的登录上传
  5890. window.AWS.config.update(credentials);
  5891. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5892. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5893. var _this = this;
  5894. if (file) {
  5895. var params = {
  5896. Key:
  5897. file.name.split(".")[0] +
  5898. new Date().getTime() +
  5899. "." +
  5900. file.name.split(".")[file.name.split(".").length - 1],
  5901. ContentType: file.type,
  5902. Body: file,
  5903. "Access-Control-Allow-Credentials": "*",
  5904. ACL: "public-read",
  5905. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5906. var options = {
  5907. partSize: 2048 * 1024 * 1024,
  5908. queueSize: 2,
  5909. leavePartsOnError: true,
  5910. };
  5911. bucket
  5912. .upload(params, options)
  5913. .on("httpUploadProgress", function (evt) {
  5914. //这里可以写进度条
  5915. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5916. })
  5917. .send(function (err, data) {
  5918. _this.uploadLoading1 = false;
  5919. if (err) {
  5920. // var a = _this.$refs.upload1.uploadFiles;
  5921. // a.splice(a.length - 1, a.length);
  5922. _this.$message.error("上传失败");
  5923. } else {
  5924. //上传成功处理
  5925. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5926. name: file.name,
  5927. url: data.Location,
  5928. uid: file.uid,
  5929. });
  5930. _this.imgChange();
  5931. console.log(data.Location);
  5932. }
  5933. });
  5934. }
  5935. },
  5936. onExceed() {
  5937. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5938. },
  5939. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5940. // const loading = this.openLoading();
  5941. var file = event.target.files[0];
  5942. var credentials = {
  5943. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5944. secretAccessKey: "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",
  5945. }; //秘钥形式的登录上传
  5946. window.AWS.config.update(credentials);
  5947. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5948. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5949. var _this = this;
  5950. if (type == 3) {
  5951. var b = [
  5952. "DOC",
  5953. "DOCX",
  5954. "DOCM",
  5955. "DOTM",
  5956. "DOTX",
  5957. "PPTX",
  5958. "PPSX",
  5959. "PPT",
  5960. "PPS",
  5961. "PPTM",
  5962. "POTM",
  5963. "PPAM",
  5964. "POTX",
  5965. "PPSM",
  5966. "XLSX",
  5967. "XLS",
  5968. ];
  5969. if (
  5970. b.indexOf(
  5971. file.name
  5972. .split(".")
  5973. [file.name.split(".").length - 1].toLocaleUpperCase()
  5974. ) != -1
  5975. ) {
  5976. if (file.size / 1024 / 1024 > 80) {
  5977. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5978. this.inputShow = true;
  5979. // var a = _this.$refs.upload1.uploadFiles;
  5980. // a.splice(a.length - 1, a.length);
  5981. // loading.close();
  5982. return;
  5983. }
  5984. } else if (
  5985. file.name
  5986. .split(".")
  5987. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5988. ) {
  5989. if (file.size / 1024 / 1024 > 80) {
  5990. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5991. this.inputShow = true;
  5992. // var a = _this.$refs.upload1.uploadFiles;
  5993. // a.splice(a.length - 1, a.length);
  5994. // loading.close();
  5995. return;
  5996. }
  5997. }
  5998. }
  5999. this.inputShow = false;
  6000. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6001. itemTaskIndex
  6002. ].progress = 0;
  6003. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6004. itemTaskIndex
  6005. ].proVisible = true;
  6006. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6007. itemTaskIndex
  6008. ].isFinishSize = 0;
  6009. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6010. itemTaskIndex
  6011. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6012. _this.$forceUpdate();
  6013. if (file) {
  6014. var params = {
  6015. Key:
  6016. file.name.split(".")[0] +
  6017. new Date().getTime() +
  6018. "." +
  6019. file.name.split(".")[file.name.split(".").length - 1],
  6020. ContentType: file.type,
  6021. Body: file,
  6022. "Access-Control-Allow-Credentials": "*",
  6023. ACL: "public-read",
  6024. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6025. var options = {
  6026. partSize: 2048 * 1024 * 1024,
  6027. queueSize: 2,
  6028. leavePartsOnError: true,
  6029. };
  6030. bucket
  6031. .upload(params, options)
  6032. .on("httpUploadProgress", function (evt) {
  6033. //这里可以写进度条
  6034. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6035. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6036. itemTaskIndex
  6037. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6038. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6039. itemTaskIndex
  6040. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6041. _this.$forceUpdate();
  6042. })
  6043. .send(function (err, data) {
  6044. // loading.close();
  6045. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6046. itemTaskIndex
  6047. ].progress = 100;
  6048. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6049. itemTaskIndex
  6050. ].isFinishSize =
  6051. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6052. itemTaskIndex
  6053. ].isAllSize;
  6054. _this.$forceUpdate();
  6055. setTimeout(() => {
  6056. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6057. itemTaskIndex
  6058. ].proVisible = false;
  6059. _this.$forceUpdate();
  6060. }, 1000);
  6061. _this.inputShow = true;
  6062. if (err) {
  6063. // var a = _this.$refs.upload1.uploadFiles;
  6064. // a.splice(a.length - 1, a.length);
  6065. _this.$message.error("上传失败");
  6066. } else {
  6067. if (type == 13) {
  6068. let _type = 2;
  6069. var imgA = [
  6070. "png",
  6071. "jpg",
  6072. "jpeg",
  6073. "bmp",
  6074. "gif",
  6075. "webp",
  6076. "psd",
  6077. "svg",
  6078. "tiff",
  6079. ];
  6080. var fileA = [
  6081. "PDF",
  6082. "DOC",
  6083. "DOCX",
  6084. "DOCM",
  6085. "DOTM",
  6086. "DOTX",
  6087. "PPTX",
  6088. "PPSX",
  6089. "PPT",
  6090. "PPS",
  6091. "PPTM",
  6092. "POTM",
  6093. "PPAM",
  6094. "POTX",
  6095. "PPSM",
  6096. "XLSX",
  6097. "XLS",
  6098. ];
  6099. var videoA = [
  6100. "AVI",
  6101. "NAVI",
  6102. "MPEG",
  6103. "ASF",
  6104. "MOV",
  6105. "WMV",
  6106. "3GP",
  6107. "RM",
  6108. "RMVB",
  6109. "FLV",
  6110. "F4V",
  6111. "H.264",
  6112. "H.265",
  6113. "REAL VIDEO",
  6114. "MKV",
  6115. "WebM",
  6116. "HDDVD",
  6117. "MP4",
  6118. "MPG",
  6119. "M4V",
  6120. "MGV",
  6121. "OGV",
  6122. "QTM",
  6123. "STR",
  6124. "AMC",
  6125. "DVX",
  6126. "EVO",
  6127. "DAT",
  6128. "OGG",
  6129. "OGM",
  6130. ];
  6131. if (
  6132. fileA.indexOf(
  6133. data.Location.split(".")[
  6134. data.Location.split(".").length - 1
  6135. ].toLocaleUpperCase()
  6136. ) != -1
  6137. ) {
  6138. _type = 3;
  6139. } else if (
  6140. videoA.indexOf(
  6141. data.Location.split(".")[
  6142. data.Location.split(".").length - 1
  6143. ].toLocaleUpperCase()
  6144. ) != -1
  6145. ) {
  6146. _type = 2;
  6147. } else if (
  6148. imgA.indexOf(
  6149. data.Location.split(".")[
  6150. data.Location.split(".").length - 1
  6151. ].toLocaleLowerCase()
  6152. ) != -1
  6153. ) {
  6154. _type = 13;
  6155. } else {
  6156. _type = 12;
  6157. }
  6158. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6159. itemTaskIndex
  6160. ].chapterData.push({
  6161. name: file.name,
  6162. url: data.Location,
  6163. uid: file.uid,
  6164. type: _type,
  6165. });
  6166. _this.imgChange1(null, null, _type, itemTaskIndex);
  6167. } else if (type == 2 || type == 3 || type == 12) {
  6168. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6169. itemTaskIndex
  6170. ].chapterData.push({
  6171. name: file.name,
  6172. url: data.Location,
  6173. uid: file.uid,
  6174. type: type,
  6175. });
  6176. _this.imgChange1(null, null, type, itemTaskIndex);
  6177. } else if (type == 4) {
  6178. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6179. itemTaskIndex
  6180. ].fileList1.push({
  6181. name: file.name,
  6182. url: data.Location,
  6183. uid: file.uid,
  6184. });
  6185. _this.imgChange1(null, null, type, itemTaskIndex);
  6186. } else if (type == 5) {
  6187. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6188. itemTaskIndex
  6189. ].homeworkList.push({
  6190. name: file.name,
  6191. url: data.Location,
  6192. uid: file.uid,
  6193. });
  6194. _this.imgChange1(null, null, type, itemTaskIndex);
  6195. }
  6196. console.log(data.Location);
  6197. }
  6198. });
  6199. }
  6200. },
  6201. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  6202. // const loading = this.openLoading();
  6203. var file = event.target.files[0];
  6204. var credentials = {
  6205. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6206. secretAccessKey: "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",
  6207. }; //秘钥形式的登录上传
  6208. window.AWS.config.update(credentials);
  6209. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6210. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6211. var _this = this;
  6212. if (type == 3) {
  6213. var b = [
  6214. "DOC",
  6215. "DOCX",
  6216. "DOCM",
  6217. "DOTM",
  6218. "DOTX",
  6219. "PPTX",
  6220. "PPSX",
  6221. "PPT",
  6222. "PPS",
  6223. "PPTM",
  6224. "POTM",
  6225. "PPAM",
  6226. "POTX",
  6227. "PPSM",
  6228. ];
  6229. if (
  6230. b.indexOf(
  6231. file.name
  6232. .split(".")
  6233. [file.name.split(".").length - 1].toLocaleUpperCase()
  6234. ) != -1
  6235. ) {
  6236. if (file.size / 1024 / 1024 > 80) {
  6237. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6238. this.inputShow = true;
  6239. // var a = _this.$refs.upload1.uploadFiles;
  6240. // a.splice(a.length - 1, a.length);
  6241. // loading.close();
  6242. return;
  6243. }
  6244. } else if (
  6245. file.name
  6246. .split(".")
  6247. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6248. ) {
  6249. if (file.size / 1024 / 1024 > 80) {
  6250. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6251. this.inputShow = true;
  6252. // var a = _this.$refs.upload1.uploadFiles;
  6253. // a.splice(a.length - 1, a.length);
  6254. // loading.close();
  6255. return;
  6256. }
  6257. }
  6258. }
  6259. this.inputShow = false;
  6260. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6261. itemTaskIndex
  6262. ].progress = 0;
  6263. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6264. itemTaskIndex
  6265. ].proVisible = true;
  6266. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6267. itemTaskIndex
  6268. ].isFinishSize = 0;
  6269. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6270. itemTaskIndex
  6271. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6272. _this.$forceUpdate();
  6273. if (file) {
  6274. var params = {
  6275. Key:
  6276. file.name.split(".")[0] +
  6277. new Date().getTime() +
  6278. "." +
  6279. file.name.split(".")[file.name.split(".").length - 1],
  6280. ContentType: file.type,
  6281. Body: file,
  6282. "Access-Control-Allow-Credentials": "*",
  6283. ACL: "public-read",
  6284. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6285. var options = {
  6286. partSize: 2048 * 1024 * 1024,
  6287. queueSize: 2,
  6288. leavePartsOnError: true,
  6289. };
  6290. bucket
  6291. .upload(params, options)
  6292. .on("httpUploadProgress", function (evt) {
  6293. //这里可以写进度条
  6294. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6295. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6296. itemTaskIndex
  6297. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6298. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6299. itemTaskIndex
  6300. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6301. _this.$forceUpdate();
  6302. })
  6303. .send(function (err, data) {
  6304. // loading.close();
  6305. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6306. itemTaskIndex
  6307. ].progress = 100;
  6308. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6309. itemTaskIndex
  6310. ].isFinishSize =
  6311. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6312. itemTaskIndex
  6313. ].isAllSize;
  6314. _this.$forceUpdate();
  6315. setTimeout(() => {
  6316. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6317. itemTaskIndex
  6318. ].proVisible = false;
  6319. _this.$forceUpdate();
  6320. }, 1000);
  6321. _this.inputShow = true;
  6322. if (err) {
  6323. // var a = _this.$refs.upload1.uploadFiles;
  6324. // a.splice(a.length - 1, a.length);
  6325. _this.$message.error("上传失败");
  6326. } else {
  6327. if (type == 2 || type == 3) {
  6328. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6329. itemTaskIndex
  6330. ].chapterData.push({
  6331. name: file.name,
  6332. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6333. // itemTaskIndex
  6334. // ].chapterData.length+1),
  6335. url: data.Location,
  6336. uid: file.uid,
  6337. type: type,
  6338. text: string,
  6339. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6340. // itemTaskIndex
  6341. // ].chapterData.length + 1),
  6342. });
  6343. _this.imgChange1(null, null, type, itemTaskIndex);
  6344. } else if (type == 4) {
  6345. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6346. itemTaskIndex
  6347. ].fileList1.push({
  6348. name: file.name,
  6349. url: data.Location,
  6350. uid: file.uid,
  6351. });
  6352. _this.imgChange1(null, null, type, itemTaskIndex);
  6353. } else if (type == 5) {
  6354. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6355. itemTaskIndex
  6356. ].homeworkList.push({
  6357. name: file.name,
  6358. url: data.Location,
  6359. uid: file.uid,
  6360. });
  6361. _this.imgChange1(null, null, type, itemTaskIndex);
  6362. }
  6363. console.log(data.Location);
  6364. }
  6365. });
  6366. }
  6367. },
  6368. addunit() {
  6369. this.unitJson.push({
  6370. dyName: "", //单元标题
  6371. isUpdate: 1,
  6372. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6373. chapterInfo: [
  6374. {
  6375. isread: false,
  6376. chapterid: this.guid(),
  6377. title: "",
  6378. courseName: "",
  6379. taskJson: [
  6380. {
  6381. task: "",
  6382. taskDetail: "",
  6383. chapterData: [],
  6384. toolText: "",
  6385. toolChoose: [
  6386. {
  6387. tool: [],
  6388. toolDetail: "",
  6389. toolType: 0,
  6390. askCount: 1,
  6391. askTitle: "",
  6392. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6393. },
  6394. ],
  6395. isShowTools: false,
  6396. askCount: 1,
  6397. isFold: 1,
  6398. askTitle: "",
  6399. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6400. checkJson: [{ checkCount: [], checkPerent: [] }],
  6401. homeworkList: [],
  6402. },
  6403. ],
  6404. itemCount: 1,
  6405. fileList1: [],
  6406. video: [],
  6407. testData: [],
  6408. pData: [],
  6409. templateArray: [],
  6410. },
  6411. ],
  6412. });
  6413. this.addindex = this.unitJson.length - 1;
  6414. setTimeout(() => {
  6415. this.unitIndex = this.unitJson.length - 1;
  6416. this.unitSet(this.unitIndex);
  6417. }, 0);
  6418. },
  6419. addToolFun(itemTaskIndex) {
  6420. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6421. itemTaskIndex
  6422. ].toolChoose.push({
  6423. tool: [],
  6424. toolDetail: "",
  6425. toolType: 0,
  6426. askCount: 1,
  6427. askTitle: "",
  6428. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6429. });
  6430. },
  6431. addTaskBorder() {
  6432. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6433. task: "",
  6434. taskDetail: "",
  6435. chapterData: [],
  6436. toolChoose: [
  6437. {
  6438. tool: [],
  6439. toolDetail: "",
  6440. toolType: 0,
  6441. askCount: 1,
  6442. askTitle: "",
  6443. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6444. },
  6445. ],
  6446. toolText: "",
  6447. isShowTools: false,
  6448. askCount: 1,
  6449. isFold: 1,
  6450. askTitle: "",
  6451. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6452. checkJson: [{ checkCount: [], checkPerent: [] }],
  6453. homeworkList: [],
  6454. });
  6455. },
  6456. add(e, i) {
  6457. var el = e.currentTarget;
  6458. el.getElementsByTagName("input")[0].click();
  6459. },
  6460. fold(i, e, type) {
  6461. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  6462. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6463. } else {
  6464. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6465. }
  6466. console.log(e);
  6467. },
  6468. fold2(i) {
  6469. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6471. } else {
  6472. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6473. }
  6474. setTimeout(() => {
  6475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  6476. setTimeout(() => {
  6477. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  6478. }, 0);
  6479. }, 0);
  6480. this.$forceUpdate();
  6481. },
  6482. foldC(i) {
  6483. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6485. } else {
  6486. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6487. }
  6488. this.$forceUpdate();
  6489. },
  6490. fold3(i, ti) {
  6491. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6493. } else {
  6494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6495. }
  6496. this.$forceUpdate();
  6497. },
  6498. deleteHomeworkBox(unitIndex, index, i) {
  6499. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6500. this.taskCount
  6501. ].homeworkList.splice(i, 1);
  6502. },
  6503. getStudent() {
  6504. let params = {
  6505. oid: this.oid,
  6506. cu: "",
  6507. cn: this.searchPeople,
  6508. };
  6509. this.ajax
  6510. .get(this.$store.state.api + "selectStudentAdd", params)
  6511. .then((res) => {
  6512. this.studentJuri = res.data[0];
  6513. })
  6514. .catch((err) => {
  6515. this.isLoading = false;
  6516. console.error(err);
  6517. });
  6518. },
  6519. getTeacher() {
  6520. let params = {
  6521. oid:
  6522. this.org && this.org != "undefined" && this.org != "null"
  6523. ? this.org
  6524. : this.oid,
  6525. cu: "",
  6526. cn: this.searchTN,
  6527. };
  6528. this.ajax
  6529. .get(
  6530. this.$store.state.api +
  6531. (this.org && this.org != "undefined" && this.org != "null"
  6532. ? "selectTeacherAddOrg"
  6533. : "selectTeacherAdd"),
  6534. params
  6535. )
  6536. .then((res) => {
  6537. let teacherJuri = res.data[0];
  6538. for (var i = 0; i < teacherJuri.length; i++) {
  6539. if (teacherJuri[i].userid == this.userid) {
  6540. teacherJuri.splice(i, 1);
  6541. break;
  6542. }
  6543. }
  6544. this.teacherJuri = teacherJuri;
  6545. })
  6546. .catch((err) => {
  6547. console.error(err);
  6548. });
  6549. },
  6550. searchStudent() {
  6551. this.getStudent();
  6552. },
  6553. selectGrage() {
  6554. let params = {
  6555. oid: this.oid,
  6556. };
  6557. this.ajax
  6558. .get(this.$store.state.api + "selectGrageBySchool", params)
  6559. .then((res) => {
  6560. this.gradeList = res.data[0];
  6561. })
  6562. .catch((err) => {
  6563. this.isLoading = false;
  6564. console.error(err);
  6565. });
  6566. },
  6567. //获取班级列表
  6568. getClass() {
  6569. let params = {
  6570. oid: this.oid,
  6571. gid: this.gradeId,
  6572. cn: this.classSearch,
  6573. };
  6574. this.ajax
  6575. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6576. .then((res) => {
  6577. if (!this.grade.length) {
  6578. this.grade = res.data[0];
  6579. }
  6580. this.grade2 = res.data[0];
  6581. this.classJuri = res.data[0];
  6582. let _check = []
  6583. let _check2 = []
  6584. for (var i = 0; i < this.grade2.length; i++) {
  6585. var gid = this.grade2[i].id
  6586. _check.push(gid)
  6587. }
  6588. for (var i = 0; i < this.checkboxList2.length; i++) {
  6589. var _id = this.checkboxList2[i]
  6590. if (_check.indexOf(_id) !== -1) {
  6591. _check2.push(_id)
  6592. }
  6593. }
  6594. this.checkAll = _check2.length === _check.length;
  6595. })
  6596. .catch((err) => {
  6597. this.isLoading = false;
  6598. console.error(err);
  6599. });
  6600. },
  6601. CourseType2Change(val) {
  6602. this.pTypeCheck = [];
  6603. for (var i = 0; i < this.CourseType2.length; i++) {
  6604. let typeA = this.CourseType2[i];
  6605. if (val.indexOf(typeA.name) != -1) {
  6606. this.pTypeCheck.push(...typeA.id);
  6607. }
  6608. }
  6609. },
  6610. getChapterData(e, i, j, ic, type) {
  6611. e.stopPropagation();
  6612. this.updataC = true;
  6613. this.icc = ic;
  6614. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6615. console.log("还不能下载图片喔");
  6616. }
  6617. },
  6618. deleteChapterData(e, i, j, ic, taskI) {
  6619. e.stopPropagation();
  6620. let _this = this;
  6621. _this
  6622. .$confirm("确定删除此项?", "提示", {
  6623. confirmButtonText: "确定",
  6624. cancelButtonText: "取消",
  6625. type: "warning",
  6626. })
  6627. .then(() => {
  6628. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6629. })
  6630. .catch(() => {
  6631. return;
  6632. });
  6633. },
  6634. updataVideoT(e, i, j, ic) {
  6635. // e.stopPropagation();
  6636. // this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6637. // ic
  6638. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6639. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6640. ic
  6641. ].name;
  6642. this.taskCount = j;
  6643. this.lineCount = ic;
  6644. this.dialogVisibleupdataVideoT = true;
  6645. this.$forceUpdate();
  6646. },
  6647. updataVideoC() {
  6648. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6649. this.dialogVisibleupdataVideoT = false;
  6650. this.$forceUpdate();
  6651. },
  6652. upCd(e, i, j, taskCount, ic) {
  6653. e.stopPropagation();
  6654. if (ic == 0) {
  6655. return;
  6656. }
  6657. var a =
  6658. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6659. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6660. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6661. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6662. this.$forceUpdate();
  6663. },
  6664. downCd(e, i, j, taskCount, ic) {
  6665. e.stopPropagation();
  6666. if (
  6667. ic ==
  6668. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6669. 1
  6670. ) {
  6671. return;
  6672. }
  6673. var a =
  6674. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6675. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6676. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6677. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6678. this.$forceUpdate();
  6679. },
  6680. async upTool(e, i, j, tooli){
  6681. e.stopPropagation();
  6682. if (tooli == 0) {
  6683. return;
  6684. }
  6685. let count1 = await this.getWorksCount(3, i, j, tooli - 1)
  6686. let count2 = await this.getWorksCount(3, i, j, tooli)
  6687. if(count1 > 0 || count2 > 0){
  6688. this.$confirm(
  6689. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6690. "提示",
  6691. {
  6692. confirmButtonText: "确定",
  6693. cancelButtonText: "取消",
  6694. type: "warning",
  6695. }
  6696. )
  6697. .then(() => {
  6698. var a =
  6699. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6700. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6701. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6702. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6703. this.$forceUpdate()
  6704. })
  6705. .catch(() => {
  6706. return;
  6707. });
  6708. }else{
  6709. var a =
  6710. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6711. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6712. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6713. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6714. this.$forceUpdate()
  6715. }
  6716. },
  6717. async downTool(e, i, j, tooli){
  6718. e.stopPropagation();
  6719. if ( tooli ==
  6720. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6721. 1) {
  6722. return;
  6723. }
  6724. let count1 = await this.getWorksCount(3, i, j, tooli + 1)
  6725. let count2 = await this.getWorksCount(3, i, j, tooli)
  6726. if(count1 > 0 || count2 > 0){
  6727. this.$confirm(
  6728. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6729. "提示",
  6730. {
  6731. confirmButtonText: "确定",
  6732. cancelButtonText: "取消",
  6733. type: "warning",
  6734. }
  6735. )
  6736. .then(() => {
  6737. var a =
  6738. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6739. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6740. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6741. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6742. this.$forceUpdate()
  6743. })
  6744. .catch(() => {
  6745. return;
  6746. });
  6747. }else{
  6748. var a =
  6749. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6750. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6751. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6752. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6753. this.$forceUpdate()
  6754. }
  6755. },
  6756. addWork() {
  6757. let cPan = 1;
  6758. for (var i = 0; i < this.unitJson.length; i++) {
  6759. for (
  6760. var j = 0;
  6761. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6762. j++
  6763. ) {
  6764. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6765. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6766. if (
  6767. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6768. ) {
  6769. for (
  6770. var z = 0;
  6771. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6772. z++
  6773. ) {
  6774. if (
  6775. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6776. .length
  6777. ) {
  6778. this.$message.error("请把工具添加完整");
  6779. cPan = 2;
  6780. break;
  6781. }
  6782. }
  6783. }
  6784. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6785. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6786. i
  6787. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6788. return ele.value != "";
  6789. });
  6790. }
  6791. }
  6792. }
  6793. this.inputShow = true;
  6794. if (cPan == 2) {
  6795. return;
  6796. }
  6797. for (var i = 0; i < this.unitJson.length; i++) {
  6798. delete this.unitJson[i].isUpdate;
  6799. }
  6800. let params = [
  6801. {
  6802. uid: this.userid,
  6803. title: this.courseName.replace(/%/g, "%25"),
  6804. brief: this.courseText.replace(/%/g, "%25"),
  6805. cover:
  6806. this.cover.length > 0
  6807. ? JSON.stringify(this.cover)
  6808. : JSON.stringify([
  6809. {
  6810. name: "noBanner.jpg",
  6811. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6812. uid: 1656409780264,
  6813. status: "success",
  6814. },
  6815. ]),
  6816. evaId: this.evalua,
  6817. astudent:
  6818. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6819. see: this.isTeacherSee == true ? 1 : 0,
  6820. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6821. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6822. courseType: JSON.stringify(this.courseTypeId),
  6823. ateacher:
  6824. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6825. inviteCode: JSON.stringify(this.inviteCode),
  6826. },
  6827. ];
  6828. this.ajax
  6829. .post(this.$store.state.api + "addWorkNew2T", params)
  6830. .then((res) => {
  6831. console.log(this.steps);
  6832. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6833. this.$message({
  6834. message: "新增成功",
  6835. type: "success",
  6836. });
  6837. // }
  6838. this.number = res.data.ordernumber;
  6839. this.courseId = res.data.courseId;
  6840. this.cid = res.data.courseId;
  6841. this.courseUserid = this.userid;
  6842. this.islogin = true;
  6843. this.steps = 4;
  6844. })
  6845. .catch((err) => {
  6846. this.$message.error("网络不佳");
  6847. console.error(err);
  6848. });
  6849. },
  6850. goCourse() {
  6851. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  6852. },
  6853. updateWork2() {
  6854. let _unitIndex = this.unitIndex;
  6855. let cPan = 1;
  6856. for (
  6857. var j = 0;
  6858. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6859. j++
  6860. ) {
  6861. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6862. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6863. j
  6864. ].proVisible2 = false;
  6865. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6866. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6867. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6868. (ele) => {
  6869. return ele.value != "";
  6870. }
  6871. );
  6872. }
  6873. }
  6874. this.inputShow = true;
  6875. if (cPan == 2) {
  6876. return;
  6877. }
  6878. let params = [
  6879. {
  6880. cid: this.cid,
  6881. chapters: JSON.stringify(this.unitJson),
  6882. uid: this.userid,
  6883. unitIndex: _unitIndex,
  6884. },
  6885. ];
  6886. this.ajax
  6887. .post(this.$store.state.api + "updateWorkNew4", params)
  6888. .then((res) => {
  6889. this.$message({
  6890. message: "修改成功",
  6891. type: "success",
  6892. });
  6893. this.courseId = this.cid;
  6894. })
  6895. .catch((err) => {
  6896. this.$message.error("网络不佳");
  6897. console.error(err);
  6898. });
  6899. },
  6900. updateWork() {
  6901. let cPan = 1;
  6902. for (var i = 0; i < this.unitJson.length; i++) {
  6903. for (
  6904. var j = 0;
  6905. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6906. j++
  6907. ) {
  6908. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6909. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6910. if (
  6911. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6912. ) {
  6913. for (
  6914. var z = 0;
  6915. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6916. z++
  6917. ) {
  6918. if (
  6919. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6920. .length
  6921. ) {
  6922. this.$message.error("请把工具添加完整");
  6923. cPan = 2;
  6924. break;
  6925. }
  6926. }
  6927. }
  6928. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6929. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6930. i
  6931. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6932. return ele.value != "";
  6933. });
  6934. }
  6935. }
  6936. }
  6937. this.inputShow = true;
  6938. if (cPan == 2) {
  6939. return;
  6940. }
  6941. for (var i = 0; i < this.unitJson.length; i++) {
  6942. delete this.unitJson[i].isUpdate;
  6943. }
  6944. let params = [
  6945. {
  6946. cid: this.cid,
  6947. title: this.courseName.replace(/%/g, "%25"),
  6948. brief: this.courseText.replace(/%/g, "%25"),
  6949. cover:
  6950. this.cover.length > 0
  6951. ? JSON.stringify(this.cover)
  6952. : JSON.stringify([
  6953. {
  6954. name: "noBanner.jpg",
  6955. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6956. uid: 1656409780264,
  6957. status: "success",
  6958. },
  6959. ]),
  6960. evaId: this.evalua,
  6961. astudent:
  6962. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6963. see: this.isTeacherSee == true ? 1 : 0,
  6964. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6965. template: this.myWord != "undefined" ? this.myWord : [],
  6966. uid: this.userid,
  6967. courseType: JSON.stringify(this.courseTypeId),
  6968. ateacher:
  6969. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6970. inviteCode: JSON.stringify(this.inviteCode),
  6971. },
  6972. ];
  6973. this.ajax
  6974. .post(this.$store.state.api + "updateWorkNew2", params)
  6975. .then((res) => {
  6976. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6977. if (this.cidType == 1) {
  6978. this.$message({
  6979. message: "修改成功",
  6980. type: "success",
  6981. });
  6982. } else {
  6983. this.$message({
  6984. message: "新增成功",
  6985. type: "success",
  6986. });
  6987. }
  6988. // }
  6989. this.number = this.nbOrder;
  6990. this.courseId = this.cid;
  6991. this.steps = 4;
  6992. })
  6993. .catch((err) => {
  6994. this.$message.error("网络不佳");
  6995. console.error(err);
  6996. });
  6997. },
  6998. guid() {
  6999. var _num,
  7000. i,
  7001. _guid = "";
  7002. for (i = 0; i < 32; i++) {
  7003. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7004. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7005. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7006. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7007. _guid += "-";
  7008. }
  7009. }
  7010. return _guid;
  7011. },
  7012. insertWord() {
  7013. this.dialogVisible1 = true;
  7014. this.updateBoolean2 = false;
  7015. this.tTitle = "";
  7016. this.tdetail = "";
  7017. },
  7018. addWord() {
  7019. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  7020. name: this.tTitle,
  7021. content: this.tdetail,
  7022. uid: this.guid(),
  7023. });
  7024. this.dialogVisible1 = false;
  7025. },
  7026. upWord() { },
  7027. selectWord(uid, i, c) {
  7028. this.dialogVisible1 = true;
  7029. this.updateBoolean2 = true;
  7030. if (
  7031. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  7032. ) {
  7033. this.tTitle =
  7034. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  7035. this.tdetail =
  7036. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  7037. }
  7038. },
  7039. isAddPP() {
  7040. if (this.checkboxList.length > 0) {
  7041. this.$message({
  7042. message: "添加成功",
  7043. type: "success",
  7044. });
  7045. this.dialogVisible3 = false;
  7046. } else {
  7047. this.$message({
  7048. message: "请添加课程成员",
  7049. type: "error",
  7050. });
  7051. }
  7052. },
  7053. isAddClass() {
  7054. this.dialogVisibleClass = false;
  7055. },
  7056. isAddPPTeacher() {
  7057. this.dialogVisibleMember = false;
  7058. this.setMan();
  7059. },
  7060. getTemplate() {
  7061. this.ajax
  7062. .get(this.$store.state.api + "getCourseTemplateT", "")
  7063. .then((res) => {
  7064. this.templateArray = res.data[0];
  7065. this.getTemplateOid();
  7066. this.$forceUpdate();
  7067. })
  7068. .catch((err) => { });
  7069. },
  7070. getTemplateOid() {
  7071. let params = {
  7072. oid: this.oid,
  7073. };
  7074. this.ajax
  7075. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7076. .then((res) => {
  7077. if (res.data[0].length) {
  7078. this.templateArray = [...res.data[0], ...this.templateArray];
  7079. }
  7080. this.getTemplateOrg();
  7081. this.$forceUpdate();
  7082. })
  7083. .catch((err) => { });
  7084. },
  7085. getTemplateOrg() {
  7086. let params = {
  7087. oid: this.org,
  7088. };
  7089. this.ajax
  7090. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7091. .then((res) => {
  7092. if (res.data[0].length) {
  7093. this.templateArray = [...res.data[0], ...this.templateArray];
  7094. }
  7095. this.$forceUpdate();
  7096. })
  7097. .catch((err) => { });
  7098. },
  7099. clearChoose() {
  7100. this.clearArray.splice(this.templateC.id, 1);
  7101. this.dialogVisible2 = false;
  7102. },
  7103. clearAttText() {
  7104. this.AttText = {
  7105. title: "",
  7106. text: "",
  7107. };
  7108. this.dialogVisible6 = false;
  7109. },
  7110. clearLine() {
  7111. this.line = "";
  7112. this.dialogVisible7 = false;
  7113. },
  7114. checkTemplate(res) {
  7115. let _this = this;
  7116. _this
  7117. .$confirm("确定选择此模板吗?", "提示", {
  7118. confirmButtonText: "确定",
  7119. cancelButtonText: "取消",
  7120. type: "warning",
  7121. })
  7122. .then(() => {
  7123. _this.unitJson = JSON.parse(res.chapters);
  7124. _this.steps++;
  7125. setTimeout(() => {
  7126. this.checkEva(this.checkId);
  7127. }, 1000);
  7128. })
  7129. .catch(() => {
  7130. return;
  7131. });
  7132. },
  7133. checkTemplate1(w) {
  7134. this.steps++;
  7135. },
  7136. checkTemplate2() {
  7137. let _this = this;
  7138. _this
  7139. .$confirm("确定选择空模板吗?", "提示", {
  7140. confirmButtonText: "确定",
  7141. cancelButtonText: "取消",
  7142. type: "warning",
  7143. })
  7144. .then(() => {
  7145. _this.unitIndex = 0;
  7146. _this.unitJson = [
  7147. {
  7148. dyName: "", //单元标题
  7149. chapterInfo: [
  7150. {
  7151. isread: false,
  7152. chapterid: this.guid(),
  7153. title: "",
  7154. courseName: "",
  7155. taskJson: [
  7156. {
  7157. task: "",
  7158. taskDetail: "",
  7159. chapterData: [],
  7160. toolText: "",
  7161. toolChoose: [
  7162. {
  7163. tool: [],
  7164. toolDetail: "",
  7165. toolType: 0,
  7166. askCount: 1,
  7167. askTitle: "",
  7168. askJson: [
  7169. { askstitle: "", askItem: 1, checkList: [] },
  7170. ],
  7171. },
  7172. ],
  7173. isShowTools: false,
  7174. askCount: 1,
  7175. isFold: 1,
  7176. askTitle: "",
  7177. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7178. checkJson: [{ checkCount: [], checkPerent: [] }],
  7179. homeworkList: [],
  7180. },
  7181. ],
  7182. itemCount: 1,
  7183. fileList1: [],
  7184. video: [],
  7185. testData: [],
  7186. pData: [],
  7187. templateArray: [],
  7188. },
  7189. ],
  7190. },
  7191. ];
  7192. this.steps++;
  7193. this.updateWork();
  7194. })
  7195. .catch(() => {
  7196. return;
  7197. });
  7198. },
  7199. checkTemplate3() {
  7200. let _this = this;
  7201. _this
  7202. .$confirm("确定选择简易模式吗?", "提示", {
  7203. confirmButtonText: "确定",
  7204. cancelButtonText: "取消",
  7205. type: "warning",
  7206. })
  7207. .then(() => {
  7208. _this.unitIndex = 0;
  7209. _this.unitJson = [
  7210. {
  7211. dyName: "", //单元标题
  7212. easy: 1,
  7213. chapterInfo: [
  7214. {
  7215. isread: false,
  7216. chapterid: this.guid(),
  7217. title: "",
  7218. courseName: "",
  7219. taskJson: [
  7220. {
  7221. task: "",
  7222. taskDetail: "",
  7223. chapterData: [],
  7224. toolText: "",
  7225. toolChoose: [
  7226. {
  7227. tool: [],
  7228. toolDetail: "",
  7229. toolType: 0,
  7230. askCount: 1,
  7231. askTitle: "",
  7232. askJson: [
  7233. { askstitle: "", askItem: 1, checkList: [] },
  7234. ],
  7235. },
  7236. ],
  7237. isShowTools: false,
  7238. askCount: 1,
  7239. isFold: 1,
  7240. askTitle: "",
  7241. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7242. checkJson: [{ checkCount: [], checkPerent: [] }],
  7243. homeworkList: [],
  7244. },
  7245. ],
  7246. itemCount: 1,
  7247. fileList1: [],
  7248. video: [],
  7249. testData: [],
  7250. pData: [],
  7251. templateArray: [],
  7252. },
  7253. ],
  7254. },
  7255. ];
  7256. this.steps++;
  7257. this.updateWork();
  7258. })
  7259. .catch(() => {
  7260. return;
  7261. });
  7262. },
  7263. checkTemplate4() {
  7264. let _this = this;
  7265. _this
  7266. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7267. confirmButtonText: "确定",
  7268. cancelButtonText: "取消",
  7269. type: "warning",
  7270. })
  7271. .then(() => {
  7272. _this.unitIndex = 0;
  7273. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7274. this.steps++;
  7275. this.updateWork();
  7276. })
  7277. .catch(() => {
  7278. return;
  7279. });
  7280. },
  7281. wordNext() {
  7282. this.dialogVisible2 = false;
  7283. },
  7284. isAddOrUpdateAttText() {
  7285. if (this.AttTextType == 0) {
  7286. this.addAttTextMessage();
  7287. } else {
  7288. this.updateAttText();
  7289. }
  7290. },
  7291. isAddOrUpdateLine() {
  7292. if (!this.lineTitle) {
  7293. this.$message.error("请填写链接标题");
  7294. return;
  7295. }
  7296. if (this.lineType == 0) {
  7297. this.addLine();
  7298. } else {
  7299. this.updateLine();
  7300. }
  7301. },
  7302. addAttTextMessage() {
  7303. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7304. this.taskCount
  7305. ].chapterData.push({
  7306. name: this.AttText.title,
  7307. url: this.AttText.text,
  7308. type: 6,
  7309. });
  7310. this.imgChange1(null, null, 6, this.taskCount);
  7311. this.dialogVisible6 = false;
  7312. },
  7313. selectAttText(itemTaskIndex, i) {
  7314. this.AttText.title =
  7315. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7316. itemTaskIndex
  7317. ].chapterData[i].name;
  7318. this.AttText.text =
  7319. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7320. itemTaskIndex
  7321. ].chapterData[i].url;
  7322. this.taskCount = itemTaskIndex;
  7323. this.AttTextIndex = i;
  7324. this.AttTextType = 1;
  7325. this.dialogVisible6 = true;
  7326. },
  7327. updateAttText() {
  7328. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7329. this.taskCount
  7330. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7331. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7332. this.taskCount
  7333. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7334. this.dialogVisible6 = false;
  7335. },
  7336. addLine() {
  7337. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7338. this.lineCount
  7339. ].chapterData.push({
  7340. name: "链接",
  7341. title: this.lineTitle,
  7342. url: this.line,
  7343. type: 8,
  7344. });
  7345. this.imgChange1(null, null, 8, this.lineCount);
  7346. this.dialogVisible7 = false;
  7347. },
  7348. selectLine(itemTaskIndex, i) {
  7349. this.line =
  7350. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7351. itemTaskIndex
  7352. ].chapterData[i].url;
  7353. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7354. itemTaskIndex
  7355. ].chapterData[i].title
  7356. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7357. .chapterData[i].title
  7358. : "";
  7359. this.taskCount = itemTaskIndex;
  7360. this.lineCount = i;
  7361. this.lineType = 1;
  7362. this.dialogVisible7 = true;
  7363. },
  7364. openUpdateSource(itemTaskIndex, i) {
  7365. this.sourceData = {}
  7366. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7367. this.sourceData[source.id] = {}
  7368. this.sourceData[source.id].name = source.title
  7369. this.sourceData[source.id].url = source.url
  7370. this.dialogVisibleSource = true;
  7371. this.updateSourcePan = true;
  7372. this.taskCount = itemTaskIndex;
  7373. this.lineCount = i;
  7374. },
  7375. updateLine() {
  7376. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7377. this.taskCount
  7378. ].chapterData[this.lineCount].url = this.line;
  7379. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7380. this.taskCount
  7381. ].chapterData[this.lineCount].title = this.lineTitle;
  7382. this.dialogVisible7 = false;
  7383. },
  7384. addPP() {
  7385. this.dialogVisible3 = true;
  7386. },
  7387. goTo(path) {
  7388. this.$router.push(path);
  7389. },
  7390. openTools(itemTaskIndex, i, toolIndex) {
  7391. this.toolIndex = toolIndex;
  7392. this.taskCount = itemTaskIndex;
  7393. if (i == 4) {
  7394. if (toolIndex == null) {
  7395. var a =
  7396. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7397. .chapterData;
  7398. for (var i = 0; i < a.length; i++) {
  7399. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7400. this.askJson =
  7401. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7402. itemTaskIndex
  7403. ].chapterData[i].askJson;
  7404. }
  7405. }
  7406. } else {
  7407. this.askJson = JSON.parse(
  7408. JSON.stringify(
  7409. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7410. itemTaskIndex
  7411. ].toolChoose[toolIndex]
  7412. )
  7413. );
  7414. }
  7415. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7416. this.dialogVisible5 = true;
  7417. } else if (i == 45) {
  7418. if (
  7419. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7420. .toolChoose[toolIndex].testJson
  7421. ) {
  7422. this.testJson = JSON.parse(
  7423. JSON.stringify(
  7424. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7425. itemTaskIndex
  7426. ].toolChoose[toolIndex].testJson
  7427. )
  7428. );
  7429. } else {
  7430. var testJson = {
  7431. testCount: 1,
  7432. testTitle: "",
  7433. testJson: [
  7434. {
  7435. teststitle: "",
  7436. testItem: 1,
  7437. checkList: [],
  7438. timuList: [],
  7439. answer: [],
  7440. type: "1",
  7441. },
  7442. ],
  7443. };
  7444. this.testJson = testJson;
  7445. }
  7446. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7447. this.dialogVisibleChoice = true;
  7448. } else if (i == 47) {
  7449. if (
  7450. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7451. .toolChoose[toolIndex].sentenceList
  7452. ) {
  7453. this.sentenceList = JSON.parse(
  7454. JSON.stringify(
  7455. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7456. itemTaskIndex
  7457. ].toolChoose[toolIndex].sentenceList
  7458. )
  7459. );
  7460. } else {
  7461. var sentenceList = [
  7462. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7463. ];
  7464. this.sentenceList = sentenceList;
  7465. }
  7466. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7467. this.dialogVisibleSentence = true;
  7468. } else if (i == 48) {
  7469. if (
  7470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7471. .toolChoose[toolIndex].tableJson
  7472. ) {
  7473. this.tableJson = JSON.parse(
  7474. JSON.stringify(
  7475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7476. itemTaskIndex
  7477. ].toolChoose[toolIndex].tableJson
  7478. )
  7479. );
  7480. } else {
  7481. var tableJson = { text: "" };
  7482. this.tableJson = tableJson;
  7483. }
  7484. this.dialogVisibleTable = true;
  7485. } else if (i == 52) {
  7486. if (
  7487. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7488. .toolChoose[toolIndex].wordJson
  7489. ) {
  7490. this.wordJson = JSON.parse(
  7491. JSON.stringify(
  7492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7493. itemTaskIndex
  7494. ].toolChoose[toolIndex].wordJson
  7495. )
  7496. );
  7497. } else {
  7498. var wordJson = { text: "" };
  7499. this.wordJson = wordJson;
  7500. }
  7501. this.dialogVisibleWord = true;
  7502. // else if (i == 50) {
  7503. // if (
  7504. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7505. // .toolChoose[toolIndex].uploadJson
  7506. // ) {
  7507. // this.uploadJson = JSON.parse(
  7508. // JSON.stringify(
  7509. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7510. // itemTaskIndex
  7511. // ].toolChoose[toolIndex].uploadJson
  7512. // )
  7513. // );
  7514. // } else {
  7515. // var uploadJson = [];
  7516. // this.uploadJson = uploadJson;
  7517. // }
  7518. // this.dialogVisibleMoreUpload = true;
  7519. // }
  7520. } else if (i == 10) {
  7521. if (
  7522. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7523. .toolChoose[toolIndex].preTime
  7524. ) {
  7525. this.preTime = JSON.parse(
  7526. JSON.stringify(
  7527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7528. itemTaskIndex
  7529. ].toolChoose[toolIndex].preTime
  7530. )
  7531. );
  7532. } else {
  7533. var preTime = 0;
  7534. this.preTime = preTime;
  7535. }
  7536. this.dialogVisiblePreTime = true;
  7537. } else if (i == 49) {
  7538. if (
  7539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7540. .toolChoose[toolIndex].groupJson
  7541. ) {
  7542. this.groupJson = JSON.parse(
  7543. JSON.stringify(
  7544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7545. itemTaskIndex
  7546. ].toolChoose[toolIndex].groupJson
  7547. )
  7548. );
  7549. } else {
  7550. var groupJson = {
  7551. group: [{ name: "第1组" }],
  7552. number: undefined,
  7553. islock: 1,
  7554. };
  7555. this.groupJson = groupJson;
  7556. }
  7557. this.dialogVisibleGroup = true;
  7558. } else if (i == 62) {
  7559. if (
  7560. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7561. .toolChoose[toolIndex].videoJson
  7562. ) {
  7563. this.videoJson = JSON.parse(
  7564. JSON.stringify(
  7565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7566. itemTaskIndex
  7567. ].toolChoose[toolIndex].videoJson
  7568. )
  7569. );
  7570. } else {
  7571. var videoJson = {
  7572. video: "",
  7573. setting: [],
  7574. };
  7575. this.videoJson = videoJson;
  7576. }
  7577. this.dialogVisibleVideo = true;
  7578. } else if (i == 15) {
  7579. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7580. itemTaskIndex
  7581. ].toolChoose[toolIndex].answerQ
  7582. ? JSON.parse(
  7583. JSON.stringify(
  7584. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7585. itemTaskIndex
  7586. ].toolChoose[toolIndex].answerQ
  7587. )
  7588. )
  7589. : "";
  7590. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7591. this.dialogVisible8 = true;
  7592. } else if (i == 40) {
  7593. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7594. itemTaskIndex
  7595. ].toolChoose[toolIndex].rateJson
  7596. ? JSON.parse(
  7597. JSON.stringify(
  7598. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7599. itemTaskIndex
  7600. ].toolChoose[toolIndex].rateJson
  7601. )
  7602. )
  7603. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7604. this.selectSteps = 1;
  7605. this.dialogVisibleRate = true;
  7606. } else if (i == 42) {
  7607. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7608. itemTaskIndex
  7609. ].toolChoose[toolIndex].answerQ
  7610. ? JSON.parse(
  7611. JSON.stringify(
  7612. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7613. itemTaskIndex
  7614. ].toolChoose[toolIndex].answerQ
  7615. )
  7616. )
  7617. : "";
  7618. this.dialogVisibleMp3 = true;
  7619. } else if (i == 41) {
  7620. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7621. itemTaskIndex
  7622. ].toolChoose[toolIndex].selectJson
  7623. ? JSON.parse(
  7624. JSON.stringify(
  7625. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7626. itemTaskIndex
  7627. ].toolChoose[toolIndex].selectJson
  7628. )
  7629. )
  7630. : { url: "", select: [], answer: [] };
  7631. this.selectSteps = 1;
  7632. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7633. this.dialogVisibleSelect = true;
  7634. } else if (i == 3) {
  7635. if (!this.cid) {
  7636. this.$message.error(
  7637. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7638. );
  7639. return;
  7640. }
  7641. top.postMessage(
  7642. {
  7643. tools: "3y",
  7644. cid: this.cid,
  7645. stage: this.unitIndex,
  7646. task: itemTaskIndex,
  7647. tool: toolIndex,
  7648. },
  7649. "*"
  7650. );
  7651. } else if (i == 1) {
  7652. if (!this.cid) {
  7653. this.$message.error(
  7654. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7655. );
  7656. return;
  7657. }
  7658. top.postMessage(
  7659. {
  7660. tools: "1y",
  7661. cid: this.cid,
  7662. stage: this.unitIndex,
  7663. task: itemTaskIndex,
  7664. tool: toolIndex,
  7665. },
  7666. "*"
  7667. );
  7668. } else if (i == 57) {
  7669. if (!this.cid) {
  7670. this.$message.error(
  7671. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7672. );
  7673. return;
  7674. }
  7675. top.postMessage(
  7676. {
  7677. tools: "57y",
  7678. cid: this.cid,
  7679. stage: this.unitIndex,
  7680. task: itemTaskIndex,
  7681. tool: toolIndex,
  7682. },
  7683. "*"
  7684. );
  7685. }else if(i == 69){
  7686. this.englishList = {};
  7687. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7688. itemTaskIndex
  7689. ].toolChoose[toolIndex].englishList
  7690. ? JSON.parse(
  7691. JSON.stringify(
  7692. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7693. itemTaskIndex
  7694. ].toolChoose[toolIndex].englishList
  7695. )
  7696. )
  7697. : { };
  7698. this.$forceUpdate();
  7699. this.englishDialogVisible = true;
  7700. }
  7701. },
  7702. chapAddTools(i) {
  7703. if (this.chapTools[0].tools.length == 0) {
  7704. this.chapTools[0].tools.push(i);
  7705. } else {
  7706. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7707. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7708. } else {
  7709. this.chapTools[0].tools.push(i);
  7710. }
  7711. }
  7712. this.$forceUpdate();
  7713. },
  7714. addChaptersDataTools() {
  7715. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7716. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7717. this.chapCount
  7718. ].chapterData.push({
  7719. name: this.chapTools[0].toolDetail,
  7720. url: this.chapTools[0].tools,
  7721. type: 7,
  7722. askJson: this.askJson,
  7723. });
  7724. } else {
  7725. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7726. this.chapCount
  7727. ].chapterData.push({
  7728. name: this.chapTools[0].toolDetail,
  7729. url: this.chapTools[0].tools,
  7730. type: 7,
  7731. });
  7732. }
  7733. this.imgChange1(null, null, 7, this.chapCount);
  7734. this.dialogVisible4 = false;
  7735. },
  7736. addTools(i, itemTaskIndex, toolIndex) {
  7737. // if (
  7738. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7739. // .toolChoose[toolIndex].tool.length == 0
  7740. // ) {
  7741. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7742. // itemTaskIndex
  7743. // ].toolChoose[toolIndex].tool.push(i);
  7744. // } else {
  7745. // if (
  7746. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7747. // itemTaskIndex
  7748. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7749. // ) {
  7750. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7751. // itemTaskIndex
  7752. // ].toolChoose[toolIndex].tool.splice(
  7753. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7754. // itemTaskIndex
  7755. // ].toolChoose[toolIndex].tool.indexOf(i),
  7756. // 1
  7757. // );
  7758. // } else {
  7759. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7760. // itemTaskIndex
  7761. // ].toolChoose[toolIndex].tool.push(i);
  7762. // }
  7763. // console.log(
  7764. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7765. // .toolChoose[toolIndex].tool
  7766. // );
  7767. // }
  7768. if (i == 4) {
  7769. if (
  7770. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7771. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7772. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7773. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7774. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7775. .toolChoose[toolIndex].askJson[0].checkList < 2
  7776. ) {
  7777. this.openTools(itemTaskIndex, 4, toolIndex);
  7778. // this.$message({
  7779. // message: "请填写完整问卷内容",
  7780. // type: "error",
  7781. // });
  7782. return;
  7783. }
  7784. }
  7785. if (i == 45) {
  7786. if (
  7787. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7788. .toolChoose[toolIndex].testJson ||
  7789. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7790. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7791. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7792. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7793. ) {
  7794. this.openTools(itemTaskIndex, 45, toolIndex);
  7795. // this.$message({
  7796. // message: "请填写完整问卷内容",
  7797. // type: "error",
  7798. // });
  7799. return;
  7800. }
  7801. }
  7802. if (i == 47) {
  7803. if (
  7804. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7805. .toolChoose[toolIndex].sentenceList ||
  7806. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7807. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7808. ) {
  7809. this.openTools(itemTaskIndex, 47, toolIndex);
  7810. return;
  7811. }
  7812. }
  7813. if(i == 69){
  7814. if (
  7815. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7816. .toolChoose[toolIndex].englishList
  7817. ) {
  7818. this.openTools(itemTaskIndex, 69, toolIndex);
  7819. return;
  7820. }
  7821. }
  7822. // if (i == 48) {
  7823. // if (
  7824. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7825. // .toolChoose[toolIndex].tableJson
  7826. // ) {
  7827. // this.openTools(itemTaskIndex, 48, toolIndex);
  7828. // return;
  7829. // }
  7830. // }
  7831. // if (i == 50) {
  7832. // if (
  7833. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7834. // .toolChoose[toolIndex].uploadJson
  7835. // ) {
  7836. // this.openTools(itemTaskIndex, 50, toolIndex);
  7837. // return;
  7838. // }
  7839. // }
  7840. if (i == 49) {
  7841. if (
  7842. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7843. .toolChoose[toolIndex].groupJson
  7844. ) {
  7845. this.openTools(itemTaskIndex, 49, toolIndex);
  7846. return;
  7847. }
  7848. }
  7849. if (i == 62) {
  7850. if (
  7851. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7852. .toolChoose[toolIndex].videoJson
  7853. ) {
  7854. this.openTools(itemTaskIndex, 62, toolIndex);
  7855. return;
  7856. }
  7857. }
  7858. if (i == 15) {
  7859. if (
  7860. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7861. .toolChoose[toolIndex].answerQ ||
  7862. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7863. .toolChoose[toolIndex].answerQ == ""
  7864. ) {
  7865. this.openTools(itemTaskIndex, 15, toolIndex);
  7866. // this.$message({
  7867. // message: "请填写问答内容",
  7868. // type: "error",
  7869. // });
  7870. return;
  7871. }
  7872. }
  7873. if (i == 40) {
  7874. if (
  7875. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7876. .toolChoose[toolIndex].rateJson ||
  7877. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7878. .toolChoose[toolIndex].rateJson.length
  7879. ) {
  7880. this.openTools(itemTaskIndex, 40, toolIndex);
  7881. return;
  7882. }
  7883. }
  7884. if (i == 41) {
  7885. if (
  7886. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7887. .toolChoose[toolIndex].selectJson ||
  7888. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7889. .toolChoose[toolIndex].selectJson.url == "" ||
  7890. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7891. .toolChoose[toolIndex].selectJson.select.length ||
  7892. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7893. .toolChoose[toolIndex].selectJson.answer.length
  7894. ) {
  7895. this.openTools(itemTaskIndex, 41, toolIndex);
  7896. return;
  7897. }
  7898. }
  7899. if (i == 42) {
  7900. if (
  7901. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7902. .toolChoose[toolIndex].answerQ ||
  7903. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7904. .toolChoose[toolIndex].answerQ == ""
  7905. ) {
  7906. this.openTools(itemTaskIndex, 42, toolIndex);
  7907. return;
  7908. }
  7909. }
  7910. if (
  7911. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7912. .toolChoose[toolIndex].tool.length > 0
  7913. ) {
  7914. if (
  7915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7916. itemTaskIndex
  7917. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7918. ) {
  7919. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7920. itemTaskIndex
  7921. ].toolChoose[toolIndex].tool.splice(
  7922. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7923. itemTaskIndex
  7924. ].toolChoose[toolIndex].tool.indexOf(i),
  7925. 1
  7926. );
  7927. } else {
  7928. // this.$message({
  7929. // message: "每个工具只能添加一个",
  7930. // type: "error",
  7931. // });
  7932. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7933. itemTaskIndex
  7934. ].toolChoose[toolIndex].tool = [];
  7935. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7936. itemTaskIndex
  7937. ].toolChoose[toolIndex].tool.push(i);
  7938. }
  7939. } else {
  7940. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7941. itemTaskIndex
  7942. ].toolChoose[toolIndex].tool.push(i);
  7943. }
  7944. this.$forceUpdate();
  7945. },
  7946. addAskList(index) {
  7947. this.askJson.askJson.splice(index + 1, 0, {
  7948. askstitle: "",
  7949. askItem: 1,
  7950. checkList: [],
  7951. })
  7952. this.askJson.askCount++;
  7953. },
  7954. addTestList(index) {
  7955. this.testJson.testJson.splice(index + 1, 0, {
  7956. teststitle: "",
  7957. testItem: 1,
  7958. checkList: [],
  7959. timuList: [],
  7960. answer: [],
  7961. type: "1",
  7962. })
  7963. this.testJson.testCount++;
  7964. },
  7965. deleteAskList(index) {
  7966. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7967. this.askJson.askJson.splice(index, 1);
  7968. this.askJson.askCount--;
  7969. } else {
  7970. let _this = this;
  7971. _this
  7972. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7973. confirmButtonText: "确定",
  7974. cancelButtonText: "取消",
  7975. type: "warning",
  7976. })
  7977. .then(() => {
  7978. _this.askJson.askJson.splice(index, 1);
  7979. _this.askJson.askCount--;
  7980. })
  7981. .catch(() => {
  7982. return;
  7983. });
  7984. }
  7985. },
  7986. deleteTestList(index) {
  7987. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7988. this.testJson.testJson.splice(index, 1);
  7989. this.testJson.testCount--;
  7990. } else {
  7991. let _this = this;
  7992. _this
  7993. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7994. confirmButtonText: "确定",
  7995. cancelButtonText: "取消",
  7996. type: "warning",
  7997. })
  7998. .then(() => {
  7999. _this.testJson.testJson.splice(index, 1);
  8000. _this.testJson.testCount--;
  8001. })
  8002. .catch(() => {
  8003. return;
  8004. });
  8005. }
  8006. },
  8007. askMove(type, index) {
  8008. if (type == 1) {
  8009. if (index > 0) {
  8010. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  8011. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8012. this.askJson.askJson[index - 1] = b;
  8013. this.askJson.askJson[index] = a;
  8014. }
  8015. } else {
  8016. if (
  8017. index < this.askJson.askJson.length - 1
  8018. ) {
  8019. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  8020. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8021. this.askJson.askJson[index + 1] = b;
  8022. this.askJson.askJson[index] = a;
  8023. }
  8024. }
  8025. this.$forceUpdate();
  8026. },
  8027. checkMove(type, index, checkIndex) {
  8028. if (type == 1) {
  8029. if (checkIndex > 0) {
  8030. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  8031. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8032. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  8033. this.askJson.askJson[index].checkList[checkIndex] = a;
  8034. }
  8035. } else {
  8036. if (
  8037. checkIndex < this.askJson.askJson[index].checkList.length - 1
  8038. ) {
  8039. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  8040. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8041. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  8042. this.askJson.askJson[index].checkList[checkIndex] = a;
  8043. }
  8044. }
  8045. this.$forceUpdate();
  8046. },
  8047. testMove(type, index) {
  8048. if (type == 1) {
  8049. if (index > 0) {
  8050. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  8051. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8052. this.testJson.testJson[index - 1] = b;
  8053. this.testJson.testJson[index] = a;
  8054. }
  8055. } else {
  8056. if (
  8057. index < this.testJson.testJson.length - 1
  8058. ) {
  8059. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  8060. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8061. this.testJson.testJson[index + 1] = b;
  8062. this.testJson.testJson[index] = a;
  8063. }
  8064. }
  8065. this.$forceUpdate();
  8066. },
  8067. tcheckMove(type, index, checkIndex) {
  8068. if (type == 1) {
  8069. if (checkIndex > 0) {
  8070. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  8071. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8072. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  8073. this.testJson.testJson[index].checkList[checkIndex] = a;
  8074. }
  8075. } else {
  8076. if (
  8077. checkIndex < this.testJson.testJson[index].checkList.length - 1
  8078. ) {
  8079. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  8080. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8081. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  8082. this.testJson.testJson[index].checkList[checkIndex] = a;
  8083. }
  8084. }
  8085. this.$forceUpdate();
  8086. },
  8087. addcheckList(json, index) {
  8088. // json.checkList.length++;
  8089. json.checkList.splice(index + 1, 0, '')
  8090. json.askItem++;
  8091. this.$forceUpdate();
  8092. },
  8093. deletecheckList(json, index) {
  8094. // json.checkList.length--;
  8095. json.checkList.splice(index, 1)
  8096. json.askItem--;
  8097. this.$forceUpdate();
  8098. },
  8099. addTcheckList(json, index) {
  8100. // json.checkList.length++;
  8101. json.checkList.splice(index + 1, 0, '')
  8102. json.testItem++;
  8103. this.$forceUpdate();
  8104. },
  8105. deleteTcheckList(json, index) {
  8106. // json.checkList.length--;
  8107. json.checkList.splice(index, 1)
  8108. json.testItem--;
  8109. this.$forceUpdate();
  8110. },
  8111. checkTestType(type, json) {
  8112. json.type = type;
  8113. setTimeout(() => {
  8114. json.answer = [];
  8115. }, 100)
  8116. this.$forceUpdate();
  8117. },
  8118. checkAskType(type, json) {
  8119. json.type = type;
  8120. // json.checkList = [];
  8121. this.$forceUpdate();
  8122. },
  8123. addSelectList(json) {
  8124. json.select.push("");
  8125. json.answer.push("");
  8126. },
  8127. deleteSelectList(json) {
  8128. // json.select.length--;
  8129. // json.answer.length--;
  8130. json.select.splice(json.select.length - 1, 1);
  8131. json.answer.splice(json.answer.length - 1, 1);
  8132. },
  8133. addAsk() {
  8134. if (this.askJson.askTitle === "") {
  8135. this.$message.error("标题不能为空!");
  8136. return;
  8137. }
  8138. var aj = this.askJson.askJson;
  8139. var b = 1;
  8140. for (var i = 0; i < aj.length; i++) {
  8141. if (aj[i].askstitle === "") {
  8142. var a = 1;
  8143. for (let index = 0; index < aj[i].askItem; index++) {
  8144. const element = aj[i].checkList[index]
  8145. ? aj[i].checkList[index]
  8146. : "";
  8147. if (element != "") {
  8148. b++;
  8149. this.$message.error(`请将题目${i + 1}填写完整。`);
  8150. return;
  8151. } else {
  8152. a++;
  8153. }
  8154. }
  8155. if (b == 1) {
  8156. this.$message.error("至少填写一个问题");
  8157. return;
  8158. }
  8159. } else if (aj[i].askstitle != "") {
  8160. for (let index = 0; index < aj[i].askItem; index++) {
  8161. const element = aj[i].checkList[index]
  8162. ? aj[i].checkList[index]
  8163. : "";
  8164. var index = 0;
  8165. for (var z = 0; z < aj[i].checkList.length; z++) {
  8166. let checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8167. if (checkC != "") {
  8168. index++;
  8169. } else {
  8170. this.$message.error(`题目${i + 1}选项不能为空!`);
  8171. return;
  8172. }
  8173. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8174. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8175. if (checkC == checkC2) {
  8176. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8177. return;
  8178. }
  8179. }
  8180. }
  8181. b++;
  8182. if (index < 2) {
  8183. this.$message.error("每道题目至少需要设置2个选项。");
  8184. return;
  8185. }
  8186. }
  8187. }
  8188. }
  8189. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8190. var elc = el.checkList.filter((element) => {
  8191. return element != "";
  8192. });
  8193. return el.askstitle != "" && elc.length != 0;
  8194. });
  8195. if (!this.dialogVisible4) {
  8196. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8197. this.taskCount
  8198. ].toolChoose[this.toolIndex] = this.askJson;
  8199. }
  8200. this.dialogVisible5 = false;
  8201. if (
  8202. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8203. .toolChoose[this.toolIndex].tool != 4
  8204. ) {
  8205. this.addTools(4, this.taskCount, this.toolIndex);
  8206. }
  8207. },
  8208. addTest() {
  8209. // if (this.testJson.testTitle === "") {
  8210. // this.$message.error("标题不能为空!");
  8211. // return;
  8212. // }
  8213. var aj = this.testJson.testJson;
  8214. var b = 1;
  8215. for (var i = 0; i < aj.length; i++) {
  8216. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8217. var a = 1;
  8218. for (let index = 0; index < aj[i].testItem; index++) {
  8219. const element = aj[i].checkList[index]
  8220. ? aj[i].checkList[index]
  8221. : "";
  8222. if (element != "") {
  8223. b++;
  8224. this.$message.error(`请将题目${i + 1}填写完整。`);
  8225. return;
  8226. } else {
  8227. a++;
  8228. }
  8229. }
  8230. if (b == 1) {
  8231. this.$message.error("至少填写一个问题");
  8232. return;
  8233. }
  8234. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8235. for (let index = 0; index < aj[i].testItem; index++) {
  8236. const element = aj[i].checkList[index]
  8237. ? aj[i].checkList[index]
  8238. : "";
  8239. var index = 0;
  8240. for (var z = 0; z < aj[i].checkList.length; z++) {
  8241. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8242. if (checkC != "") {
  8243. index++;
  8244. } else {
  8245. this.$message.error(`题目${i + 1}选项不能为空!`);
  8246. return;
  8247. }
  8248. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8249. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8250. if (checkC == checkC2) {
  8251. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8252. return;
  8253. }
  8254. }
  8255. }
  8256. b++;
  8257. if (index < 2) {
  8258. this.$message.error("每道题目至少需要设置2个选项。");
  8259. return;
  8260. }
  8261. if (
  8262. (aj[i].type == "2" && !aj[i].answer.length) ||
  8263. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8264. ) {
  8265. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8266. return;
  8267. }
  8268. }
  8269. }
  8270. }
  8271. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8272. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8273. var elc = el.checkList.filter((element) => {
  8274. return element != "";
  8275. });
  8276. return (
  8277. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8278. );
  8279. });
  8280. isTestJson.testCount = isTestJson.testJson.length;
  8281. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8282. this.taskCount
  8283. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8284. this.dialogVisibleChoice = false;
  8285. if (
  8286. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8287. .toolChoose[this.toolIndex].tool != 45
  8288. ) {
  8289. this.addTools(45, this.taskCount, this.toolIndex);
  8290. }
  8291. },
  8292. addVideoJson(videoJson) {
  8293. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8294. this.taskCount
  8295. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8296. this.dialogVisibleVideo = false;
  8297. if (
  8298. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8299. .toolChoose[this.toolIndex].tool != 62
  8300. ) {
  8301. this.addTools(62, this.taskCount, this.toolIndex);
  8302. }
  8303. },
  8304. //自动获取剪贴板
  8305. pasteOption() {
  8306. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8307. if (!iframe) {
  8308. this.$message.error("请使用AI共创生成题目");
  8309. return;
  8310. }
  8311. let copyData = iframe.contentWindow.copyData;
  8312. if (!copyData || !copyData.selectData.length) {
  8313. this.$message.error("请使用AI共创生成题目");
  8314. return;
  8315. }
  8316. let selectData = copyData.selectData;
  8317. for (var i = 0; i < selectData.length; i++) {
  8318. let answer = 0;
  8319. switch (selectData[i].answer[0]) {
  8320. case "A":
  8321. answer = 0;
  8322. break;
  8323. case "B":
  8324. answer = 1;
  8325. break;
  8326. case "C":
  8327. answer = 2;
  8328. break;
  8329. case "D":
  8330. answer = 3;
  8331. break;
  8332. case "E":
  8333. answer = 4;
  8334. break;
  8335. default:
  8336. break;
  8337. }
  8338. this.testJson.testJson.push({
  8339. teststitle: selectData[i].subject,
  8340. testItem: selectData[i].options.length,
  8341. checkList: selectData[i].options,
  8342. timuList: [],
  8343. answer: answer,
  8344. type: "1",
  8345. });
  8346. this.testJson.testCount++;
  8347. }
  8348. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8349. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8350. var elc = el.checkList.filter((element) => {
  8351. return element != "";
  8352. });
  8353. return (
  8354. el.teststitle != "" || el.timuList.length > 0 || elc.length != 0
  8355. );
  8356. });
  8357. isTestJson.testCount = isTestJson.testJson.length;
  8358. if(!isTestJson.testCount){
  8359. return;
  8360. }
  8361. this.testJson = isTestJson;
  8362. this.$forceUpdate();
  8363. },
  8364. pasteTask() {
  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.tasksData || !copyData.tasksData.length) {
  8372. this.$message.error("请使用AI共创生成");
  8373. return;
  8374. }
  8375. let stageTasksData = copyData.tasksData;
  8376. let taskA = [];
  8377. let tasks = stageTasksData;
  8378. for (var j = 0; j < tasks.length; j++) {
  8379. taskA.push({
  8380. task: tasks[j].taskName,
  8381. taskDetail: tasks[j].taskDecs,
  8382. chapterData: [],
  8383. toolText: "",
  8384. toolChoose: [
  8385. {
  8386. tool: [],
  8387. toolDetail: "",
  8388. toolType: 0,
  8389. askCount: 1,
  8390. askTitle: "",
  8391. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8392. },
  8393. ],
  8394. isShowTools: false,
  8395. askCount: 1,
  8396. isFold: 1,
  8397. askTitle: "",
  8398. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8399. checkJson: [{ checkCount: [], checkPerent: [] }],
  8400. homeworkList: [],
  8401. });
  8402. }
  8403. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8404. this.$forceUpdate();
  8405. },
  8406. pasteStage(stageJson) {
  8407. let stageData = [];
  8408. if(stageJson){
  8409. stageData = stageJson
  8410. }else{
  8411. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8412. if (!iframe) {
  8413. this.$message.error("请使用AI共创生成");
  8414. return;
  8415. }
  8416. let copyData = iframe.contentWindow.copyData;
  8417. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  8418. this.$message.error("请使用AI共创生成");
  8419. return;
  8420. }
  8421. stageData = copyData.stageData
  8422. }
  8423. let stage = [];
  8424. for (var i = 0; i < stageData.length; i++) {
  8425. stage.push({
  8426. dyName: stageData[i], //单元标题
  8427. chapterInfo: [
  8428. {
  8429. isread: false,
  8430. chapterid: this.guid(),
  8431. title: "",
  8432. courseName: "",
  8433. taskJson: [
  8434. {
  8435. task: "",
  8436. taskDetail: "",
  8437. chapterData: [],
  8438. toolText: "",
  8439. toolChoose: [
  8440. {
  8441. tool: [],
  8442. toolDetail: "",
  8443. toolType: 0,
  8444. askCount: 1,
  8445. askTitle: "",
  8446. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8447. },
  8448. ],
  8449. isShowTools: false,
  8450. askCount: 1,
  8451. isFold: 1,
  8452. askTitle: "",
  8453. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8454. checkJson: [{ checkCount: [], checkPerent: [] }],
  8455. homeworkList: [],
  8456. },
  8457. ],
  8458. itemCount: 1,
  8459. fileList1: [],
  8460. video: [],
  8461. testData: [],
  8462. pData: [],
  8463. templateArray: [],
  8464. },
  8465. ],
  8466. });
  8467. }
  8468. let _this = this;
  8469. if(stageJson){
  8470. _this.unitIndex = 0;
  8471. _this.unitJson = stage;
  8472. _this.updateWork();
  8473. }else{
  8474. _this
  8475. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  8476. confirmButtonText: "确定",
  8477. cancelButtonText: "取消",
  8478. type: "warning",
  8479. })
  8480. .then(() => {
  8481. _this.unitIndex = 0;
  8482. _this.unitJson = stage;
  8483. _this.updateWork();
  8484. })
  8485. .catch(() => {
  8486. return;
  8487. });
  8488. }
  8489. },
  8490. addAnswer() {
  8491. if (this.answerQ == "") {
  8492. this.$message.error("请输入您想要问的问题");
  8493. return;
  8494. }
  8495. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8496. this.taskCount
  8497. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8498. this.dialogVisible8 = false;
  8499. if (
  8500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8501. .toolChoose[this.toolIndex].tool != 15
  8502. ) {
  8503. this.addTools(15, this.taskCount, this.toolIndex);
  8504. }
  8505. },
  8506. addMp3Answer() {
  8507. if (this.answerQ == "") {
  8508. this.$message.error("请输入您想要回答的问题");
  8509. return;
  8510. }
  8511. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8512. this.taskCount
  8513. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8514. this.dialogVisibleMp3 = false;
  8515. },
  8516. addRateAnswer() {
  8517. var a = 1;
  8518. for (var i = 0; i < this.rateJson.length; i++) {
  8519. if (this.rateJson[i].value == "") {
  8520. a = 2;
  8521. break;
  8522. }
  8523. }
  8524. if (a == 2) {
  8525. this.$message.error("请把评价信息填写完整");
  8526. return;
  8527. }
  8528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8529. this.taskCount
  8530. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8531. this.dialogVisibleRate = false;
  8532. if (
  8533. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8534. .toolChoose[this.toolIndex].tool != 40
  8535. ) {
  8536. this.addTools(40, this.taskCount, this.toolIndex);
  8537. }
  8538. },
  8539. addSelectAnswer() {
  8540. if (this.selectJson.url == "") {
  8541. this.$message.error("请上传题目");
  8542. return;
  8543. }
  8544. if (!this.selectJson.select.length) {
  8545. this.$message.error("请添加选项");
  8546. return;
  8547. }
  8548. if (!this.selectJson.answer.length) {
  8549. this.$message.error("请设置答案");
  8550. return;
  8551. }
  8552. var a = 1;
  8553. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8554. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8555. a = 2;
  8556. }
  8557. }
  8558. if (a == 2) {
  8559. this.$message.error("请设置答案");
  8560. return;
  8561. }
  8562. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8563. this.taskCount
  8564. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8565. this.dialogVisibleSelect = false;
  8566. if (
  8567. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8568. .toolChoose[this.toolIndex].tool != 41
  8569. ) {
  8570. this.addTools(41, this.taskCount, this.toolIndex);
  8571. }
  8572. },
  8573. nextSelectSteps() {
  8574. if (this.selectJson.url == "") {
  8575. this.$message.error("请上传题目");
  8576. return;
  8577. }
  8578. if (!this.selectJson.select.length) {
  8579. this.$message.error("请添加选项");
  8580. return;
  8581. } else {
  8582. for (var z = 0; z < this.selectJson.select.length; z++) {
  8583. let checkC = this.selectJson.select[z];
  8584. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8585. let checkC2 = this.selectJson.select[z2];
  8586. if (checkC == checkC2) {
  8587. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8588. return;
  8589. }
  8590. }
  8591. }
  8592. }
  8593. var a = 1;
  8594. for (var i = 0; i < this.selectJson.select.length; i++) {
  8595. if (!this.selectJson.select[i]) {
  8596. a = 2;
  8597. }
  8598. }
  8599. if (a == 2) {
  8600. this.$message.error("添加的选项不能为空");
  8601. return;
  8602. }
  8603. this.selectSteps++;
  8604. },
  8605. selectCourseDetail() {
  8606. if (this.cid == "" || this.cid == undefined) {
  8607. console.log("这是新增课程");
  8608. this.selectAllType();
  8609. } else {
  8610. this.cidType = 1;
  8611. let params = {
  8612. cid: this.cid,
  8613. };
  8614. this.ajax
  8615. .get(this.$store.state.api + "select_course_detail", params)
  8616. .then((res) => {
  8617. this.loading = true;
  8618. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8619. for (var j = 0; j < this.unitJson.length; j++) {
  8620. for (
  8621. var k = 0;
  8622. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8623. k++
  8624. ) {
  8625. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8626. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8627. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8628. : [];
  8629. let _chapterData = [];
  8630. for (
  8631. var c = 0;
  8632. c <
  8633. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8634. .length;
  8635. c++
  8636. ) {
  8637. if (
  8638. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8639. ) {
  8640. _chapterData.push(
  8641. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8642. );
  8643. }
  8644. }
  8645. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8646. _chapterData;
  8647. }
  8648. }
  8649. this.$forceUpdate();
  8650. this.courseName = res.data[0][0].title;
  8651. this.courseText = res.data[0][0].brief;
  8652. this.evalua = res.data[0][0].evaId;
  8653. this.cover = JSON.parse(res.data[0][0].cover);
  8654. this.noneBtnImg = this.cover.length >= 1;
  8655. // this.checkboxList =
  8656. // res.data[0][0].course_student.length > 0
  8657. // ? JSON.parse(res.data[0][0].course_student)
  8658. // : [];
  8659. this.checkboxList2 = res.data[0][0].juri
  8660. ? res.data[0][0].juri.split(",")
  8661. : [];
  8662. this.inviteCode = [];
  8663. for (var i = 0; i < res.data[2].length; i++) {
  8664. this.inviteCode.push({
  8665. cid: res.data[2][i].classid,
  8666. ic: res.data[2][i].code,
  8667. });
  8668. }
  8669. this.checkboxList3 = res.data[0][0].course_teacher
  8670. ? res.data[0][0].course_teacher.split(",")
  8671. : [];
  8672. // this.isTeacherSee =
  8673. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8674. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8675. this.myWord = res.data[0][0].template;
  8676. this.templateC.id = "123";
  8677. this.courseUserid = res.data[0][0].userid;
  8678. // if(this.courseUserid == this.userid){
  8679. // this.InviteChange(this.checkboxList2)
  8680. // }
  8681. this.nbOrder = res.data[0][0].ordernumber;
  8682. this.courseTypeId = [];
  8683. for (var i = 0; i < res.data[1].length; i++) {
  8684. this.courseTypeId.push(res.data[1][i].typeid);
  8685. }
  8686. console.log(this.courseTypeId);
  8687. // if (this.timer) clearInterval(this.timer);
  8688. if (this.timer) clearTimeout(this.timer);
  8689. this.timer = null;
  8690. // this.timer = setInterval(() => {
  8691. // this.seleteCourseUpdate();
  8692. this.setMan();
  8693. this.selectAllType();
  8694. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8695. // }, 5000);
  8696. this.$forceUpdate();
  8697. setTimeout(() => {
  8698. this.checkEva(this.evalua);
  8699. }, 0);
  8700. })
  8701. .catch((err) => {
  8702. console.error(err);
  8703. });
  8704. }
  8705. },
  8706. seleteCourseUpdate() {
  8707. let params = {
  8708. cid: this.cid,
  8709. };
  8710. this.ajax
  8711. .get(this.$store.state.api + "select_course_detail", params)
  8712. .then((res) => {
  8713. // console.log(this.unitJson);
  8714. let unitJson = JSON.parse(res.data[0][0].chapters);
  8715. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8716. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8717. let _unitJson = [];
  8718. let _chapAarry = [];
  8719. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8720. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8721. let index = 1;
  8722. let chapindex;
  8723. if (_unitJson2.length > unitJson.length) {
  8724. for (let c = 0; c < _unitJson2.length; c++) {
  8725. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8726. }
  8727. for (let j = 0; j < unitJson.length; j++) {
  8728. let count = 0;
  8729. for (let k = 0; k < _unitJson2.length; k++) {
  8730. if (
  8731. unitJson[j].chapterInfo[0].chapterid ==
  8732. _unitJson2[k].chapterInfo[0].chapterid
  8733. ) {
  8734. count++;
  8735. _chapAarry.splice(
  8736. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8737. 1
  8738. );
  8739. _unitJson.push(unitJson[j]);
  8740. break;
  8741. }
  8742. }
  8743. // if(count === 0){
  8744. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8745. // }
  8746. }
  8747. for (let k = 0; k < _unitJson2.length; k++) {
  8748. if (_unitJson2[k].isUpdate == 1) {
  8749. _chapAarry.splice(
  8750. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8751. 1
  8752. );
  8753. _unitJson.push(_unitJson2[k]);
  8754. }
  8755. }
  8756. console.log(_chapAarry);
  8757. for (let d = 0; d < _unitJson2.length; d++) {
  8758. if (
  8759. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8760. ) {
  8761. if (_unitIndex == d) {
  8762. index = 2;
  8763. }
  8764. chapindex = d;
  8765. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8766. }
  8767. }
  8768. } else {
  8769. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8770. }
  8771. for (let i = 0; i < unitJson.length; i++) {
  8772. if (
  8773. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8774. _unitJson[i].chapterInfo[0].chapterid !=
  8775. unitJson[i].chapterInfo[0].chapterid
  8776. ) {
  8777. if (i == _unitJson.length - 1) {
  8778. // this.unitIndex++
  8779. _unitIndex2++;
  8780. }
  8781. _unitJson.splice(i, 0, unitJson[i]);
  8782. } else if (i > _unitJson.length - 1) {
  8783. _unitJson.push(unitJson[i]);
  8784. } else if (
  8785. _unitJson[i].chapterInfo[0].chapterid ==
  8786. unitJson[i].chapterInfo[0].chapterid
  8787. ) {
  8788. _unitJson[i] = unitJson[i];
  8789. }
  8790. // if (i == _unitIndex) {
  8791. // continue;
  8792. // } else
  8793. }
  8794. if (_chapAarry.length && index != 2) {
  8795. if (chapindex < _unitIndex) {
  8796. this.isDelete = 2;
  8797. // this.unitIndex--;
  8798. _unitIndex2--;
  8799. } else if (
  8800. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8801. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8802. ) {
  8803. this.isDelete = 2;
  8804. for (let n = 0; n < _unitJson.length; n++) {
  8805. if (
  8806. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8807. _unitJson[n].chapterInfo[0].chapterid
  8808. ) {
  8809. // this.unitIndex = n;
  8810. _unitIndex2 = n;
  8811. _unitJson[n] = _unitJson2[_unitIndex];
  8812. break;
  8813. }
  8814. }
  8815. }
  8816. } else if (index != 2) {
  8817. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8818. _unitJson2[_unitIndex];
  8819. for (
  8820. var ci = 0;
  8821. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8822. ci++
  8823. ) {
  8824. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8825. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8826. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8827. .toolChoose
  8828. : [];
  8829. let _chapterData = [];
  8830. for (
  8831. var c = 0;
  8832. c <
  8833. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8834. .length;
  8835. c++
  8836. ) {
  8837. if (
  8838. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8839. .chapterData[c]
  8840. ) {
  8841. _chapterData.push(
  8842. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8843. .chapterData[c]
  8844. );
  8845. }
  8846. }
  8847. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8848. _chapterData;
  8849. }
  8850. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8851. }
  8852. if (index == 1) {
  8853. this.unitJson = _unitJson;
  8854. this.$forceUpdate();
  8855. setTimeout(() => {
  8856. if (this.unitIndex != _unitIndex2) {
  8857. this.isDelete = 2;
  8858. this.unitIndex = _unitIndex2;
  8859. }
  8860. }, 0);
  8861. this.timer = setTimeout(() => {
  8862. this.seleteCourseUpdate();
  8863. }, 1000);
  8864. } else if (index == 2) {
  8865. let _this = this;
  8866. _this
  8867. .$confirm(
  8868. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8869. "提示",
  8870. {
  8871. confirmButtonText: "需要",
  8872. cancelButtonText: "取消",
  8873. type: "warning",
  8874. }
  8875. )
  8876. .then(() => {
  8877. if (_this.time()) {
  8878. _this.restoreWork(
  8879. _chapAarry[0],
  8880. _unitJson,
  8881. chapindex,
  8882. _unitJson2,
  8883. _unitIndex2
  8884. );
  8885. }
  8886. })
  8887. .catch(() => {
  8888. _this.unitJson = _unitJson;
  8889. _this.$forceUpdate();
  8890. setTimeout(() => {
  8891. if (this.unitIndex != _unitIndex2) {
  8892. this.isDelete = 2;
  8893. this.unitIndex = _unitIndex2;
  8894. }
  8895. }, 0);
  8896. _this.timer = setTimeout(() => {
  8897. _this.seleteCourseUpdate();
  8898. }, 1000);
  8899. });
  8900. }
  8901. })
  8902. .catch((err) => {
  8903. console.error(err);
  8904. });
  8905. },
  8906. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8907. let params = [
  8908. {
  8909. cid: this.cid,
  8910. chapters: JSON.stringify(this.unitJson),
  8911. uid: this.userid,
  8912. chapid: chapid,
  8913. },
  8914. ];
  8915. this.ajax
  8916. .post(this.$store.state.api + "restoreWork", params)
  8917. .then((res) => {
  8918. this.$message({
  8919. message: "恢复成功",
  8920. type: "success",
  8921. });
  8922. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8923. this.unitJson = unitJson;
  8924. this.$forceUpdate();
  8925. setTimeout(() => {
  8926. if (this.unitIndex != unitIndex2) {
  8927. this.isDelete = 2;
  8928. this.unitIndex = unitIndex2;
  8929. }
  8930. }, 0);
  8931. this.timer = setTimeout(() => {
  8932. this.seleteCourseUpdate();
  8933. }, 1000);
  8934. })
  8935. .catch((err) => {
  8936. this.$message.error("网络不佳");
  8937. console.error(err);
  8938. });
  8939. },
  8940. getTypeName() {
  8941. console.log(this.courseTypeId);
  8942. this.$forceUpdate();
  8943. },
  8944. selectAllType() {
  8945. let params = {
  8946. org: this.org && this.org != "" ? this.org : "",
  8947. oid: this.oid && this.oid != "" ? this.oid : "",
  8948. };
  8949. this.ajax
  8950. .get(this.$store.state.api + "selectAllType", params)
  8951. .then((res) => {
  8952. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8953. res.data[0] = [...res.data[0], ...res.data[4]]
  8954. }
  8955. this.CourseType = res.data;
  8956. this.CourseType2 = [
  8957. { name: "智见课程", id: [] },
  8958. { name: "智行课程", id: [] },
  8959. { name: "智创课程", id: [] },
  8960. ];
  8961. for (var cti = 0; cti < res.data[0].length; cti++) {
  8962. if (
  8963. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  8964. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  8965. ) {
  8966. this.CourseType2[0].id.push(res.data[0][cti].id);
  8967. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  8968. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8969. this.CourseType2[1].id.push(res.data[0][cti].id);
  8970. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8971. this.CourseType2[2].id.push(res.data[0][cti].id);
  8972. }
  8973. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  8974. res.data[0][cti].name = "年级";
  8975. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8976. res.data[0][cti].name = "学科";
  8977. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8978. res.data[0][cti].name = "主题";
  8979. }
  8980. }
  8981. let _courseTypeId = [];
  8982. for (var i = 0; i < res.data[0].length; i++) {
  8983. if (!this.cid) {
  8984. this.courseTypeId[res.data[0][i].id] = [];
  8985. }
  8986. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8987. // }
  8988. this.CourseTypeJson[res.data[0][i].id] = [];
  8989. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8990. if (res.data[0][i].name == "栏目") {
  8991. this.CourseType[0][i].name = "主题";
  8992. }
  8993. }
  8994. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8995. for (var j = 0; j < res.data[1].length; j++) {
  8996. if (
  8997. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8998. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8999. ) {
  9000. _courseTypeId.push(res.data[1][j].id);
  9001. }
  9002. if (res.data[0][i].id == res.data[1][j].pid) {
  9003. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9004. }
  9005. }
  9006. } else {
  9007. if (res.data[2].length > 0) {
  9008. for (var j = 0; j < res.data[2].length; j++) {
  9009. if (
  9010. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  9011. _courseTypeId.indexOf(res.data[2][j].id) == -1
  9012. ) {
  9013. _courseTypeId.push(res.data[2][j].id);
  9014. }
  9015. if (res.data[0][i].id == res.data[2][j].pid) {
  9016. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  9017. }
  9018. }
  9019. }
  9020. if (res.data[3].length > 0) {
  9021. for (var j = 0; j < res.data[3].length; j++) {
  9022. if (
  9023. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  9024. _courseTypeId.indexOf(res.data[3][j].id) == -1
  9025. ) {
  9026. _courseTypeId.push(res.data[3][j].id);
  9027. }
  9028. if (res.data[0][i].id == res.data[3][j].pid) {
  9029. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  9030. }
  9031. }
  9032. }
  9033. }
  9034. }
  9035. this.courseTypeId = _courseTypeId;
  9036. })
  9037. .catch((err) => {
  9038. console.error(err);
  9039. });
  9040. },
  9041. selectType() {
  9042. this.ajax
  9043. .get(this.$store.state.api + "selectType")
  9044. .then((res) => {
  9045. this.CourseType = res.data;
  9046. for (var i = 0; i < res.data[0].length; i++) {
  9047. if (!this.cid) {
  9048. this.courseTypeId[res.data[0][i].id] = "";
  9049. }
  9050. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9051. if (res.data[0][i].name == "栏目") {
  9052. this.CourseType[0][i].name = "主题";
  9053. }
  9054. }
  9055. for (var j = 0; j < res.data[1].length; j++) {
  9056. if (res.data[0][i].id == res.data[1][j].pid) {
  9057. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9058. this.CourseTypeJson[res.data[0][i].id] = [];
  9059. }
  9060. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9061. }
  9062. }
  9063. }
  9064. this.selectTypeByOid();
  9065. this.selectTypeByOrg();
  9066. })
  9067. .catch((err) => {
  9068. console.error(err);
  9069. });
  9070. },
  9071. selectTypeByOid() {
  9072. let params = {
  9073. oid: this.oid,
  9074. };
  9075. this.ajax
  9076. .get(this.$store.state.api + "selectTypeByOid", params)
  9077. .then((res) => {
  9078. for (var i = 0; i < res.data[0].length; i++) {
  9079. for (var j = 0; j < res.data[1].length; j++) {
  9080. if (res.data[0][i].id == res.data[1][j].pid) {
  9081. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9082. this.CourseTypeJson[res.data[0][i].id] = [];
  9083. }
  9084. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9085. }
  9086. }
  9087. }
  9088. })
  9089. .catch((err) => {
  9090. console.error(err);
  9091. });
  9092. },
  9093. selectTypeByOrg() {
  9094. let params = {
  9095. oid: this.org,
  9096. };
  9097. this.ajax
  9098. .get(this.$store.state.api + "selectTypeByOrg", params)
  9099. .then((res) => {
  9100. for (var i = 0; i < res.data[0].length; i++) {
  9101. for (var j = 0; j < res.data[1].length; j++) {
  9102. if (res.data[0][i].id == res.data[1][j].pid) {
  9103. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9104. this.CourseTypeJson[res.data[0][i].id] = [];
  9105. }
  9106. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9107. }
  9108. }
  9109. }
  9110. this.$forceUpdate();
  9111. })
  9112. .catch((err) => {
  9113. console.error(err);
  9114. });
  9115. },
  9116. OtherMb(type) {
  9117. this.typeMode = type;
  9118. setTimeout(() => {
  9119. this.checkEva(this.checkId);
  9120. }, 0);
  9121. },
  9122. openMember() {
  9123. this.searchTN = "";
  9124. this.getTeacher();
  9125. this.dialogVisibleMember = true;
  9126. },
  9127. checkEva(id, type) {
  9128. this.dialogVisiblemb = false;
  9129. this.selectEva();
  9130. if (this.evalua != id && type == 2) {
  9131. this.$message.success("导入成功");
  9132. }
  9133. this.evalua = id;
  9134. this.checkId = id;
  9135. if (this.evalua != "") {
  9136. for (var i = 0; i < this.evaJuri.length; i++) {
  9137. if (this.evalua == this.evaJuri[i].id) {
  9138. this.eTitle = this.evaJuri[i].title;
  9139. this.eJson = JSON.parse(this.evaJuri[i].content);
  9140. }
  9141. }
  9142. this.data.data = [];
  9143. this.$forceUpdate();
  9144. setTimeout(() => {
  9145. this.setMindData();
  9146. }, 500);
  9147. }
  9148. },
  9149. deleteEva() {
  9150. let _this = this;
  9151. if (_this.evalua == "") {
  9152. this.$message.warning("内容已经清空了,请勿重复清空");
  9153. return;
  9154. }
  9155. _this
  9156. .$confirm("确定删除此目标吗?", "提示", {
  9157. confirmButtonText: "确定",
  9158. cancelButtonText: "取消",
  9159. type: "warning",
  9160. })
  9161. .then(() => {
  9162. _this.evalua = "";
  9163. _this.checkId = "";
  9164. _this.eTitle = "";
  9165. let _unitJson = _this.unitJson;
  9166. for (var i = 0; i < _unitJson.length; i++) {
  9167. let _task = _unitJson[i].chapterInfo[0].taskJson;
  9168. for (var j = 0; j < _task.length; j++) {
  9169. let _eList = _task[j].eList;
  9170. for (var k = 0; k < _eList.length; k++) {
  9171. delete _eList[k].target;
  9172. }
  9173. }
  9174. }
  9175. _this.$forceUpdate();
  9176. if (_this.cid) {
  9177. _this.updateWork();
  9178. }
  9179. })
  9180. .catch(() => {
  9181. return;
  9182. });
  9183. },
  9184. selectEva() {
  9185. let params = {
  9186. oid: this.oid,
  9187. };
  9188. this.ajax
  9189. .get(this.$store.state.api + "selectAllEvaluation", params)
  9190. .then((res) => {
  9191. this.evaJuri = res.data[0];
  9192. })
  9193. .catch((err) => {
  9194. console.error(err);
  9195. });
  9196. },
  9197. setMindData() {
  9198. let targetArray = [];
  9199. this.data.data = [];
  9200. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9201. let _eJson = Object.keys(this.eJson);
  9202. let _e = this.eJson;
  9203. for (let i = 0; i < _eJson.length; i++) {
  9204. let element = _e[_eJson[i]];
  9205. this.data.data.push({
  9206. id: element.id,
  9207. parentid: "root",
  9208. topic: element.name,
  9209. });
  9210. // targetArray.push({
  9211. // id: element.id,
  9212. // parentid: "root",
  9213. // name: element.name,
  9214. // });
  9215. targetArray.push({
  9216. value: element.name,
  9217. label: element.name,
  9218. children: [],
  9219. });
  9220. let _eJsonc = Object.keys(element.child);
  9221. let _e2 = element.child;
  9222. for (let j = 0; j < _eJsonc.length; j++) {
  9223. let _ec = _e2[_eJsonc[j]];
  9224. this.data.data.push({
  9225. id: _ec.id,
  9226. parentid: element.id,
  9227. topic: _ec.name,
  9228. });
  9229. // targetArray.push({
  9230. // id: _ec.id,
  9231. // parentid: element.id,
  9232. // name: _ec.name,
  9233. // });
  9234. targetArray[i].children.push({
  9235. value: _ec.name,
  9236. label: _ec.name,
  9237. children: [],
  9238. });
  9239. let _eJsonz = Object.keys(_ec.child);
  9240. let _e3 = _ec.child;
  9241. for (let z = 0; z < _eJsonz.length; z++) {
  9242. let _ez = _e3[_eJsonz[z]];
  9243. this.data.data.push({
  9244. id: _ez.id,
  9245. parentid: _ec.id,
  9246. topic: _ez.name,
  9247. });
  9248. // targetArray.push({
  9249. // id: _ez.id,
  9250. // parentid: _ec.id,
  9251. // name: _ez.name,
  9252. // });
  9253. targetArray[i].children[j].children.push({
  9254. value: _ez.name,
  9255. label: _ez.name,
  9256. });
  9257. }
  9258. }
  9259. }
  9260. this.targetArray = targetArray;
  9261. this.$forceUpdate();
  9262. },
  9263. /*添加评价 */
  9264. addEList(index, tIndex) {
  9265. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9266. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9267. value: "",
  9268. detail: "",
  9269. score: 5,
  9270. })
  9271. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9272. { value: "", detail: "", score: 5 },
  9273. ]);
  9274. this.$forceUpdate();
  9275. },
  9276. forceUpdate() {
  9277. this.$forceUpdate();
  9278. },
  9279. deletEList(index, tIndex, eIndex) {
  9280. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9281. eIndex,
  9282. 1
  9283. );
  9284. this.$forceUpdate();
  9285. },
  9286. getChoosePic(t) {
  9287. this.chooseType = t;
  9288. this.getAllBanner();
  9289. },
  9290. getAllBanner() {
  9291. this.sysPicVisible = true;
  9292. let params = {
  9293. t: this.chooseType,
  9294. };
  9295. this.ajax
  9296. .get(this.$store.state.api + "selectAllBanner", params)
  9297. .then((res) => {
  9298. this.sysPic = res.data[0];
  9299. })
  9300. .catch((err) => {
  9301. console.error(err);
  9302. });
  9303. },
  9304. // getClass() {
  9305. // let params = {
  9306. // oid: this.oid,
  9307. // };
  9308. // this.ajax
  9309. // .get(this.$store.state.api + "selectClassBySchool", params)
  9310. // .then((res) => {
  9311. // this.classJuri = res.data[0];
  9312. // })
  9313. // .catch((err) => {
  9314. // console.error(err);
  9315. // });
  9316. // },
  9317. deleteSysPic() {
  9318. this.cover = [];
  9319. this.isSysPic = false;
  9320. this.isSysPic2 = false;
  9321. },
  9322. deleteSelectPic() {
  9323. this.selectJson.url = "";
  9324. },
  9325. setEListStar() {
  9326. this.$forceUpdate();
  9327. },
  9328. deletRateList(i) {
  9329. this.rateJson.splice(i, 1);
  9330. },
  9331. addRateList() {
  9332. this.rateJson.push({ detail: "", score: 5, value: "" });
  9333. },
  9334. addSt() {
  9335. this.sentenceList.push({
  9336. sentenceTitle: "",
  9337. addSentence: [],
  9338. rightAnswer: [],
  9339. });
  9340. },
  9341. addSen(i) {
  9342. if (!this.sentenceList[i].sentenceTitle) {
  9343. this.$message.error("请填写卡片内容!");
  9344. return;
  9345. }
  9346. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9347. this.$message.error("卡片内容字数不能超过10位");
  9348. return;
  9349. }
  9350. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9351. this.$message.error("不能添加重复的卡片内容!");
  9352. return;
  9353. }
  9354. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9355. // this.isPushTitleList.push(this.sentenceTitle);
  9356. this.sentenceList[i].sentenceTitle = "";
  9357. },
  9358. setRightAnswer(s, i, j) {
  9359. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9360. this.sentenceList[i].rightAnswer.push(s);
  9361. }
  9362. },
  9363. returnCard(r, i, j) {
  9364. this.sentenceList[i].rightAnswer.splice(j, 1);
  9365. },
  9366. addSentenceTool() {
  9367. for (var i = 0; i < this.sentenceList.length; i++) {
  9368. if (this.sentenceList[i].rightAnswer.length == 0) {
  9369. this.$message.error(`请将题目${i + 1}设置完整。`);
  9370. return;
  9371. }
  9372. if (
  9373. this.sentenceList[i].addSentence.length !=
  9374. this.sentenceList[i].rightAnswer.length
  9375. ) {
  9376. this.$message.error(`请将题目${i + 1}设置完整。`);
  9377. return;
  9378. }
  9379. }
  9380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9381. this.taskCount
  9382. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9383. this.sentenceList = [
  9384. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9385. ];
  9386. this.dialogVisibleSentence = false;
  9387. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9388. // itemTaskIndex
  9389. // ].toolChoose[toolIndex].tool = [];
  9390. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9391. // itemTaskIndex
  9392. // ].toolChoose[toolIndex].tool.push(i);
  9393. if (
  9394. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9395. .toolChoose[this.toolIndex].tool != 47
  9396. ) {
  9397. this.addTools(47, this.taskCount, this.toolIndex);
  9398. }
  9399. },
  9400. addTableJson() {
  9401. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9402. // this.$message.error("请将信息填写完整!");
  9403. // return;
  9404. // }
  9405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9406. this.taskCount
  9407. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9408. // this.tableJson = [{ text: "" }];
  9409. // this.dialogVisibleTable = false;
  9410. this.$message.success("上传成功");
  9411. if (
  9412. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9413. .toolChoose[this.toolIndex].tool != 48
  9414. ) {
  9415. this.addTools(48, this.taskCount, this.toolIndex);
  9416. }
  9417. },
  9418. addWordJson() {
  9419. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9420. this.taskCount
  9421. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9422. // this.wordJson = [{ text: "" }];
  9423. // this.dialogVisibleWord = false;
  9424. this.$message.success("上传成功");
  9425. if (
  9426. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9427. .toolChoose[this.toolIndex].tool != 52
  9428. ) {
  9429. this.addTools(52, this.taskCount, this.toolIndex);
  9430. }
  9431. },
  9432. addMoreUpload() {
  9433. if (this.uploadJson.length == 0) {
  9434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9435. this.taskCount
  9436. ].toolChoose[this.toolIndex].uploadJson = [];
  9437. } else {
  9438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9439. this.taskCount
  9440. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9441. }
  9442. this.uploadJson = [];
  9443. this.dialogVisibleMoreUpload = false;
  9444. if (
  9445. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9446. .toolChoose[this.toolIndex].tool != 50
  9447. ) {
  9448. this.addTools(50, this.taskCount, this.toolIndex);
  9449. }
  9450. },
  9451. addPreTime() {
  9452. if (this.preTime == 0) {
  9453. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9454. this.taskCount
  9455. ].toolChoose[this.toolIndex].preTime = 0;
  9456. } else {
  9457. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9458. this.taskCount
  9459. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9460. }
  9461. this.preTime = 0;
  9462. this.dialogVisiblePreTime = false;
  9463. if (
  9464. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9465. .toolChoose[this.toolIndex].tool != 10
  9466. ) {
  9467. this.addTools(10, this.taskCount, this.toolIndex);
  9468. }
  9469. },
  9470. goToTask(i) {
  9471. this.toolIndexType = ''
  9472. if (this.isClickColor == (i + 1)) {
  9473. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9474. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9475. // } else {
  9476. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9477. // }
  9478. this.$forceUpdate();
  9479. return;
  9480. }
  9481. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9482. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9483. // } else {
  9484. document.querySelectorAll(".rightBox")[0].scrollTop =
  9485. document.querySelectorAll(".taskBorder")[i + 1].offsetTop +
  9486. document.querySelectorAll(".taskBorder")[i + 1].parentElement.parentElement.offsetTop;
  9487. this.isClickColor = i + 1;
  9488. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9489. // }
  9490. this.$forceUpdate();
  9491. },
  9492. taskOpen(i){
  9493. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9495. } else {
  9496. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9497. }
  9498. this.$forceUpdate();
  9499. },
  9500. taskMove(type, index) {
  9501. // this
  9502. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  9503. // confirmButtonText: "确定",
  9504. // cancelButtonText: "取消",
  9505. // type: "warning",
  9506. // })
  9507. // .then(() => {
  9508. if (type == 1) {
  9509. if (index > 0) {
  9510. let a = JSON.parse(
  9511. JSON.stringify(
  9512. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  9513. )
  9514. );
  9515. let b = JSON.parse(
  9516. JSON.stringify(
  9517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  9518. )
  9519. );
  9520. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9521. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9522. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9523. if (index - 1 == 0) {
  9524. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9525. index - 1
  9526. ].chapterData = a.chapterData;
  9527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9528. index
  9529. ].chapterData = b.chapterData;
  9530. }
  9531. }
  9532. } else {
  9533. if (
  9534. index <
  9535. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9536. ) {
  9537. let a = JSON.parse(
  9538. JSON.stringify(
  9539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  9540. )
  9541. );
  9542. let b = JSON.parse(
  9543. JSON.stringify(
  9544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  9545. )
  9546. );
  9547. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9548. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9550. if (index == 0) {
  9551. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9552. index + 1
  9553. ].chapterData = a.chapterData;
  9554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9555. index
  9556. ].chapterData = b.chapterData;
  9557. }
  9558. }
  9559. }
  9560. this.$forceUpdate();
  9561. // })
  9562. // .catch(() => {
  9563. // return;
  9564. // })
  9565. },
  9566. addGroup(i) {
  9567. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9568. this.groupJson.group.push({
  9569. name: "第" + (this.groupJson.group.length + 1) + "组",
  9570. });
  9571. },
  9572. deleteGroup(i) {
  9573. this.groupJson.group.splice(i, 1);
  9574. },
  9575. numberPan() {
  9576. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9577. this.$message.error('请输入2-10的数字')
  9578. this.groupJson.number = ''
  9579. }
  9580. },
  9581. addGroupJson() {
  9582. for (var i = 0; i < this.groupJson.group.length; i++) {
  9583. if (!this.groupJson.group[i].name) {
  9584. this.$message.error("请将信息填写完整!");
  9585. return;
  9586. }
  9587. }
  9588. if (!this.groupJson.number) {
  9589. this.$message.error("请将信息填写完整!");
  9590. return;
  9591. }
  9592. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9593. this.taskCount
  9594. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9595. JSON.stringify(this.groupJson)
  9596. );
  9597. this.dialogVisibleGroup = false;
  9598. this.groupJson = {};
  9599. if (
  9600. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9601. .toolChoose[this.toolIndex].tool != 49
  9602. ) {
  9603. this.addTools(49, this.taskCount, this.toolIndex);
  9604. }
  9605. },
  9606. updateTime(preTime) {
  9607. this.preTime = preTime;
  9608. },
  9609. InviteChange(val) {
  9610. console.log(val);
  9611. let _check = []
  9612. let _check2 = []
  9613. for (var i = 0; i < this.grade2.length; i++) {
  9614. var gid = this.grade2[i].id
  9615. _check.push(gid)
  9616. }
  9617. for (var i = 0; i < this.checkboxList2.length; i++) {
  9618. var _id = this.checkboxList2[i]
  9619. if (_check.indexOf(_id) !== -1) {
  9620. _check2.push(_id)
  9621. }
  9622. }
  9623. this.checkAll = _check2.length === _check.length;
  9624. return;
  9625. let array = JSON.parse(JSON.stringify(val));
  9626. this.inviteCode = this.inviteCode.filter((el) => {
  9627. if (val.indexOf(el.cid) != -1) {
  9628. array.splice(array.indexOf(el.cid), 1);
  9629. return el;
  9630. }
  9631. });
  9632. for (var i = 0; i < array.length; i++) {
  9633. this.getInviteCode(array[i]);
  9634. }
  9635. },
  9636. handleCheckAllChange(val) {
  9637. if (val) {
  9638. for (var i = 0; i < this.grade2.length; i++) {
  9639. var gid = this.grade2[i].id
  9640. if (this.checkboxList2.indexOf(gid) === -1) {
  9641. this.checkboxList2.push(gid)
  9642. }
  9643. }
  9644. } else {
  9645. let _check = []
  9646. let _check2 = []
  9647. for (var i = 0; i < this.grade2.length; i++) {
  9648. var gid = this.grade2[i].id
  9649. _check.push(gid)
  9650. }
  9651. for (var i = 0; i < this.checkboxList2.length; i++) {
  9652. var _id = this.checkboxList2[i]
  9653. if (_check.indexOf(_id) === -1) {
  9654. _check2.push(_id)
  9655. }
  9656. }
  9657. this.checkboxList2 = _check2
  9658. }
  9659. this.isIndeterminate = false;
  9660. },
  9661. async getInviteCode(cid) {
  9662. let code = this.randomNumber();
  9663. let params = {
  9664. code: code,
  9665. oid: this.oid,
  9666. };
  9667. let type = 1;
  9668. for (var i = 0; i < this.inviteCode.length; i++) {
  9669. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9670. type = 2;
  9671. }
  9672. }
  9673. if (type == 2) {
  9674. this.getInviteCode(cid);
  9675. return;
  9676. }
  9677. const res = await this.ajax.get(
  9678. this.$store.state.api + "selectInviteCode2",
  9679. params
  9680. );
  9681. if (
  9682. res.data.length &&
  9683. res.data[0].length &&
  9684. res.data[0][0].courseId != this.cid
  9685. ) {
  9686. this.getInviteCode(cid);
  9687. return;
  9688. }
  9689. let array = [];
  9690. for (var i = 0; i < this.inviteCode.length; i++) {
  9691. array.push(this.inviteCode[i].cid);
  9692. }
  9693. if (array.indexOf(cid) != -1) {
  9694. this.inviteCode[array.indexOf(cid)].ic = code;
  9695. } else {
  9696. this.inviteCode.push({ cid: cid, ic: code });
  9697. }
  9698. },
  9699. OpenInviteD(cid) {
  9700. let array = [];
  9701. this.icode = "";
  9702. for (var i = 0; i < this.inviteCode.length; i++) {
  9703. array.push(this.inviteCode[i].cid);
  9704. }
  9705. if (array.indexOf(cid) != -1) {
  9706. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9707. }
  9708. this.inviteId = cid;
  9709. this.dialogVisibleInvite = true;
  9710. },
  9711. addInvite() {
  9712. let reg = /^[A-Za-z0-9]{4,}$/;
  9713. if (!reg.test(this.icode)) {
  9714. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9715. return;
  9716. }
  9717. let type = 1;
  9718. for (var i = 0; i < this.inviteCode.length; i++) {
  9719. if (
  9720. this.inviteCode[i].cid != this.inviteId &&
  9721. this.icode == this.inviteCode[i].ic
  9722. ) {
  9723. type = 2;
  9724. }
  9725. }
  9726. if (type == 2) {
  9727. this.$message.error("已有此随机码,不能重复");
  9728. return;
  9729. }
  9730. let params = {
  9731. code: this.icode,
  9732. oid: this.oid,
  9733. };
  9734. this.ajax
  9735. .get(this.$store.state.api + "selectInviteCode", params)
  9736. .then((res) => {
  9737. if (
  9738. res.data.length &&
  9739. res.data[0].length &&
  9740. res.data[0][0].courseId != this.cid
  9741. ) {
  9742. this.$message.error("已有此随机码,不能重复");
  9743. return;
  9744. }
  9745. let array = [];
  9746. for (var i = 0; i < this.inviteCode.length; i++) {
  9747. array.push(this.inviteCode[i].cid);
  9748. }
  9749. if (array.indexOf(this.inviteId) != -1) {
  9750. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9751. } else {
  9752. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9753. }
  9754. this.icode = "";
  9755. this.dialogVisibleInvite = false;
  9756. })
  9757. .catch((err) => {
  9758. console.error(err);
  9759. });
  9760. },
  9761. randomNumber() {
  9762. // 随机生成两位数
  9763. // let num = Math.floor(Math.random() * 900) + 100;
  9764. // 生成 0 到 99 之间的随机整数
  9765. const randomNumber = Math.floor(Math.random() * 100);
  9766. // 如果随机数小于 10,补上前导零
  9767. const num =
  9768. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9769. // 随机生成两个大写字母
  9770. let letters = "";
  9771. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9772. for (let i = 0; i < 3; i++) {
  9773. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9774. }
  9775. // 随机生成两位数字和字母的组合
  9776. let mix = "";
  9777. let chars =
  9778. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9779. for (let i = 0; i < 3; i++) {
  9780. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9781. mix += char;
  9782. }
  9783. // 随机选择一种类型
  9784. let type = Math.floor(Math.random() * 3);
  9785. return num;
  9786. // 根据类型输出结果
  9787. switch (type) {
  9788. case 0:
  9789. console.log(num); // 输出两位数
  9790. return num;
  9791. case 1:
  9792. console.log(letters); // 输出两个大写字母
  9793. return letters;
  9794. case 2:
  9795. console.log(mix); // 输出两位数字和字母的组合
  9796. return mix;
  9797. }
  9798. },
  9799. getPaste() {
  9800. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9801. if (!iframe) {
  9802. return;
  9803. }
  9804. let copyData = iframe.contentWindow.copyData;
  9805. // if (copyData && copyData.stageData && copyData.stageData.length) {
  9806. // this.isPasteStage = true
  9807. // }
  9808. if (copyData && copyData.selectData.length) {
  9809. this.isPasteChoice = true
  9810. }
  9811. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9812. this.isPasteTask = true
  9813. }
  9814. },
  9815. searchImage() {
  9816. var _this = this;
  9817. _this.imageList = []
  9818. if (!_this.searchImageValue) {
  9819. _this.sysPicVisible2 = true
  9820. return
  9821. }
  9822. _this.imageloading = true
  9823. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9824. page: _this.ppage,
  9825. pagesize: 9,
  9826. query: _this.searchImageValue
  9827. }).then(function (response) {
  9828. // console.log(response.data.data);
  9829. var data = response.data.FunctionResponse.result;
  9830. for (var i = 0; i < data.length; i++) {
  9831. _this.imageList.push({ url: data[i].thumbnail })
  9832. }
  9833. _this.imageloading = false
  9834. }).catch(function (error) {
  9835. console.log(error);
  9836. });
  9837. _this.sysPicVisible2 = true
  9838. },
  9839. changePicture() {
  9840. this.ppage++
  9841. this.searchImage()
  9842. },
  9843. resetImage() {
  9844. this.ppage = 1
  9845. this.searchImage()
  9846. },
  9847. jumpGj(i, j) {
  9848. if ((i + 1) != this.isClickColor) {
  9849. this.isClickColor = (i + 1)
  9850. }
  9851. var a = document.scrollingElement;
  9852. this.toolIndexType = `gj${i}${j}`
  9853. let target = document.querySelector(`#gj${i}${j}`);
  9854. if (target) {
  9855. target.scrollIntoView(true);
  9856. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  9857. // setTimeout(() => {
  9858. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  9859. // }, 0);
  9860. }
  9861. },
  9862. dragStart(val, i, j) {
  9863. this.taskCount = j
  9864. this.oldIndex = i;
  9865. this.oldData = val;
  9866. },
  9867. dragOver(i, j) {
  9868. this.typeIndex = "chapter-" + j + '-' + i
  9869. this.newIndex = i;
  9870. },
  9871. dragEnd() {
  9872. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9873. // 删除老的节点
  9874. newItems.splice(this.oldIndex, 1);
  9875. // 在列表中目标位置增加新的节点
  9876. newItems.splice(this.newIndex, 0, this.oldData);
  9877. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9878. this.newIndex = "";
  9879. this.typeIndex = "";
  9880. this.isdrag = "";
  9881. this.$forceUpdate()
  9882. },
  9883. dragTaskStart(val, i) {
  9884. this.oldIndex = i;
  9885. this.oldData = val;
  9886. },
  9887. dragTaskOver(i) {
  9888. this.typeIndex = "task-" + i
  9889. this.newIndex = i;
  9890. },
  9891. async dragTaskEnd() {
  9892. if (this.newIndex == this.oldIndex) {
  9893. this.typeIndex = "";
  9894. this.newIndex = "";
  9895. this.isdrag = "";
  9896. return;
  9897. }
  9898. let count1 = await this.getWorksCount(2, 0, this.newIndex, 0)
  9899. let count2 = await this.getWorksCount(2, 0, this.oldIndex, 0)
  9900. if(count1 > 0 || count2 > 0){
  9901. this.$confirm(
  9902. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9903. "提示",
  9904. {
  9905. confirmButtonText: "确定",
  9906. cancelButtonText: "取消",
  9907. type: "warning",
  9908. }
  9909. )
  9910. .then(() => {
  9911. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9912. let chapterData = []
  9913. if (this.oldIndex == 0) {
  9914. chapterData = newItems[this.oldIndex].chapterData
  9915. newItems[this.oldIndex].chapterData = []
  9916. }else if(this.newIndex == 0){
  9917. chapterData = newItems[this.newIndex].chapterData
  9918. newItems[this.oldIndex].chapterData = []
  9919. }
  9920. // 删除老的节点
  9921. newItems.splice(this.oldIndex, 1);
  9922. // 在列表中目标位置增加新的节点
  9923. newItems.splice(this.newIndex, 0, this.oldData);
  9924. if (this.oldIndex == 0 || this.newIndex == 0) {
  9925. newItems[0].chapterData = chapterData
  9926. }
  9927. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  9928. this.typeIndex = "";
  9929. this.newIndex = "";
  9930. this.isdrag = "";
  9931. this.$forceUpdate()
  9932. })
  9933. .catch(() => {
  9934. this.typeIndex = "";
  9935. this.newIndex = "";
  9936. this.isdrag = "";
  9937. return;
  9938. });
  9939. }else{
  9940. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9941. let chapterData = []
  9942. if (this.oldIndex == 0) {
  9943. chapterData = newItems[this.oldIndex].chapterData
  9944. newItems[this.oldIndex].chapterData = []
  9945. }else if(this.newIndex == 0){
  9946. chapterData = newItems[this.newIndex].chapterData
  9947. newItems[this.oldIndex].chapterData = []
  9948. }
  9949. // 删除老的节点
  9950. newItems.splice(this.oldIndex, 1);
  9951. // 在列表中目标位置增加新的节点
  9952. newItems.splice(this.newIndex, 0, this.oldData);
  9953. if (this.oldIndex == 0 || this.newIndex == 0) {
  9954. newItems[0].chapterData = chapterData
  9955. }
  9956. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  9957. this.typeIndex = "";
  9958. this.newIndex = "";
  9959. this.$forceUpdate()
  9960. }
  9961. },
  9962. getWorksCount(type, stage, task, tool){
  9963. return new Promise((resolve, reject) => {
  9964. let params = [
  9965. {
  9966. cid: this.cid,
  9967. stage: stage,
  9968. task: task,
  9969. tool: tool,
  9970. type: type
  9971. },
  9972. ];
  9973. this.ajax
  9974. .post(this.$store.state.api + "getCourseWorkCount", params)
  9975. .then((res) => {
  9976. let count = res.data[0][0].count
  9977. resolve(count)
  9978. })
  9979. .catch((err) => {
  9980. resolve(0)
  9981. this.$message.error("网络不佳");
  9982. console.error(err);
  9983. });
  9984. });
  9985. }
  9986. },
  9987. beforeDestroy() {
  9988. clearTimeout(this.timer);
  9989. this.timer = null;
  9990. clearInterval(this.timer2);
  9991. this.timer2 = null;
  9992. clearInterval(this.pasteTimer);
  9993. this.pasteTimer = null;
  9994. },
  9995. beforeRouteLeave(to, from, next) {
  9996. clearTimeout(this.timer);
  9997. this.timer = null;
  9998. clearInterval(this.timer2);
  9999. this.timer2 = null;
  10000. clearInterval(this.pasteTimer);
  10001. this.pasteTimer = null;
  10002. next();
  10003. },
  10004. created() {
  10005. this.getStudent();
  10006. this.getTeacher();
  10007. this.getClass();
  10008. this.selectGrage();
  10009. this.getTemplate();
  10010. // this.selectType();
  10011. this.selectEva();
  10012. this.loading = false;
  10013. this.timer2 = setInterval(() => {
  10014. this.selectEva();
  10015. }, 5000);
  10016. this.pasteTimer = setInterval(() => {
  10017. this.getPaste();
  10018. }, 1000);
  10019. setTimeout(() => {
  10020. this.selectCourseDetail();
  10021. }, 500);
  10022. },
  10023. mounted() {
  10024. this.$nextTick(() => {
  10025. //监听这个dom的scroll事件
  10026. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  10027. this.heightPx = $(".rightBox")[0].offsetHeight + 'px'
  10028. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  10029. this.$forceUpdate();
  10030. });
  10031. let _this = this
  10032. window.pasteStage = function(json){
  10033. _this.pasteStage(json)
  10034. }
  10035. },
  10036. };
  10037. </script>
  10038. <style scoped>
  10039. @media screen and (max-width: 1280px) {
  10040. .mbCss {
  10041. flex-direction: column !important;
  10042. }
  10043. .pjCss {
  10044. width: 100% !important;
  10045. }
  10046. .evaCss {
  10047. width: 100% !important;
  10048. }
  10049. }
  10050. .dialog_diy>>>.el-dialog__header {
  10051. background: #3c3c3c !important;
  10052. padding: 15px 20px;
  10053. }
  10054. .dialog_diy>>>.el-dialog__title {
  10055. color: #fff;
  10056. }
  10057. .dialog_diy>>>.el-dialog__headerbtn {
  10058. top: 19px;
  10059. }
  10060. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  10061. color: #fff;
  10062. }
  10063. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  10064. color: #fff;
  10065. }
  10066. .dialog_diy>>>.el-dialog__body,
  10067. .dialog_diy>>>.el-dialog__footer {
  10068. background: #fafafa;
  10069. }
  10070. .dialog_diy3>>>.el-dialog__body,
  10071. .dialog_diy3>>>.el-dialog__footer {
  10072. background: #eee !important;
  10073. }
  10074. .dialog_diy3>>>.el-dialog__body {
  10075. padding: 20px 20px;
  10076. }
  10077. .source_diy>>>.el-dialog {
  10078. height: 100% !important;
  10079. margin: 0 auto !important;
  10080. }
  10081. .source_diy>>>.el-dialog__body {
  10082. height: calc(100% - 185px);
  10083. overflow: auto;
  10084. background: #e6eaf0;
  10085. }
  10086. .source_diy>>>.el-dialog__footer {
  10087. background: #e6eaf0 !important;
  10088. }
  10089. .left {
  10090. border-right: 1px solid rgb(60, 94, 143);
  10091. display: flex;
  10092. flex-direction: column;
  10093. align-items: center;
  10094. min-height: 600px;
  10095. width: 385px;
  10096. height: 80%;
  10097. }
  10098. .tips {
  10099. color: rgb(128, 128, 128);
  10100. font-size: 12px;
  10101. width: 270px;
  10102. margin: 40px;
  10103. }
  10104. .pb_content {
  10105. height: 100% !important;
  10106. /* margin: 0 20px 0 20px; */
  10107. }
  10108. .pb_content_body {
  10109. width: 100% !important;
  10110. height: 100%;
  10111. }
  10112. .info_solid {
  10113. width: 270px;
  10114. height: 30px;
  10115. border-left: 1px solid #bdbdbd;
  10116. margin: 10px 0px 10px 30px;
  10117. }
  10118. .info_steps {
  10119. width: 270px;
  10120. font-size: 0.875rem;
  10121. display: flex;
  10122. align-items: center;
  10123. }
  10124. .info_steps span:nth-child(1) {
  10125. width: 30px;
  10126. height: 30px;
  10127. background: rgba(0, 0, 0, 0.38);
  10128. display: block;
  10129. color: #fff;
  10130. border-radius: 40px;
  10131. text-align: center;
  10132. line-height: 30px;
  10133. }
  10134. .steps_active {
  10135. background: #3d67bc !important;
  10136. }
  10137. .info_steps span:nth-child(2) {
  10138. margin-left: 5px;
  10139. }
  10140. .right {
  10141. height: 100%;
  10142. width: calc(100% - 40px);
  10143. display: flex;
  10144. overflow: hidden;
  10145. margin: 0 auto;
  10146. }
  10147. .basic_box {
  10148. margin: 0 auto;
  10149. position: relative;
  10150. padding: 0 20px 0 20px;
  10151. }
  10152. .basic_box2 {
  10153. position: relative;
  10154. width: calc(100% - 300px);
  10155. }
  10156. .basic_box_success {
  10157. width: 100%;
  10158. height: 100%;
  10159. padding: 50px 0;
  10160. position: relative;
  10161. text-align: center;
  10162. /* border-bottom: 1px solid #bfbfbf; */
  10163. box-sizing: border-box;
  10164. display: flex;
  10165. align-items: center;
  10166. flex-direction: column;
  10167. justify-content: center;
  10168. }
  10169. .info_title {
  10170. font-size: 1.5em;
  10171. margin-right: 25px;
  10172. /* margin: 20px 30px 20px 30px; */
  10173. }
  10174. .bInfo_title {
  10175. text-align: left;
  10176. margin: 10px 0;
  10177. }
  10178. .small_title {
  10179. font-size: 14px;
  10180. line-height: 40px;
  10181. }
  10182. .chapter_beizhu {
  10183. font-size: 12px;
  10184. font-weight: bold;
  10185. float: right;
  10186. color: rgb(128, 128, 128);
  10187. margin-top: 5px;
  10188. }
  10189. .chapter_uploadBox1 {
  10190. text-align: left;
  10191. background-color: rgb(242, 242, 242);
  10192. width: 100%;
  10193. height: 67px;
  10194. padding: 0px 15px;
  10195. border-radius: 8px;
  10196. overflow: hidden;
  10197. font-size: 16px;
  10198. box-sizing: border-box;
  10199. position: relative;
  10200. }
  10201. .chapter_add {
  10202. width: 100%;
  10203. height: 32px;
  10204. margin-top: 15px;
  10205. cursor: pointer;
  10206. }
  10207. .chapter_add_l {
  10208. margin-left: 5px;
  10209. width: 30px;
  10210. height: 30px;
  10211. float: left;
  10212. border: 1px solid #aaa;
  10213. color: #aaa;
  10214. border-radius: 50%;
  10215. font-size: 25px;
  10216. text-align: center;
  10217. }
  10218. .chapter_add_r {
  10219. font-size: 18px;
  10220. height: 40px;
  10221. line-height: 30px;
  10222. text-indent: 10px;
  10223. color: #aaa;
  10224. }
  10225. .chapter_add_r span {
  10226. font-size: 12px;
  10227. color: rgb(204, 204, 204);
  10228. }
  10229. .chapter_add_input {
  10230. display: none;
  10231. }
  10232. .line {
  10233. width: 85%;
  10234. margin: 0 auto;
  10235. border-top: 1px solid #e5e5e5;
  10236. margin-top: 20px;
  10237. }
  10238. .info_btnBox {
  10239. width: calc(100%);
  10240. display: flex;
  10241. justify-content: center;
  10242. height: 70px;
  10243. align-items: center;
  10244. background: #fff;
  10245. margin: 0 auto;
  10246. border-top: 2px solid rgb(228, 232, 237);
  10247. box-sizing: border-box;
  10248. border-radius: 0px 0 5px 5px;
  10249. }
  10250. .info_btnBox2 {
  10251. width: calc(100%);
  10252. display: flex;
  10253. justify-content: center;
  10254. height: 20px;
  10255. align-items: center;
  10256. background: #fff;
  10257. margin: 0 auto;
  10258. border-top: 2px solid rgb(228, 232, 237);
  10259. box-sizing: border-box;
  10260. overflow: hidden;
  10261. cursor: pointer;
  10262. }
  10263. .info_btnBox3 {
  10264. width: calc(100%);
  10265. display: flex;
  10266. justify-content: flex-end;
  10267. padding: 0 20px;
  10268. height: 60px;
  10269. align-items: center;
  10270. background: unset;
  10271. margin: 0 auto;
  10272. /* border-top: 1px solid rgb(228, 232, 237); */
  10273. box-sizing: border-box;
  10274. overflow: hidden;
  10275. cursor: pointer;
  10276. background: #fff;
  10277. border-radius: 10px;
  10278. }
  10279. .info_btn+.info_btn {
  10280. margin-left: 15px;
  10281. }
  10282. .info_btn,
  10283. .teacherWord {
  10284. color: #fff;
  10285. background-color: #0f7eff;
  10286. padding: 8px 24px;
  10287. font-size: 0.9375rem;
  10288. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10289. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10290. min-width: 64px;
  10291. font-weight: 500;
  10292. border-radius: 4px;
  10293. box-sizing: border-box;
  10294. border: none;
  10295. cursor: pointer;
  10296. }
  10297. .teacherWord {
  10298. width: 105px !important;
  10299. text-align: center !important;
  10300. line-height: 36px !important;
  10301. padding: 0 !important;
  10302. font-size: 14px !important;
  10303. margin: 10px 0 !important;
  10304. }
  10305. .wordTeacher {
  10306. display: flex;
  10307. flex-direction: column;
  10308. width: 20%;
  10309. text-align: center;
  10310. font-size: 14px;
  10311. margin: 30px 30px 0 10px;
  10312. background: #fff;
  10313. position: relative;
  10314. border-radius: 5px;
  10315. padding: 25px 0px;
  10316. }
  10317. .wordPic {
  10318. margin: 0 auto;
  10319. width: 60px;
  10320. height: 60px;
  10321. cursor: pointer;
  10322. }
  10323. .deleteWord {
  10324. width: 22px;
  10325. height: 22px;
  10326. position: absolute;
  10327. right: 5px;
  10328. top: -15px;
  10329. cursor: pointer;
  10330. display: none;
  10331. z-index: 999;
  10332. }
  10333. .wordPic>img,
  10334. .deleteWord>img,
  10335. .addToolImg>img {
  10336. width: 100%;
  10337. height: 100%;
  10338. }
  10339. .info_btn:hover {
  10340. background-color: #4f7cd5 !important;
  10341. }
  10342. .cru_selectBox {
  10343. display: flex;
  10344. margin: 24px 0 10px;
  10345. flex-wrap: nowrap;
  10346. white-space: nowrap;
  10347. overflow: auto;
  10348. position: relative;
  10349. height: 47px;
  10350. }
  10351. .cru_selectBox::-webkit-scrollbar {
  10352. /*滚动条整体样式*/
  10353. width: 6px;
  10354. /*高宽分别对应横竖滚动条的尺寸*/
  10355. height: 6px;
  10356. }
  10357. /*定义滚动条轨道 内阴影+圆角*/
  10358. .cru_selectBox::-webkit-scrollbar-track {
  10359. border-radius: 10px;
  10360. background-color: #eee;
  10361. }
  10362. /*定义滑块 内阴影+圆角*/
  10363. .cru_selectBox::-webkit-scrollbar-thumb {
  10364. border-radius: 10px;
  10365. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10366. background-color: rgba(0, 0, 0, 0.1);
  10367. }
  10368. .cru_line {
  10369. position: absolute;
  10370. bottom: 0px;
  10371. transition: all 0.5s;
  10372. left: 0px;
  10373. width: 125px;
  10374. margin-left: -25px;
  10375. }
  10376. .cru_select {
  10377. font-size: 21px;
  10378. margin-right: 37px;
  10379. margin-left: 5px;
  10380. cursor: pointer;
  10381. color: #a6a6a6;
  10382. }
  10383. .cru_selected {
  10384. color: #0b7fc2 !important;
  10385. }
  10386. .chapter_contentbox {
  10387. display: flex;
  10388. align-items: center;
  10389. margin-top: 15px;
  10390. }
  10391. .chapter_contentbox .cc_title {
  10392. margin: 0px;
  10393. color: black;
  10394. display: block;
  10395. white-space: nowrap;
  10396. overflow: hidden;
  10397. text-overflow: ellipsis;
  10398. margin-right: 20px;
  10399. font-size: 18px;
  10400. height: 20px;
  10401. line-height: 22px;
  10402. min-width: fit-content;
  10403. display: flex;
  10404. }
  10405. .chapter_contentbox .cc_title::before {
  10406. content: '';
  10407. height: 100%;
  10408. width: 3px;
  10409. background: #3681FC;
  10410. border-radius: 3px;
  10411. opacity: 1;
  10412. display: block;
  10413. margin-right: 10px;
  10414. }
  10415. .chapter_contentbox .cc_input {
  10416. width: 100%;
  10417. display: flex;
  10418. }
  10419. .show_taskD {
  10420. min-width: fit-content;
  10421. margin-left: 10px;
  10422. display: flex;
  10423. align-items: center;
  10424. font-size: 14px;
  10425. cursor: pointer;
  10426. color: #717C8D;
  10427. }
  10428. .show_taskD>img {
  10429. width: 15px;
  10430. margin-right: 5px;
  10431. transition: .2s all;
  10432. transform: rotate(-90deg);
  10433. }
  10434. .show_taskD.show>img {
  10435. transform: rotate(0deg);
  10436. }
  10437. .show_toolD {
  10438. min-width: fit-content;
  10439. margin-left: 10px;
  10440. display: flex;
  10441. align-items: center;
  10442. font-size: 14px;
  10443. cursor: pointer;
  10444. color: #717C8D;
  10445. /* position: absolute;
  10446. right: 45px;
  10447. top: 5px; */
  10448. }
  10449. .show_toolD>img {
  10450. width: 15px;
  10451. margin-right: 5px;
  10452. transition: .2s all;
  10453. transform: rotate(-90deg);
  10454. }
  10455. .show_toolD.show>img {
  10456. transform: rotate(0deg);
  10457. }
  10458. .remove {
  10459. background-image: url("../../../assets/icon/new/delete_u.png");
  10460. cursor: pointer;
  10461. opacity: 0.5;
  10462. width: 30px;
  10463. min-width: 30px;
  10464. height: 30px;
  10465. background-size: 100% 100%;
  10466. background-repeat: no-repeat;
  10467. margin-left: 10px;
  10468. }
  10469. .remove1 {
  10470. background-image: url("../../../assets/remove1.png");
  10471. background-repeat: no-repeat;
  10472. background-position: 5px 10px;
  10473. width: 40px;
  10474. height: 50px;
  10475. cursor: pointer;
  10476. margin-left: 10px;
  10477. }
  10478. .binfo_input {
  10479. width: 100%;
  10480. margin: 0;
  10481. padding: 12px 14px;
  10482. display: block;
  10483. min-width: 0;
  10484. outline: none;
  10485. box-sizing: border-box;
  10486. background: none;
  10487. border: none;
  10488. border-radius: 4px;
  10489. background: #fff;
  10490. font-size: 16px;
  10491. resize: none;
  10492. font-family: 'Microsoft YaHei';
  10493. min-height: 48px;
  10494. border: 1.5px solid #CAD1DC;
  10495. }
  10496. .binfo_textarea {
  10497. border: 1.5px solid #CAD1DC;
  10498. font-size: 16px;
  10499. resize: none;
  10500. background: #f6f6f6;
  10501. font-family: 'Microsoft YaHei';
  10502. }
  10503. .binfo_input:focus-visible {
  10504. border: 1.5px solid #3681FC !important;
  10505. }
  10506. .time {
  10507. display: flex;
  10508. margin: 35px 0 80px 0;
  10509. }
  10510. .chapter_btnbox {
  10511. width: 160px;
  10512. border-radius: 5px;
  10513. border: 2px dashed gray;
  10514. display: flex;
  10515. padding: 8px 50px;
  10516. align-items: center;
  10517. justify-content: center;
  10518. margin: 30px auto 0;
  10519. cursor: pointer;
  10520. }
  10521. .icon_add {
  10522. position: relative;
  10523. width: 24px;
  10524. padding-top: 20px;
  10525. border-radius: 100%;
  10526. border-width: 2px;
  10527. border-style: solid;
  10528. border-color: gray;
  10529. }
  10530. .icon_add i:nth-child(1) {
  10531. position: absolute;
  10532. left: 50%;
  10533. top: 50%;
  10534. height: 60%;
  10535. transform: translate(-50%, -50%);
  10536. border-width: 1px;
  10537. border-style: solid;
  10538. border-color: inherit;
  10539. }
  10540. .icon_add i:nth-child(2) {
  10541. position: absolute;
  10542. top: 50%;
  10543. left: 50%;
  10544. width: 60%;
  10545. transform: translate(-50%, -50%);
  10546. border-width: 1px;
  10547. border-style: solid;
  10548. border-color: inherit;
  10549. }
  10550. .chapter_btn_w {
  10551. font-size: 0.9375rem;
  10552. font-weight: bold;
  10553. color: gray;
  10554. margin-left: 20px;
  10555. }
  10556. .disUoloadSty>>>.el-icon-plus {
  10557. display: none !important;
  10558. /* 上传按钮隐藏 */
  10559. }
  10560. .imgLeft {
  10561. margin: 15px 0;
  10562. }
  10563. .add_info_box {
  10564. margin: 0 0 0 auto;
  10565. display: flex;
  10566. flex-wrap: wrap;
  10567. }
  10568. .add_info_box button {
  10569. margin: 0 5px 10px 0;
  10570. }
  10571. .add_info_box2 {
  10572. display: flex;
  10573. align-items: center;
  10574. flex-wrap: wrap;
  10575. }
  10576. .add_info_box2::after {
  10577. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10578. color: red;
  10579. font-size: 14px;
  10580. margin-bottom: 10px;
  10581. }
  10582. .add_chapters_box {
  10583. text-align: left;
  10584. background-color: #fff;
  10585. width: 100%;
  10586. border-radius: 4px;
  10587. font-size: 16px;
  10588. box-sizing: border-box;
  10589. position: relative;
  10590. padding: 0 15px;
  10591. height: auto;
  10592. overflow-y: auto;
  10593. overflow-x: hidden;
  10594. border: 1px solid #CAD1DC;
  10595. }
  10596. .add_chapters_box.add_c_none {
  10597. display: flex;
  10598. justify-content: center;
  10599. align-items: center;
  10600. padding: 15px;
  10601. }
  10602. .add_c_none>img {
  10603. width: 25px;
  10604. }
  10605. .add_chapters_box.add_c_none>span {
  10606. font-size: 14px;
  10607. font-weight: 400;
  10608. margin: 0 0 5px 5px;
  10609. }
  10610. .homework_box {
  10611. display: flex;
  10612. align-items: flex-start;
  10613. flex-wrap: wrap;
  10614. margin: 15px 0 0 0;
  10615. flex-direction: column;
  10616. align-content: flex-start;
  10617. }
  10618. .course_homework {
  10619. display: flex;
  10620. justify-content: center;
  10621. flex-direction: row;
  10622. align-items: center;
  10623. margin: 0 10px 0 0;
  10624. }
  10625. .course_homework>>>.el-input__inner {
  10626. width: 140px;
  10627. margin-left: 15px;
  10628. }
  10629. .chapter_upload_move {
  10630. position: relative;
  10631. background-color: #fff;
  10632. position: absolute;
  10633. width: 100%;
  10634. top: 0px;
  10635. left: 0px;
  10636. border: 1px solid #eee;
  10637. border-radius: 5px;
  10638. transition: width 2s;
  10639. -moz-transition: width 2s;
  10640. -webkit-transition: width 2s;
  10641. -o-transition: width 2s;
  10642. }
  10643. .chapter_upload_l_i {
  10644. background-image: url("../../../assets/icon.png");
  10645. background-position: 3px -165px;
  10646. width: 30px;
  10647. height: 30px;
  10648. margin: 10px auto 0 auto;
  10649. }
  10650. .course_input_box {
  10651. display: flex;
  10652. margin-right: 20px;
  10653. width: 100%;
  10654. align-items: center;
  10655. position: relative;
  10656. }
  10657. .course_input_box>.binfo_input {
  10658. width: calc(100% - 0 - 200px - 20px);
  10659. margin: 0 10px;
  10660. }
  10661. .bb_courseIcon {
  10662. width: 57px;
  10663. height: 45px;
  10664. background: #F0F4FA;
  10665. border-radius: 5px 0px 0px 5px;
  10666. display: flex;
  10667. align-items: center;
  10668. justify-content: center;
  10669. border-right: 1.5px solid rgb(202, 209, 220);
  10670. box-sizing: border-box;
  10671. position: absolute;
  10672. left: 1.5px
  10673. }
  10674. .bb_courseIcon>img {
  10675. width: 25px;
  10676. height: auto
  10677. }
  10678. .big_box {
  10679. /* margin-top: 20px; */
  10680. display: flex;
  10681. justify-content: space-between;
  10682. /* border-bottom: 1px solid #E0E2ED; */
  10683. }
  10684. .left_first {
  10685. display: flex;
  10686. flex-direction: column;
  10687. flex-wrap: nowrap;
  10688. width: calc(100% - 310px);
  10689. padding: 20px;
  10690. box-sizing: border-box;
  10691. background: #fff;
  10692. border-radius: 5px;
  10693. }
  10694. .right_first {
  10695. width: 300px;
  10696. display: flex;
  10697. align-items: center;
  10698. justify-content: center;
  10699. /* border-left: 1px solid #E0E2ED; */
  10700. box-sizing: border-box;
  10701. padding: 20px;
  10702. flex-direction: column;
  10703. background: #fff;
  10704. border-radius: 5px;
  10705. }
  10706. .ai_box {
  10707. width: 204px;
  10708. display: flex;
  10709. justify-content: flex-end;
  10710. margin-bottom: 15px;
  10711. }
  10712. .ai_content {
  10713. display: flex;
  10714. align-items: center;
  10715. font-size: 14px;
  10716. padding: 7px 20px;
  10717. box-sizing: border-box;
  10718. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10719. border-radius: 12px;
  10720. font-weight: 700;
  10721. cursor: pointer;
  10722. }
  10723. .ai_content>img {
  10724. width: 40px;
  10725. margin-right: 5px;
  10726. }
  10727. .c_info_title {
  10728. padding: 15px 0 15px 0;
  10729. font-size: 16px;
  10730. font-weight: bold;
  10731. margin: 0 0 0 20px;
  10732. box-sizing: border-box;
  10733. display: flex;
  10734. align-items: center;
  10735. line-height: 20px;
  10736. }
  10737. .c_info_title::before {
  10738. content: '';
  10739. display: block;
  10740. width: 3px;
  10741. height: 20px;
  10742. background: #0061FF;
  10743. border-radius: 3px;
  10744. margin: 0 5px 0 0;
  10745. }
  10746. .right_title {
  10747. /* height: 30px; */
  10748. padding: 0 20px;
  10749. font-size: 18px;
  10750. font-weight: bold;
  10751. /* color: #0f7eff; */
  10752. margin: 20px auto 0;
  10753. display: flex;
  10754. /* justify-content: space-between; */
  10755. align-items: center;
  10756. }
  10757. .people {
  10758. border: 1px solid rgb(229 229 229);
  10759. height: 495px;
  10760. border-radius: 5px;
  10761. width: 100%;
  10762. overflow: auto;
  10763. }
  10764. .people_top {
  10765. display: flex;
  10766. width: 100%;
  10767. /* justify-content: space-between; */
  10768. /* align-items: center; */
  10769. flex-direction: column;
  10770. padding: 10px 10px 0;
  10771. box-sizing: border-box;
  10772. }
  10773. .people_nav,
  10774. .people_top_right {
  10775. /* padding: 20px 0 0 20px; */
  10776. }
  10777. .people_top_right {
  10778. height: 40px;
  10779. margin-bottom: 10px;
  10780. }
  10781. .people_search {
  10782. display: flex;
  10783. position: relative;
  10784. }
  10785. .people_search>>>.el-input__inner {
  10786. /* height: 25px; */
  10787. width: 95%;
  10788. }
  10789. .search_img {
  10790. width: 20px;
  10791. height: 20px;
  10792. position: absolute;
  10793. right: 30px;
  10794. top: 50%;
  10795. transform: translateY(-50%);
  10796. }
  10797. .search_img>img {
  10798. width: 100%;
  10799. height: 100%;
  10800. }
  10801. .people_name {
  10802. display: flex;
  10803. justify-content: flex-start;
  10804. padding: 20px 10px;
  10805. flex-direction: column;
  10806. flex-wrap: wrap;
  10807. }
  10808. .p_box {
  10809. position: relative;
  10810. }
  10811. .people_name>>>.el-checkbox {
  10812. width: 100%;
  10813. display: flex;
  10814. align-items: center;
  10815. margin-bottom: 10px;
  10816. }
  10817. .people_name>>>.el-checkbox__label {
  10818. text-overflow: ellipsis;
  10819. overflow: hidden;
  10820. width: calc(100%);
  10821. }
  10822. .people_name2>>>.el-checkbox__label {
  10823. width: calc(100% - 130px);
  10824. }
  10825. .inviteCode {
  10826. position: absolute;
  10827. right: 30px;
  10828. color: #237ade;
  10829. top: 0;
  10830. cursor: pointer;
  10831. font-size: 13px;
  10832. }
  10833. .noneInvite {
  10834. color: #a8a8a8;
  10835. }
  10836. .inviteImg {
  10837. position: absolute;
  10838. right: 5px;
  10839. top: 0;
  10840. width: 20px;
  10841. }
  10842. .right_img {
  10843. width: 150px;
  10844. height: 150px;
  10845. margin: 20px auto;
  10846. }
  10847. .right_img>img {
  10848. width: 100%;
  10849. height: 100%;
  10850. }
  10851. .number {
  10852. margin-top: 20px;
  10853. color: #4aa6ff;
  10854. text-decoration: underline;
  10855. }
  10856. .success_button {
  10857. display: flex;
  10858. text-align: center;
  10859. margin: 5% 0 auto;
  10860. flex-direction: row;
  10861. justify-content: center;
  10862. }
  10863. .look_course {
  10864. margin-right: 40px;
  10865. background: #3d67bc;
  10866. width: 200px;
  10867. height: 35px;
  10868. line-height: 35px;
  10869. color: #fff;
  10870. text-align: center;
  10871. font-size: 14px;
  10872. border-radius: 5px;
  10873. cursor: pointer;
  10874. }
  10875. .attend_others {
  10876. width: 250px;
  10877. background: #4fb13c;
  10878. height: 35px;
  10879. line-height: 35px;
  10880. color: #fff;
  10881. text-align: center;
  10882. font-size: 14px;
  10883. border-radius: 5px;
  10884. cursor: pointer;
  10885. }
  10886. .dialog_diy2>>>.el-dialog__body {
  10887. text-align: center;
  10888. }
  10889. .write_togother {
  10890. position: absolute;
  10891. right: 45px;
  10892. display: flex;
  10893. top: 5%;
  10894. }
  10895. .write_people {
  10896. font-size: 14px;
  10897. line-height: 50px;
  10898. padding-right: 10px;
  10899. }
  10900. .end_write {
  10901. background: #3d67bc;
  10902. color: #fff;
  10903. width: 100px;
  10904. height: 35px;
  10905. line-height: 35px;
  10906. text-align: center;
  10907. font-size: 14px;
  10908. border-radius: 5px;
  10909. cursor: pointer;
  10910. }
  10911. .chapter_upload+.chapter_upload {
  10912. /* margin-top: 15px; */
  10913. border-top: 1px solid #E7EBF1;
  10914. }
  10915. .chapter_upload {
  10916. height: 45px;
  10917. position: relative;
  10918. display: flex;
  10919. align-items: center;
  10920. width: 100%;
  10921. min-height: 45px;
  10922. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  10923. /* border-radius: 4px; */
  10924. /* overflow: hidden; */
  10925. box-sizing: border-box;
  10926. }
  10927. .chapter_upload:hover > .chapter_upload_drag{
  10928. display: block;
  10929. }
  10930. .chapter_upload_drag {
  10931. position: absolute;
  10932. cursor: pointer;
  10933. width: 16px;
  10934. height: 16px;
  10935. left: -9px;
  10936. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  10937. background-size: 100% 100%;
  10938. z-index: 10;
  10939. display: none;
  10940. }
  10941. .chapter_upload_t {
  10942. background-color: #fff;
  10943. position: absolute;
  10944. height: 100%;
  10945. top: 0px;
  10946. left: 0px;
  10947. box-sizing: border-box;
  10948. }
  10949. .chapter_upload_o {
  10950. width: 100%;
  10951. height: 100%;
  10952. position: relative;
  10953. z-index: 1;
  10954. }
  10955. .chapter_upload_ic {
  10956. margin: 0 15px 0px auto;
  10957. display: flex;
  10958. align-items: center;
  10959. }
  10960. .chapter_upload_ic_l {
  10961. width: 50px;
  10962. height: 50px;
  10963. float: left;
  10964. }
  10965. .chapter_upload_ic_l div {
  10966. width: 30px;
  10967. height: 35px;
  10968. background: url("../../../assets/icon/icon.png");
  10969. }
  10970. .chapter_upload_ic_edit {
  10971. height: 100%;
  10972. display: flex;
  10973. align-items: center;
  10974. cursor: pointer;
  10975. margin: 0 10px 0 0;
  10976. }
  10977. .chapter_upload_ic_edit div {
  10978. width: 18px;
  10979. height: 18px;
  10980. background-image: url("../../../assets/icon/new/edit_u.png");
  10981. background-size: 100% 100%;
  10982. }
  10983. .chapter_upload_ic_r {
  10984. height: 100%;
  10985. display: flex;
  10986. align-items: center;
  10987. cursor: pointer;
  10988. }
  10989. .chapter_upload_ic_r div {
  10990. width: 18px;
  10991. height: 18px;
  10992. background-image: url("../../../assets/icon/new/delete_u.png");
  10993. background-size: 100% 100%;
  10994. }
  10995. .chapter_upload_n {
  10996. display: flex;
  10997. text-indent: 10px;
  10998. text-decoration: none;
  10999. text-overflow: ellipsis;
  11000. white-space: nowrap;
  11001. overflow: hidden;
  11002. width: 55%;
  11003. margin-left: 10px;
  11004. cursor: pointer;
  11005. margin-top: 2px;
  11006. align-items: center;
  11007. }
  11008. .chapter_upload_l_i2,
  11009. .chapter_upload_l_i3,
  11010. .chapter_upload_l_i8,
  11011. .chapter_upload_l_i6,
  11012. .chapter_upload_l_i12,
  11013. .chapter_upload_l_i14,
  11014. .chapter_upload_l_i13 {
  11015. width: 15px;
  11016. height: 15px;
  11017. background-size: 100% 100%;
  11018. }
  11019. .chapter_upload_l_i2 {
  11020. background-image: url("../../../assets/icon/new/u_word.png");
  11021. }
  11022. .chapter_upload_l_i3 {
  11023. background-image: url("../../../assets/icon/new/u_video.png");
  11024. }
  11025. .chapter_upload_l_i8 {
  11026. background-image: url("../../../assets/icon/new/u_url.png");
  11027. }
  11028. .chapter_upload_l_i14 {
  11029. background-image: url("../../../assets/icon/new/u_source.png");
  11030. }
  11031. .chapter_upload_l_i6 {
  11032. background-image: url("../../../assets/icon/new/u_picture.png");
  11033. }
  11034. .chapter_upload_l_i12 {
  11035. background-image: url("../../../assets/icon/new/u_word.png");
  11036. }
  11037. .chapter_upload_l_i13 {
  11038. background-image: url("../../../assets/icon/new/u_img.png");
  11039. }
  11040. .chapter_upload_noSee {
  11041. background-image: url("../../../assets/icon/new/u_noUpload.png");
  11042. width: 18px;
  11043. height: 18px;
  11044. background-size: 100% 100%;
  11045. display: block;
  11046. margin-right: 10px;
  11047. }
  11048. .chapter_upload_ud {
  11049. display: flex;
  11050. flex-direction: row;
  11051. justify-content: center;
  11052. margin: 0 10px 0 0;
  11053. }
  11054. .chapter_upload_ud>.chapter_upload_up {
  11055. margin-bottom: 0;
  11056. margin-right: 10px;
  11057. }
  11058. .chapter_upload_down,
  11059. .chapter_upload_up {
  11060. width: 20px;
  11061. height: 20px;
  11062. background: #e4eaf2;
  11063. cursor: pointer;
  11064. margin: 0 auto;
  11065. border-radius: 5px;
  11066. display: flex;
  11067. justify-content: center;
  11068. align-items: center;
  11069. }
  11070. .chapter_upload_up::after,
  11071. .chapter_upload_down::after {
  11072. content: '';
  11073. background-image: url('../../../assets/icon/new/downBtn.png');
  11074. width: 13px;
  11075. height: 13px;
  11076. background-size: 100% 100%;
  11077. display: block;
  11078. }
  11079. .chapter_upload_up::after {
  11080. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  11081. }
  11082. .chapter_upload_up {
  11083. margin-bottom: 5px;
  11084. }
  11085. .chapter_upload_ud2 {
  11086. display: flex;
  11087. flex-direction: row;
  11088. justify-content: center;
  11089. margin: 0 10px 0 0;
  11090. }
  11091. .chapter_upload_ud2>.chapter_upload_up2 {
  11092. margin-bottom: 0;
  11093. margin-right: 10px;
  11094. }
  11095. .chapter_upload_down2,
  11096. .chapter_upload_up2 {
  11097. cursor: pointer;
  11098. margin: 0 auto;
  11099. border-radius: 5px;
  11100. display: flex;
  11101. justify-content: center;
  11102. align-items: center;
  11103. color: #717C8D;
  11104. font-size: 14px;
  11105. }
  11106. .chapter_upload_up2{
  11107. margin-right:10px;
  11108. }
  11109. .chapter_upload_up2::before,
  11110. .chapter_upload_down2::before {
  11111. content: '';
  11112. background-image: url('../../../assets/icon/new/c_down.png');
  11113. width: 14px;
  11114. height: 14px;
  11115. background-size: 100% 100%;
  11116. display: block;
  11117. margin-right: 5px;
  11118. }
  11119. .chapter_upload_up2::before {
  11120. background-image: url('../../../assets/icon/new/c_up.png') !important;
  11121. }
  11122. .addWordStyle {
  11123. display: flex;
  11124. flex-direction: row;
  11125. justify-content: flex-start;
  11126. overflow-x: auto;
  11127. white-space: nowrap;
  11128. flex-wrap: wrap;
  11129. }
  11130. /* table 样式 */
  11131. .cont>>>table {
  11132. border-top: 1px solid #ccc;
  11133. border-left: 1px solid #ccc;
  11134. }
  11135. .cont>>>table td,
  11136. .cont>>>table th {
  11137. border-bottom: 1px solid #ccc;
  11138. border-right: 1px solid #ccc;
  11139. /* padding: 20px 5px; */
  11140. padding: 5px 10px;
  11141. max-width: 0px;
  11142. height: 30px;
  11143. vertical-align: baseline;
  11144. }
  11145. .cont>>>table th {
  11146. border-bottom: 2px solid #ccc;
  11147. text-align: center;
  11148. }
  11149. /* blockquote 样式 */
  11150. .cont>>>blockquote {
  11151. display: block;
  11152. border-left: 8px solid #d0e5f2;
  11153. padding: 5px 10px;
  11154. margin: 10px 0;
  11155. line-height: 1.4;
  11156. font-size: 100%;
  11157. background-color: #f1f1f1;
  11158. }
  11159. /* code 样式 */
  11160. .cont>>>code {
  11161. display: inline-block;
  11162. /* *display: inline; */
  11163. zoom: 1;
  11164. background-color: #f1f1f1;
  11165. border-radius: 3px;
  11166. padding: 3px 5px;
  11167. margin: 0 3px;
  11168. }
  11169. .cont>>>pre code {
  11170. display: block;
  11171. }
  11172. /* ul ol 样式 */
  11173. .cont>>>ul,
  11174. ol {
  11175. margin: 10px 0 10px 20px;
  11176. }
  11177. .wordbox {
  11178. display: flex;
  11179. flex-wrap: wrap;
  11180. cursor: pointer;
  11181. width: 100%;
  11182. }
  11183. .checkword {
  11184. width: 22px;
  11185. height: 22px;
  11186. margin: 10px auto 0;
  11187. cursor: pointer;
  11188. }
  11189. .checkword img {
  11190. width: 100%;
  11191. }
  11192. .stepBg {
  11193. display: flex;
  11194. flex-direction: column;
  11195. justify-content: space-between;
  11196. align-items: center;
  11197. background: #fff;
  11198. width: 300px;
  11199. margin: 0 25px 0 0;
  11200. }
  11201. .stepTop {
  11202. min-width: 300px;
  11203. width: 300px;
  11204. /* border-radius: 10px; */
  11205. display: flex;
  11206. flex-direction: column;
  11207. justify-content: flex-start;
  11208. align-items: center;
  11209. flex-wrap: nowrap;
  11210. background: #fff;
  11211. /* top: 18%; */
  11212. }
  11213. .stepTop>div {
  11214. height: 80px;
  11215. width: 85%;
  11216. cursor: pointer;
  11217. margin: 10px 0;
  11218. border-radius: 10px;
  11219. }
  11220. .first,
  11221. .second,
  11222. .third,
  11223. .four {
  11224. background: #4a83d0;
  11225. height: 90px;
  11226. color: #fff;
  11227. display: flex;
  11228. flex-direction: row;
  11229. align-items: center;
  11230. justify-content: center;
  11231. }
  11232. .first>div:nth-child(1),
  11233. .second>div:nth-child(1),
  11234. .third>div:nth-child(1),
  11235. .four>div:nth-child(1) {
  11236. margin: 5px 10px 0 0;
  11237. width: 2rem;
  11238. }
  11239. .firstNo,
  11240. .secondNo,
  11241. .thirdNo,
  11242. .fourNo {
  11243. background: #e7e7e7;
  11244. color: #adadad;
  11245. display: flex;
  11246. flex-direction: row;
  11247. align-items: center;
  11248. justify-content: center;
  11249. }
  11250. .firstNo>div:nth-child(1),
  11251. .secondNo>div:nth-child(1),
  11252. .thirdNo>div:nth-child(1),
  11253. .fourNo>div:nth-child(1) {
  11254. margin: 5px 10px 0 0;
  11255. width: 2rem;
  11256. }
  11257. .uploadWidth>>>.el-upload {
  11258. width: 60px;
  11259. height: 60px;
  11260. position: relative;
  11261. }
  11262. .addPeople {
  11263. background: #fa6060;
  11264. width: 150px;
  11265. height: 40px;
  11266. color: #fff;
  11267. border-radius: 5px;
  11268. text-align: center;
  11269. line-height: 40px;
  11270. font-size: 14px;
  11271. cursor: pointer;
  11272. }
  11273. .kcImg {
  11274. width: 60px;
  11275. margin-left: 10px;
  11276. }
  11277. .zyImg {
  11278. width: 55px;
  11279. margin: 0 10px;
  11280. }
  11281. .deleteZy {
  11282. width: 20px;
  11283. position: absolute;
  11284. top: 5px;
  11285. right: 5px;
  11286. cursor: pointer;
  11287. }
  11288. .kcImg>img,
  11289. .zyImg>img,
  11290. .deleteZy>img {
  11291. width: 100%;
  11292. height: 100%;
  11293. }
  11294. .zyBox {
  11295. display: flex;
  11296. flex-direction: row;
  11297. align-items: center;
  11298. background: #67d37d;
  11299. color: #fff;
  11300. width: 210px;
  11301. margin: 20px 20px 0 0;
  11302. border-radius: 10px;
  11303. height: 70px;
  11304. position: relative;
  11305. }
  11306. .upCss {
  11307. display: flex;
  11308. flex-direction: row;
  11309. justify-content: flex-start;
  11310. }
  11311. .upCss>>>.el-icon-plus {
  11312. position: none !important;
  11313. width: 200px;
  11314. height: 100px;
  11315. display: flex;
  11316. flex-wrap: nowrap;
  11317. flex-direction: column;
  11318. align-items: center;
  11319. justify-content: center;
  11320. border: 1px dashed #ccc;
  11321. min-width: 78px;
  11322. min-height: 100px;
  11323. z-index: 999;
  11324. }
  11325. .upCss>>>.el-upload-list__item-name {
  11326. width: 100px;
  11327. white-space: nowrap;
  11328. overflow: hidden;
  11329. text-overflow: ellipsis;
  11330. }
  11331. .upCss>>>.el-upload-list__item .el-icon-close {
  11332. font-size: 20px;
  11333. z-index: 9999;
  11334. }
  11335. .addStageImg {
  11336. min-width: 25px;
  11337. min-height: 25px;
  11338. width: 25px;
  11339. height: 25px;
  11340. cursor: pointer;
  11341. }
  11342. .addHW {
  11343. width: 28px;
  11344. height: 28px;
  11345. cursor: pointer;
  11346. }
  11347. .addStageImg>img,
  11348. .addHW>img {
  11349. width: 100%;
  11350. height: 100%;
  11351. }
  11352. .addNewPP>>>.el-dialog__body {
  11353. padding: 5px 20px;
  11354. }
  11355. .addNewPP>>>.el-dialog {
  11356. margin-top: 5vh !important;
  11357. }
  11358. .addNewPP2>>>.el-dialog__body {
  11359. padding: 5px 0;
  11360. }
  11361. .addNewPP2>>>.el-dialog {
  11362. margin-top: 5vh !important;
  11363. }
  11364. .isHeight {
  11365. height: 680px;
  11366. }
  11367. .toolChoose {
  11368. display: flex;
  11369. /* width: 100%; */
  11370. flex-direction: row;
  11371. flex-wrap: wrap;
  11372. }
  11373. .tool,
  11374. .isToolChoose {
  11375. display: flex;
  11376. flex-direction: column;
  11377. flex-wrap: nowrap;
  11378. width: fit-content;
  11379. margin: 10px 0 10px 0;
  11380. align-items: center;
  11381. border: 2px solid #dbdbdb00;
  11382. padding: 10px 20px;
  11383. border-radius: 5px;
  11384. cursor: pointer;
  11385. /* box-shadow: 0 0 2px 0px #dedede; */
  11386. position: relative;
  11387. box-sizing: border-box;
  11388. }
  11389. .tool:hover {
  11390. border: 2px solid #a5c7ff;
  11391. }
  11392. .tool:hover>.noCTool {
  11393. display: block;
  11394. opacity: 0.5;
  11395. }
  11396. .isToolChoose {
  11397. border: 2px solid #438aff !important;
  11398. box-shadow: 0 0 2px 0px #438aff;
  11399. opacity: 1 !important;
  11400. }
  11401. .isCTool,
  11402. .noCTool {
  11403. width: 30px;
  11404. height: 30px;
  11405. position: absolute;
  11406. top: -4px;
  11407. right: -4px;
  11408. }
  11409. .noCTool {
  11410. display: none;
  11411. }
  11412. .isCTool>img,
  11413. .noCTool>img {
  11414. width: 100%;
  11415. height: 100%;
  11416. }
  11417. .tool+.tool {
  11418. margin-right: 10px;
  11419. }
  11420. .whiteBIcon {
  11421. width: 80px;
  11422. cursor: pointer;
  11423. display: flex;
  11424. flex-direction: column;
  11425. flex-wrap: nowrap;
  11426. align-items: center;
  11427. font-size: 14px;
  11428. }
  11429. .whiteBIcon>img,
  11430. .toolIcon>img,
  11431. .arrow>img {
  11432. width: 100%;
  11433. height: 100%;
  11434. }
  11435. .check img {
  11436. width: 20px;
  11437. height: 20px;
  11438. }
  11439. .whiteBIcon>img {
  11440. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11441. border-radius: 15px;
  11442. }
  11443. .whiteBIcon>div:nth-child(2) {
  11444. height: 20px;
  11445. line-height: 20px;
  11446. }
  11447. .check {
  11448. /* width: 20px;
  11449. height: 20px; */
  11450. cursor: pointer;
  11451. margin: 10px 0 0;
  11452. }
  11453. .checkDiv {
  11454. display: flex;
  11455. align-items: center;
  11456. }
  11457. .checkDiv span {
  11458. margin-left: 5px;
  11459. color: #858585;
  11460. }
  11461. .customWidth>>>.el-dialog {
  11462. min-width: 500px !important;
  11463. }
  11464. .a_addBox {
  11465. margin: 10px 0;
  11466. background: #fff;
  11467. padding: 15px;
  11468. /* max-height: 600px; */
  11469. overflow: auto;
  11470. }
  11471. .a_add_box {
  11472. border-bottom: 2px solid #eee;
  11473. padding-bottom: 25px;
  11474. }
  11475. .a_add_head {
  11476. display: flex;
  11477. align-items: center;
  11478. justify-content: space-between;
  11479. margin: 10px 0 0 0;
  11480. font-size: 18px;
  11481. }
  11482. .a_add_checkType {
  11483. margin-top: 10px;
  11484. display: flex;
  11485. font-size: 14px;
  11486. align-items: center;
  11487. }
  11488. .a_add_checkType span {
  11489. box-sizing: border-box;
  11490. padding: 0 0 5px 0;
  11491. cursor: pointer;
  11492. }
  11493. .a_add_checkType span+span {
  11494. margin-left: 10px;
  11495. }
  11496. .a_add_checkType .active {
  11497. border-bottom: 2px solid #409eff;
  11498. color: #409eff;
  11499. }
  11500. .a_add_head .a_add_head_input {
  11501. width: 100%;
  11502. }
  11503. .a_add_head .a_add_head_div {
  11504. display: flex;
  11505. align-items: center;
  11506. justify-content: space-between;
  11507. }
  11508. .a_add_body {
  11509. display: flex;
  11510. /* align-items: center; */
  11511. align-items: flex-end;
  11512. }
  11513. .a_add_input {
  11514. display: flex;
  11515. align-items: center;
  11516. flex-wrap: wrap;
  11517. }
  11518. .a_add_input_choice {
  11519. flex-direction: column;
  11520. margin-right: 10px;
  11521. }
  11522. .a_add_input_choice>>>.el-radio {
  11523. display: flex;
  11524. align-items: center;
  11525. flex-direction: row-reverse;
  11526. margin: 30px 0 0 0;
  11527. position: relative;
  11528. }
  11529. .a_add_input_choice>>>.el-checkbox {
  11530. display: flex;
  11531. align-items: center;
  11532. flex-direction: row-reverse;
  11533. margin: 30px 0 0 0;
  11534. position: relative;
  11535. }
  11536. .width100 {
  11537. width: 100%;
  11538. }
  11539. .a_add_input .a_add_persent {
  11540. width: 100%;
  11541. }
  11542. .a_add_persent_div {
  11543. width: 100%;
  11544. display: flex;
  11545. align-items: center;
  11546. }
  11547. .a_add_persent_div span {
  11548. margin: 5px 0;
  11549. }
  11550. .a_add_persent_div span:nth-child(1) {
  11551. width: 30%;
  11552. }
  11553. .a_add_persent_div span:nth-child(2) {
  11554. width: 7%;
  11555. }
  11556. .a_add_persent_div span:nth-child(3) {
  11557. width: 40%;
  11558. }
  11559. .a_add_body_div {
  11560. display: flex;
  11561. align-items: center;
  11562. justify-content: center;
  11563. /* flex-direction: column; */
  11564. position: absolute;
  11565. right: -20px;
  11566. transform: translateX(100%);
  11567. }
  11568. .a_add_body_div>>>.el-button--primary {
  11569. background: #466b99;
  11570. border: none;
  11571. }
  11572. .all_choose {
  11573. display: flex;
  11574. flex-direction: row;
  11575. align-items: flex-start;
  11576. width: 100%;
  11577. }
  11578. .all_choose>span {
  11579. min-width: fit-content;
  11580. display: block;
  11581. white-space: nowrap;
  11582. overflow: hidden;
  11583. text-overflow: ellipsis;
  11584. margin-right: 20px;
  11585. font-weight: bold;
  11586. font-size: 14px;
  11587. }
  11588. .all_choose>>>.el-checkbox-group {
  11589. display: flex;
  11590. flex-direction: row;
  11591. width: 100%;
  11592. flex-wrap: wrap;
  11593. align-content: center;
  11594. justify-content: flex-start;
  11595. align-items: center;
  11596. margin-top: 3px;
  11597. }
  11598. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11599. margin-bottom: 10px;
  11600. display: flex;
  11601. flex-direction: row;
  11602. align-items: center;
  11603. margin-right: 10px;
  11604. }
  11605. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11606. min-width: 80px;
  11607. overflow: hidden;
  11608. width: 80px;
  11609. text-overflow: ellipsis;
  11610. white-space: nowrap;
  11611. }
  11612. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11613. width: auto;
  11614. }
  11615. .choose>div:nth-child(3)>span {
  11616. /* letter-spacing: 0 !important; */
  11617. }
  11618. .choose {
  11619. display: flex;
  11620. flex-direction: column;
  11621. flex-wrap: nowrap;
  11622. height: 100%;
  11623. justify-content: space-evenly;
  11624. align-items: flex-start;
  11625. }
  11626. .both {
  11627. display: flex;
  11628. flex-direction: row;
  11629. flex-wrap: wrap;
  11630. width: 100%;
  11631. align-items: center;
  11632. justify-content: flex-start;
  11633. margin: 15px 0;
  11634. }
  11635. .notice>>>.el-dialog {
  11636. width: 500px !important;
  11637. text-align: center;
  11638. }
  11639. .notice>>>.el-button {
  11640. margin-top: 20px;
  11641. }
  11642. .whiteBg {
  11643. background: #fff;
  11644. border-radius: 10px;
  11645. }
  11646. .wb_j_box {
  11647. display: flex;
  11648. width: 100%;
  11649. padding: 10px 20px;
  11650. box-sizing: border-box;
  11651. }
  11652. .wb_j_box_content {
  11653. width: calc(100% - 55% - 100px);
  11654. display: flex;
  11655. align-items: center;
  11656. }
  11657. .wb_j_box_p_box {
  11658. max-width: calc(100% - 200px);
  11659. word-break: break-all;
  11660. overflow: hidden;
  11661. margin: 0 0 0 10px;
  11662. font-size: 14px;
  11663. color: #6e6e6e;
  11664. }
  11665. .chooseWho {
  11666. display: flex;
  11667. width: 410px;
  11668. flex-direction: row;
  11669. flex-wrap: nowrap;
  11670. justify-content: space-between;
  11671. padding-bottom: 10px;
  11672. }
  11673. .chooseWho>div {
  11674. cursor: pointer;
  11675. padding-bottom: 10px;
  11676. font-weight: bold;
  11677. }
  11678. .isChooseActive {
  11679. color: #3e88f4;
  11680. border-bottom: 2px solid #2f80f3;
  11681. }
  11682. .toolSort {
  11683. display: flex;
  11684. flex-direction: row;
  11685. flex-wrap: wrap;
  11686. justify-content: flex-start;
  11687. align-items: flex-start;
  11688. }
  11689. .toolSort>div {
  11690. margin-right: 10px;
  11691. }
  11692. .tools {
  11693. width: 100%;
  11694. display: flex;
  11695. flex-direction: column;
  11696. flex-wrap: nowrap;
  11697. align-items: flex-start;
  11698. }
  11699. .leftTools,
  11700. .rightTools {
  11701. width: 50%;
  11702. }
  11703. .leftTools+.leftTools {
  11704. border-top: 1px solid #dbdbdb;
  11705. padding-top: 30px;
  11706. }
  11707. .rightTools {
  11708. display: flex;
  11709. flex-direction: row;
  11710. flex-wrap: nowrap;
  11711. justify-content: space-around;
  11712. }
  11713. .firstToolList {
  11714. display: flex;
  11715. flex-direction: column;
  11716. flex-wrap: nowrap;
  11717. align-items: center;
  11718. }
  11719. .iconList {
  11720. display: flex;
  11721. flex-direction: row;
  11722. flex-wrap: wrap;
  11723. justify-content: flex-start;
  11724. align-items: center;
  11725. margin: 20px 0 5px 0;
  11726. width: 240px;
  11727. min-width: 240px;
  11728. }
  11729. .iconTool {
  11730. display: flex;
  11731. flex-direction: column;
  11732. flex-wrap: nowrap;
  11733. align-items: center;
  11734. justify-content: flex-start;
  11735. margin: 15px 10px;
  11736. }
  11737. .toolIcon {
  11738. width: 50px;
  11739. }
  11740. .taskBorder {
  11741. /*border: 1px solid #e1e1e1; */
  11742. border-radius: 8px;
  11743. margin-top: 10px;
  11744. /* min-height: 1160px; */
  11745. position: relative;
  11746. background: #fff;
  11747. padding: 20px 20px 0;
  11748. overflow: hidden;
  11749. box-sizing: border-box;
  11750. }
  11751. .smallTaskBorder {
  11752. height: 340px;
  11753. min-height: 340px !important;
  11754. overflow: hidden;
  11755. }
  11756. .taskBorder>div {
  11757. /* padding: 30px 0 10px 30px; */
  11758. }
  11759. .addTaskBorder {
  11760. /* border: 2px solid #5E9AFC; */
  11761. border-radius: 8px;
  11762. margin-top: 10px;
  11763. cursor: pointer;
  11764. /* height: 50px;
  11765. line-height: 50px; */
  11766. background: #fff;
  11767. padding: 15px 0;
  11768. display: flex;
  11769. align-items: center;
  11770. justify-content: center;
  11771. }
  11772. /* .addTaskBorder>div {
  11773. margin: 0 auto;
  11774. display: flex;
  11775. align-items: center;
  11776. justify-content: center;
  11777. }
  11778. .addTaskBorder>div>img {
  11779. width: 20px;
  11780. }
  11781. .addTaskBorder>div>span {
  11782. font-size: 16px;
  11783. margin-left: 10px;
  11784. color: #5E9AFC;
  11785. } */
  11786. .funBlock {
  11787. display: flex;
  11788. padding: 15px 0;
  11789. flex-direction: row;
  11790. justify-content: center;
  11791. align-items: center;
  11792. position: absolute;
  11793. right: 0;
  11794. bottom: 0;
  11795. background: #fff;
  11796. width: 100%;
  11797. height: 60px;
  11798. z-index: 9;
  11799. }
  11800. .fold {
  11801. display: flex;
  11802. margin: 0 20px;
  11803. flex-direction: row;
  11804. align-items: center;
  11805. cursor: pointer;
  11806. color: #2b7bff;
  11807. }
  11808. .arrow {
  11809. margin-right: 8px;
  11810. width: 16px;
  11811. height: 16px;
  11812. min-width: 16px;
  11813. min-height: 16px;
  11814. background-size: 100% 100%;
  11815. display: block;
  11816. background-image: url(../../../assets/icon/new/u_up.png);
  11817. /* border-left: 7px solid transparent;
  11818. border-bottom: 7px solid #717C8D;
  11819. border-top: 0px solid transparent;
  11820. border-right: 7px solid transparent; */
  11821. /* box-sizing: border-box; */
  11822. transition: all .3s;
  11823. }
  11824. .arrowZ {
  11825. transform: rotate(180deg);
  11826. }
  11827. .addToolFun {
  11828. display: flex;
  11829. width: 150px;
  11830. flex-direction: row;
  11831. align-items: center;
  11832. justify-content: center;
  11833. border: 1px dashed;
  11834. border-radius: 5px;
  11835. height: 50px;
  11836. margin: 20px auto 35px;
  11837. cursor: pointer;
  11838. }
  11839. .addToolFun2 {
  11840. display: flex;
  11841. width: 150px;
  11842. border: 2px dashed #CAD1DC;
  11843. flex-direction: row;
  11844. align-items: center;
  11845. justify-content: center;
  11846. border-radius: 5px;
  11847. height: 50px;
  11848. margin: 0 auto 0;
  11849. cursor: pointer;
  11850. }
  11851. .addToolImg {
  11852. width: 20px;
  11853. height: 20px;
  11854. margin-right: 10px;
  11855. }
  11856. .addToolsDia>>>.el-dialog__body {
  11857. padding: 20px;
  11858. }
  11859. .addToolsDia>>>.el-dialog__body>.toolChoose {
  11860. padding: 0;
  11861. }
  11862. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  11863. padding: 0;
  11864. border-bottom: none;
  11865. margin-bottom: 0;
  11866. }
  11867. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  11868. width: 100%;
  11869. }
  11870. .lineCss>>>.el-form-item__label {
  11871. width: auto !important;
  11872. }
  11873. .lineCss>>>.el-form-item__content {
  11874. margin-left: 50px !important;
  11875. }
  11876. .newSteps {
  11877. display: flex;
  11878. width: 100% !important;
  11879. height: 80px;
  11880. cursor: pointer;
  11881. margin: 10px 0;
  11882. border-radius: 10px;
  11883. flex-direction: row;
  11884. align-content: center;
  11885. justify-content: center;
  11886. align-items: center;
  11887. margin: 0 !important;
  11888. }
  11889. /* 评价样式 */
  11890. .elist_css {
  11891. padding-bottom: 60px !important;
  11892. }
  11893. .elist_title {
  11894. margin-bottom: 10px;
  11895. }
  11896. .elist_input {}
  11897. .elist_input_box {
  11898. display: flex;
  11899. align-items: center;
  11900. flex-wrap: wrap;
  11901. }
  11902. .elist_input_box+.elist_input_box {
  11903. margin-top: 30px;
  11904. }
  11905. .elist_input .elist_input_box input {
  11906. font: inherit;
  11907. color: currentColor;
  11908. /* width: 200px; */
  11909. max-width: 200px;
  11910. padding: 8px 14px;
  11911. display: block;
  11912. min-width: 0;
  11913. outline: none;
  11914. border: 1px solid rgba(0, 0, 0, 0.23);
  11915. border-radius: 4px;
  11916. box-sizing: border-box;
  11917. background: #fff;
  11918. margin: 0 5px 0 0;
  11919. }
  11920. .elist_input .elist_input_box span {
  11921. height: 36px;
  11922. line-height: 36px;
  11923. color: rgb(82, 82, 82);
  11924. min-width: 80px;
  11925. }
  11926. .elist_input .elist_input_box .remove {
  11927. height: 20px;
  11928. width: 20px;
  11929. min-width: 20px;
  11930. background-size: 100% 100%;
  11931. background-position: unset;
  11932. margin-left: 5px;
  11933. }
  11934. .elist_input_box>>>.el-rate {
  11935. display: flex;
  11936. height: 36px;
  11937. align-items: center;
  11938. }
  11939. .elist_input_box .elist_inptu_text {
  11940. width: 100%;
  11941. display: flex;
  11942. align-items: center;
  11943. margin-top: 10px;
  11944. }
  11945. .elist_input_box .elist_inptu_text input {
  11946. /* width: 500px; */
  11947. width: 100%;
  11948. max-width: unset;
  11949. }
  11950. .elist_input_box>>>.el-rate__icon {
  11951. font-size: 24px;
  11952. }
  11953. .elist_btn {
  11954. margin-top: 10px;
  11955. }
  11956. .lineTitle {
  11957. /* margin-top: 15px; */
  11958. width: 110px;
  11959. font-size: 16px;
  11960. display: flex;
  11961. align-items: center;
  11962. line-height: 20px;
  11963. }
  11964. .lineTitle::before {
  11965. content: '';
  11966. display: block;
  11967. width: 3px;
  11968. height: 20px;
  11969. background: #0061FF;
  11970. border-radius: 3px;
  11971. margin: 0 5px 0 0;
  11972. }
  11973. .clineTitle::before {
  11974. content: '';
  11975. display: block;
  11976. min-width: 10px;
  11977. width: 10px;
  11978. height: 10px;
  11979. background: #0061ff;
  11980. border-radius: 50%;
  11981. margin: 0 5px 0 0;
  11982. }
  11983. .courseTop {
  11984. display: flex;
  11985. flex-direction: row;
  11986. justify-content: space-between;
  11987. align-items: center;
  11988. width: calc(100%);
  11989. padding: 10px 0;
  11990. margin: 0 auto;
  11991. }
  11992. .stepsNav {
  11993. display: flex;
  11994. flex-direction: row;
  11995. justify-content: flex-start;
  11996. align-items: center;
  11997. }
  11998. .stepsWord {
  11999. font-size: 18px;
  12000. color: #fff;
  12001. font-weight: bold;
  12002. margin-left: auto;
  12003. background: rgb(15, 126, 255);
  12004. border-radius: 5px;
  12005. padding: 3px 25px;
  12006. box-sizing: border-box;
  12007. }
  12008. .rightBox {
  12009. width: calc(100%);
  12010. background: #F0F2F5;
  12011. /* border-radius: 10px; */
  12012. overflow: auto;
  12013. height: calc(100% - 120px);
  12014. margin: 0 auto;
  12015. position: relative;
  12016. box-sizing: border-box;
  12017. border-radius: 5px;
  12018. }
  12019. .e_add_top {
  12020. display: flex;
  12021. justify-content: space-between;
  12022. padding: 20px 20px 0 20px;
  12023. border-radius: 3px;
  12024. background: #fff;
  12025. }
  12026. .e_add_title2 {
  12027. display: flex;
  12028. align-items: center;
  12029. }
  12030. .e_add_title2 span {
  12031. width: 40px;
  12032. }
  12033. .e_add_title {
  12034. display: flex;
  12035. align-items: center;
  12036. color: #b8b8b8;
  12037. font-size: 18px;
  12038. position: relative;
  12039. height: 40px;
  12040. }
  12041. .e_add_title span {
  12042. margin-right: 10px;
  12043. }
  12044. .e_add_title .el_input {
  12045. width: 300px;
  12046. }
  12047. .e_add_title>>>.el-input__inner {
  12048. width: 400px;
  12049. }
  12050. .e_add_btn {}
  12051. .e_add_content {
  12052. display: flex;
  12053. width: 100%;
  12054. }
  12055. .e_add_list {
  12056. background: #fff;
  12057. height: 500px;
  12058. width: 210px;
  12059. position: relative;
  12060. margin: 15px 5px 0 0;
  12061. flex-shrink: 0;
  12062. display: flex;
  12063. flex-direction: column;
  12064. }
  12065. .e_add_list_title {
  12066. font-size: 20px;
  12067. width: 100%;
  12068. box-sizing: border-box;
  12069. padding: 15px 40px;
  12070. text-align: center;
  12071. border-bottom: 1px solid #eaeaea;
  12072. position: relative;
  12073. display: flex;
  12074. align-items: center;
  12075. justify-content: center;
  12076. height: 57px;
  12077. background: #f6f6f6;
  12078. }
  12079. .e_add_list_title span {
  12080. overflow: hidden;
  12081. white-space: nowrap;
  12082. text-overflow: ellipsis;
  12083. }
  12084. .e_add_list_title img {
  12085. position: absolute;
  12086. right: 15px;
  12087. width: 25px;
  12088. cursor: pointer;
  12089. top: 50%;
  12090. transform: translateY(-50%);
  12091. }
  12092. .e_add_list_body {
  12093. height: calc(100% - 187px);
  12094. overflow: auto;
  12095. }
  12096. .e_add_list_child {
  12097. width: 100%;
  12098. display: flex;
  12099. align-items: center;
  12100. justify-content: center;
  12101. position: relative;
  12102. box-sizing: border-box;
  12103. padding: 15px 40px;
  12104. text-align: center;
  12105. }
  12106. .e_add_list_child span {
  12107. overflow: hidden;
  12108. white-space: nowrap;
  12109. text-overflow: ellipsis;
  12110. cursor: pointer;
  12111. }
  12112. .e_add_list_child img {
  12113. position: absolute;
  12114. right: 10px;
  12115. width: 21px;
  12116. cursor: pointer;
  12117. top: 50%;
  12118. transform: translateY(-50%);
  12119. }
  12120. .e_add_list_child+.e_add_list_child {
  12121. border-top: 1px solid #eaeaea;
  12122. }
  12123. .e_add_list_child .active {
  12124. color: #409eff;
  12125. }
  12126. .e_add_list_btn {
  12127. position: absolute;
  12128. bottom: 0;
  12129. height: 50px;
  12130. background: rgb(120, 120, 254);
  12131. width: 100%;
  12132. color: #fff;
  12133. font-size: 16px;
  12134. text-align: center;
  12135. line-height: 50px;
  12136. cursor: pointer;
  12137. }
  12138. .e_add_list_detail {
  12139. position: absolute;
  12140. bottom: 0;
  12141. height: 130px;
  12142. background: rgb(120, 120, 254);
  12143. width: 100%;
  12144. color: #fff;
  12145. font-size: 16px;
  12146. display: flex;
  12147. align-items: center;
  12148. justify-content: center;
  12149. }
  12150. .e_add_list_detail textarea {
  12151. height: 90%;
  12152. width: 95%;
  12153. border: none;
  12154. resize: none;
  12155. outline: none;
  12156. padding: 5px;
  12157. box-sizing: border-box;
  12158. }
  12159. .e_add_list_pbox {
  12160. width: 100%;
  12161. }
  12162. .e_add_list_pbox_title {
  12163. height: 50px;
  12164. background: #fff;
  12165. display: flex;
  12166. align-items: center;
  12167. width: 100%;
  12168. box-sizing: border-box;
  12169. padding: 0 20px;
  12170. flex-direction: row;
  12171. flex-wrap: wrap;
  12172. }
  12173. .type_title {
  12174. font-size: 18px;
  12175. font-weight: 700;
  12176. }
  12177. .type_content {
  12178. font-size: 16px;
  12179. margin-left: 30px;
  12180. }
  12181. .type_content span+span {
  12182. margin-left: 20px;
  12183. }
  12184. .type_content span {
  12185. cursor: pointer;
  12186. padding-bottom: 5px;
  12187. box-sizing: border-box;
  12188. }
  12189. .type_content .active {
  12190. color: #409eff;
  12191. border-bottom: 2px solid #409eff;
  12192. }
  12193. .e_add_list_pbox_content {
  12194. height: calc(100% - 50px);
  12195. display: flex;
  12196. align-items: center;
  12197. width: 100%;
  12198. background: #fff;
  12199. }
  12200. .mbCss {
  12201. width: 100%;
  12202. display: flex;
  12203. flex-direction: row;
  12204. flex-wrap: nowrap;
  12205. align-content: center;
  12206. align-items: flex-start;
  12207. justify-content: flex-start;
  12208. }
  12209. .pjCss {
  12210. /* width: 42%; */
  12211. width: calc(100% - 55%);
  12212. display: flex;
  12213. flex-direction: column;
  12214. flex-wrap: nowrap;
  12215. align-items: flex-start;
  12216. margin-top: 1.5%;
  12217. }
  12218. .e_box {
  12219. display: flex;
  12220. flex-wrap: wrap;
  12221. max-height: 500px;
  12222. align-items: flex-start;
  12223. overflow: auto;
  12224. }
  12225. .e_card {
  12226. border: 1px solid #ccc;
  12227. background: #fff;
  12228. margin-right: 20px;
  12229. width: 270px;
  12230. display: flex;
  12231. flex-direction: column;
  12232. align-items: center;
  12233. border-radius: 5px;
  12234. margin-top: 10px;
  12235. text-align: center;
  12236. }
  12237. .e_card_picture {
  12238. margin: 10px 0;
  12239. }
  12240. .e_card_picture>img {
  12241. width: 50px;
  12242. }
  12243. .e_card_name {
  12244. width: 100%;
  12245. padding: 0 10px;
  12246. box-sizing: border-box;
  12247. margin-bottom: 10px;
  12248. overflow: hidden;
  12249. text-overflow: ellipsis;
  12250. white-space: nowrap;
  12251. }
  12252. .e_card_time {
  12253. width: 100%;
  12254. padding: 0 10px;
  12255. box-sizing: border-box;
  12256. font-size: 15px;
  12257. color: #c3c3c3;
  12258. margin-bottom: 10px;
  12259. }
  12260. .e_card_btn {
  12261. height: 40px;
  12262. display: flex;
  12263. align-items: center;
  12264. width: 100%;
  12265. background: rgb(244, 244, 244);
  12266. }
  12267. .e_card_btn:hover {
  12268. background: rgb(221 221 221);
  12269. }
  12270. .e_card_btn span {
  12271. flex: 1 1 auto;
  12272. text-align: center;
  12273. cursor: pointer;
  12274. }
  12275. .addEva {
  12276. border: 1px solid #ccc;
  12277. background: #fff;
  12278. margin-right: 20px;
  12279. width: 270px;
  12280. height: 149px;
  12281. display: flex;
  12282. flex-direction: column;
  12283. align-items: center;
  12284. border-radius: 5px;
  12285. margin-top: 10px;
  12286. text-align: center;
  12287. cursor: pointer;
  12288. justify-content: center;
  12289. }
  12290. .addEva>img {
  12291. width: 50px;
  12292. object-fit: cover;
  12293. }
  12294. .uploadFm {
  12295. border: 1px dashed #ccc;
  12296. width: 100%;
  12297. height: 140px;
  12298. position: relative;
  12299. cursor: pointer;
  12300. display: flex;
  12301. flex-direction: column;
  12302. justify-content: center;
  12303. align-items: center;
  12304. font-size: 14px;
  12305. color: #6e6e6e;
  12306. position:relative;
  12307. }
  12308. .cover_p{
  12309. width: 100% !important;
  12310. height: 100%;
  12311. object-fit: cover;
  12312. }
  12313. .uploadFm2:hover .cover_mask{
  12314. display: flex !important;
  12315. }
  12316. .cover_mask{
  12317. display:none;
  12318. width:100%;
  12319. height:100%;
  12320. position:absolute;
  12321. background:#00000054;
  12322. align-items: center;
  12323. justify-content: center;
  12324. flex-direction: column;
  12325. }
  12326. .cover_mask > img{
  12327. width: 30px;
  12328. }
  12329. .cover_mask > span{
  12330. color: #fff;
  12331. font-size: 12px;
  12332. }
  12333. .uploadFm>img {
  12334. width: 50px;
  12335. }
  12336. .fileCss {
  12337. width: 100%;
  12338. display: flex;
  12339. flex-direction: row;
  12340. flex-wrap: nowrap;
  12341. justify-content: space-around;
  12342. align-items: center;
  12343. padding-top: 15px;
  12344. }
  12345. .fileCss>div {
  12346. display: flex;
  12347. flex-direction: column;
  12348. align-items: center;
  12349. }
  12350. .fileCss .spanName {
  12351. margin-top: 10px
  12352. }
  12353. .sysPicBox {
  12354. display: flex;
  12355. flex-direction: row;
  12356. flex-wrap: wrap;
  12357. align-content: flex-start;
  12358. height: 435px;
  12359. overflow: auto;
  12360. position: relative;
  12361. }
  12362. .picNone {
  12363. position: absolute;
  12364. left: 50%;
  12365. top: 45%;
  12366. transform: translate(-50%, -50%);
  12367. width: fit-content;
  12368. color: #9c9c9c;
  12369. }
  12370. .sysPic {
  12371. width: 200px;
  12372. height: 115px;
  12373. margin: 0 20px 20px 0;
  12374. cursor: pointer;
  12375. }
  12376. .sysPic>img,
  12377. .isSysPic>img,
  12378. .deletePic>img {
  12379. width: 100%;
  12380. height: 100%;
  12381. object-fit: cover;
  12382. }
  12383. .isSysPic {
  12384. width: 200px;
  12385. height: 115px;
  12386. position: relative;
  12387. }
  12388. .deletePic {
  12389. width: 20px;
  12390. height: 20px;
  12391. position: absolute;
  12392. top: 0;
  12393. right: 0;
  12394. cursor: pointer;
  12395. }
  12396. .select_box1 {
  12397. height: 100%;
  12398. }
  12399. .select_box1_img {
  12400. background: #fff;
  12401. border-radius: 5px;
  12402. padding: 15px;
  12403. box-sizing: border-box;
  12404. margin-bottom: 20px;
  12405. }
  12406. .select_box1_title {
  12407. padding: 0 0 15px 0;
  12408. border-bottom: 1px solid #eee;
  12409. margin-bottom: 15px;
  12410. }
  12411. .select_box1_title span:nth-child(1) {
  12412. font-size: 16px;
  12413. margin-right: 20px;
  12414. color: #000;
  12415. }
  12416. .select_box1_title span:nth-child(2) {
  12417. font-size: 14px;
  12418. color: rgb(112, 112, 112);
  12419. }
  12420. .select_box1_add_img {}
  12421. .select_box1_select {
  12422. background: #fff;
  12423. border-radius: 5px;
  12424. padding: 15px;
  12425. box-sizing: border-box;
  12426. height: calc(100% - 200px);
  12427. overflow: auto;
  12428. }
  12429. .select_box2 {
  12430. height: 100%;
  12431. }
  12432. .select_box2_title {
  12433. background: #fff;
  12434. border-radius: 5px;
  12435. padding: 5px 10px;
  12436. box-sizing: border-box;
  12437. margin-bottom: 10px;
  12438. }
  12439. .select_box2_box {
  12440. display: flex;
  12441. height: calc(100% - 30px);
  12442. }
  12443. .select_box2_img {
  12444. width: calc(100% - 310px);
  12445. height: 100%;
  12446. overflow: auto;
  12447. background: #fff;
  12448. border-radius: 5px;
  12449. }
  12450. .select_box2_img img {
  12451. width: 100%;
  12452. }
  12453. .select_box2_answer {
  12454. background: #fff;
  12455. margin-left: 10px;
  12456. border-radius: 5px;
  12457. width: 300px;
  12458. overflow: auto;
  12459. height: 100%;
  12460. display: flex;
  12461. flex-direction: column;
  12462. align-items: center;
  12463. padding-top: 10px;
  12464. box-sizing: border-box;
  12465. }
  12466. .select_box2_answer_box {
  12467. margin: 0 0 10px 0;
  12468. width: 85%;
  12469. }
  12470. .rate_textarea {
  12471. font: inherit;
  12472. color: currentColor;
  12473. width: 100%;
  12474. padding: 8px 14px;
  12475. display: block;
  12476. min-width: 0;
  12477. outline: none;
  12478. border: 1px solid rgba(0, 0, 0, 0.23);
  12479. border-radius: 4px;
  12480. box-sizing: border-box;
  12481. background: #fff;
  12482. margin: 0 20px 0 0;
  12483. resize: none;
  12484. }
  12485. .select_answer_title {
  12486. text-align: left;
  12487. width: 85%;
  12488. margin-bottom: 10px;
  12489. font-size: 18px;
  12490. color: #8e8e8e;
  12491. }
  12492. .mask {
  12493. background-color: rgb(0 0 0 / 30%);
  12494. /* position: fixed; */
  12495. position: absolute;
  12496. top: 0;
  12497. left: 0;
  12498. width: 100%;
  12499. height: 100%;
  12500. z-index: 90;
  12501. display: flex;
  12502. align-items: center;
  12503. justify-content: center;
  12504. }
  12505. .progressBox {
  12506. width: 300px;
  12507. height: 150px;
  12508. background: #fff;
  12509. border-radius: 10px;
  12510. box-shadow: 0 0 6px 1px #bfbfbf;
  12511. display: flex;
  12512. align-items: center;
  12513. justify-content: center;
  12514. flex-direction: column;
  12515. position: relative;
  12516. color: #6c6c6c;
  12517. }
  12518. .progressBox>>>.el-progress-bar__outer {
  12519. background-color: #d1dfff !important;
  12520. }
  12521. .progressBox .lbox {
  12522. height: 50px;
  12523. font-size: 19px;
  12524. display: flex;
  12525. align-items: center;
  12526. color: #747474;
  12527. }
  12528. .progressBox .lbox img {
  12529. width: 40px;
  12530. margin-right: 20px;
  12531. }
  12532. .closeCss {
  12533. position: absolute;
  12534. top: 8px;
  12535. right: 8px;
  12536. cursor: pointer;
  12537. width: 20px;
  12538. height: 20px;
  12539. }
  12540. .closeCss>img {
  12541. width: 100%;
  12542. height: 100%;
  12543. }
  12544. .updateTips::after {
  12545. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  12546. font-size: 14px;
  12547. margin-left: 20px;
  12548. font-weight: 400;
  12549. color: #ff3a3a;
  12550. }
  12551. .updateMask {
  12552. width: 100%;
  12553. z-index: 3;
  12554. top: 0;
  12555. position: absolute;
  12556. /* background-color: rgba(0,0,0,.3); */
  12557. }
  12558. .t_j_box {
  12559. display: flex;
  12560. }
  12561. .t_j_box span:nth-child(1) {
  12562. width: 15%;
  12563. overflow: hidden;
  12564. margin-right: 10px;
  12565. text-overflow: ellipsis;
  12566. white-space: nowrap;
  12567. }
  12568. .t_j_box span:nth-child(2) {
  12569. width: 30%;
  12570. overflow: hidden;
  12571. text-overflow: ellipsis;
  12572. margin-right: 10px;
  12573. }
  12574. .t_j_box span:nth-child(3) {
  12575. max-width: calc(55% - 20px);
  12576. overflow: hidden;
  12577. text-overflow: ellipsis;
  12578. }
  12579. .sentenBox {
  12580. background: #fff;
  12581. height: 600px;
  12582. overflow: auto;
  12583. background-image: url("../../../assets/icon/conSentences/csBg.png");
  12584. background-position: 102%;
  12585. background-repeat: no-repeat;
  12586. background-size: 60%;
  12587. }
  12588. .sentenBox>.sentenContent {
  12589. padding-bottom: 10px;
  12590. width: 97%;
  12591. margin: 0 auto;
  12592. }
  12593. .sentenBox>.sentenContent+.sentenContent {
  12594. border-top: 1px solid #cbcbcb;
  12595. }
  12596. .addSen {
  12597. background: #409efe;
  12598. width: 90px;
  12599. color: #fff;
  12600. height: 35px;
  12601. text-align: center;
  12602. line-height: 35px;
  12603. border-radius: 5px;
  12604. float: right;
  12605. margin: 10px 20px 0 0;
  12606. cursor: pointer;
  12607. }
  12608. .sentenTop {
  12609. display: flex;
  12610. flex-direction: row;
  12611. flex-wrap: nowrap;
  12612. align-items: center;
  12613. }
  12614. .sentenTop::before {
  12615. content: attr(index);
  12616. background: #3681fc;
  12617. border-radius: 50%;
  12618. color: #fff;
  12619. width: 25px;
  12620. height: 25px;
  12621. min-width: 25px;
  12622. min-height: 25px;
  12623. text-align: center;
  12624. line-height: 25px;
  12625. margin-right: 5px;
  12626. }
  12627. .sentenTop>div:nth-child(2) {
  12628. width: 300px;
  12629. margin: 0 15px;
  12630. }
  12631. .sentenTop>div:nth-child(3) {
  12632. background: #409efe;
  12633. color: #fff;
  12634. width: 65px;
  12635. height: 35px;
  12636. text-align: center;
  12637. line-height: 35px;
  12638. border-radius: 5px;
  12639. cursor: pointer;
  12640. }
  12641. .cardList {
  12642. padding: 20px 0 20px 0;
  12643. display: flex;
  12644. flex-direction: row;
  12645. flex-wrap: wrap;
  12646. align-items: center;
  12647. box-sizing: border-box;
  12648. border-bottom: 1px solid #f4f4f4;
  12649. width: 98%;
  12650. margin: 0 auto;
  12651. }
  12652. .rightCardList {
  12653. display: flex;
  12654. flex-wrap: wrap;
  12655. }
  12656. .cardBox {
  12657. display: flex;
  12658. flex-direction: row;
  12659. flex-wrap: wrap;
  12660. align-items: center;
  12661. align-content: center;
  12662. }
  12663. .isCard,
  12664. .isCard1 {
  12665. width: auto;
  12666. padding: 0 20px;
  12667. height: 65px;
  12668. text-align: center;
  12669. line-height: 65px;
  12670. font-size: 14px;
  12671. cursor: pointer;
  12672. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  12673. background-size: 100% 100%;
  12674. position: relative;
  12675. z-index: 99;
  12676. }
  12677. .isCard1 {
  12678. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  12679. }
  12680. .isCard:hover .deleteWord {
  12681. display: block;
  12682. }
  12683. .isCard>div:nth-child(1),
  12684. .isCard1>div:nth-child(1) {
  12685. white-space: nowrap;
  12686. overflow: hidden;
  12687. text-overflow: ellipsis;
  12688. width: 100%;
  12689. margin: 0 auto;
  12690. }
  12691. .card {
  12692. width: 140px;
  12693. height: 65px;
  12694. }
  12695. .card>img {
  12696. width: 100%;
  12697. height: 100%;
  12698. }
  12699. .rightCardBox {
  12700. width: 98%;
  12701. margin: 10px auto 0;
  12702. }
  12703. .rightCardBox>div:nth-child(1) {
  12704. margin-bottom: 10px;
  12705. }
  12706. .cardCss {
  12707. display: flex;
  12708. flex-direction: column;
  12709. flex-wrap: nowrap;
  12710. align-items: center;
  12711. border-bottom: 3px solid #b4c3d3;
  12712. padding: 0 0 5px 0;
  12713. /* margin-right: 10px; */
  12714. }
  12715. .cardCss>div:nth-child(2) {
  12716. background: #5b7b9d;
  12717. color: #fff;
  12718. width: 20px;
  12719. height: 20px;
  12720. border-radius: 50%;
  12721. text-align: center;
  12722. line-height: 20px;
  12723. }
  12724. .sentenTopBox {
  12725. display: flex;
  12726. flex-direction: row;
  12727. flex-wrap: nowrap;
  12728. align-items: center;
  12729. justify-content: space-between;
  12730. padding: 55px 0 0 20px;
  12731. box-sizing: border-box;
  12732. width: 85%;
  12733. }
  12734. .stepsBottom {
  12735. width: 85%;
  12736. margin-bottom: 20px;
  12737. box-shadow: 0 0 10px 10px #f7f7f7;
  12738. background: #f7f7f7;
  12739. border-radius: 10px;
  12740. overflow: hidden;
  12741. }
  12742. .course_left {
  12743. width: 300px;
  12744. height: auto;
  12745. position: relative;
  12746. }
  12747. .stepsBottom2 {
  12748. width: 300px;
  12749. margin: 10px 0;
  12750. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  12751. /* background: #f7f7f7; */
  12752. border-radius: 8px;
  12753. overflow: hidden;
  12754. height: fit-content;
  12755. position: relative;
  12756. /* transition: all .5s; */
  12757. }
  12758. .navTop {
  12759. background: #53749b;
  12760. color: #fff;
  12761. height: 40px;
  12762. line-height: 40px;
  12763. padding-left: 15px;
  12764. font-size: 18px;
  12765. }
  12766. .navBottom {
  12767. background: #fff;
  12768. height: calc(100vh - 210px);
  12769. overflow: auto;
  12770. }
  12771. .navTask {
  12772. display: flex;
  12773. flex-direction: row;
  12774. flex-wrap: nowrap;
  12775. align-items: center;
  12776. padding: 10px 10px 10px 0;
  12777. cursor: pointer;
  12778. background: #ffffff;
  12779. width: 95%;
  12780. margin: 5px auto 5px;
  12781. box-sizing: border-box;
  12782. border-radius: 5px;
  12783. flex-wrap: wrap;
  12784. position: relative;
  12785. }
  12786. .navTask:hover > .chapter_upload_drag{
  12787. display: block;
  12788. }
  12789. .navTask .chapter_upload_open {
  12790. content: '';
  12791. display: block;
  12792. width: 16px;
  12793. height: 16px;
  12794. background-image: url(../../../assets/icon/new/icon_arrow.png);
  12795. background-size: 100%;
  12796. margin-left: 23px;
  12797. }
  12798. .noImage .chapter_upload_open {
  12799. display: none;
  12800. background-image: unset !important;
  12801. }
  12802. .isNavOpen .chapter_upload_open {
  12803. /* background-image: url(../../assets/icon/new/icon_arrow_a.png) !important; */
  12804. transform: rotate(90deg);
  12805. }
  12806. .isNavTask .chapter_upload_open {
  12807. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  12808. transform: rotate(-90deg);
  12809. }
  12810. .isNavTask.isNavOpen .chapter_upload_open{
  12811. transform: rotate(0deg);
  12812. }
  12813. .dragOverTop {
  12814. border-top: 2px solid #0061FF !important;
  12815. border-radius: 0 !important;
  12816. margin-top: 10px;
  12817. }
  12818. .dragOverBottom {
  12819. border-bottom: 2px solid #0061FF !important;
  12820. border-radius: 0 !important;
  12821. margin-top: 10px;
  12822. }
  12823. .dragOverTop2 {
  12824. border-top: 2px solid #0061FF !important;
  12825. border-radius: 0 !important;
  12826. }
  12827. .dragOverBottom2 {
  12828. border-bottom: 2px solid #0061FF !important;
  12829. border-radius: 0 !important;
  12830. }
  12831. .isNavTask {
  12832. /* background: #3681FC; */
  12833. background: #EEF3FB;
  12834. }
  12835. .isNavTask>.chapter_upload_drag {
  12836. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  12837. }
  12838. .isNavTask .nt_taskName {
  12839. /* color: #fff !important; */
  12840. font-weight: bold !important;
  12841. color: #0061FF !important;
  12842. }
  12843. .isNavTask .nt_taskTitle {
  12844. /* color: #AECCFE !important; */
  12845. font-weight: bold !important;
  12846. color: #0061FF !important;
  12847. }
  12848. .navTask .nt_taskBox {
  12849. width: calc(100% - 40px);
  12850. padding: 0 0 0 5px;
  12851. box-sizing: border-box;
  12852. box-sizing: border-box;
  12853. display: flex;
  12854. flex-direction: row;
  12855. flex-wrap: nowrap;
  12856. align-items: baseline;
  12857. }
  12858. .navTask .nt_taskTitle {
  12859. /* color: #717C8D; */
  12860. color: #060E17;
  12861. line-height: 25px;
  12862. font-size: 16px;
  12863. /* min-width: 66px; */
  12864. }
  12865. .navTask .nt_taskName {
  12866. /* color: #fff; */
  12867. /* max-width: 130px; */
  12868. /* width: 100%; */
  12869. max-width: calc(100% - 66px);
  12870. font-size: 16px;
  12871. color: #060E17;
  12872. /* color: #0E1E33; */
  12873. }
  12874. .navTask .nt_taskName span{
  12875. width: 100%;
  12876. white-space: nowrap;
  12877. overflow: hidden;
  12878. text-overflow: ellipsis;
  12879. display:block;
  12880. }
  12881. .gjBox {
  12882. width: calc(100% - 25px);
  12883. padding: 0 0 0 0;
  12884. box-sizing: border-box;
  12885. border-left: 1px solid #CAD1DC;
  12886. margin-left: 25px;
  12887. }
  12888. .gjBox>div {
  12889. display: flex;
  12890. align-items: center;
  12891. }
  12892. .gjBox>div::before {
  12893. content: '';
  12894. height: 1px;
  12895. width: 10px;
  12896. background: #CAD1DC;
  12897. display: block;
  12898. margin-right: 5px;
  12899. }
  12900. .gjCss {
  12901. display: flex;
  12902. flex-direction: row;
  12903. flex-wrap: nowrap;
  12904. align-items: center;
  12905. padding: 15px 0;
  12906. box-sizing: border-box;
  12907. font-size: 14px;
  12908. cursor: pointer;
  12909. }
  12910. .isGjCss {
  12911. color: #0061ff;
  12912. }
  12913. .groupBox {}
  12914. .groupContent+.groupContent {
  12915. margin-top: 30px;
  12916. }
  12917. .groupTitle {
  12918. font-size: 24px;
  12919. color: rgb(80, 80, 80);
  12920. margin-bottom: 20px;
  12921. }
  12922. .groupName {
  12923. display: flex;
  12924. align-items: center;
  12925. }
  12926. .groupn {
  12927. font-size: 15px;
  12928. margin-right: 10px;
  12929. }
  12930. .groupName+.groupName {
  12931. margin-top: 15px;
  12932. }
  12933. .groupBtn {
  12934. margin-left: 10px;
  12935. }
  12936. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  12937. text-align: left;
  12938. }
  12939. .radioBox>div {
  12940. margin: 10px 0 0 10px;
  12941. }
  12942. .radioBox>>>.el-radio__input,
  12943. .radioBox>>>.el-checkbox__inner {
  12944. margin-left: 10px;
  12945. }
  12946. .radioBox>>>.el-radio__label,
  12947. .radioBox>>>.el-checkbox__label {
  12948. display: flex;
  12949. align-items: center;
  12950. }
  12951. .inImg {
  12952. width: 50px;
  12953. }
  12954. .inImg>img {
  12955. width: 100%;
  12956. height: 100%;
  12957. object-fit: cover;
  12958. }
  12959. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  12960. height: auto;
  12961. padding: 10px;
  12962. margin: 0;
  12963. }
  12964. .upCss>>>.el-upload-list {
  12965. width: 100%;
  12966. }
  12967. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  12968. width: 100%;
  12969. height: 120px;
  12970. object-fit: contain;
  12971. background: unset;
  12972. margin-left: 0;
  12973. }
  12974. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  12975. display: none;
  12976. }
  12977. .tcMember+.tcMember::before {
  12978. content: "、";
  12979. }
  12980. .xzUpImg {
  12981. width: 25px;
  12982. height: 25px;
  12983. min-width: 25px;
  12984. min-height: 25px;
  12985. cursor: pointer;
  12986. margin: 0 10px;
  12987. }
  12988. .xzUpImg>img {
  12989. width: 100%;
  12990. height: 100%;
  12991. }
  12992. .closeCss {
  12993. position: absolute;
  12994. top: 8px;
  12995. right: 8px;
  12996. cursor: pointer;
  12997. width: 20px;
  12998. height: 20px;
  12999. }
  13000. .closeCss>img {
  13001. width: 100%;
  13002. height: 100%;
  13003. }
  13004. .moveBtn {
  13005. display: flex;
  13006. flex-direction: row;
  13007. flex-wrap: nowrap;
  13008. align-items: center;
  13009. width: 55px;
  13010. }
  13011. .timuUpImg {
  13012. display: flex;
  13013. flex-direction: row;
  13014. align-items: center;
  13015. width: 100%;
  13016. margin-right: 10px;
  13017. }
  13018. .timuUpImg>div:nth-child(1) {
  13019. margin-right: 10px;
  13020. display: flex;
  13021. align-items: center;
  13022. width: 100%;
  13023. }
  13024. .timuImgBox {
  13025. margin: 10px 0;
  13026. display: flex;
  13027. flex-direction: column;
  13028. flex-wrap: wrap;
  13029. align-items: flex-start;
  13030. }
  13031. .timuImg {
  13032. width: 100px;
  13033. margin: 5px 0;
  13034. cursor: pointer;
  13035. position: relative;
  13036. }
  13037. .timuImg:hover .deleteWord {
  13038. display: block;
  13039. }
  13040. .deleteWord {
  13041. width: 25px;
  13042. height: 25px;
  13043. position: absolute;
  13044. right: -5px;
  13045. top: -5px;
  13046. cursor: pointer;
  13047. display: none;
  13048. }
  13049. .timuImg>img,
  13050. .deleteWord>img {
  13051. width: 100%;
  13052. height: 100%;
  13053. object-fit: cover;
  13054. }
  13055. .e_add_delete {
  13056. cursor: pointer;
  13057. margin-left: 10px;
  13058. }
  13059. .pType_box {
  13060. margin-top: 30px;
  13061. align-items: flex-end;
  13062. }
  13063. .noneBox {
  13064. height: 100%;
  13065. width: 100%;
  13066. display: flex;
  13067. align-items: center;
  13068. justify-content: center;
  13069. margin-top: 150px;
  13070. }
  13071. .noneBox>img {
  13072. width: 300px;
  13073. }
  13074. .textarea_css {
  13075. display: block;
  13076. resize: none;
  13077. padding: 10px 15px;
  13078. line-height: 1.5;
  13079. box-sizing: border-box;
  13080. width: 100%;
  13081. font-size: 14px;
  13082. color: #606266;
  13083. background-color: #FFF;
  13084. background-image: none;
  13085. border: 1px solid #DCDFE6;
  13086. border-radius: 4px;
  13087. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  13088. outline: none;
  13089. overflow: hidden;
  13090. height: 46px;
  13091. font-family: 'Microsoft YaHei';
  13092. }
  13093. .textarea_css::-webkit-input-placeholder {
  13094. color: #C0C4CC
  13095. }
  13096. .textarea_css:focus {
  13097. border-color: #409EFF;
  13098. outline: 0;
  13099. }
  13100. .moveBtn2 {
  13101. flex-direction: column;
  13102. width: fit-content;
  13103. margin: 0 10px 0 10px;
  13104. }
  13105. .moveBtn2 .chapter_upload_down,
  13106. .moveBtn2 .chapter_upload_up {
  13107. width: 16px;
  13108. height: 16px;
  13109. }
  13110. .moveBtn2 .chapter_upload_up::after,
  13111. .moveBtn2 .chapter_upload_down::after {
  13112. width: 10px;
  13113. height: 10px;
  13114. }
  13115. .fullStyle>>>.el-dialog__body {
  13116. height: calc(100% - 125px) !important;
  13117. box-sizing: border-box;
  13118. }
  13119. .fullStyle>>>.el-dialog {
  13120. width: 100% !important;
  13121. max-width: 100% !important;
  13122. height: 100% !important;
  13123. margin: 0 !important;
  13124. }
  13125. .fullStyle {
  13126. width: 100% !important;
  13127. max-width: 100% !important;
  13128. height: 100% !important;
  13129. margin: 0 auto !important;
  13130. }
  13131. .fullStyle1>>>.el-dialog__body {
  13132. height: auto !important;
  13133. }
  13134. .wb_j_box_btn {
  13135. width: calc(100% - 30px);
  13136. display: flex;
  13137. height: 40px;
  13138. border: 1.5px solid #CAD1DC;
  13139. border-radius: 4px;
  13140. box-sizing: border-box;
  13141. align-items: center;
  13142. font-size: 14px;
  13143. cursor: pointer;
  13144. overflow: hidden;
  13145. }
  13146. .wb_j_box_btn:hover {
  13147. border: 1.5px solid #0061FF;
  13148. }
  13149. .wb_j_box_title {
  13150. background: #F0F4FA;
  13151. height: 100%;
  13152. line-height: 40px;
  13153. width: 90px;
  13154. text-align: center;
  13155. color: #060E17;
  13156. border-right: 1.5px solid #CAD1DC;
  13157. box-sizing: border-box;
  13158. }
  13159. .wb_j_box_btn_c {
  13160. width: calc(100% - 90px);
  13161. padding: 0 35px 0 10px;
  13162. box-sizing: border-box;
  13163. position: relative;
  13164. }
  13165. .wb_j_box_span {
  13166. width: 100%;
  13167. overflow: hidden;
  13168. white-space: nowrap;
  13169. text-overflow: ellipsis;
  13170. word-wrap: break-word;
  13171. color: #717C8D;
  13172. }
  13173. .wb_j_box_arrow {
  13174. content: '';
  13175. width: 14px;
  13176. height: 14px;
  13177. background: url(../../../assets/icon/new/u_arrow.png);
  13178. background-size: 100% 100%;
  13179. position: absolute;
  13180. right: 12px;
  13181. top: 50%;
  13182. transform: translateY(-50%);
  13183. }
  13184. .check_classBox {
  13185. height: 400px;
  13186. display: flex;
  13187. border-top: 1.5px solid #E7EBF1;
  13188. border-bottom: 1.5px solid #E7EBF1;
  13189. }
  13190. .check_class_right {
  13191. width: 130px;
  13192. border-right: 1px solid #E7EBF1;
  13193. display: flex;
  13194. align-items: center;
  13195. flex-direction: column;
  13196. height: 100%;
  13197. overflow: auto;
  13198. padding: 15px 0;
  13199. box-sizing: border-box;
  13200. }
  13201. .check_class {
  13202. width: 85%;
  13203. border-radius: 5px;
  13204. height: 30px;
  13205. line-height: 30px;
  13206. text-align: center;
  13207. padding: 0 10px;
  13208. box-sizing: border-box;
  13209. cursor: pointer;
  13210. white-space: nowrap;
  13211. overflow: hidden;
  13212. text-overflow: ellipsis;
  13213. }
  13214. .check_class.activeX {
  13215. background: #E0EAFB;
  13216. color: #3681FC;
  13217. font-weight: 700;
  13218. }
  13219. .check_class+.check_class {
  13220. margin-top: 15px;
  13221. }
  13222. .check_class_left {
  13223. background: #FAFAFA;
  13224. width: calc(100% - 130px);
  13225. padding: 15px;
  13226. box-sizing: border-box;
  13227. }
  13228. .check_class_all_box {
  13229. display: flex;
  13230. margin-bottom: 10px;
  13231. }
  13232. .all_check {
  13233. display: flex;
  13234. align-items: center;
  13235. padding: 2px 0 0;
  13236. margin-left: 10px;
  13237. }
  13238. .all_check>>>.el-checkbox__label {
  13239. line-height: 18px;
  13240. }
  13241. .check_class_left_title {
  13242. font-size: 16px;
  13243. font-weight: 700;
  13244. }
  13245. .check_class_item {
  13246. display: flex;
  13247. flex-wrap: wrap;
  13248. height: calc(100% - 45px);
  13249. overflow: auto;
  13250. justify-content: flex-start;
  13251. align-items: flex-start;
  13252. align-content: flex-start;
  13253. }
  13254. .class_item:first-child {
  13255. /* margin: 0 15px 15px 67px; */
  13256. }
  13257. .class_item {
  13258. margin: 0 15px 15px 0;
  13259. }
  13260. .class_item:hover>>>.el-checkbox__label {
  13261. color: #409EFF;
  13262. }
  13263. .class_item>>>.el-checkbox__label {
  13264. color: #0E1E33;
  13265. }
  13266. .class_item:hover>>>.el-checkbox__inner {
  13267. border-color: #409EFF;
  13268. }
  13269. .class_item>>>.el-checkbox,
  13270. .class_item>>>.el-checkbox__input {
  13271. display: flex;
  13272. align-items: center;
  13273. }
  13274. .taskTitle{
  13275. font-size: 20px;
  13276. font-weight: bold;
  13277. margin-bottom: 35px;
  13278. }
  13279. .taskTitle:after{
  13280. content: '';
  13281. width: 100%;
  13282. display: block;
  13283. height: 1px;
  13284. background: #CAD1DC;
  13285. position: absolute;
  13286. left: 0;
  13287. margin: 15px 0 0;
  13288. }
  13289. </style>