addCourse.vue 373 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;" v-loading="isLoading2">
  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. '/synergyCourse?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org +
  18. '&role=' +
  19. role,
  20. }">{{ lang.CocoNote }}</el-breadcrumb-item>
  21. <el-breadcrumb-item>
  22. <span style="color: rgb(15, 126, 255)">{{ lang.EditCoconote }}</span>
  23. </el-breadcrumb-item>
  24. </el-breadcrumb>
  25. </div>
  26. <div class="r_pub_button_retrun" @click="lastSteps()">{{ lang.Back }}</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;position:relative;">
  35. <div class="updateMask" :style="{
  36. height: '100%',
  37. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  38. <div>
  39. <div class="basic_box" style="padding: 0;">
  40. <div class="big_box">
  41. <div class="left_first">
  42. <div :class="{
  43. updateTips: cid && userid != courseUserid && role != '1',
  44. }">
  45. <div style="width: 100%;">
  46. <div class="course_input_box">
  47. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  48. <input type="text" :placeholder="lang.NoteName" class="binfo_input" v-model="courseName"
  49. 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;"
  50. @change="changeName" />
  51. <!-- background: #f6f6f6; -->
  52. <!-- <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  53. style="justify-content: center;width: 200px;"></el-switch> -->
  54. </div>
  55. </div>
  56. </div>
  57. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  58. <span>{{ lang.type }}</span>
  59. <!-- 学科+ 主题+ 未来+ -->
  60. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  61. style="display: flex; align-items: center">
  62. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  63. <el-radio :label="item.name">{{
  64. item.name
  65. }}</el-radio>
  66. </div>
  67. </el-radio-group>
  68. </div>
  69. <div class="both">
  70. <div class="choose">
  71. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  72. <span v-if="CourseTypeJson[item.id].length > 0 &&
  73. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  74. ? pTypeCheck.indexOf(item.id) != -1
  75. : true)
  76. ">{{ item.name }}:</span>
  77. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  78. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  79. ? pTypeCheck.indexOf(item.id) != -1
  80. : true)
  81. ">
  82. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  83. item1.name }}</el-checkbox>
  84. </el-checkbox-group>
  85. <!-- <div
  86. v-else
  87. style="font-size: 14px; margin-left: -8px"
  88. >
  89. 暂无
  90. </div> -->
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="right_first">
  96. <!-- <div class="ai_box">
  97. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  98. </div> -->
  99. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">{{ lang.Cover }}</div>
  100. <div style="width: 100%;">
  101. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  102. <img src="../../../assets/icon/addPoster.png" alt="" />
  103. <div>{{ lang.AddCoverimage }}</div>
  104. </div>
  105. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  106. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  107. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  108. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  109. <i class="el-icon-plus"></i>
  110. </el-upload>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="whiteBg" style="margin-top: 10px;">
  118. <div class="wb_j_box">
  119. <div class="wb_j_box_content">
  120. <div class="wb_j_box_btn" @click="openMember">
  121. <div class="wb_j_box_title">{{ lang.Collaborator }}</div>
  122. <div class="wb_j_box_btn_c">
  123. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  124. v-if="checkboxList3.length" popper-class="text_tooltip2">
  125. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  126. </el-tooltip>
  127. <div v-else class="wb_j_box_span">{{ lang.Psac }}</div>
  128. <div class="wb_j_box_arrow"></div>
  129. </div>
  130. </div>
  131. </div>
  132. <div style="margin-left: auto;">
  133. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask"> {{ lang.SMARTPaste }}</button>
  134. </div>
  135. </div>
  136. </div>
  137. <div class="whiteBg" style="margin-top: 10px">
  138. <groupBox :cid="cid" :people="checkboxList3" :classList="classList" :courseDetail="courseDetail"
  139. :userid="userid" :type="1" classId="" :oid="oid" v-if="cid" @open2="open2"></groupBox>
  140. <div v-else class="tipsBox">{{ lang.Pleaseaddgroups }}</div>
  141. </div>
  142. <div class="whiteBg" style="border-radius: 0; background:#F0F2F5;" v-if="false">
  143. <div style="display: flex">
  144. <div class="course_left">
  145. <div class="stepsBottom2">
  146. <div class="navBottom" :style="{ height: heightPx }">
  147. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  148. .taskJson" :key="tIndex">
  149. <div @click="goToTask(tIndex)" class="navTask" :class="{
  150. isNavTask:
  151. isClickColor > 0 && isClickColor == tIndex + 1,
  152. isNavOpen: t.toolOpen
  153. }">
  154. <div class="nt_taskBox">
  155. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  156. <div class="nt_taskName">
  157. <el-tooltip effect="light" :content="t.task" placement="top">
  158. <span>{{ t.task }}</span>
  159. </el-tooltip>
  160. </div>
  161. </div>
  162. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  163. 1
  164. ">
  165. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  166. @click.stop="taskMove(1, tIndex)"></div>
  167. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  168. @click.stop="taskMove(2, tIndex)"></div>
  169. </div>
  170. </div>
  171. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  172. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  173. @click="jumpGj(tIndex, toolIndex2)">
  174. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  175. <div>工具{{ toolIndex2 + 1 }}:</div>
  176. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="basic_box2">
  185. <div style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  186. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  187. <div class="taskBorder" style="padding: 20px 20px 10px;">
  188. <div class="basic_box" style="
  189. margin: 0;
  190. min-height: 0;
  191. padding: 10px 0 0 !important;
  192. ">
  193. <div style="
  194. display: flex;
  195. margin: 0 0 20px 0;
  196. flex-direction: row;
  197. justify-content: space-between;
  198. align-items: center;
  199. ">
  200. <div class="lineTitle">学习内容</div>
  201. <div v-if="!item.taskJson[0].isFoldchapter" class="show_taskD show" @click="foldC(0)"><img
  202. src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  203. <div v-else class="show_taskD" @click="foldC(0)"><img
  204. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  205. </div>
  206. <div v-if="!item.taskJson[0].isFoldchapter">
  207. <div class="add_chapters_box add_c_none" v-if="item.taskJson[0].chapterData &&
  208. item.taskJson[0].chapterData.length == 0
  209. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  210. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  211. <div class="chapter_upload" v-for="(item1, index1) in item.taskJson[0]
  212. .chapterData" :key="item1.id" @click="
  213. getChapterData(
  214. $event,
  215. unitIndex,
  216. index,
  217. index1,
  218. item1.type
  219. )
  220. ">
  221. <div class="chapter_upload_t" style="width: 100%"></div>
  222. <div class="chapter_upload_o" style="
  223. position: relative;
  224. display: flex;
  225. align-items: center;
  226. ">
  227. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  228. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  229. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  230. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  231. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  232. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  233. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  234. </div>
  235. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  236. </div>
  237. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  238. </div>
  239. </div>
  240. <div class="chapter_upload_n">
  241. <input readonly="true" v-if="item1.type == 2 ||
  242. item1.type == 3 ||
  243. item1.type == 12 ||
  244. item1.type == 13 ||
  245. item1.type == 7
  246. " :placeholder="item1.name" @click="
  247. updataVideoT(
  248. $event,
  249. unitIndex,
  250. 0,
  251. index1
  252. )
  253. " style="
  254. border: none;
  255. outline: none;
  256. width: 80%;
  257. minwidth: 215px;
  258. z-index: 99;
  259. font-size: 14px;
  260. white-space: nowrap;
  261. overflow: hidden;
  262. text-overflow: ellipsis;
  263. " />
  264. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  265. border: none;
  266. outline: none;
  267. width: 80%;
  268. white-space: nowrap;
  269. overflow: hidden;
  270. text-overflow: ellipsis;
  271. " readonly="true" @click="selectAttText(0, index1)" />
  272. <input :placeholder="item1.title ? item1.title : '链接'
  273. " v-if="item1.type == 8" style="
  274. border: none;
  275. outline: none;
  276. width: 80%;
  277. white-space: nowrap;
  278. overflow: hidden;
  279. text-overflow: ellipsis;
  280. " readonly="true" @click="selectLine(0, index1)" />
  281. <input :placeholder="item1.title ? item1.title : '链接'
  282. " v-if="item1.type == 14" style="
  283. border: none;
  284. outline: none;
  285. width: 80%;
  286. white-space: nowrap;
  287. overflow: hidden;
  288. text-overflow: ellipsis;
  289. " readonly="true" @click="openUpdateSource(0, index1)" />
  290. </div>
  291. <div class="chapter_upload_ic">
  292. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  293. </div>
  294. <div class="chapter_upload_ud" style="z-index: 99">
  295. <div class="chapter_upload_up" @click.stop="
  296. upCd(
  297. $event,
  298. unitIndex,
  299. index,
  300. 0,
  301. index1
  302. )
  303. "></div>
  304. <div class="chapter_upload_down" @click.stop="
  305. downCd(
  306. $event,
  307. unitIndex,
  308. index,
  309. 0,
  310. index1
  311. )
  312. "></div>
  313. </div>
  314. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  315. item1.type == 3 ||
  316. item1.type == 12 ||
  317. item1.type == 13 ||
  318. item1.type == 7
  319. " @click.stop="
  320. updataVideoT(
  321. $event,
  322. unitIndex,
  323. 0,
  324. index1
  325. )
  326. ">
  327. <div></div>
  328. </div>
  329. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  330. @click="selectAttText(0, index1)">
  331. <div></div>
  332. </div>
  333. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  334. @click="selectLine(0, index1)">
  335. <div></div>
  336. </div>
  337. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  338. @click="openUpdateSource(0, index1)">
  339. <div></div>
  340. </div>
  341. <div class="chapter_upload_ic_r" @click.stop="
  342. deleteChapterData(
  343. $event,
  344. unitIndex,
  345. index,
  346. index1,
  347. 0
  348. )
  349. ">
  350. <div></div>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. <div class="add_info_box" v-if="!item.taskJson[0].isFoldchapter">
  358. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  359. 添加文件
  360. <input type="file" accept="*" style="display: none" v-if="inputShow"
  361. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  362. </button>
  363. <!-- <button class="info_btn" @click="addImg($event)">
  364. 添加视频
  365. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  366. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, 0)
  367. " />
  368. </button>
  369. <button class="info_btn" @click="addImg($event)">
  370. 添加文档
  371. <input type="file"
  372. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  373. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, 0)
  374. " />
  375. </button> -->
  376. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  377. 添加图文
  378. </button>
  379. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  380. 添加链接
  381. </button>
  382. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  383. 嵌入代码
  384. </button>
  385. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  386. 添加资源
  387. </button>
  388. <!-- <button class="info_btn" @click="addImg($event)">
  389. 其他附件
  390. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  391. " />
  392. </button> -->
  393. </div>
  394. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  395. .proVisible
  396. " class="mask">
  397. <div class="progressBox">
  398. <!-- <div id="closePro" class="closeCss">
  399. <img src="../../../../assets/icon/close.png" alt />
  400. </div> -->
  401. <div class="lbox">
  402. <img src="../../../assets/loading.gif" />上传中,请稍后
  403. </div>
  404. <div style="margin-bottom: 10px">
  405. <span>{{
  406. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  407. .isFinishSize
  408. }}M</span>
  409. /
  410. <span>{{
  411. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  412. .isAllSize
  413. }}M</span>
  414. </div>
  415. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  416. .progress
  417. ? unitJson[unitIndex].chapterInfo[0]
  418. .taskJson[0].progress
  419. : 0
  420. " style="width: 80%"></el-progress>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. <div class="taskBorder" :style="{
  426. minHeight: unitJson[unitIndex].easy && 'unset',
  427. }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  428. <div v-if="unitJson[unitIndex].easy != 1">
  429. <div :style="{
  430. marginBottom:
  431. unitJson[unitIndex].easy == 3 ||
  432. (unitJson[unitIndex].easy == 5 &&
  433. itemTask.taskType == 1)
  434. ? '75px'
  435. : '0',
  436. }">
  437. <div style="
  438. display: flex;
  439. margin: 0px 0 20px;
  440. flex-direction: row;
  441. justify-content: flex-start;
  442. align-items: center;
  443. ">
  444. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  445. </div>
  446. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  447. flex-direction: row;
  448. justify-content: flex-start;
  449. align-items: center;
  450. ">
  451. <!-- <div class="cc_title">
  452. 任务{{ itemTaskIndex + 1 }}
  453. </div> -->
  454. <div class="cc_input">
  455. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  456. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  457. itemTaskIndex
  458. ].task
  459. " />
  460. <div v-if="itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  461. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  462. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  463. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  464. </div>
  465. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  466. </div>
  467. </div>
  468. </div>
  469. <div style="margin: 25px 0" v-if="itemTask.isFold2">
  470. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  471. itemTaskIndex
  472. ].taskDetail
  473. " @change="change"></editor-bar> -->
  474. <textarea rows="2" v-autoHeight="70" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  475. itemTaskIndex
  476. ].taskDetail
  477. "></textarea>
  478. </div>
  479. <div class="toolChoose" style="margin: 20px 0">
  480. <div class="tools">
  481. <div class="leftTools" style="
  482. width: 100%;
  483. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  484. <div style="
  485. display: flex;
  486. flex-direction: row;
  487. align-items: baseline;
  488. flex-wrap: nowrap;
  489. justify-content: flex-start;
  490. position: relative;
  491. ">
  492. <div :id="'gj' + itemTaskIndex + '' + toolIndex"
  493. style="margin-right: 20px; font-weight: bold">
  494. 步骤 {{ toolIndex + 1 }} :
  495. </div>
  496. <div class="chooseWho">
  497. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  498. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = true), $forceUpdate()">
  499. 互动类
  500. </div>
  501. <div :class="itemTool.toolType == 1
  502. ? 'isChooseActive'
  503. : ''
  504. " @click="
  505. (itemTool.toolType = 1), (itemTool.isFold3 = true), $forceUpdate()
  506. ">
  507. 思维类
  508. </div>
  509. <div :class="itemTool.toolType == 6
  510. ? 'isChooseActive'
  511. : ''
  512. " @click="
  513. (itemTool.toolType = 6), (itemTool.isFold3 = true), $forceUpdate()
  514. ">
  515. 协作类
  516. </div>
  517. <div :class="itemTool.toolType == 2
  518. ? 'isChooseActive'
  519. : ''
  520. " @click="
  521. (itemTool.toolType = 2), (itemTool.isFold3 = true), $forceUpdate()
  522. ">
  523. 测评类
  524. </div>
  525. <div :class="itemTool.toolType == 7
  526. ? 'isChooseActive'
  527. : ''
  528. " @click="
  529. (itemTool.toolType = 7), (itemTool.isFold3 = true), $forceUpdate()
  530. ">
  531. 评价类
  532. </div>
  533. <div :class="itemTool.toolType == 3
  534. ? 'isChooseActive'
  535. : ''
  536. " @click="
  537. (itemTool.toolType = 3), (itemTool.isFold3 = true), $forceUpdate()
  538. ">
  539. 编程类
  540. </div>
  541. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  542. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = true), $forceUpdate()">
  543. 学科类
  544. </div>
  545. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  546. " @click="(itemTool.toolType = 4), $forceUpdate()">
  547. 其他
  548. </div> -->
  549. </div>
  550. <div v-if="itemTool.isFold3" class="show_toolD show"
  551. @click="fold3(itemTaskIndex, toolIndex)"
  552. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  553. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  554. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  555. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  556. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  557. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  558. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
  559. </div>
  560. <div style="min-height: 163px" v-show="itemTool.isFold3">
  561. <div class="toolSort" v-if="itemTool.toolType == 0">
  562. <!-- <div class="tool">
  563. <div
  564. class="whiteBIcon"
  565. @click="addTools(8, itemTaskIndex, toolIndex)"
  566. >
  567. <img src="../../../assets/icon/secondToolList/library.png" alt />
  568. <div style="margin: 5px 0">素材库</div>
  569. </div>
  570. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  571. <img
  572. src="../../../assets/icon/checkNo.png"
  573. alt
  574. v-if="itemTool.tool.indexOf(8) == -1"
  575. />
  576. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  577. alt /><span>已选择</span></div>
  578. </div>
  579. </div>-->
  580. <!-- <div class="tool">
  581. <div
  582. class="whiteBIcon"
  583. @click="addTools(17, itemTaskIndex, toolIndex)"
  584. >
  585. <img
  586. src="../../../assets/icon/secondToolList/library.png"
  587. alt
  588. />
  589. <div style="margin: 5px 0">学习资料</div>
  590. </div>
  591. <div
  592. class="check"
  593. @click="addTools(17, itemTaskIndex, toolIndex)"
  594. >
  595. <img
  596. src="../../../assets/icon/checkNo.png"
  597. alt
  598. v-if="itemTool.tool.indexOf(17) == -1"
  599. />
  600. <img
  601. src="../../../assets/icon/checkedIs.png"
  602. alt
  603. v-else
  604. />
  605. </div>10
  606. </div> -->
  607. <div class="tool">
  608. <div class="whiteBIcon" @click="
  609. openTools(itemTaskIndex, 10, toolIndex)
  610. ">
  611. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  612. <div style="margin: 5px 0">倒计时</div>
  613. </div>
  614. <div class="check" @click="
  615. addTools(10, itemTaskIndex, toolIndex)
  616. ">
  617. <img src="../../../assets/icon/checkNo.png" alt
  618. v-if="itemTool.tool.indexOf(10) == -1" />
  619. <div class="checkDiv" v-else>
  620. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  621. </div>
  622. </div>
  623. </div>
  624. <div class="tool">
  625. <div class="whiteBIcon" @click="addTools(65, itemTaskIndex, toolIndex)">
  626. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  627. <div style="margin: 5px 0">挑人</div>
  628. </div>
  629. <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  630. <img src="../../../assets/icon/checkNo.png" alt
  631. v-if="itemTool.tool.indexOf(65) == -1" />
  632. <div class="checkDiv" v-else>
  633. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  634. </div>
  635. </div>
  636. </div>
  637. <!-- <div class="tool">
  638. <div
  639. class="whiteBIcon"
  640. @click="
  641. openTools(itemTaskIndex, 49, toolIndex)
  642. "
  643. >
  644. <img
  645. src="../../../assets/icon/fourthToolList/group.png"
  646. alt
  647. />
  648. <div style="margin: 5px 0">学生分组</div>
  649. </div>
  650. <div
  651. class="check"
  652. @click="
  653. addTools(49, itemTaskIndex, toolIndex)
  654. "
  655. >
  656. <img
  657. src="../../../assets/icon/checkNo.png"
  658. alt
  659. v-if="itemTool.tool.indexOf(49) == -1"
  660. />
  661. <div class="checkDiv" v-else>
  662. <img
  663. src="../../../assets/icon/checkedIs.png"
  664. alt
  665. /><span>已选择</span>
  666. </div>
  667. </div>
  668. </div> -->
  669. <!-- <div class="tool">
  670. <div class="whiteBIcon" @click="
  671. openTools(itemTaskIndex, 62, toolIndex)
  672. ">
  673. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  674. <div style="margin: 5px 0">交互视频</div>
  675. </div>
  676. <div class="check" @click="
  677. addTools(62, itemTaskIndex, toolIndex)
  678. ">
  679. <img src="../../../assets/icon/checkNo.png" alt
  680. v-if="itemTool.tool.indexOf(62) == -1" />
  681. <div class="checkDiv" v-else>
  682. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  683. </div>
  684. </div>
  685. </div> -->
  686. </div>
  687. <div class="toolSort" v-if="itemTool.toolType == 1">
  688. <div class="tool">
  689. <div class="whiteBIcon" @click="
  690. addTools(7, itemTaskIndex, toolIndex)
  691. ">
  692. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  693. <div style="margin: 5px 0">思维网格</div>
  694. </div>
  695. <div class="check" @click="
  696. addTools(7, itemTaskIndex, toolIndex)
  697. ">
  698. <img src="../../../assets/icon/checkNo.png" alt
  699. v-if="itemTool.tool.indexOf(7) == -1" />
  700. <div class="checkDiv" v-else>
  701. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  702. </div>
  703. </div>
  704. </div>
  705. <div class="tool">
  706. <div class="whiteBIcon" @click="
  707. openTools(itemTaskIndex, 1, toolIndex)
  708. ">
  709. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  710. <div style="margin: 5px 0">电子白板</div>
  711. </div>
  712. <div class="check" @click="
  713. addTools(1, itemTaskIndex, toolIndex)
  714. ">
  715. <img src="../../../assets/icon/checkNo.png" alt
  716. v-if="itemTool.tool.indexOf(1) == -1" />
  717. <div class="checkDiv" v-else>
  718. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  719. </div>
  720. </div>
  721. </div>
  722. <!-- <div class="tool">
  723. <div
  724. class="whiteBIcon"
  725. @click="addTools(2, itemTaskIndex, toolIndex)"
  726. >
  727. <img
  728. src="../../../assets/icon/secondToolList/note.png"
  729. alt
  730. />
  731. <div style="margin: 5px 0">便签</div>
  732. </div>
  733. <div
  734. class="check"
  735. @click="addTools(2, itemTaskIndex, toolIndex)"
  736. >
  737. <img
  738. src="../../../assets/icon/checkNo.png"
  739. alt
  740. v-if="itemTool.tool.indexOf(2) == -1"
  741. />
  742. <div class="checkDiv" v-else>
  743. <img
  744. src="../../../assets/icon/checkedIs.png"
  745. alt
  746. /><span>已选择</span>
  747. </div>
  748. </div>
  749. </div> -->
  750. <!-- <div class="tool">
  751. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  752. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  753. <div style="margin: 5px 0">协同文档</div>
  754. </div>
  755. <div
  756. class="check"
  757. @click="addTools(6, itemTaskIndex, toolIndex)"
  758. >
  759. <img
  760. src="../../../assets/icon/checkNo.png"
  761. alt
  762. v-if="itemTool.tool.indexOf(6) == -1"
  763. />
  764. <div class="checkDiv" v-else>
  765. <img
  766. src="../../../assets/icon/checkedIs.png"
  767. alt
  768. /><span>已选择</span>
  769. </div>
  770. </div>
  771. </div> -->
  772. <div class="tool">
  773. <div class="whiteBIcon" @click="
  774. openTools(itemTaskIndex, 52, toolIndex)
  775. ">
  776. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  777. <div style="margin: 5px 0">文档</div>
  778. </div>
  779. <div class="check" @click="
  780. addTools(52, itemTaskIndex, toolIndex)
  781. ">
  782. <img src="../../../assets/icon/checkNo.png" alt
  783. v-if="itemTool.tool.indexOf(52) == -1" />
  784. <div class="checkDiv" v-else>
  785. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  786. </div>
  787. </div>
  788. </div>
  789. <div class="tool">
  790. <div class="whiteBIcon" @click="
  791. openTools(itemTaskIndex, 3, toolIndex)
  792. ">
  793. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  794. <div style="margin: 5px 0">思维导图</div>
  795. </div>
  796. <div class="check" @click="
  797. addTools(3, itemTaskIndex, toolIndex)
  798. ">
  799. <img src="../../../assets/icon/checkNo.png" alt
  800. v-if="itemTool.tool.indexOf(3) == -1" />
  801. <div class="checkDiv" v-else>
  802. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  803. </div>
  804. </div>
  805. </div>
  806. <div class="tool">
  807. <div class="whiteBIcon" @click="
  808. openTools(itemTaskIndex, 48, toolIndex)
  809. ">
  810. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  811. <div style="margin: 5px 0">表格</div>
  812. </div>
  813. <div class="check" @click="
  814. addTools(48, itemTaskIndex, toolIndex)
  815. ">
  816. <img src="../../../assets/icon/checkNo.png" alt
  817. v-if="itemTool.tool.indexOf(48) == -1" />
  818. <div class="checkDiv" v-else>
  819. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  820. </div>
  821. </div>
  822. </div>
  823. </div>
  824. <div class="toolSort" v-if="itemTool.toolType == 6">
  825. <div class="tool">
  826. <div class="whiteBIcon" @click="
  827. openTools(itemTaskIndex, 49, toolIndex)
  828. ">
  829. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  830. <div style="margin: 5px 0">学生分组</div>
  831. </div>
  832. <div class="check" @click="
  833. addTools(49, itemTaskIndex, toolIndex)
  834. ">
  835. <img src="../../../assets/icon/checkNo.png" alt
  836. v-if="itemTool.tool.indexOf(49) == -1" />
  837. <div class="checkDiv" v-else>
  838. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  839. </div>
  840. </div>
  841. </div>
  842. </div>
  843. <div class="toolSort" v-if="itemTool.toolType == 2">
  844. <!-- <div class="tool">
  845. <div
  846. class="whiteBIcon"
  847. @click="addTools(5, itemTaskIndex, toolIndex)"
  848. >
  849. <img
  850. src="../../../assets/icon/thirdToolList/score.png"
  851. alt
  852. />
  853. <div style="margin: 5px 0">量规评分</div>
  854. </div>
  855. <div
  856. class="check"
  857. @click="addTools(5, itemTaskIndex, toolIndex)"
  858. >
  859. <img
  860. src="../../../assets/icon/checkNo.png"
  861. alt
  862. v-if="itemTool.tool.indexOf(5) == -1"
  863. />
  864. <img
  865. src="../../../assets/icon/checkedIs.png"
  866. alt
  867. v-else
  868. />
  869. </div>
  870. </div>-->
  871. <div class="tool">
  872. <div class="whiteBIcon" @click="
  873. openTools(itemTaskIndex, 4, toolIndex)
  874. ">
  875. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  876. <div style="margin: 5px 0">问卷调查</div>
  877. </div>
  878. <div class="check" @click="
  879. addTools(4, itemTaskIndex, toolIndex)
  880. ">
  881. <img src="../../../assets/icon/checkNo.png" alt
  882. v-if="itemTool.tool.indexOf(4) == -1" />
  883. <div class="checkDiv" v-else>
  884. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  885. </div>
  886. </div>
  887. </div>
  888. <div class="tool">
  889. <div class="whiteBIcon" @click="
  890. openTools(itemTaskIndex, 45, toolIndex)
  891. ">
  892. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  893. <div style="margin: 5px 0">选择题</div>
  894. </div>
  895. <div class="check" @click="
  896. addTools(45, itemTaskIndex, toolIndex)
  897. ">
  898. <img src="../../../assets/icon/checkNo.png" alt
  899. v-if="itemTool.tool.indexOf(45) == -1" />
  900. <div class="checkDiv" v-else>
  901. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  902. </div>
  903. </div>
  904. </div>
  905. <div class="tool">
  906. <div class="whiteBIcon" @click="
  907. openTools(itemTaskIndex, 15, toolIndex)
  908. ">
  909. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  910. <div style="margin: 5px 0">问答</div>
  911. </div>
  912. <div class="check" @click="
  913. addTools(15, itemTaskIndex, toolIndex)
  914. ">
  915. <img src="../../../assets/icon/checkNo.png" alt
  916. v-if="itemTool.tool.indexOf(15) == -1" />
  917. <div class="checkDiv" v-else>
  918. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  919. </div>
  920. </div>
  921. </div>
  922. <div class="tool">
  923. <div class="whiteBIcon" @click="
  924. addTools(16, itemTaskIndex, toolIndex)
  925. ">
  926. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  927. <div style="margin: 5px 0">作业提交</div>
  928. </div>
  929. <div class="check" @click="
  930. addTools(16, itemTaskIndex, toolIndex)
  931. ">
  932. <img src="../../../assets/icon/checkNo.png" alt
  933. v-if="itemTool.tool.indexOf(16) == -1" />
  934. <div class="checkDiv" v-else>
  935. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  936. </div>
  937. </div>
  938. </div>
  939. <div class="tool">
  940. <div class="whiteBIcon" @click="
  941. addTools(50, itemTaskIndex, toolIndex)
  942. ">
  943. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  944. <div style="margin: 5px 0">批量上传</div>
  945. </div>
  946. <div class="check" @click="
  947. addTools(50, itemTaskIndex, toolIndex)
  948. ">
  949. <img src="../../../assets/icon/checkNo.png" alt
  950. v-if="itemTool.tool.indexOf(50) == -1" />
  951. <div class="checkDiv" v-else>
  952. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  953. </div>
  954. </div>
  955. </div>
  956. <!-- <div class="tool">
  957. <div
  958. class="whiteBIcon"
  959. @click="
  960. openTools(itemTaskIndex, 40, toolIndex)
  961. "
  962. >
  963. <img
  964. src="../../../assets/icon/thirdToolList/eval.png"
  965. alt
  966. />
  967. <div style="margin: 5px 0">个人评价</div>
  968. </div>
  969. <div
  970. class="check"
  971. @click="
  972. addTools(40, itemTaskIndex, toolIndex)
  973. "
  974. >
  975. <img
  976. src="../../../assets/icon/checkNo.png"
  977. alt
  978. v-if="itemTool.tool.indexOf(40) == -1"
  979. />
  980. <div class="checkDiv" v-else>
  981. <img
  982. src="../../../assets/icon/checkedIs.png"
  983. alt
  984. /><span>已选择</span>
  985. </div>
  986. </div>
  987. </div> -->
  988. <div class="tool">
  989. <div class="whiteBIcon" @click="
  990. openTools(itemTaskIndex, 41, toolIndex)
  991. ">
  992. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  993. <div style="margin: 5px 0">选择匹配</div>
  994. </div>
  995. <div class="check" @click="
  996. addTools(41, itemTaskIndex, toolIndex)
  997. ">
  998. <img src="../../../assets/icon/checkNo.png" alt
  999. v-if="itemTool.tool.indexOf(41) == -1" />
  1000. <div class="checkDiv" v-else>
  1001. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1002. </div>
  1003. </div>
  1004. </div>
  1005. <div class="tool">
  1006. <div class="whiteBIcon" @click="
  1007. openTools(itemTaskIndex, 47, toolIndex)
  1008. ">
  1009. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1010. <div style="margin: 5px 0">排序</div>
  1011. </div>
  1012. <div class="check" @click="
  1013. addTools(47, itemTaskIndex, toolIndex)
  1014. ">
  1015. <img src="../../../assets/icon/checkNo.png" alt
  1016. v-if="itemTool.tool.indexOf(47) == -1" />
  1017. <div class="checkDiv" v-else>
  1018. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1019. </div>
  1020. </div>
  1021. </div>
  1022. <!-- <div class="tool">
  1023. <div
  1024. class="whiteBIcon"
  1025. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1026. >
  1027. <img
  1028. src="../../../assets/icon/thirdToolList/mp3.png"
  1029. alt
  1030. />
  1031. <div style="margin: 5px 0">上传音频</div>
  1032. </div>
  1033. <div
  1034. class="check"
  1035. @click="addTools(42, itemTaskIndex, toolIndex)"
  1036. >
  1037. <img
  1038. src="../../../assets/icon/checkNo.png"
  1039. alt
  1040. v-if="itemTool.tool.indexOf(42) == -1"
  1041. />
  1042. <img
  1043. src="../../../assets/icon/checkedIs.png"
  1044. alt
  1045. v-else
  1046. />
  1047. </div>
  1048. </div> -->
  1049. </div>
  1050. <div class="toolSort" v-if="itemTool.toolType == 3">
  1051. <div class="tool">
  1052. <div class="whiteBIcon" @click="
  1053. addTools(18, itemTaskIndex, toolIndex)
  1054. ">
  1055. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1056. <div style="margin: 5px 0">训练平台</div>
  1057. </div>
  1058. <div class="check" @click="
  1059. addTools(18, itemTaskIndex, toolIndex)
  1060. ">
  1061. <img src="../../../assets/icon/checkNo.png" alt
  1062. v-if="itemTool.tool.indexOf(18) == -1" />
  1063. <div class="checkDiv" v-else>
  1064. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1065. </div>
  1066. </div>
  1067. </div>
  1068. <div class="tool">
  1069. <div class="whiteBIcon" @click="
  1070. addTools(21, itemTaskIndex, toolIndex)
  1071. ">
  1072. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1073. <div style="margin: 5px 0">AIoT Blockly</div>
  1074. </div>
  1075. <div class="check" @click="
  1076. addTools(21, itemTaskIndex, toolIndex)
  1077. ">
  1078. <img src="../../../assets/icon/checkNo.png" alt
  1079. v-if="itemTool.tool.indexOf(21) == -1" />
  1080. <div class="checkDiv" v-else>
  1081. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1082. </div>
  1083. </div>
  1084. </div>
  1085. <!-- <div class="tool">
  1086. <div class="whiteBIcon" @click="
  1087. addTools(22, itemTaskIndex, toolIndex)
  1088. ">
  1089. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1090. <div style="margin: 5px 0">AI体验</div>
  1091. </div>
  1092. <div class="check" @click="
  1093. addTools(22, itemTaskIndex, toolIndex)
  1094. ">
  1095. <img src="../../../assets/icon/checkNo.png" alt
  1096. v-if="itemTool.tool.indexOf(22) == -1" />
  1097. <div class="checkDiv" v-else>
  1098. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1099. </div>
  1100. </div>
  1101. </div> -->
  1102. <div class="tool">
  1103. <div class="whiteBIcon" @click="
  1104. addTools(23, itemTaskIndex, toolIndex)
  1105. ">
  1106. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1107. <div style="margin: 5px 0">AI Python</div>
  1108. </div>
  1109. <div class="check" @click="
  1110. addTools(23, itemTaskIndex, toolIndex)
  1111. ">
  1112. <img src="../../../assets/icon/checkNo.png" alt
  1113. v-if="itemTool.tool.indexOf(23) == -1" />
  1114. <div class="checkDiv" v-else>
  1115. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1116. </div>
  1117. </div>
  1118. </div>
  1119. <div class="tool">
  1120. <div class="whiteBIcon" @click="
  1121. addTools(24, itemTaskIndex, toolIndex)
  1122. ">
  1123. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1124. <div style="margin: 5px 0">AI Blockly</div>
  1125. </div>
  1126. <div class="check" @click="
  1127. addTools(24, itemTaskIndex, toolIndex)
  1128. ">
  1129. <img src="../../../assets/icon/checkNo.png" alt
  1130. v-if="itemTool.tool.indexOf(24) == -1" />
  1131. <div class="checkDiv" v-else>
  1132. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1133. </div>
  1134. </div>
  1135. </div>
  1136. <div class="tool">
  1137. <div class="whiteBIcon" @click="
  1138. addTools(32, itemTaskIndex, toolIndex)
  1139. ">
  1140. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1141. <div style="margin: 5px 0">源码编辑</div>
  1142. </div>
  1143. <div class="check" @click="
  1144. addTools(32, itemTaskIndex, toolIndex)
  1145. ">
  1146. <img src="../../../assets/icon/checkNo.png" alt
  1147. v-if="itemTool.tool.indexOf(32) == -1" />
  1148. <div class="checkDiv" v-else>
  1149. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1150. </div>
  1151. </div>
  1152. </div>
  1153. <div class="tool">
  1154. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  1155. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1156. <div style="margin: 5px 0">CocoPi</div>
  1157. </div>
  1158. <div class="check" @click="
  1159. addTools(57, itemTaskIndex, toolIndex)
  1160. ">
  1161. <img src="../../../assets/icon/checkNo.png" alt
  1162. v-if="itemTool.tool.indexOf(57) == -1" />
  1163. <div class="checkDiv" v-else>
  1164. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1165. </div>
  1166. </div>
  1167. </div>
  1168. <div class="tool">
  1169. <div class="whiteBIcon" @click="
  1170. addTools(63, itemTaskIndex, toolIndex)
  1171. ">
  1172. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1173. <div style="margin: 5px 0">海龟编程</div>
  1174. </div>
  1175. <div class="check" @click="
  1176. addTools(63, itemTaskIndex, toolIndex)
  1177. ">
  1178. <img src="../../../assets/icon/checkNo.png" alt
  1179. v-if="itemTool.tool.indexOf(63) == -1" />
  1180. <div class="checkDiv" v-else>
  1181. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1182. </div>
  1183. </div>
  1184. </div>
  1185. </div>
  1186. <div class="toolSort" v-if="itemTool.toolType == 5">
  1187. <div class="tool">
  1188. <div class="whiteBIcon" @click="
  1189. addTools(28, itemTaskIndex, toolIndex)
  1190. ">
  1191. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1192. <div style="margin: 5px 0">翻译</div>
  1193. </div>
  1194. <div class="check" @click="
  1195. addTools(28, itemTaskIndex, toolIndex)
  1196. ">
  1197. <img src="../../../assets/icon/checkNo.png" alt
  1198. v-if="itemTool.tool.indexOf(28) == -1" />
  1199. <div class="checkDiv" v-else>
  1200. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1201. </div>
  1202. </div>
  1203. </div>
  1204. <div class="tool">
  1205. <div class="whiteBIcon" @click="
  1206. addTools(31, itemTaskIndex, toolIndex)
  1207. ">
  1208. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1209. <div style="margin: 5px 0">数字画板</div>
  1210. </div>
  1211. <div class="check" @click="
  1212. addTools(31, itemTaskIndex, toolIndex)
  1213. ">
  1214. <img src="../../../assets/icon/checkNo.png" alt
  1215. v-if="itemTool.tool.indexOf(31) == -1" />
  1216. <div class="checkDiv" v-else>
  1217. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1218. </div>
  1219. </div>
  1220. </div>
  1221. <div class="tool">
  1222. <div class="whiteBIcon" @click="
  1223. addTools(39, itemTaskIndex, toolIndex)
  1224. ">
  1225. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1226. <div style="margin: 5px 0">GeoGebra</div>
  1227. </div>
  1228. <div class="check" @click="
  1229. addTools(39, itemTaskIndex, toolIndex)
  1230. ">
  1231. <img src="../../../assets/icon/checkNo.png" alt
  1232. v-if="itemTool.tool.indexOf(39) == -1" />
  1233. <div class="checkDiv" v-else>
  1234. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1235. </div>
  1236. </div>
  1237. </div>
  1238. <div class="tool">
  1239. <div class="whiteBIcon" @click="
  1240. addTools(66, itemTaskIndex, toolIndex)
  1241. ">
  1242. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1243. <div style="margin: 5px 0">公式编辑</div>
  1244. </div>
  1245. <div class="check" @click="
  1246. addTools(66, itemTaskIndex, toolIndex)
  1247. ">
  1248. <img src="../../../assets/icon/checkNo.png" alt
  1249. v-if="itemTool.tool.indexOf(66) == -1" />
  1250. <div class="checkDiv" v-else>
  1251. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1252. </div>
  1253. </div>
  1254. </div>
  1255. <div class="tool">
  1256. <div class="whiteBIcon" @click="
  1257. addTools(67, itemTaskIndex, toolIndex)
  1258. ">
  1259. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1260. <div style="margin: 5px 0">分子结构</div>
  1261. </div>
  1262. <div class="check" @click="
  1263. addTools(67, itemTaskIndex, toolIndex)
  1264. ">
  1265. <img src="../../../assets/icon/checkNo.png" alt
  1266. v-if="itemTool.tool.indexOf(67) == -1" />
  1267. <div class="checkDiv" v-else>
  1268. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1269. </div>
  1270. </div>
  1271. </div>
  1272. <div class="tool">
  1273. <div class="whiteBIcon" @click="
  1274. addTools(68, itemTaskIndex, toolIndex)
  1275. ">
  1276. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1277. <div style="margin: 5px 0">时间轴</div>
  1278. </div>
  1279. <div class="check" @click="
  1280. addTools(68, itemTaskIndex, toolIndex)
  1281. ">
  1282. <img src="../../../assets/icon/checkNo.png" alt
  1283. v-if="itemTool.tool.indexOf(68) == -1" />
  1284. <div class="checkDiv" v-else>
  1285. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1286. </div>
  1287. </div>
  1288. </div>
  1289. <!-- <div class="tool">
  1290. <div class="whiteBIcon" @click="
  1291. addTools(28, itemTaskIndex, toolIndex)
  1292. ">
  1293. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1294. <div style="margin: 5px 0">翻译</div>
  1295. </div>
  1296. <div class="check" @click="
  1297. addTools(28, itemTaskIndex, toolIndex)
  1298. ">
  1299. <img src="../../../assets/icon/checkNo.png" alt
  1300. v-if="itemTool.tool.indexOf(28) == -1" />
  1301. <div class="checkDiv" v-else>
  1302. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1303. </div>
  1304. </div>
  1305. </div>
  1306. <div class="tool">
  1307. <div class="whiteBIcon" @click="
  1308. addTools(37, itemTaskIndex, toolIndex)
  1309. ">
  1310. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1311. <div style="margin: 5px 0">魔盒识字</div>
  1312. </div>
  1313. <div class="check" @click="
  1314. addTools(37, itemTaskIndex, toolIndex)
  1315. ">
  1316. <img src="../../../assets/icon/checkNo.png" alt
  1317. v-if="itemTool.tool.indexOf(37) == -1" />
  1318. <div class="checkDiv" v-else>
  1319. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1320. </div>
  1321. </div>
  1322. </div>
  1323. <div class="tool">
  1324. <div class="whiteBIcon" @click="
  1325. addTools(38, itemTaskIndex, toolIndex)
  1326. ">
  1327. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1328. <div style="margin: 5px 0">24点</div>
  1329. </div>
  1330. <div class="check" @click="
  1331. addTools(38, itemTaskIndex, toolIndex)
  1332. ">
  1333. <img src="../../../assets/icon/checkNo.png" alt
  1334. v-if="itemTool.tool.indexOf(38) == -1" />
  1335. <div class="checkDiv" v-else>
  1336. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1337. </div>
  1338. </div>
  1339. </div>
  1340. <div class="tool">
  1341. <div class="whiteBIcon" @click="
  1342. addTools(31, itemTaskIndex, toolIndex)
  1343. ">
  1344. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1345. <div style="margin: 5px 0">数学画板</div>
  1346. </div>
  1347. <div class="check" @click="
  1348. addTools(31, itemTaskIndex, toolIndex)
  1349. ">
  1350. <img src="../../../assets/icon/checkNo.png" alt
  1351. v-if="itemTool.tool.indexOf(31) == -1" />
  1352. <div class="checkDiv" v-else>
  1353. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1354. </div>
  1355. </div>
  1356. </div>
  1357. <div class="tool">
  1358. <div class="whiteBIcon" @click="
  1359. addTools(39, itemTaskIndex, toolIndex)
  1360. ">
  1361. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1362. <div style="margin: 5px 0">GeoGebra</div>
  1363. </div>
  1364. <div class="check" @click="
  1365. addTools(39, itemTaskIndex, toolIndex)
  1366. ">
  1367. <img src="../../../assets/icon/checkNo.png" alt
  1368. v-if="itemTool.tool.indexOf(39) == -1" />
  1369. <div class="checkDiv" v-else>
  1370. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1371. </div>
  1372. </div>
  1373. </div>
  1374. <div class="tool">
  1375. <div class="whiteBIcon" @click="
  1376. addTools(58, itemTaskIndex, toolIndex)
  1377. ">
  1378. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1379. <div style="margin: 5px 0">模拟驾驶</div>
  1380. </div>
  1381. <div class="check" @click="
  1382. addTools(58, itemTaskIndex, toolIndex)
  1383. ">
  1384. <img src="../../../assets/icon/checkNo.png" alt
  1385. v-if="itemTool.tool.indexOf(58) == -1" />
  1386. <div class="checkDiv" v-else>
  1387. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1388. </div>
  1389. </div>
  1390. </div>
  1391. <div class="tool">
  1392. <div class="whiteBIcon" @click="
  1393. addTools(59, itemTaskIndex, toolIndex)
  1394. ">
  1395. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1396. <div style="margin: 5px 0">路径搜索</div>
  1397. </div>
  1398. <div class="check" @click="
  1399. addTools(59, itemTaskIndex, toolIndex)
  1400. ">
  1401. <img src="../../../assets/icon/checkNo.png" alt
  1402. v-if="itemTool.tool.indexOf(59) == -1" />
  1403. <div class="checkDiv" v-else>
  1404. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1405. </div>
  1406. </div>
  1407. </div>
  1408. <div class="tool">
  1409. <div class="whiteBIcon" @click="
  1410. addTools(60, itemTaskIndex, toolIndex)
  1411. ">
  1412. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1413. <div style="margin: 5px 0">深度学习</div>
  1414. </div>
  1415. <div class="check" @click="
  1416. addTools(60, itemTaskIndex, toolIndex)
  1417. ">
  1418. <img src="../../../assets/icon/checkNo.png" alt
  1419. v-if="itemTool.tool.indexOf(60) == -1" />
  1420. <div class="checkDiv" v-else>
  1421. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1422. </div>
  1423. </div>
  1424. </div>
  1425. <div class="tool">
  1426. <div class="whiteBIcon" @click="
  1427. addTools(61, itemTaskIndex, toolIndex)
  1428. ">
  1429. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1430. <div style="margin: 5px 0">全历史</div>
  1431. </div>
  1432. <div class="check" @click="
  1433. addTools(61, itemTaskIndex, toolIndex)
  1434. ">
  1435. <img src="../../../assets/icon/checkNo.png" alt
  1436. v-if="itemTool.tool.indexOf(61) == -1" />
  1437. <div class="checkDiv" v-else>
  1438. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1439. </div>
  1440. </div>
  1441. </div> -->
  1442. </div>
  1443. <div class="toolSort" v-if="itemTool.toolType == 7">
  1444. <div class="tool">
  1445. <div class="whiteBIcon" @click="
  1446. openTools(itemTaskIndex, 40, toolIndex)
  1447. ">
  1448. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1449. <div style="margin: 5px 0">个人评价</div>
  1450. </div>
  1451. <div class="check" @click="
  1452. addTools(40, itemTaskIndex, toolIndex)
  1453. ">
  1454. <img src="../../../assets/icon/checkNo.png" alt
  1455. v-if="itemTool.tool.indexOf(40) == -1" />
  1456. <div class="checkDiv" v-else>
  1457. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1458. </div>
  1459. </div>
  1460. </div>
  1461. </div>
  1462. <div class="toolSort" v-if="itemTool.toolType == 4">
  1463. <div class="tool">
  1464. <div class="whiteBIcon" @click="
  1465. addTools(26, itemTaskIndex, toolIndex)
  1466. ">
  1467. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1468. <div style="margin: 5px 0">课程设计</div>
  1469. </div>
  1470. <div class="check" @click="
  1471. addTools(26, itemTaskIndex, toolIndex)
  1472. ">
  1473. <img src="../../../assets/icon/checkNo.png" alt
  1474. v-if="itemTool.tool.indexOf(26) == -1" />
  1475. <div class="checkDiv" v-else>
  1476. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1477. </div>
  1478. </div>
  1479. </div>
  1480. <div class="tool">
  1481. <div class="whiteBIcon" @click="
  1482. addTools(25, itemTaskIndex, toolIndex)
  1483. ">
  1484. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1485. <div style="margin: 5px 0">目标管理</div>
  1486. </div>
  1487. <div class="check" @click="
  1488. addTools(25, itemTaskIndex, toolIndex)
  1489. ">
  1490. <img src="../../../assets/icon/checkNo.png" alt
  1491. v-if="itemTool.tool.indexOf(25) == -1" />
  1492. <div class="checkDiv" v-else>
  1493. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1494. </div>
  1495. </div>
  1496. </div>
  1497. <!-- <div class="tool">
  1498. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1499. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1500. <div style="margin: 5px 0">汉字宫</div>
  1501. </div>
  1502. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1503. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1504. <div class="checkDiv" v-else>
  1505. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1506. </div>
  1507. </div>
  1508. </div> -->
  1509. </div>
  1510. </div>
  1511. <div v-show="itemTool.isFold3">
  1512. <textarea rows="3" type="text" v-autoHeight="87" placeholder="添加工具描述" class="binfo_input"
  1513. style="
  1514. margin: 0 0 20px 0;
  1515. " v-model="itemTool.toolDetail"></textarea>
  1516. </div>
  1517. </div>
  1518. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1519. <div class="addToolImg">
  1520. <img src="../../../assets/icon/add.png" alt />
  1521. </div>
  1522. <div>添加工具</div>
  1523. </div>
  1524. </div>
  1525. </div>
  1526. </div>
  1527. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1528. <!-- <div>
  1529. <img src="../../../assets/icon/new/addStage.png" alt />
  1530. <span>添加任务</span>
  1531. </div> -->
  1532. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  1533. 添加任务
  1534. </button>
  1535. </div>
  1536. </div>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. <div class="info_btnBox3">
  1541. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  1542. {{ lang.returnHomepage }}
  1543. </button>
  1544. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps"
  1545. v-if="!(cid && userid != courseUserid && role != '1')">
  1546. {{ lang.Confirmcreation }}
  1547. </button>
  1548. </div>
  1549. </div>
  1550. </div>
  1551. </div>
  1552. </div>
  1553. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  1554. :before-close="handleClose" class="dialog_diy2 customWidth">
  1555. <el-form>
  1556. <el-form-item label="文档标题">
  1557. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1558. </el-form-item>
  1559. <div>文档简介</div>
  1560. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  1561. </el-form>
  1562. <span slot="footer" class="dialog-footer">
  1563. <el-button @click="dialogVisible1 = false">取 消</el-button>
  1564. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  1565. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  1566. </span>
  1567. </el-dialog>
  1568. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  1569. :before-close="handleClose" class="dialog_diy">
  1570. <el-form>
  1571. <el-form-item label="文档标题">
  1572. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1573. </el-form-item>
  1574. <div>文档内容</div>
  1575. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  1576. </el-form>
  1577. <span slot="footer" class="dialog-footer">
  1578. <el-button @click="clearChoose">取 消</el-button>
  1579. <el-button type="primary" @click="wordNext()">确定</el-button>
  1580. </span>
  1581. </el-dialog>
  1582. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  1583. :before-close="handleClose" class="dialog_diy">
  1584. <el-form>
  1585. <el-form-item label="文本标题">
  1586. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  1587. placeholder="请输入文本标题..."></el-input>
  1588. </el-form-item>
  1589. <!-- <div>富文本内容</div> -->
  1590. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  1591. </el-form>
  1592. <span slot="footer" class="dialog-footer">
  1593. <el-button @click="clearAttText">取 消</el-button>
  1594. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  1595. </span>
  1596. </el-dialog>
  1597. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  1598. :before-close="handleClose" class="dialog_diy lineCss">
  1599. <el-form>
  1600. <el-form-item label="标题" :label-width="formLabelWidth">
  1601. <span>
  1602. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  1603. </span>
  1604. </el-form-item>
  1605. <el-form-item label="链接" :label-width="formLabelWidth">
  1606. <span>
  1607. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  1608. </span>
  1609. </el-form-item>
  1610. </el-form>
  1611. <span slot="footer" class="dialog-footer">
  1612. <el-button @click="clearLine">取 消</el-button>
  1613. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  1614. </span>
  1615. </el-dialog>
  1616. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  1617. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  1618. <div>
  1619. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  1620. </div>
  1621. <span slot="footer" class="dialog-footer">
  1622. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  1623. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  1624. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  1625. </span>
  1626. </el-dialog>
  1627. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  1628. :before-close="handleClose" class="addNewPP customWidth">
  1629. <div class="people">
  1630. <div class="people_top">
  1631. <div class="people_nav">选择成员</div>
  1632. <div class="people_top_right">
  1633. <div class="people_search">
  1634. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  1635. <div class="search_img" @click="searchStudent">
  1636. <img src="../../../assets/icon/search.png" alt />
  1637. </div>
  1638. </div>
  1639. </div>
  1640. </div>
  1641. <el-checkbox-group v-model="checkboxList" class="people_name">
  1642. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  1643. "暂无学生可选" }}</el-checkbox>
  1644. </el-checkbox-group>
  1645. </div>
  1646. <span slot="footer" class="dialog-footer">
  1647. <el-button @click="dialogVisible3 = false">取 消</el-button>
  1648. <el-button type="primary" @click="isAddPP">确定</el-button>
  1649. </span>
  1650. </el-dialog>
  1651. <!-- <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  1652. :before-close="handleClose" class="addNewPP">
  1653. <div class="people" style="height: 300px">
  1654. <div class="people_top">
  1655. <div class="people_top_right">
  1656. <div class="people_search">
  1657. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  1658. <el-option label="全部" value=""></el-option>
  1659. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
  1660. :value="item.id"></el-option>
  1661. </el-select>
  1662. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  1663. <div class="search_img">
  1664. <img src="../../../assets/icon/search.png" alt />
  1665. </div>
  1666. </div>
  1667. </div>
  1668. <div class="people_nav">选择班级</div>
  1669. </div>
  1670. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
  1671. v-if="grade2.length">
  1672. <div v-for="item in grade2" :key="item.id" class="p_box">
  1673. <el-checkbox :label="item.id">
  1674. {{ item.name }}
  1675. </el-checkbox>
  1676. </div>
  1677. </el-checkbox-group>
  1678. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  1679. </div>
  1680. <span slot="footer" class="dialog-footer">
  1681. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1682. <el-button type="primary" @click="isAddClass">确定</el-button>
  1683. </span>
  1684. </el-dialog> -->
  1685. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  1686. :before-close="handleClose" class="addNewPP2">
  1687. <div class="check_classBox">
  1688. <div class="check_class_right">
  1689. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  1690. 全部
  1691. </div>
  1692. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  1693. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  1694. {{ item.name }}
  1695. </div>
  1696. </el-tooltip>
  1697. </div>
  1698. <div class="check_class_left">
  1699. <div class="check_class_left_title">选择班级</div>
  1700. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  1701. <div v-for="item in grade2" :key="item.id" class="class_item">
  1702. <el-checkbox :label="item.id">
  1703. {{ item.name }}
  1704. </el-checkbox>
  1705. </div>
  1706. </el-checkbox-group>
  1707. <div v-if="!grade2.length">暂无数据</div>
  1708. </div>
  1709. </div>
  1710. <span slot="footer" class="dialog-footer">
  1711. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1712. <el-button type="primary" @click="isAddClass">确定</el-button>
  1713. </span>
  1714. </el-dialog>
  1715. <!-- <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1716. :before-close="handleClose" class="addNewPP customWidth">
  1717. <div class="people">
  1718. <div class="people_top">
  1719. <div class="people_top_right">
  1720. <div class="people_search">
  1721. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1722. <div class="search_img" @click="getTeacher">
  1723. <img src="../../../assets/icon/search.png" alt />
  1724. </div>
  1725. </div>
  1726. </div>
  1727. <div class="people_nav">选择成员</div>
  1728. </div>
  1729. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  1730. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1731. <div class="t_j_box">
  1732. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1733. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1734. </el-tooltip>
  1735. <el-tooltip placement="top" :content="item.username">
  1736. <span>{{ item.username }}</span>
  1737. </el-tooltip>
  1738. <el-tooltip placement="top" :content="item.school">
  1739. <span>{{ item.school }}</span>
  1740. </el-tooltip>
  1741. </div>
  1742. </el-checkbox>
  1743. </el-checkbox-group>
  1744. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1745. </div>
  1746. <span slot="footer" class="dialog-footer">
  1747. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  1748. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1749. </span>
  1750. </el-dialog> -->
  1751. <el-dialog :title="lang.Addmembers" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1752. :before-close="handleClose" class="addNewPP customWidth" >
  1753. <div v-loading="teacherLoading">
  1754. <div class="people">
  1755. <div class="people_top">
  1756. <div class="people_top_right">
  1757. <div class="people_search">
  1758. <el-input :placeholder="lang.Searchforaccount" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1759. <div class="search_img" @click="getTeacher">
  1760. <img src="../../../assets/icon/search.png" alt />
  1761. </div>
  1762. </div>
  1763. </div>
  1764. <div class="people_nav">{{ lang.SelectMembers }}</div>
  1765. </div>
  1766. <div class="t_j_box" style="
  1767. padding: 20px 0 0 25px;
  1768. width: calc(100% - 55px);
  1769. margin-left: 25px;
  1770. ">
  1771. <span>{{ lang.Name }}</span>
  1772. <span>{{ lang.identity }}</span>
  1773. <span>{{ lang.Account }}</span>
  1774. <span>{{ lang.school }}</span>
  1775. </div>
  1776. <div style="margin-left:25px;">
  1777. <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange" style="display: flex;align-items: center;">{{ lang.SelectAll }}</el-checkbox>
  1778. </div>
  1779. <el-checkbox-group v-model="checkboxList3" @change="handleCheckedTeacherJuriChange" class="people_name" v-if="teacherJuri.length">
  1780. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1781. <div class="t_j_box">
  1782. <el-tooltip placement="top" :content="item.name ? item.name : lang.Noname">
  1783. <span>{{ item.name ? item.name : lang.Noname }}</span>
  1784. </el-tooltip>
  1785. <span>{{ item.type == "1" ? lang.teacher : lang.student }}</span>
  1786. <el-tooltip placement="top" :content="item.username">
  1787. <span>{{ item.username }}</span>
  1788. </el-tooltip>
  1789. <el-tooltip placement="top" :content="item.school">
  1790. <span>{{ item.school }}</span>
  1791. </el-tooltip>
  1792. </div>
  1793. </el-checkbox>
  1794. </el-checkbox-group>
  1795. <div style="text-align: center; margin-top: 10px" v-else>{{ lang.Nodata }}</div>
  1796. </div>
  1797. <div style="margin-top: 10px;" >
  1798. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  1799. v-if="page && teacherJuri.length" style="padding-bottom: 20px"
  1800. @current-change="handleCurrentChange"></el-pagination>
  1801. </div>
  1802. </div>
  1803. <span slot="footer" class="dialog-footer">
  1804. <el-button @click="page = 0;dialogVisibleMember = false;">{{ lang.Cancel }}</el-button>
  1805. <el-button type="primary" @click="isAddPPTeacher">{{ lang.Confirm }}</el-button>
  1806. </span>
  1807. </el-dialog>
  1808. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  1809. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  1810. <div style="height:100%">
  1811. <div class="a_add_title" style="
  1812. display: flex;
  1813. flex-direction: row;
  1814. align-items: center;
  1815. justify-content: center;
  1816. ">
  1817. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  1818. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1819. </div>
  1820. <div class="a_addBox" style="height:calc(100% - 50px)">
  1821. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  1822. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1823. <div class="a_add_checkType">
  1824. <span :class="{
  1825. active:
  1826. askJson.askJson[index1].type == '1' ||
  1827. !askJson.askJson[index1].type,
  1828. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  1829. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  1830. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  1831. </div>
  1832. <div class="a_add_head">
  1833. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  1834. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  1835. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  1836. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  1837. </div>
  1838. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  1839. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  1840. </div>
  1841. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  1842. </div>
  1843. <div class="a_add_head_div">
  1844. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  1845. </el-button>
  1846. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  1847. </div>
  1848. </div>
  1849. <div class="a_add_body">
  1850. <div class="a_add_input" style="flex-direction: column;">
  1851. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  1852. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  1853. <div style="margin-right: 10px">
  1854. 选项{{ checkIndex + 1 }}
  1855. </div>
  1856. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  1857. " placeholder="请输入选项" style="width: 300px" @change="() => { $forceUpdate() }"></textarea>
  1858. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  1859. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  1860. </div>
  1861. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  1862. </div>
  1863. <div class="a_add_body_div">
  1864. <el-button type="primary" size="small"
  1865. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  1866. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  1867. v-if="askJson.askJson[index1].askItem != 1">删除
  1868. </el-button>
  1869. </div>
  1870. </div>
  1871. </div>
  1872. <!-- <div class="a_add_body_div">
  1873. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  1874. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  1875. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  1876. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  1877. </el-button>
  1878. </div> -->
  1879. </div>
  1880. </div>
  1881. </div>
  1882. </div>
  1883. <span slot="footer" class="dialog-footer">
  1884. <el-button @click="closePan(4)">取 消</el-button>
  1885. <el-button type="primary" @click="addAsk">确 定</el-button>
  1886. </span>
  1887. </el-dialog>
  1888. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  1889. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  1890. <div style="height:100%">
  1891. <!-- <div class="a_add_title" style="
  1892. display: flex;
  1893. flex-direction: row;
  1894. align-items: center;
  1895. justify-content: center;
  1896. ">
  1897. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1898. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1899. </div> -->
  1900. <div class="a_addBox" style="height:100%">
  1901. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  1902. <!-- 请输入题目内容 -->
  1903. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  1904. v-if="isPasteChoice">智能粘贴</button>
  1905. </div>
  1906. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1907. <div class="a_add_checkType">
  1908. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  1909. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  1910. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  1911. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  1912. </div>
  1913. <div class="a_add_head">
  1914. <div class="timuUpImg">
  1915. <div style="display: flex;align-items: center;">
  1916. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  1917. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  1918. placeholder="请输入题目">
  1919. </el-input> -->
  1920. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  1921. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  1922. @change="() => { $forceUpdate() }"></textarea>
  1923. </div>
  1924. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  1925. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  1926. </div>
  1927. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  1928. </div>
  1929. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  1930. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  1931. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  1932. </div>
  1933. </div>
  1934. <div class="a_add_head_div">
  1935. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  1936. </el-button>
  1937. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  1938. </div>
  1939. </div>
  1940. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  1941. testJson.testJson[index1].timuList.length
  1942. ">
  1943. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  1944. @click.stop="previewImg(timg.src)">
  1945. <img :src="timg.src" alt="" />
  1946. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  1947. <img src="../../../assets/icon/delete.png" alt="" />
  1948. </div>
  1949. </div>
  1950. </div>
  1951. <div class="a_add_body">
  1952. <div class="a_add_input a_add_input_choice">
  1953. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  1954. @change="() => { $forceUpdate() }">
  1955. <div class="radioBox">
  1956. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1957. .testItem" :key="checkIndex" :label="checkIndex">
  1958. <div style="margin-right: 10px">
  1959. 选项{{ checkIndex + 1 }}
  1960. </div>
  1961. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  1962. testJson.testJson[index1].checkList[checkIndex]
  1963. .imgType &&
  1964. testJson.testJson[index1].checkList[checkIndex]
  1965. .imgType == 1
  1966. ">
  1967. <div class="inImg" @click.stop="
  1968. previewImg(
  1969. testJson.testJson[index1].checkList[checkIndex]
  1970. .src
  1971. )
  1972. ">
  1973. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  1974. .src
  1975. " lazy />
  1976. <!-- <img :src="
  1977. testJson.testJson[index1].checkList[checkIndex]
  1978. .src
  1979. " alt="" /> -->
  1980. </div>
  1981. </div>
  1982. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  1983. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  1984. @change="() => { $forceUpdate() }"></textarea>
  1985. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  1986. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  1987. </div>
  1988. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  1989. </div>
  1990. <div class="xzUpImg" @click.stop="addImg($event)">
  1991. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  1992. <input type="file" accept="image/*" style="display: none"
  1993. @change="beforeUploadTi($event, index1, checkIndex)" />
  1994. </div>
  1995. <div class="a_add_body_div">
  1996. <el-button type="primary" size="small"
  1997. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  1998. <el-button type="primary" size="small"
  1999. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  2000. v-if="testJson.testJson[index1].testItem != 1">删除
  2001. </el-button>
  2002. </div>
  2003. </el-radio>
  2004. </div>
  2005. </el-radio-group>
  2006. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  2007. @change="() => { $forceUpdate() }">
  2008. <div class="radioBox">
  2009. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2010. .testItem" :key="checkIndex1" :label="checkIndex1">
  2011. <div style="margin-right: 10px">
  2012. 选项{{ checkIndex1 + 1 }}
  2013. </div>
  2014. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2015. testJson.testJson[index1].checkList[checkIndex1]
  2016. .imgType &&
  2017. testJson.testJson[index1].checkList[checkIndex1]
  2018. .imgType == 1
  2019. ">
  2020. <div class="inImg" @click.stop="
  2021. previewImg(
  2022. testJson.testJson[index1].checkList[checkIndex1]
  2023. .src
  2024. )
  2025. ">
  2026. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2027. .src
  2028. " lazy />
  2029. <!-- <img :src="
  2030. testJson.testJson[index1].checkList[checkIndex1]
  2031. .src
  2032. " alt="" /> -->
  2033. </div>
  2034. </div>
  2035. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2036. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2037. @change="() => { $forceUpdate() }"></textarea>
  2038. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2039. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  2040. </div>
  2041. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  2042. </div>
  2043. <div class="xzUpImg" @click.stop="addImg($event)">
  2044. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2045. <input type="file" accept="image/*" style="display: none"
  2046. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2047. </div>
  2048. <div class="a_add_body_div">
  2049. <el-button type="primary" size="small"
  2050. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  2051. <el-button type="primary" size="small"
  2052. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  2053. v-if="testJson.testJson[index1].testItem != 1">删除
  2054. </el-button>
  2055. </div>
  2056. </el-checkbox>
  2057. </div>
  2058. </el-checkbox-group>
  2059. </div>
  2060. <!-- <div class="a_add_body_div">
  2061. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2062. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2063. v-if="testJson.testJson[index1].testItem != 1">删除
  2064. </el-button>
  2065. </div> -->
  2066. </div>
  2067. </div>
  2068. </div>
  2069. </div>
  2070. <span slot="footer" class="dialog-footer">
  2071. <el-button @click="closePan(45)">取 消</el-button>
  2072. <el-button type="primary" @click="addTest">确 定</el-button>
  2073. </span>
  2074. </el-dialog>
  2075. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2076. :before-close="handleClose" class="dialog_diy addToolsDia">
  2077. <div class="toolChoose" style="padding: 0 0 0 30px">
  2078. <div class="tools">
  2079. <div class="leftTools" style="
  2080. width: 95%;
  2081. padding: 0 0 15px 0;
  2082. margin: 15px 0;
  2083. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2084. <div style="
  2085. display: flex;
  2086. flex-direction: row;
  2087. align-items: baseline;
  2088. flex-wrap: nowrap;
  2089. justify-content: flex-start;
  2090. position: relative;
  2091. ">
  2092. <div class="chooseWho">
  2093. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2094. 互动类
  2095. </div>
  2096. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2097. 思维类
  2098. </div>
  2099. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2100. 评价类
  2101. </div>
  2102. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2103. 其他
  2104. </div>
  2105. </div>
  2106. </div>
  2107. <div style="min-height: 163px">
  2108. <div class="toolSort" v-if="chapToolsType == 0">
  2109. <div class="tool">
  2110. <div class="whiteBIcon" @click="chapAddTools(8)">
  2111. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2112. <div style="margin: 5px 0">素材库</div>
  2113. </div>
  2114. <div class="check" @click="chapAddTools(8)">
  2115. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2116. <div class="checkDiv" v-else>
  2117. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2118. </div>
  2119. </div>
  2120. </div>
  2121. </div>
  2122. <div class="toolSort" v-if="chapToolsType == 1">
  2123. <div class="tool">
  2124. <div class="whiteBIcon" @click="chapAddTools(7)">
  2125. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2126. <div style="margin: 5px 0">思维网格</div>
  2127. </div>
  2128. <div class="check" @click="chapAddTools(7)">
  2129. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2130. <div class="checkDiv" v-else>
  2131. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2132. </div>
  2133. </div>
  2134. </div>
  2135. <div class="tool">
  2136. <div class="whiteBIcon" @click="chapAddTools(1)">
  2137. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2138. <div style="margin: 5px 0">电子白板</div>
  2139. </div>
  2140. <div class="check" @click="chapAddTools(1)">
  2141. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2142. <div class="checkDiv" v-else>
  2143. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2144. </div>
  2145. </div>
  2146. </div>
  2147. <div class="tool">
  2148. <div class="whiteBIcon" @click="chapAddTools(2)">
  2149. <img src="../../../assets/icon/secondToolList/note.png" alt />
  2150. <div style="margin: 5px 0">便签</div>
  2151. </div>
  2152. <div class="check" @click="chapAddTools(2)">
  2153. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2154. <div class="checkDiv" v-else>
  2155. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. <div class="tool">
  2160. <div class="whiteBIcon" @click="chapAddTools(6)">
  2161. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2162. <div style="margin: 5px 0">协同文档</div>
  2163. </div>
  2164. <div class="check" @click="chapAddTools(6)">
  2165. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2166. <div class="checkDiv" v-else>
  2167. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2168. </div>
  2169. </div>
  2170. </div>
  2171. <div class="tool">
  2172. <div class="whiteBIcon" @click="chapAddTools(3)">
  2173. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2174. <div style="margin: 5px 0">思维导图</div>
  2175. </div>
  2176. <div class="check" @click="chapAddTools(3)">
  2177. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2178. <div class="checkDiv" v-else>
  2179. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2180. </div>
  2181. </div>
  2182. </div>
  2183. <div class="tool">
  2184. <div class="whiteBIcon" @click="chapAddTools(31)">
  2185. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2186. <div style="margin: 5px 0">数学画板</div>
  2187. </div>
  2188. <div class="check" @click="chapAddTools(31)">
  2189. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2190. <div class="checkDiv" v-else>
  2191. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2192. </div>
  2193. </div>
  2194. </div>
  2195. </div>
  2196. <div class="toolSort" v-if="chapToolsType == 2">
  2197. <div class="tool">
  2198. <div class="whiteBIcon" @click="chapAddTools(5)">
  2199. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  2200. <div style="margin: 5px 0">量规评分</div>
  2201. </div>
  2202. <div class="check" @click="chapAddTools(5)">
  2203. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2204. <div class="checkDiv" v-else>
  2205. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2206. </div>
  2207. </div>
  2208. </div>
  2209. <div class="tool">
  2210. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2211. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2212. <div style="margin: 5px 0">问卷调查</div>
  2213. </div>
  2214. <div class="check" @click="chapAddTools(4)">
  2215. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2216. <div class="checkDiv" v-else>
  2217. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2218. </div>
  2219. </div>
  2220. </div>
  2221. </div>
  2222. </div>
  2223. <div>
  2224. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  2225. v-model="itemTools.toolDetail" />
  2226. </div>
  2227. </div>
  2228. </div>
  2229. </div>
  2230. <span slot="footer" class="dialog-footer">
  2231. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2232. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2233. </span>
  2234. </el-dialog>
  2235. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2236. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  2237. <div>
  2238. <div class="a_add_title" style="
  2239. display: flex;
  2240. flex-direction: column;
  2241. align-items: flex-start;
  2242. justify-content: center;
  2243. ">
  2244. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2245. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  2246. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  2247. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  2248. </div>
  2249. </div>
  2250. <span slot="footer" class="dialog-footer">
  2251. <el-button @click="closePan(15)">取 消</el-button>
  2252. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2253. </span>
  2254. </el-dialog>
  2255. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2256. :before-close="handleClose" class="dialog_diy">
  2257. <div>
  2258. <div class="a_add_title" style="
  2259. display: flex;
  2260. flex-direction: column;
  2261. align-items: flex-start;
  2262. justify-content: center;
  2263. ">
  2264. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2265. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2266. </div>
  2267. </div>
  2268. <span slot="footer" class="dialog-footer">
  2269. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2270. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2271. </span>
  2272. </el-dialog>
  2273. <el-dialog :title="lang.uploadpictures" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  2274. :before-close="handleClose" class="dialog_diy">
  2275. <div>
  2276. <div class="fileCss" style="padding-top: 20px">
  2277. <div>
  2278. <button class="info_btn" @click="addImg($event)">
  2279. {{ lang.Selectlocalfile }}
  2280. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2281. </button>
  2282. <div class="spanName"> {{ lang.Selectlocalfile }}</div>
  2283. </div>
  2284. <!-- <div>
  2285. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  2286. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2287. <img :src="cover[0].url" alt="" />
  2288. <div class="deletePic" @click="deleteSysPic">
  2289. <img src="../../../assets/icon/delete.png" alt="" />
  2290. </div>
  2291. </div>
  2292. <div class="spanName">选择系统文件</div>
  2293. </div> -->
  2294. <div>
  2295. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false"> {{ lang.Selectnetworkfiles }}</el-button>
  2296. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  2297. <img :src="cover[0].url" alt="" />
  2298. <div class="deletePic" @click="deleteSysPic">
  2299. <img src="../../../assets/icon/delete.png" alt="" />
  2300. </div>
  2301. </div>
  2302. <div class="spanName"> {{ lang.Selectnetworkfiles }}</div>
  2303. </div>
  2304. </div>
  2305. <!-- <div class="fileCss">
  2306. <div>选择本地文件</div>
  2307. <div>选择系统文件</div>
  2308. </div> -->
  2309. </div>
  2310. <span slot="footer" class="dialog-footer">
  2311. <el-button @click="choosePicVisible = false">{{ lang.Cancel }}</el-button>
  2312. <el-button type="primary" @click="choosePicVisible = false">{{ lang.Confirm }}</el-button>
  2313. </span>
  2314. </el-dialog>
  2315. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2316. :before-close="handleClose" class="dialog_diy">
  2317. <div class="cru_selectBox" style="margin: 0">
  2318. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2319. 绘画
  2320. </div>
  2321. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2322. 科技
  2323. </div>
  2324. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2325. 人文
  2326. </div>
  2327. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2328. 艺术
  2329. </div>
  2330. </div>
  2331. <div class="sysPicBox">
  2332. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2333. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2334. </div>
  2335. </div>
  2336. </el-dialog>
  2337. <el-dialog :title="lang.Selectnetworkfiles" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  2338. :before-close="handleClose" class="dialog_diy">
  2339. <div>
  2340. <div class="people_top_right" style="display: flex;align-items: center;">
  2341. <div style="position: relative; width: 100%;">
  2342. <el-input style="height: 100%" :placeholder="lang.Searchimagekeywords" v-model="searchImageValue"
  2343. @keyup.enter.native="resetImage()"></el-input>
  2344. <div class="search_img" @click="resetImage" style="right: 10px;">
  2345. <img src="../../../assets/icon/search.png" alt />
  2346. </div>
  2347. </div>
  2348. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">{{ lang.Changeanothergroup }}</el-button>
  2349. </div>
  2350. <div class="sysPicBox" v-loading="imageloading">
  2351. <div class="picNone" v-if="!imageList.length">{{ lang.enterkeywordsimages }}</div>
  2352. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  2353. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  2354. </div>
  2355. </div>
  2356. </div>
  2357. </el-dialog>
  2358. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2359. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  2360. <div v-if="selectJson" style="height:100%">
  2361. <div class="select_box1" v-if="selectSteps == 1">
  2362. <div class="select_box1_img">
  2363. <div class="select_box1_title">
  2364. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  2365. </div>
  2366. <div class="select_box1_add_img">
  2367. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2368. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2369. <img src="../../../assets/icon/addPoster.png" alt="" />
  2370. </div>
  2371. <div class="isSysPic" v-else>
  2372. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  2373. <div class="deletePic" @click="deleteSelectPic">
  2374. <img src="../../../assets/icon/delete.png" alt="" />
  2375. </div>
  2376. </div>
  2377. </div>
  2378. </div>
  2379. <div class="select_box1_select">
  2380. <div class="select_box1_title">
  2381. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  2382. </div>
  2383. <div class="select_box1_select_box">
  2384. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2385. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  2386. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2387. <div class="select_box1_select_box_add">
  2388. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2389. 添加</el-button>
  2390. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2391. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2392. </div>
  2393. </div>
  2394. </div>
  2395. </div>
  2396. <div v-if="selectSteps == 2" style="height:100%">
  2397. <div class="select_box2">
  2398. <div class="select_box2_title">设置每道题目的正确选项</div>
  2399. <div class="select_box2_box">
  2400. <div class="select_box2_img">
  2401. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  2402. </div>
  2403. <div class="select_box2_answer">
  2404. <div class="select_answer_title">根据题目选择对应答案</div>
  2405. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2406. <span>{{ checkIndex + 1 }}、</span>
  2407. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2408. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2409. </el-option>
  2410. </el-select>
  2411. </div>
  2412. </div>
  2413. </div>
  2414. </div>
  2415. </div>
  2416. </div>
  2417. <span slot="footer" class="dialog-footer">
  2418. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2419. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2420. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2421. </span>
  2422. </el-dialog>
  2423. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2424. :before-close="handleClose" class="dialog_diy">
  2425. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2426. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2427. <div class="pjCss" style="width: 100%">
  2428. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2429. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2430. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2431. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2432. <div class="remove" @click="deletRateList(eIndex)"></div>
  2433. <div style="width: 100%; display: flex">
  2434. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2435. <el-rate v-model="eItem.score" disabled></el-rate>
  2436. </div>
  2437. <div class="elist_inptu_text" style="align-items: flex-start">
  2438. <span style="min-width: 100px; text-align: right">描述:</span>
  2439. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2440. </div>
  2441. </div>
  2442. </div>
  2443. <div class="addToolFun" @click="addRateList()">
  2444. <div class="addToolImg">
  2445. <img src="../../../assets/icon/add.png" alt />
  2446. </div>
  2447. <div>添加</div>
  2448. </div>
  2449. </div>
  2450. </div>
  2451. <span slot="footer" class="dialog-footer">
  2452. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2453. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2454. </span>
  2455. </el-dialog>
  2456. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2457. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  2458. <div style="height: 100%;">
  2459. <div class="sentenBox" style="height: 100%;">
  2460. <div class="addSen" @click="addSt">添加题目</div>
  2461. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  2462. <div class="sentenTopBox">
  2463. <div class="sentenTop" :index="stIndex + 1">
  2464. <div>题目设置</div>
  2465. <div>
  2466. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  2467. </div>
  2468. <div @click="addSen(stIndex)">添加</div>
  2469. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2470. </div>
  2471. </div>
  2472. <div class="cardList">
  2473. <div v-if="st.addSentence.length > 0" class="cardBox">
  2474. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2475. @click="setRightAnswer(s, stIndex, sIndex)">
  2476. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2477. <div>{{ s }}</div>
  2478. </el-tooltip>
  2479. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2480. <img src="../../../assets/icon/delete.png" alt="" />
  2481. </div>
  2482. </div>
  2483. </div>
  2484. <div class="card">
  2485. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  2486. </div>
  2487. </div>
  2488. <div class="rightCardBox">
  2489. <div>正确顺序</div>
  2490. <div class="rightCardList">
  2491. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2492. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2493. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2494. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2495. <div>{{ r }}</div>
  2496. </el-tooltip>
  2497. </div>
  2498. <div>{{ rIndex + 1 }}</div>
  2499. </div>
  2500. </div>
  2501. <div class="card" v-if="st.rightAnswer.length == 0">
  2502. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  2503. </div>
  2504. <div class="card" v-else>
  2505. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  2506. </div>
  2507. </div>
  2508. </div>
  2509. </div>
  2510. </div>
  2511. </div>
  2512. <span slot="footer" class="dialog-footer">
  2513. <el-button @click="closePan(47)">取 消</el-button>
  2514. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2515. </span>
  2516. </el-dialog>
  2517. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2518. :before-close="handleClose" class="dialog_diy">
  2519. <el-form>
  2520. <!-- <el-form-item label="文本标题">
  2521. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2522. </el-form-item> -->
  2523. <div>表格内容</div>
  2524. <Table v-model="tableJson.text" @change="change"></Table>
  2525. </el-form>
  2526. <span slot="footer" class="dialog-footer">
  2527. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2528. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2529. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2530. </span>
  2531. </el-dialog>
  2532. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2533. :before-close="handleClose" class="dialog_diy">
  2534. <el-form>
  2535. <!-- <el-form-item label="文本标题">
  2536. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2537. </el-form-item> -->
  2538. <div>文档内容</div>
  2539. <editor-bar v-model="wordJson.text"></editor-bar>
  2540. </el-form>
  2541. <span slot="footer" class="dialog-footer">
  2542. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2543. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2544. </span>
  2545. </el-dialog>
  2546. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2547. :before-close="handleClose" class="dialog_diy">
  2548. <div style="
  2549. width: 100%;
  2550. display: flex;
  2551. flex-direction: row;
  2552. flex-wrap: nowrap;
  2553. align-items: center;
  2554. justify-content: center;
  2555. ">
  2556. <div>班级:</div>
  2557. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2558. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2559. </el-option>
  2560. </el-select>
  2561. </div>
  2562. <span slot="footer" class="dialog-footer">
  2563. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2564. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2565. </span>
  2566. </el-dialog>
  2567. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2568. :before-close="handleClose" class="dialog_diy">
  2569. <div style="
  2570. width: 100%;
  2571. display: flex;
  2572. flex-direction: row;
  2573. flex-wrap: nowrap;
  2574. align-items: center;
  2575. justify-content: center;
  2576. ">
  2577. <div>随机码:</div>
  2578. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  2579. </div>
  2580. <span slot="footer" class="dialog-footer">
  2581. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  2582. <el-button type="primary" @click="addInvite">确定</el-button>
  2583. </span>
  2584. </el-dialog>
  2585. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  2586. :before-close="handleClose" class="dialog_diy">
  2587. <div>
  2588. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  2589. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  2590. </div>
  2591. <span slot="footer" class="dialog-footer">
  2592. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  2593. <el-button type="primary" @click="addPreTime">确定</el-button>
  2594. </span>
  2595. </el-dialog>
  2596. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  2597. class="dialog_diy">
  2598. <div>
  2599. <div style="
  2600. width: 100%;
  2601. display: flex;
  2602. flex-direction: row;
  2603. flex-wrap: nowrap;
  2604. align-content: center;
  2605. align-items: center;
  2606. justify-content: space-between;
  2607. ">
  2608. <div style="
  2609. display: flex;
  2610. flex-flow: row nowrap;
  2611. align-items: flex-start;
  2612. width: 100%;
  2613. flex-direction: column;
  2614. flex-wrap: nowrap;
  2615. position: relative;
  2616. ">
  2617. <div class="e_box">
  2618. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  2619. <div class="e_card_picture">
  2620. <img src="../../../assets/e_picture.png" />
  2621. </div>
  2622. <div class="e_card_name">
  2623. <span>{{ item.title }}</span>
  2624. </div>
  2625. <div class="e_card_btn">
  2626. <span @click="checkEva(item.id, 2)">导入</span>
  2627. </div>
  2628. </div>
  2629. <div class="addEva" @click="openT">
  2630. <img src="../../../assets/icon/addEva.png" alt="" />
  2631. </div>
  2632. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  2633. 暂无数据
  2634. </div>
  2635. </div>
  2636. </div>
  2637. </div>
  2638. </div>
  2639. <span slot="footer" class="dialog-footer">
  2640. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  2641. </span>
  2642. </el-dialog>
  2643. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  2644. :before-close="handleClose" class="dialog_diy">
  2645. <div class="groupBox">
  2646. <div v-if="groupJson.group" class="groupContent">
  2647. <div class="groupTitle">请设置小组数量及名称</div>
  2648. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  2649. <span class="groupn">第{{ index + 1 }}组名称:</span>
  2650. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  2651. <div class="groupBtn">
  2652. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  2653. 添加</el-button>
  2654. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2655. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  2656. </div>
  2657. </div>
  2658. </div>
  2659. <div class="groupContent">
  2660. <div class="groupTitle">请设置每组人数</div>
  2661. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2662. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2663. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  2664. @change="numberPan"></el-input>
  2665. </div>
  2666. </div>
  2667. <span slot="footer" class="dialog-footer">
  2668. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  2669. <el-button type="primary" @click="addGroupJson">确定</el-button>
  2670. </span>
  2671. </el-dialog>
  2672. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  2673. :before-close="handleClose" class="dialog_diy">
  2674. <div style="
  2675. width: 100%;
  2676. display: flex;
  2677. flex-direction: row;
  2678. flex-wrap: nowrap;
  2679. align-items: center;
  2680. justify-content: center;
  2681. ">
  2682. <div style="min-width: fit-content;">文件名称:</div>
  2683. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  2684. </div>
  2685. <span slot="footer" class="dialog-footer">
  2686. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  2687. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  2688. </span>
  2689. </el-dialog>
  2690. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  2691. </div>
  2692. </template>
  2693. <script>
  2694. import "../../../common/aws-sdk-2.235.1.min.js";
  2695. import { tools as toolsData } from "../../../common/tools.js";
  2696. import $ from "jquery";
  2697. import EditorBar from "../../../components/tools/wangEnduit";
  2698. import Table from "../../../components/tools/table";
  2699. import Mind from "../../tools/jsmind2";
  2700. import Time from "../../tools/time.vue";
  2701. import Sunburst from "../../tools/sunburst";
  2702. import SeeBoard from "../../tools/seeBoard";
  2703. import weilaiData from "../components/weilai.js";
  2704. import sourceDialog from "../teacherSource/dialog.vue";
  2705. import interVideo from "../interVideo/index.vue";
  2706. import groupBox from "./group/group.vue"
  2707. var OpenCC = require("opencc-js");
  2708. let converter = OpenCC.Converter({
  2709. from:'hk',
  2710. to:'cn'
  2711. })
  2712. export default {
  2713. components: {
  2714. EditorBar,
  2715. Mind,
  2716. Time,
  2717. Sunburst,
  2718. SeeBoard,
  2719. Table,
  2720. sourceDialog,
  2721. interVideo,
  2722. groupBox
  2723. },
  2724. data() {
  2725. return {
  2726. checkAll: false,
  2727. chooseType: 1,
  2728. checkedCities: [],
  2729. isIndeterminate: true,
  2730. isSysPic: false,
  2731. isSysPic2: false,
  2732. steps: 1,
  2733. nbOrder: 0,
  2734. courseId: "",
  2735. chapToolsType: 0,
  2736. chapTools: [
  2737. {
  2738. tools: [],
  2739. toolDetail: "",
  2740. },
  2741. ],
  2742. line: "",
  2743. lineTitle: "",
  2744. sysPic: [],
  2745. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  2746. sentenceList2: [],
  2747. isPushTitleList: [],
  2748. lineCount: 0,
  2749. lineType: 0,
  2750. chapCount: 0,
  2751. courseName: "",
  2752. isTeacherSee: true,
  2753. courseText: "",
  2754. preTime: 0,
  2755. formLabelWidth: "100px",
  2756. choosePicVisible: false,
  2757. sysPicVisible: false,
  2758. uploadLoading1: false,
  2759. noneBtnImg: false,
  2760. updateBoolean2: false,
  2761. unitIndex: 0,
  2762. taskCount: 0,
  2763. dialogVisible: false,
  2764. dialogVisible1: false,
  2765. dialogVisible2: false,
  2766. dialogVisible3: false,
  2767. dialogVisible4: false,
  2768. dialogVisible5: false,
  2769. dialogVisible6: false,
  2770. dialogVisible7: false,
  2771. dialogVisible8: false,
  2772. dialogVisible9: false,
  2773. dialogVisibleClass: false,
  2774. dialogVisibleMember: false,
  2775. dialogVisibleMp3: false,
  2776. dialogVisibleSelect: false,
  2777. dialogVisibleSentence: false,
  2778. dialogVisibleRate: false,
  2779. dialogVisibleChoice: false,
  2780. dialogVisiblemb: false,
  2781. dialogVisibleInvite: false,
  2782. dialogVisibleSource: false,
  2783. dialogVisibleVideo: false,
  2784. dialogVisibleupdataVideoT: false,
  2785. isClickColor: 1,
  2786. toolIndexType: "",
  2787. publicTool: 0,
  2788. searchPeople: "",
  2789. searchTN: "",
  2790. userid: this.$route.query.userid,
  2791. oid: this.$route.query.oid,
  2792. org: this.$route.query.org,
  2793. role: this.$route.query.role,
  2794. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  2795. dialogVisibleTable: false,
  2796. dialogVisibleWord: false,
  2797. tableJson: { text: "" },
  2798. wordJson: { text: "" },
  2799. dialogVisibleMoreUpload: false,
  2800. dialogVisiblePreTime: false,
  2801. uploadJson: [],
  2802. classJuri: [],
  2803. gradeList: [],
  2804. cover: [], //课程封面
  2805. myWord: [],
  2806. evaJuri: [],
  2807. evalua: "",
  2808. targetArray: [],
  2809. eTitle: "",
  2810. eJson: {},
  2811. fid: "", //一级
  2812. sid: "", //二级
  2813. tid: "", //二级
  2814. typeMode: 1,
  2815. eJSONNum: 0,
  2816. data: {
  2817. meta: {
  2818. name: "example",
  2819. author: "dd@163.com",
  2820. version: "0.2",
  2821. },
  2822. format: "node_array",
  2823. data: [{ id: "root", isroot: true, topic: "" }],
  2824. },
  2825. askJson: {
  2826. askCount: 1,
  2827. askTitle: "",
  2828. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2829. },
  2830. askJson2: {},
  2831. testJson: {},
  2832. testJson2: {},
  2833. selectJson: {},
  2834. selectJson2: {},
  2835. rateJson: [],
  2836. unitJson2: [],
  2837. unitJson: [
  2838. {
  2839. dyName: "", //单元标题
  2840. chapterInfo: [
  2841. {
  2842. isread: false,
  2843. chapterid: this.guid(),
  2844. title: "",
  2845. courseName: "",
  2846. taskJson: [
  2847. {
  2848. task: "",
  2849. taskDetail: "",
  2850. chapterData: [],
  2851. toolChoose: [
  2852. {
  2853. tool: [],
  2854. toolDetail: "",
  2855. toolType: 0,
  2856. askCount: 1,
  2857. askTitle: "",
  2858. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2859. },
  2860. ],
  2861. toolText: "",
  2862. isShowTools: false,
  2863. askCount: 1,
  2864. isFold: 0,
  2865. askTitle: "",
  2866. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2867. checkJson: [{ checkCount: [], checkPerent: [] }],
  2868. homeworkList: [],
  2869. },
  2870. ],
  2871. itemCount: 1,
  2872. fileList1: [],
  2873. video: [],
  2874. testData: [],
  2875. pData: [],
  2876. templateArray: [],
  2877. },
  2878. ],
  2879. },
  2880. ],
  2881. studentJuri: [],
  2882. teacherJuri: [],
  2883. checkboxList: [],
  2884. checkboxList2: [],
  2885. checkboxList3: [],
  2886. courseDetail: "",
  2887. classList: [],
  2888. classSearch: "",
  2889. gradeId: "",
  2890. number: "",
  2891. tTitle: "",
  2892. tdetail: "",
  2893. templateC: {},
  2894. AttText: {},
  2895. AttTextType: 0,
  2896. AttTextIndex: 0,
  2897. cTemplate: "",
  2898. CourseType: [],
  2899. CourseType2: [],
  2900. CourseTypeJson: {},
  2901. courseTypeId: [],
  2902. courseTypeSon: [],
  2903. clearArray: [],
  2904. pTypeCheck: [],
  2905. pTypeCheckName: [],
  2906. loading: false,
  2907. toolType: 0,
  2908. inputShow: true,
  2909. inputShow2: true,
  2910. toolIndex: 0,
  2911. cidType: 0,
  2912. answerQ: "",
  2913. answerQ2: "",
  2914. grade: [],
  2915. grade2: [],
  2916. courseUserid: "",
  2917. timer: null,
  2918. timer2: null,
  2919. pasteTimer: null,
  2920. checkId: "",
  2921. isDelete: 1,
  2922. addindex: 0,
  2923. selectSteps: 1,
  2924. groupJson: {},
  2925. dialogVisibleGroup: false,
  2926. rightBoxHeight: 0,
  2927. ManAarray: [],
  2928. checkBoolean: false,
  2929. inviteCode: [],
  2930. inviteId: "",
  2931. icode: "",
  2932. easyArray: [2, 4],
  2933. sourceData: {},
  2934. updateSourcePan: false,
  2935. videoJson: {},
  2936. isBtnDisplay: false,
  2937. isPasteTask: false,
  2938. isPasteChoice: false,
  2939. sysPicVisible2: false,
  2940. imageloading: false,
  2941. searchImageValue: "",
  2942. ppage: 1,
  2943. imageList: [],
  2944. heightPx: '100%',
  2945. toolsData: JSON.parse(converter(JSON.stringify(toolsData))),
  2946. pageSize: 200,
  2947. total: 0,
  2948. page: 0,
  2949. isLoading2: false,
  2950. teacherLoading: false,
  2951. };
  2952. },
  2953. directives: {
  2954. autoHeight: {
  2955. update(el, binding) {
  2956. const { value } = binding
  2957. if (value && typeof value === 'number') {
  2958. el.style.height = `${value}px`
  2959. } else {
  2960. el.style.height = 'auto'
  2961. }
  2962. },
  2963. componentUpdated(el) {
  2964. el.style.height = `${el.scrollHeight + 5}px`
  2965. },
  2966. },
  2967. },
  2968. computed: {
  2969. // rightBoxHeight: function () {
  2970. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  2971. // },
  2972. offsetLetfPx: function () {
  2973. //addnum可以直接在模板语法里面用,相当于data内的值
  2974. return (
  2975. $(".cru_select")[this.unitIndex] &&
  2976. $(".cru_select")[this.unitIndex].offsetLeft
  2977. );
  2978. },
  2979. getMan2() {
  2980. return function (people) {
  2981. let _people = people;
  2982. let _people2 = "";
  2983. if (this.ManAarray.length) {
  2984. for (var i = 0; i < this.ManAarray.length; i++) {
  2985. if (this.ManAarray[i].userid == people) {
  2986. _people2 = this.ManAarray[i].name;
  2987. break;
  2988. }
  2989. }
  2990. }
  2991. if (people == this.courseUserid) {
  2992. return "";
  2993. }
  2994. return this.ManAarray.length ? _people2 : "";
  2995. };
  2996. },
  2997. getListMan2() {
  2998. return function (list) {
  2999. let _people2 = [];
  3000. if (this.ManAarray.length) {
  3001. for (var j = 0; j < list.length; j++) {
  3002. let people = list[j];
  3003. for (var i = 0; i < this.ManAarray.length; i++) {
  3004. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  3005. _people2.push(this.ManAarray[i].name);
  3006. break;
  3007. }
  3008. }
  3009. }
  3010. }
  3011. return this.ManAarray.length ? _people2.join("、") : "";
  3012. };
  3013. },
  3014. isInvite() {
  3015. return function (cid) {
  3016. let array = [];
  3017. for (var i = 0; i < this.inviteCode.length; i++) {
  3018. array.push(this.inviteCode[i].cid);
  3019. }
  3020. return array.indexOf(cid) != -1;
  3021. };
  3022. },
  3023. getInviteCodeC() {
  3024. return function (cid) {
  3025. let array = [];
  3026. for (var i = 0; i < this.inviteCode.length; i++) {
  3027. array.push(this.inviteCode[i].cid);
  3028. }
  3029. return this.inviteCode[array.indexOf(cid)].ic;
  3030. };
  3031. },
  3032. getClassC() {
  3033. return function (c) {
  3034. let _c2 = "";
  3035. if (this.grade.length) {
  3036. for (var i = 0; i < this.grade.length; i++) {
  3037. if (this.grade[i].id == c) {
  3038. _c2 = this.grade[i].name;
  3039. break;
  3040. }
  3041. }
  3042. }
  3043. return this.grade.length ? _c2 : "";
  3044. };
  3045. },
  3046. getListClassC() {
  3047. return function (list) {
  3048. let _c2 = [];
  3049. if (this.grade.length) {
  3050. for (var j = 0; j < list.length; j++) {
  3051. let c = list[j]
  3052. for (var i = 0; i < this.grade.length; i++) {
  3053. if (this.grade[i].id == c) {
  3054. _c2.push(this.grade[i].name);
  3055. break;
  3056. }
  3057. }
  3058. }
  3059. }
  3060. return this.grade.length ? _c2.join('、') : "";
  3061. };
  3062. },
  3063. },
  3064. watch: {
  3065. checkboxList2(newValue, oldValue) {
  3066. if (this.grade.length && newValue) {
  3067. this.classList = []
  3068. for (var j = 0; j < this.grade.length; j++) {
  3069. if (newValue.indexOf(this.grade[j].id) !== -1) {
  3070. this.classList.push(this.grade[j])
  3071. }
  3072. }
  3073. }
  3074. },
  3075. unitIndex(newValue, oldValue) {
  3076. if (this.isDelete == 2) {
  3077. this.isDelete = 1;
  3078. return;
  3079. }
  3080. if (this.cid != "") {
  3081. let _unitIndex = oldValue;
  3082. if (
  3083. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3084. JSON.stringify(this.unitJson[_unitIndex])
  3085. ) {
  3086. this.$refs.rightboxR.scrollTop = 0;
  3087. return;
  3088. }
  3089. let cPan = 1;
  3090. for (
  3091. var j = 0;
  3092. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3093. j++
  3094. ) {
  3095. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3096. j
  3097. ].proVisible = false;
  3098. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3099. j
  3100. ].proVisible2 = false;
  3101. if (
  3102. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3103. .length > 1
  3104. ) {
  3105. for (
  3106. var z = 0;
  3107. z <
  3108. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3109. .length;
  3110. z++
  3111. ) {
  3112. if (
  3113. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3114. .toolChoose[z].tool.length
  3115. ) {
  3116. this.$message.error("请把工具添加完整");
  3117. cPan = 2;
  3118. break;
  3119. }
  3120. }
  3121. }
  3122. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3123. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3124. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3125. (ele) => {
  3126. return ele.value != "";
  3127. }
  3128. );
  3129. }
  3130. }
  3131. if (cPan == 2) {
  3132. this.unitIndex = oldValue;
  3133. return;
  3134. }
  3135. for (var i = 0; i < this.unitJson.length; i++) {
  3136. if (this.addindex != i) {
  3137. delete this.unitJson[i].isUpdate;
  3138. }
  3139. }
  3140. this.$refs.rightboxR.scrollTop = 0;
  3141. this.addindex = -1;
  3142. let params = [
  3143. {
  3144. cid: this.cid,
  3145. chapters: JSON.stringify(this.unitJson),
  3146. uid: this.userid,
  3147. unitIndex: _unitIndex,
  3148. },
  3149. ];
  3150. this.ajax
  3151. .post(this.$store.state.api + "updateWorkNew4", params)
  3152. .then((res) => {
  3153. // this.$message({
  3154. // message: "修改成功",
  3155. // type: "success",
  3156. // });
  3157. // this.courseId = this.cid;
  3158. })
  3159. .catch((err) => {
  3160. this.$message.error(this.lang.Poorinternetconnection);
  3161. console.error(err);
  3162. });
  3163. }
  3164. },
  3165. steps(newValue) {
  3166. if (newValue == 4) {
  3167. this.goTo(
  3168. "/synergyCourse?userid=" +
  3169. this.userid +
  3170. "&oid=" +
  3171. this.oid +
  3172. "&org=" +
  3173. this.org +
  3174. "&role=" +
  3175. this.role
  3176. );
  3177. }
  3178. },
  3179. },
  3180. methods: {
  3181. handleCurrentChange(val) {
  3182. // console.log(`当前页: ${val}`);
  3183. this.page = val;
  3184. this.getTeacher();
  3185. this.checkAll=false;
  3186. this.isIndeterminate = true;
  3187. },
  3188. openAI() {
  3189. window.topU.postMessage({ tools: "64" }, "*");
  3190. },
  3191. setMan() {
  3192. // let teacherJuri = this.teacherJuri2;
  3193. this.ManAarray = [];
  3194. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3195. if (_user.indexOf(this.userid) == -1) {
  3196. _user.push(this.userid);
  3197. }
  3198. if (_user.indexOf(this.courseUserid) == -1) {
  3199. _user.push(this.courseUserid);
  3200. }
  3201. let params = [{
  3202. uid: _user.join(","),
  3203. }];
  3204. this.ajax
  3205. .post(this.$store.state.api + "getAllUserByIdP", params)
  3206. .then((res) => {
  3207. let teacherJuri = res.data[0];
  3208. this.ManAarray = teacherJuri;
  3209. })
  3210. .catch((err) => {
  3211. console.error(err);
  3212. });
  3213. },
  3214. previewImg(url) {
  3215. this.$hevueImgPreview(url);
  3216. },
  3217. btnDisplay(bool) {
  3218. this.isBtnDisplay = bool
  3219. },
  3220. scrollChange() {
  3221. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3222. // document.querySelector('.course_left').scrollHeight
  3223. // document.querySelector('.stepsBottom2').scrollHeight
  3224. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  3225. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  3226. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  3227. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  3228. let top = $(".rightBox")[0].scrollTop - maxheight;
  3229. // if (top < client) {
  3230. // $('.stepsBottom2')[0].style.position = 'absolute'
  3231. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  3232. // // $('.stepsBottom2')[0].style.top = client + 'px'
  3233. // } else
  3234. if (top > 0) {
  3235. let top = $(".rightBox")[0].offsetTop;
  3236. $(".stepsBottom2")[0].style.position = "fixed";
  3237. $(".stepsBottom2")[0].style.top = top + "px";
  3238. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  3239. // $('.stepsBottom2')[0].style.top = top + 'px'
  3240. } else {
  3241. $(".stepsBottom2")[0].style.position = "absolute";
  3242. $(".stepsBottom2")[0].style.top = "0px";
  3243. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  3244. }
  3245. const clientHeight = $(".rightBox")[0].clientHeight;
  3246. const scrollTop = $(".rightBox")[0].scrollTop;
  3247. const scrollHeight = $(".rightBox")[0].scrollHeight;
  3248. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  3249. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  3250. }
  3251. },
  3252. handleCheckAllChange(val) {
  3253. this.checkboxList3 = [];
  3254. if(val){
  3255. this.teacherJuri.forEach(item=>{
  3256. this.checkboxList3.push(item.userid);
  3257. })
  3258. }
  3259. this.isIndeterminate = false;
  3260. },
  3261. handleCheckedTeacherJuriChange(value) {
  3262. let checkedCount = value.length;
  3263. this.checkAll = checkedCount === this.teacherJuri.length;
  3264. this.isIndeterminate =
  3265. checkedCount > 0 && checkedCount < this.teacherJuri.length;
  3266. },
  3267. addHw(e) {
  3268. var el = e.currentTarget;
  3269. el.getElementsByTagName("input")[0].click();
  3270. },
  3271. change(val) {
  3272. if (this.dialogVisible1) {
  3273. this.tdetail = val
  3274. } else if (this.dialogVisible6) {
  3275. this.AttText.text = val
  3276. } else if (this.dialogVisible2) {
  3277. this.cTemplate = val
  3278. } else if (this.dialogVisibleTable) {
  3279. this.tableJson.text = val
  3280. }
  3281. this.$forceUpdate();
  3282. console.log(val);
  3283. },
  3284. change2(val) {
  3285. console.log(val);
  3286. this.$forceUpdate();
  3287. },
  3288. handleClose(done) {
  3289. this.page = 0;
  3290. done();
  3291. },
  3292. closePan(tool) {
  3293. if (tool == 15) {
  3294. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  3295. this.dialogVisible8 = false
  3296. } else {
  3297. this.closeConfirm(tool);
  3298. }
  3299. } else if (tool == 4) {
  3300. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  3301. this.dialogVisible5 = false
  3302. } else {
  3303. this.closeConfirm(tool);
  3304. }
  3305. } else if (tool == 45) {
  3306. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  3307. this.dialogVisibleChoice = false
  3308. } else {
  3309. this.closeConfirm(tool);
  3310. }
  3311. } else if (tool == 41) {
  3312. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  3313. this.dialogVisibleSelect = false
  3314. } else {
  3315. this.closeConfirm(tool);
  3316. }
  3317. } else if (tool == 47) {
  3318. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  3319. this.dialogVisibleSentence = false
  3320. } else {
  3321. this.closeConfirm(tool);
  3322. }
  3323. }
  3324. },
  3325. closeConfirm(tool) {
  3326. this
  3327. .$confirm(this.lang.wantsavecontent, this.lang.tip, {
  3328. confirmButtonText: this.lang.saveCoco,
  3329. cancelButtonText: this.lang.notsave,
  3330. distinguishCancelAndClose: true,
  3331. type: "warning",
  3332. })
  3333. .then(() => {
  3334. if (tool == 15) {
  3335. this.addAnswer();
  3336. } else if (tool == 4) {
  3337. this.addAsk();
  3338. } else if (tool == 45) {
  3339. this.addTest();
  3340. } else if (tool == 41) {
  3341. this.addSelectAnswer();
  3342. } else if (tool == 47) {
  3343. this.addSentenceTool();
  3344. }
  3345. })
  3346. .catch(() => {
  3347. if (tool == 15) {
  3348. this.dialogVisible8 = false;
  3349. } else if (tool == 4) {
  3350. this.dialogVisible5 = false;
  3351. } else if (tool == 45) {
  3352. this.dialogVisibleChoice = false;
  3353. } else if (tool == 41) {
  3354. this.dialogVisibleSelect = false;
  3355. } else if (tool == 47) {
  3356. this.dialogVisibleSentence = false;
  3357. }
  3358. });
  3359. },
  3360. imgChange2(i, j) {
  3361. var _tmp = this.testJson.testJson[i].checkList[j];
  3362. this.noneBtnImg = _tmp.length >= 1;
  3363. },
  3364. imgChange3(i) {
  3365. var _tmp = this.testJson.testJson[i];
  3366. this.noneBtnImg = _tmp.length >= 1;
  3367. },
  3368. imgChange1(file, fileList, type, itemTaskIndex) {
  3369. if (type == 1) {
  3370. var _tmp = this.cover;
  3371. } else if (
  3372. type == 2 ||
  3373. type == 3 ||
  3374. type == 6 ||
  3375. type == 7 ||
  3376. type == 8
  3377. ) {
  3378. var _tmp =
  3379. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3380. .chapterData;
  3381. } else if (type == 4) {
  3382. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3383. } else {
  3384. var _tmp =
  3385. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3386. .homeworkList;
  3387. }
  3388. this.noneBtnImg = _tmp.length >= 1;
  3389. },
  3390. goTo(path) {
  3391. this.$router.push(path);
  3392. },
  3393. guid() {
  3394. var _num,
  3395. i,
  3396. _guid = "";
  3397. for (i = 0; i < 32; i++) {
  3398. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3399. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3400. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3401. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3402. _guid += "-";
  3403. }
  3404. }
  3405. return _guid;
  3406. },
  3407. lastSteps() {
  3408. if (this.cid && this.userid != this.courseUserid && this.role != '1') {
  3409. this.goTo(
  3410. "/synergyCourse?userid=" +
  3411. this.userid +
  3412. "&oid=" +
  3413. this.oid +
  3414. "&org=" +
  3415. this.org +
  3416. "&role=" +
  3417. this.role
  3418. );
  3419. } else {
  3420. this
  3421. .$confirm(this.lang.wantsavecontent, this.lang.tip, {
  3422. confirmButtonText: this.lang.saveCoco,
  3423. cancelButtonText: this.lang.notsave,
  3424. distinguishCancelAndClose: true,
  3425. type: "warning",
  3426. })
  3427. .then(() => {
  3428. if (this.cid == "" || this.cid == undefined) {
  3429. if (this.courseName == "") {
  3430. this.$message.error(this.lang.fillincoursename);
  3431. return;
  3432. } else {
  3433. this.addWork();
  3434. }
  3435. } else {
  3436. if (this.courseName == "") {
  3437. this.$message.error(this.lang.fillincoursename);
  3438. return;
  3439. } else {
  3440. // if (this.userid != this.courseUserid && this.role != "1") {
  3441. // this.updateWork2();
  3442. // } else {
  3443. this.updateWork();
  3444. // }
  3445. }
  3446. }
  3447. })
  3448. .catch((v) => {
  3449. console.log(v)
  3450. if (v == "cancel") {
  3451. this.goTo(
  3452. "/synergyCourse?userid=" +
  3453. this.userid +
  3454. "&oid=" +
  3455. this.oid +
  3456. "&org=" +
  3457. this.org +
  3458. "&role=" +
  3459. this.role
  3460. );
  3461. }
  3462. });
  3463. }
  3464. },
  3465. nextSteps() {
  3466. if (this.cid == "" || this.cid == undefined) {
  3467. if (this.courseName == "") {
  3468. this.$message.error(this.lang.fillincoursename);
  3469. return;
  3470. } else {
  3471. this.addWork();
  3472. }
  3473. } else {
  3474. if (this.courseName == "") {
  3475. this.$message.error(this.lang.fillincoursename);
  3476. return;
  3477. } else {
  3478. // if (this.userid != this.courseUserid && this.role != "1") {
  3479. // this.updateWork2();
  3480. // } else {
  3481. this.updateWork();
  3482. // }
  3483. }
  3484. }
  3485. this.$refs.stepBox.scrollTop = 0;
  3486. },
  3487. changeName() {
  3488. if (this.cid == "" || this.cid == undefined) {
  3489. if (this.courseName == "") {
  3490. this.$message.error(this.lang.fillincoursename);
  3491. return;
  3492. } else {
  3493. this.addWork(2);
  3494. }
  3495. } else {
  3496. if (this.courseName == "") {
  3497. this.$message.error(this.lang.fillincoursename);
  3498. return;
  3499. } else {
  3500. this.updateWork(2);
  3501. }
  3502. }
  3503. },
  3504. unitSet(i) {
  3505. this.unitIndex = i;
  3506. // this.$refs.rightboxR.scrollTop = 0;
  3507. },
  3508. time() {
  3509. if (!this.now) {
  3510. this.now = new Date().getTime();
  3511. return true;
  3512. } else {
  3513. let time = new Date().getTime();
  3514. if (time - this.now > 3000) {
  3515. this.now = time;
  3516. return true;
  3517. } else {
  3518. return false;
  3519. }
  3520. }
  3521. },
  3522. deleteUnit(i) {
  3523. var _this = this;
  3524. if (_this.time()) {
  3525. _this
  3526. .$confirm("确定删除此单元吗?", "提示", {
  3527. confirmButtonText: "确定",
  3528. cancelButtonText: "取消",
  3529. type: "warning",
  3530. })
  3531. .then(() => {
  3532. _this.isDelete = 2;
  3533. // _this.unitIndex = _this.unitIndex - 1;
  3534. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3535. // _this.$message.success("删除成功");
  3536. })
  3537. .catch(() => {
  3538. return;
  3539. });
  3540. }
  3541. },
  3542. deleteWork(chapid) {
  3543. let params = [
  3544. {
  3545. cid: this.cid,
  3546. chapters: JSON.stringify(this.unitJson),
  3547. uid: this.userid,
  3548. chapid: chapid,
  3549. },
  3550. ];
  3551. this.ajax
  3552. .post(this.$store.state.api + "deleteWork", params)
  3553. .then((res) => {
  3554. this.$message({
  3555. message: this.lang.DeleteSuccessful,
  3556. type: "success",
  3557. });
  3558. this.unitJson.splice(this.unitIndex, 1);
  3559. this.unitIndex = this.unitIndex - 1;
  3560. })
  3561. .catch((err) => {
  3562. this.$message.error(this.lang.Poorinternetconnection);
  3563. console.error(err);
  3564. });
  3565. },
  3566. deleteTool(itemTaskIndex, i) {
  3567. var _this = this;
  3568. if (_this.time()) {
  3569. _this
  3570. .$confirm("确定删除此工具吗?", "提示", {
  3571. confirmButtonText: "确定",
  3572. cancelButtonText: "取消",
  3573. type: "warning",
  3574. })
  3575. .then(() => {
  3576. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3577. itemTaskIndex
  3578. ].toolChoose.splice(i, 1);
  3579. _this.$message.success(this.lang.DeleteSuccessful);
  3580. })
  3581. .catch(() => {
  3582. return;
  3583. });
  3584. }
  3585. },
  3586. deleteSentence(i) {
  3587. var _this = this;
  3588. _this
  3589. .$confirm("确定删除此题目吗?", "提示", {
  3590. confirmButtonText: "确定",
  3591. cancelButtonText: "取消",
  3592. type: "warning",
  3593. })
  3594. .then(() => {
  3595. _this.sentenceList.splice(i, 1);
  3596. _this.$message.success(this.lang.DeleteSuccessful);
  3597. })
  3598. .catch(() => {
  3599. return;
  3600. });
  3601. },
  3602. deleteS(s, i, j) {
  3603. this.sentenceList[i].addSentence.splice(j, 1);
  3604. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3605. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3606. this.sentenceList[i].rightAnswer.splice(a, 1);
  3607. }
  3608. },
  3609. openT() {
  3610. window.topU.postMessage({ tools: "25" }, "*");
  3611. },
  3612. deleteTask(i) {
  3613. var _this = this;
  3614. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  3615. _this
  3616. .$confirm("确定删除此任务吗?", "提示", {
  3617. confirmButtonText: "确定",
  3618. cancelButtonText: "取消",
  3619. type: "warning",
  3620. })
  3621. .then(() => {
  3622. if (i == 0) {
  3623. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3624. i + 1
  3625. ].chapterData = JSON.parse(
  3626. JSON.stringify(
  3627. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  3628. .chapterData
  3629. )
  3630. );
  3631. }
  3632. _this.$forceUpdate();
  3633. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  3634. _this.$message.success(this.lang.DeleteSuccessful);
  3635. // this.$nextTick(() => {
  3636. // $('.stepsBottom2')[0].style.transition = 'unset'
  3637. // setTimeout(() => {
  3638. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3639. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  3640. // let top = $('.stepsBottom2')[0].offsetTop - 20
  3641. // if (top > client) {
  3642. // $('.stepsBottom2')[0].style.top = client + 'px'
  3643. // }
  3644. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  3645. // this.$forceUpdate()
  3646. // }, 500)
  3647. // })
  3648. })
  3649. .catch(() => {
  3650. return;
  3651. });
  3652. },
  3653. handlePictureCardPreview(file) {
  3654. this.dialogImageUrl = file.url;
  3655. },
  3656. clean(i, c) {
  3657. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3658. },
  3659. handle_remove1(file, fileList, type) {
  3660. var _tmp = this.cover;
  3661. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3662. // if (_tmp[i].uid == file.uid) {
  3663. // _tmp.splice(i, 1);
  3664. // break;
  3665. // }
  3666. // this.cover = _tmp;
  3667. // }
  3668. this.cover = [];
  3669. this.noneBtnImg = this.cover.length >= 1;
  3670. this.isSysPic = false;
  3671. this.isSysPic2 = false;
  3672. this.$forceUpdate();
  3673. },
  3674. addImg(e) {
  3675. var el = e.currentTarget;
  3676. el.getElementsByTagName("input")[0].click();
  3677. e.target.value = "";
  3678. },
  3679. addChaptersTools(i) {
  3680. this.chapTools = [
  3681. {
  3682. tools: [],
  3683. toolDetail: "",
  3684. },
  3685. ];
  3686. this.chapCount = i;
  3687. this.dialogVisible4 = true;
  3688. },
  3689. isNoFinsh() {
  3690. this.$message.warning("功能正在开发中");
  3691. },
  3692. addAttText(i) {
  3693. this.AttText = {
  3694. title: "",
  3695. text: "",
  3696. };
  3697. this.taskCount = i;
  3698. this.AttTextType = 0;
  3699. this.$forceUpdate();
  3700. this.dialogVisible6 = true;
  3701. setTimeout(() => {
  3702. this.$refs['fuInput'].focus();
  3703. }, 100);
  3704. },
  3705. openLine(i) {
  3706. this.line = "";
  3707. this.lineCount = i;
  3708. this.lineType = 0;
  3709. this.$forceUpdate();
  3710. this.dialogVisible7 = true;
  3711. },
  3712. pasteLine(i) {
  3713. navigator.clipboard
  3714. .readText()
  3715. .then((v) => {
  3716. console.log("获取剪贴板成功:", v);
  3717. const html = v;
  3718. const regex = /src="(.*?)"/g;
  3719. const match = regex.exec(html);
  3720. if (match && match[1]) {
  3721. console.log(match[1]);
  3722. this.$message.success("粘贴成功");
  3723. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3724. i
  3725. ].chapterData.push({
  3726. name: "链接",
  3727. title: "嵌入代码",
  3728. url: match[1],
  3729. type: 8,
  3730. });
  3731. } else {
  3732. // console.log("未找到包含 src 属性的 iframe");
  3733. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  3734. }
  3735. })
  3736. .catch((v) => {
  3737. console.log("获取剪贴板失败: ", v);
  3738. });
  3739. },
  3740. openSource(i) {
  3741. this.lineCount = i;
  3742. this.sourceData = {};
  3743. this.dialogVisibleSource = true;
  3744. this.updateSourcePan = false;
  3745. },
  3746. addSource() {
  3747. if (!Object.keys(this.sourceData).length) {
  3748. this.$message.error("请选择要上传的资源");
  3749. return;
  3750. }
  3751. let keys = Object.keys(this.sourceData);
  3752. for (var i = 0; i < keys.length; i++) {
  3753. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3754. this.lineCount
  3755. ].chapterData.push({
  3756. name: "链接",
  3757. title: this.sourceData[keys[i]].name,
  3758. url: this.sourceData[keys[i]].url,
  3759. type: 14,
  3760. id: keys[i]
  3761. });
  3762. }
  3763. this.$forceUpdate();
  3764. this.dialogVisibleSource = false;
  3765. },
  3766. updateSource() {
  3767. if (!Object.keys(this.sourceData).length) {
  3768. this.$message.error("请选择要上传的资源");
  3769. return;
  3770. }
  3771. let keys = Object.keys(this.sourceData);
  3772. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3773. this.taskCount
  3774. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  3775. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3776. this.taskCount
  3777. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  3778. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3779. this.taskCount
  3780. ].chapterData[this.lineCount].id = keys[0];
  3781. this.updateSourcePan = false;
  3782. this.$forceUpdate();
  3783. this.dialogVisibleSource = false;
  3784. },
  3785. deleteM(i, j) {
  3786. this.testJson.testJson[i].timuList.splice(j, 1);
  3787. },
  3788. beforeUploadTiMu(event, i) {
  3789. const loading = this.openLoading();
  3790. var file = event.target.files[0];
  3791. var credentials = {
  3792. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3793. secretAccessKey: "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",
  3794. }; //秘钥形式的登录上传
  3795. window.AWS.config.update(credentials);
  3796. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3797. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3798. var _this = this;
  3799. if (file) {
  3800. var params = {
  3801. Key:
  3802. file.name.split(".")[0] +
  3803. new Date().getTime() +
  3804. "." +
  3805. file.name.split(".")[file.name.split(".").length - 1],
  3806. ContentType: file.type,
  3807. Body: file,
  3808. "Access-Control-Allow-Credentials": "*",
  3809. ACL: "public-read",
  3810. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3811. var options = {
  3812. partSize: 2048 * 1024 * 1024,
  3813. queueSize: 2,
  3814. leavePartsOnError: true,
  3815. };
  3816. bucket
  3817. .upload(params, options)
  3818. .on("httpUploadProgress", function (evt) {
  3819. //这里可以写进度条
  3820. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3821. })
  3822. .send(function (err, data) {
  3823. loading.close();
  3824. if (err) {
  3825. _this.$message.error("上传失败");
  3826. } else {
  3827. if (_this.testJson.testJson[i].timuList) {
  3828. _this.testJson.testJson[i].timuList.push({
  3829. src: data.Location,
  3830. });
  3831. } else {
  3832. _this.testJson.testJson[i].timuList = [];
  3833. _this.testJson.testJson[i].timuList.push({
  3834. src: data.Location,
  3835. });
  3836. }
  3837. _this.imgChange3(i);
  3838. _this.$forceUpdate();
  3839. }
  3840. });
  3841. }
  3842. },
  3843. beforeUploadTi(event, i, j) {
  3844. const loading = this.openLoading();
  3845. var file = event.target.files[0];
  3846. var credentials = {
  3847. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3848. secretAccessKey: "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",
  3849. }; //秘钥形式的登录上传
  3850. window.AWS.config.update(credentials);
  3851. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3852. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3853. var _this = this;
  3854. if (file) {
  3855. var params = {
  3856. Key:
  3857. file.name.split(".")[0] +
  3858. new Date().getTime() +
  3859. "." +
  3860. file.name.split(".")[file.name.split(".").length - 1],
  3861. ContentType: file.type,
  3862. Body: file,
  3863. "Access-Control-Allow-Credentials": "*",
  3864. ACL: "public-read",
  3865. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3866. var options = {
  3867. partSize: 2048 * 1024 * 1024,
  3868. queueSize: 2,
  3869. leavePartsOnError: true,
  3870. };
  3871. bucket
  3872. .upload(params, options)
  3873. .on("httpUploadProgress", function (evt) {
  3874. //这里可以写进度条
  3875. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3876. })
  3877. .send(function (err, data) {
  3878. loading.close();
  3879. if (err) {
  3880. _this.$message.error("上传失败");
  3881. } else {
  3882. _this.testJson.testJson[i].checkList[j] = {};
  3883. _this.testJson.testJson[i].checkList[j].src = data.Location;
  3884. _this.testJson.testJson[i].checkList[j].imgType = 1;
  3885. _this.imgChange2(i, j);
  3886. _this.$forceUpdate();
  3887. }
  3888. });
  3889. }
  3890. },
  3891. beforeUpload1(event, type) {
  3892. // const loading = this.openLoading();
  3893. var file = event.target.files[0];
  3894. var credentials = {
  3895. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3896. secretAccessKey: "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",
  3897. }; //秘钥形式的登录上传
  3898. window.AWS.config.update(credentials);
  3899. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3900. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3901. var _this = this;
  3902. if (file) {
  3903. var params = {
  3904. Key:
  3905. file.name.split(".")[0] +
  3906. new Date().getTime() +
  3907. "." +
  3908. file.name.split(".")[file.name.split(".").length - 1],
  3909. ContentType: file.type,
  3910. Body: file,
  3911. "Access-Control-Allow-Credentials": "*",
  3912. ACL: "public-read",
  3913. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3914. var options = {
  3915. partSize: 2048 * 1024 * 1024,
  3916. queueSize: 2,
  3917. leavePartsOnError: true,
  3918. };
  3919. bucket
  3920. .upload(params, options)
  3921. .on("httpUploadProgress", function (evt) {
  3922. //这里可以写进度条
  3923. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3924. })
  3925. .send(function (err, data) {
  3926. // loading.close();
  3927. if (err) {
  3928. // var a = _this.$refs.upload1.uploadFiles;
  3929. // a.splice(a.length - 1, a.length);
  3930. _this.$message.error("上传失败");
  3931. } else {
  3932. _this.cover.push({
  3933. name: file.name,
  3934. url: data.Location,
  3935. uid: file.uid,
  3936. });
  3937. _this.imgChange1(null, null, 1, null);
  3938. _this.choosePicVisible = false;
  3939. console.log(data.Location);
  3940. }
  3941. });
  3942. }
  3943. },
  3944. beforeUploadSelect(event, type) {
  3945. // const loading = this.openLoading();
  3946. var file = event.target.files[0];
  3947. var credentials = {
  3948. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3949. secretAccessKey: "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",
  3950. }; //秘钥形式的登录上传
  3951. window.AWS.config.update(credentials);
  3952. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3953. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3954. var _this = this;
  3955. if (file) {
  3956. var params = {
  3957. Key:
  3958. file.name.split(".")[0] +
  3959. new Date().getTime() +
  3960. "." +
  3961. file.name.split(".")[file.name.split(".").length - 1],
  3962. ContentType: file.type,
  3963. Body: file,
  3964. "Access-Control-Allow-Credentials": "*",
  3965. ACL: "public-read",
  3966. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3967. var options = {
  3968. partSize: 2048 * 1024 * 1024,
  3969. queueSize: 2,
  3970. leavePartsOnError: true,
  3971. };
  3972. bucket
  3973. .upload(params, options)
  3974. .on("httpUploadProgress", function (evt) {
  3975. //这里可以写进度条
  3976. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3977. })
  3978. .send(function (err, data) {
  3979. // loading.close();
  3980. if (err) {
  3981. _this.$message.error("上传失败");
  3982. } else {
  3983. _this.selectJson.url = data.Location;
  3984. console.log(data.Location);
  3985. }
  3986. });
  3987. }
  3988. },
  3989. chooseSysPic(p) {
  3990. this.cover = []
  3991. setTimeout(() => {
  3992. this.cover[0] = {
  3993. name: "系统图片.png",
  3994. url: p,
  3995. };
  3996. this.imgChange1(null, null, 1, null);
  3997. this.$forceUpdate();
  3998. }, 0);
  3999. this.isSysPic = true;
  4000. this.isSysPic2 = false;
  4001. this.sysPicVisible = false;
  4002. this.$forceUpdate();
  4003. },
  4004. chooseSysPic2(p) {
  4005. this.cover = []
  4006. setTimeout(() => {
  4007. this.cover[0] = {
  4008. name: "网络图片.png",
  4009. url: p,
  4010. };
  4011. this.imgChange1(null, null, 1, null);
  4012. this.$forceUpdate();
  4013. }, 0);
  4014. this.isSysPic2 = true;
  4015. this.isSysPic = false;
  4016. this.sysPicVisible2 = false;
  4017. this.$forceUpdate();
  4018. },
  4019. beforeUpload(data) {
  4020. this.$refs.upload1.uploadFiles;
  4021. this.uploadLoading1 = true;
  4022. var file = data.file;
  4023. var credentials = {
  4024. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4025. secretAccessKey: "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",
  4026. }; //秘钥形式的登录上传
  4027. window.AWS.config.update(credentials);
  4028. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4029. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4030. var _this = this;
  4031. if (file) {
  4032. var params = {
  4033. Key:
  4034. file.name.split(".")[0] +
  4035. new Date().getTime() +
  4036. "." +
  4037. file.name.split(".")[file.name.split(".").length - 1],
  4038. ContentType: file.type,
  4039. Body: file,
  4040. "Access-Control-Allow-Credentials": "*",
  4041. ACL: "public-read",
  4042. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4043. var options = {
  4044. partSize: 2048 * 1024 * 1024,
  4045. queueSize: 2,
  4046. leavePartsOnError: true,
  4047. };
  4048. bucket
  4049. .upload(params, options)
  4050. .on("httpUploadProgress", function (evt) {
  4051. //这里可以写进度条
  4052. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4053. })
  4054. .send(function (err, data) {
  4055. _this.uploadLoading1 = false;
  4056. if (err) {
  4057. // var a = _this.$refs.upload1.uploadFiles;
  4058. // a.splice(a.length - 1, a.length);
  4059. _this.$message.error("上传失败");
  4060. } else {
  4061. //上传成功处理
  4062. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4063. name: file.name,
  4064. url: data.Location,
  4065. uid: file.uid,
  4066. });
  4067. _this.imgChange();
  4068. console.log(data.Location);
  4069. }
  4070. });
  4071. }
  4072. },
  4073. onExceed() {
  4074. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4075. },
  4076. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4077. // const loading = this.openLoading();
  4078. var file = event.target.files[0];
  4079. var credentials = {
  4080. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4081. secretAccessKey: "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",
  4082. }; //秘钥形式的登录上传
  4083. window.AWS.config.update(credentials);
  4084. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4085. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4086. var _this = this;
  4087. if (type == 3) {
  4088. var b = [
  4089. "DOC",
  4090. "DOCX",
  4091. "DOCM",
  4092. "DOTM",
  4093. "DOTX",
  4094. "PPTX",
  4095. "PPSX",
  4096. "PPT",
  4097. "PPS",
  4098. "PPTM",
  4099. "POTM",
  4100. "PPAM",
  4101. "POTX",
  4102. "PPSM",
  4103. "XLSX",
  4104. "XLS",
  4105. ];
  4106. if (
  4107. b.indexOf(
  4108. file.name
  4109. .split(".")
  4110. [file.name.split(".").length - 1].toLocaleUpperCase()
  4111. ) != -1
  4112. ) {
  4113. if (file.size / 1024 / 1024 > 80) {
  4114. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4115. this.inputShow = true;
  4116. // var a = _this.$refs.upload1.uploadFiles;
  4117. // a.splice(a.length - 1, a.length);
  4118. // loading.close();
  4119. return;
  4120. }
  4121. } else if (
  4122. file.name
  4123. .split(".")
  4124. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4125. ) {
  4126. if (file.size / 1024 / 1024 > 80) {
  4127. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4128. this.inputShow = true;
  4129. // var a = _this.$refs.upload1.uploadFiles;
  4130. // a.splice(a.length - 1, a.length);
  4131. // loading.close();
  4132. return;
  4133. }
  4134. }
  4135. }
  4136. this.inputShow = false;
  4137. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4138. itemTaskIndex
  4139. ].progress = 0;
  4140. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4141. itemTaskIndex
  4142. ].proVisible = true;
  4143. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4144. itemTaskIndex
  4145. ].isFinishSize = 0;
  4146. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4147. itemTaskIndex
  4148. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4149. _this.$forceUpdate();
  4150. if (file) {
  4151. var params = {
  4152. Key:
  4153. file.name.split(".")[0] +
  4154. new Date().getTime() +
  4155. "." +
  4156. file.name.split(".")[file.name.split(".").length - 1],
  4157. ContentType: file.type,
  4158. Body: file,
  4159. "Access-Control-Allow-Credentials": "*",
  4160. ACL: "public-read",
  4161. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4162. var options = {
  4163. partSize: 2048 * 1024 * 1024,
  4164. queueSize: 2,
  4165. leavePartsOnError: true,
  4166. };
  4167. bucket
  4168. .upload(params, options)
  4169. .on("httpUploadProgress", function (evt) {
  4170. //这里可以写进度条
  4171. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4172. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4173. itemTaskIndex
  4174. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4175. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4176. itemTaskIndex
  4177. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4178. _this.$forceUpdate();
  4179. })
  4180. .send(function (err, data) {
  4181. // loading.close();
  4182. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4183. itemTaskIndex
  4184. ].progress = 100;
  4185. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4186. itemTaskIndex
  4187. ].isFinishSize =
  4188. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4189. itemTaskIndex
  4190. ].isAllSize;
  4191. _this.$forceUpdate();
  4192. setTimeout(() => {
  4193. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4194. itemTaskIndex
  4195. ].proVisible = false;
  4196. _this.$forceUpdate();
  4197. }, 1000);
  4198. _this.inputShow = true;
  4199. if (err) {
  4200. // var a = _this.$refs.upload1.uploadFiles;
  4201. // a.splice(a.length - 1, a.length);
  4202. _this.$message.error("上传失败");
  4203. } else {
  4204. if (type == 13) {
  4205. let _type = 2;
  4206. var imgA = [
  4207. "png",
  4208. "jpg",
  4209. "jpeg",
  4210. "bmp",
  4211. "gif",
  4212. "webp",
  4213. "psd",
  4214. "svg",
  4215. "tiff",
  4216. ];
  4217. var fileA = [
  4218. "PDF",
  4219. "DOC",
  4220. "DOCX",
  4221. "DOCM",
  4222. "DOTM",
  4223. "DOTX",
  4224. "PPTX",
  4225. "PPSX",
  4226. "PPT",
  4227. "PPS",
  4228. "PPTM",
  4229. "POTM",
  4230. "PPAM",
  4231. "POTX",
  4232. "PPSM",
  4233. "XLSX",
  4234. "XLS",
  4235. ];
  4236. var videoA = [
  4237. "AVI",
  4238. "NAVI",
  4239. "MPEG",
  4240. "ASF",
  4241. "MOV",
  4242. "WMV",
  4243. "3GP",
  4244. "RM",
  4245. "RMVB",
  4246. "FLV",
  4247. "F4V",
  4248. "H.264",
  4249. "H.265",
  4250. "REAL VIDEO",
  4251. "MKV",
  4252. "WebM",
  4253. "HDDVD",
  4254. "MP4",
  4255. "MPG",
  4256. "M4V",
  4257. "MGV",
  4258. "OGV",
  4259. "QTM",
  4260. "STR",
  4261. "AMC",
  4262. "DVX",
  4263. "EVO",
  4264. "DAT",
  4265. "OGG",
  4266. "OGM",
  4267. ];
  4268. if (
  4269. fileA.indexOf(
  4270. data.Location.split(".")[
  4271. data.Location.split(".").length - 1
  4272. ].toLocaleUpperCase()
  4273. ) != -1
  4274. ) {
  4275. _type = 3;
  4276. } else if (
  4277. videoA.indexOf(
  4278. data.Location.split(".")[
  4279. data.Location.split(".").length - 1
  4280. ].toLocaleUpperCase()
  4281. ) != -1
  4282. ) {
  4283. _type = 2;
  4284. } else if (
  4285. imgA.indexOf(
  4286. data.Location.split(".")[
  4287. data.Location.split(".").length - 1
  4288. ].toLocaleLowerCase()
  4289. ) != -1
  4290. ) {
  4291. _type = 13;
  4292. } else {
  4293. _type = 12;
  4294. }
  4295. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4296. itemTaskIndex
  4297. ].chapterData.push({
  4298. name: file.name,
  4299. url: data.Location,
  4300. uid: file.uid,
  4301. type: _type,
  4302. });
  4303. _this.imgChange1(null, null, _type, itemTaskIndex);
  4304. } else if (type == 2 || type == 3 || type == 12) {
  4305. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4306. itemTaskIndex
  4307. ].chapterData.push({
  4308. name: file.name,
  4309. url: data.Location,
  4310. uid: file.uid,
  4311. type: type,
  4312. });
  4313. _this.imgChange1(null, null, type, itemTaskIndex);
  4314. } else if (type == 4) {
  4315. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4316. itemTaskIndex
  4317. ].fileList1.push({
  4318. name: file.name,
  4319. url: data.Location,
  4320. uid: file.uid,
  4321. });
  4322. _this.imgChange1(null, null, type, itemTaskIndex);
  4323. } else if (type == 5) {
  4324. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4325. itemTaskIndex
  4326. ].homeworkList.push({
  4327. name: file.name,
  4328. url: data.Location,
  4329. uid: file.uid,
  4330. });
  4331. _this.imgChange1(null, null, type, itemTaskIndex);
  4332. }
  4333. console.log(data.Location);
  4334. }
  4335. });
  4336. }
  4337. },
  4338. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4339. // const loading = this.openLoading();
  4340. var file = event.target.files[0];
  4341. var credentials = {
  4342. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4343. secretAccessKey: "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",
  4344. }; //秘钥形式的登录上传
  4345. window.AWS.config.update(credentials);
  4346. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4347. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4348. var _this = this;
  4349. if (type == 3) {
  4350. var b = [
  4351. "DOC",
  4352. "DOCX",
  4353. "DOCM",
  4354. "DOTM",
  4355. "DOTX",
  4356. "PPTX",
  4357. "PPSX",
  4358. "PPT",
  4359. "PPS",
  4360. "PPTM",
  4361. "POTM",
  4362. "PPAM",
  4363. "POTX",
  4364. "PPSM",
  4365. ];
  4366. if (
  4367. b.indexOf(
  4368. file.name
  4369. .split(".")
  4370. [file.name.split(".").length - 1].toLocaleUpperCase()
  4371. ) != -1
  4372. ) {
  4373. if (file.size / 1024 / 1024 > 80) {
  4374. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4375. this.inputShow = true;
  4376. // var a = _this.$refs.upload1.uploadFiles;
  4377. // a.splice(a.length - 1, a.length);
  4378. // loading.close();
  4379. return;
  4380. }
  4381. } else if (
  4382. file.name
  4383. .split(".")
  4384. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4385. ) {
  4386. if (file.size / 1024 / 1024 > 80) {
  4387. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4388. this.inputShow = true;
  4389. // var a = _this.$refs.upload1.uploadFiles;
  4390. // a.splice(a.length - 1, a.length);
  4391. // loading.close();
  4392. return;
  4393. }
  4394. }
  4395. }
  4396. this.inputShow = false;
  4397. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4398. itemTaskIndex
  4399. ].progress = 0;
  4400. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4401. itemTaskIndex
  4402. ].proVisible = true;
  4403. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4404. itemTaskIndex
  4405. ].isFinishSize = 0;
  4406. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4407. itemTaskIndex
  4408. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4409. _this.$forceUpdate();
  4410. if (file) {
  4411. var params = {
  4412. Key:
  4413. file.name.split(".")[0] +
  4414. new Date().getTime() +
  4415. "." +
  4416. file.name.split(".")[file.name.split(".").length - 1],
  4417. ContentType: file.type,
  4418. Body: file,
  4419. "Access-Control-Allow-Credentials": "*",
  4420. ACL: "public-read",
  4421. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4422. var options = {
  4423. partSize: 2048 * 1024 * 1024,
  4424. queueSize: 2,
  4425. leavePartsOnError: true,
  4426. };
  4427. bucket
  4428. .upload(params, options)
  4429. .on("httpUploadProgress", function (evt) {
  4430. //这里可以写进度条
  4431. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4432. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4433. itemTaskIndex
  4434. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4435. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4436. itemTaskIndex
  4437. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4438. _this.$forceUpdate();
  4439. })
  4440. .send(function (err, data) {
  4441. // loading.close();
  4442. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4443. itemTaskIndex
  4444. ].progress = 100;
  4445. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4446. itemTaskIndex
  4447. ].isFinishSize =
  4448. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4449. itemTaskIndex
  4450. ].isAllSize;
  4451. _this.$forceUpdate();
  4452. setTimeout(() => {
  4453. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4454. itemTaskIndex
  4455. ].proVisible = false;
  4456. _this.$forceUpdate();
  4457. }, 1000);
  4458. _this.inputShow = true;
  4459. if (err) {
  4460. // var a = _this.$refs.upload1.uploadFiles;
  4461. // a.splice(a.length - 1, a.length);
  4462. _this.$message.error("上传失败");
  4463. } else {
  4464. if (type == 2 || type == 3) {
  4465. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4466. itemTaskIndex
  4467. ].chapterData.push({
  4468. name: file.name,
  4469. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4470. // itemTaskIndex
  4471. // ].chapterData.length+1),
  4472. url: data.Location,
  4473. uid: file.uid,
  4474. type: type,
  4475. text: string,
  4476. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4477. // itemTaskIndex
  4478. // ].chapterData.length + 1),
  4479. });
  4480. _this.imgChange1(null, null, type, itemTaskIndex);
  4481. } else if (type == 4) {
  4482. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4483. itemTaskIndex
  4484. ].fileList1.push({
  4485. name: file.name,
  4486. url: data.Location,
  4487. uid: file.uid,
  4488. });
  4489. _this.imgChange1(null, null, type, itemTaskIndex);
  4490. } else if (type == 5) {
  4491. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4492. itemTaskIndex
  4493. ].homeworkList.push({
  4494. name: file.name,
  4495. url: data.Location,
  4496. uid: file.uid,
  4497. });
  4498. _this.imgChange1(null, null, type, itemTaskIndex);
  4499. }
  4500. console.log(data.Location);
  4501. }
  4502. });
  4503. }
  4504. },
  4505. addunit() {
  4506. this.unitJson.push({
  4507. dyName: "", //单元标题
  4508. isUpdate: 1,
  4509. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4510. chapterInfo: [
  4511. {
  4512. isread: false,
  4513. chapterid: this.guid(),
  4514. title: "",
  4515. courseName: "",
  4516. taskJson: [
  4517. {
  4518. task: "",
  4519. taskDetail: "",
  4520. chapterData: [],
  4521. toolText: "",
  4522. toolChoose: [
  4523. {
  4524. tool: [],
  4525. toolDetail: "",
  4526. toolType: 0,
  4527. askCount: 1,
  4528. askTitle: "",
  4529. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4530. },
  4531. ],
  4532. isShowTools: false,
  4533. askCount: 1,
  4534. isFold: 0,
  4535. askTitle: "",
  4536. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4537. checkJson: [{ checkCount: [], checkPerent: [] }],
  4538. homeworkList: [],
  4539. },
  4540. ],
  4541. itemCount: 1,
  4542. fileList1: [],
  4543. video: [],
  4544. testData: [],
  4545. pData: [],
  4546. templateArray: [],
  4547. },
  4548. ],
  4549. });
  4550. this.addindex = this.unitJson.length - 1;
  4551. setTimeout(() => {
  4552. this.unitIndex = this.unitJson.length - 1;
  4553. this.unitSet(this.unitIndex);
  4554. }, 0);
  4555. },
  4556. addToolFun(itemTaskIndex) {
  4557. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4558. itemTaskIndex
  4559. ].toolChoose.push({
  4560. tool: [],
  4561. toolDetail: "",
  4562. toolType: 0,
  4563. askCount: 1,
  4564. askTitle: "",
  4565. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4566. });
  4567. },
  4568. addTaskBorder() {
  4569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4570. task: "",
  4571. taskDetail: "",
  4572. chapterData: [],
  4573. toolChoose: [
  4574. {
  4575. tool: [],
  4576. toolDetail: "",
  4577. toolType: 0,
  4578. askCount: 1,
  4579. askTitle: "",
  4580. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4581. },
  4582. ],
  4583. toolText: "",
  4584. isShowTools: false,
  4585. askCount: 1,
  4586. isFold: 0,
  4587. askTitle: "",
  4588. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4589. checkJson: [{ checkCount: [], checkPerent: [] }],
  4590. homeworkList: [],
  4591. });
  4592. },
  4593. add(e, i) {
  4594. var el = e.currentTarget;
  4595. el.getElementsByTagName("input")[0].click();
  4596. },
  4597. fold(i, e, type) {
  4598. var a = e.currentTarget.parentElement.parentElement;
  4599. var b = e.currentTarget.parentElement;
  4600. if (type == 1) {
  4601. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4602. a.className += " smallTaskBorder";
  4603. b.className += " funBlockTop";
  4604. } else {
  4605. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4606. a.className = "taskBorder";
  4607. b.className = "funBlock";
  4608. }
  4609. console.log(e);
  4610. },
  4611. fold2(i) {
  4612. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  4613. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  4614. } else {
  4615. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  4616. }
  4617. setTimeout(() => {
  4618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  4619. setTimeout(() => {
  4620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  4621. }, 0);
  4622. }, 0);
  4623. this.$forceUpdate();
  4624. },
  4625. foldC(i) {
  4626. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  4627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  4628. } else {
  4629. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  4630. }
  4631. this.$forceUpdate();
  4632. },
  4633. fold3(i, ti) {
  4634. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  4635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  4636. } else {
  4637. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  4638. }
  4639. this.$forceUpdate();
  4640. },
  4641. deleteHomeworkBox(unitIndex, index, i) {
  4642. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4643. this.taskCount
  4644. ].homeworkList.splice(i, 1);
  4645. },
  4646. getStudent() {
  4647. let params = {
  4648. oid: this.oid,
  4649. cu: "",
  4650. cn: this.searchPeople,
  4651. };
  4652. this.ajax
  4653. .get(this.$store.state.api + "selectStudentAdd", params)
  4654. .then((res) => {
  4655. this.studentJuri = res.data[0];
  4656. })
  4657. .catch((err) => {
  4658. this.isLoading = false;
  4659. console.error(err);
  4660. });
  4661. },
  4662. getTeacher() {
  4663. this.teacherLoading = true;
  4664. let params = {
  4665. org:
  4666. this.org && this.org != "undefined" && this.org != "null"
  4667. ? this.org
  4668. : "",
  4669. oid: this.oid,
  4670. cu: "",
  4671. cn: this.searchTN,
  4672. page: this.page,
  4673. pageSize: this.pageSize,
  4674. };
  4675. this.ajax
  4676. .get(
  4677. this.$store.state.api +
  4678. (this.org && this.org != "undefined" && this.org != "null"
  4679. ? "selectUserByOidS2"
  4680. : "selectUserByOidS2"),
  4681. params
  4682. )
  4683. .then((res) => {
  4684. let teacherJuri = res.data[0];
  4685. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  4686. this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]));
  4687. for (var i = 0; i < teacherJuri.length; i++) {
  4688. if (teacherJuri[i].userid == this.userid) {
  4689. teacherJuri.splice(i, 1);
  4690. break;
  4691. }
  4692. }
  4693. this.teacherJuri = teacherJuri;
  4694. this.teacherLoading = false;
  4695. })
  4696. .catch((err) => {
  4697. this.teacherLoading = false;
  4698. console.error(err);
  4699. });
  4700. },
  4701. searchStudent() {
  4702. this.getStudent();
  4703. },
  4704. selectGrage() {
  4705. let params = {
  4706. oid: this.oid,
  4707. };
  4708. this.ajax
  4709. .get(this.$store.state.api + "selectGrageBySchool", params)
  4710. .then((res) => {
  4711. this.gradeList = res.data[0];
  4712. })
  4713. .catch((err) => {
  4714. this.isLoading = false;
  4715. console.error(err);
  4716. });
  4717. },
  4718. //获取班级列表
  4719. getClass() {
  4720. let params = {
  4721. oid: this.oid,
  4722. gid: this.gradeId,
  4723. cn: this.classSearch,
  4724. };
  4725. this.ajax
  4726. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  4727. .then((res) => {
  4728. if (!this.grade.length) {
  4729. this.grade = res.data[0];
  4730. }
  4731. this.grade2 = res.data[0];
  4732. this.classJuri = res.data[0];
  4733. })
  4734. .catch((err) => {
  4735. this.isLoading = false;
  4736. console.error(err);
  4737. });
  4738. },
  4739. CourseType2Change(val) {
  4740. this.pTypeCheck = [];
  4741. for (var i = 0; i < this.CourseType2.length; i++) {
  4742. let typeA = this.CourseType2[i];
  4743. if (val.indexOf(typeA.name) != -1) {
  4744. this.pTypeCheck.push(...typeA.id);
  4745. }
  4746. }
  4747. },
  4748. getChapterData(e, i, j, ic, type) {
  4749. e.stopPropagation();
  4750. this.updataC = true;
  4751. this.icc = ic;
  4752. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4753. console.log("还不能下载图片喔");
  4754. }
  4755. },
  4756. deleteChapterData(e, i, j, ic, taskI) {
  4757. e.stopPropagation();
  4758. let _this = this;
  4759. _this
  4760. .$confirm("确定删除此项?", "提示", {
  4761. confirmButtonText: "确定",
  4762. cancelButtonText: "取消",
  4763. type: "warning",
  4764. })
  4765. .then(() => {
  4766. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4767. })
  4768. .catch(() => {
  4769. return;
  4770. });
  4771. },
  4772. updataVideoT(e, i, j, ic) {
  4773. // e.stopPropagation();
  4774. // this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  4775. // ic
  4776. // ].name = JSON.parse(JSON.stringify(e.target.value));
  4777. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  4778. ic
  4779. ].name;
  4780. this.taskCount = j;
  4781. this.lineCount = ic;
  4782. this.dialogVisibleupdataVideoT = true;
  4783. this.$forceUpdate();
  4784. },
  4785. updataVideoC() {
  4786. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  4787. this.dialogVisibleupdataVideoT = false;
  4788. this.$forceUpdate();
  4789. },
  4790. upCd(e, i, j, taskCount, ic) {
  4791. e.stopPropagation();
  4792. if (ic == 0) {
  4793. return;
  4794. }
  4795. var a =
  4796. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  4797. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4798. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4799. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4800. this.$forceUpdate();
  4801. },
  4802. downCd(e, i, j, taskCount, ic) {
  4803. e.stopPropagation();
  4804. if (
  4805. ic ==
  4806. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4807. 1
  4808. ) {
  4809. return;
  4810. }
  4811. var a =
  4812. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  4813. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4814. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4815. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4816. this.$forceUpdate();
  4817. },
  4818. addWork(type) {
  4819. let cPan = 1;
  4820. for (var i = 0; i < this.unitJson.length; i++) {
  4821. for (
  4822. var j = 0;
  4823. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4824. j++
  4825. ) {
  4826. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4827. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4828. if (
  4829. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4830. ) {
  4831. for (
  4832. var z = 0;
  4833. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4834. z++
  4835. ) {
  4836. if (
  4837. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4838. .length
  4839. ) {
  4840. this.$message.error("请把工具添加完整");
  4841. cPan = 2;
  4842. break;
  4843. }
  4844. }
  4845. }
  4846. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4847. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4848. i
  4849. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4850. return ele.value != "";
  4851. });
  4852. }
  4853. }
  4854. }
  4855. this.inputShow = true;
  4856. if (cPan == 2) {
  4857. return;
  4858. }
  4859. this.isLoading2 = true
  4860. for (var i = 0; i < this.unitJson.length; i++) {
  4861. delete this.unitJson[i].isUpdate;
  4862. }
  4863. let params = [
  4864. {
  4865. uid: this.userid,
  4866. title: this.courseName,
  4867. brief: this.courseText,
  4868. cover:
  4869. this.cover.length > 0
  4870. ? JSON.stringify(this.cover)
  4871. : JSON.stringify([
  4872. {
  4873. name: "noBanner.jpg",
  4874. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4875. uid: 1656409780264,
  4876. status: "success",
  4877. },
  4878. ]),
  4879. evaId: this.evalua,
  4880. astudent:
  4881. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4882. see: this.isTeacherSee == true ? 1 : 0,
  4883. chapters: JSON.stringify(this.unitJson),
  4884. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4885. courseType: JSON.stringify(this.courseTypeId),
  4886. ateacher:
  4887. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4888. inviteCode: JSON.stringify(this.inviteCode),
  4889. },
  4890. ];
  4891. this.ajax
  4892. .post(this.$store.state.api + "addSynergyCourse", params)
  4893. .then((res) => {
  4894. this.isLoading2 = false
  4895. console.log(this.steps);
  4896. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4897. this.$message({
  4898. message: "新增成功",
  4899. type: "success",
  4900. });
  4901. // }
  4902. this.number = res.data.ordernumber;
  4903. this.courseId = res.data.courseId;
  4904. this.cid = res.data.courseId;
  4905. this.courseUserid = this.userid;
  4906. this.islogin = true;
  4907. if (type != 2) {
  4908. this.steps = 4;
  4909. } else {
  4910. this.selectCourseDetail222();
  4911. }
  4912. })
  4913. .catch((err) => {
  4914. this.$message.error(this.lang.Poorinternetconnection);
  4915. console.error(err);
  4916. });
  4917. },
  4918. selectCourseDetail222() {
  4919. let params = {
  4920. cid: this.cid,
  4921. };
  4922. this.ajax
  4923. .get(this.$store.state.api + "select_synergy", params)
  4924. .then((res) => {
  4925. this.courseDetail = res.data[0][0]
  4926. });
  4927. },
  4928. goCourse() {
  4929. window.topU.postMessage({ cid: this.courseId, type: "1" }, "*");
  4930. },
  4931. updateWork2() {
  4932. let _unitIndex = this.unitIndex;
  4933. let cPan = 1;
  4934. for (
  4935. var j = 0;
  4936. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4937. j++
  4938. ) {
  4939. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4940. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4941. j
  4942. ].proVisible2 = false;
  4943. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4944. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4945. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4946. (ele) => {
  4947. return ele.value != "";
  4948. }
  4949. );
  4950. }
  4951. }
  4952. this.inputShow = true;
  4953. if (cPan == 2) {
  4954. return;
  4955. }
  4956. let params = [
  4957. {
  4958. cid: this.cid,
  4959. chapters: JSON.stringify(this.unitJson),
  4960. uid: this.userid,
  4961. unitIndex: _unitIndex,
  4962. },
  4963. ];
  4964. this.ajax
  4965. .post(this.$store.state.api + "updateWorkNew4", params)
  4966. .then((res) => {
  4967. this.$message({
  4968. message: this.lang.Editsuccessful,
  4969. type: "success",
  4970. });
  4971. this.courseId = this.cid;
  4972. })
  4973. .catch((err) => {
  4974. this.$message.error(this.lang.Poorinternetconnection);
  4975. console.error(err);
  4976. });
  4977. },
  4978. updateWork(type) {
  4979. let that =this;
  4980. let cPan = 1;
  4981. for (var i = 0; i < this.unitJson.length; i++) {
  4982. for (
  4983. var j = 0;
  4984. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4985. j++
  4986. ) {
  4987. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4988. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4989. if (
  4990. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4991. ) {
  4992. for (
  4993. var z = 0;
  4994. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4995. z++
  4996. ) {
  4997. if (
  4998. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4999. .length
  5000. ) {
  5001. this.$message.error("请把工具添加完整");
  5002. cPan = 2;
  5003. break;
  5004. }
  5005. }
  5006. }
  5007. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5008. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5009. i
  5010. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5011. return ele.value != "";
  5012. });
  5013. }
  5014. }
  5015. }
  5016. this.inputShow = true;
  5017. if (cPan == 2) {
  5018. return;
  5019. }
  5020. for (var i = 0; i < this.unitJson.length; i++) {
  5021. delete this.unitJson[i].isUpdate;
  5022. }
  5023. let params = [
  5024. {
  5025. cid: this.cid,
  5026. title: this.courseName,
  5027. brief: this.courseText,
  5028. cover:
  5029. this.cover.length > 0
  5030. ? JSON.stringify(this.cover)
  5031. : JSON.stringify([
  5032. {
  5033. name: "noBanner.jpg",
  5034. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5035. uid: 1656409780264,
  5036. status: "success",
  5037. },
  5038. ]),
  5039. evaId: this.evalua,
  5040. astudent:
  5041. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5042. see: this.isTeacherSee == true ? 1 : 0,
  5043. chapters: JSON.stringify(this.unitJson),
  5044. template: this.myWord != "undefined" ? this.myWord : [],
  5045. uid: this.userid,
  5046. courseType: JSON.stringify(this.courseTypeId),
  5047. ateacher:
  5048. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5049. inviteCode: JSON.stringify(this.inviteCode),
  5050. },
  5051. ];
  5052. this.ajax
  5053. .post(this.$store.state.api + "updateSynergy", params)
  5054. .then((res) => {
  5055. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5056. that.open(that.cid,that.userid);
  5057. if (this.cidType == 1) {
  5058. this.$message({
  5059. message: "修改成功",
  5060. type: "success",
  5061. });
  5062. } else {
  5063. this.$message({
  5064. message: "新增成功",
  5065. type: "success",
  5066. });
  5067. }
  5068. // }
  5069. this.number = this.nbOrder;
  5070. this.courseId = this.cid;
  5071. if (type != 2) {
  5072. this.steps = 4;
  5073. }
  5074. })
  5075. .catch((err) => {
  5076. this.$message.error(this.lang.Poorinternetconnection);
  5077. console.error(err);
  5078. });
  5079. },
  5080. open(cid, uid) {
  5081. window.topU.postMessage(
  5082. {
  5083. tools: "opencCscl",
  5084. cid: cid,
  5085. gid: '',
  5086. },
  5087. "*"
  5088. );
  5089. },
  5090. open2() {
  5091. if (this.courseDetail.userid == this.userid || window.topU.US.userInfo.role==1) {
  5092. window.topU.postMessage(
  5093. {
  5094. tools: "opencCscl",
  5095. cid: this.cid,
  5096. gid: '',
  5097. },
  5098. "*"
  5099. );
  5100. return;
  5101. }
  5102. let params = {
  5103. cid: this.cid,
  5104. classid: '1',
  5105. };
  5106. this.ajax
  5107. .get(this.$store.state.api + "getCourseGroup", params)
  5108. .then((res) => {
  5109. if (res.data && res.data[1].length) {
  5110. let groupPerson = res.data[1]
  5111. let groupCid = ''
  5112. for (var i = 0; i < groupPerson.length; i++) {
  5113. if (groupPerson[i].userid == this.userid) {
  5114. groupCid = groupPerson[i].groupCid
  5115. break;
  5116. }
  5117. }
  5118. if (groupCid) {
  5119. window.topU.postMessage(
  5120. {
  5121. tools: "opencCscl",
  5122. cid: this.cid,
  5123. gid: groupCid,
  5124. },
  5125. "*"
  5126. );
  5127. } else {
  5128. this.$message.error("没有加入分组请先加入分组");
  5129. }
  5130. } else {
  5131. this.$message.error("没有加入分组请先加入分组");
  5132. }
  5133. })
  5134. .catch((err) => {
  5135. this.$message.error(this.lang.Poorinternetconnection);
  5136. console.error(err);
  5137. });
  5138. },
  5139. guid() {
  5140. var _num,
  5141. i,
  5142. _guid = "";
  5143. for (i = 0; i < 32; i++) {
  5144. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5145. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5146. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5147. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5148. _guid += "-";
  5149. }
  5150. }
  5151. return _guid;
  5152. },
  5153. insertWord() {
  5154. this.dialogVisible1 = true;
  5155. this.updateBoolean2 = false;
  5156. this.tTitle = "";
  5157. this.tdetail = "";
  5158. },
  5159. addWord() {
  5160. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5161. name: this.tTitle,
  5162. content: this.tdetail,
  5163. uid: this.guid(),
  5164. });
  5165. this.dialogVisible1 = false;
  5166. },
  5167. upWord() { },
  5168. selectWord(uid, i, c) {
  5169. this.dialogVisible1 = true;
  5170. this.updateBoolean2 = true;
  5171. if (
  5172. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5173. ) {
  5174. this.tTitle =
  5175. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5176. this.tdetail =
  5177. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  5178. }
  5179. },
  5180. isAddPP() {
  5181. if (this.checkboxList.length > 0) {
  5182. this.$message({
  5183. message: "添加成功",
  5184. type: "success",
  5185. });
  5186. this.dialogVisible3 = false;
  5187. } else {
  5188. this.$message({
  5189. message: "请添加课程成员",
  5190. type: "error",
  5191. });
  5192. }
  5193. },
  5194. isAddClass() {
  5195. this.dialogVisibleClass = false;
  5196. },
  5197. isAddPPTeacher() {
  5198. this.page = 0;
  5199. this.dialogVisibleMember = false;
  5200. this.setMan();
  5201. this.checkAll=false;
  5202. this.isIndeterminate=true;
  5203. },
  5204. getTemplate() {
  5205. this.ajax
  5206. .get(this.$store.state.api + "getCourseTemplateT", "")
  5207. .then((res) => {
  5208. this.templateArray = res.data[0];
  5209. this.getTemplateOid();
  5210. this.$forceUpdate();
  5211. })
  5212. .catch((err) => { });
  5213. },
  5214. getTemplateOid() {
  5215. let params = {
  5216. oid: this.oid,
  5217. };
  5218. this.ajax
  5219. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5220. .then((res) => {
  5221. if (res.data[0].length) {
  5222. this.templateArray = [...res.data[0], ...this.templateArray];
  5223. }
  5224. this.getTemplateOrg();
  5225. this.$forceUpdate();
  5226. })
  5227. .catch((err) => { });
  5228. },
  5229. getTemplateOrg() {
  5230. let params = {
  5231. oid: this.org,
  5232. };
  5233. this.ajax
  5234. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5235. .then((res) => {
  5236. if (res.data[0].length) {
  5237. this.templateArray = [...res.data[0], ...this.templateArray];
  5238. }
  5239. this.$forceUpdate();
  5240. })
  5241. .catch((err) => { });
  5242. },
  5243. clearChoose() {
  5244. this.clearArray.splice(this.templateC.id, 1);
  5245. this.dialogVisible2 = false;
  5246. },
  5247. clearAttText() {
  5248. this.AttText = {
  5249. title: "",
  5250. text: "",
  5251. };
  5252. this.dialogVisible6 = false;
  5253. },
  5254. clearLine() {
  5255. this.line = "";
  5256. this.dialogVisible7 = false;
  5257. },
  5258. checkTemplate(res) {
  5259. let _this = this;
  5260. _this
  5261. .$confirm("确定选择此模板吗?", "提示", {
  5262. confirmButtonText: "确定",
  5263. cancelButtonText: "取消",
  5264. type: "warning",
  5265. })
  5266. .then(() => {
  5267. _this.unitJson = JSON.parse(res.chapters);
  5268. _this.steps++;
  5269. setTimeout(() => {
  5270. this.checkEva(this.checkId);
  5271. }, 1000);
  5272. })
  5273. .catch(() => {
  5274. return;
  5275. });
  5276. },
  5277. checkTemplate1(w) {
  5278. this.steps++;
  5279. },
  5280. checkTemplate2() {
  5281. let _this = this;
  5282. _this
  5283. .$confirm("确定选择空模板吗?", "提示", {
  5284. confirmButtonText: "确定",
  5285. cancelButtonText: "取消",
  5286. type: "warning",
  5287. })
  5288. .then(() => {
  5289. _this.unitIndex = 0;
  5290. _this.unitJson = [
  5291. {
  5292. dyName: "", //单元标题
  5293. chapterInfo: [
  5294. {
  5295. isread: false,
  5296. chapterid: this.guid(),
  5297. title: "",
  5298. courseName: "",
  5299. taskJson: [
  5300. {
  5301. task: "",
  5302. taskDetail: "",
  5303. chapterData: [],
  5304. toolText: "",
  5305. toolChoose: [
  5306. {
  5307. tool: [],
  5308. toolDetail: "",
  5309. toolType: 0,
  5310. askCount: 1,
  5311. askTitle: "",
  5312. askJson: [
  5313. { askstitle: "", askItem: 1, checkList: [] },
  5314. ],
  5315. },
  5316. ],
  5317. isShowTools: false,
  5318. askCount: 1,
  5319. isFold: 0,
  5320. askTitle: "",
  5321. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5322. checkJson: [{ checkCount: [], checkPerent: [] }],
  5323. homeworkList: [],
  5324. },
  5325. ],
  5326. itemCount: 1,
  5327. fileList1: [],
  5328. video: [],
  5329. testData: [],
  5330. pData: [],
  5331. templateArray: [],
  5332. },
  5333. ],
  5334. },
  5335. ];
  5336. this.steps++;
  5337. this.updateWork();
  5338. })
  5339. .catch(() => {
  5340. return;
  5341. });
  5342. },
  5343. checkTemplate3() {
  5344. let _this = this;
  5345. _this
  5346. .$confirm("确定选择简易模式吗?", "提示", {
  5347. confirmButtonText: "确定",
  5348. cancelButtonText: "取消",
  5349. type: "warning",
  5350. })
  5351. .then(() => {
  5352. _this.unitIndex = 0;
  5353. _this.unitJson = [
  5354. {
  5355. dyName: "", //单元标题
  5356. easy: 1,
  5357. chapterInfo: [
  5358. {
  5359. isread: false,
  5360. chapterid: this.guid(),
  5361. title: "",
  5362. courseName: "",
  5363. taskJson: [
  5364. {
  5365. task: "",
  5366. taskDetail: "",
  5367. chapterData: [],
  5368. toolText: "",
  5369. toolChoose: [
  5370. {
  5371. tool: [],
  5372. toolDetail: "",
  5373. toolType: 0,
  5374. askCount: 1,
  5375. askTitle: "",
  5376. askJson: [
  5377. { askstitle: "", askItem: 1, checkList: [] },
  5378. ],
  5379. },
  5380. ],
  5381. isShowTools: false,
  5382. askCount: 1,
  5383. isFold: 0,
  5384. askTitle: "",
  5385. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5386. checkJson: [{ checkCount: [], checkPerent: [] }],
  5387. homeworkList: [],
  5388. },
  5389. ],
  5390. itemCount: 1,
  5391. fileList1: [],
  5392. video: [],
  5393. testData: [],
  5394. pData: [],
  5395. templateArray: [],
  5396. },
  5397. ],
  5398. },
  5399. ];
  5400. this.steps++;
  5401. this.updateWork();
  5402. })
  5403. .catch(() => {
  5404. return;
  5405. });
  5406. },
  5407. checkTemplate4() {
  5408. let _this = this;
  5409. _this
  5410. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5411. confirmButtonText: "确定",
  5412. cancelButtonText: "取消",
  5413. type: "warning",
  5414. })
  5415. .then(() => {
  5416. _this.unitIndex = 0;
  5417. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5418. this.steps++;
  5419. this.updateWork();
  5420. })
  5421. .catch(() => {
  5422. return;
  5423. });
  5424. },
  5425. wordNext() {
  5426. this.dialogVisible2 = false;
  5427. },
  5428. isAddOrUpdateAttText() {
  5429. if (this.AttTextType == 0) {
  5430. this.addAttTextMessage();
  5431. } else {
  5432. this.updateAttText();
  5433. }
  5434. },
  5435. isAddOrUpdateLine() {
  5436. if (!this.lineTitle) {
  5437. this.$message.error("请填写链接标题");
  5438. return;
  5439. }
  5440. if (this.lineType == 0) {
  5441. this.addLine();
  5442. } else {
  5443. this.updateLine();
  5444. }
  5445. },
  5446. addAttTextMessage() {
  5447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5448. this.taskCount
  5449. ].chapterData.push({
  5450. name: this.AttText.title,
  5451. url: this.AttText.text,
  5452. type: 6,
  5453. });
  5454. this.imgChange1(null, null, 6, this.taskCount);
  5455. this.dialogVisible6 = false;
  5456. },
  5457. selectAttText(itemTaskIndex, i) {
  5458. this.AttText.title =
  5459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5460. itemTaskIndex
  5461. ].chapterData[i].name;
  5462. this.AttText.text =
  5463. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5464. itemTaskIndex
  5465. ].chapterData[i].url;
  5466. this.taskCount = itemTaskIndex;
  5467. this.AttTextIndex = i;
  5468. this.AttTextType = 1;
  5469. this.dialogVisible6 = true;
  5470. },
  5471. updateAttText() {
  5472. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5473. this.taskCount
  5474. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5476. this.taskCount
  5477. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5478. this.dialogVisible6 = false;
  5479. },
  5480. addLine() {
  5481. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5482. this.lineCount
  5483. ].chapterData.push({
  5484. name: "链接",
  5485. title: this.lineTitle,
  5486. url: this.line,
  5487. type: 8,
  5488. });
  5489. this.imgChange1(null, null, 8, this.lineCount);
  5490. this.dialogVisible7 = false;
  5491. },
  5492. selectLine(itemTaskIndex, i) {
  5493. this.line =
  5494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5495. itemTaskIndex
  5496. ].chapterData[i].url;
  5497. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5498. itemTaskIndex
  5499. ].chapterData[i].title
  5500. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5501. .chapterData[i].title
  5502. : "";
  5503. this.taskCount = itemTaskIndex;
  5504. this.lineCount = i;
  5505. this.lineType = 1;
  5506. this.dialogVisible7 = true;
  5507. },
  5508. openUpdateSource(itemTaskIndex, i) {
  5509. this.sourceData = {}
  5510. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  5511. this.sourceData[source.id] = {}
  5512. this.sourceData[source.id].name = source.title
  5513. this.sourceData[source.id].url = source.url
  5514. this.dialogVisibleSource = true;
  5515. this.updateSourcePan = true;
  5516. this.taskCount = itemTaskIndex;
  5517. this.lineCount = i;
  5518. },
  5519. updateLine() {
  5520. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5521. this.taskCount
  5522. ].chapterData[this.lineCount].url = this.line;
  5523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5524. this.taskCount
  5525. ].chapterData[this.lineCount].title = this.lineTitle;
  5526. this.dialogVisible7 = false;
  5527. },
  5528. addPP() {
  5529. this.dialogVisible3 = true;
  5530. },
  5531. goTo(path) {
  5532. this.$router.push(path);
  5533. },
  5534. openTools(itemTaskIndex, i, toolIndex) {
  5535. this.toolIndex = toolIndex;
  5536. this.taskCount = itemTaskIndex;
  5537. if (i == 4) {
  5538. if (toolIndex == null) {
  5539. var a =
  5540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5541. .chapterData;
  5542. for (var i = 0; i < a.length; i++) {
  5543. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5544. this.askJson =
  5545. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5546. itemTaskIndex
  5547. ].chapterData[i].askJson;
  5548. }
  5549. }
  5550. } else {
  5551. this.askJson = JSON.parse(
  5552. JSON.stringify(
  5553. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5554. itemTaskIndex
  5555. ].toolChoose[toolIndex]
  5556. )
  5557. );
  5558. }
  5559. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  5560. this.dialogVisible5 = true;
  5561. } else if (i == 45) {
  5562. if (
  5563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5564. .toolChoose[toolIndex].testJson
  5565. ) {
  5566. this.testJson = JSON.parse(
  5567. JSON.stringify(
  5568. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5569. itemTaskIndex
  5570. ].toolChoose[toolIndex].testJson
  5571. )
  5572. );
  5573. } else {
  5574. var testJson = {
  5575. testCount: 1,
  5576. testTitle: "",
  5577. testJson: [
  5578. {
  5579. teststitle: "",
  5580. testItem: 1,
  5581. checkList: [],
  5582. timuList: [],
  5583. answer: [],
  5584. type: "1",
  5585. },
  5586. ],
  5587. };
  5588. this.testJson = testJson;
  5589. }
  5590. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  5591. this.dialogVisibleChoice = true;
  5592. } else if (i == 47) {
  5593. if (
  5594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5595. .toolChoose[toolIndex].sentenceList
  5596. ) {
  5597. this.sentenceList = JSON.parse(
  5598. JSON.stringify(
  5599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5600. itemTaskIndex
  5601. ].toolChoose[toolIndex].sentenceList
  5602. )
  5603. );
  5604. } else {
  5605. var sentenceList = [
  5606. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5607. ];
  5608. this.sentenceList = sentenceList;
  5609. }
  5610. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  5611. this.dialogVisibleSentence = true;
  5612. } else if (i == 48) {
  5613. if (
  5614. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5615. .toolChoose[toolIndex].tableJson
  5616. ) {
  5617. this.tableJson = JSON.parse(
  5618. JSON.stringify(
  5619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5620. itemTaskIndex
  5621. ].toolChoose[toolIndex].tableJson
  5622. )
  5623. );
  5624. } else {
  5625. var tableJson = { text: "" };
  5626. this.tableJson = tableJson;
  5627. }
  5628. this.dialogVisibleTable = true;
  5629. } else if (i == 52) {
  5630. if (
  5631. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5632. .toolChoose[toolIndex].wordJson
  5633. ) {
  5634. this.wordJson = JSON.parse(
  5635. JSON.stringify(
  5636. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5637. itemTaskIndex
  5638. ].toolChoose[toolIndex].wordJson
  5639. )
  5640. );
  5641. } else {
  5642. var wordJson = { text: "" };
  5643. this.wordJson = wordJson;
  5644. }
  5645. this.dialogVisibleWord = true;
  5646. // else if (i == 50) {
  5647. // if (
  5648. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5649. // .toolChoose[toolIndex].uploadJson
  5650. // ) {
  5651. // this.uploadJson = JSON.parse(
  5652. // JSON.stringify(
  5653. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5654. // itemTaskIndex
  5655. // ].toolChoose[toolIndex].uploadJson
  5656. // )
  5657. // );
  5658. // } else {
  5659. // var uploadJson = [];
  5660. // this.uploadJson = uploadJson;
  5661. // }
  5662. // this.dialogVisibleMoreUpload = true;
  5663. // }
  5664. } else if (i == 10) {
  5665. if (
  5666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5667. .toolChoose[toolIndex].preTime
  5668. ) {
  5669. this.preTime = JSON.parse(
  5670. JSON.stringify(
  5671. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5672. itemTaskIndex
  5673. ].toolChoose[toolIndex].preTime
  5674. )
  5675. );
  5676. } else {
  5677. var preTime = 0;
  5678. this.preTime = preTime;
  5679. }
  5680. this.dialogVisiblePreTime = true;
  5681. } else if (i == 49) {
  5682. if (
  5683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5684. .toolChoose[toolIndex].groupJson
  5685. ) {
  5686. this.groupJson = JSON.parse(
  5687. JSON.stringify(
  5688. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5689. itemTaskIndex
  5690. ].toolChoose[toolIndex].groupJson
  5691. )
  5692. );
  5693. } else {
  5694. var groupJson = {
  5695. group: [{ name: "第1组" }],
  5696. number: undefined,
  5697. islock: 1,
  5698. };
  5699. this.groupJson = groupJson;
  5700. }
  5701. this.dialogVisibleGroup = true;
  5702. } else if (i == 62) {
  5703. if (
  5704. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5705. .toolChoose[toolIndex].videoJson
  5706. ) {
  5707. this.videoJson = JSON.parse(
  5708. JSON.stringify(
  5709. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5710. itemTaskIndex
  5711. ].toolChoose[toolIndex].videoJson
  5712. )
  5713. );
  5714. } else {
  5715. var videoJson = {
  5716. video: "",
  5717. setting: [],
  5718. };
  5719. this.videoJson = videoJson;
  5720. }
  5721. this.dialogVisibleVideo = true;
  5722. } else if (i == 15) {
  5723. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5724. itemTaskIndex
  5725. ].toolChoose[toolIndex].answerQ
  5726. ? JSON.parse(
  5727. JSON.stringify(
  5728. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5729. itemTaskIndex
  5730. ].toolChoose[toolIndex].answerQ
  5731. )
  5732. )
  5733. : "";
  5734. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  5735. this.dialogVisible8 = true;
  5736. } else if (i == 40) {
  5737. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5738. itemTaskIndex
  5739. ].toolChoose[toolIndex].rateJson
  5740. ? JSON.parse(
  5741. JSON.stringify(
  5742. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5743. itemTaskIndex
  5744. ].toolChoose[toolIndex].rateJson
  5745. )
  5746. )
  5747. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5748. this.selectSteps = 1;
  5749. this.dialogVisibleRate = true;
  5750. } else if (i == 42) {
  5751. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5752. itemTaskIndex
  5753. ].toolChoose[toolIndex].answerQ
  5754. ? JSON.parse(
  5755. JSON.stringify(
  5756. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5757. itemTaskIndex
  5758. ].toolChoose[toolIndex].answerQ
  5759. )
  5760. )
  5761. : "";
  5762. this.dialogVisibleMp3 = true;
  5763. } else if (i == 41) {
  5764. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5765. itemTaskIndex
  5766. ].toolChoose[toolIndex].selectJson
  5767. ? JSON.parse(
  5768. JSON.stringify(
  5769. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5770. itemTaskIndex
  5771. ].toolChoose[toolIndex].selectJson
  5772. )
  5773. )
  5774. : { url: "", select: [], answer: [] };
  5775. this.selectSteps = 1;
  5776. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  5777. this.dialogVisibleSelect = true;
  5778. } else if (i == 3) {
  5779. if (!this.cid) {
  5780. this.$message.error(
  5781. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5782. );
  5783. return;
  5784. }
  5785. window.topU.postMessage(
  5786. {
  5787. tools: "3y",
  5788. cid: this.cid,
  5789. stage: this.unitIndex,
  5790. task: itemTaskIndex,
  5791. tool: toolIndex,
  5792. },
  5793. "*"
  5794. );
  5795. } else if (i == 1) {
  5796. if (!this.cid) {
  5797. this.$message.error(
  5798. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5799. );
  5800. return;
  5801. }
  5802. window.topU.postMessage(
  5803. {
  5804. tools: "1y",
  5805. cid: this.cid,
  5806. stage: this.unitIndex,
  5807. task: itemTaskIndex,
  5808. tool: toolIndex,
  5809. },
  5810. "*"
  5811. );
  5812. } else if (i == 57) {
  5813. if (!this.cid) {
  5814. this.$message.error(
  5815. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5816. );
  5817. return;
  5818. }
  5819. window.topU.postMessage(
  5820. {
  5821. tools: "57y",
  5822. cid: this.cid,
  5823. stage: this.unitIndex,
  5824. task: itemTaskIndex,
  5825. tool: toolIndex,
  5826. },
  5827. "*"
  5828. );
  5829. }
  5830. },
  5831. chapAddTools(i) {
  5832. if (this.chapTools[0].tools.length == 0) {
  5833. this.chapTools[0].tools.push(i);
  5834. } else {
  5835. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5836. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5837. } else {
  5838. this.chapTools[0].tools.push(i);
  5839. }
  5840. }
  5841. this.$forceUpdate();
  5842. },
  5843. addChaptersDataTools() {
  5844. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5845. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5846. this.chapCount
  5847. ].chapterData.push({
  5848. name: this.chapTools[0].toolDetail,
  5849. url: this.chapTools[0].tools,
  5850. type: 7,
  5851. askJson: this.askJson,
  5852. });
  5853. } else {
  5854. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5855. this.chapCount
  5856. ].chapterData.push({
  5857. name: this.chapTools[0].toolDetail,
  5858. url: this.chapTools[0].tools,
  5859. type: 7,
  5860. });
  5861. }
  5862. this.imgChange1(null, null, 7, this.chapCount);
  5863. this.dialogVisible4 = false;
  5864. },
  5865. addTools(i, itemTaskIndex, toolIndex) {
  5866. // if (
  5867. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5868. // .toolChoose[toolIndex].tool.length == 0
  5869. // ) {
  5870. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5871. // itemTaskIndex
  5872. // ].toolChoose[toolIndex].tool.push(i);
  5873. // } else {
  5874. // if (
  5875. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5876. // itemTaskIndex
  5877. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5878. // ) {
  5879. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5880. // itemTaskIndex
  5881. // ].toolChoose[toolIndex].tool.splice(
  5882. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5883. // itemTaskIndex
  5884. // ].toolChoose[toolIndex].tool.indexOf(i),
  5885. // 1
  5886. // );
  5887. // } else {
  5888. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5889. // itemTaskIndex
  5890. // ].toolChoose[toolIndex].tool.push(i);
  5891. // }
  5892. // console.log(
  5893. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5894. // .toolChoose[toolIndex].tool
  5895. // );
  5896. // }
  5897. if (i == 4) {
  5898. if (
  5899. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5900. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5901. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5902. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5903. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5904. .toolChoose[toolIndex].askJson[0].checkList < 2
  5905. ) {
  5906. this.openTools(itemTaskIndex, 4, toolIndex);
  5907. // this.$message({
  5908. // message: "请填写完整问卷内容",
  5909. // type: "error",
  5910. // });
  5911. return;
  5912. }
  5913. }
  5914. if (i == 45) {
  5915. if (
  5916. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5917. .toolChoose[toolIndex].testJson ||
  5918. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5919. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5920. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5921. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5922. ) {
  5923. this.openTools(itemTaskIndex, 45, toolIndex);
  5924. // this.$message({
  5925. // message: "请填写完整问卷内容",
  5926. // type: "error",
  5927. // });
  5928. return;
  5929. }
  5930. }
  5931. if (i == 47) {
  5932. if (
  5933. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5934. .toolChoose[toolIndex].sentenceList ||
  5935. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5936. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5937. ) {
  5938. this.openTools(itemTaskIndex, 47, toolIndex);
  5939. return;
  5940. }
  5941. }
  5942. // if (i == 48) {
  5943. // if (
  5944. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5945. // .toolChoose[toolIndex].tableJson
  5946. // ) {
  5947. // this.openTools(itemTaskIndex, 48, toolIndex);
  5948. // return;
  5949. // }
  5950. // }
  5951. // if (i == 50) {
  5952. // if (
  5953. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5954. // .toolChoose[toolIndex].uploadJson
  5955. // ) {
  5956. // this.openTools(itemTaskIndex, 50, toolIndex);
  5957. // return;
  5958. // }
  5959. // }
  5960. if (i == 49) {
  5961. if (
  5962. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5963. .toolChoose[toolIndex].groupJson
  5964. ) {
  5965. this.openTools(itemTaskIndex, 49, toolIndex);
  5966. return;
  5967. }
  5968. }
  5969. if (i == 62) {
  5970. if (
  5971. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5972. .toolChoose[toolIndex].videoJson
  5973. ) {
  5974. this.openTools(itemTaskIndex, 62, toolIndex);
  5975. return;
  5976. }
  5977. }
  5978. if (i == 15) {
  5979. if (
  5980. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5981. .toolChoose[toolIndex].answerQ ||
  5982. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5983. .toolChoose[toolIndex].answerQ == ""
  5984. ) {
  5985. this.openTools(itemTaskIndex, 15, toolIndex);
  5986. // this.$message({
  5987. // message: "请填写问答内容",
  5988. // type: "error",
  5989. // });
  5990. return;
  5991. }
  5992. }
  5993. if (i == 40) {
  5994. if (
  5995. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5996. .toolChoose[toolIndex].rateJson ||
  5997. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5998. .toolChoose[toolIndex].rateJson.length
  5999. ) {
  6000. this.openTools(itemTaskIndex, 40, toolIndex);
  6001. return;
  6002. }
  6003. }
  6004. if (i == 41) {
  6005. if (
  6006. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6007. .toolChoose[toolIndex].selectJson ||
  6008. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6009. .toolChoose[toolIndex].selectJson.url == "" ||
  6010. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6011. .toolChoose[toolIndex].selectJson.select.length ||
  6012. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6013. .toolChoose[toolIndex].selectJson.answer.length
  6014. ) {
  6015. this.openTools(itemTaskIndex, 41, toolIndex);
  6016. return;
  6017. }
  6018. }
  6019. if (i == 42) {
  6020. if (
  6021. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6022. .toolChoose[toolIndex].answerQ ||
  6023. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6024. .toolChoose[toolIndex].answerQ == ""
  6025. ) {
  6026. this.openTools(itemTaskIndex, 42, toolIndex);
  6027. return;
  6028. }
  6029. }
  6030. if (
  6031. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6032. .toolChoose[toolIndex].tool.length > 0
  6033. ) {
  6034. if (
  6035. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6036. itemTaskIndex
  6037. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6038. ) {
  6039. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6040. itemTaskIndex
  6041. ].toolChoose[toolIndex].tool.splice(
  6042. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6043. itemTaskIndex
  6044. ].toolChoose[toolIndex].tool.indexOf(i),
  6045. 1
  6046. );
  6047. } else {
  6048. // this.$message({
  6049. // message: "每个工具只能添加一个",
  6050. // type: "error",
  6051. // });
  6052. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6053. itemTaskIndex
  6054. ].toolChoose[toolIndex].tool = [];
  6055. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6056. itemTaskIndex
  6057. ].toolChoose[toolIndex].tool.push(i);
  6058. }
  6059. } else {
  6060. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6061. itemTaskIndex
  6062. ].toolChoose[toolIndex].tool.push(i);
  6063. }
  6064. this.$forceUpdate();
  6065. },
  6066. addAskList(index) {
  6067. this.askJson.askJson.splice(index + 1, 0, {
  6068. askstitle: "",
  6069. askItem: 1,
  6070. checkList: [],
  6071. })
  6072. this.askJson.askCount++;
  6073. },
  6074. addTestList(index) {
  6075. this.testJson.testJson.splice(index + 1, 0, {
  6076. teststitle: "",
  6077. testItem: 1,
  6078. checkList: [],
  6079. timuList: [],
  6080. answer: [],
  6081. type: "1",
  6082. })
  6083. this.testJson.testCount++;
  6084. },
  6085. deleteAskList(index) {
  6086. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  6087. this.askJson.askJson.splice(index, 1);
  6088. this.askJson.askCount--;
  6089. } else {
  6090. let _this = this;
  6091. _this
  6092. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6093. confirmButtonText: "确定",
  6094. cancelButtonText: "取消",
  6095. type: "warning",
  6096. })
  6097. .then(() => {
  6098. _this.askJson.askJson.splice(index, 1);
  6099. _this.askJson.askCount--;
  6100. })
  6101. .catch(() => {
  6102. return;
  6103. });
  6104. }
  6105. },
  6106. deleteTestList(index) {
  6107. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  6108. this.testJson.testJson.splice(index, 1);
  6109. this.testJson.testCount--;
  6110. } else {
  6111. let _this = this;
  6112. _this
  6113. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6114. confirmButtonText: "确定",
  6115. cancelButtonText: "取消",
  6116. type: "warning",
  6117. })
  6118. .then(() => {
  6119. _this.testJson.testJson.splice(index, 1);
  6120. _this.testJson.testCount--;
  6121. })
  6122. .catch(() => {
  6123. return;
  6124. });
  6125. }
  6126. },
  6127. askMove(type, index) {
  6128. if (type == 1) {
  6129. if (index > 0) {
  6130. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  6131. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  6132. this.askJson.askJson[index - 1] = b;
  6133. this.askJson.askJson[index] = a;
  6134. }
  6135. } else {
  6136. if (
  6137. index < this.askJson.askJson.length - 1
  6138. ) {
  6139. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  6140. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  6141. this.askJson.askJson[index + 1] = b;
  6142. this.askJson.askJson[index] = a;
  6143. }
  6144. }
  6145. this.$forceUpdate();
  6146. },
  6147. checkMove(type, index, checkIndex) {
  6148. if (type == 1) {
  6149. if (checkIndex > 0) {
  6150. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  6151. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  6152. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  6153. this.askJson.askJson[index].checkList[checkIndex] = a;
  6154. }
  6155. } else {
  6156. if (
  6157. checkIndex < this.askJson.askJson[index].checkList.length - 1
  6158. ) {
  6159. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  6160. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  6161. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  6162. this.askJson.askJson[index].checkList[checkIndex] = a;
  6163. }
  6164. }
  6165. this.$forceUpdate();
  6166. },
  6167. testMove(type, index) {
  6168. if (type == 1) {
  6169. if (index > 0) {
  6170. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  6171. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  6172. this.testJson.testJson[index - 1] = b;
  6173. this.testJson.testJson[index] = a;
  6174. }
  6175. } else {
  6176. if (
  6177. index < this.testJson.testJson.length - 1
  6178. ) {
  6179. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  6180. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  6181. this.testJson.testJson[index + 1] = b;
  6182. this.testJson.testJson[index] = a;
  6183. }
  6184. }
  6185. this.$forceUpdate();
  6186. },
  6187. tcheckMove(type, index, checkIndex) {
  6188. if (type == 1) {
  6189. if (checkIndex > 0) {
  6190. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  6191. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  6192. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  6193. this.testJson.testJson[index].checkList[checkIndex] = a;
  6194. }
  6195. } else {
  6196. if (
  6197. checkIndex < this.testJson.testJson[index].checkList.length - 1
  6198. ) {
  6199. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  6200. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  6201. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  6202. this.testJson.testJson[index].checkList[checkIndex] = a;
  6203. }
  6204. }
  6205. this.$forceUpdate();
  6206. },
  6207. addcheckList(json, index) {
  6208. // json.checkList.length++;
  6209. json.checkList.splice(index + 1, 0, '')
  6210. json.askItem++;
  6211. this.$forceUpdate();
  6212. },
  6213. deletecheckList(json, index) {
  6214. // json.checkList.length--;
  6215. json.checkList.splice(index, 1)
  6216. json.askItem--;
  6217. this.$forceUpdate();
  6218. },
  6219. addTcheckList(json, index) {
  6220. // json.checkList.length++;
  6221. json.checkList.splice(index + 1, 0, '')
  6222. json.testItem++;
  6223. this.$forceUpdate();
  6224. },
  6225. deleteTcheckList(json, index) {
  6226. // json.checkList.length--;
  6227. json.checkList.splice(index, 1)
  6228. json.testItem--;
  6229. this.$forceUpdate();
  6230. },
  6231. checkTestType(type, json) {
  6232. json.type = type;
  6233. setTimeout(() => {
  6234. json.answer = [];
  6235. }, 100)
  6236. this.$forceUpdate();
  6237. },
  6238. checkAskType(type, json) {
  6239. json.type = type;
  6240. // json.checkList = [];
  6241. this.$forceUpdate();
  6242. },
  6243. addSelectList(json) {
  6244. json.select.push("");
  6245. json.answer.push("");
  6246. },
  6247. deleteSelectList(json) {
  6248. // json.select.length--;
  6249. // json.answer.length--;
  6250. json.select.splice(json.select.length - 1, 1);
  6251. json.answer.splice(json.answer.length - 1, 1);
  6252. },
  6253. addAsk() {
  6254. if (this.askJson.askTitle === "") {
  6255. this.$message.error("标题不能为空!");
  6256. return;
  6257. }
  6258. var aj = this.askJson.askJson;
  6259. var b = 1;
  6260. for (var i = 0; i < aj.length; i++) {
  6261. if (aj[i].askstitle === "") {
  6262. var a = 1;
  6263. for (let index = 0; index < aj[i].askItem; index++) {
  6264. const element = aj[i].checkList[index]
  6265. ? aj[i].checkList[index]
  6266. : "";
  6267. if (element != "") {
  6268. b++;
  6269. this.$message.error(`请将题目${i + 1}填写完整。`);
  6270. return;
  6271. } else {
  6272. a++;
  6273. }
  6274. }
  6275. if (b == 1) {
  6276. this.$message.error("至少填写一个问题");
  6277. return;
  6278. }
  6279. } else if (aj[i].askstitle != "") {
  6280. for (let index = 0; index < aj[i].askItem; index++) {
  6281. const element = aj[i].checkList[index]
  6282. ? aj[i].checkList[index]
  6283. : "";
  6284. var index = 0;
  6285. for (var z = 0; z < aj[i].checkList.length; z++) {
  6286. let checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6287. if (checkC != "") {
  6288. index++;
  6289. } else {
  6290. this.$message.error(`题目${i + 1}选项不能为空!`);
  6291. return;
  6292. }
  6293. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  6294. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  6295. if (checkC == checkC2) {
  6296. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6297. return;
  6298. }
  6299. }
  6300. }
  6301. b++;
  6302. if (index < 2) {
  6303. this.$message.error("每道题目至少需要设置2个选项。");
  6304. return;
  6305. }
  6306. }
  6307. }
  6308. }
  6309. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6310. var elc = el.checkList.filter((element) => {
  6311. return element != "";
  6312. });
  6313. return el.askstitle != "" && elc.length != 0;
  6314. });
  6315. if (!this.dialogVisible4) {
  6316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6317. this.taskCount
  6318. ].toolChoose[this.toolIndex] = this.askJson;
  6319. }
  6320. this.dialogVisible5 = false;
  6321. if (
  6322. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6323. .toolChoose[this.toolIndex].tool != 4
  6324. ) {
  6325. this.addTools(4, this.taskCount, this.toolIndex);
  6326. }
  6327. },
  6328. addTest() {
  6329. // if (this.testJson.testTitle === "") {
  6330. // this.$message.error("标题不能为空!");
  6331. // return;
  6332. // }
  6333. var aj = this.testJson.testJson;
  6334. var b = 1;
  6335. for (var i = 0; i < aj.length; i++) {
  6336. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  6337. var a = 1;
  6338. for (let index = 0; index < aj[i].testItem; index++) {
  6339. const element = aj[i].checkList[index]
  6340. ? aj[i].checkList[index]
  6341. : "";
  6342. if (element != "") {
  6343. b++;
  6344. this.$message.error(`请将题目${i + 1}填写完整。`);
  6345. return;
  6346. } else {
  6347. a++;
  6348. }
  6349. }
  6350. if (b == 1) {
  6351. this.$message.error("至少填写一个问题");
  6352. return;
  6353. }
  6354. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  6355. for (let index = 0; index < aj[i].testItem; index++) {
  6356. const element = aj[i].checkList[index]
  6357. ? aj[i].checkList[index]
  6358. : "";
  6359. var index = 0;
  6360. for (var z = 0; z < aj[i].checkList.length; z++) {
  6361. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6362. if (checkC != "") {
  6363. index++;
  6364. } else {
  6365. this.$message.error(`题目${i + 1}选项不能为空!`);
  6366. return;
  6367. }
  6368. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  6369. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  6370. if (checkC == checkC2) {
  6371. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6372. return;
  6373. }
  6374. }
  6375. }
  6376. b++;
  6377. if (index < 2) {
  6378. this.$message.error("每道题目至少需要设置2个选项。");
  6379. return;
  6380. }
  6381. if (
  6382. (aj[i].type == "2" && !aj[i].answer.length) ||
  6383. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  6384. ) {
  6385. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  6386. return;
  6387. }
  6388. }
  6389. }
  6390. }
  6391. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6392. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6393. var elc = el.checkList.filter((element) => {
  6394. return element != "";
  6395. });
  6396. return (
  6397. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6398. );
  6399. });
  6400. isTestJson.testCount = isTestJson.testJson.length;
  6401. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6402. this.taskCount
  6403. ].toolChoose[this.toolIndex].testJson = isTestJson;
  6404. this.dialogVisibleChoice = false;
  6405. if (
  6406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6407. .toolChoose[this.toolIndex].tool != 45
  6408. ) {
  6409. this.addTools(45, this.taskCount, this.toolIndex);
  6410. }
  6411. },
  6412. addVideoJson(videoJson) {
  6413. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6414. this.taskCount
  6415. ].toolChoose[this.toolIndex].videoJson = videoJson;
  6416. this.dialogVisibleVideo = false;
  6417. if (
  6418. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6419. .toolChoose[this.toolIndex].tool != 62
  6420. ) {
  6421. this.addTools(62, this.taskCount, this.toolIndex);
  6422. }
  6423. },
  6424. //自动获取剪贴板
  6425. pasteOption() {
  6426. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  6427. if (!iframe) {
  6428. this.$message.error("请使用AI共创生成题目");
  6429. return;
  6430. }
  6431. let copyData = iframe.contentWindow.copyData;
  6432. if (!copyData || !copyData.selectData.length) {
  6433. this.$message.error("请使用AI共创生成题目");
  6434. return;
  6435. }
  6436. let selectData = copyData.selectData;
  6437. for (var i = 0; i < selectData.length; i++) {
  6438. let answer = 0;
  6439. switch (selectData[i].answer[0]) {
  6440. case "A":
  6441. answer = 0;
  6442. break;
  6443. case "B":
  6444. answer = 1;
  6445. break;
  6446. case "C":
  6447. answer = 2;
  6448. break;
  6449. case "D":
  6450. answer = 3;
  6451. break;
  6452. case "E":
  6453. answer = 4;
  6454. break;
  6455. default:
  6456. break;
  6457. }
  6458. this.testJson.testJson.push({
  6459. teststitle: selectData[i].subject,
  6460. testItem: selectData[i].options.length,
  6461. checkList: selectData[i].options,
  6462. timuList: [],
  6463. answer: answer,
  6464. type: "1",
  6465. });
  6466. this.testJson.testCount++;
  6467. }
  6468. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6469. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6470. var elc = el.checkList.filter((element) => {
  6471. return element != "";
  6472. });
  6473. return (
  6474. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6475. );
  6476. });
  6477. isTestJson.testCount = isTestJson.testJson.length;
  6478. this.testJson = isTestJson;
  6479. this.$forceUpdate();
  6480. },
  6481. pasteTask() {
  6482. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  6483. if (!iframe) {
  6484. this.$message.error("请使用AI共创生成");
  6485. return;
  6486. }
  6487. let copyData = iframe.contentWindow.copyData;
  6488. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6489. this.$message.error("请使用AI共创生成");
  6490. return;
  6491. }
  6492. let stageTasksData = copyData.tasksData;
  6493. let taskA = [];
  6494. let tasks = stageTasksData;
  6495. for (var j = 0; j < tasks.length; j++) {
  6496. taskA.push({
  6497. task: tasks[j].taskName,
  6498. taskDetail: tasks[j].taskDecs,
  6499. chapterData: [],
  6500. toolText: "",
  6501. toolChoose: [
  6502. {
  6503. tool: [],
  6504. toolDetail: "",
  6505. toolType: 0,
  6506. askCount: 1,
  6507. askTitle: "",
  6508. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6509. },
  6510. ],
  6511. isShowTools: false,
  6512. askCount: 1,
  6513. isFold: 0,
  6514. askTitle: "",
  6515. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6516. checkJson: [{ checkCount: [], checkPerent: [] }],
  6517. homeworkList: [],
  6518. });
  6519. }
  6520. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  6521. this.$forceUpdate();
  6522. },
  6523. pasteStage() {
  6524. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  6525. if (!iframe) {
  6526. this.$message.error("请使用AI共创生成");
  6527. return;
  6528. }
  6529. let copyData = iframe.contentWindow.copyData;
  6530. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6531. this.$message.error("请使用AI共创生成");
  6532. return;
  6533. }
  6534. let stageData = copyData.stageData;
  6535. let stage = [];
  6536. for (var i = 0; i < stageData.length; i++) {
  6537. stage.push({
  6538. dyName: stageData[i], //单元标题
  6539. chapterInfo: [
  6540. {
  6541. isread: false,
  6542. chapterid: this.guid(),
  6543. title: "",
  6544. courseName: "",
  6545. taskJson: [
  6546. {
  6547. task: "",
  6548. taskDetail: "",
  6549. chapterData: [],
  6550. toolText: "",
  6551. toolChoose: [
  6552. {
  6553. tool: [],
  6554. toolDetail: "",
  6555. toolType: 0,
  6556. askCount: 1,
  6557. askTitle: "",
  6558. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6559. },
  6560. ],
  6561. isShowTools: false,
  6562. askCount: 1,
  6563. isFold: 0,
  6564. askTitle: "",
  6565. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6566. checkJson: [{ checkCount: [], checkPerent: [] }],
  6567. homeworkList: [],
  6568. },
  6569. ],
  6570. itemCount: 1,
  6571. fileList1: [],
  6572. video: [],
  6573. testData: [],
  6574. pData: [],
  6575. templateArray: [],
  6576. },
  6577. ],
  6578. });
  6579. }
  6580. let _this = this;
  6581. _this
  6582. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6583. confirmButtonText: "确定",
  6584. cancelButtonText: "取消",
  6585. type: "warning",
  6586. })
  6587. .then(() => {
  6588. _this.unitIndex = 0;
  6589. _this.unitJson = stage;
  6590. _this.steps++;
  6591. _this.updateWork();
  6592. })
  6593. .catch(() => {
  6594. return;
  6595. });
  6596. },
  6597. addAnswer() {
  6598. if (this.answerQ == "") {
  6599. this.$message.error("请输入您想要问的问题");
  6600. return;
  6601. }
  6602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6603. this.taskCount
  6604. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6605. this.dialogVisible8 = false;
  6606. if (
  6607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6608. .toolChoose[this.toolIndex].tool != 15
  6609. ) {
  6610. this.addTools(15, this.taskCount, this.toolIndex);
  6611. }
  6612. },
  6613. addMp3Answer() {
  6614. if (this.answerQ == "") {
  6615. this.$message.error("请输入您想要回答的问题");
  6616. return;
  6617. }
  6618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6619. this.taskCount
  6620. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6621. this.dialogVisibleMp3 = false;
  6622. },
  6623. addRateAnswer() {
  6624. var a = 1;
  6625. for (var i = 0; i < this.rateJson.length; i++) {
  6626. if (this.rateJson[i].value == "") {
  6627. a = 2;
  6628. break;
  6629. }
  6630. }
  6631. if (a == 2) {
  6632. this.$message.error("请把评价信息填写完整");
  6633. return;
  6634. }
  6635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6636. this.taskCount
  6637. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6638. this.dialogVisibleRate = false;
  6639. if (
  6640. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6641. .toolChoose[this.toolIndex].tool != 40
  6642. ) {
  6643. this.addTools(40, this.taskCount, this.toolIndex);
  6644. }
  6645. },
  6646. addSelectAnswer() {
  6647. if (this.selectJson.url == "") {
  6648. this.$message.error("请上传题目");
  6649. return;
  6650. }
  6651. if (!this.selectJson.select.length) {
  6652. this.$message.error("请添加选项");
  6653. return;
  6654. }
  6655. if (!this.selectJson.answer.length) {
  6656. this.$message.error("请设置答案");
  6657. return;
  6658. }
  6659. var a = 1;
  6660. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6661. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6662. a = 2;
  6663. }
  6664. }
  6665. if (a == 2) {
  6666. this.$message.error("请设置答案");
  6667. return;
  6668. }
  6669. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6670. this.taskCount
  6671. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6672. this.dialogVisibleSelect = false;
  6673. if (
  6674. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6675. .toolChoose[this.toolIndex].tool != 41
  6676. ) {
  6677. this.addTools(41, this.taskCount, this.toolIndex);
  6678. }
  6679. },
  6680. nextSelectSteps() {
  6681. if (this.selectJson.url == "") {
  6682. this.$message.error("请上传题目");
  6683. return;
  6684. }
  6685. if (!this.selectJson.select.length) {
  6686. this.$message.error("请添加选项");
  6687. return;
  6688. } else {
  6689. for (var z = 0; z < this.selectJson.select.length; z++) {
  6690. let checkC = this.selectJson.select[z];
  6691. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  6692. let checkC2 = this.selectJson.select[z2];
  6693. if (checkC == checkC2) {
  6694. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6695. return;
  6696. }
  6697. }
  6698. }
  6699. }
  6700. var a = 1;
  6701. for (var i = 0; i < this.selectJson.select.length; i++) {
  6702. if (!this.selectJson.select[i]) {
  6703. a = 2;
  6704. }
  6705. }
  6706. if (a == 2) {
  6707. this.$message.error("添加的选项不能为空");
  6708. return;
  6709. }
  6710. this.selectSteps++;
  6711. },
  6712. selectCourseDetail() {
  6713. if (this.cid == "" || this.cid == undefined) {
  6714. console.log("这是新增课程");
  6715. this.selectAllType();
  6716. } else {
  6717. this.cidType = 1;
  6718. let params = {
  6719. cid: this.cid,
  6720. };
  6721. this.ajax
  6722. .get(this.$store.state.api + "select_synergy", params)
  6723. .then((res) => {
  6724. this.loading = true;
  6725. this.courseDetail = res.data[0][0]
  6726. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6727. for (var j = 0; j < this.unitJson.length; j++) {
  6728. for (
  6729. var k = 0;
  6730. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6731. k++
  6732. ) {
  6733. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6734. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6735. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6736. : [];
  6737. let _chapterData = [];
  6738. for (
  6739. var c = 0;
  6740. c <
  6741. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6742. .length;
  6743. c++
  6744. ) {
  6745. if (
  6746. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6747. ) {
  6748. _chapterData.push(
  6749. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6750. );
  6751. }
  6752. }
  6753. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6754. _chapterData;
  6755. }
  6756. }
  6757. this.$forceUpdate();
  6758. this.courseName = res.data[0][0].title;
  6759. this.courseText = res.data[0][0].brief;
  6760. this.evalua = res.data[0][0].evaId;
  6761. this.cover = JSON.parse(res.data[0][0].cover);
  6762. this.noneBtnImg = this.cover.length >= 1;
  6763. // this.checkboxList =
  6764. // res.data[0][0].course_student.length > 0
  6765. // ? JSON.parse(res.data[0][0].course_student)
  6766. // : [];
  6767. this.checkboxList2 = res.data[0][0].juri
  6768. ? res.data[0][0].juri.split(",")
  6769. : [];
  6770. this.inviteCode = [];
  6771. for (var i = 0; i < res.data[2].length; i++) {
  6772. this.inviteCode.push({
  6773. cid: res.data[2][i].classid,
  6774. ic: res.data[2][i].code,
  6775. });
  6776. }
  6777. this.checkboxList3 = res.data[0][0].course_teacher
  6778. ? res.data[0][0].course_teacher.split(",")
  6779. : [];
  6780. // this.isTeacherSee =
  6781. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6782. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6783. this.myWord = res.data[0][0].template;
  6784. this.templateC.id = "123";
  6785. this.courseUserid = res.data[0][0].userid;
  6786. // if(this.courseUserid == this.userid){
  6787. // this.InviteChange(this.checkboxList2)
  6788. // }
  6789. this.nbOrder = res.data[0][0].ordernumber;
  6790. this.courseTypeId = [];
  6791. for (var i = 0; i < res.data[1].length; i++) {
  6792. this.courseTypeId.push(res.data[1][i].typeid);
  6793. }
  6794. console.log(this.courseTypeId);
  6795. // if (this.timer) clearInterval(this.timer);
  6796. if (this.timer) clearTimeout(this.timer);
  6797. this.timer = null;
  6798. // this.timer = setInterval(() => {
  6799. // this.seleteCourseUpdate();
  6800. this.setMan();
  6801. this.selectAllType();
  6802. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  6803. // }, 5000);
  6804. this.$forceUpdate();
  6805. setTimeout(() => {
  6806. this.checkEva(this.evalua);
  6807. }, 0);
  6808. })
  6809. .catch((err) => {
  6810. console.error(err);
  6811. });
  6812. }
  6813. },
  6814. seleteCourseUpdate() {
  6815. let params = {
  6816. cid: this.cid,
  6817. };
  6818. this.ajax
  6819. .get(this.$store.state.api + "select_synergy", params)
  6820. .then((res) => {
  6821. // console.log(this.unitJson);
  6822. let unitJson = JSON.parse(res.data[0][0].chapters);
  6823. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6824. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6825. let _unitJson = [];
  6826. let _chapAarry = [];
  6827. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6828. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6829. let index = 1;
  6830. let chapindex;
  6831. if (_unitJson2.length > unitJson.length) {
  6832. for (let c = 0; c < _unitJson2.length; c++) {
  6833. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6834. }
  6835. for (let j = 0; j < unitJson.length; j++) {
  6836. let count = 0;
  6837. for (let k = 0; k < _unitJson2.length; k++) {
  6838. if (
  6839. unitJson[j].chapterInfo[0].chapterid ==
  6840. _unitJson2[k].chapterInfo[0].chapterid
  6841. ) {
  6842. count++;
  6843. _chapAarry.splice(
  6844. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6845. 1
  6846. );
  6847. _unitJson.push(unitJson[j]);
  6848. break;
  6849. }
  6850. }
  6851. // if(count === 0){
  6852. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6853. // }
  6854. }
  6855. for (let k = 0; k < _unitJson2.length; k++) {
  6856. if (_unitJson2[k].isUpdate == 1) {
  6857. _chapAarry.splice(
  6858. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6859. 1
  6860. );
  6861. _unitJson.push(_unitJson2[k]);
  6862. }
  6863. }
  6864. console.log(_chapAarry);
  6865. for (let d = 0; d < _unitJson2.length; d++) {
  6866. if (
  6867. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6868. ) {
  6869. if (_unitIndex == d) {
  6870. index = 2;
  6871. }
  6872. chapindex = d;
  6873. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6874. }
  6875. }
  6876. } else {
  6877. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6878. }
  6879. for (let i = 0; i < unitJson.length; i++) {
  6880. if (
  6881. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6882. _unitJson[i].chapterInfo[0].chapterid !=
  6883. unitJson[i].chapterInfo[0].chapterid
  6884. ) {
  6885. if (i == _unitJson.length - 1) {
  6886. // this.unitIndex++
  6887. _unitIndex2++;
  6888. }
  6889. _unitJson.splice(i, 0, unitJson[i]);
  6890. } else if (i > _unitJson.length - 1) {
  6891. _unitJson.push(unitJson[i]);
  6892. } else if (
  6893. _unitJson[i].chapterInfo[0].chapterid ==
  6894. unitJson[i].chapterInfo[0].chapterid
  6895. ) {
  6896. _unitJson[i] = unitJson[i];
  6897. }
  6898. // if (i == _unitIndex) {
  6899. // continue;
  6900. // } else
  6901. }
  6902. if (_chapAarry.length && index != 2) {
  6903. if (chapindex < _unitIndex) {
  6904. this.isDelete = 2;
  6905. // this.unitIndex--;
  6906. _unitIndex2--;
  6907. } else if (
  6908. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6909. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6910. ) {
  6911. this.isDelete = 2;
  6912. for (let n = 0; n < _unitJson.length; n++) {
  6913. if (
  6914. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6915. _unitJson[n].chapterInfo[0].chapterid
  6916. ) {
  6917. // this.unitIndex = n;
  6918. _unitIndex2 = n;
  6919. _unitJson[n] = _unitJson2[_unitIndex];
  6920. break;
  6921. }
  6922. }
  6923. }
  6924. } else if (index != 2) {
  6925. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6926. _unitJson2[_unitIndex];
  6927. for (
  6928. var ci = 0;
  6929. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6930. ci++
  6931. ) {
  6932. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6933. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6934. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6935. .toolChoose
  6936. : [];
  6937. let _chapterData = [];
  6938. for (
  6939. var c = 0;
  6940. c <
  6941. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6942. .length;
  6943. c++
  6944. ) {
  6945. if (
  6946. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6947. .chapterData[c]
  6948. ) {
  6949. _chapterData.push(
  6950. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6951. .chapterData[c]
  6952. );
  6953. }
  6954. }
  6955. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6956. _chapterData;
  6957. }
  6958. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6959. }
  6960. if (index == 1) {
  6961. this.unitJson = _unitJson;
  6962. this.$forceUpdate();
  6963. setTimeout(() => {
  6964. if (this.unitIndex != _unitIndex2) {
  6965. this.isDelete = 2;
  6966. this.unitIndex = _unitIndex2;
  6967. }
  6968. }, 0);
  6969. this.timer = setTimeout(() => {
  6970. this.seleteCourseUpdate();
  6971. }, 1000);
  6972. } else if (index == 2) {
  6973. let _this = this;
  6974. _this
  6975. .$confirm(
  6976. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6977. "提示",
  6978. {
  6979. confirmButtonText: "需要",
  6980. cancelButtonText: "取消",
  6981. type: "warning",
  6982. }
  6983. )
  6984. .then(() => {
  6985. if (_this.time()) {
  6986. _this.restoreWork(
  6987. _chapAarry[0],
  6988. _unitJson,
  6989. chapindex,
  6990. _unitJson2,
  6991. _unitIndex2
  6992. );
  6993. }
  6994. })
  6995. .catch(() => {
  6996. _this.unitJson = _unitJson;
  6997. _this.$forceUpdate();
  6998. setTimeout(() => {
  6999. if (this.unitIndex != _unitIndex2) {
  7000. this.isDelete = 2;
  7001. this.unitIndex = _unitIndex2;
  7002. }
  7003. }, 0);
  7004. _this.timer = setTimeout(() => {
  7005. _this.seleteCourseUpdate();
  7006. }, 1000);
  7007. });
  7008. }
  7009. })
  7010. .catch((err) => {
  7011. console.error(err);
  7012. });
  7013. },
  7014. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  7015. let params = [
  7016. {
  7017. cid: this.cid,
  7018. chapters: JSON.stringify(this.unitJson),
  7019. uid: this.userid,
  7020. chapid: chapid,
  7021. },
  7022. ];
  7023. this.ajax
  7024. .post(this.$store.state.api + "restoreWork", params)
  7025. .then((res) => {
  7026. this.$message({
  7027. message: "恢复成功",
  7028. type: "success",
  7029. });
  7030. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  7031. this.unitJson = unitJson;
  7032. this.$forceUpdate();
  7033. setTimeout(() => {
  7034. if (this.unitIndex != unitIndex2) {
  7035. this.isDelete = 2;
  7036. this.unitIndex = unitIndex2;
  7037. }
  7038. }, 0);
  7039. this.timer = setTimeout(() => {
  7040. this.seleteCourseUpdate();
  7041. }, 1000);
  7042. })
  7043. .catch((err) => {
  7044. this.$message.error(this.lang.Poorinternetconnection);
  7045. console.error(err);
  7046. });
  7047. },
  7048. getTypeName() {
  7049. console.log(this.courseTypeId);
  7050. this.$forceUpdate();
  7051. },
  7052. selectAllType() {
  7053. let params = {
  7054. org: this.org && this.org != "" ? this.org : "",
  7055. oid: this.oid && this.oid != "" ? this.oid : "",
  7056. stand: "cn"
  7057. };
  7058. this.ajax
  7059. .get(this.$store.state.api + "selectAllTypeStand", params)
  7060. .then((res) => {
  7061. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7062. res.data[0] = [...res.data[0], ...res.data[4]]
  7063. }
  7064. this.CourseType = res.data;
  7065. this.CourseType2 = [
  7066. { name: this.lang.ZhijianCourse, id: [] },
  7067. { name: this.lang.ZhixingCourse, id: [] },
  7068. { name: this.lang.IntelligentCreationCourse, id: [] },
  7069. ];
  7070. for (var cti = 0; cti < res.data[0].length; cti++) {
  7071. if (
  7072. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  7073. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  7074. ) {
  7075. this.CourseType2[0].id.push(res.data[0][cti].id);
  7076. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  7077. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  7078. this.CourseType2[1].id.push(res.data[0][cti].id);
  7079. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7080. this.CourseType2[2].id.push(res.data[0][cti].id);
  7081. }
  7082. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  7083. res.data[0][cti].name = this.lang.GradeL;
  7084. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  7085. res.data[0][cti].name = this.lang.Subject;
  7086. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7087. res.data[0][cti].name = this.lang.Theme;
  7088. }
  7089. }
  7090. let _courseTypeId = [];
  7091. for (var i = 0; i < res.data[0].length; i++) {
  7092. if (!this.cid) {
  7093. this.courseTypeId[res.data[0][i].id] = [];
  7094. }
  7095. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  7096. // }
  7097. this.CourseTypeJson[res.data[0][i].id] = [];
  7098. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7099. if (res.data[0][i].name == "栏目") {
  7100. this.CourseType[0][i].name = "主题";
  7101. }
  7102. }
  7103. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7104. for (var j = 0; j < res.data[1].length; j++) {
  7105. if (
  7106. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7107. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7108. ) {
  7109. _courseTypeId.push(res.data[1][j].id);
  7110. }
  7111. if (res.data[0][i].id == res.data[1][j].pid) {
  7112. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7113. }
  7114. }
  7115. } else {
  7116. if (res.data[2].length > 0) {
  7117. for (var j = 0; j < res.data[2].length; j++) {
  7118. if (
  7119. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7120. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7121. ) {
  7122. _courseTypeId.push(res.data[2][j].id);
  7123. }
  7124. if (res.data[0][i].id == res.data[2][j].pid) {
  7125. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7126. }
  7127. }
  7128. }
  7129. if (res.data[3].length > 0) {
  7130. for (var j = 0; j < res.data[3].length; j++) {
  7131. if (
  7132. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7133. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7134. ) {
  7135. _courseTypeId.push(res.data[3][j].id);
  7136. }
  7137. if (res.data[0][i].id == res.data[3][j].pid) {
  7138. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7139. }
  7140. }
  7141. }
  7142. }
  7143. }
  7144. this.courseTypeId = _courseTypeId;
  7145. })
  7146. .catch((err) => {
  7147. console.error(err);
  7148. });
  7149. },
  7150. selectType() {
  7151. this.ajax
  7152. .get(this.$store.state.api + "selectType")
  7153. .then((res) => {
  7154. this.CourseType = res.data;
  7155. for (var i = 0; i < res.data[0].length; i++) {
  7156. if (!this.cid) {
  7157. this.courseTypeId[res.data[0][i].id] = "";
  7158. }
  7159. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7160. if (res.data[0][i].name == "栏目") {
  7161. this.CourseType[0][i].name = "主题";
  7162. }
  7163. }
  7164. for (var j = 0; j < res.data[1].length; j++) {
  7165. if (res.data[0][i].id == res.data[1][j].pid) {
  7166. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7167. this.CourseTypeJson[res.data[0][i].id] = [];
  7168. }
  7169. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7170. }
  7171. }
  7172. }
  7173. this.selectTypeByOid();
  7174. this.selectTypeByOrg();
  7175. })
  7176. .catch((err) => {
  7177. console.error(err);
  7178. });
  7179. },
  7180. selectTypeByOid() {
  7181. let params = {
  7182. oid: this.oid,
  7183. };
  7184. this.ajax
  7185. .get(this.$store.state.api + "selectTypeByOid", params)
  7186. .then((res) => {
  7187. for (var i = 0; i < res.data[0].length; i++) {
  7188. for (var j = 0; j < res.data[1].length; j++) {
  7189. if (res.data[0][i].id == res.data[1][j].pid) {
  7190. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7191. this.CourseTypeJson[res.data[0][i].id] = [];
  7192. }
  7193. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7194. }
  7195. }
  7196. }
  7197. })
  7198. .catch((err) => {
  7199. console.error(err);
  7200. });
  7201. },
  7202. selectTypeByOrg() {
  7203. let params = {
  7204. oid: this.org,
  7205. };
  7206. this.ajax
  7207. .get(this.$store.state.api + "selectTypeByOrg", params)
  7208. .then((res) => {
  7209. for (var i = 0; i < res.data[0].length; i++) {
  7210. for (var j = 0; j < res.data[1].length; j++) {
  7211. if (res.data[0][i].id == res.data[1][j].pid) {
  7212. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7213. this.CourseTypeJson[res.data[0][i].id] = [];
  7214. }
  7215. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7216. }
  7217. }
  7218. }
  7219. this.$forceUpdate();
  7220. })
  7221. .catch((err) => {
  7222. console.error(err);
  7223. });
  7224. },
  7225. OtherMb(type) {
  7226. this.typeMode = type;
  7227. setTimeout(() => {
  7228. this.checkEva(this.checkId);
  7229. }, 0);
  7230. },
  7231. openMember() {
  7232. if (this.cid && this.userid != this.courseUserid && this.role != '1') {
  7233. this.$message.error(this.lang.Noncannotedit)
  7234. return;
  7235. }
  7236. this.searchTN = "";
  7237. this.page = 1
  7238. this.getTeacher();
  7239. this.dialogVisibleMember = true;
  7240. },
  7241. checkEva(id, type) {
  7242. this.dialogVisiblemb = false;
  7243. this.selectEva();
  7244. if (this.evalua != id && type == 2) {
  7245. this.$message.success("导入成功");
  7246. }
  7247. this.evalua = id;
  7248. this.checkId = id;
  7249. if (this.evalua != "") {
  7250. for (var i = 0; i < this.evaJuri.length; i++) {
  7251. if (this.evalua == this.evaJuri[i].id) {
  7252. this.eTitle = this.evaJuri[i].title;
  7253. this.eJson = JSON.parse(this.evaJuri[i].content);
  7254. }
  7255. }
  7256. this.data.data = [];
  7257. this.$forceUpdate();
  7258. setTimeout(() => {
  7259. this.setMindData();
  7260. }, 500);
  7261. }
  7262. },
  7263. deleteEva() {
  7264. let _this = this;
  7265. if (_this.evalua == "") {
  7266. this.$message.warning("内容已经清空了,请勿重复清空");
  7267. return;
  7268. }
  7269. _this
  7270. .$confirm("确定删除此目标吗?", "提示", {
  7271. confirmButtonText: "确定",
  7272. cancelButtonText: "取消",
  7273. type: "warning",
  7274. })
  7275. .then(() => {
  7276. _this.evalua = "";
  7277. _this.checkId = "";
  7278. _this.eTitle = "";
  7279. let _unitJson = _this.unitJson;
  7280. for (var i = 0; i < _unitJson.length; i++) {
  7281. let _task = _unitJson[i].chapterInfo[0].taskJson;
  7282. for (var j = 0; j < _task.length; j++) {
  7283. let _eList = _task[j].eList;
  7284. for (var k = 0; k < _eList.length; k++) {
  7285. delete _eList[k].target;
  7286. }
  7287. }
  7288. }
  7289. _this.$forceUpdate();
  7290. if (_this.cid) {
  7291. _this.updateWork();
  7292. }
  7293. })
  7294. .catch(() => {
  7295. return;
  7296. });
  7297. },
  7298. selectEva() {
  7299. let params = {
  7300. oid: this.oid,
  7301. };
  7302. this.ajax
  7303. .get(this.$store.state.api + "selectAllEvaluation", params)
  7304. .then((res) => {
  7305. this.evaJuri = res.data[0];
  7306. })
  7307. .catch((err) => {
  7308. console.error(err);
  7309. });
  7310. },
  7311. setMindData() {
  7312. let targetArray = [];
  7313. this.data.data = [];
  7314. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  7315. let _eJson = Object.keys(this.eJson);
  7316. let _e = this.eJson;
  7317. for (let i = 0; i < _eJson.length; i++) {
  7318. let element = _e[_eJson[i]];
  7319. this.data.data.push({
  7320. id: element.id,
  7321. parentid: "root",
  7322. topic: element.name,
  7323. });
  7324. // targetArray.push({
  7325. // id: element.id,
  7326. // parentid: "root",
  7327. // name: element.name,
  7328. // });
  7329. targetArray.push({
  7330. value: element.name,
  7331. label: element.name,
  7332. children: [],
  7333. });
  7334. let _eJsonc = Object.keys(element.child);
  7335. let _e2 = element.child;
  7336. for (let j = 0; j < _eJsonc.length; j++) {
  7337. let _ec = _e2[_eJsonc[j]];
  7338. this.data.data.push({
  7339. id: _ec.id,
  7340. parentid: element.id,
  7341. topic: _ec.name,
  7342. });
  7343. // targetArray.push({
  7344. // id: _ec.id,
  7345. // parentid: element.id,
  7346. // name: _ec.name,
  7347. // });
  7348. targetArray[i].children.push({
  7349. value: _ec.name,
  7350. label: _ec.name,
  7351. children: [],
  7352. });
  7353. let _eJsonz = Object.keys(_ec.child);
  7354. let _e3 = _ec.child;
  7355. for (let z = 0; z < _eJsonz.length; z++) {
  7356. let _ez = _e3[_eJsonz[z]];
  7357. this.data.data.push({
  7358. id: _ez.id,
  7359. parentid: _ec.id,
  7360. topic: _ez.name,
  7361. });
  7362. // targetArray.push({
  7363. // id: _ez.id,
  7364. // parentid: _ec.id,
  7365. // name: _ez.name,
  7366. // });
  7367. targetArray[i].children[j].children.push({
  7368. value: _ez.name,
  7369. label: _ez.name,
  7370. });
  7371. }
  7372. }
  7373. }
  7374. this.targetArray = targetArray;
  7375. this.$forceUpdate();
  7376. },
  7377. /*添加评价 */
  7378. addEList(index, tIndex) {
  7379. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7380. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7381. value: "",
  7382. detail: "",
  7383. score: 5,
  7384. })
  7385. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7386. { value: "", detail: "", score: 5 },
  7387. ]);
  7388. this.$forceUpdate();
  7389. },
  7390. forceUpdate() {
  7391. this.$forceUpdate();
  7392. },
  7393. deletEList(index, tIndex, eIndex) {
  7394. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7395. eIndex,
  7396. 1
  7397. );
  7398. this.$forceUpdate();
  7399. },
  7400. getChoosePic(t) {
  7401. this.chooseType = t;
  7402. this.getAllBanner();
  7403. },
  7404. getAllBanner() {
  7405. this.sysPicVisible = true;
  7406. let params = {
  7407. t: this.chooseType,
  7408. };
  7409. this.ajax
  7410. .get(this.$store.state.api + "selectAllBanner", params)
  7411. .then((res) => {
  7412. this.sysPic = res.data[0];
  7413. })
  7414. .catch((err) => {
  7415. console.error(err);
  7416. });
  7417. },
  7418. // getClass() {
  7419. // let params = {
  7420. // oid: this.oid,
  7421. // };
  7422. // this.ajax
  7423. // .get(this.$store.state.api + "selectClassBySchool", params)
  7424. // .then((res) => {
  7425. // this.classJuri = res.data[0];
  7426. // })
  7427. // .catch((err) => {
  7428. // console.error(err);
  7429. // });
  7430. // },
  7431. deleteSysPic() {
  7432. this.cover = [];
  7433. this.isSysPic = false;
  7434. this.isSysPic2 = false;
  7435. },
  7436. deleteSelectPic() {
  7437. this.selectJson.url = "";
  7438. },
  7439. setEListStar() {
  7440. this.$forceUpdate();
  7441. },
  7442. deletRateList(i) {
  7443. this.rateJson.splice(i, 1);
  7444. },
  7445. addRateList() {
  7446. this.rateJson.push({ detail: "", score: 5, value: "" });
  7447. },
  7448. addSt() {
  7449. this.sentenceList.push({
  7450. sentenceTitle: "",
  7451. addSentence: [],
  7452. rightAnswer: [],
  7453. });
  7454. },
  7455. addSen(i) {
  7456. if (!this.sentenceList[i].sentenceTitle) {
  7457. this.$message.error("请填写卡片内容!");
  7458. return;
  7459. }
  7460. if (this.sentenceList[i].sentenceTitle.length > 10) {
  7461. this.$message.error("卡片内容字数不能超过10位");
  7462. return;
  7463. }
  7464. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  7465. this.$message.error("不能添加重复的卡片内容!");
  7466. return;
  7467. }
  7468. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7469. // this.isPushTitleList.push(this.sentenceTitle);
  7470. this.sentenceList[i].sentenceTitle = "";
  7471. },
  7472. setRightAnswer(s, i, j) {
  7473. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7474. this.sentenceList[i].rightAnswer.push(s);
  7475. }
  7476. },
  7477. returnCard(r, i, j) {
  7478. this.sentenceList[i].rightAnswer.splice(j, 1);
  7479. },
  7480. addSentenceTool() {
  7481. for (var i = 0; i < this.sentenceList.length; i++) {
  7482. if (this.sentenceList[i].rightAnswer.length == 0) {
  7483. this.$message.error(`请将题目${i + 1}设置完整。`);
  7484. return;
  7485. }
  7486. if (
  7487. this.sentenceList[i].addSentence.length !=
  7488. this.sentenceList[i].rightAnswer.length
  7489. ) {
  7490. this.$message.error(`请将题目${i + 1}设置完整。`);
  7491. return;
  7492. }
  7493. }
  7494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7495. this.taskCount
  7496. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7497. this.sentenceList = [
  7498. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7499. ];
  7500. this.dialogVisibleSentence = false;
  7501. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7502. // itemTaskIndex
  7503. // ].toolChoose[toolIndex].tool = [];
  7504. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7505. // itemTaskIndex
  7506. // ].toolChoose[toolIndex].tool.push(i);
  7507. if (
  7508. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7509. .toolChoose[this.toolIndex].tool != 47
  7510. ) {
  7511. this.addTools(47, this.taskCount, this.toolIndex);
  7512. }
  7513. },
  7514. addTableJson() {
  7515. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7516. // this.$message.error("请将信息填写完整!");
  7517. // return;
  7518. // }
  7519. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7520. this.taskCount
  7521. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7522. // this.tableJson = [{ text: "" }];
  7523. // this.dialogVisibleTable = false;
  7524. this.$message.success("上传成功");
  7525. if (
  7526. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7527. .toolChoose[this.toolIndex].tool != 48
  7528. ) {
  7529. this.addTools(48, this.taskCount, this.toolIndex);
  7530. }
  7531. },
  7532. addWordJson() {
  7533. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7534. this.taskCount
  7535. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7536. // this.wordJson = [{ text: "" }];
  7537. // this.dialogVisibleWord = false;
  7538. this.$message.success("上传成功");
  7539. if (
  7540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7541. .toolChoose[this.toolIndex].tool != 52
  7542. ) {
  7543. this.addTools(52, this.taskCount, this.toolIndex);
  7544. }
  7545. },
  7546. addMoreUpload() {
  7547. if (this.uploadJson.length == 0) {
  7548. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7549. this.taskCount
  7550. ].toolChoose[this.toolIndex].uploadJson = [];
  7551. } else {
  7552. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7553. this.taskCount
  7554. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7555. }
  7556. this.uploadJson = [];
  7557. this.dialogVisibleMoreUpload = false;
  7558. if (
  7559. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7560. .toolChoose[this.toolIndex].tool != 50
  7561. ) {
  7562. this.addTools(50, this.taskCount, this.toolIndex);
  7563. }
  7564. },
  7565. addPreTime() {
  7566. if (this.preTime == 0) {
  7567. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7568. this.taskCount
  7569. ].toolChoose[this.toolIndex].preTime = 0;
  7570. } else {
  7571. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7572. this.taskCount
  7573. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7574. }
  7575. this.preTime = 0;
  7576. this.dialogVisiblePreTime = false;
  7577. if (
  7578. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7579. .toolChoose[this.toolIndex].tool != 10
  7580. ) {
  7581. this.addTools(10, this.taskCount, this.toolIndex);
  7582. }
  7583. },
  7584. goToTask(i) {
  7585. this.toolIndexType = ''
  7586. if (this.isClickColor == (i + 1)) {
  7587. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  7588. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  7589. } else {
  7590. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  7591. }
  7592. this.$forceUpdate();
  7593. return;
  7594. }
  7595. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  7596. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  7597. } else {
  7598. document.querySelectorAll(".rightBox")[0].scrollTop =
  7599. document.querySelectorAll(".taskBorder")[i + 1].offsetTop +
  7600. document.querySelectorAll(".taskBorder")[i + 1].parentElement.parentElement.offsetTop;
  7601. this.isClickColor = i + 1;
  7602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  7603. }
  7604. this.$forceUpdate();
  7605. },
  7606. taskMove(type, index) {
  7607. // this
  7608. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  7609. // confirmButtonText: "确定",
  7610. // cancelButtonText: "取消",
  7611. // type: "warning",
  7612. // })
  7613. // .then(() => {
  7614. if (type == 1) {
  7615. if (index > 0) {
  7616. let a = JSON.parse(
  7617. JSON.stringify(
  7618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  7619. )
  7620. );
  7621. let b = JSON.parse(
  7622. JSON.stringify(
  7623. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  7624. )
  7625. );
  7626. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7629. if (index - 1 == 0) {
  7630. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7631. index - 1
  7632. ].chapterData = a.chapterData;
  7633. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7634. index
  7635. ].chapterData = b.chapterData;
  7636. }
  7637. }
  7638. } else {
  7639. if (
  7640. index <
  7641. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7642. ) {
  7643. let a = JSON.parse(
  7644. JSON.stringify(
  7645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  7646. )
  7647. );
  7648. let b = JSON.parse(
  7649. JSON.stringify(
  7650. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  7651. )
  7652. );
  7653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7655. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7656. if (index == 0) {
  7657. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7658. index + 1
  7659. ].chapterData = a.chapterData;
  7660. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7661. index
  7662. ].chapterData = b.chapterData;
  7663. }
  7664. }
  7665. }
  7666. this.$forceUpdate();
  7667. // })
  7668. // .catch(() => {
  7669. // return;
  7670. // })
  7671. },
  7672. addGroup(i) {
  7673. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7674. this.groupJson.group.push({
  7675. name: "第" + (this.groupJson.group.length + 1) + "组",
  7676. });
  7677. },
  7678. deleteGroup(i) {
  7679. this.groupJson.group.splice(i, 1);
  7680. },
  7681. numberPan() {
  7682. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  7683. this.$message.error('请输入2-10的数字')
  7684. this.groupJson.number = ''
  7685. }
  7686. },
  7687. addGroupJson() {
  7688. for (var i = 0; i < this.groupJson.group.length; i++) {
  7689. if (!this.groupJson.group[i].name) {
  7690. this.$message.error("请将信息填写完整!");
  7691. return;
  7692. }
  7693. }
  7694. if (!this.groupJson.number) {
  7695. this.$message.error("请将信息填写完整!");
  7696. return;
  7697. }
  7698. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7699. this.taskCount
  7700. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7701. JSON.stringify(this.groupJson)
  7702. );
  7703. this.dialogVisibleGroup = false;
  7704. this.groupJson = {};
  7705. if (
  7706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7707. .toolChoose[this.toolIndex].tool != 49
  7708. ) {
  7709. this.addTools(49, this.taskCount, this.toolIndex);
  7710. }
  7711. },
  7712. updateTime(preTime) {
  7713. this.preTime = preTime;
  7714. },
  7715. InviteChange(val) {
  7716. console.log(val);
  7717. return;
  7718. let array = JSON.parse(JSON.stringify(val));
  7719. this.inviteCode = this.inviteCode.filter((el) => {
  7720. if (val.indexOf(el.cid) != -1) {
  7721. array.splice(array.indexOf(el.cid), 1);
  7722. return el;
  7723. }
  7724. });
  7725. for (var i = 0; i < array.length; i++) {
  7726. this.getInviteCode(array[i]);
  7727. }
  7728. },
  7729. async getInviteCode(cid) {
  7730. let code = this.randomNumber();
  7731. let params = {
  7732. code: code,
  7733. oid: this.oid,
  7734. };
  7735. let type = 1;
  7736. for (var i = 0; i < this.inviteCode.length; i++) {
  7737. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7738. type = 2;
  7739. }
  7740. }
  7741. if (type == 2) {
  7742. this.getInviteCode(cid);
  7743. return;
  7744. }
  7745. const res = await this.ajax.get(
  7746. this.$store.state.api + "selectInviteCode2",
  7747. params
  7748. );
  7749. if (
  7750. res.data.length &&
  7751. res.data[0].length &&
  7752. res.data[0][0].courseId != this.cid
  7753. ) {
  7754. this.getInviteCode(cid);
  7755. return;
  7756. }
  7757. let array = [];
  7758. for (var i = 0; i < this.inviteCode.length; i++) {
  7759. array.push(this.inviteCode[i].cid);
  7760. }
  7761. if (array.indexOf(cid) != -1) {
  7762. this.inviteCode[array.indexOf(cid)].ic = code;
  7763. } else {
  7764. this.inviteCode.push({ cid: cid, ic: code });
  7765. }
  7766. },
  7767. OpenInviteD(cid) {
  7768. let array = [];
  7769. this.icode = "";
  7770. for (var i = 0; i < this.inviteCode.length; i++) {
  7771. array.push(this.inviteCode[i].cid);
  7772. }
  7773. if (array.indexOf(cid) != -1) {
  7774. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7775. }
  7776. this.inviteId = cid;
  7777. this.dialogVisibleInvite = true;
  7778. },
  7779. addInvite() {
  7780. let reg = /^[A-Za-z0-9]{4,}$/;
  7781. if (!reg.test(this.icode)) {
  7782. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7783. return;
  7784. }
  7785. let type = 1;
  7786. for (var i = 0; i < this.inviteCode.length; i++) {
  7787. if (
  7788. this.inviteCode[i].cid != this.inviteId &&
  7789. this.icode == this.inviteCode[i].ic
  7790. ) {
  7791. type = 2;
  7792. }
  7793. }
  7794. if (type == 2) {
  7795. this.$message.error("已有此随机码,不能重复");
  7796. return;
  7797. }
  7798. let params = {
  7799. code: this.icode,
  7800. oid: this.oid,
  7801. };
  7802. this.ajax
  7803. .get(this.$store.state.api + "selectInviteCode", params)
  7804. .then((res) => {
  7805. if (
  7806. res.data.length &&
  7807. res.data[0].length &&
  7808. res.data[0][0].courseId != this.cid
  7809. ) {
  7810. this.$message.error("已有此随机码,不能重复");
  7811. return;
  7812. }
  7813. let array = [];
  7814. for (var i = 0; i < this.inviteCode.length; i++) {
  7815. array.push(this.inviteCode[i].cid);
  7816. }
  7817. if (array.indexOf(this.inviteId) != -1) {
  7818. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7819. } else {
  7820. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7821. }
  7822. this.icode = "";
  7823. this.dialogVisibleInvite = false;
  7824. })
  7825. .catch((err) => {
  7826. console.error(err);
  7827. });
  7828. },
  7829. randomNumber() {
  7830. // 随机生成两位数
  7831. // let num = Math.floor(Math.random() * 900) + 100;
  7832. // 生成 0 到 99 之间的随机整数
  7833. const randomNumber = Math.floor(Math.random() * 100);
  7834. // 如果随机数小于 10,补上前导零
  7835. const num =
  7836. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7837. // 随机生成两个大写字母
  7838. let letters = "";
  7839. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7840. for (let i = 0; i < 3; i++) {
  7841. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7842. }
  7843. // 随机生成两位数字和字母的组合
  7844. let mix = "";
  7845. let chars =
  7846. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7847. for (let i = 0; i < 3; i++) {
  7848. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7849. mix += char;
  7850. }
  7851. // 随机选择一种类型
  7852. let type = Math.floor(Math.random() * 3);
  7853. return num;
  7854. // 根据类型输出结果
  7855. switch (type) {
  7856. case 0:
  7857. console.log(num); // 输出两位数
  7858. return num;
  7859. case 1:
  7860. console.log(letters); // 输出两个大写字母
  7861. return letters;
  7862. case 2:
  7863. console.log(mix); // 输出两位数字和字母的组合
  7864. return mix;
  7865. }
  7866. },
  7867. getPaste() {
  7868. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  7869. if (!iframe) {
  7870. return;
  7871. }
  7872. let copyData = iframe.contentWindow.copyData;
  7873. // if (copyData && copyData.stageData && copyData.stageData.length) {
  7874. // this.isPasteStage = true
  7875. // }
  7876. if (copyData && copyData.selectData.length) {
  7877. this.isPasteChoice = true
  7878. }
  7879. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  7880. this.isPasteTask = true
  7881. }
  7882. },
  7883. searchImage() {
  7884. var _this = this;
  7885. _this.imageList = []
  7886. if (!_this.searchImageValue) {
  7887. _this.sysPicVisible2 = true
  7888. return
  7889. }
  7890. _this.imageloading = true
  7891. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  7892. page: _this.ppage,
  7893. pagesize: 9,
  7894. query: _this.searchImageValue
  7895. }).then(function (response) {
  7896. // console.log(response.data.data);
  7897. var data = response.data.FunctionResponse.result;
  7898. for (var i = 0; i < data.length; i++) {
  7899. _this.imageList.push({ url: data[i].thumbnail })
  7900. }
  7901. _this.imageloading = false
  7902. }).catch(function (error) {
  7903. console.log(error);
  7904. });
  7905. _this.sysPicVisible2 = true
  7906. },
  7907. changePicture() {
  7908. this.ppage++
  7909. this.searchImage()
  7910. },
  7911. resetImage() {
  7912. this.ppage = 1
  7913. this.searchImage()
  7914. },
  7915. jumpGj(i, j) {
  7916. if ((i + 1) != this.isClickColor) {
  7917. this.isClickColor = (i + 1)
  7918. }
  7919. var a = document.scrollingElement;
  7920. this.toolIndexType = `gj${i}${j}`
  7921. let target = document.querySelector(`#gj${i}${j}`);
  7922. if (target) {
  7923. target.scrollIntoView(true);
  7924. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  7925. // setTimeout(() => {
  7926. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  7927. // }, 0);
  7928. }
  7929. },
  7930. },
  7931. beforeDestroy() {
  7932. clearTimeout(this.timer);
  7933. this.timer = null;
  7934. clearInterval(this.timer2);
  7935. this.timer2 = null;
  7936. clearInterval(this.pasteTimer);
  7937. this.pasteTimer = null;
  7938. },
  7939. beforeRouteLeave(to, from, next) {
  7940. clearTimeout(this.timer);
  7941. this.timer = null;
  7942. clearInterval(this.timer2);
  7943. this.timer2 = null;
  7944. clearInterval(this.pasteTimer);
  7945. this.pasteTimer = null;
  7946. next();
  7947. },
  7948. created() {
  7949. this.getStudent();
  7950. this.getTeacher();
  7951. this.getClass();
  7952. this.selectGrage();
  7953. this.getTemplate();
  7954. // this.selectType();
  7955. this.selectEva();
  7956. this.loading = false;
  7957. this.timer2 = setInterval(() => {
  7958. this.selectEva();
  7959. }, 5000);
  7960. this.pasteTimer = setInterval(() => {
  7961. this.getPaste();
  7962. }, 1000);
  7963. setTimeout(() => {
  7964. this.selectCourseDetail();
  7965. }, 500);
  7966. },
  7967. mounted() {
  7968. this.$nextTick(() => {
  7969. //监听这个dom的scroll事件
  7970. // $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  7971. // this.heightPx = $(".rightBox")[0].offsetHeight + 'px'
  7972. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  7973. this.$forceUpdate();
  7974. });
  7975. },
  7976. };
  7977. </script>
  7978. <style scoped>
  7979. @media screen and (max-width: 1280px) {
  7980. .mbCss {
  7981. flex-direction: column !important;
  7982. }
  7983. .pjCss {
  7984. width: 100% !important;
  7985. }
  7986. .evaCss {
  7987. width: 100% !important;
  7988. }
  7989. }
  7990. .dialog_diy>>>.el-dialog__header {
  7991. background: #3c3c3c !important;
  7992. padding: 15px 20px;
  7993. }
  7994. .dialog_diy>>>.el-dialog__title {
  7995. color: #fff;
  7996. }
  7997. .dialog_diy>>>.el-dialog__headerbtn {
  7998. top: 19px;
  7999. }
  8000. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8001. color: #fff;
  8002. }
  8003. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8004. color: #fff;
  8005. }
  8006. .dialog_diy>>>.el-dialog__body,
  8007. .dialog_diy>>>.el-dialog__footer {
  8008. background: #fafafa;
  8009. }
  8010. .dialog_diy3>>>.el-dialog__body,
  8011. .dialog_diy3>>>.el-dialog__footer {
  8012. background: #eee !important;
  8013. }
  8014. .dialog_diy3>>>.el-dialog__body {
  8015. padding: 20px 20px;
  8016. }
  8017. .source_diy>>>.el-dialog {
  8018. height: 100% !important;
  8019. margin: 0 auto !important;
  8020. }
  8021. .source_diy>>>.el-dialog__body {
  8022. height: calc(100% - 185px);
  8023. overflow: auto;
  8024. background: #e6eaf0;
  8025. }
  8026. .source_diy>>>.el-dialog__footer {
  8027. background: #e6eaf0 !important;
  8028. }
  8029. .left {
  8030. border-right: 1px solid rgb(60, 94, 143);
  8031. display: flex;
  8032. flex-direction: column;
  8033. align-items: center;
  8034. min-height: 600px;
  8035. width: 385px;
  8036. height: 80%;
  8037. }
  8038. .tips {
  8039. color: rgb(128, 128, 128);
  8040. font-size: 12px;
  8041. width: 270px;
  8042. margin: 40px;
  8043. }
  8044. .pb_content {
  8045. height: 100% !important;
  8046. /* margin: 0 20px 0 20px; */
  8047. }
  8048. .pb_content_body {
  8049. width: 100% !important;
  8050. height: 100%;
  8051. }
  8052. .info_solid {
  8053. width: 270px;
  8054. height: 30px;
  8055. border-left: 1px solid #bdbdbd;
  8056. margin: 10px 0px 10px 30px;
  8057. }
  8058. .info_steps {
  8059. width: 270px;
  8060. font-size: 0.875rem;
  8061. display: flex;
  8062. align-items: center;
  8063. }
  8064. .info_steps span:nth-child(1) {
  8065. width: 30px;
  8066. height: 30px;
  8067. background: rgba(0, 0, 0, 0.38);
  8068. display: block;
  8069. color: #fff;
  8070. border-radius: 40px;
  8071. text-align: center;
  8072. line-height: 30px;
  8073. }
  8074. .steps_active {
  8075. background: #3d67bc !important;
  8076. }
  8077. .info_steps span:nth-child(2) {
  8078. margin-left: 5px;
  8079. }
  8080. .right {
  8081. height: 100%;
  8082. width: calc(100% - 40px);
  8083. display: flex;
  8084. overflow: hidden;
  8085. margin: 0 auto;
  8086. }
  8087. .basic_box {
  8088. margin: 0 auto;
  8089. position: relative;
  8090. padding: 0 20px 0 20px;
  8091. }
  8092. .basic_box2 {
  8093. position: relative;
  8094. width: calc(100% - 300px);
  8095. }
  8096. .basic_box_success {
  8097. width: 100%;
  8098. height: 100%;
  8099. padding: 50px 0;
  8100. position: relative;
  8101. text-align: center;
  8102. /* border-bottom: 1px solid #bfbfbf; */
  8103. box-sizing: border-box;
  8104. display: flex;
  8105. align-items: center;
  8106. flex-direction: column;
  8107. justify-content: center;
  8108. }
  8109. .info_title {
  8110. font-size: 1.5em;
  8111. margin-right: 25px;
  8112. /* margin: 20px 30px 20px 30px; */
  8113. }
  8114. .bInfo_title {
  8115. text-align: left;
  8116. margin: 10px 0;
  8117. }
  8118. .small_title {
  8119. font-size: 14px;
  8120. line-height: 40px;
  8121. }
  8122. .chapter_beizhu {
  8123. font-size: 12px;
  8124. font-weight: bold;
  8125. float: right;
  8126. color: rgb(128, 128, 128);
  8127. margin-top: 5px;
  8128. }
  8129. .chapter_uploadBox1 {
  8130. text-align: left;
  8131. background-color: rgb(242, 242, 242);
  8132. width: 100%;
  8133. height: 67px;
  8134. padding: 0px 15px;
  8135. border-radius: 8px;
  8136. overflow: hidden;
  8137. font-size: 16px;
  8138. box-sizing: border-box;
  8139. position: relative;
  8140. }
  8141. .chapter_add {
  8142. width: 100%;
  8143. height: 32px;
  8144. margin-top: 15px;
  8145. cursor: pointer;
  8146. }
  8147. .chapter_add_l {
  8148. margin-left: 5px;
  8149. width: 30px;
  8150. height: 30px;
  8151. float: left;
  8152. border: 1px solid #aaa;
  8153. color: #aaa;
  8154. border-radius: 50%;
  8155. font-size: 25px;
  8156. text-align: center;
  8157. }
  8158. .chapter_add_r {
  8159. font-size: 18px;
  8160. height: 40px;
  8161. line-height: 30px;
  8162. text-indent: 10px;
  8163. color: #aaa;
  8164. }
  8165. .chapter_add_r span {
  8166. font-size: 12px;
  8167. color: rgb(204, 204, 204);
  8168. }
  8169. .chapter_add_input {
  8170. display: none;
  8171. }
  8172. .line {
  8173. width: 85%;
  8174. margin: 0 auto;
  8175. border-top: 1px solid #e5e5e5;
  8176. margin-top: 20px;
  8177. }
  8178. .info_btnBox {
  8179. width: calc(100%);
  8180. display: flex;
  8181. justify-content: center;
  8182. height: 70px;
  8183. align-items: center;
  8184. background: #fff;
  8185. margin: 0 auto;
  8186. border-top: 2px solid rgb(228, 232, 237);
  8187. box-sizing: border-box;
  8188. border-radius: 0px 0 5px 5px;
  8189. }
  8190. .info_btnBox2 {
  8191. width: calc(100%);
  8192. display: flex;
  8193. justify-content: center;
  8194. height: 20px;
  8195. align-items: center;
  8196. background: #fff;
  8197. margin: 0 auto;
  8198. border-top: 2px solid rgb(228, 232, 237);
  8199. box-sizing: border-box;
  8200. overflow: hidden;
  8201. cursor: pointer;
  8202. }
  8203. .info_btnBox3 {
  8204. width: calc(100%);
  8205. display: flex;
  8206. justify-content: flex-end;
  8207. padding: 0 20px;
  8208. height: 60px;
  8209. align-items: center;
  8210. background: unset;
  8211. margin: 10px auto 0;
  8212. /* border-top: 1px solid rgb(228, 232, 237); */
  8213. box-sizing: border-box;
  8214. overflow: hidden;
  8215. cursor: pointer;
  8216. background: #fff;
  8217. border-radius: 10px;
  8218. }
  8219. .info_btn+.info_btn {
  8220. margin-left: 15px;
  8221. }
  8222. .info_btn,
  8223. .teacherWord {
  8224. color: #fff;
  8225. background-color: #0f7eff;
  8226. padding: 8px 24px;
  8227. font-size: 0.9375rem;
  8228. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  8229. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  8230. min-width: 64px;
  8231. font-weight: 500;
  8232. border-radius: 4px;
  8233. box-sizing: border-box;
  8234. border: none;
  8235. cursor: pointer;
  8236. }
  8237. .teacherWord {
  8238. width: 105px !important;
  8239. text-align: center !important;
  8240. line-height: 36px !important;
  8241. padding: 0 !important;
  8242. font-size: 14px !important;
  8243. margin: 10px 0 !important;
  8244. }
  8245. .wordTeacher {
  8246. display: flex;
  8247. flex-direction: column;
  8248. width: 20%;
  8249. text-align: center;
  8250. font-size: 14px;
  8251. margin: 30px 30px 0 10px;
  8252. background: #fff;
  8253. position: relative;
  8254. border-radius: 5px;
  8255. padding: 25px 0px;
  8256. }
  8257. .wordPic {
  8258. margin: 0 auto;
  8259. width: 60px;
  8260. height: 60px;
  8261. cursor: pointer;
  8262. }
  8263. .deleteWord {
  8264. width: 22px;
  8265. height: 22px;
  8266. position: absolute;
  8267. right: 5px;
  8268. top: -15px;
  8269. cursor: pointer;
  8270. display: none;
  8271. z-index: 999;
  8272. }
  8273. .wordPic>img,
  8274. .deleteWord>img,
  8275. .addToolImg>img {
  8276. width: 100%;
  8277. height: 100%;
  8278. }
  8279. .info_btn:hover {
  8280. background-color: #4f7cd5 !important;
  8281. }
  8282. .cru_selectBox {
  8283. display: flex;
  8284. margin: 24px 0 10px;
  8285. flex-wrap: nowrap;
  8286. white-space: nowrap;
  8287. overflow: auto;
  8288. position: relative;
  8289. height: 47px;
  8290. }
  8291. .cru_selectBox::-webkit-scrollbar {
  8292. /*滚动条整体样式*/
  8293. width: 6px;
  8294. /*高宽分别对应横竖滚动条的尺寸*/
  8295. height: 6px;
  8296. }
  8297. /*定义滚动条轨道 内阴影+圆角*/
  8298. .cru_selectBox::-webkit-scrollbar-track {
  8299. border-radius: 10px;
  8300. background-color: #eee;
  8301. }
  8302. /*定义滑块 内阴影+圆角*/
  8303. .cru_selectBox::-webkit-scrollbar-thumb {
  8304. border-radius: 10px;
  8305. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  8306. background-color: rgba(0, 0, 0, 0.1);
  8307. }
  8308. .cru_line {
  8309. position: absolute;
  8310. bottom: 0px;
  8311. transition: all 0.5s;
  8312. left: 0px;
  8313. width: 125px;
  8314. margin-left: -25px;
  8315. }
  8316. .cru_select {
  8317. font-size: 21px;
  8318. margin-right: 37px;
  8319. margin-left: 5px;
  8320. cursor: pointer;
  8321. color: #a6a6a6;
  8322. }
  8323. .cru_selected {
  8324. color: #0b7fc2 !important;
  8325. }
  8326. .chapter_contentbox {
  8327. display: flex;
  8328. align-items: center;
  8329. margin-top: 15px;
  8330. }
  8331. .chapter_contentbox .cc_title {
  8332. margin: 0px;
  8333. color: black;
  8334. display: block;
  8335. white-space: nowrap;
  8336. overflow: hidden;
  8337. text-overflow: ellipsis;
  8338. margin-right: 20px;
  8339. font-size: 18px;
  8340. height: 20px;
  8341. line-height: 22px;
  8342. min-width: fit-content;
  8343. display: flex;
  8344. }
  8345. .chapter_contentbox .cc_title::before {
  8346. content: '';
  8347. height: 100%;
  8348. width: 3px;
  8349. background: #3681FC;
  8350. border-radius: 3px;
  8351. opacity: 1;
  8352. display: block;
  8353. margin-right: 10px;
  8354. }
  8355. .chapter_contentbox .cc_input {
  8356. width: 100%;
  8357. display: flex;
  8358. }
  8359. .show_taskD {
  8360. min-width: fit-content;
  8361. margin-left: 10px;
  8362. display: flex;
  8363. align-items: center;
  8364. font-size: 14px;
  8365. cursor: pointer;
  8366. color: #717C8D;
  8367. }
  8368. .show_taskD>img {
  8369. width: 15px;
  8370. margin-right: 5px;
  8371. transition: .2s all;
  8372. transform: rotate(-90deg);
  8373. }
  8374. .show_taskD.show>img {
  8375. transform: rotate(0deg);
  8376. }
  8377. .show_toolD {
  8378. min-width: fit-content;
  8379. margin-left: 10px;
  8380. display: flex;
  8381. align-items: center;
  8382. font-size: 14px;
  8383. cursor: pointer;
  8384. color: #717C8D;
  8385. position: absolute;
  8386. right: 45px;
  8387. top: 5px;
  8388. }
  8389. .show_toolD>img {
  8390. width: 15px;
  8391. margin-right: 5px;
  8392. transition: .2s all;
  8393. transform: rotate(-90deg);
  8394. }
  8395. .show_toolD.show>img {
  8396. transform: rotate(0deg);
  8397. }
  8398. .remove {
  8399. background-image: url("../../../assets/icon/new/delete_u.png");
  8400. cursor: pointer;
  8401. opacity: 0.5;
  8402. width: 30px;
  8403. min-width: 30px;
  8404. height: 30px;
  8405. background-size: 100% 100%;
  8406. background-repeat: no-repeat;
  8407. margin-left: 10px;
  8408. }
  8409. .remove1 {
  8410. background-image: url("../../../assets/remove1.png");
  8411. background-repeat: no-repeat;
  8412. background-position: 5px 10px;
  8413. width: 40px;
  8414. height: 50px;
  8415. cursor: pointer;
  8416. margin-left: 10px;
  8417. }
  8418. .binfo_input {
  8419. width: 100%;
  8420. margin: 0;
  8421. padding: 12px 14px;
  8422. display: block;
  8423. min-width: 0;
  8424. outline: none;
  8425. box-sizing: border-box;
  8426. background: none;
  8427. border: none;
  8428. border-radius: 4px;
  8429. background: #fff;
  8430. font-size: 16px;
  8431. resize: none;
  8432. font-family: 'Microsoft YaHei';
  8433. min-height: 48px;
  8434. border: 1.5px solid #CAD1DC;
  8435. }
  8436. .binfo_textarea {
  8437. border: 1.5px solid #CAD1DC;
  8438. font-size: 16px;
  8439. resize: none;
  8440. background: #f6f6f6;
  8441. font-family: 'Microsoft YaHei';
  8442. }
  8443. .binfo_input:focus-visible {
  8444. border: 1.5px solid #3681FC !important;
  8445. }
  8446. .time {
  8447. display: flex;
  8448. margin: 35px 0 80px 0;
  8449. }
  8450. .chapter_btnbox {
  8451. width: 160px;
  8452. border-radius: 5px;
  8453. border: 2px dashed gray;
  8454. display: flex;
  8455. padding: 8px 50px;
  8456. align-items: center;
  8457. justify-content: center;
  8458. margin: 30px auto 0;
  8459. cursor: pointer;
  8460. }
  8461. .icon_add {
  8462. position: relative;
  8463. width: 24px;
  8464. padding-top: 20px;
  8465. border-radius: 100%;
  8466. border-width: 2px;
  8467. border-style: solid;
  8468. border-color: gray;
  8469. }
  8470. .icon_add i:nth-child(1) {
  8471. position: absolute;
  8472. left: 50%;
  8473. top: 50%;
  8474. height: 60%;
  8475. transform: translate(-50%, -50%);
  8476. border-width: 1px;
  8477. border-style: solid;
  8478. border-color: inherit;
  8479. }
  8480. .icon_add i:nth-child(2) {
  8481. position: absolute;
  8482. top: 50%;
  8483. left: 50%;
  8484. width: 60%;
  8485. transform: translate(-50%, -50%);
  8486. border-width: 1px;
  8487. border-style: solid;
  8488. border-color: inherit;
  8489. }
  8490. .chapter_btn_w {
  8491. font-size: 0.9375rem;
  8492. font-weight: bold;
  8493. color: gray;
  8494. margin-left: 20px;
  8495. }
  8496. .disUoloadSty>>>.el-icon-plus {
  8497. display: none !important;
  8498. /* 上传按钮隐藏 */
  8499. }
  8500. .imgLeft {
  8501. margin: 15px 0;
  8502. }
  8503. .add_info_box {
  8504. margin: 20px 0 0;
  8505. display: flex;
  8506. flex-wrap: wrap;
  8507. }
  8508. .add_info_box button {
  8509. margin: 0 20px 10px 0;
  8510. }
  8511. .add_info_box2 {
  8512. display: flex;
  8513. align-items: center;
  8514. flex-wrap: wrap;
  8515. }
  8516. .add_info_box2::after {
  8517. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  8518. color: red;
  8519. font-size: 14px;
  8520. margin-bottom: 10px;
  8521. }
  8522. .add_chapters_box {
  8523. text-align: left;
  8524. background-color: #fff;
  8525. width: 100%;
  8526. border-radius: 4px;
  8527. font-size: 16px;
  8528. box-sizing: border-box;
  8529. position: relative;
  8530. padding: 0 15px;
  8531. height: auto;
  8532. overflow-y: auto;
  8533. overflow-x: hidden;
  8534. border: 1px solid #CAD1DC;
  8535. }
  8536. .add_chapters_box.add_c_none {
  8537. display: flex;
  8538. justify-content: center;
  8539. align-items: center;
  8540. padding: 15px;
  8541. }
  8542. .add_c_none>img {
  8543. width: 25px;
  8544. }
  8545. .add_chapters_box.add_c_none>span {
  8546. font-size: 14px;
  8547. font-weight: 400;
  8548. margin: 0 0 5px 5px;
  8549. }
  8550. .homework_box {
  8551. display: flex;
  8552. align-items: flex-start;
  8553. flex-wrap: wrap;
  8554. margin: 15px 0 0 0;
  8555. flex-direction: column;
  8556. align-content: flex-start;
  8557. }
  8558. .course_homework {
  8559. display: flex;
  8560. justify-content: center;
  8561. flex-direction: row;
  8562. align-items: center;
  8563. margin: 0 10px 0 0;
  8564. }
  8565. .course_homework>>>.el-input__inner {
  8566. width: 140px;
  8567. margin-left: 15px;
  8568. }
  8569. .chapter_upload_move {
  8570. position: relative;
  8571. background-color: #fff;
  8572. position: absolute;
  8573. width: 100%;
  8574. top: 0px;
  8575. left: 0px;
  8576. border: 1px solid #eee;
  8577. border-radius: 5px;
  8578. transition: width 2s;
  8579. -moz-transition: width 2s;
  8580. -webkit-transition: width 2s;
  8581. -o-transition: width 2s;
  8582. }
  8583. .chapter_upload_l_i {
  8584. background-image: url("../../../assets/icon.png");
  8585. background-position: 3px -165px;
  8586. width: 30px;
  8587. height: 30px;
  8588. margin: 10px auto 0 auto;
  8589. }
  8590. .course_input_box {
  8591. display: flex;
  8592. margin-right: 20px;
  8593. width: 100%;
  8594. align-items: center;
  8595. position: relative;
  8596. }
  8597. .course_input_box>.binfo_input {
  8598. width: calc(100% - 0 - 200px - 20px);
  8599. margin: 0 10px;
  8600. }
  8601. .bb_courseIcon {
  8602. width: 57px;
  8603. height: 45px;
  8604. background: #F0F4FA;
  8605. border-radius: 5px 0px 0px 5px;
  8606. display: flex;
  8607. align-items: center;
  8608. justify-content: center;
  8609. border-right: 1.5px solid rgb(202, 209, 220);
  8610. box-sizing: border-box;
  8611. position: absolute;
  8612. left: 1.5px
  8613. }
  8614. .bb_courseIcon>img {
  8615. width: 25px;
  8616. height: auto
  8617. }
  8618. .big_box {
  8619. /* margin-top: 20px; */
  8620. display: flex;
  8621. justify-content: space-between;
  8622. /* border-bottom: 1px solid #E0E2ED; */
  8623. }
  8624. .left_first {
  8625. display: flex;
  8626. flex-direction: column;
  8627. flex-wrap: nowrap;
  8628. width: calc(100% - 310px);
  8629. padding: 20px;
  8630. box-sizing: border-box;
  8631. background: #fff;
  8632. border-radius: 5px;
  8633. }
  8634. .right_first {
  8635. width: 300px;
  8636. display: flex;
  8637. align-items: center;
  8638. justify-content: center;
  8639. /* border-left: 1px solid #E0E2ED; */
  8640. box-sizing: border-box;
  8641. padding: 20px;
  8642. flex-direction: column;
  8643. background: #fff;
  8644. border-radius: 5px;
  8645. }
  8646. .ai_box {
  8647. width: 204px;
  8648. display: flex;
  8649. justify-content: flex-end;
  8650. margin-bottom: 15px;
  8651. }
  8652. .ai_content {
  8653. display: flex;
  8654. align-items: center;
  8655. font-size: 14px;
  8656. padding: 7px 20px;
  8657. box-sizing: border-box;
  8658. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  8659. border-radius: 12px;
  8660. font-weight: 700;
  8661. cursor: pointer;
  8662. }
  8663. .ai_content>img {
  8664. width: 40px;
  8665. margin-right: 5px;
  8666. }
  8667. .c_info_title {
  8668. padding: 15px 0 15px 0;
  8669. font-size: 16px;
  8670. font-weight: bold;
  8671. margin: 0 0 0 20px;
  8672. box-sizing: border-box;
  8673. display: flex;
  8674. align-items: center;
  8675. line-height: 20px;
  8676. }
  8677. .c_info_title::before {
  8678. content: '';
  8679. display: block;
  8680. width: 3px;
  8681. height: 20px;
  8682. background: #0061FF;
  8683. border-radius: 3px;
  8684. margin: 0 5px 0 0;
  8685. }
  8686. .right_title {
  8687. /* height: 30px; */
  8688. padding: 0 20px;
  8689. font-size: 18px;
  8690. font-weight: bold;
  8691. /* color: #0f7eff; */
  8692. margin: 20px auto 0;
  8693. display: flex;
  8694. /* justify-content: space-between; */
  8695. align-items: center;
  8696. }
  8697. .people {
  8698. border: 1px solid rgb(229 229 229);
  8699. border-radius: 5px;
  8700. width: 100%;
  8701. }
  8702. .people_top {
  8703. display: flex;
  8704. width: 100%;
  8705. /* justify-content: space-between; */
  8706. /* align-items: center; */
  8707. flex-direction: column;
  8708. padding: 10px 10px 0;
  8709. box-sizing: border-box;
  8710. }
  8711. .people_nav,
  8712. .people_top_right {
  8713. /* padding: 20px 0 0 20px; */
  8714. }
  8715. .people_top_right {
  8716. height: 40px;
  8717. margin-bottom: 10px;
  8718. }
  8719. .people_search {
  8720. display: flex;
  8721. position: relative;
  8722. }
  8723. .people_search>>>.el-input__inner {
  8724. /* height: 25px; */
  8725. width: 95%;
  8726. }
  8727. .search_img {
  8728. width: 20px;
  8729. height: 20px;
  8730. position: absolute;
  8731. right: 30px;
  8732. top: 50%;
  8733. transform: translateY(-50%);
  8734. }
  8735. .search_img>img {
  8736. width: 100%;
  8737. height: 100%;
  8738. }
  8739. .people_name {
  8740. height: 40vh;
  8741. display: flex;
  8742. justify-content: flex-start;
  8743. padding: 10px 0 0 25px;
  8744. flex-direction: column;
  8745. flex-wrap: nowrap;
  8746. overflow-y: auto;
  8747. overflow-x: hidden;
  8748. flex-direction: column;
  8749. }
  8750. .p_box {
  8751. position: relative;
  8752. }
  8753. .people_name>>>.el-checkbox {
  8754. width: 100%;
  8755. display: flex;
  8756. align-items: center;
  8757. margin-bottom: 10px;
  8758. }
  8759. .people_name>>>.el-checkbox__label {
  8760. text-overflow: ellipsis;
  8761. overflow: hidden;
  8762. width: calc(100%);
  8763. }
  8764. .people_name2>>>.el-checkbox__label {
  8765. width: calc(100% - 130px);
  8766. }
  8767. .inviteCode {
  8768. position: absolute;
  8769. right: 30px;
  8770. color: #237ade;
  8771. top: 0;
  8772. cursor: pointer;
  8773. font-size: 13px;
  8774. }
  8775. .noneInvite {
  8776. color: #a8a8a8;
  8777. }
  8778. .inviteImg {
  8779. position: absolute;
  8780. right: 5px;
  8781. top: 0;
  8782. width: 20px;
  8783. }
  8784. .right_img {
  8785. width: 150px;
  8786. height: 150px;
  8787. margin: 20px auto;
  8788. }
  8789. .right_img>img {
  8790. width: 100%;
  8791. height: 100%;
  8792. }
  8793. .number {
  8794. margin-top: 20px;
  8795. color: #4aa6ff;
  8796. text-decoration: underline;
  8797. }
  8798. .success_button {
  8799. display: flex;
  8800. text-align: center;
  8801. margin: 5% 0 auto;
  8802. flex-direction: row;
  8803. justify-content: center;
  8804. }
  8805. .look_course {
  8806. margin-right: 40px;
  8807. background: #3d67bc;
  8808. width: 200px;
  8809. height: 35px;
  8810. line-height: 35px;
  8811. color: #fff;
  8812. text-align: center;
  8813. font-size: 14px;
  8814. border-radius: 5px;
  8815. cursor: pointer;
  8816. }
  8817. .attend_others {
  8818. width: 250px;
  8819. background: #4fb13c;
  8820. height: 35px;
  8821. line-height: 35px;
  8822. color: #fff;
  8823. text-align: center;
  8824. font-size: 14px;
  8825. border-radius: 5px;
  8826. cursor: pointer;
  8827. }
  8828. .dialog_diy2>>>.el-dialog__body {
  8829. text-align: center;
  8830. }
  8831. .write_togother {
  8832. position: absolute;
  8833. right: 45px;
  8834. display: flex;
  8835. top: 5%;
  8836. }
  8837. .write_people {
  8838. font-size: 14px;
  8839. line-height: 50px;
  8840. padding-right: 10px;
  8841. }
  8842. .end_write {
  8843. background: #3d67bc;
  8844. color: #fff;
  8845. width: 100px;
  8846. height: 35px;
  8847. line-height: 35px;
  8848. text-align: center;
  8849. font-size: 14px;
  8850. border-radius: 5px;
  8851. cursor: pointer;
  8852. }
  8853. .chapter_upload+.chapter_upload {
  8854. /* margin-top: 15px; */
  8855. border-top: 1px solid #E7EBF1;
  8856. }
  8857. .chapter_upload {
  8858. height: 45px;
  8859. position: relative;
  8860. display: flex;
  8861. align-items: center;
  8862. width: 100%;
  8863. min-height: 45px;
  8864. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  8865. /* border-radius: 4px; */
  8866. overflow: hidden;
  8867. box-sizing: border-box;
  8868. }
  8869. .chapter_upload_t {
  8870. background-color: #fff;
  8871. position: absolute;
  8872. height: 100%;
  8873. top: 0px;
  8874. left: 0px;
  8875. box-sizing: border-box;
  8876. }
  8877. .chapter_upload_o {
  8878. width: 100%;
  8879. height: 100%;
  8880. position: relative;
  8881. z-index: 1;
  8882. }
  8883. .chapter_upload_ic {
  8884. margin: 0 15px 0px auto;
  8885. display: flex;
  8886. align-items: center;
  8887. }
  8888. .chapter_upload_ic_l {
  8889. width: 50px;
  8890. height: 50px;
  8891. float: left;
  8892. }
  8893. .chapter_upload_ic_l div {
  8894. width: 30px;
  8895. height: 35px;
  8896. background: url("../../../assets/icon/icon.png");
  8897. }
  8898. .chapter_upload_ic_edit {
  8899. height: 100%;
  8900. display: flex;
  8901. align-items: center;
  8902. cursor: pointer;
  8903. margin: 0 10px 0 0;
  8904. }
  8905. .chapter_upload_ic_edit div {
  8906. width: 18px;
  8907. height: 18px;
  8908. background-image: url("../../../assets/icon/new/edit_u.png");
  8909. background-size: 100% 100%;
  8910. }
  8911. .chapter_upload_ic_r {
  8912. height: 100%;
  8913. display: flex;
  8914. align-items: center;
  8915. cursor: pointer;
  8916. }
  8917. .chapter_upload_ic_r div {
  8918. width: 18px;
  8919. height: 18px;
  8920. background-image: url("../../../assets/icon/new/delete_u.png");
  8921. background-size: 100% 100%;
  8922. }
  8923. .chapter_upload_n {
  8924. display: flex;
  8925. text-indent: 10px;
  8926. text-decoration: none;
  8927. text-overflow: ellipsis;
  8928. white-space: nowrap;
  8929. overflow: hidden;
  8930. width: 55%;
  8931. margin-left: 10px;
  8932. cursor: pointer;
  8933. margin-top: 2px;
  8934. align-items: center;
  8935. }
  8936. .chapter_upload_l_i2,
  8937. .chapter_upload_l_i3,
  8938. .chapter_upload_l_i8,
  8939. .chapter_upload_l_i6,
  8940. .chapter_upload_l_i12,
  8941. .chapter_upload_l_i14,
  8942. .chapter_upload_l_i13 {
  8943. width: 15px;
  8944. height: 15px;
  8945. background-size: 100% 100%;
  8946. }
  8947. .chapter_upload_l_i2 {
  8948. background-image: url("../../../assets/icon/new/u_word.png");
  8949. }
  8950. .chapter_upload_l_i3 {
  8951. background-image: url("../../../assets/icon/new/u_video.png");
  8952. }
  8953. .chapter_upload_l_i8 {
  8954. background-image: url("../../../assets/icon/new/u_url.png");
  8955. }
  8956. .chapter_upload_l_i14 {
  8957. background-image: url("../../../assets/icon/new/u_source.png");
  8958. }
  8959. .chapter_upload_l_i6 {
  8960. background-image: url("../../../assets/icon/new/u_picture.png");
  8961. }
  8962. .chapter_upload_l_i12 {
  8963. background-image: url("../../../assets/icon/new/u_word.png");
  8964. }
  8965. .chapter_upload_l_i13 {
  8966. background-image: url("../../../assets/icon/new/u_img.png");
  8967. }
  8968. .chapter_upload_noSee {
  8969. background-image: url("../../../assets/icon/new/u_noUpload.png");
  8970. width: 18px;
  8971. height: 18px;
  8972. background-size: 100% 100%;
  8973. display: block;
  8974. margin-right: 10px;
  8975. }
  8976. .chapter_upload_ud {
  8977. display: flex;
  8978. flex-direction: row;
  8979. justify-content: center;
  8980. margin: 0 10px 0 0;
  8981. }
  8982. .chapter_upload_ud>.chapter_upload_up {
  8983. margin-bottom: 0;
  8984. margin-right: 10px;
  8985. }
  8986. .chapter_upload_down,
  8987. .chapter_upload_up {
  8988. width: 20px;
  8989. height: 20px;
  8990. background: #e4eaf2;
  8991. cursor: pointer;
  8992. margin: 0 auto;
  8993. border-radius: 5px;
  8994. display: flex;
  8995. justify-content: center;
  8996. align-items: center;
  8997. }
  8998. .chapter_upload_up::after,
  8999. .chapter_upload_down::after {
  9000. content: '';
  9001. background-image: url('../../../assets/icon/new/downBtn.png');
  9002. width: 13px;
  9003. height: 13px;
  9004. background-size: 100% 100%;
  9005. display: block;
  9006. }
  9007. .chapter_upload_up::after {
  9008. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  9009. }
  9010. .chapter_upload_up {
  9011. margin-bottom: 5px;
  9012. }
  9013. .addWordStyle {
  9014. display: flex;
  9015. flex-direction: row;
  9016. justify-content: flex-start;
  9017. overflow-x: auto;
  9018. white-space: nowrap;
  9019. flex-wrap: wrap;
  9020. }
  9021. /* table 样式 */
  9022. .cont>>>table {
  9023. border-top: 1px solid #ccc;
  9024. border-left: 1px solid #ccc;
  9025. }
  9026. .cont>>>table td,
  9027. .cont>>>table th {
  9028. border-bottom: 1px solid #ccc;
  9029. border-right: 1px solid #ccc;
  9030. /* padding: 20px 5px; */
  9031. padding: 5px 10px;
  9032. max-width: 0px;
  9033. height: 30px;
  9034. vertical-align: baseline;
  9035. }
  9036. .cont>>>table th {
  9037. border-bottom: 2px solid #ccc;
  9038. text-align: center;
  9039. }
  9040. /* blockquote 样式 */
  9041. .cont>>>blockquote {
  9042. display: block;
  9043. border-left: 8px solid #d0e5f2;
  9044. padding: 5px 10px;
  9045. margin: 10px 0;
  9046. line-height: 1.4;
  9047. font-size: 100%;
  9048. background-color: #f1f1f1;
  9049. }
  9050. /* code 样式 */
  9051. .cont>>>code {
  9052. display: inline-block;
  9053. /* *display: inline; */
  9054. zoom: 1;
  9055. background-color: #f1f1f1;
  9056. border-radius: 3px;
  9057. padding: 3px 5px;
  9058. margin: 0 3px;
  9059. }
  9060. .cont>>>pre code {
  9061. display: block;
  9062. }
  9063. /* ul ol 样式 */
  9064. .cont>>>ul,
  9065. ol {
  9066. margin: 10px 0 10px 20px;
  9067. }
  9068. .wordbox {
  9069. display: flex;
  9070. flex-wrap: wrap;
  9071. cursor: pointer;
  9072. width: 100%;
  9073. }
  9074. .checkword {
  9075. width: 22px;
  9076. height: 22px;
  9077. margin: 10px auto 0;
  9078. cursor: pointer;
  9079. }
  9080. .checkword img {
  9081. width: 100%;
  9082. }
  9083. .stepBg {
  9084. display: flex;
  9085. flex-direction: column;
  9086. justify-content: space-between;
  9087. align-items: center;
  9088. background: #fff;
  9089. width: 300px;
  9090. margin: 0 25px 0 0;
  9091. }
  9092. .stepTop {
  9093. min-width: 300px;
  9094. width: 300px;
  9095. /* border-radius: 10px; */
  9096. display: flex;
  9097. flex-direction: column;
  9098. justify-content: flex-start;
  9099. align-items: center;
  9100. flex-wrap: nowrap;
  9101. background: #fff;
  9102. /* top: 18%; */
  9103. }
  9104. .stepTop>div {
  9105. height: 80px;
  9106. width: 85%;
  9107. cursor: pointer;
  9108. margin: 10px 0;
  9109. border-radius: 10px;
  9110. }
  9111. .first,
  9112. .second,
  9113. .third,
  9114. .four {
  9115. background: #4a83d0;
  9116. height: 90px;
  9117. color: #fff;
  9118. display: flex;
  9119. flex-direction: row;
  9120. align-items: center;
  9121. justify-content: center;
  9122. }
  9123. .first>div:nth-child(1),
  9124. .second>div:nth-child(1),
  9125. .third>div:nth-child(1),
  9126. .four>div:nth-child(1) {
  9127. margin: 5px 10px 0 0;
  9128. width: 2rem;
  9129. }
  9130. .firstNo,
  9131. .secondNo,
  9132. .thirdNo,
  9133. .fourNo {
  9134. background: #e7e7e7;
  9135. color: #adadad;
  9136. display: flex;
  9137. flex-direction: row;
  9138. align-items: center;
  9139. justify-content: center;
  9140. }
  9141. .firstNo>div:nth-child(1),
  9142. .secondNo>div:nth-child(1),
  9143. .thirdNo>div:nth-child(1),
  9144. .fourNo>div:nth-child(1) {
  9145. margin: 5px 10px 0 0;
  9146. width: 2rem;
  9147. }
  9148. .uploadWidth>>>.el-upload {
  9149. width: 60px;
  9150. height: 60px;
  9151. position: relative;
  9152. }
  9153. .addPeople {
  9154. background: #fa6060;
  9155. width: 150px;
  9156. height: 40px;
  9157. color: #fff;
  9158. border-radius: 5px;
  9159. text-align: center;
  9160. line-height: 40px;
  9161. font-size: 14px;
  9162. cursor: pointer;
  9163. }
  9164. .kcImg {
  9165. width: 60px;
  9166. margin-left: 10px;
  9167. }
  9168. .zyImg {
  9169. width: 55px;
  9170. margin: 0 10px;
  9171. }
  9172. .deleteZy {
  9173. width: 20px;
  9174. position: absolute;
  9175. top: 5px;
  9176. right: 5px;
  9177. cursor: pointer;
  9178. }
  9179. .kcImg>img,
  9180. .zyImg>img,
  9181. .deleteZy>img {
  9182. width: 100%;
  9183. height: 100%;
  9184. }
  9185. .zyBox {
  9186. display: flex;
  9187. flex-direction: row;
  9188. align-items: center;
  9189. background: #67d37d;
  9190. color: #fff;
  9191. width: 210px;
  9192. margin: 20px 20px 0 0;
  9193. border-radius: 10px;
  9194. height: 70px;
  9195. position: relative;
  9196. }
  9197. .upCss {
  9198. display: flex;
  9199. flex-direction: row;
  9200. justify-content: flex-start;
  9201. }
  9202. .upCss>>>.el-icon-plus {
  9203. position: none !important;
  9204. width: 200px;
  9205. height: 100px;
  9206. display: flex;
  9207. flex-wrap: nowrap;
  9208. flex-direction: column;
  9209. align-items: center;
  9210. justify-content: center;
  9211. border: 1px dashed #ccc;
  9212. min-width: 78px;
  9213. min-height: 100px;
  9214. z-index: 999;
  9215. }
  9216. .upCss>>>.el-upload-list__item-name {
  9217. width: 100px;
  9218. white-space: nowrap;
  9219. overflow: hidden;
  9220. text-overflow: ellipsis;
  9221. }
  9222. .upCss>>>.el-upload-list__item .el-icon-close {
  9223. font-size: 20px;
  9224. z-index: 9999;
  9225. }
  9226. .addStageImg {
  9227. min-width: 25px;
  9228. min-height: 25px;
  9229. width: 25px;
  9230. height: 25px;
  9231. cursor: pointer;
  9232. }
  9233. .addHW {
  9234. width: 28px;
  9235. height: 28px;
  9236. cursor: pointer;
  9237. }
  9238. .addStageImg>img,
  9239. .addHW>img {
  9240. width: 100%;
  9241. height: 100%;
  9242. }
  9243. .addNewPP>>>.el-dialog__body {
  9244. padding: 5px 20px;
  9245. }
  9246. .addNewPP>>>.el-dialog {
  9247. margin-top: 5vh !important;
  9248. }
  9249. .addNewPP2>>>.el-dialog__body {
  9250. padding: 5px 0;
  9251. }
  9252. .addNewPP2>>>.el-dialog {
  9253. margin-top: 5vh !important;
  9254. }
  9255. .isHeight {
  9256. height: 680px;
  9257. }
  9258. .toolChoose {
  9259. display: flex;
  9260. /* width: 100%; */
  9261. flex-direction: row;
  9262. flex-wrap: wrap;
  9263. }
  9264. .tool {
  9265. display: flex;
  9266. flex-direction: column;
  9267. flex-wrap: nowrap;
  9268. width: fit-content;
  9269. margin: 10px 0 10px 0;
  9270. align-items: center;
  9271. }
  9272. .tool+.tool {
  9273. margin-right: 45px;
  9274. }
  9275. .whiteBIcon {
  9276. width: 80px;
  9277. cursor: pointer;
  9278. display: flex;
  9279. flex-direction: column;
  9280. flex-wrap: nowrap;
  9281. align-items: center;
  9282. font-size: 14px;
  9283. }
  9284. .whiteBIcon>img,
  9285. .toolIcon>img,
  9286. .arrow>img {
  9287. width: 100%;
  9288. height: 100%;
  9289. }
  9290. .check img {
  9291. width: 20px;
  9292. height: 20px;
  9293. }
  9294. .whiteBIcon>img {
  9295. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  9296. border-radius: 15px;
  9297. }
  9298. .whiteBIcon>div:nth-child(2) {
  9299. height: 20px;
  9300. line-height: 20px;
  9301. }
  9302. .check {
  9303. /* width: 20px;
  9304. height: 20px; */
  9305. cursor: pointer;
  9306. margin: 10px 0 0;
  9307. }
  9308. .checkDiv {
  9309. display: flex;
  9310. align-items: center;
  9311. }
  9312. .checkDiv span {
  9313. margin-left: 5px;
  9314. color: #858585;
  9315. }
  9316. .customWidth>>>.el-dialog {
  9317. min-width: 500px !important;
  9318. }
  9319. .a_addBox {
  9320. margin: 10px 0;
  9321. background: #fff;
  9322. padding: 15px;
  9323. /* max-height: 600px; */
  9324. overflow: auto;
  9325. }
  9326. .a_add_box {
  9327. border-bottom: 2px solid #eee;
  9328. padding-bottom: 25px;
  9329. }
  9330. .a_add_head {
  9331. display: flex;
  9332. align-items: center;
  9333. justify-content: space-between;
  9334. margin: 10px 0 0 0;
  9335. font-size: 18px;
  9336. }
  9337. .a_add_checkType {
  9338. margin-top: 10px;
  9339. display: flex;
  9340. font-size: 14px;
  9341. align-items: center;
  9342. }
  9343. .a_add_checkType span {
  9344. box-sizing: border-box;
  9345. padding: 0 0 5px 0;
  9346. cursor: pointer;
  9347. }
  9348. .a_add_checkType span+span {
  9349. margin-left: 10px;
  9350. }
  9351. .a_add_checkType .active {
  9352. border-bottom: 2px solid #409eff;
  9353. color: #409eff;
  9354. }
  9355. .a_add_head .a_add_head_input {
  9356. width: 100%;
  9357. }
  9358. .a_add_head .a_add_head_div {
  9359. display: flex;
  9360. align-items: center;
  9361. justify-content: space-between;
  9362. }
  9363. .a_add_body {
  9364. display: flex;
  9365. /* align-items: center; */
  9366. align-items: flex-end;
  9367. }
  9368. .a_add_input {
  9369. display: flex;
  9370. align-items: center;
  9371. flex-wrap: wrap;
  9372. }
  9373. .a_add_input_choice {
  9374. flex-direction: column;
  9375. margin-right: 10px;
  9376. }
  9377. .a_add_input_choice>>>.el-radio {
  9378. display: flex;
  9379. align-items: center;
  9380. flex-direction: row-reverse;
  9381. margin: 30px 0 0 0;
  9382. position: relative;
  9383. }
  9384. .a_add_input_choice>>>.el-checkbox {
  9385. display: flex;
  9386. align-items: center;
  9387. flex-direction: row-reverse;
  9388. margin: 30px 0 0 0;
  9389. position: relative;
  9390. }
  9391. .width100 {
  9392. width: 100%;
  9393. }
  9394. .a_add_input .a_add_persent {
  9395. width: 100%;
  9396. }
  9397. .a_add_persent_div {
  9398. width: 100%;
  9399. display: flex;
  9400. align-items: center;
  9401. }
  9402. .a_add_persent_div span {
  9403. margin: 5px 0;
  9404. }
  9405. .a_add_persent_div span:nth-child(1) {
  9406. width: 30%;
  9407. }
  9408. .a_add_persent_div span:nth-child(2) {
  9409. width: 7%;
  9410. }
  9411. .a_add_persent_div span:nth-child(3) {
  9412. width: 40%;
  9413. }
  9414. .a_add_body_div {
  9415. display: flex;
  9416. align-items: center;
  9417. justify-content: center;
  9418. /* flex-direction: column; */
  9419. position: absolute;
  9420. right: -20px;
  9421. transform: translateX(100%);
  9422. }
  9423. .a_add_body_div>>>.el-button--primary {
  9424. background: #466b99;
  9425. border: none;
  9426. }
  9427. .all_choose {
  9428. display: flex;
  9429. flex-direction: row;
  9430. align-items: flex-start;
  9431. width: 100%;
  9432. }
  9433. .all_choose>span {
  9434. min-width: fit-content;
  9435. display: block;
  9436. white-space: nowrap;
  9437. overflow: hidden;
  9438. text-overflow: ellipsis;
  9439. margin-right: 20px;
  9440. font-weight: bold;
  9441. font-size: 14px;
  9442. }
  9443. .all_choose>>>.el-checkbox-group {
  9444. display: flex;
  9445. flex-direction: row;
  9446. width: 100%;
  9447. flex-wrap: wrap;
  9448. align-content: center;
  9449. justify-content: flex-start;
  9450. align-items: center;
  9451. margin-top: 3px;
  9452. }
  9453. .all_choose>.el-checkbox-group>>>.el-checkbox {
  9454. margin-bottom: 10px;
  9455. display: flex;
  9456. flex-direction: row;
  9457. align-items: center;
  9458. margin-right: 10px;
  9459. }
  9460. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  9461. min-width: 80px;
  9462. overflow: hidden;
  9463. width: 80px;
  9464. text-overflow: ellipsis;
  9465. white-space: nowrap;
  9466. }
  9467. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  9468. width: auto;
  9469. }
  9470. .choose>div:nth-child(3)>span {
  9471. /* letter-spacing: 0 !important; */
  9472. }
  9473. .choose {
  9474. display: flex;
  9475. flex-direction: column;
  9476. flex-wrap: nowrap;
  9477. height: 100%;
  9478. justify-content: space-evenly;
  9479. align-items: flex-start;
  9480. }
  9481. .both {
  9482. display: flex;
  9483. flex-direction: row;
  9484. flex-wrap: wrap;
  9485. width: 100%;
  9486. align-items: center;
  9487. justify-content: flex-start;
  9488. margin: 15px 0;
  9489. }
  9490. .notice>>>.el-dialog {
  9491. width: 500px !important;
  9492. text-align: center;
  9493. }
  9494. .notice>>>.el-button {
  9495. margin-top: 20px;
  9496. }
  9497. .whiteBg {
  9498. background: #fff;
  9499. border-radius: 10px;
  9500. }
  9501. .wb_j_box {
  9502. display: flex;
  9503. width: 100%;
  9504. padding: 10px 20px;
  9505. box-sizing: border-box;
  9506. }
  9507. .wb_j_box_content {
  9508. width: calc(100% - 55% - 100px);
  9509. display: flex;
  9510. align-items: center;
  9511. }
  9512. .wb_j_box_p_box {
  9513. max-width: calc(100% - 200px);
  9514. word-break: break-all;
  9515. overflow: hidden;
  9516. margin: 0 0 0 10px;
  9517. font-size: 14px;
  9518. color: #6e6e6e;
  9519. }
  9520. .chooseWho {
  9521. display: flex;
  9522. width: 410px;
  9523. flex-direction: row;
  9524. flex-wrap: nowrap;
  9525. justify-content: space-between;
  9526. padding-bottom: 10px;
  9527. }
  9528. .chooseWho>div {
  9529. cursor: pointer;
  9530. padding-bottom: 10px;
  9531. font-weight: bold;
  9532. }
  9533. .isChooseActive {
  9534. color: #3e88f4;
  9535. border-bottom: 2px solid #2f80f3;
  9536. }
  9537. .toolSort {
  9538. display: flex;
  9539. flex-direction: row;
  9540. flex-wrap: wrap;
  9541. justify-content: flex-start;
  9542. align-items: flex-start;
  9543. }
  9544. .toolSort>div {
  9545. margin-right: 45px;
  9546. }
  9547. .tools {
  9548. width: 100%;
  9549. display: flex;
  9550. flex-direction: column;
  9551. flex-wrap: nowrap;
  9552. align-items: flex-start;
  9553. }
  9554. .leftTools,
  9555. .rightTools {
  9556. width: 50%;
  9557. }
  9558. .leftTools+.leftTools {
  9559. border-top: 1px solid #dbdbdb;
  9560. padding-top: 30px;
  9561. }
  9562. .rightTools {
  9563. display: flex;
  9564. flex-direction: row;
  9565. flex-wrap: nowrap;
  9566. justify-content: space-around;
  9567. }
  9568. .firstToolList {
  9569. display: flex;
  9570. flex-direction: column;
  9571. flex-wrap: nowrap;
  9572. align-items: center;
  9573. }
  9574. .iconList {
  9575. display: flex;
  9576. flex-direction: row;
  9577. flex-wrap: wrap;
  9578. justify-content: flex-start;
  9579. align-items: center;
  9580. margin: 20px 0 5px 0;
  9581. width: 240px;
  9582. min-width: 240px;
  9583. }
  9584. .iconTool {
  9585. display: flex;
  9586. flex-direction: column;
  9587. flex-wrap: nowrap;
  9588. align-items: center;
  9589. justify-content: flex-start;
  9590. margin: 15px 10px;
  9591. }
  9592. .toolIcon {
  9593. width: 50px;
  9594. }
  9595. .taskBorder {
  9596. /*border: 1px solid #e1e1e1; */
  9597. border-radius: 8px;
  9598. margin-top: 10px;
  9599. /* min-height: 1160px; */
  9600. position: relative;
  9601. background: #fff;
  9602. padding: 20px 20px 0;
  9603. overflow: hidden;
  9604. box-sizing: border-box;
  9605. }
  9606. .smallTaskBorder {
  9607. height: 170px;
  9608. min-height: 170px !important;
  9609. overflow: hidden;
  9610. }
  9611. .taskBorder>div {
  9612. /* padding: 30px 0 10px 30px; */
  9613. }
  9614. .addTaskBorder {
  9615. /* border: 2px solid #5E9AFC; */
  9616. border-radius: 8px;
  9617. margin-top: 10px;
  9618. cursor: pointer;
  9619. /* height: 50px;
  9620. line-height: 50px; */
  9621. background: #fff;
  9622. padding: 15px 0;
  9623. display: flex;
  9624. align-items: center;
  9625. justify-content: center;
  9626. }
  9627. /* .addTaskBorder>div {
  9628. margin: 0 auto;
  9629. display: flex;
  9630. align-items: center;
  9631. justify-content: center;
  9632. }
  9633. .addTaskBorder>div>img {
  9634. width: 20px;
  9635. }
  9636. .addTaskBorder>div>span {
  9637. font-size: 16px;
  9638. margin-left: 10px;
  9639. color: #5E9AFC;
  9640. } */
  9641. .funBlock {
  9642. display: flex;
  9643. padding: 15px 0;
  9644. flex-direction: row;
  9645. justify-content: flex-end;
  9646. align-items: center;
  9647. position: absolute;
  9648. right: 15px;
  9649. bottom: 35px;
  9650. }
  9651. .fold {
  9652. display: flex;
  9653. margin: 0 10px;
  9654. flex-direction: row;
  9655. align-items: center;
  9656. cursor: pointer;
  9657. }
  9658. .arrow {
  9659. width: 15px;
  9660. height: 15px;
  9661. margin-left: 10px;
  9662. }
  9663. .addToolFun {
  9664. display: flex;
  9665. width: 150px;
  9666. flex-direction: row;
  9667. align-items: center;
  9668. justify-content: center;
  9669. border: 1px dashed;
  9670. border-radius: 5px;
  9671. height: 50px;
  9672. margin: 20px auto 35px;
  9673. cursor: pointer;
  9674. }
  9675. .addToolFun2 {
  9676. display: flex;
  9677. width: 150px;
  9678. border: 2px dashed #CAD1DC;
  9679. flex-direction: row;
  9680. align-items: center;
  9681. justify-content: center;
  9682. border-radius: 5px;
  9683. height: 50px;
  9684. margin: 0 auto 0;
  9685. cursor: pointer;
  9686. }
  9687. .addToolImg {
  9688. width: 20px;
  9689. height: 20px;
  9690. margin-right: 10px;
  9691. }
  9692. .addToolsDia>>>.el-dialog__body {
  9693. padding: 20px;
  9694. }
  9695. .addToolsDia>>>.el-dialog__body>.toolChoose {
  9696. padding: 0;
  9697. }
  9698. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  9699. padding: 0;
  9700. border-bottom: none;
  9701. margin-bottom: 0;
  9702. }
  9703. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  9704. width: 100%;
  9705. }
  9706. .lineCss>>>.el-form-item__label {
  9707. width: auto !important;
  9708. }
  9709. .lineCss>>>.el-form-item__content {
  9710. margin-left: 50px !important;
  9711. }
  9712. .newSteps {
  9713. display: flex;
  9714. width: 100% !important;
  9715. height: 80px;
  9716. cursor: pointer;
  9717. margin: 10px 0;
  9718. border-radius: 10px;
  9719. flex-direction: row;
  9720. align-content: center;
  9721. justify-content: center;
  9722. align-items: center;
  9723. margin: 0 !important;
  9724. }
  9725. /* 评价样式 */
  9726. .elist_css {
  9727. padding-bottom: 60px !important;
  9728. }
  9729. .elist_title {
  9730. margin-bottom: 10px;
  9731. }
  9732. .elist_input {}
  9733. .elist_input_box {
  9734. display: flex;
  9735. align-items: center;
  9736. flex-wrap: wrap;
  9737. }
  9738. .elist_input_box+.elist_input_box {
  9739. margin-top: 30px;
  9740. }
  9741. .elist_input .elist_input_box input {
  9742. font: inherit;
  9743. color: currentColor;
  9744. /* width: 200px; */
  9745. max-width: 200px;
  9746. padding: 8px 14px;
  9747. display: block;
  9748. min-width: 0;
  9749. outline: none;
  9750. border: 1px solid rgba(0, 0, 0, 0.23);
  9751. border-radius: 4px;
  9752. box-sizing: border-box;
  9753. background: #fff;
  9754. margin: 0 5px 0 0;
  9755. }
  9756. .elist_input .elist_input_box span {
  9757. height: 36px;
  9758. line-height: 36px;
  9759. color: rgb(82, 82, 82);
  9760. min-width: 80px;
  9761. }
  9762. .elist_input .elist_input_box .remove {
  9763. height: 20px;
  9764. width: 20px;
  9765. min-width: 20px;
  9766. background-size: 100% 100%;
  9767. background-position: unset;
  9768. margin-left: 5px;
  9769. }
  9770. .elist_input_box>>>.el-rate {
  9771. display: flex;
  9772. height: 36px;
  9773. align-items: center;
  9774. }
  9775. .elist_input_box .elist_inptu_text {
  9776. width: 100%;
  9777. display: flex;
  9778. align-items: center;
  9779. margin-top: 10px;
  9780. }
  9781. .elist_input_box .elist_inptu_text input {
  9782. /* width: 500px; */
  9783. width: 100%;
  9784. max-width: unset;
  9785. }
  9786. .elist_input_box>>>.el-rate__icon {
  9787. font-size: 24px;
  9788. }
  9789. .elist_btn {
  9790. margin-top: 10px;
  9791. }
  9792. .lineTitle {
  9793. /* margin-top: 15px; */
  9794. width: 110px;
  9795. font-size: 16px;
  9796. display: flex;
  9797. align-items: center;
  9798. line-height: 20px;
  9799. }
  9800. .lineTitle::before {
  9801. content: '';
  9802. display: block;
  9803. width: 3px;
  9804. height: 20px;
  9805. background: #0061FF;
  9806. border-radius: 3px;
  9807. margin: 0 5px 0 0;
  9808. }
  9809. .courseTop {
  9810. display: flex;
  9811. flex-direction: row;
  9812. justify-content: space-between;
  9813. align-items: center;
  9814. width: calc(100%);
  9815. padding: 10px 0;
  9816. margin: 0 auto;
  9817. }
  9818. .stepsNav {
  9819. display: flex;
  9820. flex-direction: row;
  9821. justify-content: flex-start;
  9822. align-items: center;
  9823. }
  9824. .stepsWord {
  9825. font-size: 18px;
  9826. color: #fff;
  9827. font-weight: bold;
  9828. margin-left: auto;
  9829. background: rgb(15, 126, 255);
  9830. border-radius: 5px;
  9831. padding: 3px 25px;
  9832. box-sizing: border-box;
  9833. }
  9834. .rightBox {
  9835. width: calc(100%);
  9836. background: #F0F2F5;
  9837. /* border-radius: 10px; */
  9838. overflow: auto;
  9839. height: calc(100% - 120px);
  9840. margin: 0 auto;
  9841. position: relative;
  9842. box-sizing: border-box;
  9843. border-radius: 5px;
  9844. }
  9845. .e_add_top {
  9846. display: flex;
  9847. justify-content: space-between;
  9848. padding: 20px 20px 0 20px;
  9849. border-radius: 3px;
  9850. background: #fff;
  9851. }
  9852. .e_add_title2 {
  9853. display: flex;
  9854. align-items: center;
  9855. }
  9856. .e_add_title2 span {
  9857. width: 40px;
  9858. }
  9859. .e_add_title {
  9860. display: flex;
  9861. align-items: center;
  9862. color: #b8b8b8;
  9863. font-size: 18px;
  9864. position: relative;
  9865. height: 40px;
  9866. }
  9867. .e_add_title span {
  9868. margin-right: 10px;
  9869. }
  9870. .e_add_title .el_input {
  9871. width: 300px;
  9872. }
  9873. .e_add_title>>>.el-input__inner {
  9874. width: 400px;
  9875. }
  9876. .e_add_btn {}
  9877. .e_add_content {
  9878. display: flex;
  9879. width: 100%;
  9880. }
  9881. .e_add_list {
  9882. background: #fff;
  9883. height: 500px;
  9884. width: 210px;
  9885. position: relative;
  9886. margin: 15px 5px 0 0;
  9887. flex-shrink: 0;
  9888. display: flex;
  9889. flex-direction: column;
  9890. }
  9891. .e_add_list_title {
  9892. font-size: 20px;
  9893. width: 100%;
  9894. box-sizing: border-box;
  9895. padding: 15px 40px;
  9896. text-align: center;
  9897. border-bottom: 1px solid #eaeaea;
  9898. position: relative;
  9899. display: flex;
  9900. align-items: center;
  9901. justify-content: center;
  9902. height: 57px;
  9903. background: #f6f6f6;
  9904. }
  9905. .e_add_list_title span {
  9906. overflow: hidden;
  9907. white-space: nowrap;
  9908. text-overflow: ellipsis;
  9909. }
  9910. .e_add_list_title img {
  9911. position: absolute;
  9912. right: 15px;
  9913. width: 25px;
  9914. cursor: pointer;
  9915. top: 50%;
  9916. transform: translateY(-50%);
  9917. }
  9918. .e_add_list_body {
  9919. height: calc(100% - 187px);
  9920. overflow: auto;
  9921. }
  9922. .e_add_list_child {
  9923. width: 100%;
  9924. display: flex;
  9925. align-items: center;
  9926. justify-content: center;
  9927. position: relative;
  9928. box-sizing: border-box;
  9929. padding: 15px 40px;
  9930. text-align: center;
  9931. }
  9932. .e_add_list_child span {
  9933. overflow: hidden;
  9934. white-space: nowrap;
  9935. text-overflow: ellipsis;
  9936. cursor: pointer;
  9937. }
  9938. .e_add_list_child img {
  9939. position: absolute;
  9940. right: 10px;
  9941. width: 21px;
  9942. cursor: pointer;
  9943. top: 50%;
  9944. transform: translateY(-50%);
  9945. }
  9946. .e_add_list_child+.e_add_list_child {
  9947. border-top: 1px solid #eaeaea;
  9948. }
  9949. .e_add_list_child .active {
  9950. color: #409eff;
  9951. }
  9952. .e_add_list_btn {
  9953. position: absolute;
  9954. bottom: 0;
  9955. height: 50px;
  9956. background: rgb(120, 120, 254);
  9957. width: 100%;
  9958. color: #fff;
  9959. font-size: 16px;
  9960. text-align: center;
  9961. line-height: 50px;
  9962. cursor: pointer;
  9963. }
  9964. .e_add_list_detail {
  9965. position: absolute;
  9966. bottom: 0;
  9967. height: 130px;
  9968. background: rgb(120, 120, 254);
  9969. width: 100%;
  9970. color: #fff;
  9971. font-size: 16px;
  9972. display: flex;
  9973. align-items: center;
  9974. justify-content: center;
  9975. }
  9976. .e_add_list_detail textarea {
  9977. height: 90%;
  9978. width: 95%;
  9979. border: none;
  9980. resize: none;
  9981. outline: none;
  9982. padding: 5px;
  9983. box-sizing: border-box;
  9984. }
  9985. .e_add_list_pbox {
  9986. width: 100%;
  9987. }
  9988. .e_add_list_pbox_title {
  9989. height: 50px;
  9990. background: #fff;
  9991. display: flex;
  9992. align-items: center;
  9993. width: 100%;
  9994. box-sizing: border-box;
  9995. padding: 0 20px;
  9996. flex-direction: row;
  9997. flex-wrap: wrap;
  9998. }
  9999. .type_title {
  10000. font-size: 18px;
  10001. font-weight: 700;
  10002. }
  10003. .type_content {
  10004. font-size: 16px;
  10005. margin-left: 30px;
  10006. }
  10007. .type_content span+span {
  10008. margin-left: 20px;
  10009. }
  10010. .type_content span {
  10011. cursor: pointer;
  10012. padding-bottom: 5px;
  10013. box-sizing: border-box;
  10014. }
  10015. .type_content .active {
  10016. color: #409eff;
  10017. border-bottom: 2px solid #409eff;
  10018. }
  10019. .e_add_list_pbox_content {
  10020. height: calc(100% - 50px);
  10021. display: flex;
  10022. align-items: center;
  10023. width: 100%;
  10024. background: #fff;
  10025. }
  10026. .mbCss {
  10027. width: 100%;
  10028. display: flex;
  10029. flex-direction: row;
  10030. flex-wrap: nowrap;
  10031. align-content: center;
  10032. align-items: flex-start;
  10033. justify-content: flex-start;
  10034. }
  10035. .pjCss {
  10036. /* width: 42%; */
  10037. width: calc(100% - 55%);
  10038. display: flex;
  10039. flex-direction: column;
  10040. flex-wrap: nowrap;
  10041. align-items: flex-start;
  10042. margin-top: 1.5%;
  10043. }
  10044. .e_box {
  10045. display: flex;
  10046. flex-wrap: wrap;
  10047. max-height: 500px;
  10048. align-items: flex-start;
  10049. overflow: auto;
  10050. }
  10051. .e_card {
  10052. border: 1px solid #ccc;
  10053. background: #fff;
  10054. margin-right: 20px;
  10055. width: 270px;
  10056. display: flex;
  10057. flex-direction: column;
  10058. align-items: center;
  10059. border-radius: 5px;
  10060. margin-top: 10px;
  10061. text-align: center;
  10062. }
  10063. .e_card_picture {
  10064. margin: 10px 0;
  10065. }
  10066. .e_card_picture>img {
  10067. width: 50px;
  10068. }
  10069. .e_card_name {
  10070. width: 100%;
  10071. padding: 0 10px;
  10072. box-sizing: border-box;
  10073. margin-bottom: 10px;
  10074. overflow: hidden;
  10075. text-overflow: ellipsis;
  10076. white-space: nowrap;
  10077. }
  10078. .e_card_time {
  10079. width: 100%;
  10080. padding: 0 10px;
  10081. box-sizing: border-box;
  10082. font-size: 15px;
  10083. color: #c3c3c3;
  10084. margin-bottom: 10px;
  10085. }
  10086. .e_card_btn {
  10087. height: 40px;
  10088. display: flex;
  10089. align-items: center;
  10090. width: 100%;
  10091. background: rgb(244, 244, 244);
  10092. }
  10093. .e_card_btn:hover {
  10094. background: rgb(221 221 221);
  10095. }
  10096. .e_card_btn span {
  10097. flex: 1 1 auto;
  10098. text-align: center;
  10099. cursor: pointer;
  10100. }
  10101. .addEva {
  10102. border: 1px solid #ccc;
  10103. background: #fff;
  10104. margin-right: 20px;
  10105. width: 270px;
  10106. height: 149px;
  10107. display: flex;
  10108. flex-direction: column;
  10109. align-items: center;
  10110. border-radius: 5px;
  10111. margin-top: 10px;
  10112. text-align: center;
  10113. cursor: pointer;
  10114. justify-content: center;
  10115. }
  10116. .addEva>img {
  10117. width: 50px;
  10118. object-fit: cover;
  10119. }
  10120. .uploadFm {
  10121. border: 1px dashed #ccc;
  10122. width: 100%;
  10123. height: 140px;
  10124. position: relative;
  10125. cursor: pointer;
  10126. display: flex;
  10127. flex-direction: column;
  10128. justify-content: center;
  10129. align-items: center;
  10130. font-size: 14px;
  10131. color: #6e6e6e;
  10132. }
  10133. .uploadFm>img {
  10134. width: 50px;
  10135. }
  10136. .fileCss {
  10137. width: 100%;
  10138. display: flex;
  10139. flex-direction: row;
  10140. flex-wrap: nowrap;
  10141. justify-content: space-around;
  10142. align-items: center;
  10143. padding-top: 15px;
  10144. }
  10145. .fileCss>div {
  10146. display: flex;
  10147. flex-direction: column;
  10148. align-items: center;
  10149. }
  10150. .fileCss .spanName {
  10151. margin-top: 10px
  10152. }
  10153. .sysPicBox {
  10154. display: flex;
  10155. flex-direction: row;
  10156. flex-wrap: wrap;
  10157. align-content: flex-start;
  10158. height: 435px;
  10159. overflow: auto;
  10160. position: relative;
  10161. }
  10162. .picNone {
  10163. position: absolute;
  10164. left: 50%;
  10165. top: 45%;
  10166. transform: translate(-50%, -50%);
  10167. width: fit-content;
  10168. color: #9c9c9c;
  10169. }
  10170. .sysPic {
  10171. width: 200px;
  10172. height: 115px;
  10173. margin: 0 20px 20px 0;
  10174. cursor: pointer;
  10175. }
  10176. .sysPic>img,
  10177. .isSysPic>img,
  10178. .deletePic>img {
  10179. width: 100%;
  10180. height: 100%;
  10181. object-fit: cover;
  10182. }
  10183. .isSysPic {
  10184. width: 200px;
  10185. height: 115px;
  10186. position: relative;
  10187. }
  10188. .deletePic {
  10189. width: 20px;
  10190. height: 20px;
  10191. position: absolute;
  10192. top: 0;
  10193. right: 0;
  10194. cursor: pointer;
  10195. }
  10196. .select_box1 {
  10197. height: 100%;
  10198. }
  10199. .select_box1_img {
  10200. background: #fff;
  10201. border-radius: 5px;
  10202. padding: 15px;
  10203. box-sizing: border-box;
  10204. margin-bottom: 20px;
  10205. }
  10206. .select_box1_title {
  10207. padding: 0 0 15px 0;
  10208. border-bottom: 1px solid #eee;
  10209. margin-bottom: 15px;
  10210. }
  10211. .select_box1_title span:nth-child(1) {
  10212. font-size: 16px;
  10213. margin-right: 20px;
  10214. color: #000;
  10215. }
  10216. .select_box1_title span:nth-child(2) {
  10217. font-size: 14px;
  10218. color: rgb(112, 112, 112);
  10219. }
  10220. .select_box1_add_img {}
  10221. .select_box1_select {
  10222. background: #fff;
  10223. border-radius: 5px;
  10224. padding: 15px;
  10225. box-sizing: border-box;
  10226. height: calc(100% - 200px);
  10227. overflow: auto;
  10228. }
  10229. .select_box2 {
  10230. height: 100%;
  10231. }
  10232. .select_box2_title {
  10233. background: #fff;
  10234. border-radius: 5px;
  10235. padding: 5px 10px;
  10236. box-sizing: border-box;
  10237. margin-bottom: 10px;
  10238. }
  10239. .select_box2_box {
  10240. display: flex;
  10241. height: calc(100% - 30px);
  10242. }
  10243. .select_box2_img {
  10244. width: calc(100% - 310px);
  10245. height: 100%;
  10246. overflow: auto;
  10247. background: #fff;
  10248. border-radius: 5px;
  10249. }
  10250. .select_box2_img img {
  10251. width: 100%;
  10252. }
  10253. .select_box2_answer {
  10254. background: #fff;
  10255. margin-left: 10px;
  10256. border-radius: 5px;
  10257. width: 300px;
  10258. overflow: auto;
  10259. height: 100%;
  10260. display: flex;
  10261. flex-direction: column;
  10262. align-items: center;
  10263. padding-top: 10px;
  10264. box-sizing: border-box;
  10265. }
  10266. .select_box2_answer_box {
  10267. margin: 0 0 10px 0;
  10268. width: 85%;
  10269. }
  10270. .rate_textarea {
  10271. font: inherit;
  10272. color: currentColor;
  10273. width: 100%;
  10274. padding: 8px 14px;
  10275. display: block;
  10276. min-width: 0;
  10277. outline: none;
  10278. border: 1px solid rgba(0, 0, 0, 0.23);
  10279. border-radius: 4px;
  10280. box-sizing: border-box;
  10281. background: #fff;
  10282. margin: 0 20px 0 0;
  10283. resize: none;
  10284. }
  10285. .select_answer_title {
  10286. text-align: left;
  10287. width: 85%;
  10288. margin-bottom: 10px;
  10289. font-size: 18px;
  10290. color: #8e8e8e;
  10291. }
  10292. .mask {
  10293. background-color: rgb(0 0 0 / 30%);
  10294. /* position: fixed; */
  10295. position: absolute;
  10296. top: 0;
  10297. left: 0;
  10298. width: 100%;
  10299. height: 100%;
  10300. z-index: 90;
  10301. display: flex;
  10302. align-items: center;
  10303. justify-content: center;
  10304. }
  10305. .progressBox {
  10306. width: 300px;
  10307. height: 150px;
  10308. background: #fff;
  10309. border-radius: 10px;
  10310. box-shadow: 0 0 6px 1px #bfbfbf;
  10311. display: flex;
  10312. align-items: center;
  10313. justify-content: center;
  10314. flex-direction: column;
  10315. position: relative;
  10316. color: #6c6c6c;
  10317. }
  10318. .progressBox>>>.el-progress-bar__outer {
  10319. background-color: #d1dfff !important;
  10320. }
  10321. .progressBox .lbox {
  10322. height: 50px;
  10323. font-size: 19px;
  10324. display: flex;
  10325. align-items: center;
  10326. color: #747474;
  10327. }
  10328. .progressBox .lbox img {
  10329. width: 40px;
  10330. margin-right: 20px;
  10331. }
  10332. .closeCss {
  10333. position: absolute;
  10334. top: 8px;
  10335. right: 8px;
  10336. cursor: pointer;
  10337. width: 20px;
  10338. height: 20px;
  10339. }
  10340. .closeCss>img {
  10341. width: 100%;
  10342. height: 100%;
  10343. }
  10344. .updateTips::after {
  10345. content: "协同建构不支持修改基本信息,只支持加入分组。";
  10346. font-size: 14px;
  10347. margin-left: 20px;
  10348. font-weight: 400;
  10349. color: #ff3a3a;
  10350. }
  10351. .updateMask {
  10352. width: 100%;
  10353. z-index: 3;
  10354. top: 0;
  10355. position: absolute;
  10356. /* background-color: rgba(0,0,0,.3); */
  10357. }
  10358. .t_j_box {
  10359. display: flex;
  10360. }
  10361. .t_j_box span:nth-child(1) {
  10362. width: 15%;
  10363. overflow: hidden;
  10364. margin-right: 10px;
  10365. text-overflow: ellipsis;
  10366. white-space: nowrap;
  10367. }
  10368. .t_j_box span:nth-child(2) {
  10369. min-width: 30px;
  10370. margin-right: 10px;
  10371. }
  10372. .t_j_box span:nth-child(3) {
  10373. width: 38%;
  10374. overflow: hidden;
  10375. text-overflow: ellipsis;
  10376. margin-right: 10px;
  10377. }
  10378. .t_j_box span:nth-child(4) {
  10379. max-width: calc(45% - 60px);
  10380. overflow: hidden;
  10381. text-overflow: ellipsis;
  10382. }
  10383. .sentenBox {
  10384. background: #fff;
  10385. height: 600px;
  10386. overflow: auto;
  10387. background-image: url("../../../assets/icon/conSentences/csBg.png");
  10388. background-position: 102%;
  10389. background-repeat: no-repeat;
  10390. background-size: 60%;
  10391. }
  10392. .sentenBox>.sentenContent {
  10393. padding-bottom: 10px;
  10394. width: 97%;
  10395. margin: 0 auto;
  10396. }
  10397. .sentenBox>.sentenContent+.sentenContent {
  10398. border-top: 1px solid #cbcbcb;
  10399. }
  10400. .addSen {
  10401. background: #409efe;
  10402. width: 90px;
  10403. color: #fff;
  10404. height: 35px;
  10405. text-align: center;
  10406. line-height: 35px;
  10407. border-radius: 5px;
  10408. float: right;
  10409. margin: 10px 20px 0 0;
  10410. cursor: pointer;
  10411. }
  10412. .sentenTop {
  10413. display: flex;
  10414. flex-direction: row;
  10415. flex-wrap: nowrap;
  10416. align-items: center;
  10417. }
  10418. .sentenTop::before {
  10419. content: attr(index);
  10420. background: #3681fc;
  10421. border-radius: 50%;
  10422. color: #fff;
  10423. width: 25px;
  10424. height: 25px;
  10425. min-width: 25px;
  10426. min-height: 25px;
  10427. text-align: center;
  10428. line-height: 25px;
  10429. margin-right: 5px;
  10430. }
  10431. .sentenTop>div:nth-child(2) {
  10432. width: 300px;
  10433. margin: 0 15px;
  10434. }
  10435. .sentenTop>div:nth-child(3) {
  10436. background: #409efe;
  10437. color: #fff;
  10438. width: 65px;
  10439. height: 35px;
  10440. text-align: center;
  10441. line-height: 35px;
  10442. border-radius: 5px;
  10443. cursor: pointer;
  10444. }
  10445. .cardList {
  10446. padding: 20px 0 20px 0;
  10447. display: flex;
  10448. flex-direction: row;
  10449. flex-wrap: wrap;
  10450. align-items: center;
  10451. box-sizing: border-box;
  10452. border-bottom: 1px solid #f4f4f4;
  10453. width: 98%;
  10454. margin: 0 auto;
  10455. }
  10456. .rightCardList {
  10457. display: flex;
  10458. flex-wrap: wrap;
  10459. }
  10460. .cardBox {
  10461. display: flex;
  10462. flex-direction: row;
  10463. flex-wrap: wrap;
  10464. align-items: center;
  10465. align-content: center;
  10466. }
  10467. .isCard,
  10468. .isCard1 {
  10469. width: auto;
  10470. padding: 0 20px;
  10471. height: 65px;
  10472. text-align: center;
  10473. line-height: 65px;
  10474. font-size: 14px;
  10475. cursor: pointer;
  10476. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  10477. background-size: 100% 100%;
  10478. position: relative;
  10479. z-index: 99;
  10480. }
  10481. .isCard1 {
  10482. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  10483. }
  10484. .isCard:hover .deleteWord {
  10485. display: block;
  10486. }
  10487. .isCard>div:nth-child(1),
  10488. .isCard1>div:nth-child(1) {
  10489. white-space: nowrap;
  10490. overflow: hidden;
  10491. text-overflow: ellipsis;
  10492. width: 100%;
  10493. margin: 0 auto;
  10494. }
  10495. .card {
  10496. width: 140px;
  10497. height: 65px;
  10498. }
  10499. .card>img {
  10500. width: 100%;
  10501. height: 100%;
  10502. }
  10503. .rightCardBox {
  10504. width: 98%;
  10505. margin: 10px auto 0;
  10506. }
  10507. .rightCardBox>div:nth-child(1) {
  10508. margin-bottom: 10px;
  10509. }
  10510. .cardCss {
  10511. display: flex;
  10512. flex-direction: column;
  10513. flex-wrap: nowrap;
  10514. align-items: center;
  10515. border-bottom: 3px solid #b4c3d3;
  10516. padding: 0 0 5px 0;
  10517. /* margin-right: 10px; */
  10518. }
  10519. .cardCss>div:nth-child(2) {
  10520. background: #5b7b9d;
  10521. color: #fff;
  10522. width: 20px;
  10523. height: 20px;
  10524. border-radius: 50%;
  10525. text-align: center;
  10526. line-height: 20px;
  10527. }
  10528. .sentenTopBox {
  10529. display: flex;
  10530. flex-direction: row;
  10531. flex-wrap: nowrap;
  10532. align-items: center;
  10533. justify-content: space-between;
  10534. padding: 55px 0 0 20px;
  10535. box-sizing: border-box;
  10536. width: 85%;
  10537. }
  10538. .stepsBottom {
  10539. width: 85%;
  10540. margin-bottom: 20px;
  10541. box-shadow: 0 0 10px 10px #f7f7f7;
  10542. background: #f7f7f7;
  10543. border-radius: 10px;
  10544. overflow: hidden;
  10545. }
  10546. .course_left {
  10547. width: 300px;
  10548. height: auto;
  10549. position: relative;
  10550. }
  10551. .stepsBottom2 {
  10552. width: 300px;
  10553. margin: 10px 0;
  10554. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  10555. /* background: #f7f7f7; */
  10556. border-radius: 8px;
  10557. overflow: hidden;
  10558. height: fit-content;
  10559. position: relative;
  10560. /* transition: all .5s; */
  10561. }
  10562. .navTop {
  10563. background: #53749b;
  10564. color: #fff;
  10565. height: 40px;
  10566. line-height: 40px;
  10567. padding-left: 15px;
  10568. font-size: 18px;
  10569. }
  10570. .navBottom {
  10571. background: #fff;
  10572. height: calc(100vh - 210px);
  10573. overflow: auto;
  10574. }
  10575. .navTask {
  10576. display: flex;
  10577. flex-direction: row;
  10578. flex-wrap: nowrap;
  10579. align-items: center;
  10580. padding: 10px 10px 10px 0;
  10581. cursor: pointer;
  10582. background: #ffffff;
  10583. width: 95%;
  10584. margin: 10px auto 0;
  10585. box-sizing: border-box;
  10586. border-radius: 5px;
  10587. flex-wrap: wrap;
  10588. }
  10589. .navTask::before {
  10590. content: '';
  10591. display: block;
  10592. width: 16px;
  10593. height: 16px;
  10594. background-image: url(../../../assets/icon/new/icon_arrow.png);
  10595. background-size: 100%;
  10596. margin-left: 10px;
  10597. }
  10598. .isNavOpen::before {
  10599. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  10600. }
  10601. .isNavTask {
  10602. /* background: #3681FC; */
  10603. background: #EEF3FB;
  10604. }
  10605. .isNavTask .nt_taskName {
  10606. /* color: #fff !important; */
  10607. font-weight: bold !important;
  10608. color: #0061FF !important;
  10609. }
  10610. .isNavTask .nt_taskTitle {
  10611. /* color: #AECCFE !important; */
  10612. font-weight: bold !important;
  10613. color: #0061FF !important;
  10614. }
  10615. .navTask .nt_taskBox {
  10616. width: calc(100% - 85px);
  10617. padding: 0 10px 0 5px;
  10618. box-sizing: border-box;
  10619. box-sizing: border-box;
  10620. display: flex;
  10621. flex-direction: row;
  10622. flex-wrap: nowrap;
  10623. align-items: baseline;
  10624. }
  10625. .navTask .nt_taskTitle {
  10626. /* color: #717C8D; */
  10627. color: #060E17;
  10628. line-height: 25px;
  10629. font-size: 16px;
  10630. min-width: 45px;
  10631. }
  10632. .navTask .nt_taskName {
  10633. /* color: #fff; */
  10634. /* max-width: 130px; */
  10635. /* width: 100%; */
  10636. max-width: calc(100% - 50px);
  10637. white-space: nowrap;
  10638. overflow: hidden;
  10639. text-overflow: ellipsis;
  10640. font-size: 16px;
  10641. color: #060E17;
  10642. /* color: #0E1E33; */
  10643. }
  10644. .gjBox {
  10645. width: calc(100% - 25px);
  10646. padding: 0 0 0 0;
  10647. box-sizing: border-box;
  10648. border-left: 1px solid #CAD1DC;
  10649. margin-left: 25px;
  10650. }
  10651. .gjBox>div {
  10652. display: flex;
  10653. align-items: center;
  10654. }
  10655. .gjBox>div::before {
  10656. content: '';
  10657. height: 1px;
  10658. width: 10px;
  10659. background: #CAD1DC;
  10660. display: block;
  10661. margin-right: 5px;
  10662. }
  10663. .gjCss {
  10664. display: flex;
  10665. flex-direction: row;
  10666. flex-wrap: nowrap;
  10667. align-items: center;
  10668. padding: 15px 0;
  10669. box-sizing: border-box;
  10670. font-size: 14px;
  10671. cursor: pointer;
  10672. }
  10673. .isGjCss {
  10674. color: #0061ff;
  10675. }
  10676. .groupBox {}
  10677. .groupContent+.groupContent {
  10678. margin-top: 30px;
  10679. }
  10680. .groupTitle {
  10681. font-size: 24px;
  10682. color: rgb(80, 80, 80);
  10683. margin-bottom: 20px;
  10684. }
  10685. .groupName {
  10686. display: flex;
  10687. align-items: center;
  10688. }
  10689. .groupn {
  10690. font-size: 15px;
  10691. margin-right: 10px;
  10692. }
  10693. .groupName+.groupName {
  10694. margin-top: 15px;
  10695. }
  10696. .groupBtn {
  10697. margin-left: 10px;
  10698. }
  10699. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10700. text-align: left;
  10701. }
  10702. .radioBox>div {
  10703. margin: 10px 0 0 10px;
  10704. }
  10705. .radioBox>>>.el-radio__input,
  10706. .radioBox>>>.el-checkbox__inner {
  10707. margin-left: 10px;
  10708. }
  10709. .radioBox>>>.el-radio__label,
  10710. .radioBox>>>.el-checkbox__label {
  10711. display: flex;
  10712. align-items: center;
  10713. }
  10714. .inImg {
  10715. width: 50px;
  10716. }
  10717. .inImg>img {
  10718. width: 100%;
  10719. height: 100%;
  10720. object-fit: cover;
  10721. }
  10722. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  10723. height: auto;
  10724. padding: 10px;
  10725. margin: 0;
  10726. }
  10727. .upCss>>>.el-upload-list {
  10728. width: 100%;
  10729. }
  10730. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  10731. width: 100%;
  10732. height: 120px;
  10733. object-fit: contain;
  10734. background: unset;
  10735. margin-left: 0;
  10736. }
  10737. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  10738. display: none;
  10739. }
  10740. .tcMember+.tcMember::before {
  10741. content: "、";
  10742. }
  10743. .xzUpImg {
  10744. width: 25px;
  10745. height: 25px;
  10746. min-width: 25px;
  10747. min-height: 25px;
  10748. cursor: pointer;
  10749. margin: 0 10px;
  10750. }
  10751. .xzUpImg>img {
  10752. width: 100%;
  10753. height: 100%;
  10754. }
  10755. .closeCss {
  10756. position: absolute;
  10757. top: 8px;
  10758. right: 8px;
  10759. cursor: pointer;
  10760. width: 20px;
  10761. height: 20px;
  10762. }
  10763. .closeCss>img {
  10764. width: 100%;
  10765. height: 100%;
  10766. }
  10767. .moveBtn {
  10768. display: flex;
  10769. flex-direction: row;
  10770. flex-wrap: nowrap;
  10771. align-items: center;
  10772. width: 55px;
  10773. }
  10774. .timuUpImg {
  10775. display: flex;
  10776. flex-direction: row;
  10777. align-items: center;
  10778. width: 100%;
  10779. margin-right: 10px;
  10780. }
  10781. .timuUpImg>div:nth-child(1) {
  10782. margin-right: 10px;
  10783. display: flex;
  10784. align-items: center;
  10785. width: 100%;
  10786. }
  10787. .timuImgBox {
  10788. margin: 10px 0;
  10789. display: flex;
  10790. flex-direction: column;
  10791. flex-wrap: wrap;
  10792. align-items: flex-start;
  10793. }
  10794. .timuImg {
  10795. width: 100px;
  10796. margin: 5px 0;
  10797. cursor: pointer;
  10798. position: relative;
  10799. }
  10800. .timuImg:hover .deleteWord {
  10801. display: block;
  10802. }
  10803. .deleteWord {
  10804. width: 25px;
  10805. height: 25px;
  10806. position: absolute;
  10807. right: -5px;
  10808. top: -5px;
  10809. cursor: pointer;
  10810. display: none;
  10811. }
  10812. .timuImg>img,
  10813. .deleteWord>img {
  10814. width: 100%;
  10815. height: 100%;
  10816. object-fit: cover;
  10817. }
  10818. .e_add_delete {
  10819. cursor: pointer;
  10820. margin-left: 10px;
  10821. }
  10822. .pType_box {
  10823. margin-top: 30px;
  10824. align-items: flex-end;
  10825. }
  10826. .noneBox {
  10827. height: 100%;
  10828. width: 100%;
  10829. display: flex;
  10830. align-items: center;
  10831. justify-content: center;
  10832. margin-top: 150px;
  10833. }
  10834. .noneBox>img {
  10835. width: 300px;
  10836. }
  10837. .textarea_css {
  10838. display: block;
  10839. resize: none;
  10840. padding: 10px 15px;
  10841. line-height: 1.5;
  10842. box-sizing: border-box;
  10843. width: 100%;
  10844. font-size: 14px;
  10845. color: #606266;
  10846. background-color: #FFF;
  10847. background-image: none;
  10848. border: 1px solid #DCDFE6;
  10849. border-radius: 4px;
  10850. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  10851. outline: none;
  10852. overflow: hidden;
  10853. height: 46px;
  10854. font-family: 'Microsoft YaHei';
  10855. }
  10856. .textarea_css::-webkit-input-placeholder {
  10857. color: #C0C4CC
  10858. }
  10859. .textarea_css:focus {
  10860. border-color: #409EFF;
  10861. outline: 0;
  10862. }
  10863. .moveBtn2 {
  10864. flex-direction: column;
  10865. width: fit-content;
  10866. margin: 0 10px 0 10px;
  10867. }
  10868. .moveBtn2 .chapter_upload_down,
  10869. .moveBtn2 .chapter_upload_up {
  10870. width: 16px;
  10871. height: 16px;
  10872. }
  10873. .moveBtn2 .chapter_upload_up::after,
  10874. .moveBtn2 .chapter_upload_down::after {
  10875. width: 10px;
  10876. height: 10px;
  10877. }
  10878. .fullStyle>>>.el-dialog__body {
  10879. height: calc(100% - 125px) !important;
  10880. box-sizing: border-box;
  10881. }
  10882. .fullStyle>>>.el-dialog {
  10883. width: 100% !important;
  10884. max-width: 100% !important;
  10885. height: 100% !important;
  10886. margin: 0 !important;
  10887. }
  10888. .fullStyle {
  10889. width: 100% !important;
  10890. max-width: 100% !important;
  10891. height: 100% !important;
  10892. margin: 0 auto !important;
  10893. }
  10894. .wb_j_box_btn {
  10895. width: calc(100% - 30px);
  10896. display: flex;
  10897. height: 40px;
  10898. border: 1.5px solid #CAD1DC;
  10899. border-radius: 4px;
  10900. box-sizing: border-box;
  10901. align-items: center;
  10902. font-size: 14px;
  10903. cursor: pointer;
  10904. overflow: hidden;
  10905. }
  10906. .wb_j_box_btn:hover {
  10907. border: 1.5px solid #0061FF;
  10908. }
  10909. .wb_j_box_title {
  10910. background: #F0F4FA;
  10911. height: 100%;
  10912. line-height: 40px;
  10913. width: 90px;
  10914. text-align: center;
  10915. color: #060E17;
  10916. border-right: 1.5px solid #CAD1DC;
  10917. box-sizing: border-box;
  10918. }
  10919. .wb_j_box_btn_c {
  10920. width: calc(100% - 90px);
  10921. padding: 0 35px 0 10px;
  10922. box-sizing: border-box;
  10923. position: relative;
  10924. }
  10925. .wb_j_box_span {
  10926. width: 100%;
  10927. overflow: hidden;
  10928. white-space: nowrap;
  10929. text-overflow: ellipsis;
  10930. word-wrap: break-word;
  10931. color: #717C8D;
  10932. }
  10933. .wb_j_box_arrow {
  10934. content: '';
  10935. width: 14px;
  10936. height: 14px;
  10937. background: url(../../../assets/icon/new/u_arrow.png);
  10938. background-size: 100% 100%;
  10939. position: absolute;
  10940. right: 12px;
  10941. top: 50%;
  10942. transform: translateY(-50%);
  10943. }
  10944. .check_classBox {
  10945. height: 400px;
  10946. display: flex;
  10947. border-top: 1.5px solid #E7EBF1;
  10948. border-bottom: 1.5px solid #E7EBF1;
  10949. }
  10950. .check_class_right {
  10951. width: 130px;
  10952. border-right: 1px solid #E7EBF1;
  10953. display: flex;
  10954. align-items: center;
  10955. flex-direction: column;
  10956. height: 100%;
  10957. overflow: auto;
  10958. padding: 15px 0;
  10959. box-sizing: border-box;
  10960. }
  10961. .check_class {
  10962. width: 85%;
  10963. border-radius: 5px;
  10964. min-height: 30px;
  10965. line-height: 30px;
  10966. text-align: center;
  10967. padding: 0 10px;
  10968. box-sizing: border-box;
  10969. cursor: pointer;
  10970. white-space: nowrap;
  10971. overflow: hidden;
  10972. text-overflow: ellipsis;
  10973. }
  10974. .check_class.activeX {
  10975. background: #E0EAFB;
  10976. color: #3681FC;
  10977. font-weight: 700;
  10978. }
  10979. .check_class+.check_class {
  10980. margin-top: 15px;
  10981. }
  10982. .check_class_left {
  10983. background: #FAFAFA;
  10984. width: calc(100% - 130px);
  10985. padding: 15px;
  10986. box-sizing: border-box;
  10987. }
  10988. .check_class_left_title {
  10989. font-size: 16px;
  10990. font-weight: 700;
  10991. margin-bottom: 10px;
  10992. }
  10993. .check_class_item {
  10994. display: flex;
  10995. flex-wrap: wrap;
  10996. height: calc(100% - 45px);
  10997. overflow: auto;
  10998. justify-content: flex-start;
  10999. align-items: flex-start;
  11000. align-content: flex-start;
  11001. }
  11002. .class_item {
  11003. margin: 0 15px 15px 0;
  11004. }
  11005. .class_item:hover>>>.el-checkbox__label {
  11006. color: #409EFF;
  11007. }
  11008. .class_item>>>.el-checkbox__label {
  11009. color: #0E1E33;
  11010. }
  11011. .class_item:hover>>>.el-checkbox__inner {
  11012. border-color: #409EFF;
  11013. }
  11014. .class_item>>>.el-checkbox,
  11015. .class_item>>>.el-checkbox__input {
  11016. display: flex;
  11017. align-items: center;
  11018. }
  11019. .tipsBox {
  11020. text-align: center;
  11021. line-height: 200px;
  11022. font-size: 20px;
  11023. }</style>