addCourse.vue 354 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item :to="{
  9. path:
  10. '/course?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">课程管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加课程</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. </div>
  25. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  26. <div ref="stepBox" class="stepBox">
  27. <div class="stepBg">
  28. <div class="stepTop">
  29. <div v-if="steps > 0" class="first" @click="navSteps(1)">
  30. <div>
  31. <img src="../../assets/icon/first.png" alt />
  32. </div>
  33. <div>填写基本信息</div>
  34. </div>
  35. <div v-else class="firstNo" @click="navSteps(1)">
  36. <div>
  37. <img src="../../assets/icon/firstNo.png" alt />
  38. </div>
  39. <div>填写基本信息</div>
  40. </div>
  41. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0"></div>
  42. <div v-if="steps > 1 && cidType === 0" class="second" @click="navSteps(2)">
  43. <div style="margin: 5px 10px 0 0; width: 2rem">
  44. <img src="../../assets/icon/second.png" alt />
  45. </div>
  46. <div>选择课程框架</div>
  47. </div>
  48. <div v-else-if="cidType === 0" class="secondNo" @click="navSteps(2)">
  49. <div>
  50. <img src="../../assets/icon/secondNo.png" alt />
  51. </div>
  52. <div>选择课程框架</div>
  53. </div>
  54. <div class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  55. <div v-if="steps > 2" class="third" @click="navSteps(3)">
  56. <div>
  57. <img src="../../assets/icon/third.png" alt />
  58. </div>
  59. <div>上传课程内容</div>
  60. </div>
  61. <div v-else class="thirdNo" @click="navSteps(3)">
  62. <div>
  63. <img src="../../assets/icon/thirdNo.png" alt />
  64. </div>
  65. <div>上传课程内容</div>
  66. </div>
  67. <div class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  68. <div v-if="steps > 3" class="four">
  69. <div>
  70. <img src="../../assets/icon/four.png" alt />
  71. </div>
  72. <div>上传完成</div>
  73. </div>
  74. <div v-else class="fourNo">
  75. <div>
  76. <img src="../../assets/icon/fourNo.png" alt />
  77. </div>
  78. <div>上传完成</div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:30px 10px">
  83. <div class="updateMask" :style="{
  84. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  85. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  86. <div class="whiteBg" :class="{
  87. updateTips: cid && userid != courseUserid && role != '1',
  88. }">
  89. <div class="basic_box">
  90. <div class="course_input_box">
  91. <div class="bb_courseIcon"><img src="../../assets/icon/new/course_icon.png" /></div>
  92. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  93. style="border: 1px solid #CAD1DC;background: #fcfcfc;" />
  94. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"></el-switch>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="whiteBg">
  99. <div class="basic_box">
  100. <div class="big_box">
  101. <div class="left_first">
  102. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  103. <span>类型</span>
  104. <!-- 学科+ 主题+ 未来+ -->
  105. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  106. style="display: flex; align-items: center">
  107. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  108. <el-radio :label="item.name">{{
  109. item.name
  110. }}</el-radio>
  111. </div>
  112. </el-radio-group>
  113. </div>
  114. <div class="both">
  115. <div class="choose">
  116. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  117. <span v-if="CourseTypeJson[item.id].length > 0 &&
  118. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  119. ? pTypeCheck.indexOf(item.id) != -1
  120. : true)
  121. ">{{ item.name }}:</span>
  122. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  123. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  124. ? pTypeCheck.indexOf(item.id) != -1
  125. : true)
  126. ">
  127. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  128. item1.name }}</el-checkbox>
  129. </el-checkbox-group>
  130. <!-- <div
  131. v-else
  132. style="font-size: 14px; margin-left: -8px"
  133. >
  134. 暂无
  135. </div> -->
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="right_first">
  141. <div>
  142. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  143. <img src="../../assets/icon/addPoster.png" alt="" />
  144. <div>点击添加封面</div>
  145. </div>
  146. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  147. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  148. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  149. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  150. <i class="el-icon-plus"></i>
  151. </el-upload>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. <div class="whiteBg" style="border-radius: 0">
  158. <div class="wb_j_box">
  159. <div class="wb_j_box_content">
  160. <div class="addPeople" @click="
  161. (dialogVisibleClass = true),
  162. (classSearch = ''),
  163. getClass()
  164. ">
  165. 添加班级
  166. </div>
  167. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  168. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  169. getClassC(tc) }}</span>
  170. </div>
  171. </div>
  172. <div class="wb_j_box_content" v-if="courseUserid != ''
  173. ? courseUserid == userid || role == '1'
  174. : true
  175. ">
  176. <div class="addPeople" @click="openMember" style="background: #6b92c9">
  177. 添加协同成员
  178. </div>
  179. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  180. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  181. checkBoolean
  182. ? checkboxList3
  183. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  184. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  190. <div class="c_info_title">课程简要描述</div>
  191. <div style="width: 95%; padding: 0 0px 0 20px">
  192. <div style="width: 55%">
  193. <textarea rows="6" class="binfo_input binfo_textarea" cols v-model="courseText" :placeholder="'1、课程内容说明' +
  194. '\n' +
  195. '2、课程学习知识目标' +
  196. '\n' +
  197. '3、课程学习技能目标'
  198. "></textarea>
  199. </div>
  200. </div>
  201. </div>
  202. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  203. <div class="c_info_title">目标管理</div>
  204. <div style="margin: 0 auto;padding:0 20px">
  205. <div style="
  206. width: 95%;
  207. min-height: 600px;
  208. border: 1px solid #CAD1DC;
  209. border-radius: 4px;
  210. position: relative;
  211. ">
  212. <div class="e_add_top">
  213. <div class="e_add_title">
  214. <el-button type="primary" size="small" @click="dialogVisiblemb = true">添加</el-button>
  215. <el-button type="primary" size="small" @click="deleteEva()">清除</el-button>
  216. <!-- <span>当前使用目标管理</span>
  217. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  218. <img
  219. src="../../assets/line.png"
  220. class="cru_line"
  221. style="
  222. width: 125px;
  223. height: 20px;
  224. bottom: -10px;
  225. left: 155px;
  226. "
  227. /> -->
  228. </div>
  229. <div style="
  230. display: flex;
  231. flex-direction: row;
  232. align-items: center;
  233. ">
  234. <!-- <el-button
  235. type="primary"
  236. size="small"
  237. @click="dialogVisiblemb = true"
  238. >添加目标管理</el-button
  239. >
  240. <el-button
  241. type="primary"
  242. size="small"
  243. @click="deleteEva()"
  244. >清除内容</el-button
  245. > -->
  246. <!-- <div class="e_add_delete" @click="deleteEva()">
  247. <img src="../../assets/icon/delete.png" alt="" />
  248. </div> -->
  249. </div>
  250. </div>
  251. <div v-if="evalua == ''">
  252. <div class="noneBox">
  253. <img src="../../assets/icon/isNoMessage.png" />
  254. </div>
  255. </div>
  256. <div class="e_add_content" v-else>
  257. <div class="e_add_list_pbox">
  258. <div class="e_add_list_pbox_title">
  259. <span class="type_title">切换模式</span>
  260. <div class="type_content">
  261. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  262. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  263. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  264. </div>
  265. </div>
  266. <div class="e_add_list_pbox_content">
  267. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  268. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  269. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  270. </SeeBoard>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. <div class="rightBox" v-if="this.steps == 2">
  279. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  280. <!-- <div
  281. style="
  282. color: #b8b8b8;
  283. background: #fff;
  284. width: 26%;
  285. height: 40px;
  286. border-radius: 15px;
  287. padding-left: 20px;
  288. line-height: 40px;
  289. font-size: 17px;
  290. box-shadow: 0px 1px 2px 2px #e0e0e0;
  291. "
  292. >-->
  293. <div class="right_title" style="border: none; margin: 0; padding: 0">
  294. 请选择合适的课程模板
  295. </div>
  296. <div class="wordbox">
  297. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  298. <div class="wordPic">
  299. <img src="../../assets/icon/wordMub.png" alt />
  300. </div>
  301. <div style="
  302. margin-top: 10px;
  303. line-height: 19px;
  304. overflow: hidden;
  305. text-overflow: ellipsis;
  306. white-space: nowrap;
  307. padding: 0 20px;
  308. ">
  309. {{ aa.title }}
  310. </div>
  311. </div>
  312. <div class="wordTeacher" @click="checkTemplate2()">
  313. <div class="wordPic">
  314. <img src="../../assets/icon/wordMub.png" alt />
  315. </div>
  316. <div style="
  317. margin-top: 10px;
  318. line-height: 19px;
  319. overflow: hidden;
  320. text-overflow: ellipsis;
  321. white-space: nowrap;
  322. padding: 0 20px;
  323. ">
  324. 任务模式
  325. </div>
  326. </div>
  327. <div class="wordTeacher" @click="checkTemplate3()">
  328. <div class="wordPic">
  329. <img src="../../assets/icon/wordMub.png" alt />
  330. </div>
  331. <div style="
  332. margin-top: 10px;
  333. line-height: 19px;
  334. overflow: hidden;
  335. text-overflow: ellipsis;
  336. white-space: nowrap;
  337. padding: 0 20px;
  338. ">
  339. 简易模式
  340. </div>
  341. </div>
  342. <div class="wordTeacher" @click="pasteStage()">
  343. <div class="wordPic">
  344. <img src="../../assets/icon/wordMub.png" alt />
  345. </div>
  346. <div style="
  347. margin-top: 10px;
  348. line-height: 19px;
  349. overflow: hidden;
  350. text-overflow: ellipsis;
  351. white-space: nowrap;
  352. padding: 0 20px;
  353. ">
  354. 智能粘贴模式
  355. </div>
  356. </div>
  357. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  358. <div class="wordPic">
  359. <img src="../../assets/icon/wordMub.png" alt />
  360. </div>
  361. <div style="
  362. margin-top: 10px;
  363. line-height: 19px;
  364. overflow: hidden;
  365. text-overflow: ellipsis;
  366. white-space: nowrap;
  367. padding: 0 20px;
  368. ">
  369. 未来小学课程设计
  370. </div>
  371. </div> -->
  372. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  373. <div class="wordPic">
  374. <img src="../../assets/icon/wordMub.png" alt />
  375. </div>
  376. <div style="
  377. margin-top: 10px;
  378. line-height: 19px;
  379. overflow: hidden;
  380. text-overflow: ellipsis;
  381. white-space: nowrap;
  382. padding: 0 20px;
  383. ">
  384. 我的课程
  385. </div>
  386. </div> -->
  387. </div>
  388. </div>
  389. </div>
  390. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  391. <div class="rb_c_box">
  392. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  393. <div class="stepsBottom">
  394. <!-- <div class="navTop">辅助导航</div> -->
  395. <div class="navBottom">
  396. <div class="navTask" :class="{
  397. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  398. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  399. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  400. <div class="nt_taskBox">
  401. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  402. <div class="nt_taskName">
  403. <el-tooltip effect="light" :content="t.task" placement="top">
  404. <span>{{ t.task }}</span>
  405. </el-tooltip>
  406. </div>
  407. </div>
  408. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1">
  409. <div class="chapter_upload_up" @click.stop="taskMove(1, tIndex)">
  410. </div>
  411. <div class="chapter_upload_down" @click.stop="taskMove(2, tIndex)"></div>
  412. </div>
  413. </div>
  414. </div>
  415. </div>
  416. </div>
  417. <div class="rb_c_box_right">
  418. <div class="rb_c_box_btn">
  419. <el-button type="primary" @click="pasteTask" size="small" v-if="steps == 3">智能粘贴</el-button>
  420. </div>
  421. <div class="basic_box">
  422. <div style="
  423. display: flex;
  424. flex-direction: row;
  425. align-items: center;
  426. position: sticky;
  427. top: 0;
  428. z-index: 99;
  429. width: 100%;
  430. padding: 0 20px 0 20px;
  431. box-sizing: border-box;
  432. background: #f0f4fa
  433. ">
  434. <div class="cru_selectBox">
  435. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  436. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  437. <!-- item.dyName ? item.dyName : -->
  438. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  439. unitJson[unitJson.length - 1].easy == 6
  440. ">{{
  441. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  442. }}</span>
  443. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  444. </div>
  445. <div class="cru_line" :style="{
  446. left: offsetLetfPx + 'px',
  447. }"></div>
  448. </div>
  449. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  450. !(unitJson[unitJson.length - 1].easy == 6)
  451. ">
  452. <img src="../../assets/icon/new/addStage.png" alt />
  453. </div>
  454. </div>
  455. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  456. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  457. <div>
  458. <div class="chapter_contentbox">
  459. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  460. <div class="cc_input">
  461. <input type="text" placeholder="阶段标题" class="binfo_input"
  462. v-model="unitJson[unitIndex].dyName" />
  463. </div>
  464. <div class="remove" v-if="unitJson.length > 1 &&
  465. !(unitJson[unitJson.length - 1].easy == 4) &&
  466. !(unitJson[unitJson.length - 1].easy == 6)
  467. " @click="deleteUnit(unitIndex)"></div>
  468. </div>
  469. </div>
  470. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  471. margin: 50px 0px 10px;
  472. font-size: 1.5em;
  473. font-weight: 700;
  474. color: #0f7eff;
  475. ">
  476. 添加任务
  477. </div> -->
  478. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  479. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  480. <div v-if="unitJson[unitIndex].easy != 1">
  481. <div :style="{
  482. marginBottom:
  483. unitJson[unitIndex].easy == 3 ||
  484. (unitJson[unitIndex].easy == 5 &&
  485. itemTask.taskType == 1)
  486. ? '75px'
  487. : '0',
  488. }">
  489. <div class="chapter_contentbox" style="
  490. flex-direction: row;
  491. justify-content: flex-start;
  492. align-items: center;
  493. margin:0;
  494. ">
  495. <div class="cc_title" :id="'task' + itemTaskIndex">
  496. 任务{{ itemTaskIndex + 1 }}
  497. </div>
  498. <div class="cc_input">
  499. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  500. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  501. itemTaskIndex
  502. ].task
  503. " />
  504. </div>
  505. <div class="remove" v-if="item.taskJson.length > 1 &&
  506. (!unitJson[unitIndex].easy ||
  507. unitJson[unitIndex].easy == 6)
  508. " @click="deleteTask(itemTaskIndex)" style="margin-right: 10px;"></div>
  509. </div>
  510. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  511. display: flex;
  512. margin: 20px 0;
  513. flex-direction: row;
  514. justify-content: flex-start;
  515. align-items: center;
  516. ">
  517. <div class="lineTitle">任务描述</div>
  518. <!-- <div class="line"></div> -->
  519. </div>
  520. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  521. <editor-bar style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  522. itemTaskIndex
  523. ].taskDetail
  524. " @change="change"></editor-bar>
  525. <!-- <textarea
  526. rows="6"
  527. class="binfo_input"
  528. placeholder="请输入任务描述"
  529. cols
  530. style="width: 70.5% !important; height: 120px"
  531. v-model="
  532. unitJson[unitIndex].chapterInfo[0].taskJson[
  533. itemTaskIndex
  534. ].taskDetail
  535. "
  536. ></textarea>-->
  537. </div>
  538. </div>
  539. </div>
  540. <div v-if="!unitJson[unitIndex].easy ||
  541. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  542. ">
  543. <div style="
  544. display: flex;
  545. margin: 20px 0 20px 0;
  546. flex-direction: row;
  547. justify-content: flex-start;
  548. align-items: center;
  549. ">
  550. <div class="lineTitle">学习内容</div>
  551. <!-- <div class="line"></div> -->
  552. </div>
  553. <div>
  554. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  555. itemTask.chapterData.length == 0
  556. " style="height: 185px"></div>
  557. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  558. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  559. @click="
  560. getChapterData(
  561. $event,
  562. unitIndex,
  563. index,
  564. index1,
  565. item1.type
  566. )
  567. ">
  568. <div class="chapter_upload_o" style="
  569. position: relative;
  570. display: flex;
  571. align-items: center;
  572. ">
  573. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  574. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  575. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  576. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  577. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  578. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  579. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  580. </div>
  581. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  582. </div>
  583. </div>
  584. <div class="chapter_upload_n">
  585. <input v-if="item1.type == 2 ||
  586. item1.type == 3 ||
  587. item1.type == 12 ||
  588. item1.type == 13 ||
  589. item1.type == 7
  590. " v-model="item1.name" :placeholder="item1.name" @change="
  591. updataVideoT(
  592. $event,
  593. unitIndex,
  594. itemTaskIndex,
  595. index1
  596. )
  597. " style="
  598. border: none;
  599. outline: none;
  600. width: 80%;
  601. minwidth: 215px;
  602. z-index: 99;
  603. font-size: 14px;
  604. white-space: nowrap;
  605. overflow: hidden;
  606. text-overflow: ellipsis;
  607. " />
  608. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  609. border: none;
  610. outline: none;
  611. width: 80%;
  612. white-space: nowrap;
  613. overflow: hidden;
  614. text-overflow: ellipsis;
  615. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  616. <input :placeholder="item1.title ? item1.title : '链接'
  617. " v-if="item1.type == 8" style="
  618. border: none;
  619. outline: none;
  620. width: 80%;
  621. white-space: nowrap;
  622. overflow: hidden;
  623. text-overflow: ellipsis;
  624. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  625. </div>
  626. <div class="chapter_upload_ic">
  627. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  628. </div>
  629. <div class="chapter_upload_ud" style="z-index: 99">
  630. <div class="chapter_upload_up" @click="
  631. upCd(
  632. $event,
  633. unitIndex,
  634. index,
  635. itemTaskIndex,
  636. index1
  637. )
  638. "></div>
  639. <div class="chapter_upload_down" @click="
  640. downCd(
  641. $event,
  642. unitIndex,
  643. index,
  644. itemTaskIndex,
  645. index1
  646. )
  647. "></div>
  648. </div>
  649. <div class="chapter_upload_ic_r" @click.stop="
  650. deleteChapterData(
  651. $event,
  652. unitIndex,
  653. index,
  654. index1,
  655. itemTaskIndex
  656. )
  657. ">
  658. <div></div>
  659. </div>
  660. </div>
  661. </div>
  662. </div>
  663. </div>
  664. </div>
  665. <div class="add_info_box">
  666. <button class="info_btn" @click="addImg($event)">
  667. 添加文件
  668. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  669. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  670. " />
  671. </button>
  672. <!-- <button class="info_btn" @click="addImg($event)">
  673. 添加视频
  674. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  675. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  676. " />
  677. </button>
  678. <button class="info_btn" @click="addImg($event)">
  679. 添加文档
  680. <input type="file"
  681. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  682. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  683. " />
  684. </button> -->
  685. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  686. 添加图文
  687. </button>
  688. <button class="info_btn" @click="openLine(itemTaskIndex)">
  689. 添加链接
  690. </button>
  691. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  692. 嵌入代码
  693. </button>
  694. <button class="info_btn" @click="openSource(itemTaskIndex)">
  695. 添加资源
  696. </button>
  697. <!-- <button class="info_btn" @click="addImg($event)">
  698. 其他附件
  699. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  700. " />
  701. </button> -->
  702. </div>
  703. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  704. itemTaskIndex
  705. ].proVisible
  706. " class="mask">
  707. <div class="progressBox">
  708. <!-- <div id="closePro" class="closeCss">
  709. <img src="../../../assets/icon/close.png" alt />
  710. </div> -->
  711. <div class="lbox">
  712. <img src="../../assets/loading.gif" />上传中,请稍后
  713. </div>
  714. <div style="margin-bottom: 10px">
  715. <span>{{
  716. unitJson[unitIndex].chapterInfo[0].taskJson[
  717. itemTaskIndex
  718. ].isFinishSize
  719. }}M</span>
  720. /
  721. <span>{{
  722. unitJson[unitIndex].chapterInfo[0].taskJson[
  723. itemTaskIndex
  724. ].isAllSize
  725. }}M</span>
  726. </div>
  727. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  728. itemTaskIndex
  729. ].progress
  730. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  731. itemTaskIndex
  732. ].progress
  733. : 0
  734. " style="width: 80%"></el-progress>
  735. </div>
  736. </div>
  737. </div>
  738. <div v-if="unitJson[unitIndex].easy == 1 ||
  739. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  740. ">
  741. <div>
  742. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  743. itemTask.chapterData.length == 0
  744. " style="height: 185px"></div>
  745. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  746. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  747. <div class="chapter_upload" @click="
  748. getChapterData(
  749. $event,
  750. unitIndex,
  751. index,
  752. index1,
  753. item1.type
  754. )
  755. ">
  756. <div class="chapter_upload_t" style="width: 100%"></div>
  757. <div class="chapter_upload_o" style="
  758. position: relative;
  759. display: flex;
  760. align-items: center;
  761. ">
  762. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  763. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  764. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  765. </div>
  766. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  767. </div>
  768. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  769. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  770. </div>
  771. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  772. </div>
  773. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  774. </div>
  775. </div>
  776. <div class="chapter_upload_n">
  777. <span style="
  778. font-size: 14px;
  779. color: rgb(109, 109, 109);
  780. height: 14px;
  781. line-height: 12px;
  782. " v-if="item1.type == 2 ||
  783. item1.type == 3 ||
  784. item1.type == 7
  785. ">{{ item1.text }}-</span>
  786. <input v-if="item1.type == 2 ||
  787. item1.type == 3 ||
  788. item1.type == 7
  789. " v-model="item1.name" :placeholder="item1.name" @change="
  790. updataVideoT(
  791. $event,
  792. unitIndex,
  793. itemTaskIndex,
  794. index1
  795. )
  796. " style="
  797. border: none;
  798. outline: none;
  799. width: 80%;
  800. minwidth: 215px;
  801. z-index: 99;
  802. font-size: 14px;
  803. white-space: nowrap;
  804. overflow: hidden;
  805. text-overflow: ellipsis;
  806. " />
  807. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  808. border: none;
  809. outline: none;
  810. width: 80%;
  811. white-space: nowrap;
  812. overflow: hidden;
  813. text-overflow: ellipsis;
  814. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  815. <input :placeholder="item1.title ? item1.title : '链接'
  816. " v-if="item1.type == 8" style="
  817. border: none;
  818. outline: none;
  819. width: 80%;
  820. white-space: nowrap;
  821. overflow: hidden;
  822. text-overflow: ellipsis;
  823. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  824. </div>
  825. <div class="chapter_upload_ic">
  826. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  827. </div>
  828. <div class="chapter_upload_ud" style="z-index: 99">
  829. <div class="chapter_upload_up" @click="
  830. upCd(
  831. $event,
  832. unitIndex,
  833. index,
  834. itemTaskIndex,
  835. index1
  836. )
  837. "></div>
  838. <div class="chapter_upload_down" @click="
  839. downCd(
  840. $event,
  841. unitIndex,
  842. index,
  843. itemTaskIndex,
  844. index1
  845. )
  846. "></div>
  847. </div>
  848. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  849. deleteChapterData(
  850. $event,
  851. unitIndex,
  852. index,
  853. index1,
  854. itemTaskIndex
  855. )
  856. ">
  857. <div></div>
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. </div>
  863. </div>
  864. </div>
  865. <div class="add_info_box" style="margin: 10px 0 0">
  866. <button class="info_btn" @click="addImg($event)">
  867. <span style="color: red">*</span>
  868. 教学设计
  869. <input type="file"
  870. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  871. style="display: none" v-if="inputShow" @change="
  872. beforeUpload3(
  873. $event,
  874. unitIndex,
  875. 3,
  876. itemTaskIndex,
  877. '教学设计'
  878. )
  879. " />
  880. </button>
  881. <button class="info_btn" @click="addImg($event)">
  882. <span style="color: red">*</span>
  883. 教学课件
  884. <input type="file"
  885. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  886. style="display: none" v-if="inputShow" @change="
  887. beforeUpload3(
  888. $event,
  889. unitIndex,
  890. 3,
  891. itemTaskIndex,
  892. '教学课件'
  893. )
  894. " />
  895. </button>
  896. <button class="info_btn" @click="addImg($event)">
  897. 教学视频
  898. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  899. v-if="inputShow" @change="
  900. beforeUpload3(
  901. $event,
  902. unitIndex,
  903. 2,
  904. itemTaskIndex,
  905. '教学视频'
  906. )
  907. " />
  908. </button>
  909. <button class="info_btn" @click="addImg($event)">
  910. 教学音频
  911. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  912. beforeUpload3(
  913. $event,
  914. unitIndex,
  915. 2,
  916. itemTaskIndex,
  917. '教学音频'
  918. )
  919. " />
  920. </button>
  921. <button class="info_btn" @click="addImg($event)">
  922. 学习单
  923. <input type="file"
  924. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  925. style="display: none" v-if="inputShow" @change="
  926. beforeUpload3(
  927. $event,
  928. unitIndex,
  929. 3,
  930. itemTaskIndex,
  931. '学习单'
  932. )
  933. " />
  934. </button>
  935. </div>
  936. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  937. itemTaskIndex
  938. ].proVisible
  939. " class="mask">
  940. <div class="progressBox">
  941. <!-- <div id="closePro" class="closeCss">
  942. <img src="../../../assets/icon/close.png" alt />
  943. </div> -->
  944. <div class="lbox">
  945. <img src="../../assets/loading.gif" />上传中,请稍后
  946. </div>
  947. <div style="margin-bottom: 10px">
  948. <span>{{
  949. unitJson[unitIndex].chapterInfo[0].taskJson[
  950. itemTaskIndex
  951. ].isFinishSize
  952. }}M</span>
  953. /
  954. <span>{{
  955. unitJson[unitIndex].chapterInfo[0].taskJson[
  956. itemTaskIndex
  957. ].isAllSize
  958. }}M</span>
  959. </div>
  960. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  961. itemTaskIndex
  962. ].progress
  963. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  964. itemTaskIndex
  965. ].progress
  966. : 0
  967. " style="width: 80%"></el-progress>
  968. </div>
  969. </div>
  970. </div>
  971. <div v-if="unitJson[unitIndex].easy != 3 &&
  972. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  973. " style="
  974. flex-direction: row;
  975. justify-content: flex-start;
  976. align-items: center;
  977. ">
  978. <div style="
  979. display: flex;
  980. flex-direction: row;
  981. align-items: center;
  982. margin: 20px 0;
  983. ">
  984. <div class="lineTitle">
  985. {{
  986. !unitJson[unitIndex].easy ||
  987. unitJson[unitIndex].easy == 6 ||
  988. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  989. ? "练习内容"
  990. : "评价内容"
  991. }}
  992. </div>
  993. <!-- <div class="line" style="width: 90%"></div> -->
  994. </div>
  995. </div>
  996. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  997. " class="toolChoose">
  998. <div class="tools">
  999. <div class="leftTools" style="
  1000. width: 100%;
  1001. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1002. <div>
  1003. <textarea rows="2" type="text" placeholder="添加工具描述" class="binfo_input"
  1004. style="margin: 0 0 20px 0; width: 100% !important"
  1005. v-model="itemTool.toolDetail"></textarea>
  1006. </div>
  1007. <div style="
  1008. display: flex;
  1009. flex-direction: row;
  1010. align-items: baseline;
  1011. flex-wrap: nowrap;
  1012. justify-content: flex-start;
  1013. position: relative;
  1014. ">
  1015. <div style="margin-right: 20px; font-weight: bold">
  1016. 步骤 {{ toolIndex + 1 }} :
  1017. </div>
  1018. <div class="chooseWho">
  1019. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1020. " @click="(itemTool.toolType = 0), $forceUpdate()">
  1021. 互动类
  1022. </div> -->
  1023. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1024. " @click="(itemTool.toolType = 1), $forceUpdate()">
  1025. 思维类
  1026. </div>
  1027. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1028. " @click="(itemTool.toolType = 6), $forceUpdate()">
  1029. 协作类
  1030. </div>
  1031. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1032. " @click="(itemTool.toolType = 2), $forceUpdate()">
  1033. 测评类
  1034. </div>
  1035. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1036. " @click="(itemTool.toolType = 7), $forceUpdate()">
  1037. 评价类
  1038. </div>
  1039. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1040. " @click="(itemTool.toolType = 3), $forceUpdate()">
  1041. 学科类
  1042. </div>
  1043. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1044. " @click="(itemTool.toolType = 5), $forceUpdate()">
  1045. 学科类
  1046. </div>
  1047. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1048. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1049. 其他
  1050. </div> -->
  1051. </div>
  1052. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1053. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1054. </div>
  1055. <div style="min-height: 163px">
  1056. <div class="toolSort" v-if="itemTool.toolType == 0">
  1057. <!-- <div class="tool">
  1058. <div
  1059. class="whiteBIcon"
  1060. @click="addTools(8, itemTaskIndex, toolIndex)"
  1061. >
  1062. <img src="../../assets/icon/secondToolList/library.png" alt />
  1063. <div style="margin: 5px 0">素材库</div>
  1064. </div>
  1065. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1066. <img
  1067. src="../../assets/icon/checkNo.png"
  1068. alt
  1069. v-if="itemTool.tool.indexOf(8) == -1"
  1070. />
  1071. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1072. alt /><span>已选择</span></div>
  1073. </div>
  1074. </div>-->
  1075. <!-- <div class="tool">
  1076. <div
  1077. class="whiteBIcon"
  1078. @click="addTools(17, itemTaskIndex, toolIndex)"
  1079. >
  1080. <img
  1081. src="../../assets/icon/secondToolList/library.png"
  1082. alt
  1083. />
  1084. <div style="margin: 5px 0">学习资料</div>
  1085. </div>
  1086. <div
  1087. class="check"
  1088. @click="addTools(17, itemTaskIndex, toolIndex)"
  1089. >
  1090. <img
  1091. src="../../assets/icon/checkNo.png"
  1092. alt
  1093. v-if="itemTool.tool.indexOf(17) == -1"
  1094. />
  1095. <img
  1096. src="../../assets/icon/checkedIs.png"
  1097. alt
  1098. v-else
  1099. />
  1100. </div>10
  1101. </div> -->
  1102. <div class="tool">
  1103. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  1104. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1105. <div style="margin: 5px 0">倒计时</div>
  1106. </div>
  1107. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1108. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  1109. <div class="checkDiv" v-else>
  1110. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1111. </div>
  1112. </div>
  1113. </div>
  1114. <!-- <div class="tool">
  1115. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1116. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1117. <div style="margin: 5px 0">学生分组</div>
  1118. </div>
  1119. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1120. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1121. <div class="checkDiv" v-else>
  1122. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1123. </div>
  1124. </div>
  1125. </div> -->
  1126. <div class="tool">
  1127. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1128. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1129. <div style="margin: 5px 0">交互视频</div>
  1130. </div>
  1131. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1132. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -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>
  1139. <div class="toolSort" v-if="itemTool.toolType == 1">
  1140. <div class="tool">
  1141. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  1142. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1143. <div style="margin: 5px 0">思维网格</div>
  1144. </div>
  1145. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1146. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  1147. <div class="checkDiv" v-else>
  1148. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1149. </div>
  1150. </div>
  1151. </div>
  1152. <div class="tool">
  1153. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1154. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1155. <div style="margin: 5px 0">电子白板</div>
  1156. </div>
  1157. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1158. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1159. <div class="checkDiv" v-else>
  1160. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1161. </div>
  1162. </div>
  1163. </div>
  1164. <!-- <div class="tool">
  1165. <div
  1166. class="whiteBIcon"
  1167. @click="addTools(2, itemTaskIndex, toolIndex)"
  1168. >
  1169. <img
  1170. src="../../assets/icon/secondToolList/note.png"
  1171. alt
  1172. />
  1173. <div style="margin: 5px 0">便签</div>
  1174. </div>
  1175. <div
  1176. class="check"
  1177. @click="addTools(2, itemTaskIndex, toolIndex)"
  1178. >
  1179. <img
  1180. src="../../assets/icon/checkNo.png"
  1181. alt
  1182. v-if="itemTool.tool.indexOf(2) == -1"
  1183. />
  1184. <div class="checkDiv" v-else>
  1185. <img
  1186. src="../../assets/icon/checkedIs.png"
  1187. alt
  1188. /><span>已选择</span>
  1189. </div>
  1190. </div>
  1191. </div> -->
  1192. <!-- <div class="tool">
  1193. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1194. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1195. <div style="margin: 5px 0">协同文档</div>
  1196. </div>
  1197. <div
  1198. class="check"
  1199. @click="addTools(6, itemTaskIndex, toolIndex)"
  1200. >
  1201. <img
  1202. src="../../assets/icon/checkNo.png"
  1203. alt
  1204. v-if="itemTool.tool.indexOf(6) == -1"
  1205. />
  1206. <div class="checkDiv" v-else>
  1207. <img
  1208. src="../../assets/icon/checkedIs.png"
  1209. alt
  1210. /><span>已选择</span>
  1211. </div>
  1212. </div>
  1213. </div> -->
  1214. <div class="tool">
  1215. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1216. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1217. <div style="margin: 5px 0">文档</div>
  1218. </div>
  1219. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1220. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1221. <div class="checkDiv" v-else>
  1222. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1223. </div>
  1224. </div>
  1225. </div>
  1226. <div class="tool">
  1227. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1228. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1229. <div style="margin: 5px 0">思维导图</div>
  1230. </div>
  1231. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1232. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1233. <div class="checkDiv" v-else>
  1234. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1235. </div>
  1236. </div>
  1237. </div>
  1238. <div class="tool">
  1239. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1240. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1241. <div style="margin: 5px 0">表格</div>
  1242. </div>
  1243. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1244. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1245. <div class="checkDiv" v-else>
  1246. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1247. </div>
  1248. </div>
  1249. </div>
  1250. </div>
  1251. <div class="toolSort" v-if="itemTool.toolType == 6">
  1252. <div class="tool">
  1253. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1254. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1255. <div style="margin: 5px 0">学生分组</div>
  1256. </div>
  1257. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1258. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1259. <div class="checkDiv" v-else>
  1260. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1261. </div>
  1262. </div>
  1263. </div>
  1264. </div>
  1265. <div class="toolSort" v-if="itemTool.toolType == 2">
  1266. <!-- <div class="tool">
  1267. <div
  1268. class="whiteBIcon"
  1269. @click="addTools(5, itemTaskIndex, toolIndex)"
  1270. >
  1271. <img
  1272. src="../../assets/icon/thirdToolList/score.png"
  1273. alt
  1274. />
  1275. <div style="margin: 5px 0">量规评分</div>
  1276. </div>
  1277. <div
  1278. class="check"
  1279. @click="addTools(5, itemTaskIndex, toolIndex)"
  1280. >
  1281. <img
  1282. src="../../assets/icon/checkNo.png"
  1283. alt
  1284. v-if="itemTool.tool.indexOf(5) == -1"
  1285. />
  1286. <img
  1287. src="../../assets/icon/checkedIs.png"
  1288. alt
  1289. v-else
  1290. />
  1291. </div>
  1292. </div>-->
  1293. <div class="tool">
  1294. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1295. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1296. <div style="margin: 5px 0">问卷调查</div>
  1297. </div>
  1298. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1299. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1300. <div class="checkDiv" v-else>
  1301. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1302. </div>
  1303. </div>
  1304. </div>
  1305. <div class="tool">
  1306. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1307. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1308. <div style="margin: 5px 0">选择题</div>
  1309. </div>
  1310. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1311. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1312. <div class="checkDiv" v-else>
  1313. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1314. </div>
  1315. </div>
  1316. </div>
  1317. <div class="tool">
  1318. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1319. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1320. <div style="margin: 5px 0">问答工具</div>
  1321. </div>
  1322. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1323. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1324. <div class="checkDiv" v-else>
  1325. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1326. </div>
  1327. </div>
  1328. </div>
  1329. <div class="tool">
  1330. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1331. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1332. <div style="margin: 5px 0">作业提交</div>
  1333. </div>
  1334. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1335. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1336. <div class="checkDiv" v-else>
  1337. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1338. </div>
  1339. </div>
  1340. </div>
  1341. <div class="tool">
  1342. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  1343. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1344. <div style="margin: 5px 0">批量上传</div>
  1345. </div>
  1346. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1347. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1348. <div class="checkDiv" v-else>
  1349. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1350. </div>
  1351. </div>
  1352. </div>
  1353. <!-- <div class="tool">
  1354. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1355. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1356. <div style="margin: 5px 0">个人评价</div>
  1357. </div>
  1358. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1359. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1360. <div class="checkDiv" v-else>
  1361. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1362. </div>
  1363. </div>
  1364. </div> -->
  1365. <div class="tool">
  1366. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1367. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1368. <div style="margin: 5px 0">选择填空</div>
  1369. </div>
  1370. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1371. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1372. <div class="checkDiv" v-else>
  1373. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1374. </div>
  1375. </div>
  1376. </div>
  1377. <div class="tool">
  1378. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1379. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1380. <div style="margin: 5px 0">连词成句</div>
  1381. </div>
  1382. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1383. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1384. <div class="checkDiv" v-else>
  1385. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1386. </div>
  1387. </div>
  1388. </div>
  1389. <!-- <div class="tool">
  1390. <div
  1391. class="whiteBIcon"
  1392. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1393. >
  1394. <img
  1395. src="../../assets/icon/thirdToolList/mp3.png"
  1396. alt
  1397. />
  1398. <div style="margin: 5px 0">上传音频</div>
  1399. </div>
  1400. <div
  1401. class="check"
  1402. @click="addTools(42, itemTaskIndex, toolIndex)"
  1403. >
  1404. <img
  1405. src="../../assets/icon/checkNo.png"
  1406. alt
  1407. v-if="itemTool.tool.indexOf(42) == -1"
  1408. />
  1409. <img
  1410. src="../../assets/icon/checkedIs.png"
  1411. alt
  1412. v-else
  1413. />
  1414. </div>
  1415. </div> -->
  1416. </div>
  1417. <div class="toolSort" v-if="itemTool.toolType == 3">
  1418. <div class="tool">
  1419. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1420. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1421. <div style="margin: 5px 0">训练平台</div>
  1422. </div>
  1423. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1424. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  1425. <div class="checkDiv" v-else>
  1426. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1427. </div>
  1428. </div>
  1429. </div>
  1430. <div class="tool">
  1431. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1432. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1433. <div style="margin: 5px 0">编程平台</div>
  1434. </div>
  1435. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1436. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  1437. <div class="checkDiv" v-else>
  1438. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1439. </div>
  1440. </div>
  1441. </div>
  1442. <div class="tool">
  1443. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1444. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1445. <div style="margin: 5px 0">AI体验</div>
  1446. </div>
  1447. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1448. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1449. <div class="checkDiv" v-else>
  1450. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1451. </div>
  1452. </div>
  1453. </div>
  1454. <div class="tool">
  1455. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1456. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1457. <div style="margin: 5px 0">Python</div>
  1458. </div>
  1459. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1460. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  1461. <div class="checkDiv" v-else>
  1462. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1463. </div>
  1464. </div>
  1465. </div>
  1466. <div class="tool">
  1467. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1468. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1469. <div style="margin: 5px 0">AI平台</div>
  1470. </div>
  1471. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1472. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  1473. <div class="checkDiv" v-else>
  1474. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1475. </div>
  1476. </div>
  1477. </div>
  1478. <div class="tool">
  1479. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1480. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1481. <div style="margin: 5px 0">源码编辑</div>
  1482. </div>
  1483. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1484. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  1485. <div class="checkDiv" v-else>
  1486. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1487. </div>
  1488. </div>
  1489. </div>
  1490. <div class="tool">
  1491. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  1492. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1493. <div style="margin: 5px 0">CocoPi</div>
  1494. </div>
  1495. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1496. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  1497. <div class="checkDiv" v-else>
  1498. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1499. </div>
  1500. </div>
  1501. </div>
  1502. <div class="tool">
  1503. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  1504. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1505. <div style="margin: 5px 0">海龟编程</div>
  1506. </div>
  1507. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1508. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  1509. <div class="checkDiv" v-else>
  1510. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1511. </div>
  1512. </div>
  1513. </div>
  1514. </div>
  1515. <div class="toolSort" v-if="itemTool.toolType == 7">
  1516. <div class="tool">
  1517. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1518. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1519. <div style="margin: 5px 0">个人评价</div>
  1520. </div>
  1521. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1522. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1523. <div class="checkDiv" v-else>
  1524. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1525. </div>
  1526. </div>
  1527. </div>
  1528. </div>
  1529. <div class="toolSort" v-if="itemTool.toolType == 5">
  1530. <div class="tool">
  1531. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1532. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1533. <div style="margin: 5px 0">翻译</div>
  1534. </div>
  1535. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1536. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1537. <div class="checkDiv" v-else>
  1538. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1539. </div>
  1540. </div>
  1541. </div>
  1542. <div class="tool">
  1543. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1544. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  1545. <div style="margin: 5px 0">魔盒识字</div>
  1546. </div>
  1547. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1548. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1549. <div class="checkDiv" v-else>
  1550. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1551. </div>
  1552. </div>
  1553. </div>
  1554. <div class="tool">
  1555. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1556. <img src="../../assets/icon/secondToolList/24game.png" alt />
  1557. <div style="margin: 5px 0">24点</div>
  1558. </div>
  1559. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1560. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1561. <div class="checkDiv" v-else>
  1562. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1563. </div>
  1564. </div>
  1565. </div>
  1566. <div class="tool">
  1567. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1568. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1569. <div style="margin: 5px 0">数学画板</div>
  1570. </div>
  1571. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1572. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1573. <div class="checkDiv" v-else>
  1574. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1575. </div>
  1576. </div>
  1577. </div>
  1578. <div class="tool">
  1579. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1580. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1581. <div style="margin: 5px 0">GeoGebra</div>
  1582. </div>
  1583. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1584. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1585. <div class="checkDiv" v-else>
  1586. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1587. </div>
  1588. </div>
  1589. </div>
  1590. <div class="tool">
  1591. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  1592. <img src="../../assets/icon/fourthToolList/car.png" alt />
  1593. <div style="margin: 5px 0">模拟驾驶</div>
  1594. </div>
  1595. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  1596. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  1597. <div class="checkDiv" v-else>
  1598. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1599. </div>
  1600. </div>
  1601. </div>
  1602. <div class="tool">
  1603. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  1604. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  1605. <div style="margin: 5px 0">路径搜索</div>
  1606. </div>
  1607. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  1608. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  1609. <div class="checkDiv" v-else>
  1610. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1611. </div>
  1612. </div>
  1613. </div>
  1614. <div class="tool">
  1615. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  1616. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  1617. <div style="margin: 5px 0">深度学习</div>
  1618. </div>
  1619. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  1620. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  1621. <div class="checkDiv" v-else>
  1622. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1623. </div>
  1624. </div>
  1625. </div>
  1626. <div class="tool">
  1627. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  1628. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  1629. <div style="margin: 5px 0">全历史</div>
  1630. </div>
  1631. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  1632. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  1633. <div class="checkDiv" v-else>
  1634. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1635. </div>
  1636. </div>
  1637. </div>
  1638. </div>
  1639. <div class="toolSort" v-if="itemTool.toolType == 4">
  1640. <div class="tool">
  1641. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1642. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  1643. <div style="margin: 5px 0">课程设计</div>
  1644. </div>
  1645. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1646. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1647. <div class="checkDiv" v-else>
  1648. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1649. </div>
  1650. </div>
  1651. </div>
  1652. <div class="tool">
  1653. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1654. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  1655. <div style="margin: 5px 0">目标管理</div>
  1656. </div>
  1657. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1658. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1659. <div class="checkDiv" v-else>
  1660. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1661. </div>
  1662. </div>
  1663. </div>
  1664. <!-- <div class="tool">
  1665. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1666. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  1667. <div style="margin: 5px 0">汉字宫</div>
  1668. </div>
  1669. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1670. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1671. <div class="checkDiv" v-else>
  1672. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1673. </div>
  1674. </div>
  1675. </div> -->
  1676. </div>
  1677. </div>
  1678. </div>
  1679. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1680. <div class="addToolImg">
  1681. <img src="../../assets/icon/add.png" alt />
  1682. </div>
  1683. <div>添加工具</div>
  1684. </div>
  1685. </div>
  1686. </div>
  1687. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  1688. unitJson[unitIndex].easy == 4
  1689. " class="toolChoose">
  1690. <div class="tools">
  1691. <div class="leftTools" style="width: 100%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  1692. :key="toolIndex">
  1693. <div>
  1694. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1695. style="margin: 0 0 20px 0; width: 100% !important"
  1696. v-model="itemTool.toolDetail"></textarea>
  1697. </div>
  1698. <div style="
  1699. display: flex;
  1700. flex-direction: row;
  1701. align-items: baseline;
  1702. flex-wrap: nowrap;
  1703. justify-content: flex-start;
  1704. position: relative;
  1705. ">
  1706. <div style="margin-right: 20px; font-weight: bold">
  1707. 步骤 {{ toolIndex + 1 }} :
  1708. </div>
  1709. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1710. v-if="itemTask.toolChoose.length > 1" style="right: 55px"></div>
  1711. </div>
  1712. <div style="min-height: 163px">
  1713. <div class="toolSort">
  1714. <div class="tool">
  1715. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1716. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1717. <div style="margin: 5px 0">电子白板</div>
  1718. </div>
  1719. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1720. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1721. <div class="checkDiv" v-else>
  1722. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1723. </div>
  1724. </div>
  1725. </div>
  1726. <div class="tool">
  1727. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1728. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1729. <div style="margin: 5px 0">文档</div>
  1730. </div>
  1731. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1732. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1733. <div class="checkDiv" v-else>
  1734. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1735. </div>
  1736. </div>
  1737. </div>
  1738. <div class="tool">
  1739. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1740. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1741. <div style="margin: 5px 0">思维导图</div>
  1742. </div>
  1743. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1744. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1745. <div class="checkDiv" v-else>
  1746. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1747. </div>
  1748. </div>
  1749. </div>
  1750. <div class="tool">
  1751. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1752. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1753. <div style="margin: 5px 0">问卷调查</div>
  1754. </div>
  1755. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1756. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1757. <div class="checkDiv" v-else>
  1758. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1759. </div>
  1760. </div>
  1761. </div>
  1762. <div class="tool">
  1763. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1764. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1765. <div style="margin: 5px 0">选择题</div>
  1766. </div>
  1767. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1768. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1769. <div class="checkDiv" v-else>
  1770. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1771. </div>
  1772. </div>
  1773. </div>
  1774. <div class="tool">
  1775. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1776. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1777. <div style="margin: 5px 0">问答工具</div>
  1778. </div>
  1779. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1780. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1781. <div class="checkDiv" v-else>
  1782. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1783. </div>
  1784. </div>
  1785. </div>
  1786. <div class="tool">
  1787. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1788. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1789. <div style="margin: 5px 0">作业提交</div>
  1790. </div>
  1791. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1792. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1793. <div class="checkDiv" v-else>
  1794. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1795. </div>
  1796. </div>
  1797. </div>
  1798. <div class="tool">
  1799. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1800. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1801. <div style="margin: 5px 0">批量上传</div>
  1802. </div>
  1803. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1804. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1805. <div class="checkDiv" v-else>
  1806. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1807. </div>
  1808. </div>
  1809. </div>
  1810. <div class="tool">
  1811. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1812. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1813. <div style="margin: 5px 0">选择填空</div>
  1814. </div>
  1815. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1816. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1817. <div class="checkDiv" v-else>
  1818. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1819. </div>
  1820. </div>
  1821. </div>
  1822. <div class="tool">
  1823. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1824. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1825. <div style="margin: 5px 0">连词成句</div>
  1826. </div>
  1827. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1828. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1829. <div class="checkDiv" v-else>
  1830. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1831. </div>
  1832. </div>
  1833. </div>
  1834. <div class="tool">
  1835. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1836. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1837. <div style="margin: 5px 0">表格</div>
  1838. </div>
  1839. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1840. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1841. <div class="checkDiv" v-else>
  1842. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1843. </div>
  1844. </div>
  1845. </div>
  1846. </div>
  1847. </div>
  1848. </div>
  1849. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  1850. <div class="addToolImg">
  1851. <img src="../../assets/icon/add.png" alt />
  1852. </div>
  1853. <div>添加工具</div>
  1854. </div>
  1855. </div>
  1856. </div>
  1857. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  1858. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  1859. " class="toolChoose">
  1860. <div class="tools">
  1861. <div class="leftTools" style="
  1862. width: 100%;
  1863. padding: 0 0 15px 0;
  1864. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1865. <div style="min-height: 163px">
  1866. <div class="toolSort">
  1867. <div class="tool">
  1868. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1869. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1870. <div style="margin: 5px 0">批量上传</div>
  1871. </div>
  1872. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1873. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1874. <div class="checkDiv" v-else>
  1875. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1876. </div>
  1877. </div>
  1878. </div>
  1879. </div>
  1880. </div>
  1881. </div>
  1882. </div>
  1883. </div>
  1884. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  1885. <div class="elist_title">
  1886. <div style="
  1887. display: flex;
  1888. flex-direction: row;
  1889. align-items: center;
  1890. margin: 20px 0;
  1891. ">
  1892. <div class="lineTitle">评价设置</div>
  1893. <!-- <div class="line" style="width: 90%"></div> -->
  1894. </div>
  1895. </div>
  1896. <div class="mbCss">
  1897. <div class="pjCss">
  1898. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  1899. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  1900. <span>评价名称:</span>
  1901. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  1902. <span>评星等级:</span>
  1903. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  1904. disabled></el-rate>
  1905. <div class="remove" @click="
  1906. deletEList(unitIndex, itemTaskIndex, eIndex)
  1907. "></div>
  1908. <div class="elist_inptu_text">
  1909. <span>评价描述:</span>
  1910. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  1911. </div>
  1912. <div class="elist_inptu_text" v-if="evalua">
  1913. <span>目标:</span>
  1914. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  1915. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  1916. @change="forceUpdate()">
  1917. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  1918. :value="e.name">
  1919. </el-option>
  1920. </el-select> -->
  1921. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  1922. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  1923. </div>
  1924. </div>
  1925. </div>
  1926. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  1927. style="margin: 35px 35px 0 0">
  1928. <div class="addToolImg">
  1929. <img src="../../assets/icon/add.png" alt />
  1930. </div>
  1931. <div>添加</div>
  1932. </div>
  1933. </div>
  1934. <div v-if="evalua" style="
  1935. border: 1px solid #e5e5e5;
  1936. width: 55%;
  1937. box-shadow: 3px 1px 15px 3px #e0e0e0;
  1938. " class="evaCss">
  1939. <!-- <div class="e_add_top">
  1940. <div class="e_add_title">
  1941. <span>当前使用目标管理</span>
  1942. <span>{{ eTitle }}</span>
  1943. <img src="../../assets/line.png" class="cru_line" style="
  1944. width: 125px;
  1945. height: 20px;
  1946. bottom: -10px;
  1947. left: 155px;
  1948. " />
  1949. </div>
  1950. </div> -->
  1951. <div class="e_add_content" style="width: 100%">
  1952. <div class="e_add_list_pbox" style="width: 100%">
  1953. <div class="e_add_list_pbox_title">
  1954. <span class="type_title">切换模式</span>
  1955. <div class="type_content">
  1956. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  1957. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  1958. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  1959. </div>
  1960. </div>
  1961. <div class="e_add_list_pbox_content">
  1962. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  1963. " v-if="typeMode == 1"></Mind>
  1964. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  1965. </Sunburst>
  1966. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  1967. v-if="typeMode == 3"></SeeBoard>
  1968. </div>
  1969. </div>
  1970. </div>
  1971. </div>
  1972. </div>
  1973. </div>
  1974. <div class="funBlock" style="padding: 0">
  1975. <div class="fold" @click="fold(itemTaskIndex, $event)">
  1976. <div class="arrow" :class="{arrowZ:itemTask.isFold === 1}">
  1977. </div>
  1978. <div>{{ itemTask.isFold === 1 ? '展开' : '折叠' }}</div>
  1979. </div>
  1980. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  1981. <div>展开</div>
  1982. <div class="arrow">
  1983. <img src="../../assets/icon/expand.png" alt />
  1984. </div>
  1985. </div> -->
  1986. </div>
  1987. </div>
  1988. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1989. <div>
  1990. <img src="../../assets/icon/new/addStage.png" alt />
  1991. <span>添加任务</span>
  1992. </div>
  1993. </div>
  1994. </div>
  1995. </div>
  1996. </div>
  1997. </div>
  1998. </div>
  1999. <div style="
  2000. width: calc(100% - 20px);
  2001. background: rgb(255, 255, 255);
  2002. border-radius: 10px;
  2003. " v-if="this.steps == 4">
  2004. <div class="basic_box_success">
  2005. <div class="right_img">
  2006. <img src="../../assets/icon/right.png" alt />
  2007. </div>
  2008. <div style="font-weight: bold">成功</div>
  2009. <!-- <div>您的课程编号</div>
  2010. <div class="number">{{ number }}</div>-->
  2011. <!-- <div class="success_button">
  2012. <div class="look_course" @click="isNoFinsh">
  2013. 邀请老师协同编辑
  2014. </div>
  2015. <div class="attend_others" @click="goCourse">预览课程</div>
  2016. </div> -->
  2017. </div>
  2018. </div>
  2019. <div class="info_btnBox">
  2020. <button class="info_btn" v-if="steps == 1" @click="
  2021. goTo(
  2022. '/course?userid=' +
  2023. userid +
  2024. '&oid=' +
  2025. oid +
  2026. '&org=' +
  2027. org +
  2028. '&role=' +
  2029. role
  2030. )
  2031. ">
  2032. 返回课程
  2033. </button>
  2034. <button class="info_btn" v-if="steps > 1 && steps != 5" @click="lastSteps">
  2035. {{ steps == 4 ? "返回首页" : "上一步" }}
  2036. </button>
  2037. <button class="info_btn" v-if="steps < 4" @click="nextSteps">
  2038. {{ steps == 3 ? "确认上传" : "下一步" }}
  2039. </button>
  2040. </div>
  2041. </div>
  2042. </div>
  2043. </div>
  2044. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2045. class="dialog_diy2 customWidth">
  2046. <div>请复制该链接邀请协同编辑</div>
  2047. <div>http://www.boomyon.com/index-zhang.com</div>
  2048. <span slot="footer" class="dialog-footer">
  2049. <el-button type="primary">复制链接分享</el-button>
  2050. <el-button @click="dialogVisible = false">取消</el-button>
  2051. </span>
  2052. </el-dialog>
  2053. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2054. :before-close="handleClose" class="dialog_diy2 customWidth">
  2055. <el-form>
  2056. <el-form-item label="文档标题">
  2057. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2058. </el-form-item>
  2059. <div>文档简介</div>
  2060. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2061. </el-form>
  2062. <span slot="footer" class="dialog-footer">
  2063. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2064. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2065. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2066. </span>
  2067. </el-dialog>
  2068. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2069. :before-close="handleClose" class="dialog_diy">
  2070. <el-form>
  2071. <el-form-item label="文档标题">
  2072. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2073. </el-form-item>
  2074. <div>文档内容</div>
  2075. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2076. </el-form>
  2077. <span slot="footer" class="dialog-footer">
  2078. <el-button @click="clearChoose">取 消</el-button>
  2079. <el-button type="primary" @click="wordNext()">确定</el-button>
  2080. </span>
  2081. </el-dialog>
  2082. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2083. :before-close="handleClose" class="dialog_diy">
  2084. <el-form>
  2085. <el-form-item label="文本标题">
  2086. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2087. </el-form-item>
  2088. <div>富文本内容</div>
  2089. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2090. </el-form>
  2091. <span slot="footer" class="dialog-footer">
  2092. <el-button @click="clearAttText">取 消</el-button>
  2093. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2094. </span>
  2095. </el-dialog>
  2096. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2097. :before-close="handleClose" class="dialog_diy lineCss">
  2098. <el-form>
  2099. <el-form-item label="标题" :label-width="formLabelWidth">
  2100. <span>
  2101. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2102. </span>
  2103. </el-form-item>
  2104. <el-form-item label="链接" :label-width="formLabelWidth">
  2105. <span>
  2106. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2107. </span>
  2108. </el-form-item>
  2109. </el-form>
  2110. <span slot="footer" class="dialog-footer">
  2111. <el-button @click="clearLine">取 消</el-button>
  2112. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2113. </span>
  2114. </el-dialog>
  2115. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="100%"
  2116. :before-close="handleClose" class="dialog_diy source_diy">
  2117. <div>
  2118. <sourceDialog :sourceData="sourceData"></sourceDialog>
  2119. </div>
  2120. <span slot="footer" class="dialog-footer">
  2121. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2122. <el-button type="primary" @click="addSource">确定</el-button>
  2123. </span>
  2124. </el-dialog>
  2125. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2126. :before-close="handleClose" class="addNewPP customWidth">
  2127. <div class="people">
  2128. <div class="people_top">
  2129. <div class="people_nav">选择成员</div>
  2130. <div class="people_top_right">
  2131. <div class="people_search">
  2132. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2133. <div class="search_img" @click="searchStudent">
  2134. <img src="../../assets/icon/search.png" alt />
  2135. </div>
  2136. </div>
  2137. </div>
  2138. </div>
  2139. <el-checkbox-group v-model="checkboxList" class="people_name">
  2140. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2141. "暂无学生可选" }}</el-checkbox>
  2142. </el-checkbox-group>
  2143. </div>
  2144. <span slot="footer" class="dialog-footer">
  2145. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2146. <el-button type="primary" @click="isAddPP">确定</el-button>
  2147. </span>
  2148. </el-dialog>
  2149. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  2150. :before-close="handleClose" class="addNewPP">
  2151. <div class="people" style="height: 300px">
  2152. <div class="people_top">
  2153. <div class="people_top_right">
  2154. <div class="people_search">
  2155. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  2156. <!-- @click="getClass()"
  2157. @keyup.enter.native="getClass()"
  2158. -->
  2159. <div class="search_img">
  2160. <img src="../../assets/icon/search.png" alt />
  2161. </div>
  2162. </div>
  2163. </div>
  2164. <div class="people_nav">选择班级</div>
  2165. </div>
  2166. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange">
  2167. <div v-for="item in grade2" :key="item.id" class="p_box">
  2168. <el-checkbox :label="item.id">
  2169. {{ item.name }}
  2170. </el-checkbox>
  2171. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  2172. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  2173. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  2174. @click="OpenInviteD(item.id)">随机码设置</div>
  2175. <img src="../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  2176. </div>
  2177. </el-checkbox-group>
  2178. </div>
  2179. <span slot="footer" class="dialog-footer">
  2180. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2181. <el-button type="primary" @click="isAddClass">确定</el-button>
  2182. </span>
  2183. </el-dialog>
  2184. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2185. :before-close="handleClose" class="addNewPP customWidth">
  2186. <div class="people">
  2187. <div class="people_top">
  2188. <div class="people_top_right">
  2189. <div class="people_search">
  2190. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2191. <div class="search_img" @click="getTeacher">
  2192. <img src="../../assets/icon/search.png" alt />
  2193. </div>
  2194. </div>
  2195. </div>
  2196. <div class="people_nav">选择成员</div>
  2197. </div>
  2198. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2199. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2200. <div class="t_j_box">
  2201. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2202. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2203. </el-tooltip>
  2204. <el-tooltip placement="top" :content="item.username">
  2205. <span>{{ item.username }}</span>
  2206. </el-tooltip>
  2207. <el-tooltip placement="top" :content="item.school">
  2208. <span>{{ item.school }}</span>
  2209. </el-tooltip>
  2210. </div>
  2211. </el-checkbox>
  2212. </el-checkbox-group>
  2213. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2214. </div>
  2215. <span slot="footer" class="dialog-footer">
  2216. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2217. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2218. </span>
  2219. </el-dialog>
  2220. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2221. :before-close="handleClose" class="dialog_diy">
  2222. <div>
  2223. <div class="a_add_title" style="
  2224. display: flex;
  2225. flex-direction: row;
  2226. align-items: center;
  2227. justify-content: center;
  2228. ">
  2229. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2230. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2231. </div>
  2232. <div class="a_addBox">
  2233. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2234. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2235. <div class="a_add_checkType">
  2236. <span :class="{
  2237. active:
  2238. askJson.askJson[index1].type == '1' ||
  2239. !askJson.askJson[index1].type,
  2240. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2241. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2242. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2243. </div>
  2244. <div class="a_add_head">
  2245. <div>
  2246. {{ index1 + 1 + "、" }}
  2247. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  2248. </el-input>
  2249. </div>
  2250. <div class="a_add_head_div">
  2251. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2252. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2253. </el-button>
  2254. </div>
  2255. </div>
  2256. <div class="a_add_body">
  2257. <div class="a_add_input">
  2258. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2259. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  2260. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2261. </div>
  2262. <div class="a_add_body_div">
  2263. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2264. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2265. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2266. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2267. </el-button>
  2268. </div>
  2269. </div>
  2270. </div>
  2271. </div>
  2272. </div>
  2273. <span slot="footer" class="dialog-footer">
  2274. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2275. <el-button type="primary" @click="addAsk">确 定</el-button>
  2276. </span>
  2277. </el-dialog>
  2278. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2279. :before-close="handleClose" class="dialog_diy">
  2280. <div>
  2281. <!-- <div class="a_add_title" style="
  2282. display: flex;
  2283. flex-direction: row;
  2284. align-items: center;
  2285. justify-content: center;
  2286. ">
  2287. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2288. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2289. </div> -->
  2290. <div class="a_addBox">
  2291. <div style="font-size: 16px; color: #c7c7c7">
  2292. 请输入题目内容
  2293. <el-button type="primary" size="small" @click="pasteOption" style="margin-left: 10px">智能粘贴</el-button>
  2294. </div>
  2295. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2296. <div class="a_add_checkType">
  2297. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2298. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2299. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2300. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2301. </div>
  2302. <div class="a_add_head">
  2303. <div class="timuUpImg">
  2304. <div>
  2305. {{ index1 + 1 + "、" }}
  2306. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle"
  2307. placeholder="请输入题目...">
  2308. </el-input>
  2309. </div>
  2310. <div class="xzUpImg" @click.stop="addImg($event)">
  2311. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2312. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2313. </div>
  2314. </div>
  2315. <div class="a_add_head_div">
  2316. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  2317. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2318. </el-button>
  2319. </div>
  2320. </div>
  2321. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2322. testJson.testJson[index1].timuList.length
  2323. ">
  2324. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2325. @click.stop="previewImg(timg.src)">
  2326. <img :src="timg.src" alt="" />
  2327. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2328. <img src="../../assets/icon/delete.png" alt="" />
  2329. </div>
  2330. </div>
  2331. </div>
  2332. <div class="a_add_body">
  2333. <div class="a_add_input a_add_input_choice">
  2334. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  2335. <div class="radioBox">
  2336. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2337. .testItem" :key="checkIndex" :label="checkIndex">
  2338. <div style="margin-right: 10px">
  2339. 选项{{ checkIndex + 1 }}
  2340. </div>
  2341. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2342. testJson.testJson[index1].checkList[checkIndex]
  2343. .imgType &&
  2344. testJson.testJson[index1].checkList[checkIndex]
  2345. .imgType == 1
  2346. ">
  2347. <div class="inImg" @click.stop="
  2348. previewImg(
  2349. testJson.testJson[index1].checkList[checkIndex]
  2350. .src
  2351. )
  2352. ">
  2353. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2354. .src
  2355. " lazy />
  2356. <!-- <img :src="
  2357. testJson.testJson[index1].checkList[checkIndex]
  2358. .src
  2359. " alt="" /> -->
  2360. </div>
  2361. </div>
  2362. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2363. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2364. <div class="xzUpImg" @click.stop="addImg($event)">
  2365. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2366. <input type="file" accept="image/*" style="display: none"
  2367. @change="beforeUploadTi($event, index1, checkIndex)" />
  2368. </div>
  2369. </el-radio>
  2370. </div>
  2371. </el-radio-group>
  2372. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  2373. v-if="testJson.testJson[index1].type == '2'">
  2374. <div class="radioBox">
  2375. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2376. .testItem" :key="checkIndex1" :label="checkIndex1">
  2377. <div style="margin-right: 10px">
  2378. 选项{{ checkIndex1 + 1 }}
  2379. </div>
  2380. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2381. testJson.testJson[index1].checkList[checkIndex1]
  2382. .imgType &&
  2383. testJson.testJson[index1].checkList[checkIndex1]
  2384. .imgType == 1
  2385. ">
  2386. <div class="inImg" @click.stop="
  2387. previewImg(
  2388. testJson.testJson[index1].checkList[checkIndex1]
  2389. .src
  2390. )
  2391. ">
  2392. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2393. .src
  2394. " lazy />
  2395. <!-- <img :src="
  2396. testJson.testJson[index1].checkList[checkIndex1]
  2397. .src
  2398. " alt="" /> -->
  2399. </div>
  2400. </div>
  2401. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2402. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2403. <div class="xzUpImg" @click.stop="addImg($event)">
  2404. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2405. <input type="file" accept="image/*" style="display: none"
  2406. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2407. </div>
  2408. </el-checkbox>
  2409. </div>
  2410. </el-checkbox-group>
  2411. </div>
  2412. <div class="a_add_body_div" style="margin-bottom: 3px">
  2413. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2414. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2415. v-if="testJson.testJson[index1].testItem != 1">删除
  2416. </el-button>
  2417. </div>
  2418. </div>
  2419. </div>
  2420. </div>
  2421. </div>
  2422. <span slot="footer" class="dialog-footer">
  2423. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2424. <el-button type="primary" @click="addTest">确 定</el-button>
  2425. </span>
  2426. </el-dialog>
  2427. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2428. :before-close="handleClose" class="dialog_diy addToolsDia">
  2429. <div class="toolChoose">
  2430. <div class="tools">
  2431. <div class="leftTools" style="
  2432. width: 100%;
  2433. padding: 0 0 15px 0;
  2434. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2435. <div style="
  2436. display: flex;
  2437. flex-direction: row;
  2438. align-items: baseline;
  2439. flex-wrap: nowrap;
  2440. justify-content: flex-start;
  2441. position: relative;
  2442. ">
  2443. <div class="chooseWho">
  2444. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2445. 互动类
  2446. </div>
  2447. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2448. 思维类
  2449. </div>
  2450. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2451. 评价类
  2452. </div>
  2453. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2454. 其他
  2455. </div>
  2456. </div>
  2457. </div>
  2458. <div style="min-height: 163px">
  2459. <div class="toolSort" v-if="chapToolsType == 0">
  2460. <div class="tool">
  2461. <div class="whiteBIcon" @click="chapAddTools(8)">
  2462. <img src="../../assets/icon/secondToolList/library.png" alt />
  2463. <div style="margin: 5px 0">素材库</div>
  2464. </div>
  2465. <div class="check" @click="chapAddTools(8)">
  2466. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2467. <div class="checkDiv" v-else>
  2468. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2469. </div>
  2470. </div>
  2471. </div>
  2472. </div>
  2473. <div class="toolSort" v-if="chapToolsType == 1">
  2474. <div class="tool">
  2475. <div class="whiteBIcon" @click="chapAddTools(7)">
  2476. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  2477. <div style="margin: 5px 0">思维网格</div>
  2478. </div>
  2479. <div class="check" @click="chapAddTools(7)">
  2480. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2481. <div class="checkDiv" v-else>
  2482. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2483. </div>
  2484. </div>
  2485. </div>
  2486. <div class="tool">
  2487. <div class="whiteBIcon" @click="chapAddTools(1)">
  2488. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2489. <div style="margin: 5px 0">电子白板</div>
  2490. </div>
  2491. <div class="check" @click="chapAddTools(1)">
  2492. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2493. <div class="checkDiv" v-else>
  2494. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2495. </div>
  2496. </div>
  2497. </div>
  2498. <div class="tool">
  2499. <div class="whiteBIcon" @click="chapAddTools(2)">
  2500. <img src="../../assets/icon/secondToolList/note.png" alt />
  2501. <div style="margin: 5px 0">便签</div>
  2502. </div>
  2503. <div class="check" @click="chapAddTools(2)">
  2504. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2505. <div class="checkDiv" v-else>
  2506. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2507. </div>
  2508. </div>
  2509. </div>
  2510. <div class="tool">
  2511. <div class="whiteBIcon" @click="chapAddTools(6)">
  2512. <img src="../../assets/icon/secondToolList/doc.png" alt />
  2513. <div style="margin: 5px 0">协同文档</div>
  2514. </div>
  2515. <div class="check" @click="chapAddTools(6)">
  2516. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2517. <div class="checkDiv" v-else>
  2518. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2519. </div>
  2520. </div>
  2521. </div>
  2522. <div class="tool">
  2523. <div class="whiteBIcon" @click="chapAddTools(3)">
  2524. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2525. <div style="margin: 5px 0">思维导图</div>
  2526. </div>
  2527. <div class="check" @click="chapAddTools(3)">
  2528. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2529. <div class="checkDiv" v-else>
  2530. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2531. </div>
  2532. </div>
  2533. </div>
  2534. <div class="tool">
  2535. <div class="whiteBIcon" @click="chapAddTools(31)">
  2536. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2537. <div style="margin: 5px 0">数学画板</div>
  2538. </div>
  2539. <div class="check" @click="chapAddTools(31)">
  2540. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2541. <div class="checkDiv" v-else>
  2542. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2543. </div>
  2544. </div>
  2545. </div>
  2546. </div>
  2547. <div class="toolSort" v-if="chapToolsType == 2">
  2548. <div class="tool">
  2549. <div class="whiteBIcon" @click="chapAddTools(5)">
  2550. <img src="../../assets/icon/thirdToolList/score.png" alt />
  2551. <div style="margin: 5px 0">量规评分</div>
  2552. </div>
  2553. <div class="check" @click="chapAddTools(5)">
  2554. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2555. <div class="checkDiv" v-else>
  2556. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2557. </div>
  2558. </div>
  2559. </div>
  2560. <div class="tool">
  2561. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2562. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2563. <div style="margin: 5px 0">问卷调查</div>
  2564. </div>
  2565. <div class="check" @click="chapAddTools(4)">
  2566. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2567. <div class="checkDiv" v-else>
  2568. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2569. </div>
  2570. </div>
  2571. </div>
  2572. </div>
  2573. </div>
  2574. <div>
  2575. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  2576. v-model="itemTools.toolDetail" />
  2577. </div>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. <span slot="footer" class="dialog-footer">
  2582. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2583. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2584. </span>
  2585. </el-dialog>
  2586. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2587. :before-close="handleClose" class="dialog_diy">
  2588. <div>
  2589. <div class="a_add_title" style="
  2590. display: flex;
  2591. flex-direction: column;
  2592. align-items: flex-start;
  2593. justify-content: center;
  2594. ">
  2595. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2596. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  2597. </div>
  2598. </div>
  2599. <span slot="footer" class="dialog-footer">
  2600. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2601. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2602. </span>
  2603. </el-dialog>
  2604. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2605. :before-close="handleClose" class="dialog_diy">
  2606. <div>
  2607. <div class="a_add_title" style="
  2608. display: flex;
  2609. flex-direction: column;
  2610. align-items: flex-start;
  2611. justify-content: center;
  2612. ">
  2613. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2614. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2615. </div>
  2616. </div>
  2617. <span slot="footer" class="dialog-footer">
  2618. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2619. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2620. </span>
  2621. </el-dialog>
  2622. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  2623. :before-close="handleClose" class="dialog_diy">
  2624. <div>
  2625. <div class="fileCss" style="padding-top: 20px">
  2626. <div>
  2627. <button class="info_btn" @click="addImg($event)">
  2628. 选择本地文件
  2629. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2630. </button>
  2631. </div>
  2632. <div>
  2633. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  2634. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2635. <img :src="cover[0].url" alt="" />
  2636. <div class="deletePic" @click="deleteSysPic">
  2637. <img src="../../assets/icon/delete.png" alt="" />
  2638. </div>
  2639. </div>
  2640. </div>
  2641. </div>
  2642. <div class="fileCss">
  2643. <div>选择本地文件</div>
  2644. <div>选择系统文件</div>
  2645. </div>
  2646. </div>
  2647. <span slot="footer" class="dialog-footer">
  2648. <el-button @click="choosePicVisible = false">取 消</el-button>
  2649. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  2650. </span>
  2651. </el-dialog>
  2652. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2653. :before-close="handleClose" class="dialog_diy">
  2654. <div class="cru_selectBox" style="margin: 0">
  2655. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2656. 绘画
  2657. </div>
  2658. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2659. 科技
  2660. </div>
  2661. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2662. 人文
  2663. </div>
  2664. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2665. 艺术
  2666. </div>
  2667. </div>
  2668. <div class="sysPicBox">
  2669. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2670. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2671. </div>
  2672. </div>
  2673. <span slot="footer" class="dialog-footer">
  2674. <el-button @click="sysPicVisible = false">取 消</el-button>
  2675. <el-button type="primary">确 定</el-button>
  2676. </span>
  2677. </el-dialog>
  2678. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2679. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2680. <div v-if="selectJson">
  2681. <div class="select_box1" v-if="selectSteps == 1">
  2682. <div class="select_box1_img">
  2683. <div class="select_box1_title">
  2684. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  2685. </div>
  2686. <div class="select_box1_add_img">
  2687. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2688. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2689. <img src="../../assets/icon/addPoster.png" alt="" />
  2690. </div>
  2691. <div class="isSysPic" v-else>
  2692. <img :src="selectJson.url" alt="" />
  2693. <div class="deletePic" @click="deleteSelectPic">
  2694. <img src="../../assets/icon/delete.png" alt="" />
  2695. </div>
  2696. </div>
  2697. </div>
  2698. </div>
  2699. <div class="select_box1_select">
  2700. <div class="select_box1_title">
  2701. <span>添加选项</span><span>提示:请输入题目选项</span>
  2702. </div>
  2703. <div class="select_box1_select_box">
  2704. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2705. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  2706. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2707. <div class="select_box1_select_box_add">
  2708. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2709. 添加</el-button>
  2710. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2711. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2712. </div>
  2713. </div>
  2714. </div>
  2715. </div>
  2716. <div v-if="selectSteps == 2">
  2717. <div class="select_box2">
  2718. <div class="select_box2_title">设置答案</div>
  2719. <div class="select_box2_box">
  2720. <div class="select_box2_img">
  2721. <img :src="selectJson.url" alt="" />
  2722. </div>
  2723. <div class="select_box2_answer">
  2724. <div class="select_answer_title">根据题目选择对应答案</div>
  2725. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2726. <span>{{ checkIndex + 1 }}、</span>
  2727. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2728. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2729. </el-option>
  2730. </el-select>
  2731. </div>
  2732. </div>
  2733. </div>
  2734. </div>
  2735. </div>
  2736. </div>
  2737. <span slot="footer" class="dialog-footer">
  2738. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2739. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2740. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2741. </span>
  2742. </el-dialog>
  2743. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2744. :before-close="handleClose" class="dialog_diy">
  2745. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2746. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2747. <div class="pjCss" style="width: 100%">
  2748. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2749. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2750. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2751. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2752. <div class="remove" @click="deletRateList(eIndex)"></div>
  2753. <div style="width: 100%; display: flex">
  2754. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2755. <el-rate v-model="eItem.score" disabled></el-rate>
  2756. </div>
  2757. <div class="elist_inptu_text" style="align-items: flex-start">
  2758. <span style="min-width: 100px; text-align: right">描述:</span>
  2759. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2760. </div>
  2761. </div>
  2762. </div>
  2763. <div class="addToolFun" @click="addRateList()">
  2764. <div class="addToolImg">
  2765. <img src="../../assets/icon/add.png" alt />
  2766. </div>
  2767. <div>添加</div>
  2768. </div>
  2769. </div>
  2770. </div>
  2771. <span slot="footer" class="dialog-footer">
  2772. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2773. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2774. </span>
  2775. </el-dialog>
  2776. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2777. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2778. <div>
  2779. <div class="sentenBox">
  2780. <div class="addSen" @click="addSt">添加题目</div>
  2781. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  2782. <div class="sentenTopBox">
  2783. <div class="sentenTop">
  2784. <div>题目设置</div>
  2785. <div>
  2786. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  2787. </div>
  2788. <div @click="addSen(stIndex)">添加</div>
  2789. </div>
  2790. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2791. </div>
  2792. <div class="cardList">
  2793. <div v-if="st.addSentence.length > 0" class="cardBox">
  2794. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2795. @click="setRightAnswer(s, stIndex, sIndex)">
  2796. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2797. <div>{{ s }}</div>
  2798. </el-tooltip>
  2799. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2800. <img src="../../assets/icon/delete.png" alt="" />
  2801. </div>
  2802. </div>
  2803. </div>
  2804. <div class="card">
  2805. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  2806. </div>
  2807. </div>
  2808. <div class="rightCardBox">
  2809. <div>正确顺序</div>
  2810. <div class="rightCardList">
  2811. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2812. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2813. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2814. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2815. <div>{{ r }}</div>
  2816. </el-tooltip>
  2817. </div>
  2818. <div>{{ rIndex + 1 }}</div>
  2819. </div>
  2820. </div>
  2821. <div class="card" v-if="st.rightAnswer.length == 0">
  2822. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  2823. </div>
  2824. </div>
  2825. </div>
  2826. </div>
  2827. </div>
  2828. </div>
  2829. <span slot="footer" class="dialog-footer">
  2830. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  2831. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2832. </span>
  2833. </el-dialog>
  2834. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2835. :before-close="handleClose" class="dialog_diy">
  2836. <el-form>
  2837. <!-- <el-form-item label="文本标题">
  2838. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2839. </el-form-item> -->
  2840. <div>表格内容</div>
  2841. <Table v-model="tableJson.text" @change="change"></Table>
  2842. </el-form>
  2843. <span slot="footer" class="dialog-footer">
  2844. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2845. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2846. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2847. </span>
  2848. </el-dialog>
  2849. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2850. :before-close="handleClose" class="dialog_diy">
  2851. <el-form>
  2852. <!-- <el-form-item label="文本标题">
  2853. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2854. </el-form-item> -->
  2855. <div>文档内容</div>
  2856. <editor-bar v-model="wordJson.text"></editor-bar>
  2857. </el-form>
  2858. <span slot="footer" class="dialog-footer">
  2859. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2860. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2861. </span>
  2862. </el-dialog>
  2863. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2864. :before-close="handleClose" class="dialog_diy">
  2865. <div style="
  2866. width: 100%;
  2867. display: flex;
  2868. flex-direction: row;
  2869. flex-wrap: nowrap;
  2870. align-items: center;
  2871. justify-content: center;
  2872. ">
  2873. <div>班级:</div>
  2874. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2875. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2876. </el-option>
  2877. </el-select>
  2878. </div>
  2879. <span slot="footer" class="dialog-footer">
  2880. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2881. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2882. </span>
  2883. </el-dialog>
  2884. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2885. :before-close="handleClose" class="dialog_diy">
  2886. <div style="
  2887. width: 100%;
  2888. display: flex;
  2889. flex-direction: row;
  2890. flex-wrap: nowrap;
  2891. align-items: center;
  2892. justify-content: center;
  2893. ">
  2894. <div>随机码:</div>
  2895. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  2896. </div>
  2897. <span slot="footer" class="dialog-footer">
  2898. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  2899. <el-button type="primary" @click="addInvite">确定</el-button>
  2900. </span>
  2901. </el-dialog>
  2902. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="30%"
  2903. :before-close="handleClose" class="dialog_diy">
  2904. <div>
  2905. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  2906. </div>
  2907. <span slot="footer" class="dialog-footer">
  2908. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  2909. <el-button type="primary" @click="addPreTime">确定</el-button>
  2910. </span>
  2911. </el-dialog>
  2912. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  2913. class="dialog_diy">
  2914. <div>
  2915. <div style="
  2916. width: 100%;
  2917. display: flex;
  2918. flex-direction: row;
  2919. flex-wrap: nowrap;
  2920. align-content: center;
  2921. align-items: center;
  2922. justify-content: space-between;
  2923. ">
  2924. <div style="
  2925. display: flex;
  2926. flex-flow: row nowrap;
  2927. align-items: flex-start;
  2928. width: 100%;
  2929. flex-direction: column;
  2930. flex-wrap: nowrap;
  2931. position: relative;
  2932. ">
  2933. <div class="e_box">
  2934. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  2935. <div class="e_card_picture">
  2936. <img src="../../assets/e_picture.png" />
  2937. </div>
  2938. <div class="e_card_name">
  2939. <span>{{ item.title }}</span>
  2940. </div>
  2941. <div class="e_card_btn">
  2942. <span @click="checkEva(item.id, 2)">导入</span>
  2943. </div>
  2944. </div>
  2945. <div class="addEva" @click="openT">
  2946. <img src="../../assets/icon/addEva.png" alt="" />
  2947. </div>
  2948. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  2949. 暂无数据
  2950. </div>
  2951. </div>
  2952. </div>
  2953. </div>
  2954. </div>
  2955. <span slot="footer" class="dialog-footer">
  2956. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  2957. </span>
  2958. </el-dialog>
  2959. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  2960. :before-close="handleClose" class="dialog_diy">
  2961. <div class="groupBox">
  2962. <div v-if="groupJson.group" class="groupContent">
  2963. <div class="groupTitle">请设置小组数量</div>
  2964. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  2965. <span class="groupn">组{{ index + 1 }}名称:</span>
  2966. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  2967. <div class="groupBtn">
  2968. <el-button type="primary" size="small" @click="addGroup(index)">
  2969. 添加</el-button>
  2970. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2971. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  2972. </div>
  2973. </div>
  2974. </div>
  2975. <div class="groupContent">
  2976. <div class="groupTitle">请设置每组人数数量</div>
  2977. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2978. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2979. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  2980. placeholder="2-10人以内"></el-input-number>
  2981. </div>
  2982. </div>
  2983. <span slot="footer" class="dialog-footer">
  2984. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  2985. <el-button type="primary" @click="addGroupJson">确定</el-button>
  2986. </span>
  2987. </el-dialog>
  2988. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  2989. </div>
  2990. </template>
  2991. <script>
  2992. import "../../common/aws-sdk-2.235.1.min.js";
  2993. // import "../../common/aws-sdk-2.99.0.min.js";
  2994. import $ from "jquery";
  2995. import EditorBar from "../../components/tools/wangEnduit";
  2996. import Table from "../../components/tools/table";
  2997. import Mind from "../tools/jsmind2";
  2998. import Time from "../tools/time.vue";
  2999. import Sunburst from "../tools/sunburst";
  3000. import SeeBoard from "../tools/seeBoard";
  3001. import weilaiData from "./components/weilai.js";
  3002. import sourceDialog from "./teacherSource/dialog.vue";
  3003. import interVideo from "./interVideo/index.vue";
  3004. export default {
  3005. components: {
  3006. EditorBar,
  3007. Mind,
  3008. Time,
  3009. Sunburst,
  3010. SeeBoard,
  3011. Table,
  3012. sourceDialog,
  3013. interVideo,
  3014. },
  3015. data() {
  3016. return {
  3017. checkAll: false,
  3018. chooseType: 1,
  3019. checkedCities: [],
  3020. isIndeterminate: true,
  3021. isSysPic: false,
  3022. steps: 1,
  3023. nbOrder: 0,
  3024. courseId: "",
  3025. chapToolsType: 0,
  3026. chapTools: [
  3027. {
  3028. tools: [],
  3029. toolDetail: "",
  3030. },
  3031. ],
  3032. line: "",
  3033. lineTitle: "",
  3034. sysPic: [],
  3035. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3036. isPushTitleList: [],
  3037. lineCount: 0,
  3038. lineType: 0,
  3039. chapCount: 0,
  3040. courseName: "",
  3041. isTeacherSee: true,
  3042. courseText: "",
  3043. preTime: 0,
  3044. formLabelWidth: "100px",
  3045. choosePicVisible: false,
  3046. sysPicVisible: false,
  3047. uploadLoading1: false,
  3048. noneBtnImg: false,
  3049. updateBoolean2: false,
  3050. unitIndex: 0,
  3051. taskCount: 0,
  3052. dialogVisible: false,
  3053. dialogVisible1: false,
  3054. dialogVisible2: false,
  3055. dialogVisible3: false,
  3056. dialogVisible4: false,
  3057. dialogVisible5: false,
  3058. dialogVisible6: false,
  3059. dialogVisible7: false,
  3060. dialogVisible8: false,
  3061. dialogVisible9: false,
  3062. dialogVisibleClass: false,
  3063. dialogVisibleMember: false,
  3064. dialogVisibleMp3: false,
  3065. dialogVisibleSelect: false,
  3066. dialogVisibleSentence: false,
  3067. dialogVisibleRate: false,
  3068. dialogVisibleChoice: false,
  3069. dialogVisiblemb: false,
  3070. dialogVisibleInvite: false,
  3071. dialogVisibleSource: false,
  3072. dialogVisibleVideo: false,
  3073. isClickColor: 0,
  3074. publicTool: 0,
  3075. searchPeople: "",
  3076. searchTN: "",
  3077. userid: this.$route.query.userid,
  3078. oid: this.$route.query.oid,
  3079. org: this.$route.query.org,
  3080. role: this.$route.query.role,
  3081. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3082. dialogVisibleTable: false,
  3083. dialogVisibleWord: false,
  3084. tableJson: { text: "" },
  3085. wordJson: { text: "" },
  3086. dialogVisibleMoreUpload: false,
  3087. dialogVisiblePreTime: false,
  3088. uploadJson: [],
  3089. classJuri: [],
  3090. cover: [], //课程封面
  3091. myWord: [],
  3092. evaJuri: [],
  3093. evalua: "",
  3094. targetArray: [],
  3095. eTitle: "",
  3096. eJson: {},
  3097. fid: "", //一级
  3098. sid: "", //二级
  3099. tid: "", //二级
  3100. typeMode: 1,
  3101. eJSONNum: 0,
  3102. data: {
  3103. meta: {
  3104. name: "example",
  3105. author: "dd@163.com",
  3106. version: "0.2",
  3107. },
  3108. format: "node_array",
  3109. data: [{ id: "root", isroot: true, topic: "" }],
  3110. },
  3111. askJson: {
  3112. askCount: 1,
  3113. askTitle: "",
  3114. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3115. },
  3116. testJson: {},
  3117. selectJson: {},
  3118. rateJson: [],
  3119. unitJson2: [],
  3120. unitJson: [
  3121. {
  3122. dyName: "", //单元标题
  3123. chapterInfo: [
  3124. {
  3125. isread: false,
  3126. chapterid: this.guid(),
  3127. title: "",
  3128. courseName: "",
  3129. taskJson: [
  3130. {
  3131. task: "",
  3132. taskDetail: "",
  3133. chapterData: [],
  3134. toolText: "",
  3135. toolChoose: [
  3136. {
  3137. tool: [],
  3138. toolDetail: "",
  3139. toolType: 1,
  3140. askCount: 1,
  3141. askTitle: "",
  3142. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3143. },
  3144. ],
  3145. isShowTools: false,
  3146. askCount: 1,
  3147. isFold: 0,
  3148. askTitle: "",
  3149. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3150. checkJson: [{ checkCount: [], checkPerent: [] }],
  3151. homeworkList: [],
  3152. },
  3153. ],
  3154. itemCount: 1,
  3155. fileList1: [],
  3156. video: [],
  3157. testData: [],
  3158. pData: [],
  3159. templateArray: [],
  3160. },
  3161. ],
  3162. },
  3163. ],
  3164. studentJuri: [],
  3165. teacherJuri: [],
  3166. checkboxList: [],
  3167. checkboxList2: [],
  3168. checkboxList3: [],
  3169. classSearch: "",
  3170. number: "",
  3171. tTitle: "",
  3172. tdetail: "",
  3173. templateC: {},
  3174. AttText: {},
  3175. AttTextType: 0,
  3176. AttTextIndex: 0,
  3177. cTemplate: "",
  3178. CourseType: [],
  3179. CourseType2: [],
  3180. CourseTypeJson: {},
  3181. courseTypeId: [],
  3182. courseTypeSon: [],
  3183. clearArray: [],
  3184. pTypeCheck: [],
  3185. pTypeCheckName: [],
  3186. loading: false,
  3187. toolType: 1,
  3188. inputShow: true,
  3189. inputShow2: true,
  3190. toolIndex: 0,
  3191. cidType: 0,
  3192. answerQ: "",
  3193. grade: [],
  3194. grade2: [],
  3195. courseUserid: "",
  3196. timer: null,
  3197. timer2: null,
  3198. checkId: "",
  3199. isDelete: 1,
  3200. addindex: 0,
  3201. selectSteps: 1,
  3202. groupJson: {},
  3203. dialogVisibleGroup: false,
  3204. rightBoxHeight: 0,
  3205. ManAarray: [],
  3206. checkBoolean: false,
  3207. inviteCode: [],
  3208. inviteId: "",
  3209. icode: "",
  3210. easyArray: [2, 4],
  3211. sourceData: {},
  3212. videoJson: {},
  3213. };
  3214. },
  3215. computed: {
  3216. // rightBoxHeight: function () {
  3217. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3218. // },
  3219. offsetLetfPx: function () {
  3220. //addnum可以直接在模板语法里面用,相当于data内的值
  3221. return (
  3222. $(".cru_select")[this.unitIndex] &&
  3223. $(".cru_select")[this.unitIndex].offsetLeft + 5
  3224. );
  3225. },
  3226. getMan2() {
  3227. return function (people) {
  3228. let _people = people;
  3229. let _people2 = "";
  3230. if (this.ManAarray.length) {
  3231. for (var i = 0; i < this.ManAarray.length; i++) {
  3232. if (this.ManAarray[i].userid == people) {
  3233. _people2 = this.ManAarray[i].name;
  3234. break;
  3235. }
  3236. }
  3237. }
  3238. if (people == this.courseUserid) {
  3239. return "";
  3240. }
  3241. return this.ManAarray.length ? _people2 : "";
  3242. };
  3243. },
  3244. isInvite() {
  3245. return function (cid) {
  3246. let array = [];
  3247. for (var i = 0; i < this.inviteCode.length; i++) {
  3248. array.push(this.inviteCode[i].cid);
  3249. }
  3250. return array.indexOf(cid) != -1;
  3251. };
  3252. },
  3253. getInviteCodeC() {
  3254. return function (cid) {
  3255. let array = [];
  3256. for (var i = 0; i < this.inviteCode.length; i++) {
  3257. array.push(this.inviteCode[i].cid);
  3258. }
  3259. return this.inviteCode[array.indexOf(cid)].ic;
  3260. };
  3261. },
  3262. getClassC() {
  3263. return function (c) {
  3264. let _c2 = "";
  3265. if (this.grade.length) {
  3266. for (var i = 0; i < this.grade.length; i++) {
  3267. if (this.grade[i].id == c) {
  3268. _c2 = this.grade[i].name;
  3269. break;
  3270. }
  3271. }
  3272. }
  3273. return this.grade.length ? _c2 : "";
  3274. };
  3275. },
  3276. },
  3277. watch: {
  3278. unitIndex(newValue, oldValue) {
  3279. if (this.isDelete == 2) {
  3280. this.isDelete = 1;
  3281. return;
  3282. }
  3283. if (this.cid != "") {
  3284. let _unitIndex = oldValue;
  3285. if (
  3286. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3287. JSON.stringify(this.unitJson[_unitIndex])
  3288. ) {
  3289. this.$refs.rightboxR.scrollTop = 0;
  3290. return;
  3291. }
  3292. let cPan = 1;
  3293. for (
  3294. var j = 0;
  3295. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3296. j++
  3297. ) {
  3298. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3299. j
  3300. ].proVisible = false;
  3301. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3302. j
  3303. ].proVisible2 = false;
  3304. if (
  3305. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3306. .length > 1
  3307. ) {
  3308. for (
  3309. var z = 0;
  3310. z <
  3311. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3312. .length;
  3313. z++
  3314. ) {
  3315. if (
  3316. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3317. .toolChoose[z].tool.length
  3318. ) {
  3319. this.$message.error("请把工具添加完整");
  3320. cPan = 2;
  3321. break;
  3322. }
  3323. }
  3324. }
  3325. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3326. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3327. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3328. (ele) => {
  3329. return ele.value != "";
  3330. }
  3331. );
  3332. }
  3333. }
  3334. if (cPan == 2) {
  3335. this.unitIndex = oldValue;
  3336. return;
  3337. }
  3338. for (var i = 0; i < this.unitJson.length; i++) {
  3339. if (this.addindex != i) {
  3340. delete this.unitJson[i].isUpdate;
  3341. }
  3342. }
  3343. this.$refs.rightboxR.scrollTop = 0;
  3344. this.addindex = -1;
  3345. let params = [
  3346. {
  3347. cid: this.cid,
  3348. chapters: JSON.stringify(this.unitJson),
  3349. uid: this.userid,
  3350. unitIndex: _unitIndex,
  3351. },
  3352. ];
  3353. this.ajax
  3354. .post(this.$store.state.api + "updateWorkNew4", params)
  3355. .then((res) => {
  3356. // this.$message({
  3357. // message: "修改成功",
  3358. // type: "success",
  3359. // });
  3360. // this.courseId = this.cid;
  3361. })
  3362. .catch((err) => {
  3363. this.$message.error("网络不佳");
  3364. console.error(err);
  3365. });
  3366. }
  3367. },
  3368. steps(newValue) {
  3369. if (newValue == 4) {
  3370. this.goTo(
  3371. "/course?userid=" +
  3372. this.userid +
  3373. "&oid=" +
  3374. this.oid +
  3375. "&org=" +
  3376. this.org +
  3377. "&role=" +
  3378. this.role
  3379. );
  3380. }
  3381. },
  3382. },
  3383. methods: {
  3384. setMan() {
  3385. // let teacherJuri = this.teacherJuri2;
  3386. this.ManAarray = [];
  3387. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3388. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  3389. _user.push(this.courseUserid || this.userid);
  3390. }
  3391. let params = {
  3392. uid: _user.join(","),
  3393. };
  3394. this.ajax
  3395. .get(this.$store.state.api + "getAllUserById", params)
  3396. .then((res) => {
  3397. let teacherJuri = res.data[0];
  3398. this.ManAarray = teacherJuri;
  3399. })
  3400. .catch((err) => {
  3401. console.error(err);
  3402. });
  3403. },
  3404. previewImg(url) {
  3405. this.$hevueImgPreview(url);
  3406. },
  3407. scrollChange() {
  3408. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3409. },
  3410. handleCheckAllChange(val) {
  3411. this.checkedCities = val ? cityOptions : [];
  3412. this.isIndeterminate = false;
  3413. },
  3414. handleCheckedCitiesChange(value) {
  3415. let checkedCount = value.length;
  3416. this.checkAll = checkedCount === this.cities.length;
  3417. this.isIndeterminate =
  3418. checkedCount > 0 && checkedCount < this.cities.length;
  3419. },
  3420. addHw(e) {
  3421. var el = e.currentTarget;
  3422. el.getElementsByTagName("input")[0].click();
  3423. },
  3424. change(val) {
  3425. console.log(val);
  3426. },
  3427. change2(val) {
  3428. console.log(val);
  3429. this.$forceUpdate();
  3430. },
  3431. handleClose(done) {
  3432. done();
  3433. },
  3434. imgChange2(i, j) {
  3435. var _tmp = this.testJson.testJson[i].checkList[j];
  3436. this.noneBtnImg = _tmp.length >= 1;
  3437. },
  3438. imgChange3(i) {
  3439. var _tmp = this.testJson.testJson[i];
  3440. this.noneBtnImg = _tmp.length >= 1;
  3441. },
  3442. imgChange1(file, fileList, type, itemTaskIndex) {
  3443. if (type == 1) {
  3444. var _tmp = this.cover;
  3445. } else if (
  3446. type == 2 ||
  3447. type == 3 ||
  3448. type == 6 ||
  3449. type == 7 ||
  3450. type == 8
  3451. ) {
  3452. var _tmp =
  3453. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3454. .chapterData;
  3455. } else if (type == 4) {
  3456. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3457. } else {
  3458. var _tmp =
  3459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3460. .homeworkList;
  3461. }
  3462. this.noneBtnImg = _tmp.length >= 1;
  3463. },
  3464. goTo(path) {
  3465. this.$router.push(path);
  3466. },
  3467. guid() {
  3468. var _num,
  3469. i,
  3470. _guid = "";
  3471. for (i = 0; i < 32; i++) {
  3472. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3473. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3474. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3475. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3476. _guid += "-";
  3477. }
  3478. }
  3479. return _guid;
  3480. },
  3481. lastSteps() {
  3482. if (this.steps == 4) {
  3483. this.goTo(
  3484. "/course?userid=" +
  3485. this.userid +
  3486. "&oid=" +
  3487. this.oid +
  3488. "&org=" +
  3489. this.org +
  3490. "&role=" +
  3491. this.role
  3492. );
  3493. } else {
  3494. if (this.cidType == 0) {
  3495. this.steps--;
  3496. if (this.steps == 1) {
  3497. setTimeout(() => {
  3498. this.checkEva(this.checkId);
  3499. }, 0);
  3500. }
  3501. } else {
  3502. if (this.steps == 3) {
  3503. this.steps = 1;
  3504. setTimeout(() => {
  3505. this.checkEva(this.checkId);
  3506. }, 0);
  3507. }
  3508. }
  3509. }
  3510. },
  3511. navSteps(s) {
  3512. if (this.courseName == "") {
  3513. this.$message.error("请将信息填写完整");
  3514. return;
  3515. }
  3516. if (this.cidType == 0) {
  3517. if (this.steps == 1) {
  3518. if (this.cid == "" || this.cid == undefined) {
  3519. this.addWork();
  3520. } else {
  3521. if (this.userid != this.courseUserid && this.role != "1") {
  3522. // this.updateWork2();
  3523. } else {
  3524. this.updateWork();
  3525. }
  3526. }
  3527. }
  3528. if (s == 1) {
  3529. this.steps = 1;
  3530. setTimeout(() => {
  3531. this.checkEva(this.checkId);
  3532. }, 0);
  3533. }
  3534. if (s == 2) {
  3535. this.steps = 2;
  3536. }
  3537. if (s == 3) {
  3538. this.cTemplate = this.templateC.content;
  3539. this.dialogVisible2 = false;
  3540. this.steps = 3;
  3541. setTimeout(() => {
  3542. this.checkEva(this.checkId);
  3543. }, 1000);
  3544. }
  3545. } else {
  3546. if (this.steps == 1) {
  3547. if (this.cid == "" || this.cid == undefined) {
  3548. this.addWork();
  3549. } else {
  3550. if (this.userid != this.courseUserid && this.role != "1") {
  3551. // this.updateWork2();
  3552. } else {
  3553. this.updateWork();
  3554. }
  3555. }
  3556. }
  3557. if (s == 1) {
  3558. this.steps = 1;
  3559. setTimeout(() => {
  3560. this.checkEva(this.checkId);
  3561. }, 0);
  3562. }
  3563. if (s == 3) {
  3564. this.cTemplate = this.templateC.content;
  3565. this.dialogVisible2 = false;
  3566. this.steps = 3;
  3567. setTimeout(() => {
  3568. this.checkEva(this.checkId);
  3569. }, 1000);
  3570. }
  3571. }
  3572. this.$refs.stepBox.scrollTop = 0;
  3573. },
  3574. nextSteps() {
  3575. if (this.cidType == 1) {
  3576. if (this.steps == 1) {
  3577. if (this.courseName != "") {
  3578. this.steps = 3;
  3579. setTimeout(() => {
  3580. this.checkEva(this.checkId);
  3581. }, 1000);
  3582. if (this.cid == "" || this.cid == undefined) {
  3583. this.addWork();
  3584. } else {
  3585. if (this.userid != this.courseUserid && this.role != "1") {
  3586. // this.updateWork2();
  3587. } else {
  3588. this.updateWork();
  3589. }
  3590. }
  3591. } else {
  3592. this.$message.error("请将信息填写完整");
  3593. return;
  3594. }
  3595. } else if (this.steps == 3) {
  3596. if (this.cid == "" || this.cid == undefined) {
  3597. if (this.courseName == "") {
  3598. this.$message.error("请将信息填写完整");
  3599. return;
  3600. } else {
  3601. this.addWork();
  3602. this.steps++;
  3603. }
  3604. } else {
  3605. if (this.courseName == "") {
  3606. this.$message.error("请将信息填写完整");
  3607. return;
  3608. } else {
  3609. if (this.userid != this.courseUserid && this.role != "1") {
  3610. this.updateWork2();
  3611. } else {
  3612. this.updateWork();
  3613. }
  3614. this.steps++;
  3615. }
  3616. }
  3617. }
  3618. } else {
  3619. if (this.steps == 1) {
  3620. if (this.courseName != "") {
  3621. if (this.cid == "" || this.cid == undefined) {
  3622. this.addWork();
  3623. } else {
  3624. if (this.userid != this.courseUserid && this.role != "1") {
  3625. // this.updateWork2();
  3626. } else {
  3627. this.updateWork();
  3628. }
  3629. }
  3630. this.steps++;
  3631. } else {
  3632. this.$message.error("请将信息填写完整");
  3633. return;
  3634. }
  3635. } else if (this.steps == 2) {
  3636. if (this.templateC.id != "" || this.templateC.id != undefined) {
  3637. this.cTemplate = this.templateC.content;
  3638. }
  3639. this.dialogVisible2 = false;
  3640. this.steps++;
  3641. setTimeout(() => {
  3642. this.checkEva(this.checkId);
  3643. }, 1000);
  3644. } else if (this.steps == 3) {
  3645. if (this.cid == "" || this.cid == undefined) {
  3646. if (this.courseName == "") {
  3647. this.$message.error("请将信息填写完整");
  3648. return;
  3649. } else {
  3650. this.addWork();
  3651. this.steps++;
  3652. }
  3653. } else {
  3654. if (this.courseName == "") {
  3655. this.$message.error("请将信息填写完整");
  3656. return;
  3657. } else {
  3658. if (this.userid != this.courseUserid && this.role != "1") {
  3659. this.updateWork2();
  3660. } else {
  3661. this.updateWork();
  3662. }
  3663. this.steps++;
  3664. }
  3665. }
  3666. }
  3667. }
  3668. this.$refs.stepBox.scrollTop = 0;
  3669. },
  3670. unitSet(i) {
  3671. this.unitIndex = i;
  3672. // this.$refs.rightboxR.scrollTop = 0;
  3673. },
  3674. time() {
  3675. if (!this.now) {
  3676. this.now = new Date().getTime();
  3677. return true;
  3678. } else {
  3679. let time = new Date().getTime();
  3680. if (time - this.now > 3000) {
  3681. this.now = time;
  3682. return true;
  3683. } else {
  3684. return false;
  3685. }
  3686. }
  3687. },
  3688. deleteUnit(i) {
  3689. var _this = this;
  3690. if (_this.time()) {
  3691. _this
  3692. .$confirm("确定删除此单元吗?", "提示", {
  3693. confirmButtonText: "确定",
  3694. cancelButtonText: "取消",
  3695. type: "warning",
  3696. })
  3697. .then(() => {
  3698. _this.isDelete = 2;
  3699. // _this.unitIndex = _this.unitIndex - 1;
  3700. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3701. // _this.$message.success("删除成功");
  3702. })
  3703. .catch(() => {
  3704. return;
  3705. });
  3706. }
  3707. },
  3708. deleteWork(chapid) {
  3709. let params = [
  3710. {
  3711. cid: this.cid,
  3712. chapters: JSON.stringify(this.unitJson),
  3713. uid: this.userid,
  3714. chapid: chapid,
  3715. },
  3716. ];
  3717. this.ajax
  3718. .post(this.$store.state.api + "deleteWork", params)
  3719. .then((res) => {
  3720. this.$message({
  3721. message: "删除成功",
  3722. type: "success",
  3723. });
  3724. this.unitJson.splice(this.unitIndex, 1);
  3725. this.unitIndex = this.unitIndex - 1;
  3726. })
  3727. .catch((err) => {
  3728. this.$message.error("网络不佳");
  3729. console.error(err);
  3730. });
  3731. },
  3732. deleteTool(itemTaskIndex, i) {
  3733. var _this = this;
  3734. if (_this.time()) {
  3735. _this
  3736. .$confirm("确定删除此工具吗?", "提示", {
  3737. confirmButtonText: "确定",
  3738. cancelButtonText: "取消",
  3739. type: "warning",
  3740. })
  3741. .then(() => {
  3742. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3743. itemTaskIndex
  3744. ].toolChoose.splice(i, 1);
  3745. _this.$message.success("删除成功");
  3746. })
  3747. .catch(() => {
  3748. return;
  3749. });
  3750. }
  3751. },
  3752. deleteSentence(i) {
  3753. var _this = this;
  3754. if (_this.time()) {
  3755. _this
  3756. .$confirm("确定删除此题目吗?", "提示", {
  3757. confirmButtonText: "确定",
  3758. cancelButtonText: "取消",
  3759. type: "warning",
  3760. })
  3761. .then(() => {
  3762. _this.sentenceList.splice(i, 1);
  3763. _this.$message.success("删除成功");
  3764. })
  3765. .catch(() => {
  3766. return;
  3767. });
  3768. }
  3769. },
  3770. deleteS(s, i, j) {
  3771. this.sentenceList[i].addSentence.splice(j, 1);
  3772. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3773. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3774. this.sentenceList[i].rightAnswer.splice(a, 1);
  3775. }
  3776. },
  3777. openT() {
  3778. window.parent.postMessage({ tools: "25" }, "*");
  3779. },
  3780. deleteTask(i) {
  3781. var _this = this;
  3782. if (_this.time()) {
  3783. _this
  3784. .$confirm(
  3785. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  3786. 1 ==
  3787. i
  3788. ? "确定删除此任务吗?"
  3789. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  3790. "提示",
  3791. {
  3792. confirmButtonText: "确定",
  3793. cancelButtonText: "取消",
  3794. type: "warning",
  3795. }
  3796. )
  3797. .then(() => {
  3798. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3799. i,
  3800. 1
  3801. );
  3802. _this.$message.success("删除成功");
  3803. })
  3804. .catch(() => {
  3805. return;
  3806. });
  3807. }
  3808. },
  3809. handlePictureCardPreview(file) {
  3810. this.dialogImageUrl = file.url;
  3811. },
  3812. clean(i, c) {
  3813. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3814. },
  3815. handle_remove1(file, fileList, type) {
  3816. var _tmp = this.cover;
  3817. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3818. // if (_tmp[i].uid == file.uid) {
  3819. // _tmp.splice(i, 1);
  3820. // break;
  3821. // }
  3822. // this.cover = _tmp;
  3823. // }
  3824. this.cover = [];
  3825. this.noneBtnImg = this.cover.length >= 1;
  3826. this.isSysPic = false;
  3827. this.$forceUpdate();
  3828. },
  3829. addImg(e) {
  3830. var el = e.currentTarget;
  3831. el.getElementsByTagName("input")[0].click();
  3832. e.target.value = "";
  3833. },
  3834. addChaptersTools(i) {
  3835. this.chapTools = [
  3836. {
  3837. tools: [],
  3838. toolDetail: "",
  3839. },
  3840. ];
  3841. this.chapCount = i;
  3842. this.dialogVisible4 = true;
  3843. },
  3844. isNoFinsh() {
  3845. this.$message.warning("功能正在开发中");
  3846. },
  3847. addAttText(i) {
  3848. this.AttText = {
  3849. title: "",
  3850. text: "",
  3851. };
  3852. this.taskCount = i;
  3853. this.AttTextType = 0;
  3854. this.$forceUpdate();
  3855. this.dialogVisible6 = true;
  3856. },
  3857. openLine(i) {
  3858. this.line = "";
  3859. this.lineCount = i;
  3860. this.lineType = 0;
  3861. this.$forceUpdate();
  3862. this.dialogVisible7 = true;
  3863. },
  3864. pasteLine(i) {
  3865. navigator.clipboard
  3866. .readText()
  3867. .then((v) => {
  3868. console.log("获取剪贴板成功:", v);
  3869. const html = v;
  3870. const regex = /src="(.*?)"/g;
  3871. const match = regex.exec(html);
  3872. if (match && match[1]) {
  3873. console.log(match[1]);
  3874. this.$message.success("粘贴成功");
  3875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3876. i
  3877. ].chapterData.push({
  3878. name: "链接",
  3879. title: "嵌入代码",
  3880. url: match[1],
  3881. type: 8,
  3882. });
  3883. } else {
  3884. // console.log("未找到包含 src 属性的 iframe");
  3885. this.$message.error("没有找到粘贴的链接");
  3886. }
  3887. })
  3888. .catch((v) => {
  3889. console.log("获取剪贴板失败: ", v);
  3890. });
  3891. },
  3892. openSource(i) {
  3893. this.lineCount = i;
  3894. this.sourceData = {};
  3895. this.dialogVisibleSource = true;
  3896. },
  3897. addSource() {
  3898. if (!Object.keys(this.sourceData).length) {
  3899. this.$message.error("请选择要上传的资源");
  3900. return;
  3901. }
  3902. let keys = Object.keys(this.sourceData);
  3903. for (var i = 0; i < keys.length; i++) {
  3904. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3905. this.lineCount
  3906. ].chapterData.push({
  3907. name: "链接",
  3908. title: this.sourceData[keys[i]].name,
  3909. url: this.sourceData[keys[i]].url,
  3910. type: 8,
  3911. });
  3912. }
  3913. this.$forceUpdate();
  3914. this.dialogVisibleSource = false;
  3915. },
  3916. deleteM(i, j) {
  3917. this.testJson.testJson[i].timuList.splice(j, 1);
  3918. },
  3919. beforeUploadTiMu(event, i) {
  3920. const loading = this.openLoading();
  3921. var file = event.target.files[0];
  3922. var credentials = {
  3923. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3924. secretAccessKey: "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",
  3925. }; //秘钥形式的登录上传
  3926. window.AWS.config.update(credentials);
  3927. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3928. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3929. var _this = this;
  3930. if (file) {
  3931. var params = {
  3932. Key:
  3933. file.name.split(".")[0] +
  3934. new Date().getTime() +
  3935. "." +
  3936. file.name.split(".")[file.name.split(".").length - 1],
  3937. ContentType: file.type,
  3938. Body: file,
  3939. "Access-Control-Allow-Credentials": "*",
  3940. ACL: "public-read",
  3941. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3942. var options = {
  3943. partSize: 2048 * 1024 * 1024,
  3944. queueSize: 2,
  3945. leavePartsOnError: true,
  3946. };
  3947. bucket
  3948. .upload(params, options)
  3949. .on("httpUploadProgress", function (evt) {
  3950. //这里可以写进度条
  3951. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3952. })
  3953. .send(function (err, data) {
  3954. loading.close();
  3955. if (err) {
  3956. _this.$message.error("上传失败");
  3957. } else {
  3958. if (_this.testJson.testJson[i].timuList) {
  3959. _this.testJson.testJson[i].timuList.push({
  3960. src: data.Location,
  3961. });
  3962. } else {
  3963. _this.testJson.testJson[i].timuList = [];
  3964. _this.testJson.testJson[i].timuList.push({
  3965. src: data.Location,
  3966. });
  3967. }
  3968. _this.imgChange3(i);
  3969. _this.$forceUpdate();
  3970. }
  3971. });
  3972. }
  3973. },
  3974. beforeUploadTi(event, i, j) {
  3975. const loading = this.openLoading();
  3976. var file = event.target.files[0];
  3977. var credentials = {
  3978. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3979. secretAccessKey: "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",
  3980. }; //秘钥形式的登录上传
  3981. window.AWS.config.update(credentials);
  3982. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3983. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3984. var _this = this;
  3985. if (file) {
  3986. var params = {
  3987. Key:
  3988. file.name.split(".")[0] +
  3989. new Date().getTime() +
  3990. "." +
  3991. file.name.split(".")[file.name.split(".").length - 1],
  3992. ContentType: file.type,
  3993. Body: file,
  3994. "Access-Control-Allow-Credentials": "*",
  3995. ACL: "public-read",
  3996. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3997. var options = {
  3998. partSize: 2048 * 1024 * 1024,
  3999. queueSize: 2,
  4000. leavePartsOnError: true,
  4001. };
  4002. bucket
  4003. .upload(params, options)
  4004. .on("httpUploadProgress", function (evt) {
  4005. //这里可以写进度条
  4006. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4007. })
  4008. .send(function (err, data) {
  4009. loading.close();
  4010. if (err) {
  4011. _this.$message.error("上传失败");
  4012. } else {
  4013. _this.testJson.testJson[i].checkList[j] = {};
  4014. _this.testJson.testJson[i].checkList[j].src = data.Location;
  4015. _this.testJson.testJson[i].checkList[j].imgType = 1;
  4016. _this.imgChange2(i, j);
  4017. _this.$forceUpdate();
  4018. }
  4019. });
  4020. }
  4021. },
  4022. beforeUpload1(event, type) {
  4023. // const loading = this.openLoading();
  4024. var file = event.target.files[0];
  4025. var credentials = {
  4026. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4027. secretAccessKey: "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",
  4028. }; //秘钥形式的登录上传
  4029. window.AWS.config.update(credentials);
  4030. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4031. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4032. var _this = this;
  4033. if (file) {
  4034. var params = {
  4035. Key:
  4036. file.name.split(".")[0] +
  4037. new Date().getTime() +
  4038. "." +
  4039. file.name.split(".")[file.name.split(".").length - 1],
  4040. ContentType: file.type,
  4041. Body: file,
  4042. "Access-Control-Allow-Credentials": "*",
  4043. ACL: "public-read",
  4044. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4045. var options = {
  4046. partSize: 2048 * 1024 * 1024,
  4047. queueSize: 2,
  4048. leavePartsOnError: true,
  4049. };
  4050. bucket
  4051. .upload(params, options)
  4052. .on("httpUploadProgress", function (evt) {
  4053. //这里可以写进度条
  4054. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4055. })
  4056. .send(function (err, data) {
  4057. // loading.close();
  4058. if (err) {
  4059. // var a = _this.$refs.upload1.uploadFiles;
  4060. // a.splice(a.length - 1, a.length);
  4061. _this.$message.error("上传失败");
  4062. } else {
  4063. _this.cover.push({
  4064. name: file.name,
  4065. url: data.Location,
  4066. uid: file.uid,
  4067. });
  4068. _this.imgChange1(null, null, 1, null);
  4069. _this.choosePicVisible = false;
  4070. console.log(data.Location);
  4071. }
  4072. });
  4073. }
  4074. },
  4075. beforeUploadSelect(event, type) {
  4076. // const loading = this.openLoading();
  4077. var file = event.target.files[0];
  4078. var credentials = {
  4079. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4080. secretAccessKey: "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",
  4081. }; //秘钥形式的登录上传
  4082. window.AWS.config.update(credentials);
  4083. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4084. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4085. var _this = this;
  4086. if (file) {
  4087. var params = {
  4088. Key:
  4089. file.name.split(".")[0] +
  4090. new Date().getTime() +
  4091. "." +
  4092. file.name.split(".")[file.name.split(".").length - 1],
  4093. ContentType: file.type,
  4094. Body: file,
  4095. "Access-Control-Allow-Credentials": "*",
  4096. ACL: "public-read",
  4097. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4098. var options = {
  4099. partSize: 2048 * 1024 * 1024,
  4100. queueSize: 2,
  4101. leavePartsOnError: true,
  4102. };
  4103. bucket
  4104. .upload(params, options)
  4105. .on("httpUploadProgress", function (evt) {
  4106. //这里可以写进度条
  4107. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4108. })
  4109. .send(function (err, data) {
  4110. // loading.close();
  4111. if (err) {
  4112. _this.$message.error("上传失败");
  4113. } else {
  4114. _this.selectJson.url = data.Location;
  4115. console.log(data.Location);
  4116. }
  4117. });
  4118. }
  4119. },
  4120. chooseSysPic(p) {
  4121. this.cover.push({
  4122. name: "系统图片.png",
  4123. url: p,
  4124. });
  4125. this.imgChange1(null, null, 1, null);
  4126. this.isSysPic = true;
  4127. this.sysPicVisible = false;
  4128. },
  4129. beforeUpload(data) {
  4130. this.$refs.upload1.uploadFiles;
  4131. this.uploadLoading1 = true;
  4132. var file = data.file;
  4133. var credentials = {
  4134. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4135. secretAccessKey: "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",
  4136. }; //秘钥形式的登录上传
  4137. window.AWS.config.update(credentials);
  4138. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4139. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4140. var _this = this;
  4141. if (file) {
  4142. var params = {
  4143. Key:
  4144. file.name.split(".")[0] +
  4145. new Date().getTime() +
  4146. "." +
  4147. file.name.split(".")[file.name.split(".").length - 1],
  4148. ContentType: file.type,
  4149. Body: file,
  4150. "Access-Control-Allow-Credentials": "*",
  4151. ACL: "public-read",
  4152. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4153. var options = {
  4154. partSize: 2048 * 1024 * 1024,
  4155. queueSize: 2,
  4156. leavePartsOnError: true,
  4157. };
  4158. bucket
  4159. .upload(params, options)
  4160. .on("httpUploadProgress", function (evt) {
  4161. //这里可以写进度条
  4162. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4163. })
  4164. .send(function (err, data) {
  4165. _this.uploadLoading1 = false;
  4166. if (err) {
  4167. // var a = _this.$refs.upload1.uploadFiles;
  4168. // a.splice(a.length - 1, a.length);
  4169. _this.$message.error("上传失败");
  4170. } else {
  4171. //上传成功处理
  4172. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4173. name: file.name,
  4174. url: data.Location,
  4175. uid: file.uid,
  4176. });
  4177. _this.imgChange();
  4178. console.log(data.Location);
  4179. }
  4180. });
  4181. }
  4182. },
  4183. onExceed() {
  4184. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4185. },
  4186. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4187. // const loading = this.openLoading();
  4188. var file = event.target.files[0];
  4189. var credentials = {
  4190. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4191. secretAccessKey: "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",
  4192. }; //秘钥形式的登录上传
  4193. window.AWS.config.update(credentials);
  4194. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4195. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4196. var _this = this;
  4197. if (type == 3) {
  4198. var b = [
  4199. "DOC",
  4200. "DOCX",
  4201. "DOCM",
  4202. "DOTM",
  4203. "DOTX",
  4204. "PPTX",
  4205. "PPSX",
  4206. "PPT",
  4207. "PPS",
  4208. "PPTM",
  4209. "POTM",
  4210. "PPAM",
  4211. "POTX",
  4212. "PPSM",
  4213. ];
  4214. if (
  4215. b.indexOf(
  4216. file.name
  4217. .split(".")
  4218. [file.name.split(".").length - 1].toLocaleUpperCase()
  4219. ) != -1
  4220. ) {
  4221. if (file.size / 1024 / 1024 > 80) {
  4222. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4223. this.inputShow = true;
  4224. // var a = _this.$refs.upload1.uploadFiles;
  4225. // a.splice(a.length - 1, a.length);
  4226. // loading.close();
  4227. return;
  4228. }
  4229. } else if (
  4230. file.name
  4231. .split(".")
  4232. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4233. ) {
  4234. if (file.size / 1024 / 1024 > 80) {
  4235. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4236. this.inputShow = true;
  4237. // var a = _this.$refs.upload1.uploadFiles;
  4238. // a.splice(a.length - 1, a.length);
  4239. // loading.close();
  4240. return;
  4241. }
  4242. }
  4243. }
  4244. this.inputShow = false;
  4245. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4246. itemTaskIndex
  4247. ].progress = 0;
  4248. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4249. itemTaskIndex
  4250. ].proVisible = true;
  4251. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4252. itemTaskIndex
  4253. ].isFinishSize = 0;
  4254. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4255. itemTaskIndex
  4256. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4257. _this.$forceUpdate();
  4258. if (file) {
  4259. var params = {
  4260. Key:
  4261. file.name.split(".")[0] +
  4262. new Date().getTime() +
  4263. "." +
  4264. file.name.split(".")[file.name.split(".").length - 1],
  4265. ContentType: file.type,
  4266. Body: file,
  4267. "Access-Control-Allow-Credentials": "*",
  4268. ACL: "public-read",
  4269. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4270. var options = {
  4271. partSize: 2048 * 1024 * 1024,
  4272. queueSize: 2,
  4273. leavePartsOnError: true,
  4274. };
  4275. bucket
  4276. .upload(params, options)
  4277. .on("httpUploadProgress", function (evt) {
  4278. //这里可以写进度条
  4279. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4280. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4281. itemTaskIndex
  4282. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4283. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4284. itemTaskIndex
  4285. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4286. _this.$forceUpdate();
  4287. })
  4288. .send(function (err, data) {
  4289. // loading.close();
  4290. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4291. itemTaskIndex
  4292. ].progress = 100;
  4293. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4294. itemTaskIndex
  4295. ].isFinishSize =
  4296. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4297. itemTaskIndex
  4298. ].isAllSize;
  4299. _this.$forceUpdate();
  4300. setTimeout(() => {
  4301. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4302. itemTaskIndex
  4303. ].proVisible = false;
  4304. _this.$forceUpdate();
  4305. }, 1000);
  4306. _this.inputShow = true;
  4307. if (err) {
  4308. // var a = _this.$refs.upload1.uploadFiles;
  4309. // a.splice(a.length - 1, a.length);
  4310. _this.$message.error("上传失败");
  4311. } else {
  4312. if (type == 13) {
  4313. let _type = 2;
  4314. var imgA = [
  4315. "png",
  4316. "jpg",
  4317. "jpeg",
  4318. "bmp",
  4319. "gif",
  4320. "webp",
  4321. "psd",
  4322. "svg",
  4323. "tiff",
  4324. ];
  4325. var fileA = [
  4326. "PDF",
  4327. "DOC",
  4328. "DOCX",
  4329. "DOCM",
  4330. "DOTM",
  4331. "DOTX",
  4332. "PPTX",
  4333. "PPSX",
  4334. "PPT",
  4335. "PPS",
  4336. "PPTM",
  4337. "POTM",
  4338. "PPAM",
  4339. "POTX",
  4340. "PPSM",
  4341. "XLSX",
  4342. "XLS",
  4343. ];
  4344. var videoA = [
  4345. "AVI",
  4346. "NAVI",
  4347. "MPEG",
  4348. "ASF",
  4349. "MOV",
  4350. "WMV",
  4351. "3GP",
  4352. "RM",
  4353. "RMVB",
  4354. "FLV",
  4355. "F4V",
  4356. "H.264",
  4357. "H.265",
  4358. "REAL VIDEO",
  4359. "MKV",
  4360. "WebM",
  4361. "HDDVD",
  4362. "MP4",
  4363. "MPG",
  4364. "M4V",
  4365. "MGV",
  4366. "OGV",
  4367. "QTM",
  4368. "STR",
  4369. "AMC",
  4370. "DVX",
  4371. "EVO",
  4372. "DAT",
  4373. "OGG",
  4374. "OGM",
  4375. ];
  4376. if (
  4377. fileA.indexOf(
  4378. data.Location.split(".")[
  4379. data.Location.split(".").length - 1
  4380. ].toLocaleUpperCase()
  4381. ) != -1
  4382. ) {
  4383. _type = 3;
  4384. } else if (
  4385. videoA.indexOf(
  4386. data.Location.split(".")[
  4387. data.Location.split(".").length - 1
  4388. ].toLocaleUpperCase()
  4389. ) != -1
  4390. ) {
  4391. _type = 2;
  4392. } else if (
  4393. imgA.indexOf(
  4394. data.Location.split(".")[
  4395. data.Location.split(".").length - 1
  4396. ].toLocaleLowerCase()
  4397. ) != -1
  4398. ) {
  4399. _type = 13;
  4400. } else {
  4401. _type = 12;
  4402. }
  4403. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4404. itemTaskIndex
  4405. ].chapterData.push({
  4406. name: file.name,
  4407. url: data.Location,
  4408. uid: file.uid,
  4409. type: _type,
  4410. });
  4411. _this.imgChange1(null, null, _type, itemTaskIndex);
  4412. } else if (type == 2 || type == 3 || type == 12) {
  4413. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4414. itemTaskIndex
  4415. ].chapterData.push({
  4416. name: file.name,
  4417. url: data.Location,
  4418. uid: file.uid,
  4419. type: type,
  4420. });
  4421. _this.imgChange1(null, null, type, itemTaskIndex);
  4422. } else if (type == 4) {
  4423. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4424. itemTaskIndex
  4425. ].fileList1.push({
  4426. name: file.name,
  4427. url: data.Location,
  4428. uid: file.uid,
  4429. });
  4430. _this.imgChange1(null, null, type, itemTaskIndex);
  4431. } else if (type == 5) {
  4432. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4433. itemTaskIndex
  4434. ].homeworkList.push({
  4435. name: file.name,
  4436. url: data.Location,
  4437. uid: file.uid,
  4438. });
  4439. _this.imgChange1(null, null, type, itemTaskIndex);
  4440. }
  4441. console.log(data.Location);
  4442. }
  4443. });
  4444. }
  4445. },
  4446. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4447. // const loading = this.openLoading();
  4448. var file = event.target.files[0];
  4449. var credentials = {
  4450. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4451. secretAccessKey: "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",
  4452. }; //秘钥形式的登录上传
  4453. window.AWS.config.update(credentials);
  4454. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4455. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4456. var _this = this;
  4457. if (type == 3) {
  4458. var b = [
  4459. "DOC",
  4460. "DOCX",
  4461. "DOCM",
  4462. "DOTM",
  4463. "DOTX",
  4464. "PPTX",
  4465. "PPSX",
  4466. "PPT",
  4467. "PPS",
  4468. "PPTM",
  4469. "POTM",
  4470. "PPAM",
  4471. "POTX",
  4472. "PPSM",
  4473. ];
  4474. if (
  4475. b.indexOf(
  4476. file.name
  4477. .split(".")
  4478. [file.name.split(".").length - 1].toLocaleUpperCase()
  4479. ) != -1
  4480. ) {
  4481. if (file.size / 1024 / 1024 > 80) {
  4482. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4483. this.inputShow = true;
  4484. // var a = _this.$refs.upload1.uploadFiles;
  4485. // a.splice(a.length - 1, a.length);
  4486. // loading.close();
  4487. return;
  4488. }
  4489. } else if (
  4490. file.name
  4491. .split(".")
  4492. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4493. ) {
  4494. if (file.size / 1024 / 1024 > 80) {
  4495. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4496. this.inputShow = true;
  4497. // var a = _this.$refs.upload1.uploadFiles;
  4498. // a.splice(a.length - 1, a.length);
  4499. // loading.close();
  4500. return;
  4501. }
  4502. }
  4503. }
  4504. this.inputShow = false;
  4505. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4506. itemTaskIndex
  4507. ].progress = 0;
  4508. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4509. itemTaskIndex
  4510. ].proVisible = true;
  4511. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4512. itemTaskIndex
  4513. ].isFinishSize = 0;
  4514. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4515. itemTaskIndex
  4516. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4517. _this.$forceUpdate();
  4518. if (file) {
  4519. var params = {
  4520. Key:
  4521. file.name.split(".")[0] +
  4522. new Date().getTime() +
  4523. "." +
  4524. file.name.split(".")[file.name.split(".").length - 1],
  4525. ContentType: file.type,
  4526. Body: file,
  4527. "Access-Control-Allow-Credentials": "*",
  4528. ACL: "public-read",
  4529. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4530. var options = {
  4531. partSize: 2048 * 1024 * 1024,
  4532. queueSize: 2,
  4533. leavePartsOnError: true,
  4534. };
  4535. bucket
  4536. .upload(params, options)
  4537. .on("httpUploadProgress", function (evt) {
  4538. //这里可以写进度条
  4539. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4540. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4541. itemTaskIndex
  4542. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4543. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4544. itemTaskIndex
  4545. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4546. _this.$forceUpdate();
  4547. })
  4548. .send(function (err, data) {
  4549. // loading.close();
  4550. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4551. itemTaskIndex
  4552. ].progress = 100;
  4553. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4554. itemTaskIndex
  4555. ].isFinishSize =
  4556. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4557. itemTaskIndex
  4558. ].isAllSize;
  4559. _this.$forceUpdate();
  4560. setTimeout(() => {
  4561. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4562. itemTaskIndex
  4563. ].proVisible = false;
  4564. _this.$forceUpdate();
  4565. }, 1000);
  4566. _this.inputShow = true;
  4567. if (err) {
  4568. // var a = _this.$refs.upload1.uploadFiles;
  4569. // a.splice(a.length - 1, a.length);
  4570. _this.$message.error("上传失败");
  4571. } else {
  4572. if (type == 2 || type == 3) {
  4573. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4574. itemTaskIndex
  4575. ].chapterData.push({
  4576. name: file.name,
  4577. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4578. // itemTaskIndex
  4579. // ].chapterData.length+1),
  4580. url: data.Location,
  4581. uid: file.uid,
  4582. type: type,
  4583. text: string,
  4584. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4585. // itemTaskIndex
  4586. // ].chapterData.length + 1),
  4587. });
  4588. _this.imgChange1(null, null, type, itemTaskIndex);
  4589. } else if (type == 4) {
  4590. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4591. itemTaskIndex
  4592. ].fileList1.push({
  4593. name: file.name,
  4594. url: data.Location,
  4595. uid: file.uid,
  4596. });
  4597. _this.imgChange1(null, null, type, itemTaskIndex);
  4598. } else if (type == 5) {
  4599. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4600. itemTaskIndex
  4601. ].homeworkList.push({
  4602. name: file.name,
  4603. url: data.Location,
  4604. uid: file.uid,
  4605. });
  4606. _this.imgChange1(null, null, type, itemTaskIndex);
  4607. }
  4608. console.log(data.Location);
  4609. }
  4610. });
  4611. }
  4612. },
  4613. addunit() {
  4614. this.unitJson.push({
  4615. dyName: "", //单元标题
  4616. isUpdate: 1,
  4617. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4618. chapterInfo: [
  4619. {
  4620. isread: false,
  4621. chapterid: this.guid(),
  4622. title: "",
  4623. courseName: "",
  4624. taskJson: [
  4625. {
  4626. task: "",
  4627. taskDetail: "",
  4628. chapterData: [],
  4629. toolText: "",
  4630. toolChoose: [
  4631. {
  4632. tool: [],
  4633. toolDetail: "",
  4634. toolType: 1,
  4635. askCount: 1,
  4636. askTitle: "",
  4637. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4638. },
  4639. ],
  4640. isShowTools: false,
  4641. askCount: 1,
  4642. isFold: 0,
  4643. askTitle: "",
  4644. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4645. checkJson: [{ checkCount: [], checkPerent: [] }],
  4646. homeworkList: [],
  4647. },
  4648. ],
  4649. itemCount: 1,
  4650. fileList1: [],
  4651. video: [],
  4652. testData: [],
  4653. pData: [],
  4654. templateArray: [],
  4655. },
  4656. ],
  4657. });
  4658. this.addindex = this.unitJson.length - 1;
  4659. setTimeout(() => {
  4660. this.unitIndex = this.unitJson.length - 1;
  4661. this.unitSet(this.unitIndex);
  4662. }, 0);
  4663. },
  4664. addToolFun(itemTaskIndex) {
  4665. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4666. itemTaskIndex
  4667. ].toolChoose.push({
  4668. tool: [],
  4669. toolDetail: "",
  4670. toolType: 1,
  4671. askCount: 1,
  4672. askTitle: "",
  4673. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4674. });
  4675. },
  4676. addTaskBorder() {
  4677. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4678. task: "",
  4679. taskDetail: "",
  4680. chapterData: [],
  4681. toolText: "",
  4682. toolChoose: [
  4683. {
  4684. tool: [],
  4685. toolDetail: "",
  4686. toolType: 1,
  4687. askCount: 1,
  4688. askTitle: "",
  4689. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4690. },
  4691. ],
  4692. isShowTools: false,
  4693. askCount: 1,
  4694. isFold: 0,
  4695. askTitle: "",
  4696. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4697. checkJson: [{ checkCount: [], checkPerent: [] }],
  4698. homeworkList: [],
  4699. });
  4700. },
  4701. add(e, i) {
  4702. var el = e.currentTarget;
  4703. el.getElementsByTagName("input")[0].click();
  4704. },
  4705. fold(i, e) {
  4706. var a = e.currentTarget.parentElement.parentElement;
  4707. var b = e.currentTarget.parentElement;
  4708. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  4709. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4710. a.className += " smallTaskBorder";
  4711. b.className += " funBlockTop";
  4712. } else {
  4713. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4714. a.className = "taskBorder";
  4715. b.className = "funBlock";
  4716. }
  4717. console.log(e);
  4718. },
  4719. deleteHomeworkBox(unitIndex, index, i) {
  4720. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4721. this.taskCount
  4722. ].homeworkList.splice(i, 1);
  4723. },
  4724. getStudent() {
  4725. let params = {
  4726. oid: this.oid,
  4727. cu: "",
  4728. cn: this.searchPeople,
  4729. };
  4730. this.ajax
  4731. .get(this.$store.state.api + "selectStudentAdd", params)
  4732. .then((res) => {
  4733. this.studentJuri = res.data[0];
  4734. })
  4735. .catch((err) => {
  4736. this.isLoading = false;
  4737. console.error(err);
  4738. });
  4739. },
  4740. getTeacher() {
  4741. let params = {
  4742. oid:
  4743. this.org && this.org != "undefined" && this.org != "null"
  4744. ? this.org
  4745. : this.oid,
  4746. cu: "",
  4747. cn: this.searchTN,
  4748. };
  4749. this.ajax
  4750. .get(
  4751. this.$store.state.api +
  4752. (this.org && this.org != "undefined" && this.org != "null"
  4753. ? "selectTeacherAddOrg"
  4754. : "selectTeacherAdd"),
  4755. params
  4756. )
  4757. .then((res) => {
  4758. let teacherJuri = res.data[0];
  4759. for (var i = 0; i < teacherJuri.length; i++) {
  4760. if (teacherJuri[i].userid == this.userid) {
  4761. teacherJuri.splice(i, 1);
  4762. break;
  4763. }
  4764. }
  4765. this.teacherJuri = teacherJuri;
  4766. })
  4767. .catch((err) => {
  4768. console.error(err);
  4769. });
  4770. },
  4771. searchStudent() {
  4772. this.getStudent();
  4773. },
  4774. //获取班级列表
  4775. getClass() {
  4776. let params = {
  4777. oid: this.oid,
  4778. cn: this.classSearch,
  4779. };
  4780. this.ajax
  4781. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  4782. .then((res) => {
  4783. if (!this.grade.length) {
  4784. this.grade = res.data[0];
  4785. }
  4786. this.grade2 = res.data[0];
  4787. this.classJuri = res.data[0];
  4788. })
  4789. .catch((err) => {
  4790. this.isLoading = false;
  4791. console.error(err);
  4792. });
  4793. },
  4794. CourseType2Change(val) {
  4795. this.pTypeCheck = [];
  4796. for (var i = 0; i < this.CourseType2.length; i++) {
  4797. let typeA = this.CourseType2[i];
  4798. if (val.indexOf(typeA.name) != -1) {
  4799. this.pTypeCheck.push(...typeA.id);
  4800. }
  4801. }
  4802. },
  4803. getChapterData(e, i, j, ic, type) {
  4804. e.stopPropagation();
  4805. this.updataC = true;
  4806. this.icc = ic;
  4807. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4808. console.log("还不能下载图片喔");
  4809. }
  4810. },
  4811. deleteChapterData(e, i, j, ic, taskI) {
  4812. e.stopPropagation();
  4813. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4814. },
  4815. updataVideoT(e, i, j, ic) {
  4816. e.stopPropagation();
  4817. this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  4818. ic
  4819. ].name = JSON.parse(JSON.stringify(e.target.value));
  4820. this.$forceUpdate();
  4821. },
  4822. upCd(e, i, j, taskCount, ic) {
  4823. e.stopPropagation();
  4824. if (ic == 0) {
  4825. return;
  4826. }
  4827. var a =
  4828. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  4829. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4830. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4831. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4832. this.$forceUpdate();
  4833. },
  4834. downCd(e, i, j, taskCount, ic) {
  4835. e.stopPropagation();
  4836. if (
  4837. ic ==
  4838. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4839. 1
  4840. ) {
  4841. return;
  4842. }
  4843. var a =
  4844. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  4845. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4846. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4847. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4848. this.$forceUpdate();
  4849. },
  4850. addWork() {
  4851. let cPan = 1;
  4852. for (var i = 0; i < this.unitJson.length; i++) {
  4853. for (
  4854. var j = 0;
  4855. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4856. j++
  4857. ) {
  4858. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4859. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4860. if (
  4861. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4862. ) {
  4863. for (
  4864. var z = 0;
  4865. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4866. z++
  4867. ) {
  4868. if (
  4869. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4870. .length
  4871. ) {
  4872. this.$message.error("请把工具添加完整");
  4873. cPan = 2;
  4874. break;
  4875. }
  4876. }
  4877. }
  4878. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4879. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4880. i
  4881. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4882. return ele.value != "";
  4883. });
  4884. }
  4885. }
  4886. }
  4887. this.inputShow = true;
  4888. if (cPan == 2) {
  4889. this.steps--;
  4890. return;
  4891. }
  4892. for (var i = 0; i < this.unitJson.length; i++) {
  4893. delete this.unitJson[i].isUpdate;
  4894. }
  4895. let params = [
  4896. {
  4897. uid: this.userid,
  4898. title: this.courseName.replace(/%/g, "%25"),
  4899. brief: this.courseText.replace(/%/g, "%25"),
  4900. cover:
  4901. this.cover.length > 0
  4902. ? JSON.stringify(this.cover)
  4903. : JSON.stringify([
  4904. {
  4905. name: "noBanner.jpg",
  4906. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4907. uid: 1656409780264,
  4908. status: "success",
  4909. },
  4910. ]),
  4911. evaId: this.evalua,
  4912. astudent:
  4913. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4914. see: this.isTeacherSee == true ? 1 : 0,
  4915. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4916. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4917. courseType: JSON.stringify(this.courseTypeId),
  4918. ateacher:
  4919. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4920. inviteCode: JSON.stringify(this.inviteCode),
  4921. },
  4922. ];
  4923. this.ajax
  4924. .post(this.$store.state.api + "addWorkNew2", params)
  4925. .then((res) => {
  4926. console.log(this.steps);
  4927. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4928. this.$message({
  4929. message: "新增成功",
  4930. type: "success",
  4931. });
  4932. }
  4933. this.number = res.data.ordernumber;
  4934. this.courseId = res.data.courseId;
  4935. this.cid = res.data.courseId;
  4936. this.courseUserid = this.userid;
  4937. this.islogin = true;
  4938. })
  4939. .catch((err) => {
  4940. this.$message.error("网络不佳");
  4941. console.error(err);
  4942. });
  4943. },
  4944. goCourse() {
  4945. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  4946. },
  4947. updateWork2() {
  4948. let _unitIndex = this.unitIndex;
  4949. let cPan = 1;
  4950. for (
  4951. var j = 0;
  4952. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4953. j++
  4954. ) {
  4955. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4956. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4957. j
  4958. ].proVisible2 = false;
  4959. if (
  4960. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4961. .length > 1
  4962. ) {
  4963. for (
  4964. var z = 0;
  4965. z <
  4966. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4967. .length;
  4968. z++
  4969. ) {
  4970. if (
  4971. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  4972. z
  4973. ].tool.length
  4974. ) {
  4975. this.$message.error("请把工具添加完整");
  4976. cPan = 2;
  4977. break;
  4978. }
  4979. }
  4980. }
  4981. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4982. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4983. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4984. (ele) => {
  4985. return ele.value != "";
  4986. }
  4987. );
  4988. }
  4989. }
  4990. this.inputShow = true;
  4991. if (cPan == 2) {
  4992. this.steps--;
  4993. return;
  4994. }
  4995. let params = [
  4996. {
  4997. cid: this.cid,
  4998. chapters: JSON.stringify(this.unitJson),
  4999. uid: this.userid,
  5000. unitIndex: _unitIndex,
  5001. },
  5002. ];
  5003. this.ajax
  5004. .post(this.$store.state.api + "updateWorkNew4", params)
  5005. .then((res) => {
  5006. this.$message({
  5007. message: "修改成功",
  5008. type: "success",
  5009. });
  5010. this.courseId = this.cid;
  5011. })
  5012. .catch((err) => {
  5013. this.$message.error("网络不佳");
  5014. console.error(err);
  5015. });
  5016. },
  5017. updateWork() {
  5018. let cPan = 1;
  5019. for (var i = 0; i < this.unitJson.length; i++) {
  5020. for (
  5021. var j = 0;
  5022. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5023. j++
  5024. ) {
  5025. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5026. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5027. if (
  5028. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5029. ) {
  5030. for (
  5031. var z = 0;
  5032. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5033. z++
  5034. ) {
  5035. if (
  5036. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5037. .length
  5038. ) {
  5039. this.$message.error("请把工具添加完整");
  5040. cPan = 2;
  5041. break;
  5042. }
  5043. }
  5044. }
  5045. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5046. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5047. i
  5048. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5049. return ele.value != "";
  5050. });
  5051. }
  5052. }
  5053. }
  5054. this.inputShow = true;
  5055. if (cPan == 2) {
  5056. this.steps--;
  5057. return;
  5058. }
  5059. for (var i = 0; i < this.unitJson.length; i++) {
  5060. delete this.unitJson[i].isUpdate;
  5061. }
  5062. let params = [
  5063. {
  5064. cid: this.cid,
  5065. title: this.courseName.replace(/%/g, "%25"),
  5066. brief: this.courseText.replace(/%/g, "%25"),
  5067. cover:
  5068. this.cover.length > 0
  5069. ? JSON.stringify(this.cover)
  5070. : JSON.stringify([
  5071. {
  5072. name: "noBanner.jpg",
  5073. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5074. uid: 1656409780264,
  5075. status: "success",
  5076. },
  5077. ]),
  5078. evaId: this.evalua,
  5079. astudent:
  5080. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5081. see: this.isTeacherSee == true ? 1 : 0,
  5082. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5083. template: this.myWord != "undefined" ? this.myWord : [],
  5084. uid: this.userid,
  5085. courseType: JSON.stringify(this.courseTypeId),
  5086. ateacher:
  5087. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5088. inviteCode: JSON.stringify(this.inviteCode),
  5089. },
  5090. ];
  5091. this.ajax
  5092. .post(this.$store.state.api + "updateWorkNew2", params)
  5093. .then((res) => {
  5094. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5095. if (this.cidType == 1) {
  5096. this.$message({
  5097. message: "修改成功",
  5098. type: "success",
  5099. });
  5100. } else {
  5101. this.$message({
  5102. message: "新增成功",
  5103. type: "success",
  5104. });
  5105. }
  5106. }
  5107. this.number = this.nbOrder;
  5108. this.courseId = this.cid;
  5109. })
  5110. .catch((err) => {
  5111. this.$message.error("网络不佳");
  5112. console.error(err);
  5113. });
  5114. },
  5115. guid() {
  5116. var _num,
  5117. i,
  5118. _guid = "";
  5119. for (i = 0; i < 32; i++) {
  5120. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5121. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5122. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5123. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5124. _guid += "-";
  5125. }
  5126. }
  5127. return _guid;
  5128. },
  5129. insertWord() {
  5130. this.dialogVisible1 = true;
  5131. this.updateBoolean2 = false;
  5132. this.tTitle = "";
  5133. this.tdetail = "";
  5134. },
  5135. addWord() {
  5136. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5137. name: this.tTitle,
  5138. content: this.tdetail,
  5139. uid: this.guid(),
  5140. });
  5141. this.dialogVisible1 = false;
  5142. },
  5143. upWord() { },
  5144. selectWord(uid, i, c) {
  5145. this.dialogVisible1 = true;
  5146. this.updateBoolean2 = true;
  5147. if (
  5148. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5149. ) {
  5150. this.tTitle =
  5151. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5152. this.tdetail =
  5153. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  5154. }
  5155. },
  5156. isAddPP() {
  5157. if (this.checkboxList.length > 0) {
  5158. this.$message({
  5159. message: "添加成功",
  5160. type: "success",
  5161. });
  5162. this.dialogVisible3 = false;
  5163. } else {
  5164. this.$message({
  5165. message: "请添加课程成员",
  5166. type: "error",
  5167. });
  5168. }
  5169. },
  5170. isAddClass() {
  5171. this.dialogVisibleClass = false;
  5172. },
  5173. isAddPPTeacher() {
  5174. this.dialogVisibleMember = false;
  5175. this.setMan();
  5176. },
  5177. getTemplate() {
  5178. this.ajax
  5179. .get(this.$store.state.api + "getCourseTemplateT", "")
  5180. .then((res) => {
  5181. this.templateArray = res.data[0];
  5182. this.getTemplateOid();
  5183. this.$forceUpdate();
  5184. })
  5185. .catch((err) => { });
  5186. },
  5187. getTemplateOid() {
  5188. let params = {
  5189. oid: this.oid,
  5190. };
  5191. this.ajax
  5192. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5193. .then((res) => {
  5194. if (res.data[0].length) {
  5195. this.templateArray = [...res.data[0], ...this.templateArray];
  5196. }
  5197. this.getTemplateOrg();
  5198. this.$forceUpdate();
  5199. })
  5200. .catch((err) => { });
  5201. },
  5202. getTemplateOrg() {
  5203. let params = {
  5204. oid: this.org,
  5205. };
  5206. this.ajax
  5207. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5208. .then((res) => {
  5209. if (res.data[0].length) {
  5210. this.templateArray = [...res.data[0], ...this.templateArray];
  5211. }
  5212. this.$forceUpdate();
  5213. })
  5214. .catch((err) => { });
  5215. },
  5216. clearChoose() {
  5217. this.clearArray.splice(this.templateC.id, 1);
  5218. this.dialogVisible2 = false;
  5219. },
  5220. clearAttText() {
  5221. this.AttText = {
  5222. title: "",
  5223. text: "",
  5224. };
  5225. this.dialogVisible6 = false;
  5226. },
  5227. clearLine() {
  5228. this.line = "";
  5229. this.dialogVisible7 = false;
  5230. },
  5231. checkTemplate(res) {
  5232. let _this = this;
  5233. _this
  5234. .$confirm("确定选择此模板吗?", "提示", {
  5235. confirmButtonText: "确定",
  5236. cancelButtonText: "取消",
  5237. type: "warning",
  5238. })
  5239. .then(() => {
  5240. _this.unitJson = JSON.parse(res.chapters);
  5241. _this.steps++;
  5242. setTimeout(() => {
  5243. this.checkEva(this.checkId);
  5244. }, 1000);
  5245. })
  5246. .catch(() => {
  5247. return;
  5248. });
  5249. },
  5250. checkTemplate1(w) {
  5251. this.steps++;
  5252. },
  5253. checkTemplate2() {
  5254. let _this = this;
  5255. _this
  5256. .$confirm("确定选择空模板吗?", "提示", {
  5257. confirmButtonText: "确定",
  5258. cancelButtonText: "取消",
  5259. type: "warning",
  5260. })
  5261. .then(() => {
  5262. _this.unitIndex = 0;
  5263. _this.unitJson = [
  5264. {
  5265. dyName: "", //单元标题
  5266. chapterInfo: [
  5267. {
  5268. isread: false,
  5269. chapterid: this.guid(),
  5270. title: "",
  5271. courseName: "",
  5272. taskJson: [
  5273. {
  5274. task: "",
  5275. taskDetail: "",
  5276. chapterData: [],
  5277. toolText: "",
  5278. toolChoose: [
  5279. {
  5280. tool: [],
  5281. toolDetail: "",
  5282. toolType: 1,
  5283. askCount: 1,
  5284. askTitle: "",
  5285. askJson: [
  5286. { askstitle: "", askItem: 1, checkList: [] },
  5287. ],
  5288. },
  5289. ],
  5290. isShowTools: false,
  5291. askCount: 1,
  5292. isFold: 0,
  5293. askTitle: "",
  5294. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5295. checkJson: [{ checkCount: [], checkPerent: [] }],
  5296. homeworkList: [],
  5297. },
  5298. ],
  5299. itemCount: 1,
  5300. fileList1: [],
  5301. video: [],
  5302. testData: [],
  5303. pData: [],
  5304. templateArray: [],
  5305. },
  5306. ],
  5307. },
  5308. ];
  5309. this.steps++;
  5310. this.updateWork();
  5311. })
  5312. .catch(() => {
  5313. return;
  5314. });
  5315. },
  5316. checkTemplate3() {
  5317. let _this = this;
  5318. _this
  5319. .$confirm("确定选择简易模式吗?", "提示", {
  5320. confirmButtonText: "确定",
  5321. cancelButtonText: "取消",
  5322. type: "warning",
  5323. })
  5324. .then(() => {
  5325. _this.unitIndex = 0;
  5326. _this.unitJson = [
  5327. {
  5328. dyName: "", //单元标题
  5329. easy: 1,
  5330. chapterInfo: [
  5331. {
  5332. isread: false,
  5333. chapterid: this.guid(),
  5334. title: "",
  5335. courseName: "",
  5336. taskJson: [
  5337. {
  5338. task: "",
  5339. taskDetail: "",
  5340. chapterData: [],
  5341. toolText: "",
  5342. toolChoose: [
  5343. {
  5344. tool: [],
  5345. toolDetail: "",
  5346. toolType: 1,
  5347. askCount: 1,
  5348. askTitle: "",
  5349. askJson: [
  5350. { askstitle: "", askItem: 1, checkList: [] },
  5351. ],
  5352. },
  5353. ],
  5354. isShowTools: false,
  5355. askCount: 1,
  5356. isFold: 0,
  5357. askTitle: "",
  5358. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5359. checkJson: [{ checkCount: [], checkPerent: [] }],
  5360. homeworkList: [],
  5361. },
  5362. ],
  5363. itemCount: 1,
  5364. fileList1: [],
  5365. video: [],
  5366. testData: [],
  5367. pData: [],
  5368. templateArray: [],
  5369. },
  5370. ],
  5371. },
  5372. ];
  5373. this.steps++;
  5374. this.updateWork();
  5375. })
  5376. .catch(() => {
  5377. return;
  5378. });
  5379. },
  5380. checkTemplate4() {
  5381. let _this = this;
  5382. _this
  5383. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5384. confirmButtonText: "确定",
  5385. cancelButtonText: "取消",
  5386. type: "warning",
  5387. })
  5388. .then(() => {
  5389. _this.unitIndex = 0;
  5390. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5391. this.steps++;
  5392. this.updateWork();
  5393. })
  5394. .catch(() => {
  5395. return;
  5396. });
  5397. },
  5398. wordNext() {
  5399. this.dialogVisible2 = false;
  5400. },
  5401. isAddOrUpdateAttText() {
  5402. if (this.AttTextType == 0) {
  5403. this.addAttTextMessage();
  5404. } else {
  5405. this.updateAttText();
  5406. }
  5407. },
  5408. isAddOrUpdateLine() {
  5409. if (!this.lineTitle) {
  5410. this.$message.error("请填写链接标题");
  5411. return;
  5412. }
  5413. if (this.lineType == 0) {
  5414. this.addLine();
  5415. } else {
  5416. this.updateLine();
  5417. }
  5418. },
  5419. addAttTextMessage() {
  5420. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5421. this.taskCount
  5422. ].chapterData.push({
  5423. name: this.AttText.title,
  5424. url: this.AttText.text,
  5425. type: 6,
  5426. });
  5427. this.imgChange1(null, null, 6, this.taskCount);
  5428. this.dialogVisible6 = false;
  5429. },
  5430. selectAttText(itemTaskIndex, i) {
  5431. this.AttText.title =
  5432. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5433. itemTaskIndex
  5434. ].chapterData[i].name;
  5435. this.AttText.text =
  5436. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5437. itemTaskIndex
  5438. ].chapterData[i].url;
  5439. this.taskCount = itemTaskIndex;
  5440. this.AttTextIndex = i;
  5441. this.AttTextType = 1;
  5442. this.dialogVisible6 = true;
  5443. },
  5444. updateAttText() {
  5445. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5446. this.taskCount
  5447. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5449. this.taskCount
  5450. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5451. this.dialogVisible6 = false;
  5452. },
  5453. addLine() {
  5454. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5455. this.lineCount
  5456. ].chapterData.push({
  5457. name: "链接",
  5458. title: this.lineTitle,
  5459. url: this.line,
  5460. type: 8,
  5461. });
  5462. this.imgChange1(null, null, 8, this.lineCount);
  5463. this.dialogVisible7 = false;
  5464. },
  5465. selectLine(itemTaskIndex, i) {
  5466. this.line =
  5467. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5468. itemTaskIndex
  5469. ].chapterData[i].url;
  5470. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5471. itemTaskIndex
  5472. ].chapterData[i].title
  5473. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5474. .chapterData[i].title
  5475. : "";
  5476. this.taskCount = itemTaskIndex;
  5477. this.lineCount = i;
  5478. this.lineType = 1;
  5479. this.dialogVisible7 = true;
  5480. },
  5481. updateLine() {
  5482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5483. this.taskCount
  5484. ].chapterData[this.lineCount].url = this.line;
  5485. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5486. this.taskCount
  5487. ].chapterData[this.lineCount].title = this.lineTitle;
  5488. this.dialogVisible7 = false;
  5489. },
  5490. addPP() {
  5491. this.dialogVisible3 = true;
  5492. },
  5493. goTo(path) {
  5494. this.$router.push(path);
  5495. },
  5496. openTools(itemTaskIndex, i, toolIndex) {
  5497. this.toolIndex = toolIndex;
  5498. this.taskCount = itemTaskIndex;
  5499. if (i == 4) {
  5500. if (toolIndex == null) {
  5501. var a =
  5502. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5503. .chapterData;
  5504. for (var i = 0; i < a.length; i++) {
  5505. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5506. this.askJson =
  5507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5508. itemTaskIndex
  5509. ].chapterData[i].askJson;
  5510. }
  5511. }
  5512. } else {
  5513. this.askJson = JSON.parse(
  5514. JSON.stringify(
  5515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5516. itemTaskIndex
  5517. ].toolChoose[toolIndex]
  5518. )
  5519. );
  5520. }
  5521. this.dialogVisible5 = true;
  5522. } else if (i == 45) {
  5523. if (
  5524. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5525. .toolChoose[toolIndex].testJson
  5526. ) {
  5527. this.testJson = JSON.parse(
  5528. JSON.stringify(
  5529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5530. itemTaskIndex
  5531. ].toolChoose[toolIndex].testJson
  5532. )
  5533. );
  5534. } else {
  5535. var testJson = {
  5536. testCount: 1,
  5537. testTitle: "",
  5538. testJson: [
  5539. {
  5540. teststitle: "",
  5541. testItem: 1,
  5542. checkList: [],
  5543. timuList: [],
  5544. answer: [],
  5545. type: "1",
  5546. },
  5547. ],
  5548. };
  5549. this.testJson = testJson;
  5550. }
  5551. this.dialogVisibleChoice = true;
  5552. } else if (i == 47) {
  5553. if (
  5554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5555. .toolChoose[toolIndex].sentenceList
  5556. ) {
  5557. this.sentenceList = JSON.parse(
  5558. JSON.stringify(
  5559. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5560. itemTaskIndex
  5561. ].toolChoose[toolIndex].sentenceList
  5562. )
  5563. );
  5564. } else {
  5565. var sentenceList = [
  5566. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5567. ];
  5568. this.sentenceList = sentenceList;
  5569. }
  5570. this.dialogVisibleSentence = true;
  5571. } else if (i == 48) {
  5572. if (
  5573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5574. .toolChoose[toolIndex].tableJson
  5575. ) {
  5576. this.tableJson = JSON.parse(
  5577. JSON.stringify(
  5578. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5579. itemTaskIndex
  5580. ].toolChoose[toolIndex].tableJson
  5581. )
  5582. );
  5583. } else {
  5584. var tableJson = { text: "" };
  5585. this.tableJson = tableJson;
  5586. }
  5587. this.dialogVisibleTable = true;
  5588. } else if (i == 52) {
  5589. if (
  5590. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5591. .toolChoose[toolIndex].wordJson
  5592. ) {
  5593. this.wordJson = JSON.parse(
  5594. JSON.stringify(
  5595. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5596. itemTaskIndex
  5597. ].toolChoose[toolIndex].wordJson
  5598. )
  5599. );
  5600. } else {
  5601. var wordJson = { text: "" };
  5602. this.wordJson = wordJson;
  5603. }
  5604. this.dialogVisibleWord = true;
  5605. // else if (i == 50) {
  5606. // if (
  5607. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5608. // .toolChoose[toolIndex].uploadJson
  5609. // ) {
  5610. // this.uploadJson = JSON.parse(
  5611. // JSON.stringify(
  5612. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5613. // itemTaskIndex
  5614. // ].toolChoose[toolIndex].uploadJson
  5615. // )
  5616. // );
  5617. // } else {
  5618. // var uploadJson = [];
  5619. // this.uploadJson = uploadJson;
  5620. // }
  5621. // this.dialogVisibleMoreUpload = true;
  5622. // }
  5623. } else if (i == 10) {
  5624. if (
  5625. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5626. .toolChoose[toolIndex].preTime
  5627. ) {
  5628. this.preTime = JSON.parse(
  5629. JSON.stringify(
  5630. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5631. itemTaskIndex
  5632. ].toolChoose[toolIndex].preTime
  5633. )
  5634. );
  5635. } else {
  5636. var preTime = 0;
  5637. this.preTime = preTime;
  5638. }
  5639. this.dialogVisiblePreTime = true;
  5640. } else if (i == 49) {
  5641. if (
  5642. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5643. .toolChoose[toolIndex].groupJson
  5644. ) {
  5645. this.groupJson = JSON.parse(
  5646. JSON.stringify(
  5647. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5648. itemTaskIndex
  5649. ].toolChoose[toolIndex].groupJson
  5650. )
  5651. );
  5652. } else {
  5653. var groupJson = {
  5654. group: [{ name: "第1组" }],
  5655. number: undefined,
  5656. islock: 1,
  5657. };
  5658. this.groupJson = groupJson;
  5659. }
  5660. this.dialogVisibleGroup = true;
  5661. } else if (i == 62) {
  5662. if (
  5663. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5664. .toolChoose[toolIndex].videoJson
  5665. ) {
  5666. this.videoJson = JSON.parse(
  5667. JSON.stringify(
  5668. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5669. itemTaskIndex
  5670. ].toolChoose[toolIndex].videoJson
  5671. )
  5672. );
  5673. } else {
  5674. var videoJson = {
  5675. video: "",
  5676. setting: [],
  5677. };
  5678. this.videoJson = videoJson;
  5679. }
  5680. this.dialogVisibleVideo = true;
  5681. } else if (i == 15) {
  5682. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5683. itemTaskIndex
  5684. ].toolChoose[toolIndex].answerQ
  5685. ? JSON.parse(
  5686. JSON.stringify(
  5687. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5688. itemTaskIndex
  5689. ].toolChoose[toolIndex].answerQ
  5690. )
  5691. )
  5692. : "";
  5693. this.dialogVisible8 = true;
  5694. } else if (i == 40) {
  5695. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5696. itemTaskIndex
  5697. ].toolChoose[toolIndex].rateJson
  5698. ? JSON.parse(
  5699. JSON.stringify(
  5700. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5701. itemTaskIndex
  5702. ].toolChoose[toolIndex].rateJson
  5703. )
  5704. )
  5705. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5706. this.selectSteps = 1;
  5707. this.dialogVisibleRate = true;
  5708. } else if (i == 42) {
  5709. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5710. itemTaskIndex
  5711. ].toolChoose[toolIndex].answerQ
  5712. ? JSON.parse(
  5713. JSON.stringify(
  5714. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5715. itemTaskIndex
  5716. ].toolChoose[toolIndex].answerQ
  5717. )
  5718. )
  5719. : "";
  5720. this.dialogVisibleMp3 = true;
  5721. } else if (i == 41) {
  5722. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5723. itemTaskIndex
  5724. ].toolChoose[toolIndex].selectJson
  5725. ? JSON.parse(
  5726. JSON.stringify(
  5727. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5728. itemTaskIndex
  5729. ].toolChoose[toolIndex].selectJson
  5730. )
  5731. )
  5732. : { url: "", select: [], answer: [] };
  5733. this.selectSteps = 1;
  5734. this.dialogVisibleSelect = true;
  5735. } else if (i == 3) {
  5736. window.parent.postMessage(
  5737. {
  5738. tools: "3y",
  5739. cid: this.cid,
  5740. stage: this.unitIndex,
  5741. task: itemTaskIndex,
  5742. tool: toolIndex,
  5743. },
  5744. "*"
  5745. );
  5746. } else if (i == 1) {
  5747. window.parent.postMessage(
  5748. {
  5749. tools: "1y",
  5750. cid: this.cid,
  5751. stage: this.unitIndex,
  5752. task: itemTaskIndex,
  5753. tool: toolIndex,
  5754. },
  5755. "*"
  5756. );
  5757. } else if (i == 57) {
  5758. window.parent.postMessage(
  5759. {
  5760. tools: "57y",
  5761. cid: this.cid,
  5762. stage: this.unitIndex,
  5763. task: itemTaskIndex,
  5764. tool: toolIndex,
  5765. },
  5766. "*"
  5767. );
  5768. }
  5769. },
  5770. chapAddTools(i) {
  5771. if (this.chapTools[0].tools.length == 0) {
  5772. this.chapTools[0].tools.push(i);
  5773. } else {
  5774. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5775. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5776. } else {
  5777. this.chapTools[0].tools.push(i);
  5778. }
  5779. }
  5780. this.$forceUpdate();
  5781. },
  5782. addChaptersDataTools() {
  5783. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5784. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5785. this.chapCount
  5786. ].chapterData.push({
  5787. name: this.chapTools[0].toolDetail,
  5788. url: this.chapTools[0].tools,
  5789. type: 7,
  5790. askJson: this.askJson,
  5791. });
  5792. } else {
  5793. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5794. this.chapCount
  5795. ].chapterData.push({
  5796. name: this.chapTools[0].toolDetail,
  5797. url: this.chapTools[0].tools,
  5798. type: 7,
  5799. });
  5800. }
  5801. this.imgChange1(null, null, 7, this.chapCount);
  5802. this.dialogVisible4 = false;
  5803. },
  5804. addTools(i, itemTaskIndex, toolIndex) {
  5805. // if (
  5806. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5807. // .toolChoose[toolIndex].tool.length == 0
  5808. // ) {
  5809. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5810. // itemTaskIndex
  5811. // ].toolChoose[toolIndex].tool.push(i);
  5812. // } else {
  5813. // if (
  5814. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5815. // itemTaskIndex
  5816. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5817. // ) {
  5818. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5819. // itemTaskIndex
  5820. // ].toolChoose[toolIndex].tool.splice(
  5821. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5822. // itemTaskIndex
  5823. // ].toolChoose[toolIndex].tool.indexOf(i),
  5824. // 1
  5825. // );
  5826. // } else {
  5827. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5828. // itemTaskIndex
  5829. // ].toolChoose[toolIndex].tool.push(i);
  5830. // }
  5831. // console.log(
  5832. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5833. // .toolChoose[toolIndex].tool
  5834. // );
  5835. // }
  5836. if (i == 4) {
  5837. if (
  5838. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5839. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5840. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5841. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5842. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5843. .toolChoose[toolIndex].askJson[0].checkList < 2
  5844. ) {
  5845. this.openTools(itemTaskIndex, 4, toolIndex);
  5846. // this.$message({
  5847. // message: "请填写完整问卷内容",
  5848. // type: "error",
  5849. // });
  5850. return;
  5851. }
  5852. }
  5853. if (i == 45) {
  5854. if (
  5855. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5856. .toolChoose[toolIndex].testJson ||
  5857. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5858. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5859. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5860. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5861. ) {
  5862. this.openTools(itemTaskIndex, 45, toolIndex);
  5863. // this.$message({
  5864. // message: "请填写完整问卷内容",
  5865. // type: "error",
  5866. // });
  5867. return;
  5868. }
  5869. }
  5870. if (i == 47) {
  5871. if (
  5872. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5873. .toolChoose[toolIndex].sentenceList ||
  5874. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5875. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5876. ) {
  5877. this.openTools(itemTaskIndex, 47, toolIndex);
  5878. return;
  5879. }
  5880. }
  5881. // if (i == 48) {
  5882. // if (
  5883. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5884. // .toolChoose[toolIndex].tableJson
  5885. // ) {
  5886. // this.openTools(itemTaskIndex, 48, toolIndex);
  5887. // return;
  5888. // }
  5889. // }
  5890. // if (i == 50) {
  5891. // if (
  5892. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5893. // .toolChoose[toolIndex].uploadJson
  5894. // ) {
  5895. // this.openTools(itemTaskIndex, 50, toolIndex);
  5896. // return;
  5897. // }
  5898. // }
  5899. if (i == 49) {
  5900. if (
  5901. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5902. .toolChoose[toolIndex].groupJson
  5903. ) {
  5904. this.openTools(itemTaskIndex, 49, toolIndex);
  5905. return;
  5906. }
  5907. }
  5908. if (i == 62) {
  5909. if (
  5910. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5911. .toolChoose[toolIndex].videoJson
  5912. ) {
  5913. this.openTools(itemTaskIndex, 62, toolIndex);
  5914. return;
  5915. }
  5916. }
  5917. if (i == 15) {
  5918. if (
  5919. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5920. .toolChoose[toolIndex].answerQ ||
  5921. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5922. .toolChoose[toolIndex].answerQ == ""
  5923. ) {
  5924. this.openTools(itemTaskIndex, 15, toolIndex);
  5925. // this.$message({
  5926. // message: "请填写问答内容",
  5927. // type: "error",
  5928. // });
  5929. return;
  5930. }
  5931. }
  5932. if (i == 40) {
  5933. if (
  5934. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5935. .toolChoose[toolIndex].rateJson ||
  5936. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5937. .toolChoose[toolIndex].rateJson.length
  5938. ) {
  5939. this.openTools(itemTaskIndex, 40, toolIndex);
  5940. return;
  5941. }
  5942. }
  5943. if (i == 41) {
  5944. if (
  5945. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5946. .toolChoose[toolIndex].selectJson ||
  5947. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5948. .toolChoose[toolIndex].selectJson.url == "" ||
  5949. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5950. .toolChoose[toolIndex].selectJson.select.length ||
  5951. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5952. .toolChoose[toolIndex].selectJson.answer.length
  5953. ) {
  5954. this.openTools(itemTaskIndex, 41, toolIndex);
  5955. return;
  5956. }
  5957. }
  5958. if (i == 42) {
  5959. if (
  5960. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5961. .toolChoose[toolIndex].answerQ ||
  5962. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5963. .toolChoose[toolIndex].answerQ == ""
  5964. ) {
  5965. this.openTools(itemTaskIndex, 42, toolIndex);
  5966. return;
  5967. }
  5968. }
  5969. if (
  5970. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5971. .toolChoose[toolIndex].tool.length > 0
  5972. ) {
  5973. if (
  5974. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5975. itemTaskIndex
  5976. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5977. ) {
  5978. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5979. itemTaskIndex
  5980. ].toolChoose[toolIndex].tool.splice(
  5981. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5982. itemTaskIndex
  5983. ].toolChoose[toolIndex].tool.indexOf(i),
  5984. 1
  5985. );
  5986. } else {
  5987. // this.$message({
  5988. // message: "每个工具只能添加一个",
  5989. // type: "error",
  5990. // });
  5991. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5992. itemTaskIndex
  5993. ].toolChoose[toolIndex].tool = [];
  5994. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5995. itemTaskIndex
  5996. ].toolChoose[toolIndex].tool.push(i);
  5997. }
  5998. } else {
  5999. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6000. itemTaskIndex
  6001. ].toolChoose[toolIndex].tool.push(i);
  6002. }
  6003. this.$forceUpdate();
  6004. },
  6005. addAskList() {
  6006. this.askJson.askJson.push({
  6007. askstitle: "",
  6008. askItem: 1,
  6009. checkList: [],
  6010. });
  6011. this.askJson.askCount++;
  6012. },
  6013. addTestList() {
  6014. this.testJson.testJson.push({
  6015. teststitle: "",
  6016. testItem: 1,
  6017. checkList: [],
  6018. timuList: [],
  6019. answer: [],
  6020. type: "1",
  6021. });
  6022. this.testJson.testCount++;
  6023. },
  6024. deleteAskList(index) {
  6025. this.askJson.askJson.splice(index, 1);
  6026. this.askJson.askCount--;
  6027. },
  6028. deleteTestList(index) {
  6029. this.testJson.testJson.splice(index, 1);
  6030. this.testJson.testCount--;
  6031. },
  6032. addcheckList(json) {
  6033. json.checkList.length++;
  6034. json.askItem++;
  6035. },
  6036. deletecheckList(json) {
  6037. json.checkList.length--;
  6038. json.askItem--;
  6039. },
  6040. addTcheckList(json) {
  6041. json.checkList.length++;
  6042. json.testItem++;
  6043. },
  6044. deleteTcheckList(json) {
  6045. json.checkList.length--;
  6046. json.testItem--;
  6047. },
  6048. checkTestType(type, json) {
  6049. json.type = type;
  6050. json.answer = [];
  6051. },
  6052. checkAskType(type, json) {
  6053. json.type = type;
  6054. json.checkList = [];
  6055. },
  6056. addSelectList(json) {
  6057. json.select.push("");
  6058. json.answer.push("");
  6059. },
  6060. deleteSelectList(json) {
  6061. // json.select.length--;
  6062. // json.answer.length--;
  6063. json.select.splice(json.select.length - 1, 1);
  6064. json.answer.splice(json.answer.length - 1, 1);
  6065. },
  6066. addAsk() {
  6067. if (this.askJson.askTitle === "") {
  6068. this.$message.error("标题不能为空!");
  6069. return;
  6070. }
  6071. var aj = this.askJson.askJson;
  6072. var b = 1;
  6073. for (var i = 0; i < aj.length; i++) {
  6074. if (aj[i].askstitle === "") {
  6075. var a = 1;
  6076. for (let index = 0; index < aj[i].askItem; index++) {
  6077. const element = aj[i].checkList[index]
  6078. ? aj[i].checkList[index]
  6079. : "";
  6080. if (element != "") {
  6081. b++;
  6082. this.$message.error("填写了选项,题目不能为空!");
  6083. return;
  6084. } else {
  6085. a++;
  6086. }
  6087. }
  6088. if (b == 1) {
  6089. this.$message.error("至少填写一个问题");
  6090. return;
  6091. }
  6092. } else if (aj[i].askstitle != "") {
  6093. for (let index = 0; index < aj[i].askItem; index++) {
  6094. const element = aj[i].checkList[index]
  6095. ? aj[i].checkList[index]
  6096. : "";
  6097. var index = 0;
  6098. for (var z = 0; z < aj[i].checkList.length; z++) {
  6099. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6100. if (checkC != "") {
  6101. index++;
  6102. } else {
  6103. this.$message.error("选项不能为空!");
  6104. return;
  6105. }
  6106. }
  6107. b++;
  6108. if (index < 2) {
  6109. this.$message.error("填写了的题目,选项至少要有两项!");
  6110. return;
  6111. }
  6112. }
  6113. }
  6114. }
  6115. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6116. var elc = el.checkList.filter((element) => {
  6117. return element != "";
  6118. });
  6119. return el.askstitle != "" && elc.length != 0;
  6120. });
  6121. if (!this.dialogVisible4) {
  6122. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6123. this.taskCount
  6124. ].toolChoose[this.toolIndex] = this.askJson;
  6125. }
  6126. this.dialogVisible5 = false;
  6127. if (
  6128. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6129. .toolChoose[this.toolIndex].tool != 4
  6130. ) {
  6131. this.addTools(4, this.taskCount, this.toolIndex);
  6132. }
  6133. },
  6134. addTest() {
  6135. // if (this.testJson.testTitle === "") {
  6136. // this.$message.error("标题不能为空!");
  6137. // return;
  6138. // }
  6139. var aj = this.testJson.testJson;
  6140. var b = 1;
  6141. for (var i = 0; i < aj.length; i++) {
  6142. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  6143. var a = 1;
  6144. for (let index = 0; index < aj[i].testItem; index++) {
  6145. const element = aj[i].checkList[index]
  6146. ? aj[i].checkList[index]
  6147. : "";
  6148. if (element != "") {
  6149. b++;
  6150. this.$message.error("填写了选项,题目不能为空!");
  6151. return;
  6152. } else {
  6153. a++;
  6154. }
  6155. }
  6156. if (b == 1) {
  6157. this.$message.error("至少填写一个问题");
  6158. return;
  6159. }
  6160. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  6161. for (let index = 0; index < aj[i].testItem; index++) {
  6162. const element = aj[i].checkList[index]
  6163. ? aj[i].checkList[index]
  6164. : "";
  6165. var index = 0;
  6166. for (var z = 0; z < aj[i].checkList.length; z++) {
  6167. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6168. if (checkC != "") {
  6169. index++;
  6170. } else {
  6171. this.$message.error("选项不能为空!");
  6172. return;
  6173. }
  6174. }
  6175. b++;
  6176. if (index < 2) {
  6177. this.$message.error("填写了的题目,选项至少要有两项!");
  6178. return;
  6179. }
  6180. if (
  6181. (aj[i].type == "2" && !aj[i].answer.length) ||
  6182. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  6183. ) {
  6184. this.$message.error("有题目未选择答案请选择答案");
  6185. return;
  6186. }
  6187. }
  6188. }
  6189. }
  6190. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6191. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6192. var elc = el.checkList.filter((element) => {
  6193. return element != "";
  6194. });
  6195. return (
  6196. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6197. );
  6198. });
  6199. isTestJson.testCount = isTestJson.testJson.length;
  6200. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6201. this.taskCount
  6202. ].toolChoose[this.toolIndex].testJson = isTestJson;
  6203. this.dialogVisibleChoice = false;
  6204. if (
  6205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6206. .toolChoose[this.toolIndex].tool != 45
  6207. ) {
  6208. this.addTools(45, this.taskCount, this.toolIndex);
  6209. }
  6210. },
  6211. addVideoJson(videoJson) {
  6212. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6213. this.taskCount
  6214. ].toolChoose[this.toolIndex].videoJson = videoJson;
  6215. this.dialogVisibleVideo = false;
  6216. if (
  6217. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6218. .toolChoose[this.toolIndex].tool != 62
  6219. ) {
  6220. this.addTools(62, this.taskCount, this.toolIndex);
  6221. }
  6222. },
  6223. //自动获取剪贴板
  6224. pasteOption() {
  6225. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6226. if (!iframe) {
  6227. this.$message.error("请使用AI共创生成题目");
  6228. return;
  6229. }
  6230. let copyData = iframe.contentWindow.copyData;
  6231. if (!copyData || !copyData.selectData.length) {
  6232. this.$message.error("请使用AI共创生成题目");
  6233. return;
  6234. }
  6235. let selectData = copyData.selectData;
  6236. for (var i = 0; i < selectData.length; i++) {
  6237. let answer = 0;
  6238. switch (selectData[i].answer[0]) {
  6239. case "A":
  6240. answer = 0;
  6241. break;
  6242. case "B":
  6243. answer = 1;
  6244. break;
  6245. case "C":
  6246. answer = 2;
  6247. break;
  6248. case "D":
  6249. answer = 3;
  6250. break;
  6251. case "E":
  6252. answer = 4;
  6253. break;
  6254. default:
  6255. break;
  6256. }
  6257. this.testJson.testJson.push({
  6258. teststitle: selectData[i].subject,
  6259. testItem: selectData[i].options.length,
  6260. checkList: selectData[i].options,
  6261. timuList: [],
  6262. answer: answer,
  6263. type: "1",
  6264. });
  6265. this.testJson.testCount++;
  6266. }
  6267. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6268. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6269. var elc = el.checkList.filter((element) => {
  6270. return element != "";
  6271. });
  6272. return (
  6273. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6274. );
  6275. });
  6276. isTestJson.testCount = isTestJson.testJson.length;
  6277. this.testJson = isTestJson;
  6278. this.$forceUpdate();
  6279. },
  6280. pasteTask() {
  6281. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6282. if (!iframe) {
  6283. this.$message.error("请使用AI共创生成");
  6284. return;
  6285. }
  6286. let copyData = iframe.contentWindow.copyData;
  6287. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6288. this.$message.error("请使用AI共创生成");
  6289. return;
  6290. }
  6291. let stageTasksData = copyData.tasksData;
  6292. let taskA = [];
  6293. let tasks = stageTasksData;
  6294. for (var j = 0; j < tasks.length; j++) {
  6295. taskA.push({
  6296. task: tasks[j].taskName,
  6297. taskDetail: tasks[j].taskDecs,
  6298. chapterData: [],
  6299. toolText: "",
  6300. toolChoose: [
  6301. {
  6302. tool: [],
  6303. toolDetail: "",
  6304. toolType: 1,
  6305. askCount: 1,
  6306. askTitle: "",
  6307. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6308. },
  6309. ],
  6310. isShowTools: false,
  6311. askCount: 1,
  6312. isFold: 0,
  6313. askTitle: "",
  6314. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6315. checkJson: [{ checkCount: [], checkPerent: [] }],
  6316. homeworkList: [],
  6317. });
  6318. }
  6319. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  6320. this.$forceUpdate();
  6321. },
  6322. pasteStage() {
  6323. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6324. if (!iframe) {
  6325. this.$message.error("请使用AI共创生成");
  6326. return;
  6327. }
  6328. let copyData = iframe.contentWindow.copyData;
  6329. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6330. this.$message.error("请使用AI共创生成");
  6331. return;
  6332. }
  6333. let stageData = copyData.stageData;
  6334. let stage = [];
  6335. for (var i = 0; i < stageData.length; i++) {
  6336. stage.push({
  6337. dyName: stageData[i], //单元标题
  6338. chapterInfo: [
  6339. {
  6340. isread: false,
  6341. chapterid: this.guid(),
  6342. title: "",
  6343. courseName: "",
  6344. taskJson: [
  6345. {
  6346. task: "",
  6347. taskDetail: "",
  6348. chapterData: [],
  6349. toolText: "",
  6350. toolChoose: [
  6351. {
  6352. tool: [],
  6353. toolDetail: "",
  6354. toolType: 1,
  6355. askCount: 1,
  6356. askTitle: "",
  6357. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6358. },
  6359. ],
  6360. isShowTools: false,
  6361. askCount: 1,
  6362. isFold: 0,
  6363. askTitle: "",
  6364. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6365. checkJson: [{ checkCount: [], checkPerent: [] }],
  6366. homeworkList: [],
  6367. },
  6368. ],
  6369. itemCount: 1,
  6370. fileList1: [],
  6371. video: [],
  6372. testData: [],
  6373. pData: [],
  6374. templateArray: [],
  6375. },
  6376. ],
  6377. });
  6378. }
  6379. let _this = this;
  6380. _this
  6381. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6382. confirmButtonText: "确定",
  6383. cancelButtonText: "取消",
  6384. type: "warning",
  6385. })
  6386. .then(() => {
  6387. _this.unitIndex = 0;
  6388. _this.unitJson = stage;
  6389. _this.steps++;
  6390. _this.updateWork();
  6391. })
  6392. .catch(() => {
  6393. return;
  6394. });
  6395. },
  6396. addAnswer() {
  6397. if (this.answerQ == "") {
  6398. this.$message.error("请输入您想要问的问题");
  6399. return;
  6400. }
  6401. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6402. this.taskCount
  6403. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6404. this.dialogVisible8 = false;
  6405. if (
  6406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6407. .toolChoose[this.toolIndex].tool != 15
  6408. ) {
  6409. this.addTools(15, this.taskCount, this.toolIndex);
  6410. }
  6411. },
  6412. addMp3Answer() {
  6413. if (this.answerQ == "") {
  6414. this.$message.error("请输入您想要回答的问题");
  6415. return;
  6416. }
  6417. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6418. this.taskCount
  6419. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6420. this.dialogVisibleMp3 = false;
  6421. },
  6422. addRateAnswer() {
  6423. var a = 1;
  6424. for (var i = 0; i < this.rateJson.length; i++) {
  6425. if (this.rateJson[i].value == "") {
  6426. a = 2;
  6427. break;
  6428. }
  6429. }
  6430. if (a == 2) {
  6431. this.$message.error("请把评价信息填写完整");
  6432. return;
  6433. }
  6434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6435. this.taskCount
  6436. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6437. this.dialogVisibleRate = false;
  6438. if (
  6439. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6440. .toolChoose[this.toolIndex].tool != 40
  6441. ) {
  6442. this.addTools(40, this.taskCount, this.toolIndex);
  6443. }
  6444. },
  6445. addSelectAnswer() {
  6446. if (this.selectJson.url == "") {
  6447. this.$message.error("请上传题目");
  6448. return;
  6449. }
  6450. if (!this.selectJson.select.length) {
  6451. this.$message.error("请添加选项");
  6452. return;
  6453. }
  6454. if (!this.selectJson.answer.length) {
  6455. this.$message.error("请设置答案");
  6456. return;
  6457. }
  6458. var a = 1;
  6459. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6460. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6461. a = 2;
  6462. }
  6463. }
  6464. if (a == 2) {
  6465. this.$message.error("请设置答案");
  6466. return;
  6467. }
  6468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6469. this.taskCount
  6470. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6471. this.dialogVisibleSelect = false;
  6472. if (
  6473. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6474. .toolChoose[this.toolIndex].tool != 41
  6475. ) {
  6476. this.addTools(41, this.taskCount, this.toolIndex);
  6477. }
  6478. },
  6479. nextSelectSteps() {
  6480. if (this.selectJson.url == "") {
  6481. this.$message.error("请上传题目");
  6482. return;
  6483. }
  6484. if (!this.selectJson.select.length) {
  6485. this.$message.error("请添加选项");
  6486. return;
  6487. }
  6488. var a = 1;
  6489. for (var i = 0; i < this.selectJson.select.length; i++) {
  6490. if (!this.selectJson.select[i]) {
  6491. a = 2;
  6492. }
  6493. }
  6494. if (a == 2) {
  6495. this.$message.error("添加的选项不能为空");
  6496. return;
  6497. }
  6498. this.selectSteps++;
  6499. },
  6500. selectCourseDetail() {
  6501. if (this.cid == "" || this.cid == undefined) {
  6502. console.log("这是新增课程");
  6503. this.selectAllType();
  6504. } else {
  6505. this.cidType = 1;
  6506. let params = {
  6507. cid: this.cid,
  6508. };
  6509. this.ajax
  6510. .get(this.$store.state.api + "select_course_detail", params)
  6511. .then((res) => {
  6512. this.loading = true;
  6513. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6514. for (var j = 0; j < this.unitJson.length; j++) {
  6515. for (
  6516. var k = 0;
  6517. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6518. k++
  6519. ) {
  6520. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6521. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6522. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6523. : [];
  6524. let _chapterData = [];
  6525. for (
  6526. var c = 0;
  6527. c <
  6528. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6529. .length;
  6530. c++
  6531. ) {
  6532. if (
  6533. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6534. ) {
  6535. _chapterData.push(
  6536. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6537. );
  6538. }
  6539. }
  6540. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6541. _chapterData;
  6542. }
  6543. }
  6544. this.$forceUpdate();
  6545. this.courseName = res.data[0][0].title;
  6546. this.courseText = res.data[0][0].brief;
  6547. this.evalua = res.data[0][0].evaId;
  6548. this.cover = JSON.parse(res.data[0][0].cover);
  6549. this.noneBtnImg = this.cover.length >= 1;
  6550. // this.checkboxList =
  6551. // res.data[0][0].course_student.length > 0
  6552. // ? JSON.parse(res.data[0][0].course_student)
  6553. // : [];
  6554. this.checkboxList2 = res.data[0][0].juri
  6555. ? res.data[0][0].juri.split(",")
  6556. : [];
  6557. this.inviteCode = [];
  6558. for (var i = 0; i < res.data[2].length; i++) {
  6559. this.inviteCode.push({
  6560. cid: res.data[2][i].classid,
  6561. ic: res.data[2][i].code,
  6562. });
  6563. }
  6564. this.checkboxList3 = res.data[0][0].course_teacher
  6565. ? res.data[0][0].course_teacher.split(",")
  6566. : [];
  6567. // this.isTeacherSee =
  6568. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6569. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6570. this.myWord = res.data[0][0].template;
  6571. this.templateC.id = "123";
  6572. this.courseUserid = res.data[0][0].userid;
  6573. // if(this.courseUserid == this.userid){
  6574. // this.InviteChange(this.checkboxList2)
  6575. // }
  6576. this.nbOrder = res.data[0][0].ordernumber;
  6577. this.courseTypeId = [];
  6578. for (var i = 0; i < res.data[1].length; i++) {
  6579. this.courseTypeId.push(res.data[1][i].typeid);
  6580. }
  6581. console.log(this.courseTypeId);
  6582. // if (this.timer) clearInterval(this.timer);
  6583. if (this.timer) clearTimeout(this.timer);
  6584. this.timer = null;
  6585. // this.timer = setInterval(() => {
  6586. this.seleteCourseUpdate();
  6587. this.setMan();
  6588. this.selectAllType();
  6589. // }, 5000);
  6590. this.$forceUpdate();
  6591. setTimeout(() => {
  6592. this.checkEva(this.evalua);
  6593. }, 0);
  6594. })
  6595. .catch((err) => {
  6596. console.error(err);
  6597. });
  6598. }
  6599. },
  6600. seleteCourseUpdate() {
  6601. let params = {
  6602. cid: this.cid,
  6603. };
  6604. this.ajax
  6605. .get(this.$store.state.api + "select_course_detail", params)
  6606. .then((res) => {
  6607. // console.log(this.unitJson);
  6608. let unitJson = JSON.parse(res.data[0][0].chapters);
  6609. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6610. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6611. let _unitJson = [];
  6612. let _chapAarry = [];
  6613. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6614. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6615. let index = 1;
  6616. let chapindex;
  6617. if (_unitJson2.length > unitJson.length) {
  6618. for (let c = 0; c < _unitJson2.length; c++) {
  6619. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6620. }
  6621. for (let j = 0; j < unitJson.length; j++) {
  6622. let count = 0;
  6623. for (let k = 0; k < _unitJson2.length; k++) {
  6624. if (
  6625. unitJson[j].chapterInfo[0].chapterid ==
  6626. _unitJson2[k].chapterInfo[0].chapterid
  6627. ) {
  6628. count++;
  6629. _chapAarry.splice(
  6630. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6631. 1
  6632. );
  6633. _unitJson.push(unitJson[j]);
  6634. break;
  6635. }
  6636. }
  6637. // if(count === 0){
  6638. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6639. // }
  6640. }
  6641. for (let k = 0; k < _unitJson2.length; k++) {
  6642. if (_unitJson2[k].isUpdate == 1) {
  6643. _chapAarry.splice(
  6644. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6645. 1
  6646. );
  6647. _unitJson.push(_unitJson2[k]);
  6648. }
  6649. }
  6650. console.log(_chapAarry);
  6651. for (let d = 0; d < _unitJson2.length; d++) {
  6652. if (
  6653. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6654. ) {
  6655. if (_unitIndex == d) {
  6656. index = 2;
  6657. }
  6658. chapindex = d;
  6659. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6660. }
  6661. }
  6662. } else {
  6663. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6664. }
  6665. for (let i = 0; i < unitJson.length; i++) {
  6666. if (
  6667. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6668. _unitJson[i].chapterInfo[0].chapterid !=
  6669. unitJson[i].chapterInfo[0].chapterid
  6670. ) {
  6671. if (i == _unitJson.length - 1) {
  6672. // this.unitIndex++
  6673. _unitIndex2++;
  6674. }
  6675. _unitJson.splice(i, 0, unitJson[i]);
  6676. } else if (i > _unitJson.length - 1) {
  6677. _unitJson.push(unitJson[i]);
  6678. } else if (
  6679. _unitJson[i].chapterInfo[0].chapterid ==
  6680. unitJson[i].chapterInfo[0].chapterid
  6681. ) {
  6682. _unitJson[i] = unitJson[i];
  6683. }
  6684. // if (i == _unitIndex) {
  6685. // continue;
  6686. // } else
  6687. }
  6688. if (_chapAarry.length && index != 2) {
  6689. if (chapindex < _unitIndex) {
  6690. this.isDelete = 2;
  6691. // this.unitIndex--;
  6692. _unitIndex2--;
  6693. } else if (
  6694. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6695. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6696. ) {
  6697. this.isDelete = 2;
  6698. for (let n = 0; n < _unitJson.length; n++) {
  6699. if (
  6700. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6701. _unitJson[n].chapterInfo[0].chapterid
  6702. ) {
  6703. // this.unitIndex = n;
  6704. _unitIndex2 = n;
  6705. _unitJson[n] = _unitJson2[_unitIndex];
  6706. break;
  6707. }
  6708. }
  6709. }
  6710. } else if (index != 2) {
  6711. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6712. _unitJson2[_unitIndex];
  6713. for (
  6714. var ci = 0;
  6715. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6716. ci++
  6717. ) {
  6718. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6719. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6720. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6721. .toolChoose
  6722. : [];
  6723. let _chapterData = [];
  6724. for (
  6725. var c = 0;
  6726. c <
  6727. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6728. .length;
  6729. c++
  6730. ) {
  6731. if (
  6732. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6733. .chapterData[c]
  6734. ) {
  6735. _chapterData.push(
  6736. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6737. .chapterData[c]
  6738. );
  6739. }
  6740. }
  6741. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6742. _chapterData;
  6743. }
  6744. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6745. }
  6746. if (index == 1) {
  6747. this.unitJson = _unitJson;
  6748. this.$forceUpdate();
  6749. setTimeout(() => {
  6750. if (this.unitIndex != _unitIndex2) {
  6751. this.isDelete = 2;
  6752. this.unitIndex = _unitIndex2;
  6753. }
  6754. }, 0);
  6755. this.timer = setTimeout(() => {
  6756. this.seleteCourseUpdate();
  6757. }, 1000);
  6758. } else if (index == 2) {
  6759. let _this = this;
  6760. _this
  6761. .$confirm(
  6762. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6763. "提示",
  6764. {
  6765. confirmButtonText: "需要",
  6766. cancelButtonText: "取消",
  6767. type: "warning",
  6768. }
  6769. )
  6770. .then(() => {
  6771. if (_this.time()) {
  6772. _this.restoreWork(
  6773. _chapAarry[0],
  6774. _unitJson,
  6775. chapindex,
  6776. _unitJson2,
  6777. _unitIndex2
  6778. );
  6779. }
  6780. })
  6781. .catch(() => {
  6782. _this.unitJson = _unitJson;
  6783. _this.$forceUpdate();
  6784. setTimeout(() => {
  6785. if (this.unitIndex != _unitIndex2) {
  6786. this.isDelete = 2;
  6787. this.unitIndex = _unitIndex2;
  6788. }
  6789. }, 0);
  6790. _this.timer = setTimeout(() => {
  6791. _this.seleteCourseUpdate();
  6792. }, 1000);
  6793. });
  6794. }
  6795. })
  6796. .catch((err) => {
  6797. console.error(err);
  6798. });
  6799. },
  6800. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  6801. let params = [
  6802. {
  6803. cid: this.cid,
  6804. chapters: JSON.stringify(this.unitJson),
  6805. uid: this.userid,
  6806. chapid: chapid,
  6807. },
  6808. ];
  6809. this.ajax
  6810. .post(this.$store.state.api + "restoreWork", params)
  6811. .then((res) => {
  6812. this.$message({
  6813. message: "恢复成功",
  6814. type: "success",
  6815. });
  6816. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  6817. this.unitJson = unitJson;
  6818. this.$forceUpdate();
  6819. setTimeout(() => {
  6820. if (this.unitIndex != unitIndex2) {
  6821. this.isDelete = 2;
  6822. this.unitIndex = unitIndex2;
  6823. }
  6824. }, 0);
  6825. this.timer = setTimeout(() => {
  6826. this.seleteCourseUpdate();
  6827. }, 1000);
  6828. })
  6829. .catch((err) => {
  6830. this.$message.error("网络不佳");
  6831. console.error(err);
  6832. });
  6833. },
  6834. getTypeName() {
  6835. console.log(this.courseTypeId);
  6836. this.$forceUpdate();
  6837. },
  6838. selectAllType() {
  6839. let params = {
  6840. org: this.org && this.org != "" ? this.org : "",
  6841. oid: this.oid && this.oid != "" ? this.oid : "",
  6842. };
  6843. this.ajax
  6844. .get(this.$store.state.api + "selectAllType", params)
  6845. .then((res) => {
  6846. this.CourseType = res.data;
  6847. this.CourseType2 = [
  6848. { name: "智见课程", id: [] },
  6849. { name: "智行课程", id: [] },
  6850. { name: "智创课程", id: [] },
  6851. ];
  6852. for (var cti = 0; cti < res.data[0].length; cti++) {
  6853. if (
  6854. res.data[0][cti].name == "年级" ||
  6855. res.data[0][cti].name == "学科"
  6856. ) {
  6857. this.CourseType2[1].id.push(res.data[0][cti].id);
  6858. this.CourseType2[0].id.push(res.data[0][cti].id);
  6859. } else if (res.data[0][cti].name == "主题") {
  6860. this.CourseType2[2].id.push(res.data[0][cti].id);
  6861. }
  6862. }
  6863. let _courseTypeId = [];
  6864. for (var i = 0; i < res.data[0].length; i++) {
  6865. if (!this.cid) {
  6866. this.courseTypeId[res.data[0][i].id] = [];
  6867. }
  6868. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  6869. // }
  6870. this.CourseTypeJson[res.data[0][i].id] = [];
  6871. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6872. if (res.data[0][i].name == "栏目") {
  6873. this.CourseType[0][i].name = "主题";
  6874. }
  6875. }
  6876. if (res.data[2].length == 0 && res.data[3].length == 0) {
  6877. for (var j = 0; j < res.data[1].length; j++) {
  6878. if (
  6879. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  6880. _courseTypeId.indexOf(res.data[1][j].id) == -1
  6881. ) {
  6882. _courseTypeId.push(res.data[1][j].id);
  6883. }
  6884. if (res.data[0][i].id == res.data[1][j].pid) {
  6885. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6886. }
  6887. }
  6888. } else {
  6889. if (res.data[2].length > 0) {
  6890. for (var j = 0; j < res.data[2].length; j++) {
  6891. if (
  6892. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  6893. _courseTypeId.indexOf(res.data[2][j].id) == -1
  6894. ) {
  6895. _courseTypeId.push(res.data[2][j].id);
  6896. }
  6897. if (res.data[0][i].id == res.data[2][j].pid) {
  6898. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  6899. }
  6900. }
  6901. }
  6902. if (res.data[3].length > 0) {
  6903. for (var j = 0; j < res.data[3].length; j++) {
  6904. if (
  6905. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  6906. _courseTypeId.indexOf(res.data[3][j].id) == -1
  6907. ) {
  6908. _courseTypeId.push(res.data[3][j].id);
  6909. }
  6910. if (res.data[0][i].id == res.data[3][j].pid) {
  6911. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  6912. }
  6913. }
  6914. }
  6915. }
  6916. }
  6917. this.courseTypeId = _courseTypeId;
  6918. })
  6919. .catch((err) => {
  6920. console.error(err);
  6921. });
  6922. },
  6923. selectType() {
  6924. this.ajax
  6925. .get(this.$store.state.api + "selectType")
  6926. .then((res) => {
  6927. this.CourseType = res.data;
  6928. for (var i = 0; i < res.data[0].length; i++) {
  6929. if (!this.cid) {
  6930. this.courseTypeId[res.data[0][i].id] = "";
  6931. }
  6932. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6933. if (res.data[0][i].name == "栏目") {
  6934. this.CourseType[0][i].name = "主题";
  6935. }
  6936. }
  6937. for (var j = 0; j < res.data[1].length; j++) {
  6938. if (res.data[0][i].id == res.data[1][j].pid) {
  6939. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6940. this.CourseTypeJson[res.data[0][i].id] = [];
  6941. }
  6942. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6943. }
  6944. }
  6945. }
  6946. this.selectTypeByOid();
  6947. this.selectTypeByOrg();
  6948. })
  6949. .catch((err) => {
  6950. console.error(err);
  6951. });
  6952. },
  6953. selectTypeByOid() {
  6954. let params = {
  6955. oid: this.oid,
  6956. };
  6957. this.ajax
  6958. .get(this.$store.state.api + "selectTypeByOid", params)
  6959. .then((res) => {
  6960. for (var i = 0; i < res.data[0].length; i++) {
  6961. for (var j = 0; j < res.data[1].length; j++) {
  6962. if (res.data[0][i].id == res.data[1][j].pid) {
  6963. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6964. this.CourseTypeJson[res.data[0][i].id] = [];
  6965. }
  6966. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6967. }
  6968. }
  6969. }
  6970. })
  6971. .catch((err) => {
  6972. console.error(err);
  6973. });
  6974. },
  6975. selectTypeByOrg() {
  6976. let params = {
  6977. oid: this.org,
  6978. };
  6979. this.ajax
  6980. .get(this.$store.state.api + "selectTypeByOrg", params)
  6981. .then((res) => {
  6982. for (var i = 0; i < res.data[0].length; i++) {
  6983. for (var j = 0; j < res.data[1].length; j++) {
  6984. if (res.data[0][i].id == res.data[1][j].pid) {
  6985. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6986. this.CourseTypeJson[res.data[0][i].id] = [];
  6987. }
  6988. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6989. }
  6990. }
  6991. }
  6992. this.$forceUpdate();
  6993. })
  6994. .catch((err) => {
  6995. console.error(err);
  6996. });
  6997. },
  6998. OtherMb(type) {
  6999. this.typeMode = type;
  7000. setTimeout(() => {
  7001. this.checkEva(this.checkId);
  7002. }, 0);
  7003. },
  7004. openMember() {
  7005. this.searchTN = "";
  7006. this.getTeacher();
  7007. this.dialogVisibleMember = true;
  7008. },
  7009. checkEva(id, type) {
  7010. this.dialogVisiblemb = false;
  7011. this.selectEva();
  7012. if (this.evalua != id && type == 2) {
  7013. this.$message.success("导入成功");
  7014. }
  7015. this.evalua = id;
  7016. this.checkId = id;
  7017. if (this.evalua != "") {
  7018. for (var i = 0; i < this.evaJuri.length; i++) {
  7019. if (this.evalua == this.evaJuri[i].id) {
  7020. this.eTitle = this.evaJuri[i].title;
  7021. this.eJson = JSON.parse(this.evaJuri[i].content);
  7022. }
  7023. }
  7024. this.data.data = [];
  7025. this.$forceUpdate();
  7026. setTimeout(() => {
  7027. this.setMindData();
  7028. }, 500);
  7029. }
  7030. },
  7031. deleteEva() {
  7032. let _this = this;
  7033. if (_this.evalua == "") {
  7034. this.$message.warning("内容已经清空了,请勿重复清空");
  7035. return;
  7036. }
  7037. _this
  7038. .$confirm("确定删除此目标吗?", "提示", {
  7039. confirmButtonText: "确定",
  7040. cancelButtonText: "取消",
  7041. type: "warning",
  7042. })
  7043. .then(() => {
  7044. _this.evalua = "";
  7045. _this.checkId = "";
  7046. _this.eTitle = "";
  7047. let _unitJson = _this.unitJson;
  7048. for (var i = 0; i < _unitJson.length; i++) {
  7049. let _task = _unitJson[i].chapterInfo[0].taskJson;
  7050. for (var j = 0; j < _task.length; j++) {
  7051. let _eList = _task[j].eList;
  7052. for (var k = 0; k < _eList.length; k++) {
  7053. delete _eList[k].target;
  7054. }
  7055. }
  7056. }
  7057. _this.$forceUpdate();
  7058. if (_this.cid) {
  7059. _this.updateWork();
  7060. }
  7061. })
  7062. .catch(() => {
  7063. return;
  7064. });
  7065. },
  7066. selectEva() {
  7067. let params = {
  7068. oid: this.oid,
  7069. };
  7070. this.ajax
  7071. .get(this.$store.state.api + "selectAllEvaluation", params)
  7072. .then((res) => {
  7073. this.evaJuri = res.data[0];
  7074. })
  7075. .catch((err) => {
  7076. console.error(err);
  7077. });
  7078. },
  7079. setMindData() {
  7080. let targetArray = [];
  7081. this.data.data = [];
  7082. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  7083. let _eJson = Object.keys(this.eJson);
  7084. let _e = this.eJson;
  7085. for (let i = 0; i < _eJson.length; i++) {
  7086. let element = _e[_eJson[i]];
  7087. this.data.data.push({
  7088. id: element.id,
  7089. parentid: "root",
  7090. topic: element.name,
  7091. });
  7092. // targetArray.push({
  7093. // id: element.id,
  7094. // parentid: "root",
  7095. // name: element.name,
  7096. // });
  7097. targetArray.push({
  7098. value: element.name,
  7099. label: element.name,
  7100. children: [],
  7101. });
  7102. let _eJsonc = Object.keys(element.child);
  7103. let _e2 = element.child;
  7104. for (let j = 0; j < _eJsonc.length; j++) {
  7105. let _ec = _e2[_eJsonc[j]];
  7106. this.data.data.push({
  7107. id: _ec.id,
  7108. parentid: element.id,
  7109. topic: _ec.name,
  7110. });
  7111. // targetArray.push({
  7112. // id: _ec.id,
  7113. // parentid: element.id,
  7114. // name: _ec.name,
  7115. // });
  7116. targetArray[i].children.push({
  7117. value: _ec.name,
  7118. label: _ec.name,
  7119. children: [],
  7120. });
  7121. let _eJsonz = Object.keys(_ec.child);
  7122. let _e3 = _ec.child;
  7123. for (let z = 0; z < _eJsonz.length; z++) {
  7124. let _ez = _e3[_eJsonz[z]];
  7125. this.data.data.push({
  7126. id: _ez.id,
  7127. parentid: _ec.id,
  7128. topic: _ez.name,
  7129. });
  7130. // targetArray.push({
  7131. // id: _ez.id,
  7132. // parentid: _ec.id,
  7133. // name: _ez.name,
  7134. // });
  7135. targetArray[i].children[j].children.push({
  7136. value: _ez.name,
  7137. label: _ez.name,
  7138. });
  7139. }
  7140. }
  7141. }
  7142. this.targetArray = targetArray;
  7143. this.$forceUpdate();
  7144. },
  7145. /*添加评价 */
  7146. addEList(index, tIndex) {
  7147. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7148. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7149. value: "",
  7150. detail: "",
  7151. score: 5,
  7152. })
  7153. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7154. { value: "", detail: "", score: 5 },
  7155. ]);
  7156. this.$forceUpdate();
  7157. },
  7158. forceUpdate() {
  7159. this.$forceUpdate();
  7160. },
  7161. deletEList(index, tIndex, eIndex) {
  7162. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7163. eIndex,
  7164. 1
  7165. );
  7166. this.$forceUpdate();
  7167. },
  7168. getChoosePic(t) {
  7169. this.chooseType = t;
  7170. this.getAllBanner();
  7171. },
  7172. getAllBanner() {
  7173. this.sysPicVisible = true;
  7174. let params = {
  7175. t: this.chooseType,
  7176. };
  7177. this.ajax
  7178. .get(this.$store.state.api + "selectAllBanner", params)
  7179. .then((res) => {
  7180. this.sysPic = res.data[0];
  7181. })
  7182. .catch((err) => {
  7183. console.error(err);
  7184. });
  7185. },
  7186. // getClass() {
  7187. // let params = {
  7188. // oid: this.oid,
  7189. // };
  7190. // this.ajax
  7191. // .get(this.$store.state.api + "selectClassBySchool", params)
  7192. // .then((res) => {
  7193. // this.classJuri = res.data[0];
  7194. // })
  7195. // .catch((err) => {
  7196. // console.error(err);
  7197. // });
  7198. // },
  7199. deleteSysPic() {
  7200. this.cover = [];
  7201. this.isSysPic = false;
  7202. },
  7203. deleteSelectPic() {
  7204. this.selectJson.url = "";
  7205. },
  7206. setEListStar() {
  7207. this.$forceUpdate();
  7208. },
  7209. deletRateList(i) {
  7210. this.rateJson.splice(i, 1);
  7211. },
  7212. addRateList() {
  7213. this.rateJson.push({ detail: "", score: 5, value: "" });
  7214. },
  7215. addSt() {
  7216. this.sentenceList.push({
  7217. sentenceTitle: "",
  7218. addSentence: [],
  7219. rightAnswer: [],
  7220. });
  7221. },
  7222. addSen(i) {
  7223. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7224. // this.isPushTitleList.push(this.sentenceTitle);
  7225. this.sentenceList[i].sentenceTitle = "";
  7226. },
  7227. setRightAnswer(s, i, j) {
  7228. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7229. this.sentenceList[i].rightAnswer.push(s);
  7230. }
  7231. },
  7232. returnCard(r, i, j) {
  7233. this.sentenceList[i].rightAnswer.splice(j, 1);
  7234. },
  7235. addSentenceTool() {
  7236. for (var i = 0; i < this.sentenceList.length; i++) {
  7237. if (this.sentenceList[i].rightAnswer.length == 0) {
  7238. this.$message.error("请将信息填写完整!");
  7239. return;
  7240. }
  7241. if (
  7242. this.sentenceList[i].addSentence.length !=
  7243. this.sentenceList[i].rightAnswer.length
  7244. ) {
  7245. this.$message.error("请将信息填写完整!");
  7246. return;
  7247. }
  7248. }
  7249. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7250. this.taskCount
  7251. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7252. this.sentenceList = [
  7253. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7254. ];
  7255. this.dialogVisibleSentence = false;
  7256. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7257. // itemTaskIndex
  7258. // ].toolChoose[toolIndex].tool = [];
  7259. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7260. // itemTaskIndex
  7261. // ].toolChoose[toolIndex].tool.push(i);
  7262. if (
  7263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7264. .toolChoose[this.toolIndex].tool != 47
  7265. ) {
  7266. this.addTools(47, this.taskCount, this.toolIndex);
  7267. }
  7268. },
  7269. addTableJson() {
  7270. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7271. // this.$message.error("请将信息填写完整!");
  7272. // return;
  7273. // }
  7274. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7275. this.taskCount
  7276. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7277. // this.tableJson = [{ text: "" }];
  7278. // this.dialogVisibleTable = false;
  7279. this.$message.success("上传成功");
  7280. if (
  7281. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7282. .toolChoose[this.toolIndex].tool != 48
  7283. ) {
  7284. this.addTools(48, this.taskCount, this.toolIndex);
  7285. }
  7286. },
  7287. addWordJson() {
  7288. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7289. this.taskCount
  7290. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7291. // this.wordJson = [{ text: "" }];
  7292. // this.dialogVisibleWord = false;
  7293. this.$message.success("上传成功");
  7294. if (
  7295. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7296. .toolChoose[this.toolIndex].tool != 52
  7297. ) {
  7298. this.addTools(52, this.taskCount, this.toolIndex);
  7299. }
  7300. },
  7301. addMoreUpload() {
  7302. if (this.uploadJson.length == 0) {
  7303. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7304. this.taskCount
  7305. ].toolChoose[this.toolIndex].uploadJson = [];
  7306. } else {
  7307. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7308. this.taskCount
  7309. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7310. }
  7311. this.uploadJson = [];
  7312. this.dialogVisibleMoreUpload = false;
  7313. if (
  7314. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7315. .toolChoose[this.toolIndex].tool != 50
  7316. ) {
  7317. this.addTools(50, this.taskCount, this.toolIndex);
  7318. }
  7319. },
  7320. addPreTime() {
  7321. if (this.preTime == 0) {
  7322. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7323. this.taskCount
  7324. ].toolChoose[this.toolIndex].preTime = 0;
  7325. } else {
  7326. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7327. this.taskCount
  7328. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7329. }
  7330. this.preTime = 0;
  7331. this.dialogVisiblePreTime = false;
  7332. if (
  7333. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7334. .toolChoose[this.toolIndex].tool != 10
  7335. ) {
  7336. this.addTools(10, this.taskCount, this.toolIndex);
  7337. }
  7338. },
  7339. goToTask(i) {
  7340. document.querySelector(".rb_c_box_right > .basic_box").scrollTop =
  7341. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  7342. this.isClickColor = i + 1;
  7343. },
  7344. taskMove(type, index) {
  7345. this.$confirm(
  7346. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  7347. "提示",
  7348. {
  7349. confirmButtonText: "确定",
  7350. cancelButtonText: "取消",
  7351. type: "warning",
  7352. }
  7353. )
  7354. .then(() => {
  7355. if (type == 1) {
  7356. if (index > 0) {
  7357. let a = JSON.parse(
  7358. JSON.stringify(
  7359. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7360. index - 1
  7361. ]
  7362. )
  7363. );
  7364. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7365. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7366. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7367. }
  7368. } else {
  7369. if (
  7370. index <
  7371. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7372. ) {
  7373. let a = JSON.parse(
  7374. JSON.stringify(
  7375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7376. index + 1
  7377. ]
  7378. )
  7379. );
  7380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7382. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7383. }
  7384. }
  7385. this.$forceUpdate();
  7386. })
  7387. .catch(() => {
  7388. return;
  7389. });
  7390. },
  7391. addGroup(i) {
  7392. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7393. this.groupJson.group.push({
  7394. name: "第" + (this.groupJson.group.length + 1) + "组",
  7395. });
  7396. },
  7397. deleteGroup(i) {
  7398. this.groupJson.group.splice(i, 1);
  7399. },
  7400. addGroupJson() {
  7401. for (var i = 0; i < this.groupJson.group.length; i++) {
  7402. if (!this.groupJson.group[i].name) {
  7403. this.$message.error("请将信息填写完整!");
  7404. return;
  7405. }
  7406. }
  7407. if (!this.groupJson.number) {
  7408. this.$message.error("请将信息填写完整!");
  7409. return;
  7410. }
  7411. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7412. this.taskCount
  7413. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7414. JSON.stringify(this.groupJson)
  7415. );
  7416. this.dialogVisibleGroup = false;
  7417. this.groupJson = {};
  7418. if (
  7419. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7420. .toolChoose[this.toolIndex].tool != 49
  7421. ) {
  7422. this.addTools(49, this.taskCount, this.toolIndex);
  7423. }
  7424. },
  7425. updateTime(preTime) {
  7426. this.preTime = preTime;
  7427. },
  7428. InviteChange(val) {
  7429. console.log(val);
  7430. return;
  7431. let array = JSON.parse(JSON.stringify(val));
  7432. this.inviteCode = this.inviteCode.filter((el) => {
  7433. if (val.indexOf(el.cid) != -1) {
  7434. array.splice(array.indexOf(el.cid), 1);
  7435. return el;
  7436. }
  7437. });
  7438. for (var i = 0; i < array.length; i++) {
  7439. this.getInviteCode(array[i]);
  7440. }
  7441. },
  7442. async getInviteCode(cid) {
  7443. let code = this.randomNumber();
  7444. let params = {
  7445. code: code,
  7446. oid: this.oid,
  7447. };
  7448. let type = 1;
  7449. for (var i = 0; i < this.inviteCode.length; i++) {
  7450. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7451. type = 2;
  7452. }
  7453. }
  7454. if (type == 2) {
  7455. this.getInviteCode(cid);
  7456. return;
  7457. }
  7458. const res = await this.ajax.get(
  7459. this.$store.state.api + "selectInviteCode2",
  7460. params
  7461. );
  7462. if (
  7463. res.data.length &&
  7464. res.data[0].length &&
  7465. res.data[0][0].courseId != this.cid
  7466. ) {
  7467. this.getInviteCode(cid);
  7468. return;
  7469. }
  7470. let array = [];
  7471. for (var i = 0; i < this.inviteCode.length; i++) {
  7472. array.push(this.inviteCode[i].cid);
  7473. }
  7474. if (array.indexOf(cid) != -1) {
  7475. this.inviteCode[array.indexOf(cid)].ic = code;
  7476. } else {
  7477. this.inviteCode.push({ cid: cid, ic: code });
  7478. }
  7479. },
  7480. OpenInviteD(cid) {
  7481. let array = [];
  7482. this.icode = "";
  7483. for (var i = 0; i < this.inviteCode.length; i++) {
  7484. array.push(this.inviteCode[i].cid);
  7485. }
  7486. if (array.indexOf(cid) != -1) {
  7487. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7488. }
  7489. this.inviteId = cid;
  7490. this.dialogVisibleInvite = true;
  7491. },
  7492. addInvite() {
  7493. let reg = /^[A-Za-z0-9]{4,}$/;
  7494. if (!reg.test(this.icode)) {
  7495. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7496. return;
  7497. }
  7498. let type = 1;
  7499. for (var i = 0; i < this.inviteCode.length; i++) {
  7500. if (
  7501. this.inviteCode[i].cid != this.inviteId &&
  7502. this.icode == this.inviteCode[i].ic
  7503. ) {
  7504. type = 2;
  7505. }
  7506. }
  7507. if (type == 2) {
  7508. this.$message.error("已有此随机码,不能重复");
  7509. return;
  7510. }
  7511. let params = {
  7512. code: this.icode,
  7513. oid: this.oid,
  7514. };
  7515. this.ajax
  7516. .get(this.$store.state.api + "selectInviteCode", params)
  7517. .then((res) => {
  7518. if (
  7519. res.data.length &&
  7520. res.data[0].length &&
  7521. res.data[0][0].courseId != this.cid
  7522. ) {
  7523. this.$message.error("已有此随机码,不能重复");
  7524. return;
  7525. }
  7526. let array = [];
  7527. for (var i = 0; i < this.inviteCode.length; i++) {
  7528. array.push(this.inviteCode[i].cid);
  7529. }
  7530. if (array.indexOf(this.inviteId) != -1) {
  7531. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7532. } else {
  7533. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7534. }
  7535. this.icode = "";
  7536. this.dialogVisibleInvite = false;
  7537. })
  7538. .catch((err) => {
  7539. console.error(err);
  7540. });
  7541. },
  7542. randomNumber() {
  7543. // 随机生成两位数
  7544. // let num = Math.floor(Math.random() * 900) + 100;
  7545. // 生成 0 到 99 之间的随机整数
  7546. const randomNumber = Math.floor(Math.random() * 100);
  7547. // 如果随机数小于 10,补上前导零
  7548. const num =
  7549. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7550. // 随机生成两个大写字母
  7551. let letters = "";
  7552. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7553. for (let i = 0; i < 3; i++) {
  7554. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7555. }
  7556. // 随机生成两位数字和字母的组合
  7557. let mix = "";
  7558. let chars =
  7559. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7560. for (let i = 0; i < 3; i++) {
  7561. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7562. mix += char;
  7563. }
  7564. // 随机选择一种类型
  7565. let type = Math.floor(Math.random() * 3);
  7566. return num;
  7567. // 根据类型输出结果
  7568. switch (type) {
  7569. case 0:
  7570. console.log(num); // 输出两位数
  7571. return num;
  7572. case 1:
  7573. console.log(letters); // 输出两个大写字母
  7574. return letters;
  7575. case 2:
  7576. console.log(mix); // 输出两位数字和字母的组合
  7577. return mix;
  7578. }
  7579. },
  7580. },
  7581. beforeDestroy() {
  7582. clearTimeout(this.timer);
  7583. this.timer = null;
  7584. clearInterval(this.timer2);
  7585. this.timer2 = null;
  7586. },
  7587. beforeRouteLeave(to, from, next) {
  7588. clearTimeout(this.timer);
  7589. this.timer = null;
  7590. clearInterval(this.timer2);
  7591. this.timer2 = null;
  7592. next();
  7593. },
  7594. created() {
  7595. this.getStudent();
  7596. this.getTeacher();
  7597. this.getClass();
  7598. this.getTemplate();
  7599. // this.selectType();
  7600. this.selectEva();
  7601. this.loading = false;
  7602. this.timer2 = setInterval(() => {
  7603. this.selectEva();
  7604. }, 5000);
  7605. setTimeout(() => {
  7606. this.selectCourseDetail();
  7607. }, 500);
  7608. },
  7609. };
  7610. </script>
  7611. <style scoped>
  7612. @media screen and (max-width: 1280px) {
  7613. .mbCss {
  7614. flex-direction: column !important;
  7615. }
  7616. .pjCss {
  7617. width: 100% !important;
  7618. }
  7619. .evaCss {
  7620. width: 100% !important;
  7621. }
  7622. }
  7623. .dialog_diy>>>.el-dialog__header {
  7624. background: #3c3c3c !important;
  7625. padding: 15px 20px;
  7626. }
  7627. .dialog_diy>>>.el-dialog__title {
  7628. color: #fff;
  7629. }
  7630. .dialog_diy>>>.el-dialog__headerbtn {
  7631. top: 19px;
  7632. }
  7633. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  7634. color: #fff;
  7635. }
  7636. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  7637. color: #fff;
  7638. }
  7639. .dialog_diy>>>.el-dialog__body,
  7640. .dialog_diy>>>.el-dialog__footer {
  7641. background: #fafafa;
  7642. }
  7643. .dialog_diy3>>>.el-dialog__body,
  7644. .dialog_diy3>>>.el-dialog__footer {
  7645. background: #eee !important;
  7646. }
  7647. .dialog_diy3>>>.el-dialog__body {
  7648. padding: 20px 20px;
  7649. }
  7650. .source_diy>>>.el-dialog {
  7651. height: 100% !important;
  7652. margin: 0 auto !important;
  7653. }
  7654. .source_diy>>>.el-dialog__body {
  7655. height: calc(100% - 185px);
  7656. overflow: auto;
  7657. background: #e6eaf0;
  7658. }
  7659. .source_diy>>>.el-dialog__footer {
  7660. background: #e6eaf0 !important;
  7661. }
  7662. .left {
  7663. border-right: 1px solid rgb(60, 94, 143);
  7664. display: flex;
  7665. flex-direction: column;
  7666. align-items: center;
  7667. min-height: 600px;
  7668. width: 385px;
  7669. height: 80%;
  7670. }
  7671. .tips {
  7672. color: rgb(128, 128, 128);
  7673. font-size: 12px;
  7674. width: 270px;
  7675. margin: 40px;
  7676. }
  7677. .pb_content {
  7678. height: 100% !important;
  7679. /* margin: 0 20px 0 20px; */
  7680. }
  7681. .pb_content_body {
  7682. width: 100% !important;
  7683. height: 100%;
  7684. }
  7685. .info_solid {
  7686. width: 270px;
  7687. height: 30px;
  7688. border-left: 1px solid #bdbdbd;
  7689. margin: 10px 0px 10px 30px;
  7690. }
  7691. .info_steps {
  7692. width: 270px;
  7693. font-size: 0.875rem;
  7694. display: flex;
  7695. align-items: center;
  7696. }
  7697. .info_steps span:nth-child(1) {
  7698. width: 30px;
  7699. height: 30px;
  7700. background: rgba(0, 0, 0, 0.38);
  7701. display: block;
  7702. color: #fff;
  7703. border-radius: 40px;
  7704. text-align: center;
  7705. line-height: 30px;
  7706. }
  7707. .steps_active {
  7708. background: #3d67bc !important;
  7709. }
  7710. .info_steps span:nth-child(2) {
  7711. margin-left: 5px;
  7712. }
  7713. .right {
  7714. height: 100%;
  7715. width: 100%;
  7716. display: flex;
  7717. overflow: hidden;
  7718. flex-direction: column;
  7719. }
  7720. .basic_box {
  7721. margin: 0 auto;
  7722. position: relative;
  7723. padding: 0 20px 0 20px;
  7724. }
  7725. .basic_box_success {
  7726. width: 100%;
  7727. min-height: 455px;
  7728. padding: 50px 0;
  7729. position: relative;
  7730. text-align: center;
  7731. border-bottom: 1px solid #bfbfbf;
  7732. box-sizing: border-box;
  7733. display: flex;
  7734. align-items: center;
  7735. flex-direction: column;
  7736. justify-content: center;
  7737. }
  7738. .info_title {
  7739. font-size: 1.5em;
  7740. margin-right: 25px;
  7741. /* margin: 20px 30px 20px 30px; */
  7742. }
  7743. .bInfo_title {
  7744. text-align: left;
  7745. margin: 10px 0;
  7746. }
  7747. .small_title {
  7748. font-size: 14px;
  7749. line-height: 40px;
  7750. }
  7751. .chapter_beizhu {
  7752. font-size: 12px;
  7753. font-weight: bold;
  7754. float: right;
  7755. color: rgb(128, 128, 128);
  7756. margin-top: 5px;
  7757. }
  7758. .chapter_uploadBox1 {
  7759. text-align: left;
  7760. background-color: rgb(242, 242, 242);
  7761. width: 100%;
  7762. height: 67px;
  7763. padding: 0px 15px;
  7764. border-radius: 8px;
  7765. overflow: hidden;
  7766. font-size: 16px;
  7767. box-sizing: border-box;
  7768. position: relative;
  7769. }
  7770. .chapter_add {
  7771. width: 100%;
  7772. height: 32px;
  7773. margin-top: 15px;
  7774. cursor: pointer;
  7775. }
  7776. .chapter_add_l {
  7777. margin-left: 5px;
  7778. width: 30px;
  7779. height: 30px;
  7780. float: left;
  7781. border: 1px solid #aaa;
  7782. color: #aaa;
  7783. border-radius: 50%;
  7784. font-size: 25px;
  7785. text-align: center;
  7786. }
  7787. .chapter_add_r {
  7788. font-size: 18px;
  7789. height: 40px;
  7790. line-height: 30px;
  7791. text-indent: 10px;
  7792. color: #aaa;
  7793. }
  7794. .chapter_add_r span {
  7795. font-size: 12px;
  7796. color: rgb(204, 204, 204);
  7797. }
  7798. .chapter_add_input {
  7799. display: none;
  7800. }
  7801. .line {
  7802. width: 85%;
  7803. margin: 0 auto;
  7804. border-top: 1px solid #e5e5e5;
  7805. margin-top: 20px;
  7806. }
  7807. .info_btnBox {
  7808. width: calc(100%);
  7809. display: flex;
  7810. justify-content: center;
  7811. height: 70px;
  7812. align-items: center;
  7813. background: #fff;
  7814. margin: 0 auto;
  7815. border-top: 2px solid rgb(228, 232, 237);
  7816. box-sizing: border-box;
  7817. }
  7818. .info_btn+.info_btn {
  7819. margin-left: 15px;
  7820. }
  7821. .info_btn,
  7822. .teacherWord {
  7823. color: #fff;
  7824. background-color: #0f7eff;
  7825. padding: 8px 24px;
  7826. font-size: 0.9375rem;
  7827. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  7828. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  7829. min-width: 64px;
  7830. font-weight: 500;
  7831. border-radius: 4px;
  7832. box-sizing: border-box;
  7833. border: none;
  7834. cursor: pointer;
  7835. }
  7836. .teacherWord {
  7837. width: 105px !important;
  7838. text-align: center !important;
  7839. line-height: 36px !important;
  7840. padding: 0 !important;
  7841. font-size: 14px !important;
  7842. margin: 10px 0 !important;
  7843. }
  7844. .wordTeacher {
  7845. display: flex;
  7846. flex-direction: column;
  7847. width: 20%;
  7848. text-align: center;
  7849. font-size: 14px;
  7850. margin: 30px 30px 0 10px;
  7851. background: #fff;
  7852. position: relative;
  7853. border-radius: 5px;
  7854. padding: 25px 0px;
  7855. }
  7856. .wordPic {
  7857. margin: 0 auto;
  7858. width: 60px;
  7859. height: 60px;
  7860. cursor: pointer;
  7861. }
  7862. .deleteWord {
  7863. width: 22px;
  7864. height: 22px;
  7865. position: absolute;
  7866. right: 5px;
  7867. top: -15px;
  7868. cursor: pointer;
  7869. display: none;
  7870. z-index: 999;
  7871. }
  7872. .wordPic>img,
  7873. .deleteWord>img,
  7874. .addToolImg>img {
  7875. width: 100%;
  7876. height: 100%;
  7877. }
  7878. .info_btn:hover {
  7879. background-color: #4f7cd5 !important;
  7880. }
  7881. .cru_selectBox {
  7882. display: flex;
  7883. margin: 24px 0 10px;
  7884. flex-wrap: nowrap;
  7885. white-space: nowrap;
  7886. overflow: auto;
  7887. position: relative;
  7888. height: 40px;
  7889. }
  7890. .cru_selectBox::-webkit-scrollbar {
  7891. /*滚动条整体样式*/
  7892. width: 6px;
  7893. /*高宽分别对应横竖滚动条的尺寸*/
  7894. height: 6px;
  7895. }
  7896. /*定义滚动条轨道 内阴影+圆角*/
  7897. .cru_selectBox::-webkit-scrollbar-track {
  7898. border-radius: 10px;
  7899. background-color: #eee;
  7900. }
  7901. /*定义滑块 内阴影+圆角*/
  7902. .cru_selectBox::-webkit-scrollbar-thumb {
  7903. border-radius: 10px;
  7904. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  7905. background-color: rgba(0, 0, 0, 0.1);
  7906. }
  7907. .cru_line {
  7908. position: absolute;
  7909. bottom: 0px;
  7910. transition: all 0.5s;
  7911. left: 0px;
  7912. width: 50px;
  7913. height: 4px;
  7914. left: 10px;
  7915. border-radius: 2px;
  7916. background: #3681FC;
  7917. }
  7918. .cru_select {
  7919. font-size: 18px;
  7920. margin-right: 20px;
  7921. margin-left: 5px;
  7922. cursor: pointer;
  7923. color: #0E1E33;
  7924. }
  7925. .cru_selected {
  7926. color: #3681FC !important;
  7927. font-weight: bold;
  7928. }
  7929. .chapter_contentbox {
  7930. display: flex;
  7931. align-items: center;
  7932. margin-top: 15px;
  7933. }
  7934. .chapter_contentbox .cc_title {
  7935. margin: 0px;
  7936. color: black;
  7937. display: block;
  7938. white-space: nowrap;
  7939. overflow: hidden;
  7940. text-overflow: ellipsis;
  7941. margin-right: 20px;
  7942. font-size: 18px;
  7943. height: 20px;
  7944. line-height: 22px;
  7945. min-width: fit-content;
  7946. display: flex;
  7947. }
  7948. .chapter_contentbox .cc_title::before {
  7949. content: '';
  7950. height: 100%;
  7951. width: 3px;
  7952. background: #3681FC;
  7953. border-radius: 3px;
  7954. opacity: 1;
  7955. display: block;
  7956. margin-right: 10px;
  7957. }
  7958. .chapter_contentbox .cc_input {
  7959. width: 100%;
  7960. }
  7961. .remove {
  7962. background-image: url("../../assets/icon/new/delete_u.png");
  7963. cursor: pointer;
  7964. opacity: 0.5;
  7965. width: 30px;
  7966. min-width: 30px;
  7967. height: 30px;
  7968. background-size: 100% 100%;
  7969. background-repeat: no-repeat;
  7970. margin-left: 10px;
  7971. }
  7972. .remove1 {
  7973. background-image: url("../../assets/remove1.png");
  7974. background-repeat: no-repeat;
  7975. background-position: 5px 10px;
  7976. width: 40px;
  7977. height: 50px;
  7978. cursor: pointer;
  7979. }
  7980. .binfo_input {
  7981. width: 100%;
  7982. margin: 0;
  7983. padding: 12px 14px;
  7984. display: block;
  7985. min-width: 0;
  7986. outline: none;
  7987. box-sizing: border-box;
  7988. background: none;
  7989. border: none;
  7990. border-radius: 4px;
  7991. background: #fff;
  7992. font-size: 18px;
  7993. resize: none;
  7994. font-family: 'Microsoft YaHei';
  7995. }
  7996. .binfo_textarea {
  7997. border: 1px solid #CAD1DC;
  7998. font-size: 16px;
  7999. resize: none;
  8000. background: #fcfcfc;
  8001. font-family: 'Microsoft YaHei';
  8002. }
  8003. .binfo_input:focus-visible {
  8004. /* border: 1px solid rgba(61, 103, 188); */
  8005. }
  8006. .time {
  8007. display: flex;
  8008. margin: 35px 0 80px 0;
  8009. }
  8010. .chapter_btnbox {
  8011. width: 160px;
  8012. border-radius: 5px;
  8013. border: 2px dashed gray;
  8014. display: flex;
  8015. padding: 8px 50px;
  8016. align-items: center;
  8017. justify-content: center;
  8018. margin: 30px auto 0;
  8019. cursor: pointer;
  8020. }
  8021. .icon_add {
  8022. position: relative;
  8023. width: 24px;
  8024. padding-top: 20px;
  8025. border-radius: 100%;
  8026. border-width: 2px;
  8027. border-style: solid;
  8028. border-color: gray;
  8029. }
  8030. .icon_add i:nth-child(1) {
  8031. position: absolute;
  8032. left: 50%;
  8033. top: 50%;
  8034. height: 60%;
  8035. transform: translate(-50%, -50%);
  8036. border-width: 1px;
  8037. border-style: solid;
  8038. border-color: inherit;
  8039. }
  8040. .icon_add i:nth-child(2) {
  8041. position: absolute;
  8042. top: 50%;
  8043. left: 50%;
  8044. width: 60%;
  8045. transform: translate(-50%, -50%);
  8046. border-width: 1px;
  8047. border-style: solid;
  8048. border-color: inherit;
  8049. }
  8050. .chapter_btn_w {
  8051. font-size: 0.9375rem;
  8052. font-weight: bold;
  8053. color: gray;
  8054. margin-left: 20px;
  8055. }
  8056. .disUoloadSty>>>.el-icon-plus {
  8057. display: none !important;
  8058. /* 上传按钮隐藏 */
  8059. }
  8060. .imgLeft {
  8061. margin: 15px 0;
  8062. }
  8063. .add_info_box {
  8064. margin: 20px 0 0;
  8065. }
  8066. .add_info_box button {
  8067. /* margin: 0 10px 10px 0; */
  8068. }
  8069. .add_info_box2 {
  8070. display: flex;
  8071. align-items: center;
  8072. flex-wrap: wrap;
  8073. }
  8074. .add_info_box2::after {
  8075. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  8076. color: red;
  8077. font-size: 14px;
  8078. margin-bottom: 10px;
  8079. }
  8080. .add_chapters_box {
  8081. text-align: left;
  8082. background-color: #fff;
  8083. width: 100%;
  8084. border-radius: 4px;
  8085. font-size: 16px;
  8086. box-sizing: border-box;
  8087. position: relative;
  8088. padding: 20px 15px;
  8089. height: 200px;
  8090. overflow-y: auto;
  8091. overflow-x: hidden;
  8092. }
  8093. .homework_box {
  8094. display: flex;
  8095. align-items: flex-start;
  8096. flex-wrap: wrap;
  8097. margin: 15px 0 0 0;
  8098. flex-direction: column;
  8099. align-content: flex-start;
  8100. }
  8101. .course_homework {
  8102. display: flex;
  8103. justify-content: center;
  8104. flex-direction: row;
  8105. align-items: center;
  8106. margin: 0 10px 0 0;
  8107. }
  8108. .course_homework>>>.el-input__inner {
  8109. width: 140px;
  8110. margin-left: 15px;
  8111. }
  8112. .chapter_upload_move {
  8113. position: relative;
  8114. background-color: #fff;
  8115. position: absolute;
  8116. width: 100%;
  8117. top: 0px;
  8118. left: 0px;
  8119. border: 1px solid #eee;
  8120. border-radius: 5px;
  8121. transition: width 2s;
  8122. -moz-transition: width 2s;
  8123. -webkit-transition: width 2s;
  8124. -o-transition: width 2s;
  8125. }
  8126. .chapter_upload_l_i {
  8127. background-image: url("../../assets/icon.png");
  8128. background-position: 3px -165px;
  8129. width: 30px;
  8130. height: 30px;
  8131. margin: 10px auto 0 auto;
  8132. }
  8133. .course_input_box {
  8134. display: flex;
  8135. margin-right: 20px;
  8136. width: 800px;
  8137. align-items: center;
  8138. }
  8139. .course_input_box>.binfo_input {
  8140. width: calc(100% - 48px - 200px - 20px);
  8141. margin: 0 10px;
  8142. }
  8143. .bb_courseIcon {
  8144. width: 48px;
  8145. height: 48px;
  8146. background: #3681FC;
  8147. border-radius: 6px;
  8148. display: flex;
  8149. align-items: center;
  8150. justify-content: center;
  8151. }
  8152. .bb_courseIcon>img {
  8153. width: 25px;
  8154. height: auto
  8155. }
  8156. .big_box {
  8157. margin-top: 20px;
  8158. display: flex;
  8159. border-bottom: 1px solid #E0E2ED;
  8160. }
  8161. .left_first {
  8162. display: flex;
  8163. flex-direction: column;
  8164. flex-wrap: nowrap;
  8165. width: calc(100% - 400px);
  8166. padding: 0 100px 0 0;
  8167. box-sizing: border-box;
  8168. }
  8169. .right_first {
  8170. width: 400px;
  8171. display: flex;
  8172. align-items: center;
  8173. justify-content: center;
  8174. border-left: 1px solid #E0E2ED;
  8175. box-sizing: border-box;
  8176. }
  8177. .c_info_title {
  8178. padding: 15px 0 15px 20px;
  8179. font-size: 16px;
  8180. font-weight: bold;
  8181. margin: 0 auto;
  8182. }
  8183. .right_title {
  8184. height: 30px;
  8185. padding: 15px 0 15px 20px;
  8186. border-bottom: 1px solid #f2f2f2;
  8187. font-size: 1.5em;
  8188. font-weight: bold;
  8189. color: #0f7eff;
  8190. margin: 0 auto;
  8191. }
  8192. .people {
  8193. border: 1px solid rgb(229 229 229);
  8194. /* height: 495px; */
  8195. height: 350px;
  8196. border-radius: 5px;
  8197. width: 100%;
  8198. overflow: auto;
  8199. }
  8200. .people_top {
  8201. display: flex;
  8202. width: 100%;
  8203. /* justify-content: space-between; */
  8204. /* align-items: center; */
  8205. flex-direction: column;
  8206. padding: 10px 25px 0;
  8207. box-sizing: border-box;
  8208. }
  8209. .people_nav,
  8210. .people_top_right {
  8211. /* padding: 20px 0 0 20px; */
  8212. }
  8213. .people_top_right {
  8214. height: 40px;
  8215. margin-bottom: 10px;
  8216. }
  8217. .people_search {
  8218. display: flex;
  8219. position: relative;
  8220. }
  8221. .people_search>>>.el-input__inner {
  8222. /* height: 25px; */
  8223. width: 95%;
  8224. }
  8225. .search_img {
  8226. width: 20px;
  8227. height: 20px;
  8228. position: absolute;
  8229. right: 30px;
  8230. top: 50%;
  8231. transform: translateY(-50%);
  8232. }
  8233. .search_img>img {
  8234. width: 100%;
  8235. height: 100%;
  8236. }
  8237. .people_name {
  8238. display: flex;
  8239. justify-content: flex-start;
  8240. padding: 20px 0 0 25px;
  8241. flex-direction: column;
  8242. flex-wrap: wrap;
  8243. }
  8244. .p_box {
  8245. position: relative;
  8246. }
  8247. .people_name>>>.el-checkbox {
  8248. width: 100%;
  8249. display: flex;
  8250. align-items: center;
  8251. margin-bottom: 10px;
  8252. }
  8253. .people_name>>>.el-checkbox__label {
  8254. text-overflow: ellipsis;
  8255. overflow: hidden;
  8256. width: calc(100%);
  8257. }
  8258. .people_name2>>>.el-checkbox__label {
  8259. width: calc(100% - 130px);
  8260. }
  8261. .inviteCode {
  8262. position: absolute;
  8263. right: 30px;
  8264. color: #237ade;
  8265. top: 0;
  8266. cursor: pointer;
  8267. font-size: 13px;
  8268. }
  8269. .noneInvite {
  8270. color: #a8a8a8;
  8271. }
  8272. .inviteImg {
  8273. position: absolute;
  8274. right: 5px;
  8275. top: 0;
  8276. width: 20px;
  8277. }
  8278. .right_img {
  8279. width: 150px;
  8280. height: 150px;
  8281. margin: 0 auto;
  8282. }
  8283. .right_img>img {
  8284. width: 100%;
  8285. height: 100%;
  8286. }
  8287. .number {
  8288. margin-top: 20px;
  8289. color: #4aa6ff;
  8290. text-decoration: underline;
  8291. }
  8292. .success_button {
  8293. display: flex;
  8294. text-align: center;
  8295. margin: 5% 0 auto;
  8296. flex-direction: row;
  8297. justify-content: center;
  8298. }
  8299. .look_course {
  8300. margin-right: 40px;
  8301. background: #3d67bc;
  8302. width: 200px;
  8303. height: 35px;
  8304. line-height: 35px;
  8305. color: #fff;
  8306. text-align: center;
  8307. font-size: 14px;
  8308. border-radius: 5px;
  8309. cursor: pointer;
  8310. }
  8311. .attend_others {
  8312. width: 250px;
  8313. background: #4fb13c;
  8314. height: 35px;
  8315. line-height: 35px;
  8316. color: #fff;
  8317. text-align: center;
  8318. font-size: 14px;
  8319. border-radius: 5px;
  8320. cursor: pointer;
  8321. }
  8322. .dialog_diy2>>>.el-dialog__body {
  8323. text-align: center;
  8324. }
  8325. .write_togother {
  8326. position: absolute;
  8327. right: 45px;
  8328. display: flex;
  8329. top: 5%;
  8330. }
  8331. .write_people {
  8332. font-size: 14px;
  8333. line-height: 50px;
  8334. padding-right: 10px;
  8335. }
  8336. .end_write {
  8337. background: #3d67bc;
  8338. color: #fff;
  8339. width: 100px;
  8340. height: 35px;
  8341. line-height: 35px;
  8342. text-align: center;
  8343. font-size: 14px;
  8344. border-radius: 5px;
  8345. cursor: pointer;
  8346. }
  8347. .chapter_upload+.chapter_upload {
  8348. margin-top: 15px;
  8349. }
  8350. .chapter_upload {
  8351. height: 35px;
  8352. position: relative;
  8353. display: flex;
  8354. align-items: center;
  8355. width: 100%;
  8356. min-height: 35px;
  8357. box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16);
  8358. border-radius: 4px;
  8359. overflow: hidden;
  8360. }
  8361. .chapter_upload_t {
  8362. background-color: #fff;
  8363. position: absolute;
  8364. height: 100%;
  8365. top: 0px;
  8366. left: 0px;
  8367. box-sizing: border-box;
  8368. }
  8369. .chapter_upload_o {
  8370. width: 100%;
  8371. height: 100%;
  8372. position: relative;
  8373. z-index: 1;
  8374. }
  8375. .chapter_upload_ic {
  8376. margin: 0 15px 0px auto;
  8377. display: flex;
  8378. align-items: center;
  8379. }
  8380. .chapter_upload_ic_l {
  8381. width: 50px;
  8382. height: 50px;
  8383. float: left;
  8384. }
  8385. .chapter_upload_ic_l div {
  8386. width: 30px;
  8387. height: 35px;
  8388. background: url("../../assets/icon/icon.png");
  8389. }
  8390. .chapter_upload_ic_r {
  8391. height: 100%;
  8392. display: flex;
  8393. align-items: center;
  8394. cursor: pointer;
  8395. }
  8396. .chapter_upload_ic_r div {
  8397. width: 18px;
  8398. height: 18px;
  8399. background-image: url("../../assets/icon/new/delete_u.png");
  8400. background-size: 100% 100%;
  8401. }
  8402. .chapter_upload_n {
  8403. display: flex;
  8404. text-indent: 10px;
  8405. text-decoration: none;
  8406. text-overflow: ellipsis;
  8407. white-space: nowrap;
  8408. overflow: hidden;
  8409. width: 55%;
  8410. margin-left: 10px;
  8411. cursor: pointer;
  8412. margin-top: 2px;
  8413. align-items: center;
  8414. }
  8415. .chapter_upload_l_i2,
  8416. .chapter_upload_l_i3,
  8417. .chapter_upload_l_i8,
  8418. .chapter_upload_l_i6,
  8419. .chapter_upload_l_i12,
  8420. .chapter_upload_l_i13 {
  8421. width: 15px;
  8422. height: 15px;
  8423. background-size: 100% 100%;
  8424. }
  8425. .chapter_upload_l_i2 {
  8426. background-image: url("../../assets/icon/new/u_word.png");
  8427. }
  8428. .chapter_upload_l_i3 {
  8429. background-image: url("../../assets/icon/new/u_video.png");
  8430. }
  8431. .chapter_upload_l_i8 {
  8432. background-image: url("../../assets/icon/new/u_url.png");
  8433. }
  8434. .chapter_upload_l_i6 {
  8435. background-image: url("../../assets/icon/new/u_url.png");
  8436. }
  8437. .chapter_upload_l_i12 {
  8438. background-image: url("../../assets/icon/new/u_word.png");
  8439. }
  8440. .chapter_upload_l_i13 {
  8441. background-image: url("../../assets/icon/new/u_img.png");
  8442. }
  8443. .chapter_upload_noSee {
  8444. background-image: url("../../assets/icon/new/u_noUpload.png");
  8445. width: 18px;
  8446. height: 18px;
  8447. background-size: 100% 100%;
  8448. display: block;
  8449. margin-right: 20px;
  8450. }
  8451. .chapter_upload_ud {
  8452. display: flex;
  8453. flex-direction: row;
  8454. justify-content: center;
  8455. margin: 0 20px 0 0;
  8456. }
  8457. .chapter_upload_ud>.chapter_upload_up {
  8458. margin-bottom: 0;
  8459. margin-right: 5px;
  8460. }
  8461. .chapter_upload_down,
  8462. .chapter_upload_up {
  8463. width: 20px;
  8464. height: 20px;
  8465. background: #F0F4FA;
  8466. cursor: pointer;
  8467. margin: 0 auto;
  8468. border-radius: 5px;
  8469. display: flex;
  8470. justify-content: center;
  8471. align-items: center;
  8472. }
  8473. .chapter_upload_up::after,
  8474. .chapter_upload_down::after {
  8475. content: '';
  8476. background-image: url('../../assets/icon/new/downBtn.png');
  8477. width: 13px;
  8478. height: 13px;
  8479. background-size: 100% 100%;
  8480. display: block;
  8481. }
  8482. .chapter_upload_up::after {
  8483. background-image: url('../../assets/icon/new/upBtn.png') !important;
  8484. }
  8485. .chapter_upload_up {
  8486. margin-bottom: 5px;
  8487. }
  8488. .addWordStyle {
  8489. display: flex;
  8490. flex-direction: row;
  8491. justify-content: flex-start;
  8492. overflow-x: auto;
  8493. white-space: nowrap;
  8494. flex-wrap: wrap;
  8495. }
  8496. /* table 样式 */
  8497. .cont>>>table {
  8498. border-top: 1px solid #ccc;
  8499. border-left: 1px solid #ccc;
  8500. }
  8501. .cont>>>table td,
  8502. .cont>>>table th {
  8503. border-bottom: 1px solid #ccc;
  8504. border-right: 1px solid #ccc;
  8505. /* padding: 20px 5px; */
  8506. padding: 5px 10px;
  8507. max-width: 0px;
  8508. height: 30px;
  8509. vertical-align: baseline;
  8510. }
  8511. .cont>>>table th {
  8512. border-bottom: 2px solid #ccc;
  8513. text-align: center;
  8514. }
  8515. /* blockquote 样式 */
  8516. .cont>>>blockquote {
  8517. display: block;
  8518. border-left: 8px solid #d0e5f2;
  8519. padding: 5px 10px;
  8520. margin: 10px 0;
  8521. line-height: 1.4;
  8522. font-size: 100%;
  8523. background-color: #f1f1f1;
  8524. }
  8525. /* code 样式 */
  8526. .cont>>>code {
  8527. display: inline-block;
  8528. *display: inline;
  8529. *zoom: 1;
  8530. background-color: #f1f1f1;
  8531. border-radius: 3px;
  8532. padding: 3px 5px;
  8533. margin: 0 3px;
  8534. }
  8535. .cont>>>pre code {
  8536. display: block;
  8537. }
  8538. /* ul ol 样式 */
  8539. .cont>>>ul,
  8540. ol {
  8541. margin: 10px 0 10px 20px;
  8542. }
  8543. .wordbox {
  8544. display: flex;
  8545. flex-wrap: wrap;
  8546. cursor: pointer;
  8547. width: 100%;
  8548. }
  8549. .checkword {
  8550. width: 22px;
  8551. height: 22px;
  8552. margin: 10px auto 0;
  8553. cursor: pointer;
  8554. }
  8555. .checkword img {
  8556. width: 100%;
  8557. }
  8558. .stepBg {
  8559. display: flex;
  8560. justify-content: space-between;
  8561. align-items: center;
  8562. background: #fff;
  8563. width: calc(100%);
  8564. margin: 0 auto;
  8565. }
  8566. .stepBorder {
  8567. height: 3px !important;
  8568. background: #CAD1DC;
  8569. width: 100px !important;
  8570. margin: 0 15px !important;
  8571. position: relative;
  8572. }
  8573. .border-active {
  8574. background: #3681FC !important
  8575. }
  8576. .border-active::before,
  8577. .border-active::after {
  8578. border-color: #3681FC !important
  8579. }
  8580. .stepBorder::before,
  8581. .stepBorder::after {
  8582. content: '';
  8583. width: 9px;
  8584. height: 9px;
  8585. background: #FFFFFF;
  8586. opacity: 1;
  8587. border: 2px solid #ACB4BF;
  8588. display: block;
  8589. box-sizing: border-box;
  8590. border-radius: 50%;
  8591. position: absolute;
  8592. top: 50%;
  8593. transform: translateY(-50%);
  8594. }
  8595. .stepBorder::after {
  8596. right: -9px;
  8597. }
  8598. .stepTop {
  8599. width: 100%;
  8600. /* border-radius: 10px; */
  8601. display: flex;
  8602. justify-content: center;
  8603. align-items: center;
  8604. flex-wrap: nowrap;
  8605. background: #fff;
  8606. /* top: 18%; */
  8607. height: 80px;
  8608. border-bottom: 2px solid rgb(228, 232, 237);
  8609. box-sizing: border-box;
  8610. }
  8611. .stepTop>div img {
  8612. width: 100%;
  8613. }
  8614. .stepTop>div {
  8615. height: 50px;
  8616. width: 180px;
  8617. cursor: pointer;
  8618. margin: 10px 0;
  8619. border-radius: 10px;
  8620. }
  8621. .first,
  8622. .second,
  8623. .third,
  8624. .four {
  8625. background: #3681FC;
  8626. height: 90px;
  8627. color: #fff;
  8628. display: flex;
  8629. flex-direction: row;
  8630. align-items: center;
  8631. justify-content: center;
  8632. }
  8633. .first>div:nth-child(1),
  8634. .second>div:nth-child(1),
  8635. .third>div:nth-child(1),
  8636. .four>div:nth-child(1) {
  8637. margin: 5px 10px 0 0;
  8638. width: 2rem;
  8639. }
  8640. .firstNo,
  8641. .secondNo,
  8642. .thirdNo,
  8643. .fourNo {
  8644. background: #e7e7e7;
  8645. color: #adadad;
  8646. display: flex;
  8647. flex-direction: row;
  8648. align-items: center;
  8649. justify-content: center;
  8650. }
  8651. .firstNo>div:nth-child(1),
  8652. .secondNo>div:nth-child(1),
  8653. .thirdNo>div:nth-child(1),
  8654. .fourNo>div:nth-child(1) {
  8655. margin: 5px 10px 0 0;
  8656. width: 2rem;
  8657. }
  8658. .uploadWidth>>>.el-upload {
  8659. width: 60px;
  8660. height: 60px;
  8661. position: relative;
  8662. }
  8663. .addPeople {
  8664. background: #fa6060;
  8665. width: 150px;
  8666. height: 40px;
  8667. color: #fff;
  8668. border-radius: 5px;
  8669. text-align: center;
  8670. line-height: 40px;
  8671. font-size: 14px;
  8672. cursor: pointer;
  8673. }
  8674. .kcImg {
  8675. width: 60px;
  8676. margin-left: 10px;
  8677. }
  8678. .zyImg {
  8679. width: 55px;
  8680. margin: 0 10px;
  8681. }
  8682. .deleteZy {
  8683. width: 20px;
  8684. position: absolute;
  8685. top: 5px;
  8686. right: 5px;
  8687. cursor: pointer;
  8688. }
  8689. .kcImg>img,
  8690. .zyImg>img,
  8691. .deleteZy>img {
  8692. width: 100%;
  8693. height: 100%;
  8694. }
  8695. .zyBox {
  8696. display: flex;
  8697. flex-direction: row;
  8698. align-items: center;
  8699. background: #67d37d;
  8700. color: #fff;
  8701. width: 210px;
  8702. margin: 20px 20px 0 0;
  8703. border-radius: 10px;
  8704. height: 70px;
  8705. position: relative;
  8706. }
  8707. .upCss {
  8708. display: flex;
  8709. flex-direction: row;
  8710. justify-content: flex-start;
  8711. }
  8712. .upCss>>>.el-icon-plus {
  8713. position: none !important;
  8714. width: 200px;
  8715. height: 100px;
  8716. display: flex;
  8717. flex-wrap: nowrap;
  8718. flex-direction: column;
  8719. align-items: center;
  8720. justify-content: center;
  8721. border: 1px dashed #ccc;
  8722. min-width: 78px;
  8723. min-height: 100px;
  8724. z-index: 999;
  8725. }
  8726. .upCss>>>.el-upload-list__item-name {
  8727. width: 100px;
  8728. white-space: nowrap;
  8729. overflow: hidden;
  8730. text-overflow: ellipsis;
  8731. }
  8732. .addStageImg {
  8733. min-width: 20px;
  8734. min-height: 20px;
  8735. width: 20px;
  8736. height: 20px;
  8737. cursor: pointer;
  8738. }
  8739. .addHW {
  8740. width: 28px;
  8741. height: 28px;
  8742. cursor: pointer;
  8743. }
  8744. .addStageImg>img,
  8745. .addHW>img {
  8746. width: 100%;
  8747. height: 100%;
  8748. }
  8749. .addNewPP>>>.el-dialog__body {
  8750. padding: 5px 20px;
  8751. }
  8752. .addNewPP>>>.el-dialog {
  8753. margin-top: 5vh !important;
  8754. }
  8755. .isHeight {
  8756. height: 680px;
  8757. }
  8758. .toolChoose {
  8759. display: flex;
  8760. /* width: 100%; */
  8761. flex-direction: row;
  8762. flex-wrap: wrap;
  8763. }
  8764. .tool {
  8765. display: flex;
  8766. flex-direction: column;
  8767. flex-wrap: nowrap;
  8768. width: fit-content;
  8769. margin: 10px 0 10px 0;
  8770. align-items: center;
  8771. }
  8772. .tool+.tool {
  8773. margin-right: 45px;
  8774. }
  8775. .whiteBIcon {
  8776. width: 80px;
  8777. cursor: pointer;
  8778. display: flex;
  8779. flex-direction: column;
  8780. flex-wrap: nowrap;
  8781. align-items: center;
  8782. }
  8783. .whiteBIcon>img,
  8784. .toolIcon>img,
  8785. .arrow>img {
  8786. width: 100%;
  8787. height: 100%;
  8788. }
  8789. .check img {
  8790. width: 20px;
  8791. height: 20px;
  8792. }
  8793. .whiteBIcon>img {
  8794. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  8795. border-radius: 15px;
  8796. }
  8797. .check {
  8798. /* width: 20px;
  8799. height: 20px; */
  8800. cursor: pointer;
  8801. margin: 10px 0;
  8802. }
  8803. .checkDiv {
  8804. display: flex;
  8805. align-items: center;
  8806. }
  8807. .checkDiv span {
  8808. margin-left: 5px;
  8809. color: #858585;
  8810. }
  8811. .customWidth>>>.el-dialog {
  8812. min-width: 500px !important;
  8813. }
  8814. .a_addBox {
  8815. margin: 10px 0;
  8816. background: #fff;
  8817. padding: 15px;
  8818. max-height: 600px;
  8819. overflow: auto;
  8820. }
  8821. .a_add_box {
  8822. border-bottom: 2px solid #eee;
  8823. padding-bottom: 25px;
  8824. }
  8825. .a_add_head {
  8826. display: flex;
  8827. align-items: center;
  8828. justify-content: space-between;
  8829. margin: 10px 0 0 0;
  8830. font-size: 18px;
  8831. }
  8832. .a_add_checkType {
  8833. margin-top: 10px;
  8834. display: flex;
  8835. font-size: 16px;
  8836. align-items: center;
  8837. }
  8838. .a_add_checkType span {
  8839. box-sizing: border-box;
  8840. padding: 0 0 5px 0;
  8841. cursor: pointer;
  8842. }
  8843. .a_add_checkType span+span {
  8844. margin-left: 10px;
  8845. }
  8846. .a_add_checkType .active {
  8847. border-bottom: 2px solid #409eff;
  8848. color: #409eff;
  8849. }
  8850. .a_add_head .a_add_head_input {
  8851. width: 300px;
  8852. }
  8853. .a_add_head .a_add_head_div {
  8854. display: flex;
  8855. align-items: center;
  8856. justify-content: space-between;
  8857. }
  8858. .a_add_body {
  8859. display: flex;
  8860. /* align-items: center; */
  8861. align-items: flex-end;
  8862. }
  8863. .a_add_input {
  8864. display: flex;
  8865. align-items: center;
  8866. flex-wrap: wrap;
  8867. }
  8868. .a_add_input_choice {
  8869. flex-direction: column;
  8870. margin-right: 10px;
  8871. }
  8872. .a_add_input_choice>>>.el-radio {
  8873. display: flex;
  8874. align-items: center;
  8875. flex-direction: row-reverse;
  8876. margin: 30px 0 0 0;
  8877. }
  8878. .a_add_input_choice>>>.el-checkbox {
  8879. display: flex;
  8880. align-items: center;
  8881. flex-direction: row-reverse;
  8882. margin: 30px 0 0 0;
  8883. }
  8884. .width100 {
  8885. width: 100%;
  8886. }
  8887. .a_add_input .a_add_persent {
  8888. width: 100%;
  8889. }
  8890. .a_add_persent_div {
  8891. width: 100%;
  8892. display: flex;
  8893. align-items: center;
  8894. }
  8895. .a_add_persent_div span {
  8896. margin: 5px 0;
  8897. }
  8898. .a_add_persent_div span:nth-child(1) {
  8899. width: 30%;
  8900. }
  8901. .a_add_persent_div span:nth-child(2) {
  8902. width: 7%;
  8903. }
  8904. .a_add_persent_div span:nth-child(3) {
  8905. width: 40%;
  8906. }
  8907. .a_add_body_div {
  8908. display: flex;
  8909. align-items: center;
  8910. justify-content: center;
  8911. /* flex-direction: column; */
  8912. }
  8913. .all_choose {
  8914. display: flex;
  8915. flex-direction: row;
  8916. align-items: flex-start;
  8917. width: 100%;
  8918. }
  8919. .all_choose+.all_choose {
  8920. margin-top: 10px
  8921. }
  8922. .all_choose>span {
  8923. min-width: fit-content;
  8924. display: block;
  8925. white-space: nowrap;
  8926. overflow: hidden;
  8927. text-overflow: ellipsis;
  8928. margin-right: 20px;
  8929. font-weight: bold;
  8930. font-size: 14px;
  8931. }
  8932. .all_choose>>>.el-checkbox-group {
  8933. display: flex;
  8934. flex-direction: row;
  8935. width: 100%;
  8936. flex-wrap: wrap;
  8937. align-content: center;
  8938. justify-content: flex-start;
  8939. align-items: center;
  8940. margin-top: 3px;
  8941. }
  8942. .all_choose>.el-checkbox-group>>>.el-checkbox {
  8943. margin-bottom: 10px;
  8944. display: flex;
  8945. flex-direction: row;
  8946. align-items: center;
  8947. }
  8948. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  8949. min-width: 80px;
  8950. overflow: hidden;
  8951. width: 80px;
  8952. text-overflow: ellipsis;
  8953. white-space: nowrap;
  8954. }
  8955. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  8956. width: auto;
  8957. }
  8958. .choose>div:nth-child(3)>span {
  8959. /* letter-spacing: 0 !important; */
  8960. }
  8961. .choose {
  8962. display: flex;
  8963. flex-direction: column;
  8964. flex-wrap: nowrap;
  8965. height: 100%;
  8966. justify-content: space-evenly;
  8967. align-items: flex-start;
  8968. }
  8969. .both {
  8970. display: flex;
  8971. flex-direction: row;
  8972. flex-wrap: wrap;
  8973. width: 100%;
  8974. align-items: center;
  8975. justify-content: flex-start;
  8976. margin: 15px 0;
  8977. }
  8978. .notice>>>.el-dialog {
  8979. width: 500px !important;
  8980. text-align: center;
  8981. }
  8982. .notice>>>.el-button {
  8983. margin-top: 20px;
  8984. }
  8985. .whiteBg {
  8986. /* background: #fff; */
  8987. border-radius: 10px;
  8988. }
  8989. .wb_j_box {
  8990. display: flex;
  8991. width: 100%;
  8992. padding: 20px 20px 0;
  8993. box-sizing: border-box;
  8994. }
  8995. .wb_j_box_content {
  8996. width: calc(100% - 55% - 100px);
  8997. display: flex;
  8998. align-items: center;
  8999. }
  9000. .wb_j_box_p_box {
  9001. max-width: calc(100% - 200px);
  9002. word-break: break-all;
  9003. overflow: hidden;
  9004. margin: 0 0 0 10px;
  9005. font-size: 14px;
  9006. color: #6e6e6e;
  9007. }
  9008. .chooseWho {
  9009. display: flex;
  9010. width: 380px;
  9011. flex-direction: row;
  9012. flex-wrap: nowrap;
  9013. justify-content: space-between;
  9014. padding-bottom: 10px;
  9015. }
  9016. .chooseWho>div {
  9017. cursor: pointer;
  9018. padding-bottom: 10px;
  9019. font-weight: bold;
  9020. }
  9021. .isChooseActive {
  9022. color: #3e88f4;
  9023. border-bottom: 2px solid #2f80f3;
  9024. }
  9025. .toolSort {
  9026. display: flex;
  9027. flex-direction: row;
  9028. flex-wrap: wrap;
  9029. justify-content: flex-start;
  9030. align-items: flex-start;
  9031. }
  9032. .toolSort>div {
  9033. margin-right: 45px;
  9034. }
  9035. .tools {
  9036. width: 100%;
  9037. display: flex;
  9038. flex-direction: column;
  9039. flex-wrap: nowrap;
  9040. align-items: flex-start;
  9041. }
  9042. .leftTools,
  9043. .rightTools {
  9044. width: 50%;
  9045. }
  9046. .leftTools+.leftTools{
  9047. border-top: 1px solid #dbdbdb;
  9048. padding-top: 30px;
  9049. }
  9050. .rightTools {
  9051. display: flex;
  9052. flex-direction: row;
  9053. flex-wrap: nowrap;
  9054. justify-content: space-around;
  9055. }
  9056. .firstToolList {
  9057. display: flex;
  9058. flex-direction: column;
  9059. flex-wrap: nowrap;
  9060. align-items: center;
  9061. }
  9062. .iconList {
  9063. display: flex;
  9064. flex-direction: row;
  9065. flex-wrap: wrap;
  9066. justify-content: flex-start;
  9067. align-items: center;
  9068. margin: 20px 0 5px 0;
  9069. width: 240px;
  9070. min-width: 240px;
  9071. }
  9072. .iconTool {
  9073. display: flex;
  9074. flex-direction: column;
  9075. flex-wrap: nowrap;
  9076. align-items: center;
  9077. justify-content: flex-start;
  9078. margin: 15px 10px;
  9079. }
  9080. .toolIcon {
  9081. width: 50px;
  9082. }
  9083. .taskBorder {
  9084. border: 1px solid #CAD1DC;
  9085. border-radius: 10px;
  9086. margin-top: 20px;
  9087. min-height: 1160px;
  9088. position: relative;
  9089. background: #F0F4FA;
  9090. padding: 30px 30px;
  9091. box-sizing: border-box;
  9092. }
  9093. .smallTaskBorder {
  9094. height: 170px;
  9095. min-height: 170px !important;
  9096. overflow: hidden;
  9097. }
  9098. /* .taskBorder>div {
  9099. padding: 30px 30px 10px;
  9100. } */
  9101. .addTaskBorder {
  9102. border: 2px solid #5E9AFC;
  9103. border-radius: 8px;
  9104. margin-top: 25px;
  9105. cursor: pointer;
  9106. height: 50px;
  9107. line-height: 50px;
  9108. }
  9109. .addTaskBorder>div {
  9110. margin: 0 auto;
  9111. display: flex;
  9112. align-items: center;
  9113. justify-content: center;
  9114. }
  9115. .addTaskBorder>div>img {
  9116. width: 20px;
  9117. }
  9118. .addTaskBorder>div>span {
  9119. font-size: 16px;
  9120. margin-left: 10px;
  9121. color: #5E9AFC;
  9122. }
  9123. .funBlock {
  9124. display: flex;
  9125. padding: 15px 0;
  9126. flex-direction: row;
  9127. justify-content: flex-end;
  9128. align-items: center;
  9129. position: absolute;
  9130. right: 15px;
  9131. bottom: 35px;
  9132. }
  9133. .fold {
  9134. display: flex;
  9135. margin: 0 10px;
  9136. flex-direction: row;
  9137. align-items: center;
  9138. cursor: pointer;
  9139. color: #717C8D;
  9140. }
  9141. .arrow {
  9142. margin-right: 8px;
  9143. border-left: 7px solid transparent;
  9144. border-bottom: 7px solid #717C8D;
  9145. border-top: 0px solid transparent;
  9146. border-right: 7px solid transparent;
  9147. box-sizing: border-box;
  9148. transition: all .3s;
  9149. }
  9150. .arrowZ{
  9151. transform: rotate(180deg);
  9152. }
  9153. .addToolFun {
  9154. display: flex;
  9155. width: 150px;
  9156. flex-direction: row;
  9157. align-items: center;
  9158. justify-content: center;
  9159. border: 1px dashed;
  9160. border-radius: 5px;
  9161. height: 50px;
  9162. margin: 35px auto 0;
  9163. cursor: pointer;
  9164. }
  9165. .addToolFun2 {
  9166. display: flex;
  9167. width: 100%;
  9168. border: 2px dashed #CAD1DC;
  9169. flex-direction: row;
  9170. align-items: center;
  9171. justify-content: center;
  9172. border-radius: 5px;
  9173. height: 50px;
  9174. margin: 35px auto 0;
  9175. cursor: pointer;
  9176. }
  9177. .addToolImg {
  9178. width: 20px;
  9179. height: 20px;
  9180. margin-right: 10px;
  9181. }
  9182. .addToolsDia>>>.el-dialog__body {
  9183. padding: 20px;
  9184. }
  9185. .addToolsDia>>>.el-dialog__body>.toolChoose {
  9186. padding: 0;
  9187. }
  9188. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  9189. padding: 0;
  9190. border-bottom: none;
  9191. margin-bottom: 0;
  9192. }
  9193. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  9194. width: 100%;
  9195. }
  9196. .lineCss>>>.el-form-item__label {
  9197. width: auto !important;
  9198. }
  9199. .lineCss>>>.el-form-item__content {
  9200. margin-left: 50px !important;
  9201. }
  9202. .newSteps {
  9203. display: flex;
  9204. width: 100% !important;
  9205. /* height: 80px; */
  9206. cursor: pointer;
  9207. margin: 10px 0;
  9208. border-radius: 10px;
  9209. flex-direction: row;
  9210. align-content: center;
  9211. justify-content: center;
  9212. align-items: center;
  9213. margin: 0 !important;
  9214. }
  9215. /* 评价样式 */
  9216. .elist_css {
  9217. padding-bottom: 60px !important;
  9218. }
  9219. .elist_title {
  9220. margin-bottom: 10px;
  9221. }
  9222. .elist_input {}
  9223. .elist_input_box {
  9224. display: flex;
  9225. align-items: center;
  9226. flex-wrap: wrap;
  9227. }
  9228. .elist_input_box+.elist_input_box {
  9229. margin-top: 30px;
  9230. }
  9231. .elist_input .elist_input_box input {
  9232. font: inherit;
  9233. color: currentColor;
  9234. /* width: 200px; */
  9235. max-width: 200px;
  9236. padding: 8px 14px;
  9237. display: block;
  9238. min-width: 0;
  9239. outline: none;
  9240. border: 1px solid rgba(0, 0, 0, 0.23);
  9241. border-radius: 4px;
  9242. box-sizing: border-box;
  9243. background: #fff;
  9244. margin: 0 20px 0 0;
  9245. }
  9246. .elist_input .elist_input_box span {
  9247. height: 36px;
  9248. line-height: 36px;
  9249. color: rgb(82, 82, 82);
  9250. min-width: 80px;
  9251. }
  9252. .elist_input .elist_input_box .remove {
  9253. height: 20px;
  9254. width: 20px;
  9255. background-size: 100% 100%;
  9256. background-position: unset;
  9257. margin-left: 5px;
  9258. }
  9259. .elist_input_box>>>.el-rate {
  9260. display: flex;
  9261. height: 36px;
  9262. align-items: center;
  9263. }
  9264. .elist_input_box .elist_inptu_text {
  9265. width: 100%;
  9266. display: flex;
  9267. align-items: center;
  9268. margin-top: 10px;
  9269. }
  9270. .elist_input_box .elist_inptu_text input {
  9271. /* width: 500px; */
  9272. width: 100%;
  9273. max-width: unset;
  9274. }
  9275. .elist_input_box>>>.el-rate__icon {
  9276. font-size: 24px;
  9277. }
  9278. .elist_btn {
  9279. margin-top: 10px;
  9280. }
  9281. .lineTitle {
  9282. /* margin-top: 15px; */
  9283. width: 110px;
  9284. }
  9285. .courseTop {
  9286. display: flex;
  9287. flex-direction: row;
  9288. justify-content: flex-start;
  9289. align-items: center;
  9290. width: calc(100% - 40px);
  9291. margin: 0 auto;
  9292. padding: 10px 0;
  9293. }
  9294. .stepsNav {
  9295. display: flex;
  9296. flex-direction: row;
  9297. justify-content: flex-start;
  9298. align-items: center;
  9299. }
  9300. .stepsWord {
  9301. font-size: 18px;
  9302. color: #fff;
  9303. font-weight: bold;
  9304. margin-left: auto;
  9305. background: rgb(15, 126, 255);
  9306. border-radius: 5px;
  9307. padding: 3px 25px;
  9308. box-sizing: border-box;
  9309. }
  9310. .stepBox {
  9311. width: calc(100% - 40px);
  9312. height: calc(100% - 50px);
  9313. overflow: hidden;
  9314. border-radius: 5px;
  9315. margin: 0 auto;
  9316. }
  9317. .rightBox {
  9318. width: calc(100%);
  9319. background: rgb(255, 255, 255);
  9320. /* border-radius: 10px; */
  9321. overflow: auto;
  9322. height: calc(100% - 150px);
  9323. margin: 0 auto;
  9324. position: relative;
  9325. box-sizing: border-box;
  9326. }
  9327. .e_add_top {
  9328. display: flex;
  9329. justify-content: space-between;
  9330. background: #fff;
  9331. position: absolute;
  9332. right: 20px;
  9333. height: 50px;
  9334. align-items: center;
  9335. }
  9336. .e_add_title2 {
  9337. display: flex;
  9338. align-items: center;
  9339. }
  9340. .e_add_title2 span {
  9341. width: 40px;
  9342. }
  9343. .e_add_title {
  9344. display: flex;
  9345. align-items: center;
  9346. color: #b8b8b8;
  9347. font-size: 18px;
  9348. position: relative;
  9349. height: 40px;
  9350. }
  9351. .e_add_title span {
  9352. margin-right: 10px;
  9353. }
  9354. .e_add_title .el_input {
  9355. width: 300px;
  9356. }
  9357. .e_add_title>>>.el-input__inner {
  9358. width: 400px;
  9359. }
  9360. .e_add_btn {}
  9361. .e_add_content {
  9362. display: flex;
  9363. width: 100%;
  9364. }
  9365. .e_add_list {
  9366. background: #fff;
  9367. height: 500px;
  9368. width: 210px;
  9369. position: relative;
  9370. margin: 15px 5px 0 0;
  9371. flex-shrink: 0;
  9372. display: flex;
  9373. flex-direction: column;
  9374. }
  9375. .e_add_list_title {
  9376. font-size: 20px;
  9377. width: 100%;
  9378. box-sizing: border-box;
  9379. padding: 15px 40px;
  9380. text-align: center;
  9381. border-bottom: 1px solid #eaeaea;
  9382. position: relative;
  9383. display: flex;
  9384. align-items: center;
  9385. justify-content: center;
  9386. height: 57px;
  9387. background: #f6f6f6;
  9388. }
  9389. .e_add_list_title span {
  9390. overflow: hidden;
  9391. white-space: nowrap;
  9392. text-overflow: ellipsis;
  9393. }
  9394. .e_add_list_title img {
  9395. position: absolute;
  9396. right: 15px;
  9397. width: 25px;
  9398. cursor: pointer;
  9399. top: 50%;
  9400. transform: translateY(-50%);
  9401. }
  9402. .e_add_list_body {
  9403. height: calc(100% - 187px);
  9404. overflow: auto;
  9405. }
  9406. .e_add_list_child {
  9407. width: 100%;
  9408. display: flex;
  9409. align-items: center;
  9410. justify-content: center;
  9411. position: relative;
  9412. box-sizing: border-box;
  9413. padding: 15px 40px;
  9414. text-align: center;
  9415. }
  9416. .e_add_list_child span {
  9417. overflow: hidden;
  9418. white-space: nowrap;
  9419. text-overflow: ellipsis;
  9420. cursor: pointer;
  9421. }
  9422. .e_add_list_child img {
  9423. position: absolute;
  9424. right: 10px;
  9425. width: 21px;
  9426. cursor: pointer;
  9427. top: 50%;
  9428. transform: translateY(-50%);
  9429. }
  9430. .e_add_list_child+.e_add_list_child {
  9431. border-top: 1px solid #eaeaea;
  9432. }
  9433. .e_add_list_child .active {
  9434. color: #409eff;
  9435. }
  9436. .e_add_list_btn {
  9437. position: absolute;
  9438. bottom: 0;
  9439. height: 50px;
  9440. background: rgb(120, 120, 254);
  9441. width: 100%;
  9442. color: #fff;
  9443. font-size: 16px;
  9444. text-align: center;
  9445. line-height: 50px;
  9446. cursor: pointer;
  9447. }
  9448. .e_add_list_detail {
  9449. position: absolute;
  9450. bottom: 0;
  9451. height: 130px;
  9452. background: rgb(120, 120, 254);
  9453. width: 100%;
  9454. color: #fff;
  9455. font-size: 16px;
  9456. display: flex;
  9457. align-items: center;
  9458. justify-content: center;
  9459. }
  9460. .e_add_list_detail textarea {
  9461. height: 90%;
  9462. width: 95%;
  9463. border: none;
  9464. resize: none;
  9465. outline: none;
  9466. padding: 5px;
  9467. box-sizing: border-box;
  9468. }
  9469. .e_add_list_pbox {
  9470. width: 100%;
  9471. }
  9472. .e_add_list_pbox_title {
  9473. height: 50px;
  9474. background: #fff;
  9475. display: flex;
  9476. align-items: center;
  9477. width: 100%;
  9478. box-sizing: border-box;
  9479. padding: 0 20px;
  9480. flex-direction: row;
  9481. flex-wrap: wrap;
  9482. }
  9483. .type_title {
  9484. font-size: 18px;
  9485. font-weight: 700;
  9486. }
  9487. .type_content {
  9488. font-size: 16px;
  9489. margin-left: 30px;
  9490. }
  9491. .type_content span+span {
  9492. margin-left: 20px;
  9493. }
  9494. .type_content span {
  9495. cursor: pointer;
  9496. padding-bottom: 5px;
  9497. box-sizing: border-box;
  9498. }
  9499. .type_content .active {
  9500. color: #409eff;
  9501. border-bottom: 2px solid #409eff;
  9502. }
  9503. .e_add_list_pbox_content {
  9504. height: calc(100% - 50px);
  9505. display: flex;
  9506. align-items: center;
  9507. width: 100%;
  9508. background: #fff;
  9509. }
  9510. .mbCss {
  9511. width: 100%;
  9512. display: flex;
  9513. flex-direction: row;
  9514. flex-wrap: nowrap;
  9515. align-content: center;
  9516. align-items: flex-start;
  9517. justify-content: flex-start;
  9518. }
  9519. .pjCss {
  9520. /* width: 42%; */
  9521. width: calc(100% - 55%);
  9522. display: flex;
  9523. flex-direction: column;
  9524. flex-wrap: nowrap;
  9525. align-items: flex-start;
  9526. }
  9527. .e_box {
  9528. display: flex;
  9529. flex-wrap: wrap;
  9530. max-height: 500px;
  9531. align-items: flex-start;
  9532. overflow: auto;
  9533. }
  9534. .e_card {
  9535. border: 1px solid #ccc;
  9536. background: #fff;
  9537. margin-right: 20px;
  9538. width: 270px;
  9539. display: flex;
  9540. flex-direction: column;
  9541. align-items: center;
  9542. border-radius: 5px;
  9543. margin-top: 10px;
  9544. text-align: center;
  9545. }
  9546. .e_card_picture {
  9547. margin: 10px 0;
  9548. }
  9549. .e_card_picture>img {
  9550. width: 50px;
  9551. }
  9552. .e_card_name {
  9553. width: 100%;
  9554. padding: 0 10px;
  9555. box-sizing: border-box;
  9556. margin-bottom: 10px;
  9557. overflow: hidden;
  9558. text-overflow: ellipsis;
  9559. white-space: nowrap;
  9560. }
  9561. .e_card_time {
  9562. width: 100%;
  9563. padding: 0 10px;
  9564. box-sizing: border-box;
  9565. font-size: 15px;
  9566. color: #c3c3c3;
  9567. margin-bottom: 10px;
  9568. }
  9569. .e_card_btn {
  9570. height: 40px;
  9571. display: flex;
  9572. align-items: center;
  9573. width: 100%;
  9574. background: rgb(244, 244, 244);
  9575. }
  9576. .e_card_btn:hover {
  9577. background: rgb(221 221 221);
  9578. }
  9579. .e_card_btn span {
  9580. flex: 1 1 auto;
  9581. text-align: center;
  9582. cursor: pointer;
  9583. }
  9584. .addEva {
  9585. border: 1px solid #ccc;
  9586. background: #fff;
  9587. margin-right: 20px;
  9588. width: 270px;
  9589. height: 149px;
  9590. display: flex;
  9591. flex-direction: column;
  9592. align-items: center;
  9593. border-radius: 5px;
  9594. margin-top: 10px;
  9595. text-align: center;
  9596. cursor: pointer;
  9597. justify-content: center;
  9598. }
  9599. .addEva>img {
  9600. width: 50px;
  9601. object-fit: cover;
  9602. }
  9603. .uploadFm {
  9604. border: 1px dashed #ccc;
  9605. width: 202px;
  9606. height: 102px;
  9607. position: relative;
  9608. cursor: pointer;
  9609. display: flex;
  9610. flex-direction: column;
  9611. justify-content: center;
  9612. align-items: center;
  9613. font-size: 14px;
  9614. color: #6e6e6e;
  9615. }
  9616. .uploadFm>img {
  9617. width: 50px;
  9618. }
  9619. .fileCss {
  9620. width: 100%;
  9621. display: flex;
  9622. flex-direction: row;
  9623. flex-wrap: nowrap;
  9624. justify-content: space-around;
  9625. align-items: center;
  9626. padding-top: 15px;
  9627. }
  9628. .sysPicBox {
  9629. display: flex;
  9630. flex-direction: row;
  9631. flex-wrap: wrap;
  9632. align-content: flex-start;
  9633. height: 435px;
  9634. overflow: auto;
  9635. }
  9636. .sysPic {
  9637. width: 200px;
  9638. height: 115px;
  9639. margin: 0 20px 20px 0;
  9640. cursor: pointer;
  9641. }
  9642. .sysPic>img,
  9643. .isSysPic>img,
  9644. .deletePic>img {
  9645. width: 100%;
  9646. height: 100%;
  9647. object-fit: cover;
  9648. }
  9649. .isSysPic {
  9650. width: 200px;
  9651. height: 115px;
  9652. position: relative;
  9653. }
  9654. .deletePic {
  9655. width: 20px;
  9656. height: 20px;
  9657. position: absolute;
  9658. top: 0;
  9659. right: 0;
  9660. cursor: pointer;
  9661. }
  9662. .select_box1 {}
  9663. .select_box1_img {
  9664. background: #fff;
  9665. border-radius: 5px;
  9666. padding: 15px;
  9667. box-sizing: border-box;
  9668. margin-bottom: 20px;
  9669. }
  9670. .select_box1_title {
  9671. padding: 0 0 15px 0;
  9672. border-bottom: 1px solid #eee;
  9673. margin-bottom: 15px;
  9674. }
  9675. .select_box1_title span:nth-child(1) {
  9676. font-size: 16px;
  9677. margin-right: 20px;
  9678. color: #000;
  9679. }
  9680. .select_box1_title span:nth-child(2) {
  9681. font-size: 14px;
  9682. color: rgb(112, 112, 112);
  9683. }
  9684. .select_box1_add_img {}
  9685. .select_box1_select {
  9686. background: #fff;
  9687. border-radius: 5px;
  9688. padding: 15px;
  9689. box-sizing: border-box;
  9690. }
  9691. .select_box2 {}
  9692. .select_box2_title {
  9693. background: #fff;
  9694. border-radius: 5px;
  9695. padding: 5px 10px;
  9696. box-sizing: border-box;
  9697. margin-bottom: 10px;
  9698. }
  9699. .select_box2_box {
  9700. display: flex;
  9701. height: 500px;
  9702. }
  9703. .select_box2_img {
  9704. width: calc(100% - 310px);
  9705. height: 100%;
  9706. overflow: auto;
  9707. background: #fff;
  9708. border-radius: 5px;
  9709. }
  9710. .select_box2_img img {
  9711. width: 100%;
  9712. }
  9713. .select_box2_answer {
  9714. background: #fff;
  9715. margin-left: 10px;
  9716. border-radius: 5px;
  9717. width: 300px;
  9718. overflow: auto;
  9719. height: 100%;
  9720. display: flex;
  9721. flex-direction: column;
  9722. align-items: center;
  9723. padding-top: 10px;
  9724. box-sizing: border-box;
  9725. }
  9726. .select_box2_answer_box {
  9727. margin: 0 0 10px 0;
  9728. width: 85%;
  9729. }
  9730. .rate_textarea {
  9731. font: inherit;
  9732. color: currentColor;
  9733. width: 100%;
  9734. padding: 8px 14px;
  9735. display: block;
  9736. min-width: 0;
  9737. outline: none;
  9738. border: 1px solid rgba(0, 0, 0, 0.23);
  9739. border-radius: 4px;
  9740. box-sizing: border-box;
  9741. background: #fff;
  9742. margin: 0 20px 0 0;
  9743. resize: none;
  9744. }
  9745. .select_answer_title {
  9746. text-align: left;
  9747. width: 85%;
  9748. margin-bottom: 10px;
  9749. font-size: 18px;
  9750. color: #8e8e8e;
  9751. }
  9752. .mask {
  9753. background-color: rgb(0 0 0 / 30%);
  9754. /* position: fixed; */
  9755. position: absolute;
  9756. top: 0;
  9757. left: 0;
  9758. width: 100%;
  9759. height: 100%;
  9760. z-index: 90;
  9761. display: flex;
  9762. align-items: center;
  9763. justify-content: center;
  9764. }
  9765. .progressBox {
  9766. width: 300px;
  9767. height: 150px;
  9768. background: #fff;
  9769. border-radius: 10px;
  9770. box-shadow: 0 0 6px 1px #bfbfbf;
  9771. display: flex;
  9772. align-items: center;
  9773. justify-content: center;
  9774. flex-direction: column;
  9775. position: relative;
  9776. color: #6c6c6c;
  9777. }
  9778. .progressBox>>>.el-progress-bar__outer {
  9779. background-color: #d1dfff !important;
  9780. }
  9781. .progressBox .lbox {
  9782. height: 50px;
  9783. font-size: 19px;
  9784. display: flex;
  9785. align-items: center;
  9786. color: #747474;
  9787. }
  9788. .progressBox .lbox img {
  9789. width: 40px;
  9790. margin-right: 20px;
  9791. }
  9792. .closeCss {
  9793. position: absolute;
  9794. top: 8px;
  9795. right: 8px;
  9796. cursor: pointer;
  9797. width: 20px;
  9798. height: 20px;
  9799. }
  9800. .closeCss>img {
  9801. width: 100%;
  9802. height: 100%;
  9803. }
  9804. .updateTips::before {
  9805. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  9806. font-size: 14px;
  9807. margin-left: 20px;
  9808. font-weight: 400;
  9809. color: #ff3a3a;
  9810. margin-bottom: 10px;
  9811. display: block;
  9812. }
  9813. .updateMask {
  9814. width: 100%;
  9815. z-index: 3;
  9816. top: 0;
  9817. position: absolute;
  9818. /* background-color: rgba(0,0,0,.3); */
  9819. }
  9820. .t_j_box {
  9821. display: flex;
  9822. }
  9823. .t_j_box span:nth-child(1) {
  9824. width: 15%;
  9825. overflow: hidden;
  9826. margin-right: 10px;
  9827. text-overflow: ellipsis;
  9828. white-space: nowrap;
  9829. }
  9830. .t_j_box span:nth-child(2) {
  9831. width: 30%;
  9832. overflow: hidden;
  9833. text-overflow: ellipsis;
  9834. margin-right: 10px;
  9835. }
  9836. .t_j_box span:nth-child(3) {
  9837. max-width: calc(55% - 20px);
  9838. overflow: hidden;
  9839. text-overflow: ellipsis;
  9840. }
  9841. .sentenBox {
  9842. background: #fff;
  9843. height: 600px;
  9844. overflow: auto;
  9845. background-image: url("../../assets/icon/conSentences/csBg.png");
  9846. background-position: 102%;
  9847. background-repeat: no-repeat;
  9848. background-size: 60%;
  9849. }
  9850. .addSen {
  9851. background: #409efe;
  9852. width: 90px;
  9853. color: #fff;
  9854. height: 35px;
  9855. text-align: center;
  9856. line-height: 35px;
  9857. border-radius: 5px;
  9858. float: right;
  9859. margin: 10px 20px 0 0;
  9860. cursor: pointer;
  9861. }
  9862. .sentenTop {
  9863. display: flex;
  9864. flex-direction: row;
  9865. flex-wrap: nowrap;
  9866. align-items: center;
  9867. }
  9868. .sentenTop>div:nth-child(2) {
  9869. width: 300px;
  9870. margin: 0 15px;
  9871. }
  9872. .sentenTop>div:nth-child(3) {
  9873. background: #409efe;
  9874. color: #fff;
  9875. width: 65px;
  9876. height: 35px;
  9877. text-align: center;
  9878. line-height: 35px;
  9879. border-radius: 5px;
  9880. cursor: pointer;
  9881. }
  9882. .cardList {
  9883. padding: 30px 0 20px 0;
  9884. display: flex;
  9885. flex-direction: row;
  9886. flex-wrap: wrap;
  9887. align-items: center;
  9888. box-sizing: border-box;
  9889. border-bottom: 1px solid #f4f4f4;
  9890. width: 98%;
  9891. margin: 0 auto;
  9892. }
  9893. .cardBox {
  9894. display: flex;
  9895. flex-direction: row;
  9896. flex-wrap: wrap;
  9897. align-items: center;
  9898. align-content: center;
  9899. }
  9900. .isCard,
  9901. .isCard1 {
  9902. width: 140px;
  9903. height: 65px;
  9904. text-align: center;
  9905. line-height: 65px;
  9906. font-size: 20px;
  9907. cursor: pointer;
  9908. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  9909. background-size: cover;
  9910. position: relative;
  9911. z-index: 99;
  9912. }
  9913. .isCard1 {
  9914. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  9915. }
  9916. .isCard:hover .deleteWord {
  9917. display: block;
  9918. }
  9919. .isCard>div:nth-child(1),
  9920. .isCard1>div:nth-child(1) {
  9921. white-space: nowrap;
  9922. overflow: hidden;
  9923. text-overflow: ellipsis;
  9924. width: 80%;
  9925. margin: 0 auto;
  9926. }
  9927. .card {
  9928. width: 140px;
  9929. height: 65px;
  9930. }
  9931. .card>img {
  9932. width: 100%;
  9933. height: 100%;
  9934. }
  9935. .rightCardBox {
  9936. margin: 10px 0 0 10px;
  9937. }
  9938. .rightCardBox>div:nth-child(1) {
  9939. margin-bottom: 10px;
  9940. }
  9941. .cardCss {
  9942. display: flex;
  9943. flex-direction: column;
  9944. flex-wrap: nowrap;
  9945. align-items: center;
  9946. border-bottom: 3px solid #b4c3d3;
  9947. padding: 0 0 5px 0;
  9948. margin-right: 10px;
  9949. }
  9950. .cardCss>div:nth-child(2) {
  9951. background: #5b7b9d;
  9952. color: #fff;
  9953. width: 20px;
  9954. height: 20px;
  9955. border-radius: 50%;
  9956. text-align: center;
  9957. line-height: 20px;
  9958. }
  9959. .sentenTopBox {
  9960. display: flex;
  9961. flex-direction: row;
  9962. flex-wrap: nowrap;
  9963. align-items: center;
  9964. justify-content: space-between;
  9965. padding: 55px 0 0 20px;
  9966. box-sizing: border-box;
  9967. width: 85%;
  9968. }
  9969. .stepsBottom {
  9970. width: 100%;
  9971. box-shadow: 0 0 10px 10px #f7f7f7;
  9972. /* background: #f7f7f7; */
  9973. border-radius: 10px;
  9974. overflow: hidden;
  9975. height: 100%
  9976. }
  9977. .navTop {
  9978. background: #53749b;
  9979. color: #fff;
  9980. height: 40px;
  9981. line-height: 40px;
  9982. padding-left: 15px;
  9983. font-size: 18px;
  9984. }
  9985. .navBottom {
  9986. /* background: #6b91b7; */
  9987. height: 100%;
  9988. overflow: auto;
  9989. }
  9990. .navTask {
  9991. display: flex;
  9992. flex-direction: row;
  9993. flex-wrap: nowrap;
  9994. align-items: center;
  9995. padding: 10px 10px 10px 0;
  9996. cursor: pointer;
  9997. background: #ffffff;
  9998. width: 95%;
  9999. margin: 10px auto;
  10000. box-sizing: border-box;
  10001. border-radius: 5px;
  10002. }
  10003. .isNavTask {
  10004. background: #3681FC;
  10005. }
  10006. .isNavTask .nt_taskName {
  10007. color: #fff !important;
  10008. }
  10009. .isNavTask .nt_taskTitle {
  10010. color: #AECCFE !important;
  10011. }
  10012. .navTask .nt_taskBox {
  10013. width: calc(100% - 40px);
  10014. padding: 0 10px 0 20px;
  10015. box-sizing: border-box;
  10016. }
  10017. .navTask .nt_taskTitle {
  10018. color: #717C8D;
  10019. line-height: 25px;
  10020. font-size: 14px;
  10021. }
  10022. .navTask .nt_taskName {
  10023. /* color: #fff; */
  10024. /* max-width: 130px; */
  10025. width: 100%;
  10026. white-space: nowrap;
  10027. overflow: hidden;
  10028. text-overflow: ellipsis;
  10029. font-size: 15px;
  10030. color: #0E1E33;
  10031. }
  10032. .groupBox {}
  10033. .groupContent+.groupContent {
  10034. margin-top: 30px;
  10035. }
  10036. .groupTitle {
  10037. font-size: 24px;
  10038. color: rgb(80, 80, 80);
  10039. margin-bottom: 20px;
  10040. }
  10041. .groupName {
  10042. display: flex;
  10043. align-items: center;
  10044. }
  10045. .groupn {
  10046. font-size: 15px;
  10047. margin-right: 10px;
  10048. }
  10049. .groupName+.groupName {
  10050. margin-top: 15px;
  10051. }
  10052. .groupBtn {
  10053. margin-left: 10px;
  10054. }
  10055. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10056. text-align: left;
  10057. }
  10058. .radioBox>div {
  10059. margin: 10px 0 0 10px;
  10060. }
  10061. .radioBox>>>.el-radio__input,
  10062. .radioBox>>>.el-checkbox__inner {
  10063. margin-left: 10px;
  10064. }
  10065. .radioBox>>>.el-radio__label,
  10066. .radioBox>>>.el-checkbox__label {
  10067. display: flex;
  10068. align-items: center;
  10069. }
  10070. .inImg {
  10071. width: 50px;
  10072. }
  10073. .inImg>img {
  10074. width: 100%;
  10075. height: 100%;
  10076. object-fit: cover;
  10077. }
  10078. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  10079. height: auto;
  10080. }
  10081. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  10082. width: 200px;
  10083. height: 100px;
  10084. object-fit: contain;
  10085. background: unset;
  10086. }
  10087. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  10088. display: none;
  10089. }
  10090. .tcMember+.tcMember::before {
  10091. content: "、";
  10092. }
  10093. .xzUpImg {
  10094. width: 25px;
  10095. height: 25px;
  10096. cursor: pointer;
  10097. }
  10098. .xzUpImg>img {
  10099. width: 100%;
  10100. height: 100%;
  10101. }
  10102. .closeCss {
  10103. position: absolute;
  10104. top: 8px;
  10105. right: 8px;
  10106. cursor: pointer;
  10107. width: 20px;
  10108. height: 20px;
  10109. }
  10110. .closeCss>img {
  10111. width: 100%;
  10112. height: 100%;
  10113. }
  10114. .moveBtn {
  10115. display: flex;
  10116. flex-direction: column;
  10117. align-items: flex-end;
  10118. width: 40px;
  10119. }
  10120. .timuUpImg {
  10121. display: flex;
  10122. flex-direction: row;
  10123. align-items: center;
  10124. }
  10125. .timuUpImg>div:nth-child(1) {
  10126. margin-right: 10px;
  10127. }
  10128. .timuImgBox {
  10129. margin: 10px 0;
  10130. display: flex;
  10131. flex-direction: column;
  10132. flex-wrap: wrap;
  10133. align-items: flex-start;
  10134. }
  10135. .timuImg {
  10136. width: 100px;
  10137. margin: 5px 0;
  10138. cursor: pointer;
  10139. position: relative;
  10140. }
  10141. .timuImg:hover .deleteWord {
  10142. display: block;
  10143. }
  10144. .deleteWord {
  10145. width: 25px;
  10146. height: 25px;
  10147. position: absolute;
  10148. right: -5px;
  10149. top: -5px;
  10150. cursor: pointer;
  10151. display: none;
  10152. }
  10153. .timuImg>img,
  10154. .deleteWord>img {
  10155. width: 100%;
  10156. height: 100%;
  10157. object-fit: cover;
  10158. }
  10159. .e_add_delete {
  10160. cursor: pointer;
  10161. margin-left: 10px;
  10162. }
  10163. .pType_box {
  10164. margin-top: 30px;
  10165. align-items: flex-end;
  10166. }
  10167. .noneBox {
  10168. height: 100%;
  10169. width: 100%;
  10170. display: flex;
  10171. align-items: center;
  10172. justify-content: center;
  10173. margin-top: 150px;
  10174. }
  10175. .noneBox>img {
  10176. width: 300px;
  10177. }
  10178. .rb_c_box {
  10179. width: 100%;
  10180. height: 100%;
  10181. display: flex;
  10182. padding: 20px;
  10183. box-sizing: border-box;
  10184. justify-content: space-between;
  10185. }
  10186. .rb_c_box_left {
  10187. height: 100%;
  10188. background: #F0F4FA;
  10189. width: 270px;
  10190. min-width: 270px;
  10191. border-radius: 8px;
  10192. margin-right: 10px;
  10193. }
  10194. .rb_c_box_right {
  10195. height: 100%;
  10196. width: calc(100%);
  10197. overflow: hidden;
  10198. }
  10199. .rb_c_box_btn {
  10200. display: flex;
  10201. justify-content: flex-start;
  10202. height: 50px;
  10203. align-items: center;
  10204. }
  10205. .rb_c_box_right>.basic_box {
  10206. background: #F0F4FA;
  10207. border-radius: 8px;
  10208. height: calc(100% - 50px);
  10209. overflow: auto;
  10210. }
  10211. </style>