addCourse.vue 373 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596
  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. '&person=' +
  21. person,
  22. }"> {{this.person ? '跨学科学习平台' : lang.CocoNote}}</el-breadcrumb-item>
  23. <el-breadcrumb-item>
  24. <span style="color: rgb(15, 126, 255)">{{this.person ? '创建项目' : lang.ssCreateCocoNote}}</span>
  25. </el-breadcrumb-item>
  26. </el-breadcrumb>
  27. </div>
  28. <div class="r_pub_button_retrun" @click="lastSteps()">{{ lang.Back }}</div>
  29. </div>
  30. <div class="rightBox" style="padding: 0;"
  31. :style="{ height: (!isBtnDisplay) ? 'calc(100% - 50px)' : 'calc(100% - 120px)' }" v-if="this.steps == 1">
  32. <!-- @mousewheel="scrollChange" -->
  33. <!-- <div class="updateMask" :style="{
  34. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  35. }" v-if="cid && userid != courseUserid && role != '1'"></div> -->
  36. <div class="whiteBg" style="background:unset;padding: 0;position:relative;">
  37. <div class="updateMask" :style="{
  38. height: '100%',
  39. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  40. <div>
  41. <div class="basic_box" style="padding: 0;">
  42. <div class="big_box">
  43. <div class="left_first">
  44. <div :class="{
  45. updateTips: cid && userid != courseUserid && role != '1',
  46. }">
  47. <div style="width: 100%;">
  48. <div class="course_input_box">
  49. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  50. <input type="text" :placeholder="lang.NoteName" class="binfo_input" v-model="courseName"
  51. 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;"
  52. @change="changeName" />
  53. <!-- background: #f6f6f6; -->
  54. <!-- <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  55. style="justify-content: center;width: 200px;"></el-switch> -->
  56. </div>
  57. </div>
  58. </div>
  59. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  60. <span>{{ lang.type }}</span>
  61. <!-- 学科+ 主题+ 未来+ -->
  62. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  63. style="display: flex; align-items: center">
  64. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  65. <el-radio :label="item.name">{{
  66. item.name
  67. }}</el-radio>
  68. </div>
  69. </el-radio-group>
  70. </div>
  71. <div class="both">
  72. <div class="choose">
  73. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  74. <span v-if="CourseTypeJson[item.id].length > 0 &&
  75. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  76. ? pTypeCheck.indexOf(item.id) != -1
  77. : true)
  78. ">{{ item.name }}:</span>
  79. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  80. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  81. ? pTypeCheck.indexOf(item.id) != -1
  82. : true)
  83. ">
  84. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  85. item1.name }}</el-checkbox>
  86. </el-checkbox-group>
  87. <!-- <div
  88. v-else
  89. style="font-size: 14px; margin-left: -8px"
  90. >
  91. 暂无
  92. </div> -->
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="right_first">
  98. <!-- <div class="ai_box">
  99. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  100. </div> -->
  101. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">{{ lang.Cover }}</div>
  102. <div style="width: 100%;">
  103. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  104. <img src="../../../assets/icon/addPoster.png" alt="" />
  105. <div>{{ lang.AddCoverimage }}</div>
  106. </div>
  107. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  108. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  109. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  110. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  111. <i class="el-icon-plus"></i>
  112. </el-upload>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <div class="whiteBg" style="margin-top: 10px;">
  120. <div class="wb_j_box">
  121. <div class="wb_j_box_content">
  122. <div class="wb_j_box_btn" @click="openMember">
  123. <div class="wb_j_box_title">{{ lang.Collaborator }}</div>
  124. <div class="wb_j_box_btn_c">
  125. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  126. v-if="checkboxList3.length" popper-class="text_tooltip2">
  127. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  128. </el-tooltip>
  129. <div v-else class="wb_j_box_span">{{ lang.Psac }}</div>
  130. <div class="wb_j_box_arrow"></div>
  131. </div>
  132. </div>
  133. </div>
  134. <div style="margin-left: auto;">
  135. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask"> {{ lang.SMARTPaste }}</button>
  136. </div>
  137. </div>
  138. </div>
  139. <div class="whiteBg" style="margin-top: 10px">
  140. <groupBox :cid="cid" :people="checkboxList3" :classList="classList" :courseDetail="courseDetail"
  141. :userid="userid" :type="1" classId="" :oid="oid" v-if="cid" @open2="open2"></groupBox>
  142. <div v-else class="tipsBox">{{ lang.Pleaseaddgroups }}</div>
  143. </div>
  144. <div class="whiteBg" style="border-radius: 0; background:#F0F2F5;" v-if="false">
  145. <div style="display: flex">
  146. <div class="course_left">
  147. <div class="stepsBottom2">
  148. <div class="navBottom" :style="{ height: heightPx }">
  149. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  150. .taskJson" :key="tIndex">
  151. <div @click="goToTask(tIndex)" class="navTask" :class="{
  152. isNavTask:
  153. isClickColor > 0 && isClickColor == tIndex + 1,
  154. isNavOpen: t.toolOpen
  155. }">
  156. <div class="nt_taskBox">
  157. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  158. <div class="nt_taskName">
  159. <el-tooltip effect="light" :content="t.task" placement="top">
  160. <span>{{ t.task }}</span>
  161. </el-tooltip>
  162. </div>
  163. </div>
  164. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  165. 1
  166. ">
  167. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  168. @click.stop="taskMove(1, tIndex)"></div>
  169. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  170. @click.stop="taskMove(2, tIndex)"></div>
  171. </div>
  172. </div>
  173. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  174. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  175. @click="jumpGj(tIndex, toolIndex2)">
  176. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  177. <div>工具{{ toolIndex2 + 1 }}:</div>
  178. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="basic_box2">
  187. <div style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  188. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  189. <div class="taskBorder" style="padding: 20px 20px 10px;">
  190. <div class="basic_box" style="
  191. margin: 0;
  192. min-height: 0;
  193. padding: 10px 0 0 !important;
  194. ">
  195. <div style="
  196. display: flex;
  197. margin: 0 0 20px 0;
  198. flex-direction: row;
  199. justify-content: space-between;
  200. align-items: center;
  201. ">
  202. <div class="lineTitle">学习内容</div>
  203. <div v-if="!item.taskJson[0].isFoldchapter" class="show_taskD show" @click="foldC(0)"><img
  204. src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  205. <div v-else class="show_taskD" @click="foldC(0)"><img
  206. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  207. </div>
  208. <div v-if="!item.taskJson[0].isFoldchapter">
  209. <div class="add_chapters_box add_c_none" v-if="item.taskJson[0].chapterData &&
  210. item.taskJson[0].chapterData.length == 0
  211. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  212. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  213. <div class="chapter_upload" v-for="(item1, index1) in item.taskJson[0]
  214. .chapterData" :key="item1.id" @click="
  215. getChapterData(
  216. $event,
  217. unitIndex,
  218. index,
  219. index1,
  220. item1.type
  221. )
  222. ">
  223. <div class="chapter_upload_t" style="width: 100%"></div>
  224. <div class="chapter_upload_o" style="
  225. position: relative;
  226. display: flex;
  227. align-items: center;
  228. ">
  229. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  230. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  231. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  232. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  233. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  234. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  235. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  236. </div>
  237. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  238. </div>
  239. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  240. </div>
  241. </div>
  242. <div class="chapter_upload_n">
  243. <input readonly="true" v-if="item1.type == 2 ||
  244. item1.type == 3 ||
  245. item1.type == 12 ||
  246. item1.type == 13 ||
  247. item1.type == 7
  248. " :placeholder="item1.name" @click="
  249. updataVideoT(
  250. $event,
  251. unitIndex,
  252. 0,
  253. index1
  254. )
  255. " style="
  256. border: none;
  257. outline: none;
  258. width: 80%;
  259. minwidth: 215px;
  260. z-index: 99;
  261. font-size: 14px;
  262. white-space: nowrap;
  263. overflow: hidden;
  264. text-overflow: ellipsis;
  265. " />
  266. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  267. border: none;
  268. outline: none;
  269. width: 80%;
  270. white-space: nowrap;
  271. overflow: hidden;
  272. text-overflow: ellipsis;
  273. " readonly="true" @click="selectAttText(0, index1)" />
  274. <input :placeholder="item1.title ? item1.title : '链接'
  275. " v-if="item1.type == 8" style="
  276. border: none;
  277. outline: none;
  278. width: 80%;
  279. white-space: nowrap;
  280. overflow: hidden;
  281. text-overflow: ellipsis;
  282. " readonly="true" @click="selectLine(0, index1)" />
  283. <input :placeholder="item1.title ? item1.title : '链接'
  284. " v-if="item1.type == 14" style="
  285. border: none;
  286. outline: none;
  287. width: 80%;
  288. white-space: nowrap;
  289. overflow: hidden;
  290. text-overflow: ellipsis;
  291. " readonly="true" @click="openUpdateSource(0, index1)" />
  292. </div>
  293. <div class="chapter_upload_ic">
  294. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  295. </div>
  296. <div class="chapter_upload_ud" style="z-index: 99">
  297. <div class="chapter_upload_up" @click.stop="
  298. upCd(
  299. $event,
  300. unitIndex,
  301. index,
  302. 0,
  303. index1
  304. )
  305. "></div>
  306. <div class="chapter_upload_down" @click.stop="
  307. downCd(
  308. $event,
  309. unitIndex,
  310. index,
  311. 0,
  312. index1
  313. )
  314. "></div>
  315. </div>
  316. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  317. item1.type == 3 ||
  318. item1.type == 12 ||
  319. item1.type == 13 ||
  320. item1.type == 7
  321. " @click.stop="
  322. updataVideoT(
  323. $event,
  324. unitIndex,
  325. 0,
  326. index1
  327. )
  328. ">
  329. <div></div>
  330. </div>
  331. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  332. @click="selectAttText(0, index1)">
  333. <div></div>
  334. </div>
  335. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  336. @click="selectLine(0, index1)">
  337. <div></div>
  338. </div>
  339. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  340. @click="openUpdateSource(0, index1)">
  341. <div></div>
  342. </div>
  343. <div class="chapter_upload_ic_r" @click.stop="
  344. deleteChapterData(
  345. $event,
  346. unitIndex,
  347. index,
  348. index1,
  349. 0
  350. )
  351. ">
  352. <div></div>
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. </div>
  359. <div class="add_info_box" v-if="!item.taskJson[0].isFoldchapter">
  360. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  361. 添加文件
  362. <input type="file" accept="*" style="display: none" v-if="inputShow"
  363. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  364. </button>
  365. <!-- <button class="info_btn" @click="addImg($event)">
  366. 添加视频
  367. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  368. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, 0)
  369. " />
  370. </button>
  371. <button class="info_btn" @click="addImg($event)">
  372. 添加文档
  373. <input type="file"
  374. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  375. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, 0)
  376. " />
  377. </button> -->
  378. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  379. 添加图文
  380. </button>
  381. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  382. 添加链接
  383. </button>
  384. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  385. 嵌入代码
  386. </button>
  387. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  388. 添加资源
  389. </button>
  390. <!-- <button class="info_btn" @click="addImg($event)">
  391. 其他附件
  392. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  393. " />
  394. </button> -->
  395. </div>
  396. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  397. .proVisible
  398. " class="mask">
  399. <div class="progressBox">
  400. <!-- <div id="closePro" class="closeCss">
  401. <img src="../../../../assets/icon/close.png" alt />
  402. </div> -->
  403. <div class="lbox">
  404. <img src="../../../assets/loading.gif" />上传中,请稍后
  405. </div>
  406. <div style="margin-bottom: 10px">
  407. <span>{{
  408. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  409. .isFinishSize
  410. }}M</span>
  411. /
  412. <span>{{
  413. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  414. .isAllSize
  415. }}M</span>
  416. </div>
  417. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  418. .progress
  419. ? unitJson[unitIndex].chapterInfo[0]
  420. .taskJson[0].progress
  421. : 0
  422. " style="width: 80%"></el-progress>
  423. </div>
  424. </div>
  425. </div>
  426. </div>
  427. <div class="taskBorder" :style="{
  428. minHeight: unitJson[unitIndex].easy && 'unset',
  429. }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  430. <div v-if="unitJson[unitIndex].easy != 1">
  431. <div :style="{
  432. marginBottom:
  433. unitJson[unitIndex].easy == 3 ||
  434. (unitJson[unitIndex].easy == 5 &&
  435. itemTask.taskType == 1)
  436. ? '75px'
  437. : '0',
  438. }">
  439. <div style="
  440. display: flex;
  441. margin: 0px 0 20px;
  442. flex-direction: row;
  443. justify-content: flex-start;
  444. align-items: center;
  445. ">
  446. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  447. </div>
  448. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  449. flex-direction: row;
  450. justify-content: flex-start;
  451. align-items: center;
  452. ">
  453. <!-- <div class="cc_title">
  454. 任务{{ itemTaskIndex + 1 }}
  455. </div> -->
  456. <div class="cc_input">
  457. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  458. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  459. itemTaskIndex
  460. ].task
  461. " />
  462. <div v-if="itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  463. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  464. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  465. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  466. </div>
  467. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  468. </div>
  469. </div>
  470. </div>
  471. <div style="margin: 25px 0" v-if="itemTask.isFold2">
  472. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  473. itemTaskIndex
  474. ].taskDetail
  475. " @change="change"></editor-bar> -->
  476. <textarea rows="2" v-autoHeight="70" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  477. itemTaskIndex
  478. ].taskDetail
  479. "></textarea>
  480. </div>
  481. <div class="toolChoose" style="margin: 20px 0">
  482. <div class="tools">
  483. <div class="leftTools" style="
  484. width: 100%;
  485. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  486. <div style="
  487. display: flex;
  488. flex-direction: row;
  489. align-items: baseline;
  490. flex-wrap: nowrap;
  491. justify-content: flex-start;
  492. position: relative;
  493. ">
  494. <div :id="'gj' + itemTaskIndex + '' + toolIndex"
  495. style="margin-right: 20px; font-weight: bold">
  496. 步骤 {{ toolIndex + 1 }} :
  497. </div>
  498. <div class="chooseWho">
  499. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  500. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = true), $forceUpdate()">
  501. 互动类
  502. </div>
  503. <div :class="itemTool.toolType == 1
  504. ? 'isChooseActive'
  505. : ''
  506. " @click="
  507. (itemTool.toolType = 1), (itemTool.isFold3 = true), $forceUpdate()
  508. ">
  509. 思维类
  510. </div>
  511. <div :class="itemTool.toolType == 6
  512. ? 'isChooseActive'
  513. : ''
  514. " @click="
  515. (itemTool.toolType = 6), (itemTool.isFold3 = true), $forceUpdate()
  516. ">
  517. 协作类
  518. </div>
  519. <div :class="itemTool.toolType == 2
  520. ? 'isChooseActive'
  521. : ''
  522. " @click="
  523. (itemTool.toolType = 2), (itemTool.isFold3 = true), $forceUpdate()
  524. ">
  525. 测评类
  526. </div>
  527. <div :class="itemTool.toolType == 7
  528. ? 'isChooseActive'
  529. : ''
  530. " @click="
  531. (itemTool.toolType = 7), (itemTool.isFold3 = true), $forceUpdate()
  532. ">
  533. 评价类
  534. </div>
  535. <div :class="itemTool.toolType == 3
  536. ? 'isChooseActive'
  537. : ''
  538. " @click="
  539. (itemTool.toolType = 3), (itemTool.isFold3 = true), $forceUpdate()
  540. ">
  541. 编程类
  542. </div>
  543. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  544. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = true), $forceUpdate()">
  545. 学科类
  546. </div>
  547. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  548. " @click="(itemTool.toolType = 4), $forceUpdate()">
  549. 其他
  550. </div> -->
  551. </div>
  552. <div v-if="itemTool.isFold3" class="show_toolD show"
  553. @click="fold3(itemTaskIndex, toolIndex)"
  554. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  555. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  556. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  557. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  558. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  559. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  560. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
  561. </div>
  562. <div style="min-height: 163px" v-show="itemTool.isFold3">
  563. <div class="toolSort" v-if="itemTool.toolType == 0">
  564. <!-- <div class="tool">
  565. <div
  566. class="whiteBIcon"
  567. @click="addTools(8, itemTaskIndex, toolIndex)"
  568. >
  569. <img src="../../../assets/icon/secondToolList/library.png" alt />
  570. <div style="margin: 5px 0">素材库</div>
  571. </div>
  572. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  573. <img
  574. src="../../../assets/icon/checkNo.png"
  575. alt
  576. v-if="itemTool.tool.indexOf(8) == -1"
  577. />
  578. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  579. alt /><span>已选择</span></div>
  580. </div>
  581. </div>-->
  582. <!-- <div class="tool">
  583. <div
  584. class="whiteBIcon"
  585. @click="addTools(17, itemTaskIndex, toolIndex)"
  586. >
  587. <img
  588. src="../../../assets/icon/secondToolList/library.png"
  589. alt
  590. />
  591. <div style="margin: 5px 0">学习资料</div>
  592. </div>
  593. <div
  594. class="check"
  595. @click="addTools(17, itemTaskIndex, toolIndex)"
  596. >
  597. <img
  598. src="../../../assets/icon/checkNo.png"
  599. alt
  600. v-if="itemTool.tool.indexOf(17) == -1"
  601. />
  602. <img
  603. src="../../../assets/icon/checkedIs.png"
  604. alt
  605. v-else
  606. />
  607. </div>10
  608. </div> -->
  609. <div class="tool">
  610. <div class="whiteBIcon" @click="
  611. openTools(itemTaskIndex, 10, toolIndex)
  612. ">
  613. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  614. <div style="margin: 5px 0">倒计时</div>
  615. </div>
  616. <div class="check" @click="
  617. addTools(10, itemTaskIndex, toolIndex)
  618. ">
  619. <img src="../../../assets/icon/checkNo.png" alt
  620. v-if="itemTool.tool.indexOf(10) == -1" />
  621. <div class="checkDiv" v-else>
  622. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  623. </div>
  624. </div>
  625. </div>
  626. <div class="tool">
  627. <div class="whiteBIcon" @click="addTools(65, itemTaskIndex, toolIndex)">
  628. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  629. <div style="margin: 5px 0">挑人</div>
  630. </div>
  631. <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  632. <img src="../../../assets/icon/checkNo.png" alt
  633. v-if="itemTool.tool.indexOf(65) == -1" />
  634. <div class="checkDiv" v-else>
  635. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  636. </div>
  637. </div>
  638. </div>
  639. <!-- <div class="tool">
  640. <div
  641. class="whiteBIcon"
  642. @click="
  643. openTools(itemTaskIndex, 49, toolIndex)
  644. "
  645. >
  646. <img
  647. src="../../../assets/icon/fourthToolList/group.png"
  648. alt
  649. />
  650. <div style="margin: 5px 0">学生分组</div>
  651. </div>
  652. <div
  653. class="check"
  654. @click="
  655. addTools(49, itemTaskIndex, toolIndex)
  656. "
  657. >
  658. <img
  659. src="../../../assets/icon/checkNo.png"
  660. alt
  661. v-if="itemTool.tool.indexOf(49) == -1"
  662. />
  663. <div class="checkDiv" v-else>
  664. <img
  665. src="../../../assets/icon/checkedIs.png"
  666. alt
  667. /><span>已选择</span>
  668. </div>
  669. </div>
  670. </div> -->
  671. <!-- <div class="tool">
  672. <div class="whiteBIcon" @click="
  673. openTools(itemTaskIndex, 62, toolIndex)
  674. ">
  675. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  676. <div style="margin: 5px 0">交互视频</div>
  677. </div>
  678. <div class="check" @click="
  679. addTools(62, itemTaskIndex, toolIndex)
  680. ">
  681. <img src="../../../assets/icon/checkNo.png" alt
  682. v-if="itemTool.tool.indexOf(62) == -1" />
  683. <div class="checkDiv" v-else>
  684. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  685. </div>
  686. </div>
  687. </div> -->
  688. </div>
  689. <div class="toolSort" v-if="itemTool.toolType == 1">
  690. <div class="tool">
  691. <div class="whiteBIcon" @click="
  692. addTools(7, itemTaskIndex, toolIndex)
  693. ">
  694. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  695. <div style="margin: 5px 0">思维网格</div>
  696. </div>
  697. <div class="check" @click="
  698. addTools(7, itemTaskIndex, toolIndex)
  699. ">
  700. <img src="../../../assets/icon/checkNo.png" alt
  701. v-if="itemTool.tool.indexOf(7) == -1" />
  702. <div class="checkDiv" v-else>
  703. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  704. </div>
  705. </div>
  706. </div>
  707. <div class="tool">
  708. <div class="whiteBIcon" @click="
  709. openTools(itemTaskIndex, 1, toolIndex)
  710. ">
  711. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  712. <div style="margin: 5px 0">电子白板</div>
  713. </div>
  714. <div class="check" @click="
  715. addTools(1, itemTaskIndex, toolIndex)
  716. ">
  717. <img src="../../../assets/icon/checkNo.png" alt
  718. v-if="itemTool.tool.indexOf(1) == -1" />
  719. <div class="checkDiv" v-else>
  720. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  721. </div>
  722. </div>
  723. </div>
  724. <!-- <div class="tool">
  725. <div
  726. class="whiteBIcon"
  727. @click="addTools(2, itemTaskIndex, toolIndex)"
  728. >
  729. <img
  730. src="../../../assets/icon/secondToolList/note.png"
  731. alt
  732. />
  733. <div style="margin: 5px 0">便签</div>
  734. </div>
  735. <div
  736. class="check"
  737. @click="addTools(2, itemTaskIndex, toolIndex)"
  738. >
  739. <img
  740. src="../../../assets/icon/checkNo.png"
  741. alt
  742. v-if="itemTool.tool.indexOf(2) == -1"
  743. />
  744. <div class="checkDiv" v-else>
  745. <img
  746. src="../../../assets/icon/checkedIs.png"
  747. alt
  748. /><span>已选择</span>
  749. </div>
  750. </div>
  751. </div> -->
  752. <!-- <div class="tool">
  753. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  754. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  755. <div style="margin: 5px 0">协同文档</div>
  756. </div>
  757. <div
  758. class="check"
  759. @click="addTools(6, itemTaskIndex, toolIndex)"
  760. >
  761. <img
  762. src="../../../assets/icon/checkNo.png"
  763. alt
  764. v-if="itemTool.tool.indexOf(6) == -1"
  765. />
  766. <div class="checkDiv" v-else>
  767. <img
  768. src="../../../assets/icon/checkedIs.png"
  769. alt
  770. /><span>已选择</span>
  771. </div>
  772. </div>
  773. </div> -->
  774. <div class="tool">
  775. <div class="whiteBIcon" @click="
  776. openTools(itemTaskIndex, 52, toolIndex)
  777. ">
  778. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  779. <div style="margin: 5px 0">文档</div>
  780. </div>
  781. <div class="check" @click="
  782. addTools(52, itemTaskIndex, toolIndex)
  783. ">
  784. <img src="../../../assets/icon/checkNo.png" alt
  785. v-if="itemTool.tool.indexOf(52) == -1" />
  786. <div class="checkDiv" v-else>
  787. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  788. </div>
  789. </div>
  790. </div>
  791. <div class="tool">
  792. <div class="whiteBIcon" @click="
  793. openTools(itemTaskIndex, 3, toolIndex)
  794. ">
  795. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  796. <div style="margin: 5px 0">思维导图</div>
  797. </div>
  798. <div class="check" @click="
  799. addTools(3, itemTaskIndex, toolIndex)
  800. ">
  801. <img src="../../../assets/icon/checkNo.png" alt
  802. v-if="itemTool.tool.indexOf(3) == -1" />
  803. <div class="checkDiv" v-else>
  804. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  805. </div>
  806. </div>
  807. </div>
  808. <div class="tool">
  809. <div class="whiteBIcon" @click="
  810. openTools(itemTaskIndex, 48, toolIndex)
  811. ">
  812. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  813. <div style="margin: 5px 0">表格</div>
  814. </div>
  815. <div class="check" @click="
  816. addTools(48, itemTaskIndex, toolIndex)
  817. ">
  818. <img src="../../../assets/icon/checkNo.png" alt
  819. v-if="itemTool.tool.indexOf(48) == -1" />
  820. <div class="checkDiv" v-else>
  821. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  822. </div>
  823. </div>
  824. </div>
  825. </div>
  826. <div class="toolSort" v-if="itemTool.toolType == 6">
  827. <div class="tool">
  828. <div class="whiteBIcon" @click="
  829. openTools(itemTaskIndex, 49, toolIndex)
  830. ">
  831. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  832. <div style="margin: 5px 0">学生分组</div>
  833. </div>
  834. <div class="check" @click="
  835. addTools(49, itemTaskIndex, toolIndex)
  836. ">
  837. <img src="../../../assets/icon/checkNo.png" alt
  838. v-if="itemTool.tool.indexOf(49) == -1" />
  839. <div class="checkDiv" v-else>
  840. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  841. </div>
  842. </div>
  843. </div>
  844. </div>
  845. <div class="toolSort" v-if="itemTool.toolType == 2">
  846. <!-- <div class="tool">
  847. <div
  848. class="whiteBIcon"
  849. @click="addTools(5, itemTaskIndex, toolIndex)"
  850. >
  851. <img
  852. src="../../../assets/icon/thirdToolList/score.png"
  853. alt
  854. />
  855. <div style="margin: 5px 0">量规评分</div>
  856. </div>
  857. <div
  858. class="check"
  859. @click="addTools(5, itemTaskIndex, toolIndex)"
  860. >
  861. <img
  862. src="../../../assets/icon/checkNo.png"
  863. alt
  864. v-if="itemTool.tool.indexOf(5) == -1"
  865. />
  866. <img
  867. src="../../../assets/icon/checkedIs.png"
  868. alt
  869. v-else
  870. />
  871. </div>
  872. </div>-->
  873. <div class="tool">
  874. <div class="whiteBIcon" @click="
  875. openTools(itemTaskIndex, 4, toolIndex)
  876. ">
  877. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  878. <div style="margin: 5px 0">问卷调查</div>
  879. </div>
  880. <div class="check" @click="
  881. addTools(4, itemTaskIndex, toolIndex)
  882. ">
  883. <img src="../../../assets/icon/checkNo.png" alt
  884. v-if="itemTool.tool.indexOf(4) == -1" />
  885. <div class="checkDiv" v-else>
  886. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  887. </div>
  888. </div>
  889. </div>
  890. <div class="tool">
  891. <div class="whiteBIcon" @click="
  892. openTools(itemTaskIndex, 45, toolIndex)
  893. ">
  894. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  895. <div style="margin: 5px 0">选择题</div>
  896. </div>
  897. <div class="check" @click="
  898. addTools(45, itemTaskIndex, toolIndex)
  899. ">
  900. <img src="../../../assets/icon/checkNo.png" alt
  901. v-if="itemTool.tool.indexOf(45) == -1" />
  902. <div class="checkDiv" v-else>
  903. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  904. </div>
  905. </div>
  906. </div>
  907. <div class="tool">
  908. <div class="whiteBIcon" @click="
  909. openTools(itemTaskIndex, 15, toolIndex)
  910. ">
  911. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  912. <div style="margin: 5px 0">问答</div>
  913. </div>
  914. <div class="check" @click="
  915. addTools(15, itemTaskIndex, toolIndex)
  916. ">
  917. <img src="../../../assets/icon/checkNo.png" alt
  918. v-if="itemTool.tool.indexOf(15) == -1" />
  919. <div class="checkDiv" v-else>
  920. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  921. </div>
  922. </div>
  923. </div>
  924. <div class="tool">
  925. <div class="whiteBIcon" @click="
  926. addTools(16, itemTaskIndex, toolIndex)
  927. ">
  928. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  929. <div style="margin: 5px 0">作业提交</div>
  930. </div>
  931. <div class="check" @click="
  932. addTools(16, itemTaskIndex, toolIndex)
  933. ">
  934. <img src="../../../assets/icon/checkNo.png" alt
  935. v-if="itemTool.tool.indexOf(16) == -1" />
  936. <div class="checkDiv" v-else>
  937. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  938. </div>
  939. </div>
  940. </div>
  941. <div class="tool">
  942. <div class="whiteBIcon" @click="
  943. addTools(50, itemTaskIndex, toolIndex)
  944. ">
  945. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  946. <div style="margin: 5px 0">批量上传</div>
  947. </div>
  948. <div class="check" @click="
  949. addTools(50, itemTaskIndex, toolIndex)
  950. ">
  951. <img src="../../../assets/icon/checkNo.png" alt
  952. v-if="itemTool.tool.indexOf(50) == -1" />
  953. <div class="checkDiv" v-else>
  954. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  955. </div>
  956. </div>
  957. </div>
  958. <!-- <div class="tool">
  959. <div
  960. class="whiteBIcon"
  961. @click="
  962. openTools(itemTaskIndex, 40, toolIndex)
  963. "
  964. >
  965. <img
  966. src="../../../assets/icon/thirdToolList/eval.png"
  967. alt
  968. />
  969. <div style="margin: 5px 0">个人评价</div>
  970. </div>
  971. <div
  972. class="check"
  973. @click="
  974. addTools(40, itemTaskIndex, toolIndex)
  975. "
  976. >
  977. <img
  978. src="../../../assets/icon/checkNo.png"
  979. alt
  980. v-if="itemTool.tool.indexOf(40) == -1"
  981. />
  982. <div class="checkDiv" v-else>
  983. <img
  984. src="../../../assets/icon/checkedIs.png"
  985. alt
  986. /><span>已选择</span>
  987. </div>
  988. </div>
  989. </div> -->
  990. <div class="tool">
  991. <div class="whiteBIcon" @click="
  992. openTools(itemTaskIndex, 41, toolIndex)
  993. ">
  994. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  995. <div style="margin: 5px 0">选择匹配</div>
  996. </div>
  997. <div class="check" @click="
  998. addTools(41, itemTaskIndex, toolIndex)
  999. ">
  1000. <img src="../../../assets/icon/checkNo.png" alt
  1001. v-if="itemTool.tool.indexOf(41) == -1" />
  1002. <div class="checkDiv" v-else>
  1003. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1004. </div>
  1005. </div>
  1006. </div>
  1007. <div class="tool">
  1008. <div class="whiteBIcon" @click="
  1009. openTools(itemTaskIndex, 47, toolIndex)
  1010. ">
  1011. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1012. <div style="margin: 5px 0">排序</div>
  1013. </div>
  1014. <div class="check" @click="
  1015. addTools(47, itemTaskIndex, toolIndex)
  1016. ">
  1017. <img src="../../../assets/icon/checkNo.png" alt
  1018. v-if="itemTool.tool.indexOf(47) == -1" />
  1019. <div class="checkDiv" v-else>
  1020. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1021. </div>
  1022. </div>
  1023. </div>
  1024. <!-- <div class="tool">
  1025. <div
  1026. class="whiteBIcon"
  1027. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1028. >
  1029. <img
  1030. src="../../../assets/icon/thirdToolList/mp3.png"
  1031. alt
  1032. />
  1033. <div style="margin: 5px 0">上传音频</div>
  1034. </div>
  1035. <div
  1036. class="check"
  1037. @click="addTools(42, itemTaskIndex, toolIndex)"
  1038. >
  1039. <img
  1040. src="../../../assets/icon/checkNo.png"
  1041. alt
  1042. v-if="itemTool.tool.indexOf(42) == -1"
  1043. />
  1044. <img
  1045. src="../../../assets/icon/checkedIs.png"
  1046. alt
  1047. v-else
  1048. />
  1049. </div>
  1050. </div> -->
  1051. </div>
  1052. <div class="toolSort" v-if="itemTool.toolType == 3">
  1053. <div class="tool">
  1054. <div class="whiteBIcon" @click="
  1055. addTools(18, itemTaskIndex, toolIndex)
  1056. ">
  1057. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1058. <div style="margin: 5px 0">训练平台</div>
  1059. </div>
  1060. <div class="check" @click="
  1061. addTools(18, itemTaskIndex, toolIndex)
  1062. ">
  1063. <img src="../../../assets/icon/checkNo.png" alt
  1064. v-if="itemTool.tool.indexOf(18) == -1" />
  1065. <div class="checkDiv" v-else>
  1066. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1067. </div>
  1068. </div>
  1069. </div>
  1070. <div class="tool">
  1071. <div class="whiteBIcon" @click="
  1072. addTools(21, itemTaskIndex, toolIndex)
  1073. ">
  1074. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1075. <div style="margin: 5px 0">AIoT Blockly</div>
  1076. </div>
  1077. <div class="check" @click="
  1078. addTools(21, itemTaskIndex, toolIndex)
  1079. ">
  1080. <img src="../../../assets/icon/checkNo.png" alt
  1081. v-if="itemTool.tool.indexOf(21) == -1" />
  1082. <div class="checkDiv" v-else>
  1083. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1084. </div>
  1085. </div>
  1086. </div>
  1087. <!-- <div class="tool">
  1088. <div class="whiteBIcon" @click="
  1089. addTools(22, itemTaskIndex, toolIndex)
  1090. ">
  1091. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1092. <div style="margin: 5px 0">AI体验</div>
  1093. </div>
  1094. <div class="check" @click="
  1095. addTools(22, itemTaskIndex, toolIndex)
  1096. ">
  1097. <img src="../../../assets/icon/checkNo.png" alt
  1098. v-if="itemTool.tool.indexOf(22) == -1" />
  1099. <div class="checkDiv" v-else>
  1100. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1101. </div>
  1102. </div>
  1103. </div> -->
  1104. <div class="tool">
  1105. <div class="whiteBIcon" @click="
  1106. addTools(23, itemTaskIndex, toolIndex)
  1107. ">
  1108. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1109. <div style="margin: 5px 0">AI Python</div>
  1110. </div>
  1111. <div class="check" @click="
  1112. addTools(23, itemTaskIndex, toolIndex)
  1113. ">
  1114. <img src="../../../assets/icon/checkNo.png" alt
  1115. v-if="itemTool.tool.indexOf(23) == -1" />
  1116. <div class="checkDiv" v-else>
  1117. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1118. </div>
  1119. </div>
  1120. </div>
  1121. <div class="tool">
  1122. <div class="whiteBIcon" @click="
  1123. addTools(24, itemTaskIndex, toolIndex)
  1124. ">
  1125. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1126. <div style="margin: 5px 0">AI Blockly</div>
  1127. </div>
  1128. <div class="check" @click="
  1129. addTools(24, itemTaskIndex, toolIndex)
  1130. ">
  1131. <img src="../../../assets/icon/checkNo.png" alt
  1132. v-if="itemTool.tool.indexOf(24) == -1" />
  1133. <div class="checkDiv" v-else>
  1134. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1135. </div>
  1136. </div>
  1137. </div>
  1138. <div class="tool">
  1139. <div class="whiteBIcon" @click="
  1140. addTools(32, itemTaskIndex, toolIndex)
  1141. ">
  1142. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1143. <div style="margin: 5px 0">源码编辑</div>
  1144. </div>
  1145. <div class="check" @click="
  1146. addTools(32, itemTaskIndex, toolIndex)
  1147. ">
  1148. <img src="../../../assets/icon/checkNo.png" alt
  1149. v-if="itemTool.tool.indexOf(32) == -1" />
  1150. <div class="checkDiv" v-else>
  1151. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1152. </div>
  1153. </div>
  1154. </div>
  1155. <div class="tool">
  1156. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  1157. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1158. <div style="margin: 5px 0">CocoPi</div>
  1159. </div>
  1160. <div class="check" @click="
  1161. addTools(57, itemTaskIndex, toolIndex)
  1162. ">
  1163. <img src="../../../assets/icon/checkNo.png" alt
  1164. v-if="itemTool.tool.indexOf(57) == -1" />
  1165. <div class="checkDiv" v-else>
  1166. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1167. </div>
  1168. </div>
  1169. </div>
  1170. <div class="tool">
  1171. <div class="whiteBIcon" @click="
  1172. addTools(63, itemTaskIndex, toolIndex)
  1173. ">
  1174. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1175. <div style="margin: 5px 0">海龟编程</div>
  1176. </div>
  1177. <div class="check" @click="
  1178. addTools(63, itemTaskIndex, toolIndex)
  1179. ">
  1180. <img src="../../../assets/icon/checkNo.png" alt
  1181. v-if="itemTool.tool.indexOf(63) == -1" />
  1182. <div class="checkDiv" v-else>
  1183. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1184. </div>
  1185. </div>
  1186. </div>
  1187. </div>
  1188. <div class="toolSort" v-if="itemTool.toolType == 5">
  1189. <div class="tool">
  1190. <div class="whiteBIcon" @click="
  1191. addTools(28, itemTaskIndex, toolIndex)
  1192. ">
  1193. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1194. <div style="margin: 5px 0">翻译</div>
  1195. </div>
  1196. <div class="check" @click="
  1197. addTools(28, itemTaskIndex, toolIndex)
  1198. ">
  1199. <img src="../../../assets/icon/checkNo.png" alt
  1200. v-if="itemTool.tool.indexOf(28) == -1" />
  1201. <div class="checkDiv" v-else>
  1202. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1203. </div>
  1204. </div>
  1205. </div>
  1206. <div class="tool">
  1207. <div class="whiteBIcon" @click="
  1208. addTools(31, itemTaskIndex, toolIndex)
  1209. ">
  1210. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1211. <div style="margin: 5px 0">数字画板</div>
  1212. </div>
  1213. <div class="check" @click="
  1214. addTools(31, itemTaskIndex, toolIndex)
  1215. ">
  1216. <img src="../../../assets/icon/checkNo.png" alt
  1217. v-if="itemTool.tool.indexOf(31) == -1" />
  1218. <div class="checkDiv" v-else>
  1219. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1220. </div>
  1221. </div>
  1222. </div>
  1223. <div class="tool">
  1224. <div class="whiteBIcon" @click="
  1225. addTools(39, itemTaskIndex, toolIndex)
  1226. ">
  1227. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1228. <div style="margin: 5px 0">GeoGebra</div>
  1229. </div>
  1230. <div class="check" @click="
  1231. addTools(39, itemTaskIndex, toolIndex)
  1232. ">
  1233. <img src="../../../assets/icon/checkNo.png" alt
  1234. v-if="itemTool.tool.indexOf(39) == -1" />
  1235. <div class="checkDiv" v-else>
  1236. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1237. </div>
  1238. </div>
  1239. </div>
  1240. <div class="tool">
  1241. <div class="whiteBIcon" @click="
  1242. addTools(66, itemTaskIndex, toolIndex)
  1243. ">
  1244. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1245. <div style="margin: 5px 0">公式编辑</div>
  1246. </div>
  1247. <div class="check" @click="
  1248. addTools(66, itemTaskIndex, toolIndex)
  1249. ">
  1250. <img src="../../../assets/icon/checkNo.png" alt
  1251. v-if="itemTool.tool.indexOf(66) == -1" />
  1252. <div class="checkDiv" v-else>
  1253. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1254. </div>
  1255. </div>
  1256. </div>
  1257. <div class="tool">
  1258. <div class="whiteBIcon" @click="
  1259. addTools(67, itemTaskIndex, toolIndex)
  1260. ">
  1261. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1262. <div style="margin: 5px 0">分子结构</div>
  1263. </div>
  1264. <div class="check" @click="
  1265. addTools(67, itemTaskIndex, toolIndex)
  1266. ">
  1267. <img src="../../../assets/icon/checkNo.png" alt
  1268. v-if="itemTool.tool.indexOf(67) == -1" />
  1269. <div class="checkDiv" v-else>
  1270. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1271. </div>
  1272. </div>
  1273. </div>
  1274. <div class="tool">
  1275. <div class="whiteBIcon" @click="
  1276. addTools(68, itemTaskIndex, toolIndex)
  1277. ">
  1278. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1279. <div style="margin: 5px 0">时间轴</div>
  1280. </div>
  1281. <div class="check" @click="
  1282. addTools(68, itemTaskIndex, toolIndex)
  1283. ">
  1284. <img src="../../../assets/icon/checkNo.png" alt
  1285. v-if="itemTool.tool.indexOf(68) == -1" />
  1286. <div class="checkDiv" v-else>
  1287. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1288. </div>
  1289. </div>
  1290. </div>
  1291. <!-- <div class="tool">
  1292. <div class="whiteBIcon" @click="
  1293. addTools(28, itemTaskIndex, toolIndex)
  1294. ">
  1295. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1296. <div style="margin: 5px 0">翻译</div>
  1297. </div>
  1298. <div class="check" @click="
  1299. addTools(28, itemTaskIndex, toolIndex)
  1300. ">
  1301. <img src="../../../assets/icon/checkNo.png" alt
  1302. v-if="itemTool.tool.indexOf(28) == -1" />
  1303. <div class="checkDiv" v-else>
  1304. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1305. </div>
  1306. </div>
  1307. </div>
  1308. <div class="tool">
  1309. <div class="whiteBIcon" @click="
  1310. addTools(37, itemTaskIndex, toolIndex)
  1311. ">
  1312. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1313. <div style="margin: 5px 0">魔盒识字</div>
  1314. </div>
  1315. <div class="check" @click="
  1316. addTools(37, itemTaskIndex, toolIndex)
  1317. ">
  1318. <img src="../../../assets/icon/checkNo.png" alt
  1319. v-if="itemTool.tool.indexOf(37) == -1" />
  1320. <div class="checkDiv" v-else>
  1321. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. <div class="tool">
  1326. <div class="whiteBIcon" @click="
  1327. addTools(38, itemTaskIndex, toolIndex)
  1328. ">
  1329. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1330. <div style="margin: 5px 0">24点</div>
  1331. </div>
  1332. <div class="check" @click="
  1333. addTools(38, itemTaskIndex, toolIndex)
  1334. ">
  1335. <img src="../../../assets/icon/checkNo.png" alt
  1336. v-if="itemTool.tool.indexOf(38) == -1" />
  1337. <div class="checkDiv" v-else>
  1338. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1339. </div>
  1340. </div>
  1341. </div>
  1342. <div class="tool">
  1343. <div class="whiteBIcon" @click="
  1344. addTools(31, itemTaskIndex, toolIndex)
  1345. ">
  1346. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1347. <div style="margin: 5px 0">数学画板</div>
  1348. </div>
  1349. <div class="check" @click="
  1350. addTools(31, itemTaskIndex, toolIndex)
  1351. ">
  1352. <img src="../../../assets/icon/checkNo.png" alt
  1353. v-if="itemTool.tool.indexOf(31) == -1" />
  1354. <div class="checkDiv" v-else>
  1355. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1356. </div>
  1357. </div>
  1358. </div>
  1359. <div class="tool">
  1360. <div class="whiteBIcon" @click="
  1361. addTools(39, itemTaskIndex, toolIndex)
  1362. ">
  1363. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1364. <div style="margin: 5px 0">GeoGebra</div>
  1365. </div>
  1366. <div class="check" @click="
  1367. addTools(39, itemTaskIndex, toolIndex)
  1368. ">
  1369. <img src="../../../assets/icon/checkNo.png" alt
  1370. v-if="itemTool.tool.indexOf(39) == -1" />
  1371. <div class="checkDiv" v-else>
  1372. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1373. </div>
  1374. </div>
  1375. </div>
  1376. <div class="tool">
  1377. <div class="whiteBIcon" @click="
  1378. addTools(58, itemTaskIndex, toolIndex)
  1379. ">
  1380. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1381. <div style="margin: 5px 0">模拟驾驶</div>
  1382. </div>
  1383. <div class="check" @click="
  1384. addTools(58, itemTaskIndex, toolIndex)
  1385. ">
  1386. <img src="../../../assets/icon/checkNo.png" alt
  1387. v-if="itemTool.tool.indexOf(58) == -1" />
  1388. <div class="checkDiv" v-else>
  1389. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1390. </div>
  1391. </div>
  1392. </div>
  1393. <div class="tool">
  1394. <div class="whiteBIcon" @click="
  1395. addTools(59, itemTaskIndex, toolIndex)
  1396. ">
  1397. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1398. <div style="margin: 5px 0">路径搜索</div>
  1399. </div>
  1400. <div class="check" @click="
  1401. addTools(59, itemTaskIndex, toolIndex)
  1402. ">
  1403. <img src="../../../assets/icon/checkNo.png" alt
  1404. v-if="itemTool.tool.indexOf(59) == -1" />
  1405. <div class="checkDiv" v-else>
  1406. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1407. </div>
  1408. </div>
  1409. </div>
  1410. <div class="tool">
  1411. <div class="whiteBIcon" @click="
  1412. addTools(60, itemTaskIndex, toolIndex)
  1413. ">
  1414. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1415. <div style="margin: 5px 0">深度学习</div>
  1416. </div>
  1417. <div class="check" @click="
  1418. addTools(60, itemTaskIndex, toolIndex)
  1419. ">
  1420. <img src="../../../assets/icon/checkNo.png" alt
  1421. v-if="itemTool.tool.indexOf(60) == -1" />
  1422. <div class="checkDiv" v-else>
  1423. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1424. </div>
  1425. </div>
  1426. </div>
  1427. <div class="tool">
  1428. <div class="whiteBIcon" @click="
  1429. addTools(61, itemTaskIndex, toolIndex)
  1430. ">
  1431. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1432. <div style="margin: 5px 0">全历史</div>
  1433. </div>
  1434. <div class="check" @click="
  1435. addTools(61, itemTaskIndex, toolIndex)
  1436. ">
  1437. <img src="../../../assets/icon/checkNo.png" alt
  1438. v-if="itemTool.tool.indexOf(61) == -1" />
  1439. <div class="checkDiv" v-else>
  1440. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1441. </div>
  1442. </div>
  1443. </div> -->
  1444. </div>
  1445. <div class="toolSort" v-if="itemTool.toolType == 7">
  1446. <div class="tool">
  1447. <div class="whiteBIcon" @click="
  1448. openTools(itemTaskIndex, 40, toolIndex)
  1449. ">
  1450. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1451. <div style="margin: 5px 0">个人评价</div>
  1452. </div>
  1453. <div class="check" @click="
  1454. addTools(40, itemTaskIndex, toolIndex)
  1455. ">
  1456. <img src="../../../assets/icon/checkNo.png" alt
  1457. v-if="itemTool.tool.indexOf(40) == -1" />
  1458. <div class="checkDiv" v-else>
  1459. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1460. </div>
  1461. </div>
  1462. </div>
  1463. </div>
  1464. <div class="toolSort" v-if="itemTool.toolType == 4">
  1465. <div class="tool">
  1466. <div class="whiteBIcon" @click="
  1467. addTools(26, itemTaskIndex, toolIndex)
  1468. ">
  1469. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1470. <div style="margin: 5px 0">课程设计</div>
  1471. </div>
  1472. <div class="check" @click="
  1473. addTools(26, itemTaskIndex, toolIndex)
  1474. ">
  1475. <img src="../../../assets/icon/checkNo.png" alt
  1476. v-if="itemTool.tool.indexOf(26) == -1" />
  1477. <div class="checkDiv" v-else>
  1478. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1479. </div>
  1480. </div>
  1481. </div>
  1482. <div class="tool">
  1483. <div class="whiteBIcon" @click="
  1484. addTools(25, itemTaskIndex, toolIndex)
  1485. ">
  1486. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1487. <div style="margin: 5px 0">目标管理</div>
  1488. </div>
  1489. <div class="check" @click="
  1490. addTools(25, itemTaskIndex, toolIndex)
  1491. ">
  1492. <img src="../../../assets/icon/checkNo.png" alt
  1493. v-if="itemTool.tool.indexOf(25) == -1" />
  1494. <div class="checkDiv" v-else>
  1495. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1496. </div>
  1497. </div>
  1498. </div>
  1499. <!-- <div class="tool">
  1500. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1501. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1502. <div style="margin: 5px 0">汉字宫</div>
  1503. </div>
  1504. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1505. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1506. <div class="checkDiv" v-else>
  1507. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1508. </div>
  1509. </div>
  1510. </div> -->
  1511. </div>
  1512. </div>
  1513. <div v-show="itemTool.isFold3">
  1514. <textarea rows="3" type="text" v-autoHeight="87" placeholder="添加工具描述" class="binfo_input"
  1515. style="
  1516. margin: 0 0 20px 0;
  1517. " v-model="itemTool.toolDetail"></textarea>
  1518. </div>
  1519. </div>
  1520. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1521. <div class="addToolImg">
  1522. <img src="../../../assets/icon/add.png" alt />
  1523. </div>
  1524. <div>添加工具</div>
  1525. </div>
  1526. </div>
  1527. </div>
  1528. </div>
  1529. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1530. <!-- <div>
  1531. <img src="../../../assets/icon/new/addStage.png" alt />
  1532. <span>添加任务</span>
  1533. </div> -->
  1534. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  1535. 添加任务
  1536. </button>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. </div>
  1541. </div>
  1542. <div class="info_btnBox3">
  1543. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  1544. {{ lang.returnHomepage }}
  1545. </button>
  1546. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps"
  1547. v-if="!(cid && userid != courseUserid && role != '1')">
  1548. {{ lang.Confirmcreation }}
  1549. </button>
  1550. </div>
  1551. </div>
  1552. </div>
  1553. </div>
  1554. </div>
  1555. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  1556. :before-close="handleClose" class="dialog_diy2 customWidth">
  1557. <el-form>
  1558. <el-form-item label="文档标题">
  1559. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1560. </el-form-item>
  1561. <div>文档简介</div>
  1562. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  1563. </el-form>
  1564. <span slot="footer" class="dialog-footer">
  1565. <el-button @click="dialogVisible1 = false">取 消</el-button>
  1566. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  1567. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  1568. </span>
  1569. </el-dialog>
  1570. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  1571. :before-close="handleClose" class="dialog_diy">
  1572. <el-form>
  1573. <el-form-item label="文档标题">
  1574. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1575. </el-form-item>
  1576. <div>文档内容</div>
  1577. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  1578. </el-form>
  1579. <span slot="footer" class="dialog-footer">
  1580. <el-button @click="clearChoose">取 消</el-button>
  1581. <el-button type="primary" @click="wordNext()">确定</el-button>
  1582. </span>
  1583. </el-dialog>
  1584. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  1585. :before-close="handleClose" class="dialog_diy">
  1586. <el-form>
  1587. <el-form-item label="文本标题">
  1588. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  1589. placeholder="请输入文本标题..."></el-input>
  1590. </el-form-item>
  1591. <!-- <div>富文本内容</div> -->
  1592. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  1593. </el-form>
  1594. <span slot="footer" class="dialog-footer">
  1595. <el-button @click="clearAttText">取 消</el-button>
  1596. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  1597. </span>
  1598. </el-dialog>
  1599. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  1600. :before-close="handleClose" class="dialog_diy lineCss">
  1601. <el-form>
  1602. <el-form-item label="标题" :label-width="formLabelWidth">
  1603. <span>
  1604. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  1605. </span>
  1606. </el-form-item>
  1607. <el-form-item label="链接" :label-width="formLabelWidth">
  1608. <span>
  1609. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  1610. </span>
  1611. </el-form-item>
  1612. </el-form>
  1613. <span slot="footer" class="dialog-footer">
  1614. <el-button @click="clearLine">取 消</el-button>
  1615. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  1616. </span>
  1617. </el-dialog>
  1618. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  1619. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  1620. <div>
  1621. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  1622. </div>
  1623. <span slot="footer" class="dialog-footer">
  1624. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  1625. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  1626. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  1627. </span>
  1628. </el-dialog>
  1629. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  1630. :before-close="handleClose" class="addNewPP customWidth">
  1631. <div class="people">
  1632. <div class="people_top">
  1633. <div class="people_nav">选择成员</div>
  1634. <div class="people_top_right">
  1635. <div class="people_search">
  1636. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  1637. <div class="search_img" @click="searchStudent">
  1638. <img src="../../../assets/icon/search.png" alt />
  1639. </div>
  1640. </div>
  1641. </div>
  1642. </div>
  1643. <el-checkbox-group v-model="checkboxList" class="people_name">
  1644. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  1645. "暂无学生可选" }}</el-checkbox>
  1646. </el-checkbox-group>
  1647. </div>
  1648. <span slot="footer" class="dialog-footer">
  1649. <el-button @click="dialogVisible3 = false">取 消</el-button>
  1650. <el-button type="primary" @click="isAddPP">确定</el-button>
  1651. </span>
  1652. </el-dialog>
  1653. <!-- <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  1654. :before-close="handleClose" class="addNewPP">
  1655. <div class="people" style="height: 300px">
  1656. <div class="people_top">
  1657. <div class="people_top_right">
  1658. <div class="people_search">
  1659. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  1660. <el-option label="全部" value=""></el-option>
  1661. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
  1662. :value="item.id"></el-option>
  1663. </el-select>
  1664. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  1665. <div class="search_img">
  1666. <img src="../../../assets/icon/search.png" alt />
  1667. </div>
  1668. </div>
  1669. </div>
  1670. <div class="people_nav">选择班级</div>
  1671. </div>
  1672. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
  1673. v-if="grade2.length">
  1674. <div v-for="item in grade2" :key="item.id" class="p_box">
  1675. <el-checkbox :label="item.id">
  1676. {{ item.name }}
  1677. </el-checkbox>
  1678. </div>
  1679. </el-checkbox-group>
  1680. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  1681. </div>
  1682. <span slot="footer" class="dialog-footer">
  1683. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1684. <el-button type="primary" @click="isAddClass">确定</el-button>
  1685. </span>
  1686. </el-dialog> -->
  1687. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  1688. :before-close="handleClose" class="addNewPP2">
  1689. <div class="check_classBox">
  1690. <div class="check_class_right">
  1691. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  1692. 全部
  1693. </div>
  1694. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  1695. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  1696. {{ item.name }}
  1697. </div>
  1698. </el-tooltip>
  1699. </div>
  1700. <div class="check_class_left">
  1701. <div class="check_class_left_title">选择班级</div>
  1702. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  1703. <div v-for="item in grade2" :key="item.id" class="class_item">
  1704. <el-checkbox :label="item.id">
  1705. {{ item.name }}
  1706. </el-checkbox>
  1707. </div>
  1708. </el-checkbox-group>
  1709. <div v-if="!grade2.length">暂无数据</div>
  1710. </div>
  1711. </div>
  1712. <span slot="footer" class="dialog-footer">
  1713. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1714. <el-button type="primary" @click="isAddClass">确定</el-button>
  1715. </span>
  1716. </el-dialog>
  1717. <!-- <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1718. :before-close="handleClose" class="addNewPP customWidth">
  1719. <div class="people">
  1720. <div class="people_top">
  1721. <div class="people_top_right">
  1722. <div class="people_search">
  1723. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1724. <div class="search_img" @click="getTeacher">
  1725. <img src="../../../assets/icon/search.png" alt />
  1726. </div>
  1727. </div>
  1728. </div>
  1729. <div class="people_nav">选择成员</div>
  1730. </div>
  1731. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  1732. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1733. <div class="t_j_box">
  1734. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1735. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1736. </el-tooltip>
  1737. <el-tooltip placement="top" :content="item.username">
  1738. <span>{{ item.username }}</span>
  1739. </el-tooltip>
  1740. <el-tooltip placement="top" :content="item.school">
  1741. <span>{{ item.school }}</span>
  1742. </el-tooltip>
  1743. </div>
  1744. </el-checkbox>
  1745. </el-checkbox-group>
  1746. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1747. </div>
  1748. <span slot="footer" class="dialog-footer">
  1749. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  1750. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1751. </span>
  1752. </el-dialog> -->
  1753. <el-dialog :title="lang.Addmembers" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1754. :before-close="handleClose" class="addNewPP customWidth" >
  1755. <div v-loading="teacherLoading">
  1756. <div class="people">
  1757. <div class="people_top">
  1758. <div class="people_top_right">
  1759. <div class="people_search">
  1760. <el-input :placeholder="lang.Searchforaccount" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1761. <div class="search_img" @click="getTeacher">
  1762. <img src="../../../assets/icon/search.png" alt />
  1763. </div>
  1764. </div>
  1765. </div>
  1766. <div class="people_nav">{{ lang.SelectMembers }}</div>
  1767. </div>
  1768. <div class="t_j_box" style="
  1769. padding: 20px 0 0 25px;
  1770. width: calc(100% - 55px);
  1771. margin-left: 25px;
  1772. ">
  1773. <span>{{ lang.Name }}</span>
  1774. <span>{{ lang.identity }}</span>
  1775. <span>{{ lang.Account }}</span>
  1776. <span>{{ lang.school }}</span>
  1777. </div>
  1778. <div style="margin-left:25px;">
  1779. <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange" style="display: flex;align-items: center;">{{ lang.SelectAll }}</el-checkbox>
  1780. </div>
  1781. <el-checkbox-group v-model="checkboxList3" @change="handleCheckedTeacherJuriChange" class="people_name" v-if="teacherJuri.length">
  1782. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1783. <div class="t_j_box">
  1784. <el-tooltip placement="top" :content="item.name ? item.name : lang.Noname">
  1785. <span>{{ item.name ? item.name : lang.Noname }}</span>
  1786. </el-tooltip>
  1787. <span>{{ item.type == "1" ? lang.teacher : lang.student }}</span>
  1788. <el-tooltip placement="top" :content="item.username">
  1789. <span>{{ item.username }}</span>
  1790. </el-tooltip>
  1791. <el-tooltip placement="top" :content="item.school">
  1792. <span>{{ item.school }}</span>
  1793. </el-tooltip>
  1794. </div>
  1795. </el-checkbox>
  1796. </el-checkbox-group>
  1797. <div style="text-align: center; margin-top: 10px" v-else>{{ lang.Nodata }}</div>
  1798. </div>
  1799. <div style="margin-top: 10px;" >
  1800. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  1801. v-if="page && teacherJuri.length" style="padding-bottom: 20px"
  1802. @current-change="handleCurrentChange"></el-pagination>
  1803. </div>
  1804. </div>
  1805. <span slot="footer" class="dialog-footer">
  1806. <el-button @click="page = 0;dialogVisibleMember = false;">{{ lang.Cancel }}</el-button>
  1807. <el-button type="primary" @click="isAddPPTeacher">{{ lang.Confirm }}</el-button>
  1808. </span>
  1809. </el-dialog>
  1810. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  1811. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  1812. <div style="height:100%">
  1813. <div class="a_add_title" style="
  1814. display: flex;
  1815. flex-direction: row;
  1816. align-items: center;
  1817. justify-content: center;
  1818. ">
  1819. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  1820. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1821. </div>
  1822. <div class="a_addBox" style="height:calc(100% - 50px)">
  1823. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  1824. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1825. <div class="a_add_checkType">
  1826. <span :class="{
  1827. active:
  1828. askJson.askJson[index1].type == '1' ||
  1829. !askJson.askJson[index1].type,
  1830. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  1831. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  1832. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  1833. </div>
  1834. <div class="a_add_head">
  1835. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  1836. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  1837. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  1838. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  1839. </div>
  1840. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  1841. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  1842. </div>
  1843. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  1844. </div>
  1845. <div class="a_add_head_div">
  1846. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  1847. </el-button>
  1848. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  1849. </div>
  1850. </div>
  1851. <div class="a_add_body">
  1852. <div class="a_add_input" style="flex-direction: column;">
  1853. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  1854. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  1855. <div style="margin-right: 10px">
  1856. 选项{{ checkIndex + 1 }}
  1857. </div>
  1858. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  1859. " placeholder="请输入选项" style="width: 300px" @change="() => { $forceUpdate() }"></textarea>
  1860. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  1861. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  1862. </div>
  1863. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  1864. </div>
  1865. <div class="a_add_body_div">
  1866. <el-button type="primary" size="small"
  1867. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  1868. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  1869. v-if="askJson.askJson[index1].askItem != 1">删除
  1870. </el-button>
  1871. </div>
  1872. </div>
  1873. </div>
  1874. <!-- <div class="a_add_body_div">
  1875. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  1876. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  1877. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  1878. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  1879. </el-button>
  1880. </div> -->
  1881. </div>
  1882. </div>
  1883. </div>
  1884. </div>
  1885. <span slot="footer" class="dialog-footer">
  1886. <el-button @click="closePan(4)">取 消</el-button>
  1887. <el-button type="primary" @click="addAsk">确 定</el-button>
  1888. </span>
  1889. </el-dialog>
  1890. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  1891. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  1892. <div style="height:100%">
  1893. <!-- <div class="a_add_title" style="
  1894. display: flex;
  1895. flex-direction: row;
  1896. align-items: center;
  1897. justify-content: center;
  1898. ">
  1899. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1900. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1901. </div> -->
  1902. <div class="a_addBox" style="height:100%">
  1903. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  1904. <!-- 请输入题目内容 -->
  1905. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  1906. v-if="isPasteChoice">智能粘贴</button>
  1907. </div>
  1908. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1909. <div class="a_add_checkType">
  1910. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  1911. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  1912. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  1913. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  1914. </div>
  1915. <div class="a_add_head">
  1916. <div class="timuUpImg">
  1917. <div style="display: flex;align-items: center;">
  1918. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  1919. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  1920. placeholder="请输入题目">
  1921. </el-input> -->
  1922. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  1923. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  1924. @change="() => { $forceUpdate() }"></textarea>
  1925. </div>
  1926. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  1927. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  1928. </div>
  1929. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  1930. </div>
  1931. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  1932. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  1933. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  1934. </div>
  1935. </div>
  1936. <div class="a_add_head_div">
  1937. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  1938. </el-button>
  1939. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  1940. </div>
  1941. </div>
  1942. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  1943. testJson.testJson[index1].timuList.length
  1944. ">
  1945. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  1946. @click.stop="previewImg(timg.src)">
  1947. <img :src="timg.src" alt="" />
  1948. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  1949. <img src="../../../assets/icon/delete.png" alt="" />
  1950. </div>
  1951. </div>
  1952. </div>
  1953. <div class="a_add_body">
  1954. <div class="a_add_input a_add_input_choice">
  1955. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  1956. @change="() => { $forceUpdate() }">
  1957. <div class="radioBox">
  1958. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1959. .testItem" :key="checkIndex" :label="checkIndex">
  1960. <div style="margin-right: 10px">
  1961. 选项{{ checkIndex + 1 }}
  1962. </div>
  1963. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  1964. testJson.testJson[index1].checkList[checkIndex]
  1965. .imgType &&
  1966. testJson.testJson[index1].checkList[checkIndex]
  1967. .imgType == 1
  1968. ">
  1969. <div class="inImg" @click.stop="
  1970. previewImg(
  1971. testJson.testJson[index1].checkList[checkIndex]
  1972. .src
  1973. )
  1974. ">
  1975. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  1976. .src
  1977. " lazy />
  1978. <!-- <img :src="
  1979. testJson.testJson[index1].checkList[checkIndex]
  1980. .src
  1981. " alt="" /> -->
  1982. </div>
  1983. </div>
  1984. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  1985. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  1986. @change="() => { $forceUpdate() }"></textarea>
  1987. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  1988. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  1989. </div>
  1990. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  1991. </div>
  1992. <div class="xzUpImg" @click.stop="addImg($event)">
  1993. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  1994. <input type="file" accept="image/*" style="display: none"
  1995. @change="beforeUploadTi($event, index1, checkIndex)" />
  1996. </div>
  1997. <div class="a_add_body_div">
  1998. <el-button type="primary" size="small"
  1999. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  2000. <el-button type="primary" size="small"
  2001. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  2002. v-if="testJson.testJson[index1].testItem != 1">删除
  2003. </el-button>
  2004. </div>
  2005. </el-radio>
  2006. </div>
  2007. </el-radio-group>
  2008. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  2009. @change="() => { $forceUpdate() }">
  2010. <div class="radioBox">
  2011. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2012. .testItem" :key="checkIndex1" :label="checkIndex1">
  2013. <div style="margin-right: 10px">
  2014. 选项{{ checkIndex1 + 1 }}
  2015. </div>
  2016. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2017. testJson.testJson[index1].checkList[checkIndex1]
  2018. .imgType &&
  2019. testJson.testJson[index1].checkList[checkIndex1]
  2020. .imgType == 1
  2021. ">
  2022. <div class="inImg" @click.stop="
  2023. previewImg(
  2024. testJson.testJson[index1].checkList[checkIndex1]
  2025. .src
  2026. )
  2027. ">
  2028. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2029. .src
  2030. " lazy />
  2031. <!-- <img :src="
  2032. testJson.testJson[index1].checkList[checkIndex1]
  2033. .src
  2034. " alt="" /> -->
  2035. </div>
  2036. </div>
  2037. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2038. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2039. @change="() => { $forceUpdate() }"></textarea>
  2040. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2041. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  2042. </div>
  2043. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  2044. </div>
  2045. <div class="xzUpImg" @click.stop="addImg($event)">
  2046. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2047. <input type="file" accept="image/*" style="display: none"
  2048. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2049. </div>
  2050. <div class="a_add_body_div">
  2051. <el-button type="primary" size="small"
  2052. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  2053. <el-button type="primary" size="small"
  2054. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  2055. v-if="testJson.testJson[index1].testItem != 1">删除
  2056. </el-button>
  2057. </div>
  2058. </el-checkbox>
  2059. </div>
  2060. </el-checkbox-group>
  2061. </div>
  2062. <!-- <div class="a_add_body_div">
  2063. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2064. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2065. v-if="testJson.testJson[index1].testItem != 1">删除
  2066. </el-button>
  2067. </div> -->
  2068. </div>
  2069. </div>
  2070. </div>
  2071. </div>
  2072. <span slot="footer" class="dialog-footer">
  2073. <el-button @click="closePan(45)">取 消</el-button>
  2074. <el-button type="primary" @click="addTest">确 定</el-button>
  2075. </span>
  2076. </el-dialog>
  2077. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2078. :before-close="handleClose" class="dialog_diy addToolsDia">
  2079. <div class="toolChoose" style="padding: 0 0 0 30px">
  2080. <div class="tools">
  2081. <div class="leftTools" style="
  2082. width: 95%;
  2083. padding: 0 0 15px 0;
  2084. margin: 15px 0;
  2085. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2086. <div style="
  2087. display: flex;
  2088. flex-direction: row;
  2089. align-items: baseline;
  2090. flex-wrap: nowrap;
  2091. justify-content: flex-start;
  2092. position: relative;
  2093. ">
  2094. <div class="chooseWho">
  2095. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2096. 互动类
  2097. </div>
  2098. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2099. 思维类
  2100. </div>
  2101. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2102. 评价类
  2103. </div>
  2104. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2105. 其他
  2106. </div>
  2107. </div>
  2108. </div>
  2109. <div style="min-height: 163px">
  2110. <div class="toolSort" v-if="chapToolsType == 0">
  2111. <div class="tool">
  2112. <div class="whiteBIcon" @click="chapAddTools(8)">
  2113. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2114. <div style="margin: 5px 0">素材库</div>
  2115. </div>
  2116. <div class="check" @click="chapAddTools(8)">
  2117. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2118. <div class="checkDiv" v-else>
  2119. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2120. </div>
  2121. </div>
  2122. </div>
  2123. </div>
  2124. <div class="toolSort" v-if="chapToolsType == 1">
  2125. <div class="tool">
  2126. <div class="whiteBIcon" @click="chapAddTools(7)">
  2127. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2128. <div style="margin: 5px 0">思维网格</div>
  2129. </div>
  2130. <div class="check" @click="chapAddTools(7)">
  2131. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2132. <div class="checkDiv" v-else>
  2133. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2134. </div>
  2135. </div>
  2136. </div>
  2137. <div class="tool">
  2138. <div class="whiteBIcon" @click="chapAddTools(1)">
  2139. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2140. <div style="margin: 5px 0">电子白板</div>
  2141. </div>
  2142. <div class="check" @click="chapAddTools(1)">
  2143. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2144. <div class="checkDiv" v-else>
  2145. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2146. </div>
  2147. </div>
  2148. </div>
  2149. <div class="tool">
  2150. <div class="whiteBIcon" @click="chapAddTools(2)">
  2151. <img src="../../../assets/icon/secondToolList/note.png" alt />
  2152. <div style="margin: 5px 0">便签</div>
  2153. </div>
  2154. <div class="check" @click="chapAddTools(2)">
  2155. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2156. <div class="checkDiv" v-else>
  2157. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2158. </div>
  2159. </div>
  2160. </div>
  2161. <div class="tool">
  2162. <div class="whiteBIcon" @click="chapAddTools(6)">
  2163. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2164. <div style="margin: 5px 0">协同文档</div>
  2165. </div>
  2166. <div class="check" @click="chapAddTools(6)">
  2167. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2168. <div class="checkDiv" v-else>
  2169. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2170. </div>
  2171. </div>
  2172. </div>
  2173. <div class="tool">
  2174. <div class="whiteBIcon" @click="chapAddTools(3)">
  2175. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2176. <div style="margin: 5px 0">思维导图</div>
  2177. </div>
  2178. <div class="check" @click="chapAddTools(3)">
  2179. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2180. <div class="checkDiv" v-else>
  2181. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2182. </div>
  2183. </div>
  2184. </div>
  2185. <div class="tool">
  2186. <div class="whiteBIcon" @click="chapAddTools(31)">
  2187. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2188. <div style="margin: 5px 0">数学画板</div>
  2189. </div>
  2190. <div class="check" @click="chapAddTools(31)">
  2191. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2192. <div class="checkDiv" v-else>
  2193. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2194. </div>
  2195. </div>
  2196. </div>
  2197. </div>
  2198. <div class="toolSort" v-if="chapToolsType == 2">
  2199. <div class="tool">
  2200. <div class="whiteBIcon" @click="chapAddTools(5)">
  2201. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  2202. <div style="margin: 5px 0">量规评分</div>
  2203. </div>
  2204. <div class="check" @click="chapAddTools(5)">
  2205. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2206. <div class="checkDiv" v-else>
  2207. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2208. </div>
  2209. </div>
  2210. </div>
  2211. <div class="tool">
  2212. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2213. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2214. <div style="margin: 5px 0">问卷调查</div>
  2215. </div>
  2216. <div class="check" @click="chapAddTools(4)">
  2217. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2218. <div class="checkDiv" v-else>
  2219. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2220. </div>
  2221. </div>
  2222. </div>
  2223. </div>
  2224. </div>
  2225. <div>
  2226. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  2227. v-model="itemTools.toolDetail" />
  2228. </div>
  2229. </div>
  2230. </div>
  2231. </div>
  2232. <span slot="footer" class="dialog-footer">
  2233. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2234. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2235. </span>
  2236. </el-dialog>
  2237. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2238. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  2239. <div>
  2240. <div class="a_add_title" style="
  2241. display: flex;
  2242. flex-direction: column;
  2243. align-items: flex-start;
  2244. justify-content: center;
  2245. ">
  2246. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2247. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  2248. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  2249. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  2250. </div>
  2251. </div>
  2252. <span slot="footer" class="dialog-footer">
  2253. <el-button @click="closePan(15)">取 消</el-button>
  2254. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2255. </span>
  2256. </el-dialog>
  2257. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2258. :before-close="handleClose" class="dialog_diy">
  2259. <div>
  2260. <div class="a_add_title" style="
  2261. display: flex;
  2262. flex-direction: column;
  2263. align-items: flex-start;
  2264. justify-content: center;
  2265. ">
  2266. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2267. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2268. </div>
  2269. </div>
  2270. <span slot="footer" class="dialog-footer">
  2271. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2272. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2273. </span>
  2274. </el-dialog>
  2275. <el-dialog :title="lang.uploadpictures" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  2276. :before-close="handleClose" class="dialog_diy">
  2277. <div>
  2278. <div class="fileCss" style="padding-top: 20px">
  2279. <div>
  2280. <button class="info_btn" @click="addImg($event)">
  2281. {{ lang.ssSelectLocal }}
  2282. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2283. </button>
  2284. <!-- <div class="spanName"> {{ lang.ssSelectLocal }}</div> -->
  2285. </div>
  2286. <!-- <div>
  2287. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  2288. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2289. <img :src="cover[0].url" alt="" />
  2290. <div class="deletePic" @click="deleteSysPic">
  2291. <img src="../../../assets/icon/delete.png" alt="" />
  2292. </div>
  2293. </div>
  2294. <div class="spanName">选择系统文件</div>
  2295. </div> -->
  2296. <div>
  2297. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false"> {{ lang.ssSelectNet }}</el-button>
  2298. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  2299. <img :src="cover[0].url" alt="" />
  2300. <div class="deletePic" @click="deleteSysPic">
  2301. <img src="../../../assets/icon/delete.png" alt="" />
  2302. </div>
  2303. </div>
  2304. <!-- <div class="spanName"> {{ lang.ssSelectNet }}</div> -->
  2305. </div>
  2306. </div>
  2307. <!-- <div class="fileCss">
  2308. <div>选择本地文件</div>
  2309. <div>选择系统文件</div>
  2310. </div> -->
  2311. </div>
  2312. <span slot="footer" class="dialog-footer">
  2313. <el-button @click="choosePicVisible = false">{{ lang.Cancel }}</el-button>
  2314. <el-button type="primary" @click="choosePicVisible = false">{{ lang.Confirm }}</el-button>
  2315. </span>
  2316. </el-dialog>
  2317. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2318. :before-close="handleClose" class="dialog_diy">
  2319. <div class="cru_selectBox" style="margin: 0">
  2320. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2321. 绘画
  2322. </div>
  2323. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2324. 科技
  2325. </div>
  2326. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2327. 人文
  2328. </div>
  2329. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2330. 艺术
  2331. </div>
  2332. </div>
  2333. <div class="sysPicBox">
  2334. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2335. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2336. </div>
  2337. </div>
  2338. </el-dialog>
  2339. <el-dialog :title="lang.SelectWebImage" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  2340. :before-close="handleClose" class="dialog_diy">
  2341. <div>
  2342. <div class="people_top_right" style="display: flex;align-items: center;">
  2343. <div style="position: relative; width: 100%;">
  2344. <el-input style="height: 100%" :placeholder="lang.ssSearchImg" v-model="searchImageValue"
  2345. @keyup.enter.native="resetImage()"></el-input>
  2346. <div class="search_img" @click="resetImage" style="right: 10px;">
  2347. <img src="../../../assets/icon/search.png" alt />
  2348. </div>
  2349. </div>
  2350. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">{{ lang.ssChangeGrp }}</el-button>
  2351. </div>
  2352. <div class="sysPicBox" v-loading="imageloading">
  2353. <div class="picNone" v-if="!imageList.length">{{ lang.enterkeywordsimages }}</div>
  2354. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  2355. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  2356. </div>
  2357. </div>
  2358. </div>
  2359. </el-dialog>
  2360. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2361. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  2362. <div v-if="selectJson" style="height:100%">
  2363. <div class="select_box1" v-if="selectSteps == 1">
  2364. <div class="select_box1_img">
  2365. <div class="select_box1_title">
  2366. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  2367. </div>
  2368. <div class="select_box1_add_img">
  2369. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2370. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2371. <img src="../../../assets/icon/addPoster.png" alt="" />
  2372. </div>
  2373. <div class="isSysPic" v-else>
  2374. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  2375. <div class="deletePic" @click="deleteSelectPic">
  2376. <img src="../../../assets/icon/delete.png" alt="" />
  2377. </div>
  2378. </div>
  2379. </div>
  2380. </div>
  2381. <div class="select_box1_select">
  2382. <div class="select_box1_title">
  2383. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  2384. </div>
  2385. <div class="select_box1_select_box">
  2386. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2387. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  2388. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2389. <div class="select_box1_select_box_add">
  2390. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2391. 添加</el-button>
  2392. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2393. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2394. </div>
  2395. </div>
  2396. </div>
  2397. </div>
  2398. <div v-if="selectSteps == 2" style="height:100%">
  2399. <div class="select_box2">
  2400. <div class="select_box2_title">设置每道题目的正确选项</div>
  2401. <div class="select_box2_box">
  2402. <div class="select_box2_img">
  2403. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  2404. </div>
  2405. <div class="select_box2_answer">
  2406. <div class="select_answer_title">根据题目选择对应答案</div>
  2407. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2408. <span>{{ checkIndex + 1 }}、</span>
  2409. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2410. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2411. </el-option>
  2412. </el-select>
  2413. </div>
  2414. </div>
  2415. </div>
  2416. </div>
  2417. </div>
  2418. </div>
  2419. <span slot="footer" class="dialog-footer">
  2420. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2421. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2422. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2423. </span>
  2424. </el-dialog>
  2425. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2426. :before-close="handleClose" class="dialog_diy">
  2427. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2428. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2429. <div class="pjCss" style="width: 100%">
  2430. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2431. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2432. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2433. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2434. <div class="remove" @click="deletRateList(eIndex)"></div>
  2435. <div style="width: 100%; display: flex">
  2436. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2437. <el-rate v-model="eItem.score" disabled></el-rate>
  2438. </div>
  2439. <div class="elist_inptu_text" style="align-items: flex-start">
  2440. <span style="min-width: 100px; text-align: right">描述:</span>
  2441. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2442. </div>
  2443. </div>
  2444. </div>
  2445. <div class="addToolFun" @click="addRateList()">
  2446. <div class="addToolImg">
  2447. <img src="../../../assets/icon/add.png" alt />
  2448. </div>
  2449. <div>添加</div>
  2450. </div>
  2451. </div>
  2452. </div>
  2453. <span slot="footer" class="dialog-footer">
  2454. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2455. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2456. </span>
  2457. </el-dialog>
  2458. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2459. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  2460. <div style="height: 100%;">
  2461. <div class="sentenBox" style="height: 100%;">
  2462. <div class="addSen" @click="addSt">添加题目</div>
  2463. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  2464. <div class="sentenTopBox">
  2465. <div class="sentenTop" :index="stIndex + 1">
  2466. <div>题目设置</div>
  2467. <div>
  2468. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  2469. </div>
  2470. <div @click="addSen(stIndex)">添加</div>
  2471. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2472. </div>
  2473. </div>
  2474. <div class="cardList">
  2475. <div v-if="st.addSentence.length > 0" class="cardBox">
  2476. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2477. @click="setRightAnswer(s, stIndex, sIndex)">
  2478. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2479. <div>{{ s }}</div>
  2480. </el-tooltip>
  2481. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2482. <img src="../../../assets/icon/delete.png" alt="" />
  2483. </div>
  2484. </div>
  2485. </div>
  2486. <div class="card">
  2487. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  2488. </div>
  2489. </div>
  2490. <div class="rightCardBox">
  2491. <div>正确顺序</div>
  2492. <div class="rightCardList">
  2493. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2494. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2495. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2496. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2497. <div>{{ r }}</div>
  2498. </el-tooltip>
  2499. </div>
  2500. <div>{{ rIndex + 1 }}</div>
  2501. </div>
  2502. </div>
  2503. <div class="card" v-if="st.rightAnswer.length == 0">
  2504. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  2505. </div>
  2506. <div class="card" v-else>
  2507. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  2508. </div>
  2509. </div>
  2510. </div>
  2511. </div>
  2512. </div>
  2513. </div>
  2514. <span slot="footer" class="dialog-footer">
  2515. <el-button @click="closePan(47)">取 消</el-button>
  2516. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2517. </span>
  2518. </el-dialog>
  2519. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2520. :before-close="handleClose" class="dialog_diy">
  2521. <el-form>
  2522. <!-- <el-form-item label="文本标题">
  2523. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2524. </el-form-item> -->
  2525. <div>表格内容</div>
  2526. <Table v-model="tableJson.text" @change="change"></Table>
  2527. </el-form>
  2528. <span slot="footer" class="dialog-footer">
  2529. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2530. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2531. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2532. </span>
  2533. </el-dialog>
  2534. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2535. :before-close="handleClose" class="dialog_diy">
  2536. <el-form>
  2537. <!-- <el-form-item label="文本标题">
  2538. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2539. </el-form-item> -->
  2540. <div>文档内容</div>
  2541. <editor-bar v-model="wordJson.text"></editor-bar>
  2542. </el-form>
  2543. <span slot="footer" class="dialog-footer">
  2544. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2545. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2546. </span>
  2547. </el-dialog>
  2548. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2549. :before-close="handleClose" class="dialog_diy">
  2550. <div style="
  2551. width: 100%;
  2552. display: flex;
  2553. flex-direction: row;
  2554. flex-wrap: nowrap;
  2555. align-items: center;
  2556. justify-content: center;
  2557. ">
  2558. <div>班级:</div>
  2559. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2560. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2561. </el-option>
  2562. </el-select>
  2563. </div>
  2564. <span slot="footer" class="dialog-footer">
  2565. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2566. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2567. </span>
  2568. </el-dialog>
  2569. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2570. :before-close="handleClose" class="dialog_diy">
  2571. <div style="
  2572. width: 100%;
  2573. display: flex;
  2574. flex-direction: row;
  2575. flex-wrap: nowrap;
  2576. align-items: center;
  2577. justify-content: center;
  2578. ">
  2579. <div>随机码:</div>
  2580. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  2581. </div>
  2582. <span slot="footer" class="dialog-footer">
  2583. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  2584. <el-button type="primary" @click="addInvite">确定</el-button>
  2585. </span>
  2586. </el-dialog>
  2587. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  2588. :before-close="handleClose" class="dialog_diy">
  2589. <div>
  2590. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  2591. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  2592. </div>
  2593. <span slot="footer" class="dialog-footer">
  2594. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  2595. <el-button type="primary" @click="addPreTime">确定</el-button>
  2596. </span>
  2597. </el-dialog>
  2598. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  2599. class="dialog_diy">
  2600. <div>
  2601. <div style="
  2602. width: 100%;
  2603. display: flex;
  2604. flex-direction: row;
  2605. flex-wrap: nowrap;
  2606. align-content: center;
  2607. align-items: center;
  2608. justify-content: space-between;
  2609. ">
  2610. <div style="
  2611. display: flex;
  2612. flex-flow: row nowrap;
  2613. align-items: flex-start;
  2614. width: 100%;
  2615. flex-direction: column;
  2616. flex-wrap: nowrap;
  2617. position: relative;
  2618. ">
  2619. <div class="e_box">
  2620. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  2621. <div class="e_card_picture">
  2622. <img src="../../../assets/e_picture.png" />
  2623. </div>
  2624. <div class="e_card_name">
  2625. <span>{{ item.title }}</span>
  2626. </div>
  2627. <div class="e_card_btn">
  2628. <span @click="checkEva(item.id, 2)">导入</span>
  2629. </div>
  2630. </div>
  2631. <div class="addEva" @click="openT">
  2632. <img src="../../../assets/icon/addEva.png" alt="" />
  2633. </div>
  2634. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  2635. 暂无数据
  2636. </div>
  2637. </div>
  2638. </div>
  2639. </div>
  2640. </div>
  2641. <span slot="footer" class="dialog-footer">
  2642. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  2643. </span>
  2644. </el-dialog>
  2645. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  2646. :before-close="handleClose" class="dialog_diy">
  2647. <div class="groupBox">
  2648. <div v-if="groupJson.group" class="groupContent">
  2649. <div class="groupTitle">请设置小组数量及名称</div>
  2650. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  2651. <span class="groupn">第{{ index + 1 }}组名称:</span>
  2652. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  2653. <div class="groupBtn">
  2654. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  2655. 添加</el-button>
  2656. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2657. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  2658. </div>
  2659. </div>
  2660. </div>
  2661. <div class="groupContent">
  2662. <div class="groupTitle">请设置每组人数</div>
  2663. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2664. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2665. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  2666. @change="numberPan"></el-input>
  2667. </div>
  2668. </div>
  2669. <span slot="footer" class="dialog-footer">
  2670. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  2671. <el-button type="primary" @click="addGroupJson">确定</el-button>
  2672. </span>
  2673. </el-dialog>
  2674. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  2675. :before-close="handleClose" class="dialog_diy">
  2676. <div style="
  2677. width: 100%;
  2678. display: flex;
  2679. flex-direction: row;
  2680. flex-wrap: nowrap;
  2681. align-items: center;
  2682. justify-content: center;
  2683. ">
  2684. <div style="min-width: fit-content;">文件名称:</div>
  2685. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  2686. </div>
  2687. <span slot="footer" class="dialog-footer">
  2688. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  2689. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  2690. </span>
  2691. </el-dialog>
  2692. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  2693. </div>
  2694. </template>
  2695. <script>
  2696. import "../../../common/aws-sdk-2.235.1.min.js";
  2697. import { tools as toolsData } from "../../../common/tools.js";
  2698. import $ from "jquery";
  2699. import EditorBar from "../../../components/tools/wangEnduit";
  2700. import Table from "../../../components/tools/table";
  2701. import Mind from "../../tools/jsmind2";
  2702. import Time from "../../tools/time.vue";
  2703. import Sunburst from "../../tools/sunburst";
  2704. import SeeBoard from "../../tools/seeBoard";
  2705. import weilaiData from "../components/weilai.js";
  2706. import sourceDialog from "../teacherSource/dialog.vue";
  2707. import interVideo from "../interVideo/index.vue";
  2708. import groupBox from "./group/group.vue"
  2709. var OpenCC = require("opencc-js");
  2710. let converter = OpenCC.Converter({
  2711. from:'hk',
  2712. to:'cn'
  2713. })
  2714. export default {
  2715. components: {
  2716. EditorBar,
  2717. Mind,
  2718. Time,
  2719. Sunburst,
  2720. SeeBoard,
  2721. Table,
  2722. sourceDialog,
  2723. interVideo,
  2724. groupBox
  2725. },
  2726. data() {
  2727. return {
  2728. person: this.$route.query.person || "",
  2729. checkAll: false,
  2730. chooseType: 1,
  2731. checkedCities: [],
  2732. isIndeterminate: true,
  2733. isSysPic: false,
  2734. isSysPic2: false,
  2735. steps: 1,
  2736. nbOrder: 0,
  2737. courseId: "",
  2738. chapToolsType: 0,
  2739. chapTools: [
  2740. {
  2741. tools: [],
  2742. toolDetail: "",
  2743. },
  2744. ],
  2745. line: "",
  2746. lineTitle: "",
  2747. sysPic: [],
  2748. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  2749. sentenceList2: [],
  2750. isPushTitleList: [],
  2751. lineCount: 0,
  2752. lineType: 0,
  2753. chapCount: 0,
  2754. courseName: "",
  2755. isTeacherSee: true,
  2756. courseText: "",
  2757. preTime: 0,
  2758. formLabelWidth: "100px",
  2759. choosePicVisible: false,
  2760. sysPicVisible: false,
  2761. uploadLoading1: false,
  2762. noneBtnImg: false,
  2763. updateBoolean2: false,
  2764. unitIndex: 0,
  2765. taskCount: 0,
  2766. dialogVisible: false,
  2767. dialogVisible1: false,
  2768. dialogVisible2: false,
  2769. dialogVisible3: false,
  2770. dialogVisible4: false,
  2771. dialogVisible5: false,
  2772. dialogVisible6: false,
  2773. dialogVisible7: false,
  2774. dialogVisible8: false,
  2775. dialogVisible9: false,
  2776. dialogVisibleClass: false,
  2777. dialogVisibleMember: false,
  2778. dialogVisibleMp3: false,
  2779. dialogVisibleSelect: false,
  2780. dialogVisibleSentence: false,
  2781. dialogVisibleRate: false,
  2782. dialogVisibleChoice: false,
  2783. dialogVisiblemb: false,
  2784. dialogVisibleInvite: false,
  2785. dialogVisibleSource: false,
  2786. dialogVisibleVideo: false,
  2787. dialogVisibleupdataVideoT: false,
  2788. isClickColor: 1,
  2789. toolIndexType: "",
  2790. publicTool: 0,
  2791. searchPeople: "",
  2792. searchTN: "",
  2793. userid: this.$route.query.userid,
  2794. oid: this.$route.query.oid,
  2795. org: this.$route.query.org,
  2796. role: this.$route.query.role,
  2797. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  2798. dialogVisibleTable: false,
  2799. dialogVisibleWord: false,
  2800. tableJson: { text: "" },
  2801. wordJson: { text: "" },
  2802. dialogVisibleMoreUpload: false,
  2803. dialogVisiblePreTime: false,
  2804. uploadJson: [],
  2805. classJuri: [],
  2806. gradeList: [],
  2807. cover: [], //课程封面
  2808. myWord: [],
  2809. evaJuri: [],
  2810. evalua: "",
  2811. targetArray: [],
  2812. eTitle: "",
  2813. eJson: {},
  2814. fid: "", //一级
  2815. sid: "", //二级
  2816. tid: "", //二级
  2817. typeMode: 1,
  2818. eJSONNum: 0,
  2819. data: {
  2820. meta: {
  2821. name: "example",
  2822. author: "dd@163.com",
  2823. version: "0.2",
  2824. },
  2825. format: "node_array",
  2826. data: [{ id: "root", isroot: true, topic: "" }],
  2827. },
  2828. askJson: {
  2829. askCount: 1,
  2830. askTitle: "",
  2831. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2832. },
  2833. askJson2: {},
  2834. testJson: {},
  2835. testJson2: {},
  2836. selectJson: {},
  2837. selectJson2: {},
  2838. rateJson: [],
  2839. unitJson2: [],
  2840. unitJson: [
  2841. {
  2842. dyName: "", //单元标题
  2843. chapterInfo: [
  2844. {
  2845. isread: false,
  2846. chapterid: this.guid(),
  2847. title: "",
  2848. courseName: "",
  2849. taskJson: [
  2850. {
  2851. task: "",
  2852. taskDetail: "",
  2853. chapterData: [],
  2854. toolChoose: [
  2855. {
  2856. tool: [],
  2857. toolDetail: "",
  2858. toolType: 0,
  2859. askCount: 1,
  2860. askTitle: "",
  2861. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2862. },
  2863. ],
  2864. toolText: "",
  2865. isShowTools: false,
  2866. askCount: 1,
  2867. isFold: 0,
  2868. askTitle: "",
  2869. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2870. checkJson: [{ checkCount: [], checkPerent: [] }],
  2871. homeworkList: [],
  2872. },
  2873. ],
  2874. itemCount: 1,
  2875. fileList1: [],
  2876. video: [],
  2877. testData: [],
  2878. pData: [],
  2879. templateArray: [],
  2880. },
  2881. ],
  2882. },
  2883. ],
  2884. studentJuri: [],
  2885. teacherJuri: [],
  2886. checkboxList: [],
  2887. checkboxList2: [],
  2888. checkboxList3: [],
  2889. courseDetail: "",
  2890. classList: [],
  2891. classSearch: "",
  2892. gradeId: "",
  2893. number: "",
  2894. tTitle: "",
  2895. tdetail: "",
  2896. templateC: {},
  2897. AttText: {},
  2898. AttTextType: 0,
  2899. AttTextIndex: 0,
  2900. cTemplate: "",
  2901. CourseType: [],
  2902. CourseType2: [],
  2903. CourseTypeJson: {},
  2904. courseTypeId: [],
  2905. courseTypeSon: [],
  2906. clearArray: [],
  2907. pTypeCheck: [],
  2908. pTypeCheckName: [],
  2909. loading: false,
  2910. toolType: 0,
  2911. inputShow: true,
  2912. inputShow2: true,
  2913. toolIndex: 0,
  2914. cidType: 0,
  2915. answerQ: "",
  2916. answerQ2: "",
  2917. grade: [],
  2918. grade2: [],
  2919. courseUserid: "",
  2920. timer: null,
  2921. timer2: null,
  2922. pasteTimer: null,
  2923. checkId: "",
  2924. isDelete: 1,
  2925. addindex: 0,
  2926. selectSteps: 1,
  2927. groupJson: {},
  2928. dialogVisibleGroup: false,
  2929. rightBoxHeight: 0,
  2930. ManAarray: [],
  2931. checkBoolean: false,
  2932. inviteCode: [],
  2933. inviteId: "",
  2934. icode: "",
  2935. easyArray: [2, 4],
  2936. sourceData: {},
  2937. updateSourcePan: false,
  2938. videoJson: {},
  2939. isBtnDisplay: false,
  2940. isPasteTask: false,
  2941. isPasteChoice: false,
  2942. sysPicVisible2: false,
  2943. imageloading: false,
  2944. searchImageValue: "",
  2945. ppage: 1,
  2946. imageList: [],
  2947. heightPx: '100%',
  2948. toolsData: JSON.parse(converter(JSON.stringify(toolsData))),
  2949. pageSize: 200,
  2950. total: 0,
  2951. page: 0,
  2952. isLoading2: false,
  2953. teacherLoading: false,
  2954. };
  2955. },
  2956. directives: {
  2957. autoHeight: {
  2958. update(el, binding) {
  2959. const { value } = binding
  2960. if (value && typeof value === 'number') {
  2961. el.style.height = `${value}px`
  2962. } else {
  2963. el.style.height = 'auto'
  2964. }
  2965. },
  2966. componentUpdated(el) {
  2967. el.style.height = `${el.scrollHeight + 5}px`
  2968. },
  2969. },
  2970. },
  2971. computed: {
  2972. // rightBoxHeight: function () {
  2973. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  2974. // },
  2975. offsetLetfPx: function () {
  2976. //addnum可以直接在模板语法里面用,相当于data内的值
  2977. return (
  2978. $(".cru_select")[this.unitIndex] &&
  2979. $(".cru_select")[this.unitIndex].offsetLeft
  2980. );
  2981. },
  2982. getMan2() {
  2983. return function (people) {
  2984. let _people = people;
  2985. let _people2 = "";
  2986. if (this.ManAarray.length) {
  2987. for (var i = 0; i < this.ManAarray.length; i++) {
  2988. if (this.ManAarray[i].userid == people) {
  2989. _people2 = this.ManAarray[i].name;
  2990. break;
  2991. }
  2992. }
  2993. }
  2994. if (people == this.courseUserid) {
  2995. return "";
  2996. }
  2997. return this.ManAarray.length ? _people2 : "";
  2998. };
  2999. },
  3000. getListMan2() {
  3001. return function (list) {
  3002. let _people2 = [];
  3003. if (this.ManAarray.length) {
  3004. for (var j = 0; j < list.length; j++) {
  3005. let people = list[j];
  3006. for (var i = 0; i < this.ManAarray.length; i++) {
  3007. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  3008. _people2.push(this.ManAarray[i].name);
  3009. break;
  3010. }
  3011. }
  3012. }
  3013. }
  3014. return this.ManAarray.length ? _people2.join("、") : "";
  3015. };
  3016. },
  3017. isInvite() {
  3018. return function (cid) {
  3019. let array = [];
  3020. for (var i = 0; i < this.inviteCode.length; i++) {
  3021. array.push(this.inviteCode[i].cid);
  3022. }
  3023. return array.indexOf(cid) != -1;
  3024. };
  3025. },
  3026. getInviteCodeC() {
  3027. return function (cid) {
  3028. let array = [];
  3029. for (var i = 0; i < this.inviteCode.length; i++) {
  3030. array.push(this.inviteCode[i].cid);
  3031. }
  3032. return this.inviteCode[array.indexOf(cid)].ic;
  3033. };
  3034. },
  3035. getClassC() {
  3036. return function (c) {
  3037. let _c2 = "";
  3038. if (this.grade.length) {
  3039. for (var i = 0; i < this.grade.length; i++) {
  3040. if (this.grade[i].id == c) {
  3041. _c2 = this.grade[i].name;
  3042. break;
  3043. }
  3044. }
  3045. }
  3046. return this.grade.length ? _c2 : "";
  3047. };
  3048. },
  3049. getListClassC() {
  3050. return function (list) {
  3051. let _c2 = [];
  3052. if (this.grade.length) {
  3053. for (var j = 0; j < list.length; j++) {
  3054. let c = list[j]
  3055. for (var i = 0; i < this.grade.length; i++) {
  3056. if (this.grade[i].id == c) {
  3057. _c2.push(this.grade[i].name);
  3058. break;
  3059. }
  3060. }
  3061. }
  3062. }
  3063. return this.grade.length ? _c2.join('、') : "";
  3064. };
  3065. },
  3066. },
  3067. watch: {
  3068. checkboxList2(newValue, oldValue) {
  3069. if (this.grade.length && newValue) {
  3070. this.classList = []
  3071. for (var j = 0; j < this.grade.length; j++) {
  3072. if (newValue.indexOf(this.grade[j].id) !== -1) {
  3073. this.classList.push(this.grade[j])
  3074. }
  3075. }
  3076. }
  3077. },
  3078. unitIndex(newValue, oldValue) {
  3079. if (this.isDelete == 2) {
  3080. this.isDelete = 1;
  3081. return;
  3082. }
  3083. if (this.cid != "") {
  3084. let _unitIndex = oldValue;
  3085. if (
  3086. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3087. JSON.stringify(this.unitJson[_unitIndex])
  3088. ) {
  3089. this.$refs.rightboxR.scrollTop = 0;
  3090. return;
  3091. }
  3092. let cPan = 1;
  3093. for (
  3094. var j = 0;
  3095. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3096. j++
  3097. ) {
  3098. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3099. j
  3100. ].proVisible = false;
  3101. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3102. j
  3103. ].proVisible2 = false;
  3104. if (
  3105. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3106. .length > 1
  3107. ) {
  3108. for (
  3109. var z = 0;
  3110. z <
  3111. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3112. .length;
  3113. z++
  3114. ) {
  3115. if (
  3116. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3117. .toolChoose[z].tool.length
  3118. ) {
  3119. this.$message.error("请把工具添加完整");
  3120. cPan = 2;
  3121. break;
  3122. }
  3123. }
  3124. }
  3125. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3126. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3127. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3128. (ele) => {
  3129. return ele.value != "";
  3130. }
  3131. );
  3132. }
  3133. }
  3134. if (cPan == 2) {
  3135. this.unitIndex = oldValue;
  3136. return;
  3137. }
  3138. for (var i = 0; i < this.unitJson.length; i++) {
  3139. if (this.addindex != i) {
  3140. delete this.unitJson[i].isUpdate;
  3141. }
  3142. }
  3143. this.$refs.rightboxR.scrollTop = 0;
  3144. this.addindex = -1;
  3145. let params = [
  3146. {
  3147. cid: this.cid,
  3148. chapters: JSON.stringify(this.unitJson),
  3149. uid: this.userid,
  3150. unitIndex: _unitIndex,
  3151. },
  3152. ];
  3153. this.ajax
  3154. .post(this.$store.state.api + "updateWorkNew4", params)
  3155. .then((res) => {
  3156. // this.$message({
  3157. // message: "修改成功",
  3158. // type: "success",
  3159. // });
  3160. // this.courseId = this.cid;
  3161. })
  3162. .catch((err) => {
  3163. this.$message.error(this.lang.Poorinternetconnection);
  3164. console.error(err);
  3165. });
  3166. }
  3167. },
  3168. steps(newValue) {
  3169. if (newValue == 4) {
  3170. this.goTo(
  3171. "/synergyCourse?userid=" +
  3172. this.userid +
  3173. "&oid=" +
  3174. this.oid +
  3175. "&org=" +
  3176. this.org +
  3177. "&role=" +
  3178. this.role+
  3179. '&person=' +
  3180. this.person
  3181. );
  3182. }
  3183. },
  3184. },
  3185. methods: {
  3186. handleCurrentChange(val) {
  3187. // console.log(`当前页: ${val}`);
  3188. this.page = val;
  3189. this.getTeacher();
  3190. this.checkAll=false;
  3191. this.isIndeterminate = true;
  3192. },
  3193. openAI() {
  3194. window.topU.postMessage({ tools: "64" }, "*");
  3195. },
  3196. setMan() {
  3197. // let teacherJuri = this.teacherJuri2;
  3198. this.ManAarray = [];
  3199. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3200. if (_user.indexOf(this.userid) == -1) {
  3201. _user.push(this.userid);
  3202. }
  3203. if (_user.indexOf(this.courseUserid) == -1) {
  3204. _user.push(this.courseUserid);
  3205. }
  3206. let params = [{
  3207. uid: _user.join(","),
  3208. }];
  3209. this.ajax
  3210. .post(this.$store.state.api + "getAllUserByIdP", params)
  3211. .then((res) => {
  3212. let teacherJuri = res.data[0];
  3213. this.ManAarray = teacherJuri;
  3214. })
  3215. .catch((err) => {
  3216. console.error(err);
  3217. });
  3218. },
  3219. previewImg(url) {
  3220. this.$hevueImgPreview(url);
  3221. },
  3222. btnDisplay(bool) {
  3223. this.isBtnDisplay = bool
  3224. },
  3225. scrollChange() {
  3226. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3227. // document.querySelector('.course_left').scrollHeight
  3228. // document.querySelector('.stepsBottom2').scrollHeight
  3229. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  3230. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  3231. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  3232. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  3233. let top = $(".rightBox")[0].scrollTop - maxheight;
  3234. // if (top < client) {
  3235. // $('.stepsBottom2')[0].style.position = 'absolute'
  3236. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  3237. // // $('.stepsBottom2')[0].style.top = client + 'px'
  3238. // } else
  3239. if (top > 0) {
  3240. let top = $(".rightBox")[0].offsetTop;
  3241. $(".stepsBottom2")[0].style.position = "fixed";
  3242. $(".stepsBottom2")[0].style.top = top + "px";
  3243. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  3244. // $('.stepsBottom2')[0].style.top = top + 'px'
  3245. } else {
  3246. $(".stepsBottom2")[0].style.position = "absolute";
  3247. $(".stepsBottom2")[0].style.top = "0px";
  3248. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  3249. }
  3250. const clientHeight = $(".rightBox")[0].clientHeight;
  3251. const scrollTop = $(".rightBox")[0].scrollTop;
  3252. const scrollHeight = $(".rightBox")[0].scrollHeight;
  3253. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  3254. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  3255. }
  3256. },
  3257. handleCheckAllChange(val) {
  3258. this.checkboxList3 = [];
  3259. if(val){
  3260. this.teacherJuri.forEach(item=>{
  3261. this.checkboxList3.push(item.userid);
  3262. })
  3263. }
  3264. this.isIndeterminate = false;
  3265. },
  3266. handleCheckedTeacherJuriChange(value) {
  3267. let checkedCount = value.length;
  3268. this.checkAll = checkedCount === this.teacherJuri.length;
  3269. this.isIndeterminate =
  3270. checkedCount > 0 && checkedCount < this.teacherJuri.length;
  3271. },
  3272. addHw(e) {
  3273. var el = e.currentTarget;
  3274. el.getElementsByTagName("input")[0].click();
  3275. },
  3276. change(val) {
  3277. if (this.dialogVisible1) {
  3278. this.tdetail = val
  3279. } else if (this.dialogVisible6) {
  3280. this.AttText.text = val
  3281. } else if (this.dialogVisible2) {
  3282. this.cTemplate = val
  3283. } else if (this.dialogVisibleTable) {
  3284. this.tableJson.text = val
  3285. }
  3286. this.$forceUpdate();
  3287. console.log(val);
  3288. },
  3289. change2(val) {
  3290. console.log(val);
  3291. this.$forceUpdate();
  3292. },
  3293. handleClose(done) {
  3294. this.page = 0;
  3295. done();
  3296. },
  3297. closePan(tool) {
  3298. if (tool == 15) {
  3299. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  3300. this.dialogVisible8 = false
  3301. } else {
  3302. this.closeConfirm(tool);
  3303. }
  3304. } else if (tool == 4) {
  3305. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  3306. this.dialogVisible5 = false
  3307. } else {
  3308. this.closeConfirm(tool);
  3309. }
  3310. } else if (tool == 45) {
  3311. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  3312. this.dialogVisibleChoice = false
  3313. } else {
  3314. this.closeConfirm(tool);
  3315. }
  3316. } else if (tool == 41) {
  3317. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  3318. this.dialogVisibleSelect = false
  3319. } else {
  3320. this.closeConfirm(tool);
  3321. }
  3322. } else if (tool == 47) {
  3323. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  3324. this.dialogVisibleSentence = false
  3325. } else {
  3326. this.closeConfirm(tool);
  3327. }
  3328. }
  3329. },
  3330. closeConfirm(tool) {
  3331. this
  3332. .$confirm(this.lang.wantsavecontent, this.lang.tip, {
  3333. confirmButtonText: this.lang.saveCoco,
  3334. cancelButtonText: this.lang.notsave,
  3335. distinguishCancelAndClose: true,
  3336. type: "warning",
  3337. })
  3338. .then(() => {
  3339. if (tool == 15) {
  3340. this.addAnswer();
  3341. } else if (tool == 4) {
  3342. this.addAsk();
  3343. } else if (tool == 45) {
  3344. this.addTest();
  3345. } else if (tool == 41) {
  3346. this.addSelectAnswer();
  3347. } else if (tool == 47) {
  3348. this.addSentenceTool();
  3349. }
  3350. })
  3351. .catch(() => {
  3352. if (tool == 15) {
  3353. this.dialogVisible8 = false;
  3354. } else if (tool == 4) {
  3355. this.dialogVisible5 = false;
  3356. } else if (tool == 45) {
  3357. this.dialogVisibleChoice = false;
  3358. } else if (tool == 41) {
  3359. this.dialogVisibleSelect = false;
  3360. } else if (tool == 47) {
  3361. this.dialogVisibleSentence = false;
  3362. }
  3363. });
  3364. },
  3365. imgChange2(i, j) {
  3366. var _tmp = this.testJson.testJson[i].checkList[j];
  3367. this.noneBtnImg = _tmp.length >= 1;
  3368. },
  3369. imgChange3(i) {
  3370. var _tmp = this.testJson.testJson[i];
  3371. this.noneBtnImg = _tmp.length >= 1;
  3372. },
  3373. imgChange1(file, fileList, type, itemTaskIndex) {
  3374. if (type == 1) {
  3375. var _tmp = this.cover;
  3376. } else if (
  3377. type == 2 ||
  3378. type == 3 ||
  3379. type == 6 ||
  3380. type == 7 ||
  3381. type == 8
  3382. ) {
  3383. var _tmp =
  3384. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3385. .chapterData;
  3386. } else if (type == 4) {
  3387. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3388. } else {
  3389. var _tmp =
  3390. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3391. .homeworkList;
  3392. }
  3393. this.noneBtnImg = _tmp.length >= 1;
  3394. },
  3395. goTo(path) {
  3396. this.$router.push(path);
  3397. },
  3398. guid() {
  3399. var _num,
  3400. i,
  3401. _guid = "";
  3402. for (i = 0; i < 32; i++) {
  3403. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3404. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3405. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3406. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3407. _guid += "-";
  3408. }
  3409. }
  3410. return _guid;
  3411. },
  3412. lastSteps() {
  3413. if (this.cid && this.userid != this.courseUserid && this.role != '1') {
  3414. this.goTo(
  3415. "/synergyCourse?userid=" +
  3416. this.userid +
  3417. "&oid=" +
  3418. this.oid +
  3419. "&org=" +
  3420. this.org +
  3421. "&role=" +
  3422. this.role+
  3423. '&person=' +
  3424. this.person
  3425. );
  3426. } else {
  3427. this
  3428. .$confirm(this.lang.wantsavecontent, this.lang.tip, {
  3429. confirmButtonText: this.lang.saveCoco,
  3430. cancelButtonText: this.lang.notsave,
  3431. distinguishCancelAndClose: true,
  3432. type: "warning",
  3433. })
  3434. .then(() => {
  3435. if (this.cid == "" || this.cid == undefined) {
  3436. if (this.courseName == "") {
  3437. this.$message.error(this.lang.fillincoursename);
  3438. return;
  3439. } else {
  3440. this.addWork();
  3441. }
  3442. } else {
  3443. if (this.courseName == "") {
  3444. this.$message.error(this.lang.fillincoursename);
  3445. return;
  3446. } else {
  3447. // if (this.userid != this.courseUserid && this.role != "1") {
  3448. // this.updateWork2();
  3449. // } else {
  3450. this.updateWork();
  3451. // }
  3452. }
  3453. }
  3454. })
  3455. .catch((v) => {
  3456. console.log(v)
  3457. if (v == "cancel") {
  3458. this.goTo(
  3459. "/synergyCourse?userid=" +
  3460. this.userid +
  3461. "&oid=" +
  3462. this.oid +
  3463. "&org=" +
  3464. this.org +
  3465. "&role=" +
  3466. this.role+
  3467. '&person=' +
  3468. this.person
  3469. );
  3470. }
  3471. });
  3472. }
  3473. },
  3474. nextSteps() {
  3475. if (this.cid == "" || this.cid == undefined) {
  3476. if (this.courseName == "") {
  3477. this.$message.error(this.lang.fillincoursename);
  3478. return;
  3479. } else {
  3480. this.addWork();
  3481. }
  3482. } else {
  3483. if (this.courseName == "") {
  3484. this.$message.error(this.lang.fillincoursename);
  3485. return;
  3486. } else {
  3487. // if (this.userid != this.courseUserid && this.role != "1") {
  3488. // this.updateWork2();
  3489. // } else {
  3490. this.updateWork();
  3491. // }
  3492. }
  3493. }
  3494. this.$refs.stepBox.scrollTop = 0;
  3495. },
  3496. changeName() {
  3497. if (this.cid == "" || this.cid == undefined) {
  3498. if (this.courseName == "") {
  3499. this.$message.error(this.lang.fillincoursename);
  3500. return;
  3501. } else {
  3502. this.addWork(2);
  3503. }
  3504. } else {
  3505. if (this.courseName == "") {
  3506. this.$message.error(this.lang.fillincoursename);
  3507. return;
  3508. } else {
  3509. this.updateWork(2);
  3510. }
  3511. }
  3512. },
  3513. unitSet(i) {
  3514. this.unitIndex = i;
  3515. // this.$refs.rightboxR.scrollTop = 0;
  3516. },
  3517. time() {
  3518. if (!this.now) {
  3519. this.now = new Date().getTime();
  3520. return true;
  3521. } else {
  3522. let time = new Date().getTime();
  3523. if (time - this.now > 3000) {
  3524. this.now = time;
  3525. return true;
  3526. } else {
  3527. return false;
  3528. }
  3529. }
  3530. },
  3531. deleteUnit(i) {
  3532. var _this = this;
  3533. if (_this.time()) {
  3534. _this
  3535. .$confirm("确定删除此单元吗?", "提示", {
  3536. confirmButtonText: "确定",
  3537. cancelButtonText: "取消",
  3538. type: "warning",
  3539. })
  3540. .then(() => {
  3541. _this.isDelete = 2;
  3542. // _this.unitIndex = _this.unitIndex - 1;
  3543. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3544. // _this.$message.success("删除成功");
  3545. })
  3546. .catch(() => {
  3547. return;
  3548. });
  3549. }
  3550. },
  3551. deleteWork(chapid) {
  3552. let params = [
  3553. {
  3554. cid: this.cid,
  3555. chapters: JSON.stringify(this.unitJson),
  3556. uid: this.userid,
  3557. chapid: chapid,
  3558. },
  3559. ];
  3560. this.ajax
  3561. .post(this.$store.state.api + "deleteWork", params)
  3562. .then((res) => {
  3563. this.$message({
  3564. message: this.lang.DeleteSuccessful,
  3565. type: "success",
  3566. });
  3567. this.unitJson.splice(this.unitIndex, 1);
  3568. this.unitIndex = this.unitIndex - 1;
  3569. })
  3570. .catch((err) => {
  3571. this.$message.error(this.lang.Poorinternetconnection);
  3572. console.error(err);
  3573. });
  3574. },
  3575. deleteTool(itemTaskIndex, i) {
  3576. var _this = this;
  3577. if (_this.time()) {
  3578. _this
  3579. .$confirm("确定删除此工具吗?", "提示", {
  3580. confirmButtonText: "确定",
  3581. cancelButtonText: "取消",
  3582. type: "warning",
  3583. })
  3584. .then(() => {
  3585. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3586. itemTaskIndex
  3587. ].toolChoose.splice(i, 1);
  3588. _this.$message.success(this.lang.DeleteSuccessful);
  3589. })
  3590. .catch(() => {
  3591. return;
  3592. });
  3593. }
  3594. },
  3595. deleteSentence(i) {
  3596. var _this = this;
  3597. _this
  3598. .$confirm("确定删除此题目吗?", "提示", {
  3599. confirmButtonText: "确定",
  3600. cancelButtonText: "取消",
  3601. type: "warning",
  3602. })
  3603. .then(() => {
  3604. _this.sentenceList.splice(i, 1);
  3605. _this.$message.success(this.lang.DeleteSuccessful);
  3606. })
  3607. .catch(() => {
  3608. return;
  3609. });
  3610. },
  3611. deleteS(s, i, j) {
  3612. this.sentenceList[i].addSentence.splice(j, 1);
  3613. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3614. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3615. this.sentenceList[i].rightAnswer.splice(a, 1);
  3616. }
  3617. },
  3618. openT() {
  3619. window.topU.postMessage({ tools: "25" }, "*");
  3620. },
  3621. deleteTask(i) {
  3622. var _this = this;
  3623. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  3624. _this
  3625. .$confirm("确定删除此任务吗?", "提示", {
  3626. confirmButtonText: "确定",
  3627. cancelButtonText: "取消",
  3628. type: "warning",
  3629. })
  3630. .then(() => {
  3631. if (i == 0) {
  3632. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3633. i + 1
  3634. ].chapterData = JSON.parse(
  3635. JSON.stringify(
  3636. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  3637. .chapterData
  3638. )
  3639. );
  3640. }
  3641. _this.$forceUpdate();
  3642. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  3643. _this.$message.success(this.lang.DeleteSuccessful);
  3644. // this.$nextTick(() => {
  3645. // $('.stepsBottom2')[0].style.transition = 'unset'
  3646. // setTimeout(() => {
  3647. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3648. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  3649. // let top = $('.stepsBottom2')[0].offsetTop - 20
  3650. // if (top > client) {
  3651. // $('.stepsBottom2')[0].style.top = client + 'px'
  3652. // }
  3653. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  3654. // this.$forceUpdate()
  3655. // }, 500)
  3656. // })
  3657. })
  3658. .catch(() => {
  3659. return;
  3660. });
  3661. },
  3662. handlePictureCardPreview(file) {
  3663. this.dialogImageUrl = file.url;
  3664. },
  3665. clean(i, c) {
  3666. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3667. },
  3668. handle_remove1(file, fileList, type) {
  3669. var _tmp = this.cover;
  3670. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3671. // if (_tmp[i].uid == file.uid) {
  3672. // _tmp.splice(i, 1);
  3673. // break;
  3674. // }
  3675. // this.cover = _tmp;
  3676. // }
  3677. this.cover = [];
  3678. this.noneBtnImg = this.cover.length >= 1;
  3679. this.isSysPic = false;
  3680. this.isSysPic2 = false;
  3681. this.$forceUpdate();
  3682. },
  3683. addImg(e) {
  3684. var el = e.currentTarget;
  3685. el.getElementsByTagName("input")[0].click();
  3686. e.target.value = "";
  3687. },
  3688. addChaptersTools(i) {
  3689. this.chapTools = [
  3690. {
  3691. tools: [],
  3692. toolDetail: "",
  3693. },
  3694. ];
  3695. this.chapCount = i;
  3696. this.dialogVisible4 = true;
  3697. },
  3698. isNoFinsh() {
  3699. this.$message.warning("功能正在开发中");
  3700. },
  3701. addAttText(i) {
  3702. this.AttText = {
  3703. title: "",
  3704. text: "",
  3705. };
  3706. this.taskCount = i;
  3707. this.AttTextType = 0;
  3708. this.$forceUpdate();
  3709. this.dialogVisible6 = true;
  3710. setTimeout(() => {
  3711. this.$refs['fuInput'].focus();
  3712. }, 100);
  3713. },
  3714. openLine(i) {
  3715. this.line = "";
  3716. this.lineCount = i;
  3717. this.lineType = 0;
  3718. this.$forceUpdate();
  3719. this.dialogVisible7 = true;
  3720. },
  3721. pasteLine(i) {
  3722. navigator.clipboard
  3723. .readText()
  3724. .then((v) => {
  3725. console.log("获取剪贴板成功:", v);
  3726. const html = v;
  3727. const regex = /src="(.*?)"/g;
  3728. const match = regex.exec(html);
  3729. if (match && match[1]) {
  3730. console.log(match[1]);
  3731. this.$message.success("粘贴成功");
  3732. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3733. i
  3734. ].chapterData.push({
  3735. name: "链接",
  3736. title: "嵌入代码",
  3737. url: match[1],
  3738. type: 8,
  3739. });
  3740. } else {
  3741. // console.log("未找到包含 src 属性的 iframe");
  3742. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  3743. }
  3744. })
  3745. .catch((v) => {
  3746. console.log("获取剪贴板失败: ", v);
  3747. });
  3748. },
  3749. openSource(i) {
  3750. this.lineCount = i;
  3751. this.sourceData = {};
  3752. this.dialogVisibleSource = true;
  3753. this.updateSourcePan = false;
  3754. },
  3755. addSource() {
  3756. if (!Object.keys(this.sourceData).length) {
  3757. this.$message.error("请选择要上传的资源");
  3758. return;
  3759. }
  3760. let keys = Object.keys(this.sourceData);
  3761. for (var i = 0; i < keys.length; i++) {
  3762. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3763. this.lineCount
  3764. ].chapterData.push({
  3765. name: "链接",
  3766. title: this.sourceData[keys[i]].name,
  3767. url: this.sourceData[keys[i]].url,
  3768. type: 14,
  3769. id: keys[i]
  3770. });
  3771. }
  3772. this.$forceUpdate();
  3773. this.dialogVisibleSource = false;
  3774. },
  3775. updateSource() {
  3776. if (!Object.keys(this.sourceData).length) {
  3777. this.$message.error("请选择要上传的资源");
  3778. return;
  3779. }
  3780. let keys = Object.keys(this.sourceData);
  3781. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3782. this.taskCount
  3783. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  3784. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3785. this.taskCount
  3786. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  3787. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3788. this.taskCount
  3789. ].chapterData[this.lineCount].id = keys[0];
  3790. this.updateSourcePan = false;
  3791. this.$forceUpdate();
  3792. this.dialogVisibleSource = false;
  3793. },
  3794. deleteM(i, j) {
  3795. this.testJson.testJson[i].timuList.splice(j, 1);
  3796. },
  3797. beforeUploadTiMu(event, i) {
  3798. const loading = this.openLoading();
  3799. var file = event.target.files[0];
  3800. var credentials = {
  3801. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3802. secretAccessKey: "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",
  3803. }; //秘钥形式的登录上传
  3804. window.AWS.config.update(credentials);
  3805. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3806. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3807. var _this = this;
  3808. if (file) {
  3809. var params = {
  3810. Key:
  3811. file.name.split(".")[0] +
  3812. new Date().getTime() +
  3813. "." +
  3814. file.name.split(".")[file.name.split(".").length - 1],
  3815. ContentType: file.type,
  3816. Body: file,
  3817. "Access-Control-Allow-Credentials": "*",
  3818. ACL: "public-read",
  3819. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3820. var options = {
  3821. partSize: 2048 * 1024 * 1024,
  3822. queueSize: 2,
  3823. leavePartsOnError: true,
  3824. };
  3825. bucket
  3826. .upload(params, options)
  3827. .on("httpUploadProgress", function (evt) {
  3828. //这里可以写进度条
  3829. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3830. })
  3831. .send(function (err, data) {
  3832. loading.close();
  3833. if (err) {
  3834. _this.$message.error("上传失败");
  3835. } else {
  3836. if (_this.testJson.testJson[i].timuList) {
  3837. _this.testJson.testJson[i].timuList.push({
  3838. src: data.Location,
  3839. });
  3840. } else {
  3841. _this.testJson.testJson[i].timuList = [];
  3842. _this.testJson.testJson[i].timuList.push({
  3843. src: data.Location,
  3844. });
  3845. }
  3846. _this.imgChange3(i);
  3847. _this.$forceUpdate();
  3848. }
  3849. });
  3850. }
  3851. },
  3852. beforeUploadTi(event, i, j) {
  3853. const loading = this.openLoading();
  3854. var file = event.target.files[0];
  3855. var credentials = {
  3856. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3857. secretAccessKey: "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",
  3858. }; //秘钥形式的登录上传
  3859. window.AWS.config.update(credentials);
  3860. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3861. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3862. var _this = this;
  3863. if (file) {
  3864. var params = {
  3865. Key:
  3866. file.name.split(".")[0] +
  3867. new Date().getTime() +
  3868. "." +
  3869. file.name.split(".")[file.name.split(".").length - 1],
  3870. ContentType: file.type,
  3871. Body: file,
  3872. "Access-Control-Allow-Credentials": "*",
  3873. ACL: "public-read",
  3874. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3875. var options = {
  3876. partSize: 2048 * 1024 * 1024,
  3877. queueSize: 2,
  3878. leavePartsOnError: true,
  3879. };
  3880. bucket
  3881. .upload(params, options)
  3882. .on("httpUploadProgress", function (evt) {
  3883. //这里可以写进度条
  3884. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3885. })
  3886. .send(function (err, data) {
  3887. loading.close();
  3888. if (err) {
  3889. _this.$message.error("上传失败");
  3890. } else {
  3891. _this.testJson.testJson[i].checkList[j] = {};
  3892. _this.testJson.testJson[i].checkList[j].src = data.Location;
  3893. _this.testJson.testJson[i].checkList[j].imgType = 1;
  3894. _this.imgChange2(i, j);
  3895. _this.$forceUpdate();
  3896. }
  3897. });
  3898. }
  3899. },
  3900. beforeUpload1(event, type) {
  3901. // const loading = this.openLoading();
  3902. var file = event.target.files[0];
  3903. var credentials = {
  3904. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3905. secretAccessKey: "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",
  3906. }; //秘钥形式的登录上传
  3907. window.AWS.config.update(credentials);
  3908. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3909. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3910. var _this = this;
  3911. if (file) {
  3912. var params = {
  3913. Key:
  3914. file.name.split(".")[0] +
  3915. new Date().getTime() +
  3916. "." +
  3917. file.name.split(".")[file.name.split(".").length - 1],
  3918. ContentType: file.type,
  3919. Body: file,
  3920. "Access-Control-Allow-Credentials": "*",
  3921. ACL: "public-read",
  3922. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3923. var options = {
  3924. partSize: 2048 * 1024 * 1024,
  3925. queueSize: 2,
  3926. leavePartsOnError: true,
  3927. };
  3928. bucket
  3929. .upload(params, options)
  3930. .on("httpUploadProgress", function (evt) {
  3931. //这里可以写进度条
  3932. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3933. })
  3934. .send(function (err, data) {
  3935. // loading.close();
  3936. if (err) {
  3937. // var a = _this.$refs.upload1.uploadFiles;
  3938. // a.splice(a.length - 1, a.length);
  3939. _this.$message.error("上传失败");
  3940. } else {
  3941. _this.cover.push({
  3942. name: file.name,
  3943. url: data.Location,
  3944. uid: file.uid,
  3945. });
  3946. _this.imgChange1(null, null, 1, null);
  3947. _this.choosePicVisible = false;
  3948. console.log(data.Location);
  3949. }
  3950. });
  3951. }
  3952. },
  3953. beforeUploadSelect(event, type) {
  3954. // const loading = this.openLoading();
  3955. var file = event.target.files[0];
  3956. var credentials = {
  3957. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3958. secretAccessKey: "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",
  3959. }; //秘钥形式的登录上传
  3960. window.AWS.config.update(credentials);
  3961. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3962. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3963. var _this = this;
  3964. if (file) {
  3965. var params = {
  3966. Key:
  3967. file.name.split(".")[0] +
  3968. new Date().getTime() +
  3969. "." +
  3970. file.name.split(".")[file.name.split(".").length - 1],
  3971. ContentType: file.type,
  3972. Body: file,
  3973. "Access-Control-Allow-Credentials": "*",
  3974. ACL: "public-read",
  3975. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3976. var options = {
  3977. partSize: 2048 * 1024 * 1024,
  3978. queueSize: 2,
  3979. leavePartsOnError: true,
  3980. };
  3981. bucket
  3982. .upload(params, options)
  3983. .on("httpUploadProgress", function (evt) {
  3984. //这里可以写进度条
  3985. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3986. })
  3987. .send(function (err, data) {
  3988. // loading.close();
  3989. if (err) {
  3990. _this.$message.error("上传失败");
  3991. } else {
  3992. _this.selectJson.url = data.Location;
  3993. console.log(data.Location);
  3994. }
  3995. });
  3996. }
  3997. },
  3998. chooseSysPic(p) {
  3999. this.cover = []
  4000. setTimeout(() => {
  4001. this.cover[0] = {
  4002. name: "系统图片.png",
  4003. url: p,
  4004. };
  4005. this.imgChange1(null, null, 1, null);
  4006. this.$forceUpdate();
  4007. }, 0);
  4008. this.isSysPic = true;
  4009. this.isSysPic2 = false;
  4010. this.sysPicVisible = false;
  4011. this.$forceUpdate();
  4012. },
  4013. chooseSysPic2(p) {
  4014. this.cover = []
  4015. setTimeout(() => {
  4016. this.cover[0] = {
  4017. name: "网络图片.png",
  4018. url: p,
  4019. };
  4020. this.imgChange1(null, null, 1, null);
  4021. this.$forceUpdate();
  4022. }, 0);
  4023. this.isSysPic2 = true;
  4024. this.isSysPic = false;
  4025. this.sysPicVisible2 = false;
  4026. this.$forceUpdate();
  4027. },
  4028. beforeUpload(data) {
  4029. this.$refs.upload1.uploadFiles;
  4030. this.uploadLoading1 = true;
  4031. var file = data.file;
  4032. var credentials = {
  4033. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4034. secretAccessKey: "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",
  4035. }; //秘钥形式的登录上传
  4036. window.AWS.config.update(credentials);
  4037. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4038. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4039. var _this = this;
  4040. if (file) {
  4041. var params = {
  4042. Key:
  4043. file.name.split(".")[0] +
  4044. new Date().getTime() +
  4045. "." +
  4046. file.name.split(".")[file.name.split(".").length - 1],
  4047. ContentType: file.type,
  4048. Body: file,
  4049. "Access-Control-Allow-Credentials": "*",
  4050. ACL: "public-read",
  4051. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4052. var options = {
  4053. partSize: 2048 * 1024 * 1024,
  4054. queueSize: 2,
  4055. leavePartsOnError: true,
  4056. };
  4057. bucket
  4058. .upload(params, options)
  4059. .on("httpUploadProgress", function (evt) {
  4060. //这里可以写进度条
  4061. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4062. })
  4063. .send(function (err, data) {
  4064. _this.uploadLoading1 = false;
  4065. if (err) {
  4066. // var a = _this.$refs.upload1.uploadFiles;
  4067. // a.splice(a.length - 1, a.length);
  4068. _this.$message.error("上传失败");
  4069. } else {
  4070. //上传成功处理
  4071. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4072. name: file.name,
  4073. url: data.Location,
  4074. uid: file.uid,
  4075. });
  4076. _this.imgChange();
  4077. console.log(data.Location);
  4078. }
  4079. });
  4080. }
  4081. },
  4082. onExceed() {
  4083. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4084. },
  4085. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4086. // const loading = this.openLoading();
  4087. var file = event.target.files[0];
  4088. var credentials = {
  4089. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4090. secretAccessKey: "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",
  4091. }; //秘钥形式的登录上传
  4092. window.AWS.config.update(credentials);
  4093. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4094. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4095. var _this = this;
  4096. if (type == 3) {
  4097. var b = [
  4098. "DOC",
  4099. "DOCX",
  4100. "DOCM",
  4101. "DOTM",
  4102. "DOTX",
  4103. "PPTX",
  4104. "PPSX",
  4105. "PPT",
  4106. "PPS",
  4107. "PPTM",
  4108. "POTM",
  4109. "PPAM",
  4110. "POTX",
  4111. "PPSM",
  4112. "XLSX",
  4113. "XLS",
  4114. ];
  4115. if (
  4116. b.indexOf(
  4117. file.name
  4118. .split(".")
  4119. [file.name.split(".").length - 1].toLocaleUpperCase()
  4120. ) != -1
  4121. ) {
  4122. if (file.size / 1024 / 1024 > 80) {
  4123. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4124. this.inputShow = true;
  4125. // var a = _this.$refs.upload1.uploadFiles;
  4126. // a.splice(a.length - 1, a.length);
  4127. // loading.close();
  4128. return;
  4129. }
  4130. } else if (
  4131. file.name
  4132. .split(".")
  4133. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4134. ) {
  4135. if (file.size / 1024 / 1024 > 80) {
  4136. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4137. this.inputShow = true;
  4138. // var a = _this.$refs.upload1.uploadFiles;
  4139. // a.splice(a.length - 1, a.length);
  4140. // loading.close();
  4141. return;
  4142. }
  4143. }
  4144. }
  4145. this.inputShow = false;
  4146. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4147. itemTaskIndex
  4148. ].progress = 0;
  4149. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4150. itemTaskIndex
  4151. ].proVisible = true;
  4152. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4153. itemTaskIndex
  4154. ].isFinishSize = 0;
  4155. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4156. itemTaskIndex
  4157. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4158. _this.$forceUpdate();
  4159. if (file) {
  4160. var params = {
  4161. Key:
  4162. file.name.split(".")[0] +
  4163. new Date().getTime() +
  4164. "." +
  4165. file.name.split(".")[file.name.split(".").length - 1],
  4166. ContentType: file.type,
  4167. Body: file,
  4168. "Access-Control-Allow-Credentials": "*",
  4169. ACL: "public-read",
  4170. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4171. var options = {
  4172. partSize: 2048 * 1024 * 1024,
  4173. queueSize: 2,
  4174. leavePartsOnError: true,
  4175. };
  4176. bucket
  4177. .upload(params, options)
  4178. .on("httpUploadProgress", function (evt) {
  4179. //这里可以写进度条
  4180. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4181. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4182. itemTaskIndex
  4183. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4184. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4185. itemTaskIndex
  4186. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4187. _this.$forceUpdate();
  4188. })
  4189. .send(function (err, data) {
  4190. // loading.close();
  4191. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4192. itemTaskIndex
  4193. ].progress = 100;
  4194. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4195. itemTaskIndex
  4196. ].isFinishSize =
  4197. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4198. itemTaskIndex
  4199. ].isAllSize;
  4200. _this.$forceUpdate();
  4201. setTimeout(() => {
  4202. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4203. itemTaskIndex
  4204. ].proVisible = false;
  4205. _this.$forceUpdate();
  4206. }, 1000);
  4207. _this.inputShow = true;
  4208. if (err) {
  4209. // var a = _this.$refs.upload1.uploadFiles;
  4210. // a.splice(a.length - 1, a.length);
  4211. _this.$message.error("上传失败");
  4212. } else {
  4213. if (type == 13) {
  4214. let _type = 2;
  4215. var imgA = [
  4216. "png",
  4217. "jpg",
  4218. "jpeg",
  4219. "bmp",
  4220. "gif",
  4221. "webp",
  4222. "psd",
  4223. "svg",
  4224. "tiff",
  4225. ];
  4226. var fileA = [
  4227. "PDF",
  4228. "DOC",
  4229. "DOCX",
  4230. "DOCM",
  4231. "DOTM",
  4232. "DOTX",
  4233. "PPTX",
  4234. "PPSX",
  4235. "PPT",
  4236. "PPS",
  4237. "PPTM",
  4238. "POTM",
  4239. "PPAM",
  4240. "POTX",
  4241. "PPSM",
  4242. "XLSX",
  4243. "XLS",
  4244. ];
  4245. var videoA = [
  4246. "AVI",
  4247. "NAVI",
  4248. "MPEG",
  4249. "ASF",
  4250. "MOV",
  4251. "WMV",
  4252. "3GP",
  4253. "RM",
  4254. "RMVB",
  4255. "FLV",
  4256. "F4V",
  4257. "H.264",
  4258. "H.265",
  4259. "REAL VIDEO",
  4260. "MKV",
  4261. "WebM",
  4262. "HDDVD",
  4263. "MP4",
  4264. "MPG",
  4265. "M4V",
  4266. "MGV",
  4267. "OGV",
  4268. "QTM",
  4269. "STR",
  4270. "AMC",
  4271. "DVX",
  4272. "EVO",
  4273. "DAT",
  4274. "OGG",
  4275. "OGM",
  4276. ];
  4277. if (
  4278. fileA.indexOf(
  4279. data.Location.split(".")[
  4280. data.Location.split(".").length - 1
  4281. ].toLocaleUpperCase()
  4282. ) != -1
  4283. ) {
  4284. _type = 3;
  4285. } else if (
  4286. videoA.indexOf(
  4287. data.Location.split(".")[
  4288. data.Location.split(".").length - 1
  4289. ].toLocaleUpperCase()
  4290. ) != -1
  4291. ) {
  4292. _type = 2;
  4293. } else if (
  4294. imgA.indexOf(
  4295. data.Location.split(".")[
  4296. data.Location.split(".").length - 1
  4297. ].toLocaleLowerCase()
  4298. ) != -1
  4299. ) {
  4300. _type = 13;
  4301. } else {
  4302. _type = 12;
  4303. }
  4304. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4305. itemTaskIndex
  4306. ].chapterData.push({
  4307. name: file.name,
  4308. url: data.Location,
  4309. uid: file.uid,
  4310. type: _type,
  4311. });
  4312. _this.imgChange1(null, null, _type, itemTaskIndex);
  4313. } else if (type == 2 || type == 3 || type == 12) {
  4314. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4315. itemTaskIndex
  4316. ].chapterData.push({
  4317. name: file.name,
  4318. url: data.Location,
  4319. uid: file.uid,
  4320. type: type,
  4321. });
  4322. _this.imgChange1(null, null, type, itemTaskIndex);
  4323. } else if (type == 4) {
  4324. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4325. itemTaskIndex
  4326. ].fileList1.push({
  4327. name: file.name,
  4328. url: data.Location,
  4329. uid: file.uid,
  4330. });
  4331. _this.imgChange1(null, null, type, itemTaskIndex);
  4332. } else if (type == 5) {
  4333. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4334. itemTaskIndex
  4335. ].homeworkList.push({
  4336. name: file.name,
  4337. url: data.Location,
  4338. uid: file.uid,
  4339. });
  4340. _this.imgChange1(null, null, type, itemTaskIndex);
  4341. }
  4342. console.log(data.Location);
  4343. }
  4344. });
  4345. }
  4346. },
  4347. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4348. // const loading = this.openLoading();
  4349. var file = event.target.files[0];
  4350. var credentials = {
  4351. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4352. secretAccessKey: "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",
  4353. }; //秘钥形式的登录上传
  4354. window.AWS.config.update(credentials);
  4355. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4356. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4357. var _this = this;
  4358. if (type == 3) {
  4359. var b = [
  4360. "DOC",
  4361. "DOCX",
  4362. "DOCM",
  4363. "DOTM",
  4364. "DOTX",
  4365. "PPTX",
  4366. "PPSX",
  4367. "PPT",
  4368. "PPS",
  4369. "PPTM",
  4370. "POTM",
  4371. "PPAM",
  4372. "POTX",
  4373. "PPSM",
  4374. ];
  4375. if (
  4376. b.indexOf(
  4377. file.name
  4378. .split(".")
  4379. [file.name.split(".").length - 1].toLocaleUpperCase()
  4380. ) != -1
  4381. ) {
  4382. if (file.size / 1024 / 1024 > 80) {
  4383. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4384. this.inputShow = true;
  4385. // var a = _this.$refs.upload1.uploadFiles;
  4386. // a.splice(a.length - 1, a.length);
  4387. // loading.close();
  4388. return;
  4389. }
  4390. } else if (
  4391. file.name
  4392. .split(".")
  4393. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4394. ) {
  4395. if (file.size / 1024 / 1024 > 80) {
  4396. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4397. this.inputShow = true;
  4398. // var a = _this.$refs.upload1.uploadFiles;
  4399. // a.splice(a.length - 1, a.length);
  4400. // loading.close();
  4401. return;
  4402. }
  4403. }
  4404. }
  4405. this.inputShow = false;
  4406. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4407. itemTaskIndex
  4408. ].progress = 0;
  4409. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4410. itemTaskIndex
  4411. ].proVisible = true;
  4412. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4413. itemTaskIndex
  4414. ].isFinishSize = 0;
  4415. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4416. itemTaskIndex
  4417. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4418. _this.$forceUpdate();
  4419. if (file) {
  4420. var params = {
  4421. Key:
  4422. file.name.split(".")[0] +
  4423. new Date().getTime() +
  4424. "." +
  4425. file.name.split(".")[file.name.split(".").length - 1],
  4426. ContentType: file.type,
  4427. Body: file,
  4428. "Access-Control-Allow-Credentials": "*",
  4429. ACL: "public-read",
  4430. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4431. var options = {
  4432. partSize: 2048 * 1024 * 1024,
  4433. queueSize: 2,
  4434. leavePartsOnError: true,
  4435. };
  4436. bucket
  4437. .upload(params, options)
  4438. .on("httpUploadProgress", function (evt) {
  4439. //这里可以写进度条
  4440. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4441. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4442. itemTaskIndex
  4443. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4444. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4445. itemTaskIndex
  4446. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4447. _this.$forceUpdate();
  4448. })
  4449. .send(function (err, data) {
  4450. // loading.close();
  4451. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4452. itemTaskIndex
  4453. ].progress = 100;
  4454. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4455. itemTaskIndex
  4456. ].isFinishSize =
  4457. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4458. itemTaskIndex
  4459. ].isAllSize;
  4460. _this.$forceUpdate();
  4461. setTimeout(() => {
  4462. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4463. itemTaskIndex
  4464. ].proVisible = false;
  4465. _this.$forceUpdate();
  4466. }, 1000);
  4467. _this.inputShow = true;
  4468. if (err) {
  4469. // var a = _this.$refs.upload1.uploadFiles;
  4470. // a.splice(a.length - 1, a.length);
  4471. _this.$message.error("上传失败");
  4472. } else {
  4473. if (type == 2 || type == 3) {
  4474. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4475. itemTaskIndex
  4476. ].chapterData.push({
  4477. name: file.name,
  4478. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4479. // itemTaskIndex
  4480. // ].chapterData.length+1),
  4481. url: data.Location,
  4482. uid: file.uid,
  4483. type: type,
  4484. text: string,
  4485. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4486. // itemTaskIndex
  4487. // ].chapterData.length + 1),
  4488. });
  4489. _this.imgChange1(null, null, type, itemTaskIndex);
  4490. } else if (type == 4) {
  4491. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4492. itemTaskIndex
  4493. ].fileList1.push({
  4494. name: file.name,
  4495. url: data.Location,
  4496. uid: file.uid,
  4497. });
  4498. _this.imgChange1(null, null, type, itemTaskIndex);
  4499. } else if (type == 5) {
  4500. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4501. itemTaskIndex
  4502. ].homeworkList.push({
  4503. name: file.name,
  4504. url: data.Location,
  4505. uid: file.uid,
  4506. });
  4507. _this.imgChange1(null, null, type, itemTaskIndex);
  4508. }
  4509. console.log(data.Location);
  4510. }
  4511. });
  4512. }
  4513. },
  4514. addunit() {
  4515. this.unitJson.push({
  4516. dyName: "", //单元标题
  4517. isUpdate: 1,
  4518. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4519. chapterInfo: [
  4520. {
  4521. isread: false,
  4522. chapterid: this.guid(),
  4523. title: "",
  4524. courseName: "",
  4525. taskJson: [
  4526. {
  4527. task: "",
  4528. taskDetail: "",
  4529. chapterData: [],
  4530. toolText: "",
  4531. toolChoose: [
  4532. {
  4533. tool: [],
  4534. toolDetail: "",
  4535. toolType: 0,
  4536. askCount: 1,
  4537. askTitle: "",
  4538. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4539. },
  4540. ],
  4541. isShowTools: false,
  4542. askCount: 1,
  4543. isFold: 0,
  4544. askTitle: "",
  4545. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4546. checkJson: [{ checkCount: [], checkPerent: [] }],
  4547. homeworkList: [],
  4548. },
  4549. ],
  4550. itemCount: 1,
  4551. fileList1: [],
  4552. video: [],
  4553. testData: [],
  4554. pData: [],
  4555. templateArray: [],
  4556. },
  4557. ],
  4558. });
  4559. this.addindex = this.unitJson.length - 1;
  4560. setTimeout(() => {
  4561. this.unitIndex = this.unitJson.length - 1;
  4562. this.unitSet(this.unitIndex);
  4563. }, 0);
  4564. },
  4565. addToolFun(itemTaskIndex) {
  4566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4567. itemTaskIndex
  4568. ].toolChoose.push({
  4569. tool: [],
  4570. toolDetail: "",
  4571. toolType: 0,
  4572. askCount: 1,
  4573. askTitle: "",
  4574. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4575. });
  4576. },
  4577. addTaskBorder() {
  4578. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4579. task: "",
  4580. taskDetail: "",
  4581. chapterData: [],
  4582. toolChoose: [
  4583. {
  4584. tool: [],
  4585. toolDetail: "",
  4586. toolType: 0,
  4587. askCount: 1,
  4588. askTitle: "",
  4589. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4590. },
  4591. ],
  4592. toolText: "",
  4593. isShowTools: false,
  4594. askCount: 1,
  4595. isFold: 0,
  4596. askTitle: "",
  4597. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4598. checkJson: [{ checkCount: [], checkPerent: [] }],
  4599. homeworkList: [],
  4600. });
  4601. },
  4602. add(e, i) {
  4603. var el = e.currentTarget;
  4604. el.getElementsByTagName("input")[0].click();
  4605. },
  4606. fold(i, e, type) {
  4607. var a = e.currentTarget.parentElement.parentElement;
  4608. var b = e.currentTarget.parentElement;
  4609. if (type == 1) {
  4610. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4611. a.className += " smallTaskBorder";
  4612. b.className += " funBlockTop";
  4613. } else {
  4614. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4615. a.className = "taskBorder";
  4616. b.className = "funBlock";
  4617. }
  4618. console.log(e);
  4619. },
  4620. fold2(i) {
  4621. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  4622. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  4623. } else {
  4624. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  4625. }
  4626. setTimeout(() => {
  4627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  4628. setTimeout(() => {
  4629. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  4630. }, 0);
  4631. }, 0);
  4632. this.$forceUpdate();
  4633. },
  4634. foldC(i) {
  4635. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  4636. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  4637. } else {
  4638. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  4639. }
  4640. this.$forceUpdate();
  4641. },
  4642. fold3(i, ti) {
  4643. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  4644. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  4645. } else {
  4646. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  4647. }
  4648. this.$forceUpdate();
  4649. },
  4650. deleteHomeworkBox(unitIndex, index, i) {
  4651. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4652. this.taskCount
  4653. ].homeworkList.splice(i, 1);
  4654. },
  4655. getStudent() {
  4656. let params = {
  4657. oid: this.oid,
  4658. cu: "",
  4659. cn: this.searchPeople,
  4660. };
  4661. this.ajax
  4662. .get(this.$store.state.api + "selectStudentAdd", params)
  4663. .then((res) => {
  4664. this.studentJuri = res.data[0];
  4665. })
  4666. .catch((err) => {
  4667. this.isLoading = false;
  4668. console.error(err);
  4669. });
  4670. },
  4671. getTeacher() {
  4672. this.teacherLoading = true;
  4673. let params = {
  4674. org:
  4675. this.org && this.org != "undefined" && this.org != "null"
  4676. ? this.org
  4677. : "",
  4678. oid: this.oid,
  4679. cu: "",
  4680. cn: this.searchTN,
  4681. page: this.page,
  4682. pageSize: this.pageSize,
  4683. };
  4684. this.ajax
  4685. .get(
  4686. this.$store.state.api +
  4687. (this.org && this.org != "undefined" && this.org != "null"
  4688. ? "selectUserByOidS2"
  4689. : "selectUserByOidS2"),
  4690. params
  4691. )
  4692. .then((res) => {
  4693. let teacherJuri = res.data[0];
  4694. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  4695. this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]));
  4696. for (var i = 0; i < teacherJuri.length; i++) {
  4697. if (teacherJuri[i].userid == this.userid) {
  4698. teacherJuri.splice(i, 1);
  4699. break;
  4700. }
  4701. }
  4702. this.teacherJuri = teacherJuri;
  4703. this.teacherLoading = false;
  4704. })
  4705. .catch((err) => {
  4706. this.teacherLoading = false;
  4707. console.error(err);
  4708. });
  4709. },
  4710. searchStudent() {
  4711. this.getStudent();
  4712. },
  4713. selectGrage() {
  4714. let params = {
  4715. oid: this.oid,
  4716. };
  4717. this.ajax
  4718. .get(this.$store.state.api + "selectGrageBySchool", params)
  4719. .then((res) => {
  4720. this.gradeList = res.data[0];
  4721. })
  4722. .catch((err) => {
  4723. this.isLoading = false;
  4724. console.error(err);
  4725. });
  4726. },
  4727. //获取班级列表
  4728. getClass() {
  4729. let params = {
  4730. oid: this.oid,
  4731. gid: this.gradeId,
  4732. cn: this.classSearch,
  4733. };
  4734. this.ajax
  4735. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  4736. .then((res) => {
  4737. if (!this.grade.length) {
  4738. this.grade = res.data[0];
  4739. }
  4740. this.grade2 = res.data[0];
  4741. this.classJuri = res.data[0];
  4742. })
  4743. .catch((err) => {
  4744. this.isLoading = false;
  4745. console.error(err);
  4746. });
  4747. },
  4748. CourseType2Change(val) {
  4749. this.pTypeCheck = [];
  4750. for (var i = 0; i < this.CourseType2.length; i++) {
  4751. let typeA = this.CourseType2[i];
  4752. if (val.indexOf(typeA.name) != -1) {
  4753. this.pTypeCheck.push(...typeA.id);
  4754. }
  4755. }
  4756. },
  4757. getChapterData(e, i, j, ic, type) {
  4758. e.stopPropagation();
  4759. this.updataC = true;
  4760. this.icc = ic;
  4761. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4762. console.log("还不能下载图片喔");
  4763. }
  4764. },
  4765. deleteChapterData(e, i, j, ic, taskI) {
  4766. e.stopPropagation();
  4767. let _this = this;
  4768. _this
  4769. .$confirm("确定删除此项?", "提示", {
  4770. confirmButtonText: "确定",
  4771. cancelButtonText: "取消",
  4772. type: "warning",
  4773. })
  4774. .then(() => {
  4775. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4776. })
  4777. .catch(() => {
  4778. return;
  4779. });
  4780. },
  4781. updataVideoT(e, i, j, ic) {
  4782. // e.stopPropagation();
  4783. // this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  4784. // ic
  4785. // ].name = JSON.parse(JSON.stringify(e.target.value));
  4786. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  4787. ic
  4788. ].name;
  4789. this.taskCount = j;
  4790. this.lineCount = ic;
  4791. this.dialogVisibleupdataVideoT = true;
  4792. this.$forceUpdate();
  4793. },
  4794. updataVideoC() {
  4795. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  4796. this.dialogVisibleupdataVideoT = false;
  4797. this.$forceUpdate();
  4798. },
  4799. upCd(e, i, j, taskCount, ic) {
  4800. e.stopPropagation();
  4801. if (ic == 0) {
  4802. return;
  4803. }
  4804. var a =
  4805. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  4806. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4807. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4808. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4809. this.$forceUpdate();
  4810. },
  4811. downCd(e, i, j, taskCount, ic) {
  4812. e.stopPropagation();
  4813. if (
  4814. ic ==
  4815. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4816. 1
  4817. ) {
  4818. return;
  4819. }
  4820. var a =
  4821. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  4822. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4823. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4824. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4825. this.$forceUpdate();
  4826. },
  4827. addWork(type) {
  4828. let cPan = 1;
  4829. for (var i = 0; i < this.unitJson.length; i++) {
  4830. for (
  4831. var j = 0;
  4832. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4833. j++
  4834. ) {
  4835. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4836. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4837. if (
  4838. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4839. ) {
  4840. for (
  4841. var z = 0;
  4842. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4843. z++
  4844. ) {
  4845. if (
  4846. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4847. .length
  4848. ) {
  4849. this.$message.error(this.lang.addtoolsentirety);
  4850. cPan = 2;
  4851. break;
  4852. }
  4853. }
  4854. }
  4855. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4856. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4857. i
  4858. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4859. return ele.value != "";
  4860. });
  4861. }
  4862. }
  4863. }
  4864. this.inputShow = true;
  4865. if (cPan == 2) {
  4866. return;
  4867. }
  4868. this.isLoading2 = true
  4869. for (var i = 0; i < this.unitJson.length; i++) {
  4870. delete this.unitJson[i].isUpdate;
  4871. }
  4872. let params = [
  4873. {
  4874. uid: this.userid,
  4875. title: this.courseName,
  4876. brief: this.courseText,
  4877. cover:
  4878. this.cover.length > 0
  4879. ? JSON.stringify(this.cover)
  4880. : JSON.stringify([
  4881. {
  4882. name: "noBanner.jpg",
  4883. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4884. uid: 1656409780264,
  4885. status: "success",
  4886. },
  4887. ]),
  4888. evaId: this.evalua,
  4889. astudent:
  4890. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4891. see: this.isTeacherSee == true ? 1 : 0,
  4892. chapters: JSON.stringify(this.unitJson),
  4893. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4894. courseType: JSON.stringify(this.courseTypeId),
  4895. ateacher:
  4896. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4897. inviteCode: JSON.stringify(this.inviteCode),
  4898. },
  4899. ];
  4900. this.ajax
  4901. .post(this.$store.state.api + "addSynergyCourse", params)
  4902. .then((res) => {
  4903. this.isLoading2 = false
  4904. console.log(this.steps);
  4905. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4906. this.$message({
  4907. message: this.lang.AddSuccessful,
  4908. type: "success",
  4909. });
  4910. // }
  4911. this.number = res.data.ordernumber;
  4912. this.courseId = res.data.courseId;
  4913. this.cid = res.data.courseId;
  4914. this.courseUserid = this.userid;
  4915. this.islogin = true;
  4916. if (type != 2) {
  4917. this.steps = 4;
  4918. } else {
  4919. this.selectCourseDetail222();
  4920. }
  4921. })
  4922. .catch((err) => {
  4923. this.$message.error(this.lang.Poorinternetconnection);
  4924. console.error(err);
  4925. });
  4926. },
  4927. selectCourseDetail222() {
  4928. let params = {
  4929. cid: this.cid,
  4930. };
  4931. this.ajax
  4932. .get(this.$store.state.api + "select_synergy", params)
  4933. .then((res) => {
  4934. this.courseDetail = res.data[0][0]
  4935. });
  4936. },
  4937. goCourse() {
  4938. window.topU.postMessage({ cid: this.courseId, type: "1" }, "*");
  4939. },
  4940. updateWork2() {
  4941. let _unitIndex = this.unitIndex;
  4942. let cPan = 1;
  4943. for (
  4944. var j = 0;
  4945. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4946. j++
  4947. ) {
  4948. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4949. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4950. j
  4951. ].proVisible2 = false;
  4952. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4953. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4954. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4955. (ele) => {
  4956. return ele.value != "";
  4957. }
  4958. );
  4959. }
  4960. }
  4961. this.inputShow = true;
  4962. if (cPan == 2) {
  4963. return;
  4964. }
  4965. let params = [
  4966. {
  4967. cid: this.cid,
  4968. chapters: JSON.stringify(this.unitJson),
  4969. uid: this.userid,
  4970. unitIndex: _unitIndex,
  4971. },
  4972. ];
  4973. this.ajax
  4974. .post(this.$store.state.api + "updateWorkNew4", params)
  4975. .then((res) => {
  4976. this.$message({
  4977. message: this.lang.Editsuccessful,
  4978. type: "success",
  4979. });
  4980. this.courseId = this.cid;
  4981. })
  4982. .catch((err) => {
  4983. this.$message.error(this.lang.Poorinternetconnection);
  4984. console.error(err);
  4985. });
  4986. },
  4987. updateWork(type) {
  4988. let that =this;
  4989. let cPan = 1;
  4990. for (var i = 0; i < this.unitJson.length; i++) {
  4991. for (
  4992. var j = 0;
  4993. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4994. j++
  4995. ) {
  4996. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4997. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4998. if (
  4999. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5000. ) {
  5001. for (
  5002. var z = 0;
  5003. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5004. z++
  5005. ) {
  5006. if (
  5007. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5008. .length
  5009. ) {
  5010. this.$message.error(this.lang.addtoolsentirety);
  5011. cPan = 2;
  5012. break;
  5013. }
  5014. }
  5015. }
  5016. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5017. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5018. i
  5019. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5020. return ele.value != "";
  5021. });
  5022. }
  5023. }
  5024. }
  5025. this.inputShow = true;
  5026. if (cPan == 2) {
  5027. return;
  5028. }
  5029. for (var i = 0; i < this.unitJson.length; i++) {
  5030. delete this.unitJson[i].isUpdate;
  5031. }
  5032. let params = [
  5033. {
  5034. cid: this.cid,
  5035. title: this.courseName,
  5036. brief: this.courseText,
  5037. cover:
  5038. this.cover.length > 0
  5039. ? JSON.stringify(this.cover)
  5040. : JSON.stringify([
  5041. {
  5042. name: "noBanner.jpg",
  5043. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5044. uid: 1656409780264,
  5045. status: "success",
  5046. },
  5047. ]),
  5048. evaId: this.evalua,
  5049. astudent:
  5050. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5051. see: this.isTeacherSee == true ? 1 : 0,
  5052. chapters: JSON.stringify(this.unitJson),
  5053. template: this.myWord != "undefined" ? this.myWord : [],
  5054. uid: this.userid,
  5055. courseType: JSON.stringify(this.courseTypeId),
  5056. ateacher:
  5057. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5058. inviteCode: JSON.stringify(this.inviteCode),
  5059. },
  5060. ];
  5061. this.ajax
  5062. .post(this.$store.state.api + "updateSynergy", params)
  5063. .then((res) => {
  5064. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5065. that.open(that.cid,that.userid);
  5066. if (this.cidType == 1) {
  5067. this.$message({
  5068. message: this.lang.Editsuccessful,
  5069. type: "success",
  5070. });
  5071. } else {
  5072. this.$message({
  5073. message: this.lang.AddSuccessful,
  5074. type: "success",
  5075. });
  5076. }
  5077. // }
  5078. this.number = this.nbOrder;
  5079. this.courseId = this.cid;
  5080. if (type != 2) {
  5081. this.steps = 4;
  5082. }
  5083. })
  5084. .catch((err) => {
  5085. this.$message.error(this.lang.Poorinternetconnection);
  5086. console.error(err);
  5087. });
  5088. },
  5089. open(cid, uid) {
  5090. window.topU.postMessage(
  5091. {
  5092. tools: "opencCscl",
  5093. cid: cid,
  5094. gid: '',
  5095. },
  5096. "*"
  5097. );
  5098. },
  5099. open2() {
  5100. if (this.courseDetail.userid == this.userid || window.topU.US.userInfo.role==1) {
  5101. window.topU.postMessage(
  5102. {
  5103. tools: "opencCscl",
  5104. cid: this.cid,
  5105. gid: '',
  5106. },
  5107. "*"
  5108. );
  5109. return;
  5110. }
  5111. let params = {
  5112. cid: this.cid,
  5113. classid: '1',
  5114. };
  5115. this.ajax
  5116. .get(this.$store.state.api + "getCourseGroup", params)
  5117. .then((res) => {
  5118. if (res.data && res.data[1].length) {
  5119. let groupPerson = res.data[1]
  5120. let groupCid = ''
  5121. for (var i = 0; i < groupPerson.length; i++) {
  5122. if (groupPerson[i].userid == this.userid) {
  5123. groupCid = groupPerson[i].groupCid
  5124. break;
  5125. }
  5126. }
  5127. if (groupCid) {
  5128. window.topU.postMessage(
  5129. {
  5130. tools: "opencCscl",
  5131. cid: this.cid,
  5132. gid: groupCid,
  5133. },
  5134. "*"
  5135. );
  5136. } else {
  5137. this.$message.error("没有加入分组请先加入分组");
  5138. }
  5139. } else {
  5140. this.$message.error("没有加入分组请先加入分组");
  5141. }
  5142. })
  5143. .catch((err) => {
  5144. this.$message.error(this.lang.Poorinternetconnection);
  5145. console.error(err);
  5146. });
  5147. },
  5148. guid() {
  5149. var _num,
  5150. i,
  5151. _guid = "";
  5152. for (i = 0; i < 32; i++) {
  5153. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5154. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5155. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5156. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5157. _guid += "-";
  5158. }
  5159. }
  5160. return _guid;
  5161. },
  5162. insertWord() {
  5163. this.dialogVisible1 = true;
  5164. this.updateBoolean2 = false;
  5165. this.tTitle = "";
  5166. this.tdetail = "";
  5167. },
  5168. addWord() {
  5169. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5170. name: this.tTitle,
  5171. content: this.tdetail,
  5172. uid: this.guid(),
  5173. });
  5174. this.dialogVisible1 = false;
  5175. },
  5176. upWord() { },
  5177. selectWord(uid, i, c) {
  5178. this.dialogVisible1 = true;
  5179. this.updateBoolean2 = true;
  5180. if (
  5181. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5182. ) {
  5183. this.tTitle =
  5184. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5185. this.tdetail =
  5186. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  5187. }
  5188. },
  5189. isAddPP() {
  5190. if (this.checkboxList.length > 0) {
  5191. this.$message({
  5192. message: "添加成功",
  5193. type: "success",
  5194. });
  5195. this.dialogVisible3 = false;
  5196. } else {
  5197. this.$message({
  5198. message: "请添加课程成员",
  5199. type: "error",
  5200. });
  5201. }
  5202. },
  5203. isAddClass() {
  5204. this.dialogVisibleClass = false;
  5205. },
  5206. isAddPPTeacher() {
  5207. this.page = 0;
  5208. this.dialogVisibleMember = false;
  5209. this.setMan();
  5210. this.checkAll=false;
  5211. this.isIndeterminate=true;
  5212. },
  5213. getTemplate() {
  5214. this.ajax
  5215. .get(this.$store.state.api + "getCourseTemplateT", "")
  5216. .then((res) => {
  5217. this.templateArray = res.data[0];
  5218. this.getTemplateOid();
  5219. this.$forceUpdate();
  5220. })
  5221. .catch((err) => { });
  5222. },
  5223. getTemplateOid() {
  5224. let params = {
  5225. oid: this.oid,
  5226. };
  5227. this.ajax
  5228. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5229. .then((res) => {
  5230. if (res.data[0].length) {
  5231. this.templateArray = [...res.data[0], ...this.templateArray];
  5232. }
  5233. this.getTemplateOrg();
  5234. this.$forceUpdate();
  5235. })
  5236. .catch((err) => { });
  5237. },
  5238. getTemplateOrg() {
  5239. let params = {
  5240. oid: this.org,
  5241. };
  5242. this.ajax
  5243. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5244. .then((res) => {
  5245. if (res.data[0].length) {
  5246. this.templateArray = [...res.data[0], ...this.templateArray];
  5247. }
  5248. this.$forceUpdate();
  5249. })
  5250. .catch((err) => { });
  5251. },
  5252. clearChoose() {
  5253. this.clearArray.splice(this.templateC.id, 1);
  5254. this.dialogVisible2 = false;
  5255. },
  5256. clearAttText() {
  5257. this.AttText = {
  5258. title: "",
  5259. text: "",
  5260. };
  5261. this.dialogVisible6 = false;
  5262. },
  5263. clearLine() {
  5264. this.line = "";
  5265. this.dialogVisible7 = false;
  5266. },
  5267. checkTemplate(res) {
  5268. let _this = this;
  5269. _this
  5270. .$confirm("确定选择此模板吗?", "提示", {
  5271. confirmButtonText: "确定",
  5272. cancelButtonText: "取消",
  5273. type: "warning",
  5274. })
  5275. .then(() => {
  5276. _this.unitJson = JSON.parse(res.chapters);
  5277. _this.steps++;
  5278. setTimeout(() => {
  5279. this.checkEva(this.checkId);
  5280. }, 1000);
  5281. })
  5282. .catch(() => {
  5283. return;
  5284. });
  5285. },
  5286. checkTemplate1(w) {
  5287. this.steps++;
  5288. },
  5289. checkTemplate2() {
  5290. let _this = this;
  5291. _this
  5292. .$confirm("确定选择空模板吗?", "提示", {
  5293. confirmButtonText: "确定",
  5294. cancelButtonText: "取消",
  5295. type: "warning",
  5296. })
  5297. .then(() => {
  5298. _this.unitIndex = 0;
  5299. _this.unitJson = [
  5300. {
  5301. dyName: "", //单元标题
  5302. chapterInfo: [
  5303. {
  5304. isread: false,
  5305. chapterid: this.guid(),
  5306. title: "",
  5307. courseName: "",
  5308. taskJson: [
  5309. {
  5310. task: "",
  5311. taskDetail: "",
  5312. chapterData: [],
  5313. toolText: "",
  5314. toolChoose: [
  5315. {
  5316. tool: [],
  5317. toolDetail: "",
  5318. toolType: 0,
  5319. askCount: 1,
  5320. askTitle: "",
  5321. askJson: [
  5322. { askstitle: "", askItem: 1, checkList: [] },
  5323. ],
  5324. },
  5325. ],
  5326. isShowTools: false,
  5327. askCount: 1,
  5328. isFold: 0,
  5329. askTitle: "",
  5330. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5331. checkJson: [{ checkCount: [], checkPerent: [] }],
  5332. homeworkList: [],
  5333. },
  5334. ],
  5335. itemCount: 1,
  5336. fileList1: [],
  5337. video: [],
  5338. testData: [],
  5339. pData: [],
  5340. templateArray: [],
  5341. },
  5342. ],
  5343. },
  5344. ];
  5345. this.steps++;
  5346. this.updateWork();
  5347. })
  5348. .catch(() => {
  5349. return;
  5350. });
  5351. },
  5352. checkTemplate3() {
  5353. let _this = this;
  5354. _this
  5355. .$confirm("确定选择简易模式吗?", "提示", {
  5356. confirmButtonText: "确定",
  5357. cancelButtonText: "取消",
  5358. type: "warning",
  5359. })
  5360. .then(() => {
  5361. _this.unitIndex = 0;
  5362. _this.unitJson = [
  5363. {
  5364. dyName: "", //单元标题
  5365. easy: 1,
  5366. chapterInfo: [
  5367. {
  5368. isread: false,
  5369. chapterid: this.guid(),
  5370. title: "",
  5371. courseName: "",
  5372. taskJson: [
  5373. {
  5374. task: "",
  5375. taskDetail: "",
  5376. chapterData: [],
  5377. toolText: "",
  5378. toolChoose: [
  5379. {
  5380. tool: [],
  5381. toolDetail: "",
  5382. toolType: 0,
  5383. askCount: 1,
  5384. askTitle: "",
  5385. askJson: [
  5386. { askstitle: "", askItem: 1, checkList: [] },
  5387. ],
  5388. },
  5389. ],
  5390. isShowTools: false,
  5391. askCount: 1,
  5392. isFold: 0,
  5393. askTitle: "",
  5394. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5395. checkJson: [{ checkCount: [], checkPerent: [] }],
  5396. homeworkList: [],
  5397. },
  5398. ],
  5399. itemCount: 1,
  5400. fileList1: [],
  5401. video: [],
  5402. testData: [],
  5403. pData: [],
  5404. templateArray: [],
  5405. },
  5406. ],
  5407. },
  5408. ];
  5409. this.steps++;
  5410. this.updateWork();
  5411. })
  5412. .catch(() => {
  5413. return;
  5414. });
  5415. },
  5416. checkTemplate4() {
  5417. let _this = this;
  5418. _this
  5419. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5420. confirmButtonText: "确定",
  5421. cancelButtonText: "取消",
  5422. type: "warning",
  5423. })
  5424. .then(() => {
  5425. _this.unitIndex = 0;
  5426. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5427. this.steps++;
  5428. this.updateWork();
  5429. })
  5430. .catch(() => {
  5431. return;
  5432. });
  5433. },
  5434. wordNext() {
  5435. this.dialogVisible2 = false;
  5436. },
  5437. isAddOrUpdateAttText() {
  5438. if (this.AttTextType == 0) {
  5439. this.addAttTextMessage();
  5440. } else {
  5441. this.updateAttText();
  5442. }
  5443. },
  5444. isAddOrUpdateLine() {
  5445. if (!this.lineTitle) {
  5446. this.$message.error("请填写链接标题");
  5447. return;
  5448. }
  5449. if (this.lineType == 0) {
  5450. this.addLine();
  5451. } else {
  5452. this.updateLine();
  5453. }
  5454. },
  5455. addAttTextMessage() {
  5456. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5457. this.taskCount
  5458. ].chapterData.push({
  5459. name: this.AttText.title,
  5460. url: this.AttText.text,
  5461. type: 6,
  5462. });
  5463. this.imgChange1(null, null, 6, this.taskCount);
  5464. this.dialogVisible6 = false;
  5465. },
  5466. selectAttText(itemTaskIndex, i) {
  5467. this.AttText.title =
  5468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5469. itemTaskIndex
  5470. ].chapterData[i].name;
  5471. this.AttText.text =
  5472. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5473. itemTaskIndex
  5474. ].chapterData[i].url;
  5475. this.taskCount = itemTaskIndex;
  5476. this.AttTextIndex = i;
  5477. this.AttTextType = 1;
  5478. this.dialogVisible6 = true;
  5479. },
  5480. updateAttText() {
  5481. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5482. this.taskCount
  5483. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5485. this.taskCount
  5486. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5487. this.dialogVisible6 = false;
  5488. },
  5489. addLine() {
  5490. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5491. this.lineCount
  5492. ].chapterData.push({
  5493. name: "链接",
  5494. title: this.lineTitle,
  5495. url: this.line,
  5496. type: 8,
  5497. });
  5498. this.imgChange1(null, null, 8, this.lineCount);
  5499. this.dialogVisible7 = false;
  5500. },
  5501. selectLine(itemTaskIndex, i) {
  5502. this.line =
  5503. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5504. itemTaskIndex
  5505. ].chapterData[i].url;
  5506. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5507. itemTaskIndex
  5508. ].chapterData[i].title
  5509. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5510. .chapterData[i].title
  5511. : "";
  5512. this.taskCount = itemTaskIndex;
  5513. this.lineCount = i;
  5514. this.lineType = 1;
  5515. this.dialogVisible7 = true;
  5516. },
  5517. openUpdateSource(itemTaskIndex, i) {
  5518. this.sourceData = {}
  5519. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  5520. this.sourceData[source.id] = {}
  5521. this.sourceData[source.id].name = source.title
  5522. this.sourceData[source.id].url = source.url
  5523. this.dialogVisibleSource = true;
  5524. this.updateSourcePan = true;
  5525. this.taskCount = itemTaskIndex;
  5526. this.lineCount = i;
  5527. },
  5528. updateLine() {
  5529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5530. this.taskCount
  5531. ].chapterData[this.lineCount].url = this.line;
  5532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5533. this.taskCount
  5534. ].chapterData[this.lineCount].title = this.lineTitle;
  5535. this.dialogVisible7 = false;
  5536. },
  5537. addPP() {
  5538. this.dialogVisible3 = true;
  5539. },
  5540. goTo(path) {
  5541. this.$router.push(path);
  5542. },
  5543. openTools(itemTaskIndex, i, toolIndex) {
  5544. this.toolIndex = toolIndex;
  5545. this.taskCount = itemTaskIndex;
  5546. if (i == 4) {
  5547. if (toolIndex == null) {
  5548. var a =
  5549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5550. .chapterData;
  5551. for (var i = 0; i < a.length; i++) {
  5552. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5553. this.askJson =
  5554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5555. itemTaskIndex
  5556. ].chapterData[i].askJson;
  5557. }
  5558. }
  5559. } else {
  5560. this.askJson = JSON.parse(
  5561. JSON.stringify(
  5562. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5563. itemTaskIndex
  5564. ].toolChoose[toolIndex]
  5565. )
  5566. );
  5567. }
  5568. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  5569. this.dialogVisible5 = true;
  5570. } else if (i == 45) {
  5571. if (
  5572. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5573. .toolChoose[toolIndex].testJson
  5574. ) {
  5575. this.testJson = JSON.parse(
  5576. JSON.stringify(
  5577. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5578. itemTaskIndex
  5579. ].toolChoose[toolIndex].testJson
  5580. )
  5581. );
  5582. } else {
  5583. var testJson = {
  5584. testCount: 1,
  5585. testTitle: "",
  5586. testJson: [
  5587. {
  5588. teststitle: "",
  5589. testItem: 1,
  5590. checkList: [],
  5591. timuList: [],
  5592. answer: [],
  5593. type: "1",
  5594. },
  5595. ],
  5596. };
  5597. this.testJson = testJson;
  5598. }
  5599. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  5600. this.dialogVisibleChoice = true;
  5601. } else if (i == 47) {
  5602. if (
  5603. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5604. .toolChoose[toolIndex].sentenceList
  5605. ) {
  5606. this.sentenceList = JSON.parse(
  5607. JSON.stringify(
  5608. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5609. itemTaskIndex
  5610. ].toolChoose[toolIndex].sentenceList
  5611. )
  5612. );
  5613. } else {
  5614. var sentenceList = [
  5615. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5616. ];
  5617. this.sentenceList = sentenceList;
  5618. }
  5619. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  5620. this.dialogVisibleSentence = true;
  5621. } else if (i == 48) {
  5622. if (
  5623. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5624. .toolChoose[toolIndex].tableJson
  5625. ) {
  5626. this.tableJson = JSON.parse(
  5627. JSON.stringify(
  5628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5629. itemTaskIndex
  5630. ].toolChoose[toolIndex].tableJson
  5631. )
  5632. );
  5633. } else {
  5634. var tableJson = { text: "" };
  5635. this.tableJson = tableJson;
  5636. }
  5637. this.dialogVisibleTable = true;
  5638. } else if (i == 52) {
  5639. if (
  5640. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5641. .toolChoose[toolIndex].wordJson
  5642. ) {
  5643. this.wordJson = JSON.parse(
  5644. JSON.stringify(
  5645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5646. itemTaskIndex
  5647. ].toolChoose[toolIndex].wordJson
  5648. )
  5649. );
  5650. } else {
  5651. var wordJson = { text: "" };
  5652. this.wordJson = wordJson;
  5653. }
  5654. this.dialogVisibleWord = true;
  5655. // else if (i == 50) {
  5656. // if (
  5657. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5658. // .toolChoose[toolIndex].uploadJson
  5659. // ) {
  5660. // this.uploadJson = JSON.parse(
  5661. // JSON.stringify(
  5662. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5663. // itemTaskIndex
  5664. // ].toolChoose[toolIndex].uploadJson
  5665. // )
  5666. // );
  5667. // } else {
  5668. // var uploadJson = [];
  5669. // this.uploadJson = uploadJson;
  5670. // }
  5671. // this.dialogVisibleMoreUpload = true;
  5672. // }
  5673. } else if (i == 10) {
  5674. if (
  5675. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5676. .toolChoose[toolIndex].preTime
  5677. ) {
  5678. this.preTime = JSON.parse(
  5679. JSON.stringify(
  5680. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5681. itemTaskIndex
  5682. ].toolChoose[toolIndex].preTime
  5683. )
  5684. );
  5685. } else {
  5686. var preTime = 0;
  5687. this.preTime = preTime;
  5688. }
  5689. this.dialogVisiblePreTime = true;
  5690. } else if (i == 49) {
  5691. if (
  5692. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5693. .toolChoose[toolIndex].groupJson
  5694. ) {
  5695. this.groupJson = JSON.parse(
  5696. JSON.stringify(
  5697. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5698. itemTaskIndex
  5699. ].toolChoose[toolIndex].groupJson
  5700. )
  5701. );
  5702. } else {
  5703. var groupJson = {
  5704. group: [{ name: "第1组" }],
  5705. number: undefined,
  5706. islock: 1,
  5707. };
  5708. this.groupJson = groupJson;
  5709. }
  5710. this.dialogVisibleGroup = true;
  5711. } else if (i == 62) {
  5712. if (
  5713. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5714. .toolChoose[toolIndex].videoJson
  5715. ) {
  5716. this.videoJson = JSON.parse(
  5717. JSON.stringify(
  5718. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5719. itemTaskIndex
  5720. ].toolChoose[toolIndex].videoJson
  5721. )
  5722. );
  5723. } else {
  5724. var videoJson = {
  5725. video: "",
  5726. setting: [],
  5727. };
  5728. this.videoJson = videoJson;
  5729. }
  5730. this.dialogVisibleVideo = true;
  5731. } else if (i == 15) {
  5732. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5733. itemTaskIndex
  5734. ].toolChoose[toolIndex].answerQ
  5735. ? JSON.parse(
  5736. JSON.stringify(
  5737. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5738. itemTaskIndex
  5739. ].toolChoose[toolIndex].answerQ
  5740. )
  5741. )
  5742. : "";
  5743. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  5744. this.dialogVisible8 = true;
  5745. } else if (i == 40) {
  5746. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5747. itemTaskIndex
  5748. ].toolChoose[toolIndex].rateJson
  5749. ? JSON.parse(
  5750. JSON.stringify(
  5751. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5752. itemTaskIndex
  5753. ].toolChoose[toolIndex].rateJson
  5754. )
  5755. )
  5756. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5757. this.selectSteps = 1;
  5758. this.dialogVisibleRate = true;
  5759. } else if (i == 42) {
  5760. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5761. itemTaskIndex
  5762. ].toolChoose[toolIndex].answerQ
  5763. ? JSON.parse(
  5764. JSON.stringify(
  5765. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5766. itemTaskIndex
  5767. ].toolChoose[toolIndex].answerQ
  5768. )
  5769. )
  5770. : "";
  5771. this.dialogVisibleMp3 = true;
  5772. } else if (i == 41) {
  5773. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5774. itemTaskIndex
  5775. ].toolChoose[toolIndex].selectJson
  5776. ? JSON.parse(
  5777. JSON.stringify(
  5778. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5779. itemTaskIndex
  5780. ].toolChoose[toolIndex].selectJson
  5781. )
  5782. )
  5783. : { url: "", select: [], answer: [] };
  5784. this.selectSteps = 1;
  5785. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  5786. this.dialogVisibleSelect = true;
  5787. } else if (i == 3) {
  5788. if (!this.cid) {
  5789. this.$message.error(
  5790. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5791. );
  5792. return;
  5793. }
  5794. window.topU.postMessage(
  5795. {
  5796. tools: "3y",
  5797. cid: this.cid,
  5798. stage: this.unitIndex,
  5799. task: itemTaskIndex,
  5800. tool: toolIndex,
  5801. },
  5802. "*"
  5803. );
  5804. } else if (i == 1) {
  5805. if (!this.cid) {
  5806. this.$message.error(
  5807. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5808. );
  5809. return;
  5810. }
  5811. window.topU.postMessage(
  5812. {
  5813. tools: "1y",
  5814. cid: this.cid,
  5815. stage: this.unitIndex,
  5816. task: itemTaskIndex,
  5817. tool: toolIndex,
  5818. },
  5819. "*"
  5820. );
  5821. } else if (i == 57) {
  5822. if (!this.cid) {
  5823. this.$message.error(
  5824. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5825. );
  5826. return;
  5827. }
  5828. window.topU.postMessage(
  5829. {
  5830. tools: "57y",
  5831. cid: this.cid,
  5832. stage: this.unitIndex,
  5833. task: itemTaskIndex,
  5834. tool: toolIndex,
  5835. },
  5836. "*"
  5837. );
  5838. }
  5839. },
  5840. chapAddTools(i) {
  5841. if (this.chapTools[0].tools.length == 0) {
  5842. this.chapTools[0].tools.push(i);
  5843. } else {
  5844. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5845. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5846. } else {
  5847. this.chapTools[0].tools.push(i);
  5848. }
  5849. }
  5850. this.$forceUpdate();
  5851. },
  5852. addChaptersDataTools() {
  5853. if (this.chapTools[0].tools.indexOf(4) != -1) {
  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. askJson: this.askJson,
  5861. });
  5862. } else {
  5863. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5864. this.chapCount
  5865. ].chapterData.push({
  5866. name: this.chapTools[0].toolDetail,
  5867. url: this.chapTools[0].tools,
  5868. type: 7,
  5869. });
  5870. }
  5871. this.imgChange1(null, null, 7, this.chapCount);
  5872. this.dialogVisible4 = false;
  5873. },
  5874. addTools(i, itemTaskIndex, toolIndex) {
  5875. // if (
  5876. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5877. // .toolChoose[toolIndex].tool.length == 0
  5878. // ) {
  5879. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5880. // itemTaskIndex
  5881. // ].toolChoose[toolIndex].tool.push(i);
  5882. // } else {
  5883. // if (
  5884. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5885. // itemTaskIndex
  5886. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5887. // ) {
  5888. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5889. // itemTaskIndex
  5890. // ].toolChoose[toolIndex].tool.splice(
  5891. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5892. // itemTaskIndex
  5893. // ].toolChoose[toolIndex].tool.indexOf(i),
  5894. // 1
  5895. // );
  5896. // } else {
  5897. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5898. // itemTaskIndex
  5899. // ].toolChoose[toolIndex].tool.push(i);
  5900. // }
  5901. // console.log(
  5902. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5903. // .toolChoose[toolIndex].tool
  5904. // );
  5905. // }
  5906. if (i == 4) {
  5907. if (
  5908. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5909. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5911. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5912. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5913. .toolChoose[toolIndex].askJson[0].checkList < 2
  5914. ) {
  5915. this.openTools(itemTaskIndex, 4, toolIndex);
  5916. // this.$message({
  5917. // message: "请填写完整问卷内容",
  5918. // type: "error",
  5919. // });
  5920. return;
  5921. }
  5922. }
  5923. if (i == 45) {
  5924. if (
  5925. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5926. .toolChoose[toolIndex].testJson ||
  5927. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5928. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5929. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5930. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5931. ) {
  5932. this.openTools(itemTaskIndex, 45, toolIndex);
  5933. // this.$message({
  5934. // message: "请填写完整问卷内容",
  5935. // type: "error",
  5936. // });
  5937. return;
  5938. }
  5939. }
  5940. if (i == 47) {
  5941. if (
  5942. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5943. .toolChoose[toolIndex].sentenceList ||
  5944. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5945. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5946. ) {
  5947. this.openTools(itemTaskIndex, 47, toolIndex);
  5948. return;
  5949. }
  5950. }
  5951. // if (i == 48) {
  5952. // if (
  5953. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5954. // .toolChoose[toolIndex].tableJson
  5955. // ) {
  5956. // this.openTools(itemTaskIndex, 48, toolIndex);
  5957. // return;
  5958. // }
  5959. // }
  5960. // if (i == 50) {
  5961. // if (
  5962. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5963. // .toolChoose[toolIndex].uploadJson
  5964. // ) {
  5965. // this.openTools(itemTaskIndex, 50, toolIndex);
  5966. // return;
  5967. // }
  5968. // }
  5969. if (i == 49) {
  5970. if (
  5971. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5972. .toolChoose[toolIndex].groupJson
  5973. ) {
  5974. this.openTools(itemTaskIndex, 49, toolIndex);
  5975. return;
  5976. }
  5977. }
  5978. if (i == 62) {
  5979. if (
  5980. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5981. .toolChoose[toolIndex].videoJson
  5982. ) {
  5983. this.openTools(itemTaskIndex, 62, toolIndex);
  5984. return;
  5985. }
  5986. }
  5987. if (i == 15) {
  5988. if (
  5989. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5990. .toolChoose[toolIndex].answerQ ||
  5991. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5992. .toolChoose[toolIndex].answerQ == ""
  5993. ) {
  5994. this.openTools(itemTaskIndex, 15, toolIndex);
  5995. // this.$message({
  5996. // message: "请填写问答内容",
  5997. // type: "error",
  5998. // });
  5999. return;
  6000. }
  6001. }
  6002. if (i == 40) {
  6003. if (
  6004. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6005. .toolChoose[toolIndex].rateJson ||
  6006. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6007. .toolChoose[toolIndex].rateJson.length
  6008. ) {
  6009. this.openTools(itemTaskIndex, 40, toolIndex);
  6010. return;
  6011. }
  6012. }
  6013. if (i == 41) {
  6014. if (
  6015. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6016. .toolChoose[toolIndex].selectJson ||
  6017. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6018. .toolChoose[toolIndex].selectJson.url == "" ||
  6019. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6020. .toolChoose[toolIndex].selectJson.select.length ||
  6021. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6022. .toolChoose[toolIndex].selectJson.answer.length
  6023. ) {
  6024. this.openTools(itemTaskIndex, 41, toolIndex);
  6025. return;
  6026. }
  6027. }
  6028. if (i == 42) {
  6029. if (
  6030. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6031. .toolChoose[toolIndex].answerQ ||
  6032. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6033. .toolChoose[toolIndex].answerQ == ""
  6034. ) {
  6035. this.openTools(itemTaskIndex, 42, toolIndex);
  6036. return;
  6037. }
  6038. }
  6039. if (
  6040. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6041. .toolChoose[toolIndex].tool.length > 0
  6042. ) {
  6043. if (
  6044. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6045. itemTaskIndex
  6046. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6047. ) {
  6048. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6049. itemTaskIndex
  6050. ].toolChoose[toolIndex].tool.splice(
  6051. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6052. itemTaskIndex
  6053. ].toolChoose[toolIndex].tool.indexOf(i),
  6054. 1
  6055. );
  6056. } else {
  6057. // this.$message({
  6058. // message: "每个工具只能添加一个",
  6059. // type: "error",
  6060. // });
  6061. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6062. itemTaskIndex
  6063. ].toolChoose[toolIndex].tool = [];
  6064. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6065. itemTaskIndex
  6066. ].toolChoose[toolIndex].tool.push(i);
  6067. }
  6068. } else {
  6069. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6070. itemTaskIndex
  6071. ].toolChoose[toolIndex].tool.push(i);
  6072. }
  6073. this.$forceUpdate();
  6074. },
  6075. addAskList(index) {
  6076. this.askJson.askJson.splice(index + 1, 0, {
  6077. askstitle: "",
  6078. askItem: 1,
  6079. checkList: [],
  6080. })
  6081. this.askJson.askCount++;
  6082. },
  6083. addTestList(index) {
  6084. this.testJson.testJson.splice(index + 1, 0, {
  6085. teststitle: "",
  6086. testItem: 1,
  6087. checkList: [],
  6088. timuList: [],
  6089. answer: [],
  6090. type: "1",
  6091. })
  6092. this.testJson.testCount++;
  6093. },
  6094. deleteAskList(index) {
  6095. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  6096. this.askJson.askJson.splice(index, 1);
  6097. this.askJson.askCount--;
  6098. } else {
  6099. let _this = this;
  6100. _this
  6101. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6102. confirmButtonText: "确定",
  6103. cancelButtonText: "取消",
  6104. type: "warning",
  6105. })
  6106. .then(() => {
  6107. _this.askJson.askJson.splice(index, 1);
  6108. _this.askJson.askCount--;
  6109. })
  6110. .catch(() => {
  6111. return;
  6112. });
  6113. }
  6114. },
  6115. deleteTestList(index) {
  6116. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  6117. this.testJson.testJson.splice(index, 1);
  6118. this.testJson.testCount--;
  6119. } else {
  6120. let _this = this;
  6121. _this
  6122. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6123. confirmButtonText: "确定",
  6124. cancelButtonText: "取消",
  6125. type: "warning",
  6126. })
  6127. .then(() => {
  6128. _this.testJson.testJson.splice(index, 1);
  6129. _this.testJson.testCount--;
  6130. })
  6131. .catch(() => {
  6132. return;
  6133. });
  6134. }
  6135. },
  6136. askMove(type, index) {
  6137. if (type == 1) {
  6138. if (index > 0) {
  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. } else {
  6145. if (
  6146. index < this.askJson.askJson.length - 1
  6147. ) {
  6148. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  6149. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  6150. this.askJson.askJson[index + 1] = b;
  6151. this.askJson.askJson[index] = a;
  6152. }
  6153. }
  6154. this.$forceUpdate();
  6155. },
  6156. checkMove(type, index, checkIndex) {
  6157. if (type == 1) {
  6158. if (checkIndex > 0) {
  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. } else {
  6165. if (
  6166. checkIndex < this.askJson.askJson[index].checkList.length - 1
  6167. ) {
  6168. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  6169. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  6170. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  6171. this.askJson.askJson[index].checkList[checkIndex] = a;
  6172. }
  6173. }
  6174. this.$forceUpdate();
  6175. },
  6176. testMove(type, index) {
  6177. if (type == 1) {
  6178. if (index > 0) {
  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. } else {
  6185. if (
  6186. index < this.testJson.testJson.length - 1
  6187. ) {
  6188. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  6189. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  6190. this.testJson.testJson[index + 1] = b;
  6191. this.testJson.testJson[index] = a;
  6192. }
  6193. }
  6194. this.$forceUpdate();
  6195. },
  6196. tcheckMove(type, index, checkIndex) {
  6197. if (type == 1) {
  6198. if (checkIndex > 0) {
  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. } else {
  6205. if (
  6206. checkIndex < this.testJson.testJson[index].checkList.length - 1
  6207. ) {
  6208. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  6209. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  6210. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  6211. this.testJson.testJson[index].checkList[checkIndex] = a;
  6212. }
  6213. }
  6214. this.$forceUpdate();
  6215. },
  6216. addcheckList(json, index) {
  6217. // json.checkList.length++;
  6218. json.checkList.splice(index + 1, 0, '')
  6219. json.askItem++;
  6220. this.$forceUpdate();
  6221. },
  6222. deletecheckList(json, index) {
  6223. // json.checkList.length--;
  6224. json.checkList.splice(index, 1)
  6225. json.askItem--;
  6226. this.$forceUpdate();
  6227. },
  6228. addTcheckList(json, index) {
  6229. // json.checkList.length++;
  6230. json.checkList.splice(index + 1, 0, '')
  6231. json.testItem++;
  6232. this.$forceUpdate();
  6233. },
  6234. deleteTcheckList(json, index) {
  6235. // json.checkList.length--;
  6236. json.checkList.splice(index, 1)
  6237. json.testItem--;
  6238. this.$forceUpdate();
  6239. },
  6240. checkTestType(type, json) {
  6241. json.type = type;
  6242. setTimeout(() => {
  6243. json.answer = [];
  6244. }, 100)
  6245. this.$forceUpdate();
  6246. },
  6247. checkAskType(type, json) {
  6248. json.type = type;
  6249. // json.checkList = [];
  6250. this.$forceUpdate();
  6251. },
  6252. addSelectList(json) {
  6253. json.select.push("");
  6254. json.answer.push("");
  6255. },
  6256. deleteSelectList(json) {
  6257. // json.select.length--;
  6258. // json.answer.length--;
  6259. json.select.splice(json.select.length - 1, 1);
  6260. json.answer.splice(json.answer.length - 1, 1);
  6261. },
  6262. addAsk() {
  6263. if (this.askJson.askTitle === "") {
  6264. this.$message.error("标题不能为空!");
  6265. return;
  6266. }
  6267. var aj = this.askJson.askJson;
  6268. var b = 1;
  6269. for (var i = 0; i < aj.length; i++) {
  6270. if (aj[i].askstitle === "") {
  6271. var a = 1;
  6272. for (let index = 0; index < aj[i].askItem; index++) {
  6273. const element = aj[i].checkList[index]
  6274. ? aj[i].checkList[index]
  6275. : "";
  6276. if (element != "") {
  6277. b++;
  6278. this.$message.error(`请将题目${i + 1}填写完整。`);
  6279. return;
  6280. } else {
  6281. a++;
  6282. }
  6283. }
  6284. if (b == 1) {
  6285. this.$message.error("至少填写一个问题");
  6286. return;
  6287. }
  6288. } else if (aj[i].askstitle != "") {
  6289. for (let index = 0; index < aj[i].askItem; index++) {
  6290. const element = aj[i].checkList[index]
  6291. ? aj[i].checkList[index]
  6292. : "";
  6293. var index = 0;
  6294. for (var z = 0; z < aj[i].checkList.length; z++) {
  6295. let checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6296. if (checkC != "") {
  6297. index++;
  6298. } else {
  6299. this.$message.error(`题目${i + 1}选项不能为空!`);
  6300. return;
  6301. }
  6302. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  6303. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  6304. if (checkC == checkC2) {
  6305. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6306. return;
  6307. }
  6308. }
  6309. }
  6310. b++;
  6311. if (index < 2) {
  6312. this.$message.error("每道题目至少需要设置2个选项。");
  6313. return;
  6314. }
  6315. }
  6316. }
  6317. }
  6318. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6319. var elc = el.checkList.filter((element) => {
  6320. return element != "";
  6321. });
  6322. return el.askstitle != "" && elc.length != 0;
  6323. });
  6324. if (!this.dialogVisible4) {
  6325. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6326. this.taskCount
  6327. ].toolChoose[this.toolIndex] = this.askJson;
  6328. }
  6329. this.dialogVisible5 = false;
  6330. if (
  6331. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6332. .toolChoose[this.toolIndex].tool != 4
  6333. ) {
  6334. this.addTools(4, this.taskCount, this.toolIndex);
  6335. }
  6336. },
  6337. addTest() {
  6338. // if (this.testJson.testTitle === "") {
  6339. // this.$message.error("标题不能为空!");
  6340. // return;
  6341. // }
  6342. var aj = this.testJson.testJson;
  6343. var b = 1;
  6344. for (var i = 0; i < aj.length; i++) {
  6345. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  6346. var a = 1;
  6347. for (let index = 0; index < aj[i].testItem; index++) {
  6348. const element = aj[i].checkList[index]
  6349. ? aj[i].checkList[index]
  6350. : "";
  6351. if (element != "") {
  6352. b++;
  6353. this.$message.error(`请将题目${i + 1}填写完整。`);
  6354. return;
  6355. } else {
  6356. a++;
  6357. }
  6358. }
  6359. if (b == 1) {
  6360. this.$message.error("至少填写一个问题");
  6361. return;
  6362. }
  6363. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  6364. for (let index = 0; index < aj[i].testItem; index++) {
  6365. const element = aj[i].checkList[index]
  6366. ? aj[i].checkList[index]
  6367. : "";
  6368. var index = 0;
  6369. for (var z = 0; z < aj[i].checkList.length; z++) {
  6370. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6371. if (checkC != "") {
  6372. index++;
  6373. } else {
  6374. this.$message.error(`题目${i + 1}选项不能为空!`);
  6375. return;
  6376. }
  6377. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  6378. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  6379. if (checkC == checkC2) {
  6380. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6381. return;
  6382. }
  6383. }
  6384. }
  6385. b++;
  6386. if (index < 2) {
  6387. this.$message.error("每道题目至少需要设置2个选项。");
  6388. return;
  6389. }
  6390. if (
  6391. (aj[i].type == "2" && !aj[i].answer.length) ||
  6392. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  6393. ) {
  6394. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  6395. return;
  6396. }
  6397. }
  6398. }
  6399. }
  6400. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6401. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6402. var elc = el.checkList.filter((element) => {
  6403. return element != "";
  6404. });
  6405. return (
  6406. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6407. );
  6408. });
  6409. isTestJson.testCount = isTestJson.testJson.length;
  6410. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6411. this.taskCount
  6412. ].toolChoose[this.toolIndex].testJson = isTestJson;
  6413. this.dialogVisibleChoice = false;
  6414. if (
  6415. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6416. .toolChoose[this.toolIndex].tool != 45
  6417. ) {
  6418. this.addTools(45, this.taskCount, this.toolIndex);
  6419. }
  6420. },
  6421. addVideoJson(videoJson) {
  6422. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6423. this.taskCount
  6424. ].toolChoose[this.toolIndex].videoJson = videoJson;
  6425. this.dialogVisibleVideo = false;
  6426. if (
  6427. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6428. .toolChoose[this.toolIndex].tool != 62
  6429. ) {
  6430. this.addTools(62, this.taskCount, this.toolIndex);
  6431. }
  6432. },
  6433. //自动获取剪贴板
  6434. pasteOption() {
  6435. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  6436. if (!iframe) {
  6437. this.$message.error("请使用AI共创生成题目");
  6438. return;
  6439. }
  6440. let copyData = iframe.contentWindow.copyData;
  6441. if (!copyData || !copyData.selectData.length) {
  6442. this.$message.error("请使用AI共创生成题目");
  6443. return;
  6444. }
  6445. let selectData = copyData.selectData;
  6446. for (var i = 0; i < selectData.length; i++) {
  6447. let answer = 0;
  6448. switch (selectData[i].answer[0]) {
  6449. case "A":
  6450. answer = 0;
  6451. break;
  6452. case "B":
  6453. answer = 1;
  6454. break;
  6455. case "C":
  6456. answer = 2;
  6457. break;
  6458. case "D":
  6459. answer = 3;
  6460. break;
  6461. case "E":
  6462. answer = 4;
  6463. break;
  6464. default:
  6465. break;
  6466. }
  6467. this.testJson.testJson.push({
  6468. teststitle: selectData[i].subject,
  6469. testItem: selectData[i].options.length,
  6470. checkList: selectData[i].options,
  6471. timuList: [],
  6472. answer: answer,
  6473. type: "1",
  6474. });
  6475. this.testJson.testCount++;
  6476. }
  6477. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6478. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6479. var elc = el.checkList.filter((element) => {
  6480. return element != "";
  6481. });
  6482. return (
  6483. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6484. );
  6485. });
  6486. isTestJson.testCount = isTestJson.testJson.length;
  6487. this.testJson = isTestJson;
  6488. this.$forceUpdate();
  6489. },
  6490. pasteTask() {
  6491. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  6492. if (!iframe) {
  6493. this.$message.error("请使用AI共创生成");
  6494. return;
  6495. }
  6496. let copyData = iframe.contentWindow.copyData;
  6497. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6498. this.$message.error("请使用AI共创生成");
  6499. return;
  6500. }
  6501. let stageTasksData = copyData.tasksData;
  6502. let taskA = [];
  6503. let tasks = stageTasksData;
  6504. for (var j = 0; j < tasks.length; j++) {
  6505. taskA.push({
  6506. task: tasks[j].taskName,
  6507. taskDetail: tasks[j].taskDecs,
  6508. chapterData: [],
  6509. toolText: "",
  6510. toolChoose: [
  6511. {
  6512. tool: [],
  6513. toolDetail: "",
  6514. toolType: 0,
  6515. askCount: 1,
  6516. askTitle: "",
  6517. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6518. },
  6519. ],
  6520. isShowTools: false,
  6521. askCount: 1,
  6522. isFold: 0,
  6523. askTitle: "",
  6524. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6525. checkJson: [{ checkCount: [], checkPerent: [] }],
  6526. homeworkList: [],
  6527. });
  6528. }
  6529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  6530. this.$forceUpdate();
  6531. },
  6532. pasteStage() {
  6533. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  6534. if (!iframe) {
  6535. this.$message.error("请使用AI共创生成");
  6536. return;
  6537. }
  6538. let copyData = iframe.contentWindow.copyData;
  6539. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6540. this.$message.error("请使用AI共创生成");
  6541. return;
  6542. }
  6543. let stageData = copyData.stageData;
  6544. let stage = [];
  6545. for (var i = 0; i < stageData.length; i++) {
  6546. stage.push({
  6547. dyName: stageData[i], //单元标题
  6548. chapterInfo: [
  6549. {
  6550. isread: false,
  6551. chapterid: this.guid(),
  6552. title: "",
  6553. courseName: "",
  6554. taskJson: [
  6555. {
  6556. task: "",
  6557. taskDetail: "",
  6558. chapterData: [],
  6559. toolText: "",
  6560. toolChoose: [
  6561. {
  6562. tool: [],
  6563. toolDetail: "",
  6564. toolType: 0,
  6565. askCount: 1,
  6566. askTitle: "",
  6567. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6568. },
  6569. ],
  6570. isShowTools: false,
  6571. askCount: 1,
  6572. isFold: 0,
  6573. askTitle: "",
  6574. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6575. checkJson: [{ checkCount: [], checkPerent: [] }],
  6576. homeworkList: [],
  6577. },
  6578. ],
  6579. itemCount: 1,
  6580. fileList1: [],
  6581. video: [],
  6582. testData: [],
  6583. pData: [],
  6584. templateArray: [],
  6585. },
  6586. ],
  6587. });
  6588. }
  6589. let _this = this;
  6590. _this
  6591. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6592. confirmButtonText: "确定",
  6593. cancelButtonText: "取消",
  6594. type: "warning",
  6595. })
  6596. .then(() => {
  6597. _this.unitIndex = 0;
  6598. _this.unitJson = stage;
  6599. _this.steps++;
  6600. _this.updateWork();
  6601. })
  6602. .catch(() => {
  6603. return;
  6604. });
  6605. },
  6606. addAnswer() {
  6607. if (this.answerQ == "") {
  6608. this.$message.error("请输入您想要问的问题");
  6609. return;
  6610. }
  6611. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6612. this.taskCount
  6613. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6614. this.dialogVisible8 = false;
  6615. if (
  6616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6617. .toolChoose[this.toolIndex].tool != 15
  6618. ) {
  6619. this.addTools(15, this.taskCount, this.toolIndex);
  6620. }
  6621. },
  6622. addMp3Answer() {
  6623. if (this.answerQ == "") {
  6624. this.$message.error("请输入您想要回答的问题");
  6625. return;
  6626. }
  6627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6628. this.taskCount
  6629. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6630. this.dialogVisibleMp3 = false;
  6631. },
  6632. addRateAnswer() {
  6633. var a = 1;
  6634. for (var i = 0; i < this.rateJson.length; i++) {
  6635. if (this.rateJson[i].value == "") {
  6636. a = 2;
  6637. break;
  6638. }
  6639. }
  6640. if (a == 2) {
  6641. this.$message.error("请把评价信息填写完整");
  6642. return;
  6643. }
  6644. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6645. this.taskCount
  6646. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6647. this.dialogVisibleRate = false;
  6648. if (
  6649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6650. .toolChoose[this.toolIndex].tool != 40
  6651. ) {
  6652. this.addTools(40, this.taskCount, this.toolIndex);
  6653. }
  6654. },
  6655. addSelectAnswer() {
  6656. if (this.selectJson.url == "") {
  6657. this.$message.error("请上传题目");
  6658. return;
  6659. }
  6660. if (!this.selectJson.select.length) {
  6661. this.$message.error("请添加选项");
  6662. return;
  6663. }
  6664. if (!this.selectJson.answer.length) {
  6665. this.$message.error("请设置答案");
  6666. return;
  6667. }
  6668. var a = 1;
  6669. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6670. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6671. a = 2;
  6672. }
  6673. }
  6674. if (a == 2) {
  6675. this.$message.error("请设置答案");
  6676. return;
  6677. }
  6678. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6679. this.taskCount
  6680. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6681. this.dialogVisibleSelect = false;
  6682. if (
  6683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6684. .toolChoose[this.toolIndex].tool != 41
  6685. ) {
  6686. this.addTools(41, this.taskCount, this.toolIndex);
  6687. }
  6688. },
  6689. nextSelectSteps() {
  6690. if (this.selectJson.url == "") {
  6691. this.$message.error("请上传题目");
  6692. return;
  6693. }
  6694. if (!this.selectJson.select.length) {
  6695. this.$message.error("请添加选项");
  6696. return;
  6697. } else {
  6698. for (var z = 0; z < this.selectJson.select.length; z++) {
  6699. let checkC = this.selectJson.select[z];
  6700. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  6701. let checkC2 = this.selectJson.select[z2];
  6702. if (checkC == checkC2) {
  6703. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6704. return;
  6705. }
  6706. }
  6707. }
  6708. }
  6709. var a = 1;
  6710. for (var i = 0; i < this.selectJson.select.length; i++) {
  6711. if (!this.selectJson.select[i]) {
  6712. a = 2;
  6713. }
  6714. }
  6715. if (a == 2) {
  6716. this.$message.error("添加的选项不能为空");
  6717. return;
  6718. }
  6719. this.selectSteps++;
  6720. },
  6721. selectCourseDetail() {
  6722. if (this.cid == "" || this.cid == undefined) {
  6723. console.log("这是新增课程");
  6724. this.selectAllType();
  6725. } else {
  6726. this.cidType = 1;
  6727. let params = {
  6728. cid: this.cid,
  6729. };
  6730. this.ajax
  6731. .get(this.$store.state.api + "select_synergy", params)
  6732. .then((res) => {
  6733. this.loading = true;
  6734. this.courseDetail = res.data[0][0]
  6735. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6736. for (var j = 0; j < this.unitJson.length; j++) {
  6737. for (
  6738. var k = 0;
  6739. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6740. k++
  6741. ) {
  6742. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6743. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6744. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6745. : [];
  6746. let _chapterData = [];
  6747. for (
  6748. var c = 0;
  6749. c <
  6750. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6751. .length;
  6752. c++
  6753. ) {
  6754. if (
  6755. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6756. ) {
  6757. _chapterData.push(
  6758. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6759. );
  6760. }
  6761. }
  6762. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6763. _chapterData;
  6764. }
  6765. }
  6766. this.$forceUpdate();
  6767. this.courseName = res.data[0][0].title;
  6768. this.courseText = res.data[0][0].brief;
  6769. this.evalua = res.data[0][0].evaId;
  6770. this.cover = JSON.parse(res.data[0][0].cover);
  6771. this.noneBtnImg = this.cover.length >= 1;
  6772. // this.checkboxList =
  6773. // res.data[0][0].course_student.length > 0
  6774. // ? JSON.parse(res.data[0][0].course_student)
  6775. // : [];
  6776. this.checkboxList2 = res.data[0][0].juri
  6777. ? res.data[0][0].juri.split(",")
  6778. : [];
  6779. this.inviteCode = [];
  6780. for (var i = 0; i < res.data[2].length; i++) {
  6781. this.inviteCode.push({
  6782. cid: res.data[2][i].classid,
  6783. ic: res.data[2][i].code,
  6784. });
  6785. }
  6786. this.checkboxList3 = res.data[0][0].course_teacher
  6787. ? res.data[0][0].course_teacher.split(",")
  6788. : [];
  6789. // this.isTeacherSee =
  6790. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6791. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6792. this.myWord = res.data[0][0].template;
  6793. this.templateC.id = "123";
  6794. this.courseUserid = res.data[0][0].userid;
  6795. // if(this.courseUserid == this.userid){
  6796. // this.InviteChange(this.checkboxList2)
  6797. // }
  6798. this.nbOrder = res.data[0][0].ordernumber;
  6799. this.courseTypeId = [];
  6800. for (var i = 0; i < res.data[1].length; i++) {
  6801. this.courseTypeId.push(res.data[1][i].typeid);
  6802. }
  6803. console.log(this.courseTypeId);
  6804. // if (this.timer) clearInterval(this.timer);
  6805. if (this.timer) clearTimeout(this.timer);
  6806. this.timer = null;
  6807. // this.timer = setInterval(() => {
  6808. // this.seleteCourseUpdate();
  6809. this.setMan();
  6810. this.selectAllType();
  6811. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  6812. // }, 5000);
  6813. this.$forceUpdate();
  6814. setTimeout(() => {
  6815. this.checkEva(this.evalua);
  6816. }, 0);
  6817. })
  6818. .catch((err) => {
  6819. console.error(err);
  6820. });
  6821. }
  6822. },
  6823. seleteCourseUpdate() {
  6824. let params = {
  6825. cid: this.cid,
  6826. };
  6827. this.ajax
  6828. .get(this.$store.state.api + "select_synergy", params)
  6829. .then((res) => {
  6830. // console.log(this.unitJson);
  6831. let unitJson = JSON.parse(res.data[0][0].chapters);
  6832. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6833. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6834. let _unitJson = [];
  6835. let _chapAarry = [];
  6836. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6837. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6838. let index = 1;
  6839. let chapindex;
  6840. if (_unitJson2.length > unitJson.length) {
  6841. for (let c = 0; c < _unitJson2.length; c++) {
  6842. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6843. }
  6844. for (let j = 0; j < unitJson.length; j++) {
  6845. let count = 0;
  6846. for (let k = 0; k < _unitJson2.length; k++) {
  6847. if (
  6848. unitJson[j].chapterInfo[0].chapterid ==
  6849. _unitJson2[k].chapterInfo[0].chapterid
  6850. ) {
  6851. count++;
  6852. _chapAarry.splice(
  6853. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6854. 1
  6855. );
  6856. _unitJson.push(unitJson[j]);
  6857. break;
  6858. }
  6859. }
  6860. // if(count === 0){
  6861. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6862. // }
  6863. }
  6864. for (let k = 0; k < _unitJson2.length; k++) {
  6865. if (_unitJson2[k].isUpdate == 1) {
  6866. _chapAarry.splice(
  6867. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6868. 1
  6869. );
  6870. _unitJson.push(_unitJson2[k]);
  6871. }
  6872. }
  6873. console.log(_chapAarry);
  6874. for (let d = 0; d < _unitJson2.length; d++) {
  6875. if (
  6876. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6877. ) {
  6878. if (_unitIndex == d) {
  6879. index = 2;
  6880. }
  6881. chapindex = d;
  6882. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6883. }
  6884. }
  6885. } else {
  6886. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6887. }
  6888. for (let i = 0; i < unitJson.length; i++) {
  6889. if (
  6890. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6891. _unitJson[i].chapterInfo[0].chapterid !=
  6892. unitJson[i].chapterInfo[0].chapterid
  6893. ) {
  6894. if (i == _unitJson.length - 1) {
  6895. // this.unitIndex++
  6896. _unitIndex2++;
  6897. }
  6898. _unitJson.splice(i, 0, unitJson[i]);
  6899. } else if (i > _unitJson.length - 1) {
  6900. _unitJson.push(unitJson[i]);
  6901. } else if (
  6902. _unitJson[i].chapterInfo[0].chapterid ==
  6903. unitJson[i].chapterInfo[0].chapterid
  6904. ) {
  6905. _unitJson[i] = unitJson[i];
  6906. }
  6907. // if (i == _unitIndex) {
  6908. // continue;
  6909. // } else
  6910. }
  6911. if (_chapAarry.length && index != 2) {
  6912. if (chapindex < _unitIndex) {
  6913. this.isDelete = 2;
  6914. // this.unitIndex--;
  6915. _unitIndex2--;
  6916. } else if (
  6917. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6918. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6919. ) {
  6920. this.isDelete = 2;
  6921. for (let n = 0; n < _unitJson.length; n++) {
  6922. if (
  6923. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6924. _unitJson[n].chapterInfo[0].chapterid
  6925. ) {
  6926. // this.unitIndex = n;
  6927. _unitIndex2 = n;
  6928. _unitJson[n] = _unitJson2[_unitIndex];
  6929. break;
  6930. }
  6931. }
  6932. }
  6933. } else if (index != 2) {
  6934. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6935. _unitJson2[_unitIndex];
  6936. for (
  6937. var ci = 0;
  6938. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6939. ci++
  6940. ) {
  6941. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6942. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6943. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6944. .toolChoose
  6945. : [];
  6946. let _chapterData = [];
  6947. for (
  6948. var c = 0;
  6949. c <
  6950. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6951. .length;
  6952. c++
  6953. ) {
  6954. if (
  6955. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6956. .chapterData[c]
  6957. ) {
  6958. _chapterData.push(
  6959. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6960. .chapterData[c]
  6961. );
  6962. }
  6963. }
  6964. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6965. _chapterData;
  6966. }
  6967. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6968. }
  6969. if (index == 1) {
  6970. this.unitJson = _unitJson;
  6971. this.$forceUpdate();
  6972. setTimeout(() => {
  6973. if (this.unitIndex != _unitIndex2) {
  6974. this.isDelete = 2;
  6975. this.unitIndex = _unitIndex2;
  6976. }
  6977. }, 0);
  6978. this.timer = setTimeout(() => {
  6979. this.seleteCourseUpdate();
  6980. }, 1000);
  6981. } else if (index == 2) {
  6982. let _this = this;
  6983. _this
  6984. .$confirm(
  6985. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6986. "提示",
  6987. {
  6988. confirmButtonText: "需要",
  6989. cancelButtonText: "取消",
  6990. type: "warning",
  6991. }
  6992. )
  6993. .then(() => {
  6994. if (_this.time()) {
  6995. _this.restoreWork(
  6996. _chapAarry[0],
  6997. _unitJson,
  6998. chapindex,
  6999. _unitJson2,
  7000. _unitIndex2
  7001. );
  7002. }
  7003. })
  7004. .catch(() => {
  7005. _this.unitJson = _unitJson;
  7006. _this.$forceUpdate();
  7007. setTimeout(() => {
  7008. if (this.unitIndex != _unitIndex2) {
  7009. this.isDelete = 2;
  7010. this.unitIndex = _unitIndex2;
  7011. }
  7012. }, 0);
  7013. _this.timer = setTimeout(() => {
  7014. _this.seleteCourseUpdate();
  7015. }, 1000);
  7016. });
  7017. }
  7018. })
  7019. .catch((err) => {
  7020. console.error(err);
  7021. });
  7022. },
  7023. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  7024. let params = [
  7025. {
  7026. cid: this.cid,
  7027. chapters: JSON.stringify(this.unitJson),
  7028. uid: this.userid,
  7029. chapid: chapid,
  7030. },
  7031. ];
  7032. this.ajax
  7033. .post(this.$store.state.api + "restoreWork", params)
  7034. .then((res) => {
  7035. this.$message({
  7036. message: "恢复成功",
  7037. type: "success",
  7038. });
  7039. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  7040. this.unitJson = unitJson;
  7041. this.$forceUpdate();
  7042. setTimeout(() => {
  7043. if (this.unitIndex != unitIndex2) {
  7044. this.isDelete = 2;
  7045. this.unitIndex = unitIndex2;
  7046. }
  7047. }, 0);
  7048. this.timer = setTimeout(() => {
  7049. this.seleteCourseUpdate();
  7050. }, 1000);
  7051. })
  7052. .catch((err) => {
  7053. this.$message.error(this.lang.Poorinternetconnection);
  7054. console.error(err);
  7055. });
  7056. },
  7057. getTypeName() {
  7058. console.log(this.courseTypeId);
  7059. this.$forceUpdate();
  7060. },
  7061. selectAllType() {
  7062. let params = {
  7063. org: this.org && this.org != "" ? this.org : "",
  7064. oid: this.oid && this.oid != "" ? this.oid : "",
  7065. stand: this.lang.lang
  7066. };
  7067. this.ajax
  7068. .get(this.$store.state.api + "selectAllTypeStand", params)
  7069. .then((res) => {
  7070. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7071. res.data[0] = [...res.data[0], ...res.data[4]]
  7072. }
  7073. this.CourseType = res.data;
  7074. this.CourseType2 = [
  7075. { name: this.lang.ZhijianCourse, id: [] },
  7076. { name: this.lang.ZhixingCourse, id: [] },
  7077. { name: this.lang.IntelligentCreationCourse, id: [] },
  7078. ];
  7079. for (var cti = 0; cti < res.data[0].length; cti++) {
  7080. if (
  7081. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  7082. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  7083. ) {
  7084. this.CourseType2[0].id.push(res.data[0][cti].id);
  7085. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  7086. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  7087. this.CourseType2[1].id.push(res.data[0][cti].id);
  7088. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7089. this.CourseType2[2].id.push(res.data[0][cti].id);
  7090. }
  7091. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  7092. res.data[0][cti].name = this.lang.ssGradeType;
  7093. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  7094. res.data[0][cti].name = this.lang.ssSubjectCategory;
  7095. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7096. res.data[0][cti].name = this.lang.ssThemeType;
  7097. }
  7098. }
  7099. let _courseTypeId = [];
  7100. for (var i = 0; i < res.data[0].length; i++) {
  7101. if (!this.cid) {
  7102. this.courseTypeId[res.data[0][i].id] = [];
  7103. }
  7104. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  7105. // }
  7106. this.CourseTypeJson[res.data[0][i].id] = [];
  7107. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7108. if (res.data[0][i].name == "栏目") {
  7109. this.CourseType[0][i].name = "主题";
  7110. }
  7111. }
  7112. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7113. for (var j = 0; j < res.data[1].length; j++) {
  7114. if (
  7115. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7116. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7117. ) {
  7118. _courseTypeId.push(res.data[1][j].id);
  7119. }
  7120. if (res.data[0][i].id == res.data[1][j].pid) {
  7121. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7122. }
  7123. }
  7124. } else {
  7125. if (res.data[2].length > 0) {
  7126. for (var j = 0; j < res.data[2].length; j++) {
  7127. if (
  7128. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7129. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7130. ) {
  7131. _courseTypeId.push(res.data[2][j].id);
  7132. }
  7133. if (res.data[0][i].id == res.data[2][j].pid) {
  7134. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7135. }
  7136. }
  7137. }
  7138. if (res.data[3].length > 0) {
  7139. for (var j = 0; j < res.data[3].length; j++) {
  7140. if (
  7141. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7142. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7143. ) {
  7144. _courseTypeId.push(res.data[3][j].id);
  7145. }
  7146. if (res.data[0][i].id == res.data[3][j].pid) {
  7147. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7148. }
  7149. }
  7150. }
  7151. }
  7152. }
  7153. this.courseTypeId = _courseTypeId;
  7154. })
  7155. .catch((err) => {
  7156. console.error(err);
  7157. });
  7158. },
  7159. selectType() {
  7160. this.ajax
  7161. .get(this.$store.state.api + "selectType")
  7162. .then((res) => {
  7163. this.CourseType = res.data;
  7164. for (var i = 0; i < res.data[0].length; i++) {
  7165. if (!this.cid) {
  7166. this.courseTypeId[res.data[0][i].id] = "";
  7167. }
  7168. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7169. if (res.data[0][i].name == "栏目") {
  7170. this.CourseType[0][i].name = "主题";
  7171. }
  7172. }
  7173. for (var j = 0; j < res.data[1].length; j++) {
  7174. if (res.data[0][i].id == res.data[1][j].pid) {
  7175. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7176. this.CourseTypeJson[res.data[0][i].id] = [];
  7177. }
  7178. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7179. }
  7180. }
  7181. }
  7182. this.selectTypeByOid();
  7183. this.selectTypeByOrg();
  7184. })
  7185. .catch((err) => {
  7186. console.error(err);
  7187. });
  7188. },
  7189. selectTypeByOid() {
  7190. let params = {
  7191. oid: this.oid,
  7192. };
  7193. this.ajax
  7194. .get(this.$store.state.api + "selectTypeByOid", params)
  7195. .then((res) => {
  7196. for (var i = 0; i < res.data[0].length; i++) {
  7197. for (var j = 0; j < res.data[1].length; j++) {
  7198. if (res.data[0][i].id == res.data[1][j].pid) {
  7199. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7200. this.CourseTypeJson[res.data[0][i].id] = [];
  7201. }
  7202. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7203. }
  7204. }
  7205. }
  7206. })
  7207. .catch((err) => {
  7208. console.error(err);
  7209. });
  7210. },
  7211. selectTypeByOrg() {
  7212. let params = {
  7213. oid: this.org,
  7214. };
  7215. this.ajax
  7216. .get(this.$store.state.api + "selectTypeByOrg", params)
  7217. .then((res) => {
  7218. for (var i = 0; i < res.data[0].length; i++) {
  7219. for (var j = 0; j < res.data[1].length; j++) {
  7220. if (res.data[0][i].id == res.data[1][j].pid) {
  7221. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7222. this.CourseTypeJson[res.data[0][i].id] = [];
  7223. }
  7224. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7225. }
  7226. }
  7227. }
  7228. this.$forceUpdate();
  7229. })
  7230. .catch((err) => {
  7231. console.error(err);
  7232. });
  7233. },
  7234. OtherMb(type) {
  7235. this.typeMode = type;
  7236. setTimeout(() => {
  7237. this.checkEva(this.checkId);
  7238. }, 0);
  7239. },
  7240. openMember() {
  7241. if (this.cid && this.userid != this.courseUserid && this.role != '1') {
  7242. this.$message.error(this.lang.Noncannotedit)
  7243. return;
  7244. }
  7245. this.searchTN = "";
  7246. this.page = 1
  7247. this.getTeacher();
  7248. this.dialogVisibleMember = true;
  7249. },
  7250. checkEva(id, type) {
  7251. this.dialogVisiblemb = false;
  7252. this.selectEva();
  7253. if (this.evalua != id && type == 2) {
  7254. this.$message.success("导入成功");
  7255. }
  7256. this.evalua = id;
  7257. this.checkId = id;
  7258. if (this.evalua != "") {
  7259. for (var i = 0; i < this.evaJuri.length; i++) {
  7260. if (this.evalua == this.evaJuri[i].id) {
  7261. this.eTitle = this.evaJuri[i].title;
  7262. this.eJson = JSON.parse(this.evaJuri[i].content);
  7263. }
  7264. }
  7265. this.data.data = [];
  7266. this.$forceUpdate();
  7267. setTimeout(() => {
  7268. this.setMindData();
  7269. }, 500);
  7270. }
  7271. },
  7272. deleteEva() {
  7273. let _this = this;
  7274. if (_this.evalua == "") {
  7275. this.$message.warning("内容已经清空了,请勿重复清空");
  7276. return;
  7277. }
  7278. _this
  7279. .$confirm("确定删除此目标吗?", "提示", {
  7280. confirmButtonText: "确定",
  7281. cancelButtonText: "取消",
  7282. type: "warning",
  7283. })
  7284. .then(() => {
  7285. _this.evalua = "";
  7286. _this.checkId = "";
  7287. _this.eTitle = "";
  7288. let _unitJson = _this.unitJson;
  7289. for (var i = 0; i < _unitJson.length; i++) {
  7290. let _task = _unitJson[i].chapterInfo[0].taskJson;
  7291. for (var j = 0; j < _task.length; j++) {
  7292. let _eList = _task[j].eList;
  7293. for (var k = 0; k < _eList.length; k++) {
  7294. delete _eList[k].target;
  7295. }
  7296. }
  7297. }
  7298. _this.$forceUpdate();
  7299. if (_this.cid) {
  7300. _this.updateWork();
  7301. }
  7302. })
  7303. .catch(() => {
  7304. return;
  7305. });
  7306. },
  7307. selectEva() {
  7308. let params = {
  7309. oid: this.oid,
  7310. };
  7311. this.ajax
  7312. .get(this.$store.state.api + "selectAllEvaluation", params)
  7313. .then((res) => {
  7314. this.evaJuri = res.data[0];
  7315. })
  7316. .catch((err) => {
  7317. console.error(err);
  7318. });
  7319. },
  7320. setMindData() {
  7321. let targetArray = [];
  7322. this.data.data = [];
  7323. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  7324. let _eJson = Object.keys(this.eJson);
  7325. let _e = this.eJson;
  7326. for (let i = 0; i < _eJson.length; i++) {
  7327. let element = _e[_eJson[i]];
  7328. this.data.data.push({
  7329. id: element.id,
  7330. parentid: "root",
  7331. topic: element.name,
  7332. });
  7333. // targetArray.push({
  7334. // id: element.id,
  7335. // parentid: "root",
  7336. // name: element.name,
  7337. // });
  7338. targetArray.push({
  7339. value: element.name,
  7340. label: element.name,
  7341. children: [],
  7342. });
  7343. let _eJsonc = Object.keys(element.child);
  7344. let _e2 = element.child;
  7345. for (let j = 0; j < _eJsonc.length; j++) {
  7346. let _ec = _e2[_eJsonc[j]];
  7347. this.data.data.push({
  7348. id: _ec.id,
  7349. parentid: element.id,
  7350. topic: _ec.name,
  7351. });
  7352. // targetArray.push({
  7353. // id: _ec.id,
  7354. // parentid: element.id,
  7355. // name: _ec.name,
  7356. // });
  7357. targetArray[i].children.push({
  7358. value: _ec.name,
  7359. label: _ec.name,
  7360. children: [],
  7361. });
  7362. let _eJsonz = Object.keys(_ec.child);
  7363. let _e3 = _ec.child;
  7364. for (let z = 0; z < _eJsonz.length; z++) {
  7365. let _ez = _e3[_eJsonz[z]];
  7366. this.data.data.push({
  7367. id: _ez.id,
  7368. parentid: _ec.id,
  7369. topic: _ez.name,
  7370. });
  7371. // targetArray.push({
  7372. // id: _ez.id,
  7373. // parentid: _ec.id,
  7374. // name: _ez.name,
  7375. // });
  7376. targetArray[i].children[j].children.push({
  7377. value: _ez.name,
  7378. label: _ez.name,
  7379. });
  7380. }
  7381. }
  7382. }
  7383. this.targetArray = targetArray;
  7384. this.$forceUpdate();
  7385. },
  7386. /*添加评价 */
  7387. addEList(index, tIndex) {
  7388. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7389. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7390. value: "",
  7391. detail: "",
  7392. score: 5,
  7393. })
  7394. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7395. { value: "", detail: "", score: 5 },
  7396. ]);
  7397. this.$forceUpdate();
  7398. },
  7399. forceUpdate() {
  7400. this.$forceUpdate();
  7401. },
  7402. deletEList(index, tIndex, eIndex) {
  7403. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7404. eIndex,
  7405. 1
  7406. );
  7407. this.$forceUpdate();
  7408. },
  7409. getChoosePic(t) {
  7410. this.chooseType = t;
  7411. this.getAllBanner();
  7412. },
  7413. getAllBanner() {
  7414. this.sysPicVisible = true;
  7415. let params = {
  7416. t: this.chooseType,
  7417. };
  7418. this.ajax
  7419. .get(this.$store.state.api + "selectAllBanner", params)
  7420. .then((res) => {
  7421. this.sysPic = res.data[0];
  7422. })
  7423. .catch((err) => {
  7424. console.error(err);
  7425. });
  7426. },
  7427. // getClass() {
  7428. // let params = {
  7429. // oid: this.oid,
  7430. // };
  7431. // this.ajax
  7432. // .get(this.$store.state.api + "selectClassBySchool", params)
  7433. // .then((res) => {
  7434. // this.classJuri = res.data[0];
  7435. // })
  7436. // .catch((err) => {
  7437. // console.error(err);
  7438. // });
  7439. // },
  7440. deleteSysPic() {
  7441. this.cover = [];
  7442. this.isSysPic = false;
  7443. this.isSysPic2 = false;
  7444. },
  7445. deleteSelectPic() {
  7446. this.selectJson.url = "";
  7447. },
  7448. setEListStar() {
  7449. this.$forceUpdate();
  7450. },
  7451. deletRateList(i) {
  7452. this.rateJson.splice(i, 1);
  7453. },
  7454. addRateList() {
  7455. this.rateJson.push({ detail: "", score: 5, value: "" });
  7456. },
  7457. addSt() {
  7458. this.sentenceList.push({
  7459. sentenceTitle: "",
  7460. addSentence: [],
  7461. rightAnswer: [],
  7462. });
  7463. },
  7464. addSen(i) {
  7465. if (!this.sentenceList[i].sentenceTitle) {
  7466. this.$message.error("请填写卡片内容!");
  7467. return;
  7468. }
  7469. if (this.sentenceList[i].sentenceTitle.length > 10) {
  7470. this.$message.error("卡片内容字数不能超过10位");
  7471. return;
  7472. }
  7473. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  7474. this.$message.error("不能添加重复的卡片内容!");
  7475. return;
  7476. }
  7477. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7478. // this.isPushTitleList.push(this.sentenceTitle);
  7479. this.sentenceList[i].sentenceTitle = "";
  7480. },
  7481. setRightAnswer(s, i, j) {
  7482. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7483. this.sentenceList[i].rightAnswer.push(s);
  7484. }
  7485. },
  7486. returnCard(r, i, j) {
  7487. this.sentenceList[i].rightAnswer.splice(j, 1);
  7488. },
  7489. addSentenceTool() {
  7490. for (var i = 0; i < this.sentenceList.length; i++) {
  7491. if (this.sentenceList[i].rightAnswer.length == 0) {
  7492. this.$message.error(`请将题目${i + 1}设置完整。`);
  7493. return;
  7494. }
  7495. if (
  7496. this.sentenceList[i].addSentence.length !=
  7497. this.sentenceList[i].rightAnswer.length
  7498. ) {
  7499. this.$message.error(`请将题目${i + 1}设置完整。`);
  7500. return;
  7501. }
  7502. }
  7503. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7504. this.taskCount
  7505. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7506. this.sentenceList = [
  7507. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7508. ];
  7509. this.dialogVisibleSentence = false;
  7510. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7511. // itemTaskIndex
  7512. // ].toolChoose[toolIndex].tool = [];
  7513. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7514. // itemTaskIndex
  7515. // ].toolChoose[toolIndex].tool.push(i);
  7516. if (
  7517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7518. .toolChoose[this.toolIndex].tool != 47
  7519. ) {
  7520. this.addTools(47, this.taskCount, this.toolIndex);
  7521. }
  7522. },
  7523. addTableJson() {
  7524. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7525. // this.$message.error("请将信息填写完整!");
  7526. // return;
  7527. // }
  7528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7529. this.taskCount
  7530. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7531. // this.tableJson = [{ text: "" }];
  7532. // this.dialogVisibleTable = false;
  7533. this.$message.success("上传成功");
  7534. if (
  7535. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7536. .toolChoose[this.toolIndex].tool != 48
  7537. ) {
  7538. this.addTools(48, this.taskCount, this.toolIndex);
  7539. }
  7540. },
  7541. addWordJson() {
  7542. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7543. this.taskCount
  7544. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7545. // this.wordJson = [{ text: "" }];
  7546. // this.dialogVisibleWord = false;
  7547. this.$message.success("上传成功");
  7548. if (
  7549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7550. .toolChoose[this.toolIndex].tool != 52
  7551. ) {
  7552. this.addTools(52, this.taskCount, this.toolIndex);
  7553. }
  7554. },
  7555. addMoreUpload() {
  7556. if (this.uploadJson.length == 0) {
  7557. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7558. this.taskCount
  7559. ].toolChoose[this.toolIndex].uploadJson = [];
  7560. } else {
  7561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7562. this.taskCount
  7563. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7564. }
  7565. this.uploadJson = [];
  7566. this.dialogVisibleMoreUpload = false;
  7567. if (
  7568. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7569. .toolChoose[this.toolIndex].tool != 50
  7570. ) {
  7571. this.addTools(50, this.taskCount, this.toolIndex);
  7572. }
  7573. },
  7574. addPreTime() {
  7575. if (this.preTime == 0) {
  7576. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7577. this.taskCount
  7578. ].toolChoose[this.toolIndex].preTime = 0;
  7579. } else {
  7580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7581. this.taskCount
  7582. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7583. }
  7584. this.preTime = 0;
  7585. this.dialogVisiblePreTime = false;
  7586. if (
  7587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7588. .toolChoose[this.toolIndex].tool != 10
  7589. ) {
  7590. this.addTools(10, this.taskCount, this.toolIndex);
  7591. }
  7592. },
  7593. goToTask(i) {
  7594. this.toolIndexType = ''
  7595. if (this.isClickColor == (i + 1)) {
  7596. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  7597. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  7598. } else {
  7599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  7600. }
  7601. this.$forceUpdate();
  7602. return;
  7603. }
  7604. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  7605. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  7606. } else {
  7607. document.querySelectorAll(".rightBox")[0].scrollTop =
  7608. document.querySelectorAll(".taskBorder")[i + 1].offsetTop +
  7609. document.querySelectorAll(".taskBorder")[i + 1].parentElement.parentElement.offsetTop;
  7610. this.isClickColor = i + 1;
  7611. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  7612. }
  7613. this.$forceUpdate();
  7614. },
  7615. taskMove(type, index) {
  7616. // this
  7617. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  7618. // confirmButtonText: "确定",
  7619. // cancelButtonText: "取消",
  7620. // type: "warning",
  7621. // })
  7622. // .then(() => {
  7623. if (type == 1) {
  7624. if (index > 0) {
  7625. let a = JSON.parse(
  7626. JSON.stringify(
  7627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  7628. )
  7629. );
  7630. let b = JSON.parse(
  7631. JSON.stringify(
  7632. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  7633. )
  7634. );
  7635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7636. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7637. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7638. if (index - 1 == 0) {
  7639. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7640. index - 1
  7641. ].chapterData = a.chapterData;
  7642. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7643. index
  7644. ].chapterData = b.chapterData;
  7645. }
  7646. }
  7647. } else {
  7648. if (
  7649. index <
  7650. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7651. ) {
  7652. let a = JSON.parse(
  7653. JSON.stringify(
  7654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  7655. )
  7656. );
  7657. let b = JSON.parse(
  7658. JSON.stringify(
  7659. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  7660. )
  7661. );
  7662. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7663. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7664. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7665. if (index == 0) {
  7666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7667. index + 1
  7668. ].chapterData = a.chapterData;
  7669. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7670. index
  7671. ].chapterData = b.chapterData;
  7672. }
  7673. }
  7674. }
  7675. this.$forceUpdate();
  7676. // })
  7677. // .catch(() => {
  7678. // return;
  7679. // })
  7680. },
  7681. addGroup(i) {
  7682. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7683. this.groupJson.group.push({
  7684. name: "第" + (this.groupJson.group.length + 1) + "组",
  7685. });
  7686. },
  7687. deleteGroup(i) {
  7688. this.groupJson.group.splice(i, 1);
  7689. },
  7690. numberPan() {
  7691. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  7692. this.$message.error('请输入2-10的数字')
  7693. this.groupJson.number = ''
  7694. }
  7695. },
  7696. addGroupJson() {
  7697. for (var i = 0; i < this.groupJson.group.length; i++) {
  7698. if (!this.groupJson.group[i].name) {
  7699. this.$message.error("请将信息填写完整!");
  7700. return;
  7701. }
  7702. }
  7703. if (!this.groupJson.number) {
  7704. this.$message.error("请将信息填写完整!");
  7705. return;
  7706. }
  7707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7708. this.taskCount
  7709. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7710. JSON.stringify(this.groupJson)
  7711. );
  7712. this.dialogVisibleGroup = false;
  7713. this.groupJson = {};
  7714. if (
  7715. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7716. .toolChoose[this.toolIndex].tool != 49
  7717. ) {
  7718. this.addTools(49, this.taskCount, this.toolIndex);
  7719. }
  7720. },
  7721. updateTime(preTime) {
  7722. this.preTime = preTime;
  7723. },
  7724. InviteChange(val) {
  7725. console.log(val);
  7726. return;
  7727. let array = JSON.parse(JSON.stringify(val));
  7728. this.inviteCode = this.inviteCode.filter((el) => {
  7729. if (val.indexOf(el.cid) != -1) {
  7730. array.splice(array.indexOf(el.cid), 1);
  7731. return el;
  7732. }
  7733. });
  7734. for (var i = 0; i < array.length; i++) {
  7735. this.getInviteCode(array[i]);
  7736. }
  7737. },
  7738. async getInviteCode(cid) {
  7739. let code = this.randomNumber();
  7740. let params = {
  7741. code: code,
  7742. oid: this.oid,
  7743. };
  7744. let type = 1;
  7745. for (var i = 0; i < this.inviteCode.length; i++) {
  7746. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7747. type = 2;
  7748. }
  7749. }
  7750. if (type == 2) {
  7751. this.getInviteCode(cid);
  7752. return;
  7753. }
  7754. const res = await this.ajax.get(
  7755. this.$store.state.api + "selectInviteCode2",
  7756. params
  7757. );
  7758. if (
  7759. res.data.length &&
  7760. res.data[0].length &&
  7761. res.data[0][0].courseId != this.cid
  7762. ) {
  7763. this.getInviteCode(cid);
  7764. return;
  7765. }
  7766. let array = [];
  7767. for (var i = 0; i < this.inviteCode.length; i++) {
  7768. array.push(this.inviteCode[i].cid);
  7769. }
  7770. if (array.indexOf(cid) != -1) {
  7771. this.inviteCode[array.indexOf(cid)].ic = code;
  7772. } else {
  7773. this.inviteCode.push({ cid: cid, ic: code });
  7774. }
  7775. },
  7776. OpenInviteD(cid) {
  7777. let array = [];
  7778. this.icode = "";
  7779. for (var i = 0; i < this.inviteCode.length; i++) {
  7780. array.push(this.inviteCode[i].cid);
  7781. }
  7782. if (array.indexOf(cid) != -1) {
  7783. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7784. }
  7785. this.inviteId = cid;
  7786. this.dialogVisibleInvite = true;
  7787. },
  7788. addInvite() {
  7789. let reg = /^[A-Za-z0-9]{4,}$/;
  7790. if (!reg.test(this.icode)) {
  7791. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7792. return;
  7793. }
  7794. let type = 1;
  7795. for (var i = 0; i < this.inviteCode.length; i++) {
  7796. if (
  7797. this.inviteCode[i].cid != this.inviteId &&
  7798. this.icode == this.inviteCode[i].ic
  7799. ) {
  7800. type = 2;
  7801. }
  7802. }
  7803. if (type == 2) {
  7804. this.$message.error("已有此随机码,不能重复");
  7805. return;
  7806. }
  7807. let params = {
  7808. code: this.icode,
  7809. oid: this.oid,
  7810. };
  7811. this.ajax
  7812. .get(this.$store.state.api + "selectInviteCode", params)
  7813. .then((res) => {
  7814. if (
  7815. res.data.length &&
  7816. res.data[0].length &&
  7817. res.data[0][0].courseId != this.cid
  7818. ) {
  7819. this.$message.error("已有此随机码,不能重复");
  7820. return;
  7821. }
  7822. let array = [];
  7823. for (var i = 0; i < this.inviteCode.length; i++) {
  7824. array.push(this.inviteCode[i].cid);
  7825. }
  7826. if (array.indexOf(this.inviteId) != -1) {
  7827. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7828. } else {
  7829. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7830. }
  7831. this.icode = "";
  7832. this.dialogVisibleInvite = false;
  7833. })
  7834. .catch((err) => {
  7835. console.error(err);
  7836. });
  7837. },
  7838. randomNumber() {
  7839. // 随机生成两位数
  7840. // let num = Math.floor(Math.random() * 900) + 100;
  7841. // 生成 0 到 99 之间的随机整数
  7842. const randomNumber = Math.floor(Math.random() * 100);
  7843. // 如果随机数小于 10,补上前导零
  7844. const num =
  7845. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7846. // 随机生成两个大写字母
  7847. let letters = "";
  7848. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7849. for (let i = 0; i < 3; i++) {
  7850. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7851. }
  7852. // 随机生成两位数字和字母的组合
  7853. let mix = "";
  7854. let chars =
  7855. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7856. for (let i = 0; i < 3; i++) {
  7857. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7858. mix += char;
  7859. }
  7860. // 随机选择一种类型
  7861. let type = Math.floor(Math.random() * 3);
  7862. return num;
  7863. // 根据类型输出结果
  7864. switch (type) {
  7865. case 0:
  7866. console.log(num); // 输出两位数
  7867. return num;
  7868. case 1:
  7869. console.log(letters); // 输出两个大写字母
  7870. return letters;
  7871. case 2:
  7872. console.log(mix); // 输出两位数字和字母的组合
  7873. return mix;
  7874. }
  7875. },
  7876. getPaste() {
  7877. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  7878. if (!iframe) {
  7879. return;
  7880. }
  7881. let copyData = iframe.contentWindow.copyData;
  7882. // if (copyData && copyData.stageData && copyData.stageData.length) {
  7883. // this.isPasteStage = true
  7884. // }
  7885. if (copyData && copyData.selectData.length) {
  7886. this.isPasteChoice = true
  7887. }
  7888. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  7889. this.isPasteTask = true
  7890. }
  7891. },
  7892. searchImage() {
  7893. var _this = this;
  7894. _this.imageList = []
  7895. if (!_this.searchImageValue) {
  7896. _this.sysPicVisible2 = true
  7897. return
  7898. }
  7899. _this.imageloading = true
  7900. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  7901. page: _this.ppage,
  7902. pagesize: 9,
  7903. query: _this.searchImageValue
  7904. }).then(function (response) {
  7905. // console.log(response.data.data);
  7906. var data = response.data.FunctionResponse.result;
  7907. for (var i = 0; i < data.length; i++) {
  7908. _this.imageList.push({ url: data[i].thumbnail })
  7909. }
  7910. _this.imageloading = false
  7911. }).catch(function (error) {
  7912. console.log(error);
  7913. });
  7914. _this.sysPicVisible2 = true
  7915. },
  7916. changePicture() {
  7917. this.ppage++
  7918. this.searchImage()
  7919. },
  7920. resetImage() {
  7921. this.ppage = 1
  7922. this.searchImage()
  7923. },
  7924. jumpGj(i, j) {
  7925. if ((i + 1) != this.isClickColor) {
  7926. this.isClickColor = (i + 1)
  7927. }
  7928. var a = document.scrollingElement;
  7929. this.toolIndexType = `gj${i}${j}`
  7930. let target = document.querySelector(`#gj${i}${j}`);
  7931. if (target) {
  7932. target.scrollIntoView(true);
  7933. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  7934. // setTimeout(() => {
  7935. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  7936. // }, 0);
  7937. }
  7938. },
  7939. },
  7940. beforeDestroy() {
  7941. clearTimeout(this.timer);
  7942. this.timer = null;
  7943. clearInterval(this.timer2);
  7944. this.timer2 = null;
  7945. clearInterval(this.pasteTimer);
  7946. this.pasteTimer = null;
  7947. },
  7948. beforeRouteLeave(to, from, next) {
  7949. clearTimeout(this.timer);
  7950. this.timer = null;
  7951. clearInterval(this.timer2);
  7952. this.timer2 = null;
  7953. clearInterval(this.pasteTimer);
  7954. this.pasteTimer = null;
  7955. next();
  7956. },
  7957. created() {
  7958. this.getStudent();
  7959. this.getTeacher();
  7960. this.getClass();
  7961. this.selectGrage();
  7962. this.getTemplate();
  7963. // this.selectType();
  7964. this.selectEva();
  7965. this.loading = false;
  7966. this.timer2 = setInterval(() => {
  7967. this.selectEva();
  7968. }, 5000);
  7969. this.pasteTimer = setInterval(() => {
  7970. this.getPaste();
  7971. }, 1000);
  7972. setTimeout(() => {
  7973. this.selectCourseDetail();
  7974. }, 500);
  7975. },
  7976. mounted() {
  7977. this.$nextTick(() => {
  7978. //监听这个dom的scroll事件
  7979. // $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  7980. // this.heightPx = $(".rightBox")[0].offsetHeight + 'px'
  7981. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  7982. this.$forceUpdate();
  7983. });
  7984. },
  7985. };
  7986. </script>
  7987. <style scoped>
  7988. @media screen and (max-width: 1280px) {
  7989. .mbCss {
  7990. flex-direction: column !important;
  7991. }
  7992. .pjCss {
  7993. width: 100% !important;
  7994. }
  7995. .evaCss {
  7996. width: 100% !important;
  7997. }
  7998. }
  7999. .dialog_diy>>>.el-dialog__header {
  8000. background: #3c3c3c !important;
  8001. padding: 15px 20px;
  8002. }
  8003. .dialog_diy>>>.el-dialog__title {
  8004. color: #fff;
  8005. }
  8006. .dialog_diy>>>.el-dialog__headerbtn {
  8007. top: 19px;
  8008. }
  8009. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8010. color: #fff;
  8011. }
  8012. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8013. color: #fff;
  8014. }
  8015. .dialog_diy>>>.el-dialog__body,
  8016. .dialog_diy>>>.el-dialog__footer {
  8017. background: #fafafa;
  8018. }
  8019. .dialog_diy3>>>.el-dialog__body,
  8020. .dialog_diy3>>>.el-dialog__footer {
  8021. background: #eee !important;
  8022. }
  8023. .dialog_diy3>>>.el-dialog__body {
  8024. padding: 20px 20px;
  8025. }
  8026. .source_diy>>>.el-dialog {
  8027. height: 100% !important;
  8028. margin: 0 auto !important;
  8029. }
  8030. .source_diy>>>.el-dialog__body {
  8031. height: calc(100% - 185px);
  8032. overflow: auto;
  8033. background: #e6eaf0;
  8034. }
  8035. .source_diy>>>.el-dialog__footer {
  8036. background: #e6eaf0 !important;
  8037. }
  8038. .left {
  8039. border-right: 1px solid rgb(60, 94, 143);
  8040. display: flex;
  8041. flex-direction: column;
  8042. align-items: center;
  8043. min-height: 600px;
  8044. width: 385px;
  8045. height: 80%;
  8046. }
  8047. .tips {
  8048. color: rgb(128, 128, 128);
  8049. font-size: 12px;
  8050. width: 270px;
  8051. margin: 40px;
  8052. }
  8053. .pb_content {
  8054. height: 100% !important;
  8055. /* margin: 0 20px 0 20px; */
  8056. }
  8057. .pb_content_body {
  8058. width: 100% !important;
  8059. height: 100%;
  8060. }
  8061. .info_solid {
  8062. width: 270px;
  8063. height: 30px;
  8064. border-left: 1px solid #bdbdbd;
  8065. margin: 10px 0px 10px 30px;
  8066. }
  8067. .info_steps {
  8068. width: 270px;
  8069. font-size: 0.875rem;
  8070. display: flex;
  8071. align-items: center;
  8072. }
  8073. .info_steps span:nth-child(1) {
  8074. width: 30px;
  8075. height: 30px;
  8076. background: rgba(0, 0, 0, 0.38);
  8077. display: block;
  8078. color: #fff;
  8079. border-radius: 40px;
  8080. text-align: center;
  8081. line-height: 30px;
  8082. }
  8083. .steps_active {
  8084. background: #3d67bc !important;
  8085. }
  8086. .info_steps span:nth-child(2) {
  8087. margin-left: 5px;
  8088. }
  8089. .right {
  8090. height: 100%;
  8091. width: calc(100% - 40px);
  8092. display: flex;
  8093. overflow: hidden;
  8094. margin: 0 auto;
  8095. }
  8096. .basic_box {
  8097. margin: 0 auto;
  8098. position: relative;
  8099. padding: 0 20px 0 20px;
  8100. }
  8101. .basic_box2 {
  8102. position: relative;
  8103. width: calc(100% - 300px);
  8104. }
  8105. .basic_box_success {
  8106. width: 100%;
  8107. height: 100%;
  8108. padding: 50px 0;
  8109. position: relative;
  8110. text-align: center;
  8111. /* border-bottom: 1px solid #bfbfbf; */
  8112. box-sizing: border-box;
  8113. display: flex;
  8114. align-items: center;
  8115. flex-direction: column;
  8116. justify-content: center;
  8117. }
  8118. .info_title {
  8119. font-size: 1.5em;
  8120. margin-right: 25px;
  8121. /* margin: 20px 30px 20px 30px; */
  8122. }
  8123. .bInfo_title {
  8124. text-align: left;
  8125. margin: 10px 0;
  8126. }
  8127. .small_title {
  8128. font-size: 14px;
  8129. line-height: 40px;
  8130. }
  8131. .chapter_beizhu {
  8132. font-size: 12px;
  8133. font-weight: bold;
  8134. float: right;
  8135. color: rgb(128, 128, 128);
  8136. margin-top: 5px;
  8137. }
  8138. .chapter_uploadBox1 {
  8139. text-align: left;
  8140. background-color: rgb(242, 242, 242);
  8141. width: 100%;
  8142. height: 67px;
  8143. padding: 0px 15px;
  8144. border-radius: 8px;
  8145. overflow: hidden;
  8146. font-size: 16px;
  8147. box-sizing: border-box;
  8148. position: relative;
  8149. }
  8150. .chapter_add {
  8151. width: 100%;
  8152. height: 32px;
  8153. margin-top: 15px;
  8154. cursor: pointer;
  8155. }
  8156. .chapter_add_l {
  8157. margin-left: 5px;
  8158. width: 30px;
  8159. height: 30px;
  8160. float: left;
  8161. border: 1px solid #aaa;
  8162. color: #aaa;
  8163. border-radius: 50%;
  8164. font-size: 25px;
  8165. text-align: center;
  8166. }
  8167. .chapter_add_r {
  8168. font-size: 18px;
  8169. height: 40px;
  8170. line-height: 30px;
  8171. text-indent: 10px;
  8172. color: #aaa;
  8173. }
  8174. .chapter_add_r span {
  8175. font-size: 12px;
  8176. color: rgb(204, 204, 204);
  8177. }
  8178. .chapter_add_input {
  8179. display: none;
  8180. }
  8181. .line {
  8182. width: 85%;
  8183. margin: 0 auto;
  8184. border-top: 1px solid #e5e5e5;
  8185. margin-top: 20px;
  8186. }
  8187. .info_btnBox {
  8188. width: calc(100%);
  8189. display: flex;
  8190. justify-content: center;
  8191. height: 70px;
  8192. align-items: center;
  8193. background: #fff;
  8194. margin: 0 auto;
  8195. border-top: 2px solid rgb(228, 232, 237);
  8196. box-sizing: border-box;
  8197. border-radius: 0px 0 5px 5px;
  8198. }
  8199. .info_btnBox2 {
  8200. width: calc(100%);
  8201. display: flex;
  8202. justify-content: center;
  8203. height: 20px;
  8204. align-items: center;
  8205. background: #fff;
  8206. margin: 0 auto;
  8207. border-top: 2px solid rgb(228, 232, 237);
  8208. box-sizing: border-box;
  8209. overflow: hidden;
  8210. cursor: pointer;
  8211. }
  8212. .info_btnBox3 {
  8213. width: calc(100%);
  8214. display: flex;
  8215. justify-content: flex-end;
  8216. padding: 0 20px;
  8217. height: 60px;
  8218. align-items: center;
  8219. background: unset;
  8220. margin: 10px auto 0;
  8221. /* border-top: 1px solid rgb(228, 232, 237); */
  8222. box-sizing: border-box;
  8223. overflow: hidden;
  8224. cursor: pointer;
  8225. background: #fff;
  8226. border-radius: 10px;
  8227. }
  8228. .info_btn+.info_btn {
  8229. margin-left: 15px;
  8230. }
  8231. .info_btn,
  8232. .teacherWord {
  8233. color: #fff;
  8234. background-color: #0f7eff;
  8235. padding: 8px 24px;
  8236. font-size: 0.9375rem;
  8237. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  8238. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  8239. min-width: 64px;
  8240. font-weight: 500;
  8241. border-radius: 4px;
  8242. box-sizing: border-box;
  8243. border: none;
  8244. cursor: pointer;
  8245. }
  8246. .teacherWord {
  8247. width: 105px !important;
  8248. text-align: center !important;
  8249. line-height: 36px !important;
  8250. padding: 0 !important;
  8251. font-size: 14px !important;
  8252. margin: 10px 0 !important;
  8253. }
  8254. .wordTeacher {
  8255. display: flex;
  8256. flex-direction: column;
  8257. width: 20%;
  8258. text-align: center;
  8259. font-size: 14px;
  8260. margin: 30px 30px 0 10px;
  8261. background: #fff;
  8262. position: relative;
  8263. border-radius: 5px;
  8264. padding: 25px 0px;
  8265. }
  8266. .wordPic {
  8267. margin: 0 auto;
  8268. width: 60px;
  8269. height: 60px;
  8270. cursor: pointer;
  8271. }
  8272. .deleteWord {
  8273. width: 22px;
  8274. height: 22px;
  8275. position: absolute;
  8276. right: 5px;
  8277. top: -15px;
  8278. cursor: pointer;
  8279. display: none;
  8280. z-index: 999;
  8281. }
  8282. .wordPic>img,
  8283. .deleteWord>img,
  8284. .addToolImg>img {
  8285. width: 100%;
  8286. height: 100%;
  8287. }
  8288. .info_btn:hover {
  8289. background-color: #4f7cd5 !important;
  8290. }
  8291. .cru_selectBox {
  8292. display: flex;
  8293. margin: 24px 0 10px;
  8294. flex-wrap: nowrap;
  8295. white-space: nowrap;
  8296. overflow: auto;
  8297. position: relative;
  8298. height: 47px;
  8299. }
  8300. .cru_selectBox::-webkit-scrollbar {
  8301. /*滚动条整体样式*/
  8302. width: 6px;
  8303. /*高宽分别对应横竖滚动条的尺寸*/
  8304. height: 6px;
  8305. }
  8306. /*定义滚动条轨道 内阴影+圆角*/
  8307. .cru_selectBox::-webkit-scrollbar-track {
  8308. border-radius: 10px;
  8309. background-color: #eee;
  8310. }
  8311. /*定义滑块 内阴影+圆角*/
  8312. .cru_selectBox::-webkit-scrollbar-thumb {
  8313. border-radius: 10px;
  8314. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  8315. background-color: rgba(0, 0, 0, 0.1);
  8316. }
  8317. .cru_line {
  8318. position: absolute;
  8319. bottom: 0px;
  8320. transition: all 0.5s;
  8321. left: 0px;
  8322. width: 125px;
  8323. margin-left: -25px;
  8324. }
  8325. .cru_select {
  8326. font-size: 21px;
  8327. margin-right: 37px;
  8328. margin-left: 5px;
  8329. cursor: pointer;
  8330. color: #a6a6a6;
  8331. }
  8332. .cru_selected {
  8333. color: #0b7fc2 !important;
  8334. }
  8335. .chapter_contentbox {
  8336. display: flex;
  8337. align-items: center;
  8338. margin-top: 15px;
  8339. }
  8340. .chapter_contentbox .cc_title {
  8341. margin: 0px;
  8342. color: black;
  8343. display: block;
  8344. white-space: nowrap;
  8345. overflow: hidden;
  8346. text-overflow: ellipsis;
  8347. margin-right: 20px;
  8348. font-size: 18px;
  8349. height: 20px;
  8350. line-height: 22px;
  8351. min-width: fit-content;
  8352. display: flex;
  8353. }
  8354. .chapter_contentbox .cc_title::before {
  8355. content: '';
  8356. height: 100%;
  8357. width: 3px;
  8358. background: #3681FC;
  8359. border-radius: 3px;
  8360. opacity: 1;
  8361. display: block;
  8362. margin-right: 10px;
  8363. }
  8364. .chapter_contentbox .cc_input {
  8365. width: 100%;
  8366. display: flex;
  8367. }
  8368. .show_taskD {
  8369. min-width: fit-content;
  8370. margin-left: 10px;
  8371. display: flex;
  8372. align-items: center;
  8373. font-size: 14px;
  8374. cursor: pointer;
  8375. color: #717C8D;
  8376. }
  8377. .show_taskD>img {
  8378. width: 15px;
  8379. margin-right: 5px;
  8380. transition: .2s all;
  8381. transform: rotate(-90deg);
  8382. }
  8383. .show_taskD.show>img {
  8384. transform: rotate(0deg);
  8385. }
  8386. .show_toolD {
  8387. min-width: fit-content;
  8388. margin-left: 10px;
  8389. display: flex;
  8390. align-items: center;
  8391. font-size: 14px;
  8392. cursor: pointer;
  8393. color: #717C8D;
  8394. position: absolute;
  8395. right: 45px;
  8396. top: 5px;
  8397. }
  8398. .show_toolD>img {
  8399. width: 15px;
  8400. margin-right: 5px;
  8401. transition: .2s all;
  8402. transform: rotate(-90deg);
  8403. }
  8404. .show_toolD.show>img {
  8405. transform: rotate(0deg);
  8406. }
  8407. .remove {
  8408. background-image: url("../../../assets/icon/new/delete_u.png");
  8409. cursor: pointer;
  8410. opacity: 0.5;
  8411. width: 30px;
  8412. min-width: 30px;
  8413. height: 30px;
  8414. background-size: 100% 100%;
  8415. background-repeat: no-repeat;
  8416. margin-left: 10px;
  8417. }
  8418. .remove1 {
  8419. background-image: url("../../../assets/remove1.png");
  8420. background-repeat: no-repeat;
  8421. background-position: 5px 10px;
  8422. width: 40px;
  8423. height: 50px;
  8424. cursor: pointer;
  8425. margin-left: 10px;
  8426. }
  8427. .binfo_input {
  8428. width: 100%;
  8429. margin: 0;
  8430. padding: 12px 14px;
  8431. display: block;
  8432. min-width: 0;
  8433. outline: none;
  8434. box-sizing: border-box;
  8435. background: none;
  8436. border: none;
  8437. border-radius: 4px;
  8438. background: #fff;
  8439. font-size: 16px;
  8440. resize: none;
  8441. font-family: 'Microsoft YaHei';
  8442. min-height: 48px;
  8443. border: 1.5px solid #CAD1DC;
  8444. }
  8445. .binfo_textarea {
  8446. border: 1.5px solid #CAD1DC;
  8447. font-size: 16px;
  8448. resize: none;
  8449. background: #f6f6f6;
  8450. font-family: 'Microsoft YaHei';
  8451. }
  8452. .binfo_input:focus-visible {
  8453. border: 1.5px solid #3681FC !important;
  8454. }
  8455. .time {
  8456. display: flex;
  8457. margin: 35px 0 80px 0;
  8458. }
  8459. .chapter_btnbox {
  8460. width: 160px;
  8461. border-radius: 5px;
  8462. border: 2px dashed gray;
  8463. display: flex;
  8464. padding: 8px 50px;
  8465. align-items: center;
  8466. justify-content: center;
  8467. margin: 30px auto 0;
  8468. cursor: pointer;
  8469. }
  8470. .icon_add {
  8471. position: relative;
  8472. width: 24px;
  8473. padding-top: 20px;
  8474. border-radius: 100%;
  8475. border-width: 2px;
  8476. border-style: solid;
  8477. border-color: gray;
  8478. }
  8479. .icon_add i:nth-child(1) {
  8480. position: absolute;
  8481. left: 50%;
  8482. top: 50%;
  8483. height: 60%;
  8484. transform: translate(-50%, -50%);
  8485. border-width: 1px;
  8486. border-style: solid;
  8487. border-color: inherit;
  8488. }
  8489. .icon_add i:nth-child(2) {
  8490. position: absolute;
  8491. top: 50%;
  8492. left: 50%;
  8493. width: 60%;
  8494. transform: translate(-50%, -50%);
  8495. border-width: 1px;
  8496. border-style: solid;
  8497. border-color: inherit;
  8498. }
  8499. .chapter_btn_w {
  8500. font-size: 0.9375rem;
  8501. font-weight: bold;
  8502. color: gray;
  8503. margin-left: 20px;
  8504. }
  8505. .disUoloadSty>>>.el-icon-plus {
  8506. display: none !important;
  8507. /* 上传按钮隐藏 */
  8508. }
  8509. .imgLeft {
  8510. margin: 15px 0;
  8511. }
  8512. .add_info_box {
  8513. margin: 20px 0 0;
  8514. display: flex;
  8515. flex-wrap: wrap;
  8516. }
  8517. .add_info_box button {
  8518. margin: 0 20px 10px 0;
  8519. }
  8520. .add_info_box2 {
  8521. display: flex;
  8522. align-items: center;
  8523. flex-wrap: wrap;
  8524. }
  8525. .add_info_box2::after {
  8526. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  8527. color: red;
  8528. font-size: 14px;
  8529. margin-bottom: 10px;
  8530. }
  8531. .add_chapters_box {
  8532. text-align: left;
  8533. background-color: #fff;
  8534. width: 100%;
  8535. border-radius: 4px;
  8536. font-size: 16px;
  8537. box-sizing: border-box;
  8538. position: relative;
  8539. padding: 0 15px;
  8540. height: auto;
  8541. overflow-y: auto;
  8542. overflow-x: hidden;
  8543. border: 1px solid #CAD1DC;
  8544. }
  8545. .add_chapters_box.add_c_none {
  8546. display: flex;
  8547. justify-content: center;
  8548. align-items: center;
  8549. padding: 15px;
  8550. }
  8551. .add_c_none>img {
  8552. width: 25px;
  8553. }
  8554. .add_chapters_box.add_c_none>span {
  8555. font-size: 14px;
  8556. font-weight: 400;
  8557. margin: 0 0 5px 5px;
  8558. }
  8559. .homework_box {
  8560. display: flex;
  8561. align-items: flex-start;
  8562. flex-wrap: wrap;
  8563. margin: 15px 0 0 0;
  8564. flex-direction: column;
  8565. align-content: flex-start;
  8566. }
  8567. .course_homework {
  8568. display: flex;
  8569. justify-content: center;
  8570. flex-direction: row;
  8571. align-items: center;
  8572. margin: 0 10px 0 0;
  8573. }
  8574. .course_homework>>>.el-input__inner {
  8575. width: 140px;
  8576. margin-left: 15px;
  8577. }
  8578. .chapter_upload_move {
  8579. position: relative;
  8580. background-color: #fff;
  8581. position: absolute;
  8582. width: 100%;
  8583. top: 0px;
  8584. left: 0px;
  8585. border: 1px solid #eee;
  8586. border-radius: 5px;
  8587. transition: width 2s;
  8588. -moz-transition: width 2s;
  8589. -webkit-transition: width 2s;
  8590. -o-transition: width 2s;
  8591. }
  8592. .chapter_upload_l_i {
  8593. background-image: url("../../../assets/icon.png");
  8594. background-position: 3px -165px;
  8595. width: 30px;
  8596. height: 30px;
  8597. margin: 10px auto 0 auto;
  8598. }
  8599. .course_input_box {
  8600. display: flex;
  8601. margin-right: 20px;
  8602. width: 100%;
  8603. align-items: center;
  8604. position: relative;
  8605. }
  8606. .course_input_box>.binfo_input {
  8607. width: calc(100% - 0 - 200px - 20px);
  8608. margin: 0 10px;
  8609. }
  8610. .bb_courseIcon {
  8611. width: 57px;
  8612. height: 45px;
  8613. background: #F0F4FA;
  8614. border-radius: 5px 0px 0px 5px;
  8615. display: flex;
  8616. align-items: center;
  8617. justify-content: center;
  8618. border-right: 1.5px solid rgb(202, 209, 220);
  8619. box-sizing: border-box;
  8620. position: absolute;
  8621. left: 1.5px
  8622. }
  8623. .bb_courseIcon>img {
  8624. width: 25px;
  8625. height: auto
  8626. }
  8627. .big_box {
  8628. /* margin-top: 20px; */
  8629. display: flex;
  8630. justify-content: space-between;
  8631. /* border-bottom: 1px solid #E0E2ED; */
  8632. }
  8633. .left_first {
  8634. display: flex;
  8635. flex-direction: column;
  8636. flex-wrap: nowrap;
  8637. width: calc(100% - 310px);
  8638. padding: 20px;
  8639. box-sizing: border-box;
  8640. background: #fff;
  8641. border-radius: 5px;
  8642. }
  8643. .right_first {
  8644. width: 300px;
  8645. display: flex;
  8646. align-items: center;
  8647. justify-content: center;
  8648. /* border-left: 1px solid #E0E2ED; */
  8649. box-sizing: border-box;
  8650. padding: 20px;
  8651. flex-direction: column;
  8652. background: #fff;
  8653. border-radius: 5px;
  8654. }
  8655. .ai_box {
  8656. width: 204px;
  8657. display: flex;
  8658. justify-content: flex-end;
  8659. margin-bottom: 15px;
  8660. }
  8661. .ai_content {
  8662. display: flex;
  8663. align-items: center;
  8664. font-size: 14px;
  8665. padding: 7px 20px;
  8666. box-sizing: border-box;
  8667. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  8668. border-radius: 12px;
  8669. font-weight: 700;
  8670. cursor: pointer;
  8671. }
  8672. .ai_content>img {
  8673. width: 40px;
  8674. margin-right: 5px;
  8675. }
  8676. .c_info_title {
  8677. padding: 15px 0 15px 0;
  8678. font-size: 16px;
  8679. font-weight: bold;
  8680. margin: 0 0 0 20px;
  8681. box-sizing: border-box;
  8682. display: flex;
  8683. align-items: center;
  8684. line-height: 20px;
  8685. }
  8686. .c_info_title::before {
  8687. content: '';
  8688. display: block;
  8689. width: 3px;
  8690. height: 20px;
  8691. background: #0061FF;
  8692. border-radius: 3px;
  8693. margin: 0 5px 0 0;
  8694. }
  8695. .right_title {
  8696. /* height: 30px; */
  8697. padding: 0 20px;
  8698. font-size: 18px;
  8699. font-weight: bold;
  8700. /* color: #0f7eff; */
  8701. margin: 20px auto 0;
  8702. display: flex;
  8703. /* justify-content: space-between; */
  8704. align-items: center;
  8705. }
  8706. .people {
  8707. border: 1px solid rgb(229 229 229);
  8708. border-radius: 5px;
  8709. width: 100%;
  8710. }
  8711. .people_top {
  8712. display: flex;
  8713. width: 100%;
  8714. /* justify-content: space-between; */
  8715. /* align-items: center; */
  8716. flex-direction: column;
  8717. padding: 10px 10px 0;
  8718. box-sizing: border-box;
  8719. }
  8720. .people_nav,
  8721. .people_top_right {
  8722. /* padding: 20px 0 0 20px; */
  8723. }
  8724. .people_top_right {
  8725. height: 40px;
  8726. margin-bottom: 10px;
  8727. }
  8728. .people_search {
  8729. display: flex;
  8730. position: relative;
  8731. }
  8732. .people_search>>>.el-input__inner {
  8733. /* height: 25px; */
  8734. width: 95%;
  8735. }
  8736. .search_img {
  8737. width: 20px;
  8738. height: 20px;
  8739. position: absolute;
  8740. right: 30px;
  8741. top: 50%;
  8742. transform: translateY(-50%);
  8743. }
  8744. .search_img>img {
  8745. width: 100%;
  8746. height: 100%;
  8747. }
  8748. .people_name {
  8749. height: 40vh;
  8750. display: flex;
  8751. justify-content: flex-start;
  8752. padding: 10px 0 0 25px;
  8753. flex-direction: column;
  8754. flex-wrap: nowrap;
  8755. overflow-y: auto;
  8756. overflow-x: hidden;
  8757. flex-direction: column;
  8758. }
  8759. .p_box {
  8760. position: relative;
  8761. }
  8762. .people_name>>>.el-checkbox {
  8763. width: 100%;
  8764. display: flex;
  8765. align-items: center;
  8766. margin-bottom: 10px;
  8767. }
  8768. .people_name>>>.el-checkbox__label {
  8769. text-overflow: ellipsis;
  8770. overflow: hidden;
  8771. width: calc(100%);
  8772. }
  8773. .people_name2>>>.el-checkbox__label {
  8774. width: calc(100% - 130px);
  8775. }
  8776. .inviteCode {
  8777. position: absolute;
  8778. right: 30px;
  8779. color: #237ade;
  8780. top: 0;
  8781. cursor: pointer;
  8782. font-size: 13px;
  8783. }
  8784. .noneInvite {
  8785. color: #a8a8a8;
  8786. }
  8787. .inviteImg {
  8788. position: absolute;
  8789. right: 5px;
  8790. top: 0;
  8791. width: 20px;
  8792. }
  8793. .right_img {
  8794. width: 150px;
  8795. height: 150px;
  8796. margin: 20px auto;
  8797. }
  8798. .right_img>img {
  8799. width: 100%;
  8800. height: 100%;
  8801. }
  8802. .number {
  8803. margin-top: 20px;
  8804. color: #4aa6ff;
  8805. text-decoration: underline;
  8806. }
  8807. .success_button {
  8808. display: flex;
  8809. text-align: center;
  8810. margin: 5% 0 auto;
  8811. flex-direction: row;
  8812. justify-content: center;
  8813. }
  8814. .look_course {
  8815. margin-right: 40px;
  8816. background: #3d67bc;
  8817. width: 200px;
  8818. height: 35px;
  8819. line-height: 35px;
  8820. color: #fff;
  8821. text-align: center;
  8822. font-size: 14px;
  8823. border-radius: 5px;
  8824. cursor: pointer;
  8825. }
  8826. .attend_others {
  8827. width: 250px;
  8828. background: #4fb13c;
  8829. height: 35px;
  8830. line-height: 35px;
  8831. color: #fff;
  8832. text-align: center;
  8833. font-size: 14px;
  8834. border-radius: 5px;
  8835. cursor: pointer;
  8836. }
  8837. .dialog_diy2>>>.el-dialog__body {
  8838. text-align: center;
  8839. }
  8840. .write_togother {
  8841. position: absolute;
  8842. right: 45px;
  8843. display: flex;
  8844. top: 5%;
  8845. }
  8846. .write_people {
  8847. font-size: 14px;
  8848. line-height: 50px;
  8849. padding-right: 10px;
  8850. }
  8851. .end_write {
  8852. background: #3d67bc;
  8853. color: #fff;
  8854. width: 100px;
  8855. height: 35px;
  8856. line-height: 35px;
  8857. text-align: center;
  8858. font-size: 14px;
  8859. border-radius: 5px;
  8860. cursor: pointer;
  8861. }
  8862. .chapter_upload+.chapter_upload {
  8863. /* margin-top: 15px; */
  8864. border-top: 1px solid #E7EBF1;
  8865. }
  8866. .chapter_upload {
  8867. height: 45px;
  8868. position: relative;
  8869. display: flex;
  8870. align-items: center;
  8871. width: 100%;
  8872. min-height: 45px;
  8873. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  8874. /* border-radius: 4px; */
  8875. overflow: hidden;
  8876. box-sizing: border-box;
  8877. }
  8878. .chapter_upload_t {
  8879. background-color: #fff;
  8880. position: absolute;
  8881. height: 100%;
  8882. top: 0px;
  8883. left: 0px;
  8884. box-sizing: border-box;
  8885. }
  8886. .chapter_upload_o {
  8887. width: 100%;
  8888. height: 100%;
  8889. position: relative;
  8890. z-index: 1;
  8891. }
  8892. .chapter_upload_ic {
  8893. margin: 0 15px 0px auto;
  8894. display: flex;
  8895. align-items: center;
  8896. }
  8897. .chapter_upload_ic_l {
  8898. width: 50px;
  8899. height: 50px;
  8900. float: left;
  8901. }
  8902. .chapter_upload_ic_l div {
  8903. width: 30px;
  8904. height: 35px;
  8905. background: url("../../../assets/icon/icon.png");
  8906. }
  8907. .chapter_upload_ic_edit {
  8908. height: 100%;
  8909. display: flex;
  8910. align-items: center;
  8911. cursor: pointer;
  8912. margin: 0 10px 0 0;
  8913. }
  8914. .chapter_upload_ic_edit div {
  8915. width: 18px;
  8916. height: 18px;
  8917. background-image: url("../../../assets/icon/new/edit_u.png");
  8918. background-size: 100% 100%;
  8919. }
  8920. .chapter_upload_ic_r {
  8921. height: 100%;
  8922. display: flex;
  8923. align-items: center;
  8924. cursor: pointer;
  8925. }
  8926. .chapter_upload_ic_r div {
  8927. width: 18px;
  8928. height: 18px;
  8929. background-image: url("../../../assets/icon/new/delete_u.png");
  8930. background-size: 100% 100%;
  8931. }
  8932. .chapter_upload_n {
  8933. display: flex;
  8934. text-indent: 10px;
  8935. text-decoration: none;
  8936. text-overflow: ellipsis;
  8937. white-space: nowrap;
  8938. overflow: hidden;
  8939. width: 55%;
  8940. margin-left: 10px;
  8941. cursor: pointer;
  8942. margin-top: 2px;
  8943. align-items: center;
  8944. }
  8945. .chapter_upload_l_i2,
  8946. .chapter_upload_l_i3,
  8947. .chapter_upload_l_i8,
  8948. .chapter_upload_l_i6,
  8949. .chapter_upload_l_i12,
  8950. .chapter_upload_l_i14,
  8951. .chapter_upload_l_i13 {
  8952. width: 15px;
  8953. height: 15px;
  8954. background-size: 100% 100%;
  8955. }
  8956. .chapter_upload_l_i2 {
  8957. background-image: url("../../../assets/icon/new/u_word.png");
  8958. }
  8959. .chapter_upload_l_i3 {
  8960. background-image: url("../../../assets/icon/new/u_video.png");
  8961. }
  8962. .chapter_upload_l_i8 {
  8963. background-image: url("../../../assets/icon/new/u_url.png");
  8964. }
  8965. .chapter_upload_l_i14 {
  8966. background-image: url("../../../assets/icon/new/u_source.png");
  8967. }
  8968. .chapter_upload_l_i6 {
  8969. background-image: url("../../../assets/icon/new/u_picture.png");
  8970. }
  8971. .chapter_upload_l_i12 {
  8972. background-image: url("../../../assets/icon/new/u_word.png");
  8973. }
  8974. .chapter_upload_l_i13 {
  8975. background-image: url("../../../assets/icon/new/u_img.png");
  8976. }
  8977. .chapter_upload_noSee {
  8978. background-image: url("../../../assets/icon/new/u_noUpload.png");
  8979. width: 18px;
  8980. height: 18px;
  8981. background-size: 100% 100%;
  8982. display: block;
  8983. margin-right: 10px;
  8984. }
  8985. .chapter_upload_ud {
  8986. display: flex;
  8987. flex-direction: row;
  8988. justify-content: center;
  8989. margin: 0 10px 0 0;
  8990. }
  8991. .chapter_upload_ud>.chapter_upload_up {
  8992. margin-bottom: 0;
  8993. margin-right: 10px;
  8994. }
  8995. .chapter_upload_down,
  8996. .chapter_upload_up {
  8997. width: 20px;
  8998. height: 20px;
  8999. background: #e4eaf2;
  9000. cursor: pointer;
  9001. margin: 0 auto;
  9002. border-radius: 5px;
  9003. display: flex;
  9004. justify-content: center;
  9005. align-items: center;
  9006. }
  9007. .chapter_upload_up::after,
  9008. .chapter_upload_down::after {
  9009. content: '';
  9010. background-image: url('../../../assets/icon/new/downBtn.png');
  9011. width: 13px;
  9012. height: 13px;
  9013. background-size: 100% 100%;
  9014. display: block;
  9015. }
  9016. .chapter_upload_up::after {
  9017. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  9018. }
  9019. .chapter_upload_up {
  9020. margin-bottom: 5px;
  9021. }
  9022. .addWordStyle {
  9023. display: flex;
  9024. flex-direction: row;
  9025. justify-content: flex-start;
  9026. overflow-x: auto;
  9027. white-space: nowrap;
  9028. flex-wrap: wrap;
  9029. }
  9030. /* table 样式 */
  9031. .cont>>>table {
  9032. border-top: 1px solid #ccc;
  9033. border-left: 1px solid #ccc;
  9034. }
  9035. .cont>>>table td,
  9036. .cont>>>table th {
  9037. border-bottom: 1px solid #ccc;
  9038. border-right: 1px solid #ccc;
  9039. /* padding: 20px 5px; */
  9040. padding: 5px 10px;
  9041. max-width: 0px;
  9042. height: 30px;
  9043. vertical-align: baseline;
  9044. }
  9045. .cont>>>table th {
  9046. border-bottom: 2px solid #ccc;
  9047. text-align: center;
  9048. }
  9049. /* blockquote 样式 */
  9050. .cont>>>blockquote {
  9051. display: block;
  9052. border-left: 8px solid #d0e5f2;
  9053. padding: 5px 10px;
  9054. margin: 10px 0;
  9055. line-height: 1.4;
  9056. font-size: 100%;
  9057. background-color: #f1f1f1;
  9058. }
  9059. /* code 样式 */
  9060. .cont>>>code {
  9061. display: inline-block;
  9062. /* *display: inline; */
  9063. zoom: 1;
  9064. background-color: #f1f1f1;
  9065. border-radius: 3px;
  9066. padding: 3px 5px;
  9067. margin: 0 3px;
  9068. }
  9069. .cont>>>pre code {
  9070. display: block;
  9071. }
  9072. /* ul ol 样式 */
  9073. .cont>>>ul,
  9074. ol {
  9075. margin: 10px 0 10px 20px;
  9076. }
  9077. .wordbox {
  9078. display: flex;
  9079. flex-wrap: wrap;
  9080. cursor: pointer;
  9081. width: 100%;
  9082. }
  9083. .checkword {
  9084. width: 22px;
  9085. height: 22px;
  9086. margin: 10px auto 0;
  9087. cursor: pointer;
  9088. }
  9089. .checkword img {
  9090. width: 100%;
  9091. }
  9092. .stepBg {
  9093. display: flex;
  9094. flex-direction: column;
  9095. justify-content: space-between;
  9096. align-items: center;
  9097. background: #fff;
  9098. width: 300px;
  9099. margin: 0 25px 0 0;
  9100. }
  9101. .stepTop {
  9102. min-width: 300px;
  9103. width: 300px;
  9104. /* border-radius: 10px; */
  9105. display: flex;
  9106. flex-direction: column;
  9107. justify-content: flex-start;
  9108. align-items: center;
  9109. flex-wrap: nowrap;
  9110. background: #fff;
  9111. /* top: 18%; */
  9112. }
  9113. .stepTop>div {
  9114. height: 80px;
  9115. width: 85%;
  9116. cursor: pointer;
  9117. margin: 10px 0;
  9118. border-radius: 10px;
  9119. }
  9120. .first,
  9121. .second,
  9122. .third,
  9123. .four {
  9124. background: #4a83d0;
  9125. height: 90px;
  9126. color: #fff;
  9127. display: flex;
  9128. flex-direction: row;
  9129. align-items: center;
  9130. justify-content: center;
  9131. }
  9132. .first>div:nth-child(1),
  9133. .second>div:nth-child(1),
  9134. .third>div:nth-child(1),
  9135. .four>div:nth-child(1) {
  9136. margin: 5px 10px 0 0;
  9137. width: 2rem;
  9138. }
  9139. .firstNo,
  9140. .secondNo,
  9141. .thirdNo,
  9142. .fourNo {
  9143. background: #e7e7e7;
  9144. color: #adadad;
  9145. display: flex;
  9146. flex-direction: row;
  9147. align-items: center;
  9148. justify-content: center;
  9149. }
  9150. .firstNo>div:nth-child(1),
  9151. .secondNo>div:nth-child(1),
  9152. .thirdNo>div:nth-child(1),
  9153. .fourNo>div:nth-child(1) {
  9154. margin: 5px 10px 0 0;
  9155. width: 2rem;
  9156. }
  9157. .uploadWidth>>>.el-upload {
  9158. width: 60px;
  9159. height: 60px;
  9160. position: relative;
  9161. }
  9162. .addPeople {
  9163. background: #fa6060;
  9164. width: 150px;
  9165. height: 40px;
  9166. color: #fff;
  9167. border-radius: 5px;
  9168. text-align: center;
  9169. line-height: 40px;
  9170. font-size: 14px;
  9171. cursor: pointer;
  9172. }
  9173. .kcImg {
  9174. width: 60px;
  9175. margin-left: 10px;
  9176. }
  9177. .zyImg {
  9178. width: 55px;
  9179. margin: 0 10px;
  9180. }
  9181. .deleteZy {
  9182. width: 20px;
  9183. position: absolute;
  9184. top: 5px;
  9185. right: 5px;
  9186. cursor: pointer;
  9187. }
  9188. .kcImg>img,
  9189. .zyImg>img,
  9190. .deleteZy>img {
  9191. width: 100%;
  9192. height: 100%;
  9193. }
  9194. .zyBox {
  9195. display: flex;
  9196. flex-direction: row;
  9197. align-items: center;
  9198. background: #67d37d;
  9199. color: #fff;
  9200. width: 210px;
  9201. margin: 20px 20px 0 0;
  9202. border-radius: 10px;
  9203. height: 70px;
  9204. position: relative;
  9205. }
  9206. .upCss {
  9207. display: flex;
  9208. flex-direction: row;
  9209. justify-content: flex-start;
  9210. }
  9211. .upCss>>>.el-icon-plus {
  9212. position: none !important;
  9213. width: 200px;
  9214. height: 100px;
  9215. display: flex;
  9216. flex-wrap: nowrap;
  9217. flex-direction: column;
  9218. align-items: center;
  9219. justify-content: center;
  9220. border: 1px dashed #ccc;
  9221. min-width: 78px;
  9222. min-height: 100px;
  9223. z-index: 999;
  9224. }
  9225. .upCss>>>.el-upload-list__item-name {
  9226. width: 100px;
  9227. white-space: nowrap;
  9228. overflow: hidden;
  9229. text-overflow: ellipsis;
  9230. }
  9231. .upCss>>>.el-upload-list__item .el-icon-close {
  9232. font-size: 20px;
  9233. z-index: 9999;
  9234. }
  9235. .addStageImg {
  9236. min-width: 25px;
  9237. min-height: 25px;
  9238. width: 25px;
  9239. height: 25px;
  9240. cursor: pointer;
  9241. }
  9242. .addHW {
  9243. width: 28px;
  9244. height: 28px;
  9245. cursor: pointer;
  9246. }
  9247. .addStageImg>img,
  9248. .addHW>img {
  9249. width: 100%;
  9250. height: 100%;
  9251. }
  9252. .addNewPP>>>.el-dialog__body {
  9253. padding: 5px 20px;
  9254. }
  9255. .addNewPP>>>.el-dialog {
  9256. margin-top: 5vh !important;
  9257. }
  9258. .addNewPP2>>>.el-dialog__body {
  9259. padding: 5px 0;
  9260. }
  9261. .addNewPP2>>>.el-dialog {
  9262. margin-top: 5vh !important;
  9263. }
  9264. .isHeight {
  9265. height: 680px;
  9266. }
  9267. .toolChoose {
  9268. display: flex;
  9269. /* width: 100%; */
  9270. flex-direction: row;
  9271. flex-wrap: wrap;
  9272. }
  9273. .tool {
  9274. display: flex;
  9275. flex-direction: column;
  9276. flex-wrap: nowrap;
  9277. width: fit-content;
  9278. margin: 10px 0 10px 0;
  9279. align-items: center;
  9280. }
  9281. .tool+.tool {
  9282. margin-right: 45px;
  9283. }
  9284. .whiteBIcon {
  9285. width: 80px;
  9286. cursor: pointer;
  9287. display: flex;
  9288. flex-direction: column;
  9289. flex-wrap: nowrap;
  9290. align-items: center;
  9291. font-size: 14px;
  9292. }
  9293. .whiteBIcon>img,
  9294. .toolIcon>img,
  9295. .arrow>img {
  9296. width: 100%;
  9297. height: 100%;
  9298. }
  9299. .check img {
  9300. width: 20px;
  9301. height: 20px;
  9302. }
  9303. .whiteBIcon>img {
  9304. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  9305. border-radius: 15px;
  9306. }
  9307. .whiteBIcon>div:nth-child(2) {
  9308. height: 20px;
  9309. line-height: 20px;
  9310. }
  9311. .check {
  9312. /* width: 20px;
  9313. height: 20px; */
  9314. cursor: pointer;
  9315. margin: 10px 0 0;
  9316. }
  9317. .checkDiv {
  9318. display: flex;
  9319. align-items: center;
  9320. }
  9321. .checkDiv span {
  9322. margin-left: 5px;
  9323. color: #858585;
  9324. }
  9325. .customWidth>>>.el-dialog {
  9326. min-width: 500px !important;
  9327. }
  9328. .a_addBox {
  9329. margin: 10px 0;
  9330. background: #fff;
  9331. padding: 15px;
  9332. /* max-height: 600px; */
  9333. overflow: auto;
  9334. }
  9335. .a_add_box {
  9336. border-bottom: 2px solid #eee;
  9337. padding-bottom: 25px;
  9338. }
  9339. .a_add_head {
  9340. display: flex;
  9341. align-items: center;
  9342. justify-content: space-between;
  9343. margin: 10px 0 0 0;
  9344. font-size: 18px;
  9345. }
  9346. .a_add_checkType {
  9347. margin-top: 10px;
  9348. display: flex;
  9349. font-size: 14px;
  9350. align-items: center;
  9351. }
  9352. .a_add_checkType span {
  9353. box-sizing: border-box;
  9354. padding: 0 0 5px 0;
  9355. cursor: pointer;
  9356. }
  9357. .a_add_checkType span+span {
  9358. margin-left: 10px;
  9359. }
  9360. .a_add_checkType .active {
  9361. border-bottom: 2px solid #409eff;
  9362. color: #409eff;
  9363. }
  9364. .a_add_head .a_add_head_input {
  9365. width: 100%;
  9366. }
  9367. .a_add_head .a_add_head_div {
  9368. display: flex;
  9369. align-items: center;
  9370. justify-content: space-between;
  9371. }
  9372. .a_add_body {
  9373. display: flex;
  9374. /* align-items: center; */
  9375. align-items: flex-end;
  9376. }
  9377. .a_add_input {
  9378. display: flex;
  9379. align-items: center;
  9380. flex-wrap: wrap;
  9381. }
  9382. .a_add_input_choice {
  9383. flex-direction: column;
  9384. margin-right: 10px;
  9385. }
  9386. .a_add_input_choice>>>.el-radio {
  9387. display: flex;
  9388. align-items: center;
  9389. flex-direction: row-reverse;
  9390. margin: 30px 0 0 0;
  9391. position: relative;
  9392. }
  9393. .a_add_input_choice>>>.el-checkbox {
  9394. display: flex;
  9395. align-items: center;
  9396. flex-direction: row-reverse;
  9397. margin: 30px 0 0 0;
  9398. position: relative;
  9399. }
  9400. .width100 {
  9401. width: 100%;
  9402. }
  9403. .a_add_input .a_add_persent {
  9404. width: 100%;
  9405. }
  9406. .a_add_persent_div {
  9407. width: 100%;
  9408. display: flex;
  9409. align-items: center;
  9410. }
  9411. .a_add_persent_div span {
  9412. margin: 5px 0;
  9413. }
  9414. .a_add_persent_div span:nth-child(1) {
  9415. width: 30%;
  9416. }
  9417. .a_add_persent_div span:nth-child(2) {
  9418. width: 7%;
  9419. }
  9420. .a_add_persent_div span:nth-child(3) {
  9421. width: 40%;
  9422. }
  9423. .a_add_body_div {
  9424. display: flex;
  9425. align-items: center;
  9426. justify-content: center;
  9427. /* flex-direction: column; */
  9428. position: absolute;
  9429. right: -20px;
  9430. transform: translateX(100%);
  9431. }
  9432. .a_add_body_div>>>.el-button--primary {
  9433. background: #466b99;
  9434. border: none;
  9435. }
  9436. .all_choose {
  9437. display: flex;
  9438. flex-direction: row;
  9439. align-items: flex-start;
  9440. width: 100%;
  9441. }
  9442. .all_choose>span {
  9443. min-width: fit-content;
  9444. display: block;
  9445. white-space: nowrap;
  9446. overflow: hidden;
  9447. text-overflow: ellipsis;
  9448. margin-right: 20px;
  9449. font-weight: bold;
  9450. font-size: 14px;
  9451. }
  9452. .all_choose>>>.el-checkbox-group {
  9453. display: flex;
  9454. flex-direction: row;
  9455. width: 100%;
  9456. flex-wrap: wrap;
  9457. align-content: center;
  9458. justify-content: flex-start;
  9459. align-items: center;
  9460. margin-top: 3px;
  9461. }
  9462. .all_choose>.el-checkbox-group>>>.el-checkbox {
  9463. margin-bottom: 10px;
  9464. display: flex;
  9465. flex-direction: row;
  9466. align-items: center;
  9467. margin-right: 10px;
  9468. }
  9469. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  9470. min-width: 80px;
  9471. overflow: hidden;
  9472. width: 80px;
  9473. text-overflow: ellipsis;
  9474. white-space: nowrap;
  9475. }
  9476. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  9477. width: auto;
  9478. }
  9479. .choose>div:nth-child(3)>span {
  9480. /* letter-spacing: 0 !important; */
  9481. }
  9482. .choose {
  9483. display: flex;
  9484. flex-direction: column;
  9485. flex-wrap: nowrap;
  9486. height: 100%;
  9487. justify-content: space-evenly;
  9488. align-items: flex-start;
  9489. }
  9490. .both {
  9491. display: flex;
  9492. flex-direction: row;
  9493. flex-wrap: wrap;
  9494. width: 100%;
  9495. align-items: center;
  9496. justify-content: flex-start;
  9497. margin: 15px 0;
  9498. }
  9499. .notice>>>.el-dialog {
  9500. width: 500px !important;
  9501. text-align: center;
  9502. }
  9503. .notice>>>.el-button {
  9504. margin-top: 20px;
  9505. }
  9506. .whiteBg {
  9507. background: #fff;
  9508. border-radius: 10px;
  9509. }
  9510. .wb_j_box {
  9511. display: flex;
  9512. width: 100%;
  9513. padding: 10px 20px;
  9514. box-sizing: border-box;
  9515. }
  9516. .wb_j_box_content {
  9517. width: calc(100% - 55% - 100px);
  9518. display: flex;
  9519. align-items: center;
  9520. }
  9521. .wb_j_box_p_box {
  9522. max-width: calc(100% - 200px);
  9523. word-break: break-all;
  9524. overflow: hidden;
  9525. margin: 0 0 0 10px;
  9526. font-size: 14px;
  9527. color: #6e6e6e;
  9528. }
  9529. .chooseWho {
  9530. display: flex;
  9531. width: 410px;
  9532. flex-direction: row;
  9533. flex-wrap: nowrap;
  9534. justify-content: space-between;
  9535. padding-bottom: 10px;
  9536. }
  9537. .chooseWho>div {
  9538. cursor: pointer;
  9539. padding-bottom: 10px;
  9540. font-weight: bold;
  9541. }
  9542. .isChooseActive {
  9543. color: #3e88f4;
  9544. border-bottom: 2px solid #2f80f3;
  9545. }
  9546. .toolSort {
  9547. display: flex;
  9548. flex-direction: row;
  9549. flex-wrap: wrap;
  9550. justify-content: flex-start;
  9551. align-items: flex-start;
  9552. }
  9553. .toolSort>div {
  9554. margin-right: 45px;
  9555. }
  9556. .tools {
  9557. width: 100%;
  9558. display: flex;
  9559. flex-direction: column;
  9560. flex-wrap: nowrap;
  9561. align-items: flex-start;
  9562. }
  9563. .leftTools,
  9564. .rightTools {
  9565. width: 50%;
  9566. }
  9567. .leftTools+.leftTools {
  9568. border-top: 1px solid #dbdbdb;
  9569. padding-top: 30px;
  9570. }
  9571. .rightTools {
  9572. display: flex;
  9573. flex-direction: row;
  9574. flex-wrap: nowrap;
  9575. justify-content: space-around;
  9576. }
  9577. .firstToolList {
  9578. display: flex;
  9579. flex-direction: column;
  9580. flex-wrap: nowrap;
  9581. align-items: center;
  9582. }
  9583. .iconList {
  9584. display: flex;
  9585. flex-direction: row;
  9586. flex-wrap: wrap;
  9587. justify-content: flex-start;
  9588. align-items: center;
  9589. margin: 20px 0 5px 0;
  9590. width: 240px;
  9591. min-width: 240px;
  9592. }
  9593. .iconTool {
  9594. display: flex;
  9595. flex-direction: column;
  9596. flex-wrap: nowrap;
  9597. align-items: center;
  9598. justify-content: flex-start;
  9599. margin: 15px 10px;
  9600. }
  9601. .toolIcon {
  9602. width: 50px;
  9603. }
  9604. .taskBorder {
  9605. /*border: 1px solid #e1e1e1; */
  9606. border-radius: 8px;
  9607. margin-top: 10px;
  9608. /* min-height: 1160px; */
  9609. position: relative;
  9610. background: #fff;
  9611. padding: 20px 20px 0;
  9612. overflow: hidden;
  9613. box-sizing: border-box;
  9614. }
  9615. .smallTaskBorder {
  9616. height: 170px;
  9617. min-height: 170px !important;
  9618. overflow: hidden;
  9619. }
  9620. .taskBorder>div {
  9621. /* padding: 30px 0 10px 30px; */
  9622. }
  9623. .addTaskBorder {
  9624. /* border: 2px solid #5E9AFC; */
  9625. border-radius: 8px;
  9626. margin-top: 10px;
  9627. cursor: pointer;
  9628. /* height: 50px;
  9629. line-height: 50px; */
  9630. background: #fff;
  9631. padding: 15px 0;
  9632. display: flex;
  9633. align-items: center;
  9634. justify-content: center;
  9635. }
  9636. /* .addTaskBorder>div {
  9637. margin: 0 auto;
  9638. display: flex;
  9639. align-items: center;
  9640. justify-content: center;
  9641. }
  9642. .addTaskBorder>div>img {
  9643. width: 20px;
  9644. }
  9645. .addTaskBorder>div>span {
  9646. font-size: 16px;
  9647. margin-left: 10px;
  9648. color: #5E9AFC;
  9649. } */
  9650. .funBlock {
  9651. display: flex;
  9652. padding: 15px 0;
  9653. flex-direction: row;
  9654. justify-content: flex-end;
  9655. align-items: center;
  9656. position: absolute;
  9657. right: 15px;
  9658. bottom: 35px;
  9659. }
  9660. .fold {
  9661. display: flex;
  9662. margin: 0 10px;
  9663. flex-direction: row;
  9664. align-items: center;
  9665. cursor: pointer;
  9666. }
  9667. .arrow {
  9668. width: 15px;
  9669. height: 15px;
  9670. margin-left: 10px;
  9671. }
  9672. .addToolFun {
  9673. display: flex;
  9674. width: 150px;
  9675. flex-direction: row;
  9676. align-items: center;
  9677. justify-content: center;
  9678. border: 1px dashed;
  9679. border-radius: 5px;
  9680. height: 50px;
  9681. margin: 20px auto 35px;
  9682. cursor: pointer;
  9683. }
  9684. .addToolFun2 {
  9685. display: flex;
  9686. width: 150px;
  9687. border: 2px dashed #CAD1DC;
  9688. flex-direction: row;
  9689. align-items: center;
  9690. justify-content: center;
  9691. border-radius: 5px;
  9692. height: 50px;
  9693. margin: 0 auto 0;
  9694. cursor: pointer;
  9695. }
  9696. .addToolImg {
  9697. width: 20px;
  9698. height: 20px;
  9699. margin-right: 10px;
  9700. }
  9701. .addToolsDia>>>.el-dialog__body {
  9702. padding: 20px;
  9703. }
  9704. .addToolsDia>>>.el-dialog__body>.toolChoose {
  9705. padding: 0;
  9706. }
  9707. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  9708. padding: 0;
  9709. border-bottom: none;
  9710. margin-bottom: 0;
  9711. }
  9712. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  9713. width: 100%;
  9714. }
  9715. .lineCss>>>.el-form-item__label {
  9716. width: auto !important;
  9717. }
  9718. .lineCss>>>.el-form-item__content {
  9719. margin-left: 50px !important;
  9720. }
  9721. .newSteps {
  9722. display: flex;
  9723. width: 100% !important;
  9724. height: 80px;
  9725. cursor: pointer;
  9726. margin: 10px 0;
  9727. border-radius: 10px;
  9728. flex-direction: row;
  9729. align-content: center;
  9730. justify-content: center;
  9731. align-items: center;
  9732. margin: 0 !important;
  9733. }
  9734. /* 评价样式 */
  9735. .elist_css {
  9736. padding-bottom: 60px !important;
  9737. }
  9738. .elist_title {
  9739. margin-bottom: 10px;
  9740. }
  9741. .elist_input {}
  9742. .elist_input_box {
  9743. display: flex;
  9744. align-items: center;
  9745. flex-wrap: wrap;
  9746. }
  9747. .elist_input_box+.elist_input_box {
  9748. margin-top: 30px;
  9749. }
  9750. .elist_input .elist_input_box input {
  9751. font: inherit;
  9752. color: currentColor;
  9753. /* width: 200px; */
  9754. max-width: 200px;
  9755. padding: 8px 14px;
  9756. display: block;
  9757. min-width: 0;
  9758. outline: none;
  9759. border: 1px solid rgba(0, 0, 0, 0.23);
  9760. border-radius: 4px;
  9761. box-sizing: border-box;
  9762. background: #fff;
  9763. margin: 0 5px 0 0;
  9764. }
  9765. .elist_input .elist_input_box span {
  9766. height: 36px;
  9767. line-height: 36px;
  9768. color: rgb(82, 82, 82);
  9769. min-width: 80px;
  9770. }
  9771. .elist_input .elist_input_box .remove {
  9772. height: 20px;
  9773. width: 20px;
  9774. min-width: 20px;
  9775. background-size: 100% 100%;
  9776. background-position: unset;
  9777. margin-left: 5px;
  9778. }
  9779. .elist_input_box>>>.el-rate {
  9780. display: flex;
  9781. height: 36px;
  9782. align-items: center;
  9783. }
  9784. .elist_input_box .elist_inptu_text {
  9785. width: 100%;
  9786. display: flex;
  9787. align-items: center;
  9788. margin-top: 10px;
  9789. }
  9790. .elist_input_box .elist_inptu_text input {
  9791. /* width: 500px; */
  9792. width: 100%;
  9793. max-width: unset;
  9794. }
  9795. .elist_input_box>>>.el-rate__icon {
  9796. font-size: 24px;
  9797. }
  9798. .elist_btn {
  9799. margin-top: 10px;
  9800. }
  9801. .lineTitle {
  9802. /* margin-top: 15px; */
  9803. width: 110px;
  9804. font-size: 16px;
  9805. display: flex;
  9806. align-items: center;
  9807. line-height: 20px;
  9808. }
  9809. .lineTitle::before {
  9810. content: '';
  9811. display: block;
  9812. width: 3px;
  9813. height: 20px;
  9814. background: #0061FF;
  9815. border-radius: 3px;
  9816. margin: 0 5px 0 0;
  9817. }
  9818. .courseTop {
  9819. display: flex;
  9820. flex-direction: row;
  9821. justify-content: space-between;
  9822. align-items: center;
  9823. width: calc(100%);
  9824. padding: 10px 0;
  9825. margin: 0 auto;
  9826. }
  9827. .stepsNav {
  9828. display: flex;
  9829. flex-direction: row;
  9830. justify-content: flex-start;
  9831. align-items: center;
  9832. }
  9833. .stepsWord {
  9834. font-size: 18px;
  9835. color: #fff;
  9836. font-weight: bold;
  9837. margin-left: auto;
  9838. background: rgb(15, 126, 255);
  9839. border-radius: 5px;
  9840. padding: 3px 25px;
  9841. box-sizing: border-box;
  9842. }
  9843. .rightBox {
  9844. width: calc(100%);
  9845. background: #F0F2F5;
  9846. /* border-radius: 10px; */
  9847. overflow: auto;
  9848. height: calc(100% - 120px);
  9849. margin: 0 auto;
  9850. position: relative;
  9851. box-sizing: border-box;
  9852. border-radius: 5px;
  9853. }
  9854. .e_add_top {
  9855. display: flex;
  9856. justify-content: space-between;
  9857. padding: 20px 20px 0 20px;
  9858. border-radius: 3px;
  9859. background: #fff;
  9860. }
  9861. .e_add_title2 {
  9862. display: flex;
  9863. align-items: center;
  9864. }
  9865. .e_add_title2 span {
  9866. width: 40px;
  9867. }
  9868. .e_add_title {
  9869. display: flex;
  9870. align-items: center;
  9871. color: #b8b8b8;
  9872. font-size: 18px;
  9873. position: relative;
  9874. height: 40px;
  9875. }
  9876. .e_add_title span {
  9877. margin-right: 10px;
  9878. }
  9879. .e_add_title .el_input {
  9880. width: 300px;
  9881. }
  9882. .e_add_title>>>.el-input__inner {
  9883. width: 400px;
  9884. }
  9885. .e_add_btn {}
  9886. .e_add_content {
  9887. display: flex;
  9888. width: 100%;
  9889. }
  9890. .e_add_list {
  9891. background: #fff;
  9892. height: 500px;
  9893. width: 210px;
  9894. position: relative;
  9895. margin: 15px 5px 0 0;
  9896. flex-shrink: 0;
  9897. display: flex;
  9898. flex-direction: column;
  9899. }
  9900. .e_add_list_title {
  9901. font-size: 20px;
  9902. width: 100%;
  9903. box-sizing: border-box;
  9904. padding: 15px 40px;
  9905. text-align: center;
  9906. border-bottom: 1px solid #eaeaea;
  9907. position: relative;
  9908. display: flex;
  9909. align-items: center;
  9910. justify-content: center;
  9911. height: 57px;
  9912. background: #f6f6f6;
  9913. }
  9914. .e_add_list_title span {
  9915. overflow: hidden;
  9916. white-space: nowrap;
  9917. text-overflow: ellipsis;
  9918. }
  9919. .e_add_list_title img {
  9920. position: absolute;
  9921. right: 15px;
  9922. width: 25px;
  9923. cursor: pointer;
  9924. top: 50%;
  9925. transform: translateY(-50%);
  9926. }
  9927. .e_add_list_body {
  9928. height: calc(100% - 187px);
  9929. overflow: auto;
  9930. }
  9931. .e_add_list_child {
  9932. width: 100%;
  9933. display: flex;
  9934. align-items: center;
  9935. justify-content: center;
  9936. position: relative;
  9937. box-sizing: border-box;
  9938. padding: 15px 40px;
  9939. text-align: center;
  9940. }
  9941. .e_add_list_child span {
  9942. overflow: hidden;
  9943. white-space: nowrap;
  9944. text-overflow: ellipsis;
  9945. cursor: pointer;
  9946. }
  9947. .e_add_list_child img {
  9948. position: absolute;
  9949. right: 10px;
  9950. width: 21px;
  9951. cursor: pointer;
  9952. top: 50%;
  9953. transform: translateY(-50%);
  9954. }
  9955. .e_add_list_child+.e_add_list_child {
  9956. border-top: 1px solid #eaeaea;
  9957. }
  9958. .e_add_list_child .active {
  9959. color: #409eff;
  9960. }
  9961. .e_add_list_btn {
  9962. position: absolute;
  9963. bottom: 0;
  9964. height: 50px;
  9965. background: rgb(120, 120, 254);
  9966. width: 100%;
  9967. color: #fff;
  9968. font-size: 16px;
  9969. text-align: center;
  9970. line-height: 50px;
  9971. cursor: pointer;
  9972. }
  9973. .e_add_list_detail {
  9974. position: absolute;
  9975. bottom: 0;
  9976. height: 130px;
  9977. background: rgb(120, 120, 254);
  9978. width: 100%;
  9979. color: #fff;
  9980. font-size: 16px;
  9981. display: flex;
  9982. align-items: center;
  9983. justify-content: center;
  9984. }
  9985. .e_add_list_detail textarea {
  9986. height: 90%;
  9987. width: 95%;
  9988. border: none;
  9989. resize: none;
  9990. outline: none;
  9991. padding: 5px;
  9992. box-sizing: border-box;
  9993. }
  9994. .e_add_list_pbox {
  9995. width: 100%;
  9996. }
  9997. .e_add_list_pbox_title {
  9998. height: 50px;
  9999. background: #fff;
  10000. display: flex;
  10001. align-items: center;
  10002. width: 100%;
  10003. box-sizing: border-box;
  10004. padding: 0 20px;
  10005. flex-direction: row;
  10006. flex-wrap: wrap;
  10007. }
  10008. .type_title {
  10009. font-size: 18px;
  10010. font-weight: 700;
  10011. }
  10012. .type_content {
  10013. font-size: 16px;
  10014. margin-left: 30px;
  10015. }
  10016. .type_content span+span {
  10017. margin-left: 20px;
  10018. }
  10019. .type_content span {
  10020. cursor: pointer;
  10021. padding-bottom: 5px;
  10022. box-sizing: border-box;
  10023. }
  10024. .type_content .active {
  10025. color: #409eff;
  10026. border-bottom: 2px solid #409eff;
  10027. }
  10028. .e_add_list_pbox_content {
  10029. height: calc(100% - 50px);
  10030. display: flex;
  10031. align-items: center;
  10032. width: 100%;
  10033. background: #fff;
  10034. }
  10035. .mbCss {
  10036. width: 100%;
  10037. display: flex;
  10038. flex-direction: row;
  10039. flex-wrap: nowrap;
  10040. align-content: center;
  10041. align-items: flex-start;
  10042. justify-content: flex-start;
  10043. }
  10044. .pjCss {
  10045. /* width: 42%; */
  10046. width: calc(100% - 55%);
  10047. display: flex;
  10048. flex-direction: column;
  10049. flex-wrap: nowrap;
  10050. align-items: flex-start;
  10051. margin-top: 1.5%;
  10052. }
  10053. .e_box {
  10054. display: flex;
  10055. flex-wrap: wrap;
  10056. max-height: 500px;
  10057. align-items: flex-start;
  10058. overflow: auto;
  10059. }
  10060. .e_card {
  10061. border: 1px solid #ccc;
  10062. background: #fff;
  10063. margin-right: 20px;
  10064. width: 270px;
  10065. display: flex;
  10066. flex-direction: column;
  10067. align-items: center;
  10068. border-radius: 5px;
  10069. margin-top: 10px;
  10070. text-align: center;
  10071. }
  10072. .e_card_picture {
  10073. margin: 10px 0;
  10074. }
  10075. .e_card_picture>img {
  10076. width: 50px;
  10077. }
  10078. .e_card_name {
  10079. width: 100%;
  10080. padding: 0 10px;
  10081. box-sizing: border-box;
  10082. margin-bottom: 10px;
  10083. overflow: hidden;
  10084. text-overflow: ellipsis;
  10085. white-space: nowrap;
  10086. }
  10087. .e_card_time {
  10088. width: 100%;
  10089. padding: 0 10px;
  10090. box-sizing: border-box;
  10091. font-size: 15px;
  10092. color: #c3c3c3;
  10093. margin-bottom: 10px;
  10094. }
  10095. .e_card_btn {
  10096. height: 40px;
  10097. display: flex;
  10098. align-items: center;
  10099. width: 100%;
  10100. background: rgb(244, 244, 244);
  10101. }
  10102. .e_card_btn:hover {
  10103. background: rgb(221 221 221);
  10104. }
  10105. .e_card_btn span {
  10106. flex: 1 1 auto;
  10107. text-align: center;
  10108. cursor: pointer;
  10109. }
  10110. .addEva {
  10111. border: 1px solid #ccc;
  10112. background: #fff;
  10113. margin-right: 20px;
  10114. width: 270px;
  10115. height: 149px;
  10116. display: flex;
  10117. flex-direction: column;
  10118. align-items: center;
  10119. border-radius: 5px;
  10120. margin-top: 10px;
  10121. text-align: center;
  10122. cursor: pointer;
  10123. justify-content: center;
  10124. }
  10125. .addEva>img {
  10126. width: 50px;
  10127. object-fit: cover;
  10128. }
  10129. .uploadFm {
  10130. border: 1px dashed #ccc;
  10131. width: 100%;
  10132. height: 140px;
  10133. position: relative;
  10134. cursor: pointer;
  10135. display: flex;
  10136. flex-direction: column;
  10137. justify-content: center;
  10138. align-items: center;
  10139. font-size: 14px;
  10140. color: #6e6e6e;
  10141. }
  10142. .uploadFm>img {
  10143. width: 50px;
  10144. }
  10145. .fileCss {
  10146. width: 100%;
  10147. display: flex;
  10148. flex-direction: row;
  10149. flex-wrap: nowrap;
  10150. justify-content: space-around;
  10151. align-items: center;
  10152. padding-top: 15px;
  10153. }
  10154. .fileCss>div {
  10155. display: flex;
  10156. flex-direction: column;
  10157. align-items: center;
  10158. }
  10159. .fileCss .spanName {
  10160. margin-top: 10px
  10161. }
  10162. .sysPicBox {
  10163. display: flex;
  10164. flex-direction: row;
  10165. flex-wrap: wrap;
  10166. align-content: flex-start;
  10167. height: 435px;
  10168. overflow: auto;
  10169. position: relative;
  10170. }
  10171. .picNone {
  10172. position: absolute;
  10173. left: 50%;
  10174. top: 45%;
  10175. transform: translate(-50%, -50%);
  10176. width: fit-content;
  10177. color: #9c9c9c;
  10178. }
  10179. .sysPic {
  10180. width: 200px;
  10181. height: 115px;
  10182. margin: 0 20px 20px 0;
  10183. cursor: pointer;
  10184. }
  10185. .sysPic>img,
  10186. .isSysPic>img,
  10187. .deletePic>img {
  10188. width: 100%;
  10189. height: 100%;
  10190. object-fit: cover;
  10191. }
  10192. .isSysPic {
  10193. width: 200px;
  10194. height: 115px;
  10195. position: relative;
  10196. }
  10197. .deletePic {
  10198. width: 20px;
  10199. height: 20px;
  10200. position: absolute;
  10201. top: 0;
  10202. right: 0;
  10203. cursor: pointer;
  10204. }
  10205. .select_box1 {
  10206. height: 100%;
  10207. }
  10208. .select_box1_img {
  10209. background: #fff;
  10210. border-radius: 5px;
  10211. padding: 15px;
  10212. box-sizing: border-box;
  10213. margin-bottom: 20px;
  10214. }
  10215. .select_box1_title {
  10216. padding: 0 0 15px 0;
  10217. border-bottom: 1px solid #eee;
  10218. margin-bottom: 15px;
  10219. }
  10220. .select_box1_title span:nth-child(1) {
  10221. font-size: 16px;
  10222. margin-right: 20px;
  10223. color: #000;
  10224. }
  10225. .select_box1_title span:nth-child(2) {
  10226. font-size: 14px;
  10227. color: rgb(112, 112, 112);
  10228. }
  10229. .select_box1_add_img {}
  10230. .select_box1_select {
  10231. background: #fff;
  10232. border-radius: 5px;
  10233. padding: 15px;
  10234. box-sizing: border-box;
  10235. height: calc(100% - 200px);
  10236. overflow: auto;
  10237. }
  10238. .select_box2 {
  10239. height: 100%;
  10240. }
  10241. .select_box2_title {
  10242. background: #fff;
  10243. border-radius: 5px;
  10244. padding: 5px 10px;
  10245. box-sizing: border-box;
  10246. margin-bottom: 10px;
  10247. }
  10248. .select_box2_box {
  10249. display: flex;
  10250. height: calc(100% - 30px);
  10251. }
  10252. .select_box2_img {
  10253. width: calc(100% - 310px);
  10254. height: 100%;
  10255. overflow: auto;
  10256. background: #fff;
  10257. border-radius: 5px;
  10258. }
  10259. .select_box2_img img {
  10260. width: 100%;
  10261. }
  10262. .select_box2_answer {
  10263. background: #fff;
  10264. margin-left: 10px;
  10265. border-radius: 5px;
  10266. width: 300px;
  10267. overflow: auto;
  10268. height: 100%;
  10269. display: flex;
  10270. flex-direction: column;
  10271. align-items: center;
  10272. padding-top: 10px;
  10273. box-sizing: border-box;
  10274. }
  10275. .select_box2_answer_box {
  10276. margin: 0 0 10px 0;
  10277. width: 85%;
  10278. }
  10279. .rate_textarea {
  10280. font: inherit;
  10281. color: currentColor;
  10282. width: 100%;
  10283. padding: 8px 14px;
  10284. display: block;
  10285. min-width: 0;
  10286. outline: none;
  10287. border: 1px solid rgba(0, 0, 0, 0.23);
  10288. border-radius: 4px;
  10289. box-sizing: border-box;
  10290. background: #fff;
  10291. margin: 0 20px 0 0;
  10292. resize: none;
  10293. }
  10294. .select_answer_title {
  10295. text-align: left;
  10296. width: 85%;
  10297. margin-bottom: 10px;
  10298. font-size: 18px;
  10299. color: #8e8e8e;
  10300. }
  10301. .mask {
  10302. background-color: rgb(0 0 0 / 30%);
  10303. /* position: fixed; */
  10304. position: absolute;
  10305. top: 0;
  10306. left: 0;
  10307. width: 100%;
  10308. height: 100%;
  10309. z-index: 90;
  10310. display: flex;
  10311. align-items: center;
  10312. justify-content: center;
  10313. }
  10314. .progressBox {
  10315. width: 300px;
  10316. height: 150px;
  10317. background: #fff;
  10318. border-radius: 10px;
  10319. box-shadow: 0 0 6px 1px #bfbfbf;
  10320. display: flex;
  10321. align-items: center;
  10322. justify-content: center;
  10323. flex-direction: column;
  10324. position: relative;
  10325. color: #6c6c6c;
  10326. }
  10327. .progressBox>>>.el-progress-bar__outer {
  10328. background-color: #d1dfff !important;
  10329. }
  10330. .progressBox .lbox {
  10331. height: 50px;
  10332. font-size: 19px;
  10333. display: flex;
  10334. align-items: center;
  10335. color: #747474;
  10336. }
  10337. .progressBox .lbox img {
  10338. width: 40px;
  10339. margin-right: 20px;
  10340. }
  10341. .closeCss {
  10342. position: absolute;
  10343. top: 8px;
  10344. right: 8px;
  10345. cursor: pointer;
  10346. width: 20px;
  10347. height: 20px;
  10348. }
  10349. .closeCss>img {
  10350. width: 100%;
  10351. height: 100%;
  10352. }
  10353. .updateTips::after {
  10354. content: "协同建构不支持修改基本信息,只支持加入分组。";
  10355. font-size: 14px;
  10356. margin-left: 20px;
  10357. font-weight: 400;
  10358. color: #ff3a3a;
  10359. }
  10360. .updateMask {
  10361. width: 100%;
  10362. z-index: 3;
  10363. top: 0;
  10364. position: absolute;
  10365. /* background-color: rgba(0,0,0,.3); */
  10366. }
  10367. .t_j_box {
  10368. display: flex;
  10369. }
  10370. .t_j_box span:nth-child(1) {
  10371. width: 15%;
  10372. overflow: hidden;
  10373. margin-right: 10px;
  10374. text-overflow: ellipsis;
  10375. white-space: nowrap;
  10376. }
  10377. .t_j_box span:nth-child(2) {
  10378. min-width: 30px;
  10379. margin-right: 10px;
  10380. }
  10381. .t_j_box span:nth-child(3) {
  10382. width: 38%;
  10383. overflow: hidden;
  10384. text-overflow: ellipsis;
  10385. margin-right: 10px;
  10386. }
  10387. .t_j_box span:nth-child(4) {
  10388. max-width: calc(45% - 60px);
  10389. overflow: hidden;
  10390. text-overflow: ellipsis;
  10391. }
  10392. .sentenBox {
  10393. background: #fff;
  10394. height: 600px;
  10395. overflow: auto;
  10396. background-image: url("../../../assets/icon/conSentences/csBg.png");
  10397. background-position: 102%;
  10398. background-repeat: no-repeat;
  10399. background-size: 60%;
  10400. }
  10401. .sentenBox>.sentenContent {
  10402. padding-bottom: 10px;
  10403. width: 97%;
  10404. margin: 0 auto;
  10405. }
  10406. .sentenBox>.sentenContent+.sentenContent {
  10407. border-top: 1px solid #cbcbcb;
  10408. }
  10409. .addSen {
  10410. background: #409efe;
  10411. width: 90px;
  10412. color: #fff;
  10413. height: 35px;
  10414. text-align: center;
  10415. line-height: 35px;
  10416. border-radius: 5px;
  10417. float: right;
  10418. margin: 10px 20px 0 0;
  10419. cursor: pointer;
  10420. }
  10421. .sentenTop {
  10422. display: flex;
  10423. flex-direction: row;
  10424. flex-wrap: nowrap;
  10425. align-items: center;
  10426. }
  10427. .sentenTop::before {
  10428. content: attr(index);
  10429. background: #3681fc;
  10430. border-radius: 50%;
  10431. color: #fff;
  10432. width: 25px;
  10433. height: 25px;
  10434. min-width: 25px;
  10435. min-height: 25px;
  10436. text-align: center;
  10437. line-height: 25px;
  10438. margin-right: 5px;
  10439. }
  10440. .sentenTop>div:nth-child(2) {
  10441. width: 300px;
  10442. margin: 0 15px;
  10443. }
  10444. .sentenTop>div:nth-child(3) {
  10445. background: #409efe;
  10446. color: #fff;
  10447. width: 65px;
  10448. height: 35px;
  10449. text-align: center;
  10450. line-height: 35px;
  10451. border-radius: 5px;
  10452. cursor: pointer;
  10453. }
  10454. .cardList {
  10455. padding: 20px 0 20px 0;
  10456. display: flex;
  10457. flex-direction: row;
  10458. flex-wrap: wrap;
  10459. align-items: center;
  10460. box-sizing: border-box;
  10461. border-bottom: 1px solid #f4f4f4;
  10462. width: 98%;
  10463. margin: 0 auto;
  10464. }
  10465. .rightCardList {
  10466. display: flex;
  10467. flex-wrap: wrap;
  10468. }
  10469. .cardBox {
  10470. display: flex;
  10471. flex-direction: row;
  10472. flex-wrap: wrap;
  10473. align-items: center;
  10474. align-content: center;
  10475. }
  10476. .isCard,
  10477. .isCard1 {
  10478. width: auto;
  10479. padding: 0 20px;
  10480. height: 65px;
  10481. text-align: center;
  10482. line-height: 65px;
  10483. font-size: 14px;
  10484. cursor: pointer;
  10485. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  10486. background-size: 100% 100%;
  10487. position: relative;
  10488. z-index: 99;
  10489. }
  10490. .isCard1 {
  10491. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  10492. }
  10493. .isCard:hover .deleteWord {
  10494. display: block;
  10495. }
  10496. .isCard>div:nth-child(1),
  10497. .isCard1>div:nth-child(1) {
  10498. white-space: nowrap;
  10499. overflow: hidden;
  10500. text-overflow: ellipsis;
  10501. width: 100%;
  10502. margin: 0 auto;
  10503. }
  10504. .card {
  10505. width: 140px;
  10506. height: 65px;
  10507. }
  10508. .card>img {
  10509. width: 100%;
  10510. height: 100%;
  10511. }
  10512. .rightCardBox {
  10513. width: 98%;
  10514. margin: 10px auto 0;
  10515. }
  10516. .rightCardBox>div:nth-child(1) {
  10517. margin-bottom: 10px;
  10518. }
  10519. .cardCss {
  10520. display: flex;
  10521. flex-direction: column;
  10522. flex-wrap: nowrap;
  10523. align-items: center;
  10524. border-bottom: 3px solid #b4c3d3;
  10525. padding: 0 0 5px 0;
  10526. /* margin-right: 10px; */
  10527. }
  10528. .cardCss>div:nth-child(2) {
  10529. background: #5b7b9d;
  10530. color: #fff;
  10531. width: 20px;
  10532. height: 20px;
  10533. border-radius: 50%;
  10534. text-align: center;
  10535. line-height: 20px;
  10536. }
  10537. .sentenTopBox {
  10538. display: flex;
  10539. flex-direction: row;
  10540. flex-wrap: nowrap;
  10541. align-items: center;
  10542. justify-content: space-between;
  10543. padding: 55px 0 0 20px;
  10544. box-sizing: border-box;
  10545. width: 85%;
  10546. }
  10547. .stepsBottom {
  10548. width: 85%;
  10549. margin-bottom: 20px;
  10550. box-shadow: 0 0 10px 10px #f7f7f7;
  10551. background: #f7f7f7;
  10552. border-radius: 10px;
  10553. overflow: hidden;
  10554. }
  10555. .course_left {
  10556. width: 300px;
  10557. height: auto;
  10558. position: relative;
  10559. }
  10560. .stepsBottom2 {
  10561. width: 300px;
  10562. margin: 10px 0;
  10563. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  10564. /* background: #f7f7f7; */
  10565. border-radius: 8px;
  10566. overflow: hidden;
  10567. height: fit-content;
  10568. position: relative;
  10569. /* transition: all .5s; */
  10570. }
  10571. .navTop {
  10572. background: #53749b;
  10573. color: #fff;
  10574. height: 40px;
  10575. line-height: 40px;
  10576. padding-left: 15px;
  10577. font-size: 18px;
  10578. }
  10579. .navBottom {
  10580. background: #fff;
  10581. height: calc(100vh - 210px);
  10582. overflow: auto;
  10583. }
  10584. .navTask {
  10585. display: flex;
  10586. flex-direction: row;
  10587. flex-wrap: nowrap;
  10588. align-items: center;
  10589. padding: 10px 10px 10px 0;
  10590. cursor: pointer;
  10591. background: #ffffff;
  10592. width: 95%;
  10593. margin: 10px auto 0;
  10594. box-sizing: border-box;
  10595. border-radius: 5px;
  10596. flex-wrap: wrap;
  10597. }
  10598. .navTask::before {
  10599. content: '';
  10600. display: block;
  10601. width: 16px;
  10602. height: 16px;
  10603. background-image: url(../../../assets/icon/new/icon_arrow.png);
  10604. background-size: 100%;
  10605. margin-left: 10px;
  10606. }
  10607. .isNavOpen::before {
  10608. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  10609. }
  10610. .isNavTask {
  10611. /* background: #3681FC; */
  10612. background: #EEF3FB;
  10613. }
  10614. .isNavTask .nt_taskName {
  10615. /* color: #fff !important; */
  10616. font-weight: bold !important;
  10617. color: #0061FF !important;
  10618. }
  10619. .isNavTask .nt_taskTitle {
  10620. /* color: #AECCFE !important; */
  10621. font-weight: bold !important;
  10622. color: #0061FF !important;
  10623. }
  10624. .navTask .nt_taskBox {
  10625. width: calc(100% - 85px);
  10626. padding: 0 10px 0 5px;
  10627. box-sizing: border-box;
  10628. box-sizing: border-box;
  10629. display: flex;
  10630. flex-direction: row;
  10631. flex-wrap: nowrap;
  10632. align-items: baseline;
  10633. }
  10634. .navTask .nt_taskTitle {
  10635. /* color: #717C8D; */
  10636. color: #060E17;
  10637. line-height: 25px;
  10638. font-size: 16px;
  10639. min-width: 45px;
  10640. }
  10641. .navTask .nt_taskName {
  10642. /* color: #fff; */
  10643. /* max-width: 130px; */
  10644. /* width: 100%; */
  10645. max-width: calc(100% - 50px);
  10646. white-space: nowrap;
  10647. overflow: hidden;
  10648. text-overflow: ellipsis;
  10649. font-size: 16px;
  10650. color: #060E17;
  10651. /* color: #0E1E33; */
  10652. }
  10653. .gjBox {
  10654. width: calc(100% - 25px);
  10655. padding: 0 0 0 0;
  10656. box-sizing: border-box;
  10657. border-left: 1px solid #CAD1DC;
  10658. margin-left: 25px;
  10659. }
  10660. .gjBox>div {
  10661. display: flex;
  10662. align-items: center;
  10663. }
  10664. .gjBox>div::before {
  10665. content: '';
  10666. height: 1px;
  10667. width: 10px;
  10668. background: #CAD1DC;
  10669. display: block;
  10670. margin-right: 5px;
  10671. }
  10672. .gjCss {
  10673. display: flex;
  10674. flex-direction: row;
  10675. flex-wrap: nowrap;
  10676. align-items: center;
  10677. padding: 15px 0;
  10678. box-sizing: border-box;
  10679. font-size: 14px;
  10680. cursor: pointer;
  10681. }
  10682. .isGjCss {
  10683. color: #0061ff;
  10684. }
  10685. .groupBox {}
  10686. .groupContent+.groupContent {
  10687. margin-top: 30px;
  10688. }
  10689. .groupTitle {
  10690. font-size: 24px;
  10691. color: rgb(80, 80, 80);
  10692. margin-bottom: 20px;
  10693. }
  10694. .groupName {
  10695. display: flex;
  10696. align-items: center;
  10697. }
  10698. .groupn {
  10699. font-size: 15px;
  10700. margin-right: 10px;
  10701. }
  10702. .groupName+.groupName {
  10703. margin-top: 15px;
  10704. }
  10705. .groupBtn {
  10706. margin-left: 10px;
  10707. }
  10708. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10709. text-align: left;
  10710. }
  10711. .radioBox>div {
  10712. margin: 10px 0 0 10px;
  10713. }
  10714. .radioBox>>>.el-radio__input,
  10715. .radioBox>>>.el-checkbox__inner {
  10716. margin-left: 10px;
  10717. }
  10718. .radioBox>>>.el-radio__label,
  10719. .radioBox>>>.el-checkbox__label {
  10720. display: flex;
  10721. align-items: center;
  10722. }
  10723. .inImg {
  10724. width: 50px;
  10725. }
  10726. .inImg>img {
  10727. width: 100%;
  10728. height: 100%;
  10729. object-fit: cover;
  10730. }
  10731. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  10732. height: auto;
  10733. padding: 10px;
  10734. margin: 0;
  10735. }
  10736. .upCss>>>.el-upload-list {
  10737. width: 100%;
  10738. }
  10739. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  10740. width: 100%;
  10741. height: 120px;
  10742. object-fit: contain;
  10743. background: unset;
  10744. margin-left: 0;
  10745. }
  10746. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  10747. display: none;
  10748. }
  10749. .tcMember+.tcMember::before {
  10750. content: "、";
  10751. }
  10752. .xzUpImg {
  10753. width: 25px;
  10754. height: 25px;
  10755. min-width: 25px;
  10756. min-height: 25px;
  10757. cursor: pointer;
  10758. margin: 0 10px;
  10759. }
  10760. .xzUpImg>img {
  10761. width: 100%;
  10762. height: 100%;
  10763. }
  10764. .closeCss {
  10765. position: absolute;
  10766. top: 8px;
  10767. right: 8px;
  10768. cursor: pointer;
  10769. width: 20px;
  10770. height: 20px;
  10771. }
  10772. .closeCss>img {
  10773. width: 100%;
  10774. height: 100%;
  10775. }
  10776. .moveBtn {
  10777. display: flex;
  10778. flex-direction: row;
  10779. flex-wrap: nowrap;
  10780. align-items: center;
  10781. width: 55px;
  10782. }
  10783. .timuUpImg {
  10784. display: flex;
  10785. flex-direction: row;
  10786. align-items: center;
  10787. width: 100%;
  10788. margin-right: 10px;
  10789. }
  10790. .timuUpImg>div:nth-child(1) {
  10791. margin-right: 10px;
  10792. display: flex;
  10793. align-items: center;
  10794. width: 100%;
  10795. }
  10796. .timuImgBox {
  10797. margin: 10px 0;
  10798. display: flex;
  10799. flex-direction: column;
  10800. flex-wrap: wrap;
  10801. align-items: flex-start;
  10802. }
  10803. .timuImg {
  10804. width: 100px;
  10805. margin: 5px 0;
  10806. cursor: pointer;
  10807. position: relative;
  10808. }
  10809. .timuImg:hover .deleteWord {
  10810. display: block;
  10811. }
  10812. .deleteWord {
  10813. width: 25px;
  10814. height: 25px;
  10815. position: absolute;
  10816. right: -5px;
  10817. top: -5px;
  10818. cursor: pointer;
  10819. display: none;
  10820. }
  10821. .timuImg>img,
  10822. .deleteWord>img {
  10823. width: 100%;
  10824. height: 100%;
  10825. object-fit: cover;
  10826. }
  10827. .e_add_delete {
  10828. cursor: pointer;
  10829. margin-left: 10px;
  10830. }
  10831. .pType_box {
  10832. margin-top: 30px;
  10833. align-items: flex-end;
  10834. }
  10835. .noneBox {
  10836. height: 100%;
  10837. width: 100%;
  10838. display: flex;
  10839. align-items: center;
  10840. justify-content: center;
  10841. margin-top: 150px;
  10842. }
  10843. .noneBox>img {
  10844. width: 300px;
  10845. }
  10846. .textarea_css {
  10847. display: block;
  10848. resize: none;
  10849. padding: 10px 15px;
  10850. line-height: 1.5;
  10851. box-sizing: border-box;
  10852. width: 100%;
  10853. font-size: 14px;
  10854. color: #606266;
  10855. background-color: #FFF;
  10856. background-image: none;
  10857. border: 1px solid #DCDFE6;
  10858. border-radius: 4px;
  10859. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  10860. outline: none;
  10861. overflow: hidden;
  10862. height: 46px;
  10863. font-family: 'Microsoft YaHei';
  10864. }
  10865. .textarea_css::-webkit-input-placeholder {
  10866. color: #C0C4CC
  10867. }
  10868. .textarea_css:focus {
  10869. border-color: #409EFF;
  10870. outline: 0;
  10871. }
  10872. .moveBtn2 {
  10873. flex-direction: column;
  10874. width: fit-content;
  10875. margin: 0 10px 0 10px;
  10876. }
  10877. .moveBtn2 .chapter_upload_down,
  10878. .moveBtn2 .chapter_upload_up {
  10879. width: 16px;
  10880. height: 16px;
  10881. }
  10882. .moveBtn2 .chapter_upload_up::after,
  10883. .moveBtn2 .chapter_upload_down::after {
  10884. width: 10px;
  10885. height: 10px;
  10886. }
  10887. .fullStyle>>>.el-dialog__body {
  10888. height: calc(100% - 125px) !important;
  10889. box-sizing: border-box;
  10890. }
  10891. .fullStyle>>>.el-dialog {
  10892. width: 100% !important;
  10893. max-width: 100% !important;
  10894. height: 100% !important;
  10895. margin: 0 !important;
  10896. }
  10897. .fullStyle {
  10898. width: 100% !important;
  10899. max-width: 100% !important;
  10900. height: 100% !important;
  10901. margin: 0 auto !important;
  10902. }
  10903. .wb_j_box_btn {
  10904. width: calc(100% - 30px);
  10905. display: flex;
  10906. height: 40px;
  10907. border: 1.5px solid #CAD1DC;
  10908. border-radius: 4px;
  10909. box-sizing: border-box;
  10910. align-items: center;
  10911. font-size: 14px;
  10912. cursor: pointer;
  10913. overflow: hidden;
  10914. }
  10915. .wb_j_box_btn:hover {
  10916. border: 1.5px solid #0061FF;
  10917. }
  10918. .wb_j_box_title {
  10919. background: #F0F4FA;
  10920. height: 100%;
  10921. line-height: 40px;
  10922. width: 90px;
  10923. text-align: center;
  10924. color: #060E17;
  10925. border-right: 1.5px solid #CAD1DC;
  10926. box-sizing: border-box;
  10927. }
  10928. .wb_j_box_btn_c {
  10929. width: calc(100% - 90px);
  10930. padding: 0 35px 0 10px;
  10931. box-sizing: border-box;
  10932. position: relative;
  10933. }
  10934. .wb_j_box_span {
  10935. width: 100%;
  10936. overflow: hidden;
  10937. white-space: nowrap;
  10938. text-overflow: ellipsis;
  10939. word-wrap: break-word;
  10940. color: #717C8D;
  10941. }
  10942. .wb_j_box_arrow {
  10943. content: '';
  10944. width: 14px;
  10945. height: 14px;
  10946. background: url(../../../assets/icon/new/u_arrow.png);
  10947. background-size: 100% 100%;
  10948. position: absolute;
  10949. right: 12px;
  10950. top: 50%;
  10951. transform: translateY(-50%);
  10952. }
  10953. .check_classBox {
  10954. height: 400px;
  10955. display: flex;
  10956. border-top: 1.5px solid #E7EBF1;
  10957. border-bottom: 1.5px solid #E7EBF1;
  10958. }
  10959. .check_class_right {
  10960. width: 130px;
  10961. border-right: 1px solid #E7EBF1;
  10962. display: flex;
  10963. align-items: center;
  10964. flex-direction: column;
  10965. height: 100%;
  10966. overflow: auto;
  10967. padding: 15px 0;
  10968. box-sizing: border-box;
  10969. }
  10970. .check_class {
  10971. width: 85%;
  10972. border-radius: 5px;
  10973. min-height: 30px;
  10974. line-height: 30px;
  10975. text-align: center;
  10976. padding: 0 10px;
  10977. box-sizing: border-box;
  10978. cursor: pointer;
  10979. white-space: nowrap;
  10980. overflow: hidden;
  10981. text-overflow: ellipsis;
  10982. }
  10983. .check_class.activeX {
  10984. background: #E0EAFB;
  10985. color: #3681FC;
  10986. font-weight: 700;
  10987. }
  10988. .check_class+.check_class {
  10989. margin-top: 15px;
  10990. }
  10991. .check_class_left {
  10992. background: #FAFAFA;
  10993. width: calc(100% - 130px);
  10994. padding: 15px;
  10995. box-sizing: border-box;
  10996. }
  10997. .check_class_left_title {
  10998. font-size: 16px;
  10999. font-weight: 700;
  11000. margin-bottom: 10px;
  11001. }
  11002. .check_class_item {
  11003. display: flex;
  11004. flex-wrap: wrap;
  11005. height: calc(100% - 45px);
  11006. overflow: auto;
  11007. justify-content: flex-start;
  11008. align-items: flex-start;
  11009. align-content: flex-start;
  11010. }
  11011. .class_item {
  11012. margin: 0 15px 15px 0;
  11013. }
  11014. .class_item:hover>>>.el-checkbox__label {
  11015. color: #409EFF;
  11016. }
  11017. .class_item>>>.el-checkbox__label {
  11018. color: #0E1E33;
  11019. }
  11020. .class_item:hover>>>.el-checkbox__inner {
  11021. border-color: #409EFF;
  11022. }
  11023. .class_item>>>.el-checkbox,
  11024. .class_item>>>.el-checkbox__input {
  11025. display: flex;
  11026. align-items: center;
  11027. }
  11028. .tipsBox {
  11029. text-align: center;
  11030. line-height: 200px;
  11031. font-size: 20px;
  11032. }</style>