addCourse.vue 481 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div 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 class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  25. </div>
  26. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  27. <div ref="stepBox" class="stepBox">
  28. <div class="stepBg" v-if="false">
  29. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }" @mouseenter="stepDisplay(true)"
  30. @mouseleave="stepDisplay(false)">
  31. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  32. <div>
  33. <img src="../../assets/icon/first.png" alt />
  34. </div>
  35. <div>填写基本信息</div>
  36. </div>
  37. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  38. <div>
  39. <img src="../../assets/icon/firstNo.png" alt />
  40. </div>
  41. <div>填写基本信息</div>
  42. </div>
  43. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay"></div>
  44. <div v-if="steps > 1 && cidType === 0 && isStepDisplay" class="second" @click="navSteps(2)">
  45. <div style="margin: 5px 10px 0 0; width: 2rem">
  46. <img src="../../assets/icon/second.png" alt />
  47. </div>
  48. <div>选择课程模板</div>
  49. </div>
  50. <div v-else-if="cidType === 0 && isStepDisplay" class="secondNo" @click="navSteps(2)">
  51. <div>
  52. <img src="../../assets/icon/secondNo.png" alt />
  53. </div>
  54. <div>选择课程模板</div>
  55. </div>
  56. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  57. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  58. <div>
  59. <img src="../../assets/icon/third.png" alt />
  60. </div>
  61. <div>上传课程内容</div>
  62. </div>
  63. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  64. <div>
  65. <img src="../../assets/icon/thirdNo.png" alt />
  66. </div>
  67. <div>上传课程内容</div>
  68. </div>
  69. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  70. <div v-if="steps > 3 && isStepDisplay" class="four">
  71. <div>
  72. <img src="../../assets/icon/four.png" alt />
  73. </div>
  74. <div>上传完成</div>
  75. </div>
  76. <div v-else-if="isStepDisplay" class="fourNo">
  77. <div>
  78. <img src="../../assets/icon/fourNo.png" alt />
  79. </div>
  80. <div>上传完成</div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:0;"
  85. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 20px)' : 'calc(100% - 100px)' }">
  86. <div class="updateMask" :style="{
  87. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  88. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  89. <div class="whiteBg" style="background:unset;padding: 0;">
  90. <div>
  91. <div class="basic_box" style="padding: 0;">
  92. <div class="big_box">
  93. <div class="left_first">
  94. <div :class="{
  95. updateTips: cid && userid != courseUserid && role != '1',
  96. }">
  97. <div style="width: 100%;">
  98. <div class="course_input_box">
  99. <div class="bb_courseIcon"><img src="../../assets/icon/new/course.png" /></div>
  100. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  101. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  102. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  103. style="justify-content: center;width: 200px;"></el-switch>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  108. <span>类型</span>
  109. <!-- 学科+ 主题+ 未来+ -->
  110. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  111. style="display: flex; align-items: center">
  112. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  113. <el-radio :label="item.name">{{
  114. item.name
  115. }}</el-radio>
  116. </div>
  117. </el-radio-group>
  118. </div>
  119. <div class="both">
  120. <div class="choose">
  121. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  122. <span v-if="CourseTypeJson[item.id].length > 0 &&
  123. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  124. ? pTypeCheck.indexOf(item.id) != -1
  125. : true)
  126. ">{{ item.name }}:</span>
  127. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  128. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  129. ? pTypeCheck.indexOf(item.id) != -1
  130. : true)
  131. ">
  132. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  133. item1.name }}</el-checkbox>
  134. </el-checkbox-group>
  135. <!-- <div
  136. v-else
  137. style="font-size: 14px; margin-left: -8px"
  138. >
  139. 暂无
  140. </div> -->
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="right_first">
  146. <!-- <div class="ai_box">
  147. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  148. </div> -->
  149. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  150. <div style="width: 100%;">
  151. <div class="uploadFm" @click="choosePicVisible = true" :class="{uploadFm2:cover.length}">
  152. <img src="../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0"/>
  153. <img :src="cover[0].url" alt="" class="cover_p" v-else/>
  154. <div v-if="cover.length == 0">点击添加封面</div>
  155. <div class="cover_mask"><img src="../../assets/icon/new/cover_update.png" /><span style="margin-top:5px;">修改封面</span></div>
  156. </div>
  157. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  158. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  159. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  160. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  161. <i class="el-icon-plus"></i>
  162. </el-upload> -->
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="whiteBg" style="background:#fff;margin: 10px 0;">
  170. <div class="whiteBg" style="border-radius: 0">
  171. <div class="c_info_title">课程权限设置</div>
  172. <div class="wb_j_box">
  173. <div class="wb_j_box_content">
  174. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  175. (dialogVisibleClass = true),
  176. (classSearch = ''),
  177. (gradeId = ''),
  178. getClass()
  179. ">添加班级</button>
  180. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  181. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  182. getClassC(tc) }}</span>
  183. </div> -->
  184. <div class="wb_j_box_btn" @click="
  185. (dialogVisibleClass = true),
  186. (classSearch = ''),
  187. (gradeId = ''),
  188. getClass()
  189. ">
  190. <div class="wb_j_box_title">授课班级</div>
  191. <div class="wb_j_box_btn_c">
  192. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  193. v-if="checkboxList2.length" popper-class="text_tooltip2">
  194. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  195. </el-tooltip>
  196. <div v-else class="wb_j_box_span">请选择授课班级</div>
  197. <div class="wb_j_box_arrow"></div>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="wb_j_box_content">
  202. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  203. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  204. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  205. checkBoolean
  206. ? checkboxList3
  207. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  208. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  209. </div> -->
  210. <div class="wb_j_box_btn" @click="openMember">
  211. <div class="wb_j_box_title">协同人员</div>
  212. <div class="wb_j_box_btn_c">
  213. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  214. v-if="checkboxList3.length" popper-class="text_tooltip2">
  215. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  216. </el-tooltip>
  217. <div v-else class="wb_j_box_span">请选择协同人员</div>
  218. <div class="wb_j_box_arrow"></div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  225. <div class="c_info_title">课程简要描述</div>
  226. <div style="width: 100%;padding: 0px 20px;box-sizing: border-box;">
  227. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  228. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText" placeholder="请输入课程简要描述"></textarea>
  229. </div>
  230. </div>
  231. </div>
  232. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  233. <div class="c_info_title">目标管理</div>
  234. <div style="margin: 0 auto;padding:0 20px">
  235. <div style="
  236. width: 95%;
  237. min-height: 200px;
  238. border: 1px solid #CAD1DC;
  239. border-radius: 4px;
  240. position: relative;
  241. ">
  242. <div class="e_add_top">
  243. <div class="e_add_title">
  244. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()"
  245. v-if="evalua">清除</button>
  246. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">添加</button>
  247. <!-- <span>当前使用目标管理</span>
  248. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  249. <img
  250. src="../../assets/line.png"
  251. class="cru_line"
  252. style="
  253. width: 125px;
  254. height: 20px;
  255. bottom: -10px;
  256. left: 155px;
  257. "
  258. /> -->
  259. </div>
  260. <div style="
  261. display: flex;
  262. flex-direction: row;
  263. align-items: center;
  264. ">
  265. <!-- <el-button
  266. type="primary"
  267. size="small"
  268. @click="dialogVisiblemb = true"
  269. >添加目标管理</el-button
  270. >
  271. <el-button
  272. type="primary"
  273. size="small"
  274. @click="deleteEva()"
  275. >清除内容</el-button
  276. > -->
  277. <!-- <div class="e_add_delete" @click="deleteEva()">
  278. <img src="../../assets/icon/delete.png" alt="" />
  279. </div> -->
  280. </div>
  281. </div>
  282. <div v-if="evalua == ''">
  283. <div class="noneBox">
  284. <img src="../../assets/icon/new/eva_none.png" />
  285. <span>请添加目标管理</span>
  286. </div>
  287. </div>
  288. <div class="e_add_content" v-else>
  289. <div class="e_add_list_pbox">
  290. <div class="e_add_list_pbox_title">
  291. <span class="type_title">切换模式</span>
  292. <div class="type_content">
  293. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  294. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  295. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  296. </div>
  297. </div>
  298. <div class="e_add_list_pbox_content">
  299. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  300. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  301. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  302. v-if="typeMode == 3">
  303. </SeeBoard>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. <div class="info_btnBox3">
  312. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  313. goTo(
  314. '/course?userid=' +
  315. userid +
  316. '&oid=' +
  317. oid +
  318. '&org=' +
  319. org +
  320. '&role=' +
  321. role
  322. )
  323. ">
  324. 返回课程
  325. </button>
  326. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  327. {{ steps == 4 ? "返回课程" : "上一步" }}
  328. </button>
  329. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  330. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  331. {{ steps == 3 ? "确认上传" : "下一步" }}
  332. </button>
  333. </div>
  334. </div>
  335. <div class="rightBox" v-if="this.steps == 2"
  336. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  337. <div class="basic_box"
  338. style="padding: 20px 30px 0px !important; box-sizing: border-box;height: calc(100% - 80px);overflow: auto;background:#fff">
  339. <!-- <div
  340. style="
  341. color: #b8b8b8;
  342. background: #fff;
  343. width: 26%;
  344. height: 40px;
  345. border-radius: 15px;
  346. padding-left: 20px;
  347. line-height: 40px;
  348. font-size: 17px;
  349. box-shadow: 0px 1px 2px 2px #e0e0e0;
  350. "
  351. >-->
  352. <div class="right_title" style="border: none; margin: 0; padding: 0">
  353. 请选择合适的课程模板
  354. </div>
  355. <div class="wordbox">
  356. <div class="wordTeacher" @click="checkTemplate2()">
  357. <div class="wordPic">
  358. <img src="../../assets/icon/new/template_none.png" alt />
  359. </div>
  360. <div style="
  361. margin-top: 10px;
  362. line-height: 19px;
  363. overflow: hidden;
  364. text-overflow: ellipsis;
  365. white-space: nowrap;
  366. padding: 0 20px;
  367. ">
  368. 空白模板
  369. </div>
  370. </div>
  371. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  372. <div class="wordPic">
  373. <img src="../../assets/icon/new/template.png" alt />
  374. </div>
  375. <div style="
  376. margin-top: 10px;
  377. line-height: 19px;
  378. overflow: hidden;
  379. text-overflow: ellipsis;
  380. white-space: nowrap;
  381. padding: 0 20px;
  382. ">
  383. {{ aa.title }}
  384. </div>
  385. </div>
  386. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  387. <div class="wordPic">
  388. <img src="../../assets/icon/new/template.png" alt />
  389. </div>
  390. <div style="
  391. margin-top: 10px;
  392. line-height: 19px;
  393. overflow: hidden;
  394. text-overflow: ellipsis;
  395. white-space: nowrap;
  396. padding: 0 20px;
  397. ">
  398. 简易模板
  399. </div>
  400. </div>
  401. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  402. <div class="wordPic">
  403. <img src="../../assets/icon/new/template.png" alt />
  404. </div>
  405. <div style="
  406. margin-top: 10px;
  407. line-height: 19px;
  408. overflow: hidden;
  409. text-overflow: ellipsis;
  410. white-space: nowrap;
  411. padding: 0 20px;
  412. ">
  413. 智能粘贴模式
  414. </div>
  415. </div>
  416. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  417. <div class="wordPic">
  418. <img src="../../assets/icon/wordMub.png" alt />
  419. </div>
  420. <div style="
  421. margin-top: 10px;
  422. line-height: 19px;
  423. overflow: hidden;
  424. text-overflow: ellipsis;
  425. white-space: nowrap;
  426. padding: 0 20px;
  427. ">
  428. 未来小学课程设计
  429. </div>
  430. </div> -->
  431. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  432. <div class="wordPic">
  433. <img src="../../assets/icon/wordMub.png" alt />
  434. </div>
  435. <div style="
  436. margin-top: 10px;
  437. line-height: 19px;
  438. overflow: hidden;
  439. text-overflow: ellipsis;
  440. white-space: nowrap;
  441. padding: 0 20px;
  442. ">
  443. 我的课程
  444. </div>
  445. </div> -->
  446. </div>
  447. </div>
  448. <div class="info_btnBox3" style="position: absolute;bottom: 0;">
  449. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  450. goTo(
  451. '/course?userid=' +
  452. userid +
  453. '&oid=' +
  454. oid +
  455. '&org=' +
  456. org +
  457. '&role=' +
  458. role
  459. )
  460. ">
  461. 返回课程
  462. </button>
  463. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  464. {{ steps == 4 ? "返回课程" : "上一步" }}
  465. </button>
  466. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  467. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  468. {{ steps == 3 ? "确认上传" : "下一步" }}
  469. </button>
  470. </div>
  471. </div>
  472. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR"
  473. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  474. <div class="rb_c_box">
  475. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  476. <div class="stepsBottom">
  477. <!-- <div class="navTop">辅助导航</div> -->
  478. <div class="navBottom" v-if="courseState == 2">
  479. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  480. <div class="nt_taskBox" style="width: 100%;">
  481. <div class="nt_taskTitle"
  482. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  483. unitIndex + 1 }}</div>
  484. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  485. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  486. <span>{{ unitJson[unitIndex].dyName }}</span>
  487. </el-tooltip>
  488. </div>
  489. </div>
  490. </div> -->
  491. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  492. .taskJson" :key="tIndex" :class="{
  493. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex,
  494. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex,
  495. }">
  496. <div @dragstart="dragTaskStart(t, tIndex)" @dragover.prevent="dragTaskOver(tIndex)"
  497. @dragend="dragTaskEnd()" draggable @click="goToTask(tIndex)" class="navTask" :class="{
  498. isNavTask:
  499. isClickColor > 0 && isClickColor == tIndex + 1,
  500. isNavOpen: t.toolOpen
  501. }">
  502. <div
  503. style="left: 8px;"
  504. class="chapter_upload_drag"
  505. ></div>
  506. <div class="nt_taskBox">
  507. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  508. <div class="nt_taskName">
  509. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  510. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  511. </el-tooltip>
  512. </div>
  513. </div>
  514. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  515. 1
  516. ">
  517. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  518. @click.stop="taskMove(1, tIndex)"></div>
  519. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  520. @click.stop="taskMove(2, tIndex)"></div>
  521. </div> -->
  522. </div>
  523. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  524. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  525. @click="jumpGj(tIndex, toolIndex2)">
  526. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  527. <div>工具{{ toolIndex2 + 1 }}:</div>
  528. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  529. </div>
  530. </div>
  531. </div>
  532. </div>
  533. </div>
  534. <div class="navBottom" v-if="courseState == 1">
  535. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" >
  536. <div @click="unitSet2(stageIndex)" class="navStage" :class="{
  537. isNavStage: stageIndex == unitIndex,
  538. isNavStageOpen: stage.toolOpen
  539. }">
  540. <div class="nt_taskBox">
  541. <div class="nt_taskTitle">第{{ stageIndex + 1 }}阶段:</div>
  542. <div class="nt_taskName">
  543. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'" placement="top">
  544. <span>{{ stage.dyName ? stage.dyName : '未命名阶段' }}</span>
  545. </el-tooltip>
  546. </div>
  547. </div>
  548. </div>
  549. <div v-for="(t, tIndex) in unitJson[stageIndex].chapterInfo[0]
  550. .taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  551. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex && stageIndex == unitIndex,
  552. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex && stageIndex == unitIndex,
  553. }" :style="{display:stage.toolOpen ? 'block' : 'none'}">
  554. <div @dragstart="dragTaskStart(t, tIndex)" @dragover.prevent="dragTaskOver(tIndex)"
  555. @dragend="dragTaskEnd()" draggable @click="goToTask2(tIndex, stageIndex)" class="navTask" :class="{
  556. isNavTask:
  557. isClickColor > 0 && isClickColor == tIndex + 1 && stageIndex == unitIndex,
  558. isNavOpen: t.toolOpen
  559. }">
  560. <div
  561. style="left: 8px;"
  562. class="chapter_upload_drag"
  563. ></div>
  564. <div class="nt_taskBox">
  565. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  566. <div class="nt_taskName">
  567. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  568. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  569. </el-tooltip>
  570. </div>
  571. </div>
  572. </div>
  573. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  574. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  575. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  576. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}${stageIndex}` }">
  577. <div>工具{{ toolIndex2 + 1 }}:</div>
  578. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  579. </div>
  580. </div>
  581. </div>
  582. </div>
  583. </div>
  584. </div>
  585. </div>
  586. </div>
  587. <div class="rb_c_box_right">
  588. <!-- <div class="rb_c_box_btn">
  589. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  590. </div> -->
  591. <div class="basic_box" ref="unitBox">
  592. <div style="
  593. display: flex;
  594. flex-direction: row;
  595. align-items: center;
  596. position: sticky;
  597. top: 0;
  598. z-index: 99;
  599. width: 100%;
  600. padding: 0 20px 0 20px;
  601. box-sizing: border-box;
  602. background: #fff;
  603. border-radius: 8px;
  604. ">
  605. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  606. <div class="cru_selectBox"
  607. :style="{ maxWidth: isPasteTask ? 'calc(100% - 335px)' : 'calc(100% - 190px)' }" v-if="courseState == 1">
  608. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  609. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  610. <!-- item.dyName ? item.dyName : -->
  611. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  612. unitJson[unitJson.length - 1].easy == 6
  613. ">{{
  614. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  615. }}</span>
  616. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  617. </div>
  618. <div class="cru_line" :style="{
  619. left: offsetLetfPx + 'px',
  620. }"></div>
  621. </div>
  622. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  623. !(unitJson[unitJson.length - 1].easy == 6) && courseState == 1
  624. ">
  625. <img src="../../assets/icon/new/addStage.png" alt />
  626. </div>
  627. <button class="c_pub_button_add pub_btn_add_img" @click="updateCourseState(1)" v-if="courseState == 2" style="margin: 15px 0">新建阶段</button>
  628. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  629. <button class="c_pub_button_add" @click="openStageBox" v-show="false"
  630. style="margin: 0 0 0 auto;">阶段顺序</button>
  631. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3 && isPasteTask"
  632. style="margin: 0 0 0 auto;">智能粘贴</button>
  633. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate"
  634. :style="{margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto'}" style="padding:0 12px">选择课程模板</button>
  635. </div>
  636. <div style="margin: 0 0 10px 0; padding: 0;" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  637. :key="index">
  638. <div class="chapter_box" v-if="courseState == 1">
  639. <div class="chapter_contentbox">
  640. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  641. <div class="cc_input">
  642. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  643. v-model="unitJson[unitIndex].dyName" />
  644. </div>
  645. <div class="remove" v-if="(unitJson.length > 1 || courseState != 2) &&
  646. !(unitJson[unitJson.length - 1].easy == 4) &&
  647. !(unitJson[unitJson.length - 1].easy == 6)
  648. " @click="deleteUnit(unitIndex)"></div>
  649. </div>
  650. </div>
  651. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  652. margin: 50px 0px 10px;
  653. font-size: 1.5em;
  654. font-weight: 700;
  655. color: #0f7eff;
  656. ">
  657. 添加任务
  658. </div> -->
  659. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  660. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  661. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  662. <div style="background: #fff;border-radius: 5px;">
  663. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  664. <!-- padding: 20px; -->
  665. <div v-if="unitJson[unitIndex].easy != 1">
  666. <div :style="{
  667. marginBottom:
  668. unitJson[unitIndex].easy == 3 ||
  669. (unitJson[unitIndex].easy == 5 &&
  670. itemTask.taskType == 1)
  671. ? '75px'
  672. : '0',
  673. }">
  674. <div style="
  675. display: flex;
  676. margin: 0px 0 20px;
  677. flex-direction: row;
  678. justify-content: flex-start;
  679. align-items: center;
  680. ">
  681. <div class="lineTitle">任务概述</div>
  682. </div>
  683. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  684. flex-direction: row;
  685. justify-content: flex-start;
  686. align-items: center;
  687. margin:0;
  688. ">
  689. <!-- <div class="cc_title">
  690. 任务{{ itemTaskIndex + 1 }}
  691. </div> -->
  692. <div class="cc_input">
  693. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  694. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  695. itemTaskIndex
  696. ].task
  697. " />
  698. </div>
  699. <div class="remove" v-if="item.taskJson.length > 1 &&
  700. (!unitJson[unitIndex].easy ||
  701. unitJson[unitIndex].easy == 6)
  702. " @click="deleteTask(itemTaskIndex)"></div>
  703. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  704. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  705. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  706. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  707. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  708. </div> -->
  709. </div>
  710. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  711. display: flex;
  712. margin: 20px 0;
  713. flex-direction: row;
  714. justify-content: flex-start;
  715. align-items: center;
  716. ">
  717. <div class="lineTitle">任务描述</div>
  718. </div> && !itemTask.isFold2-->
  719. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 "
  720. style="margin-top: 20px;">
  721. <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  722. itemTaskIndex
  723. ].taskDetail
  724. " @change="change"></editor-bar>
  725. <!-- <textarea
  726. rows="6"
  727. class="binfo_input"
  728. placeholder="请输入任务描述"
  729. cols
  730. style="width: 70.5% !important; height: 120px"
  731. v-model="
  732. unitJson[unitIndex].chapterInfo[0].taskJson[
  733. itemTaskIndex
  734. ].taskDetail
  735. "
  736. ></textarea>-->
  737. </div>
  738. </div>
  739. </div>
  740. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  741. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  742. ">
  743. <div style="
  744. display: flex;
  745. flex-direction: row;
  746. justify-content: space-between;
  747. align-items: center;
  748. " :style="{ margin: !itemTask.isFoldchapter ? '20px 0 10px' : '20px 0 0' }">
  749. <div style="margin-bottom:10px" class="lineTitle clineTitle">学习内容</div>
  750. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  751. @click="foldC(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  752. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  753. src="../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  754. <!-- <div class="line"></div> -->
  755. </div>
  756. <!-- v-if="!itemTask.isFoldchapter" -->
  757. <div>
  758. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  759. itemTask.chapterData.length == 0
  760. "><img src="../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  761. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  762. <div @dragstart="dragStart(item1, index1, itemTaskIndex)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  763. @dragend="dragEnd()" draggable class="chapter_upload"
  764. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  765. getChapterData(
  766. $event,
  767. unitIndex,
  768. index,
  769. index1,
  770. item1.type
  771. )
  772. " :class="{
  773. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  774. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  775. }">
  776. <div class="chapter_upload_drag"></div>
  777. <div class="chapter_upload_o" style="
  778. position: relative;
  779. display: flex;
  780. align-items: center;
  781. ">
  782. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  783. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  784. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  785. </div>
  786. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  787. </div>
  788. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  789. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  790. </div>
  791. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  792. </div>
  793. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  794. </div>
  795. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  796. </div>
  797. </div>
  798. <div class="chapter_upload_n">
  799. <input readonly="true" v-if="item1.type == 2 ||
  800. item1.type == 3 ||
  801. item1.type == 12 ||
  802. item1.type == 13 ||
  803. item1.type == 7
  804. " :placeholder="item1.name" @click="
  805. updataVideoT(
  806. $event,
  807. unitIndex,
  808. itemTaskIndex,
  809. index1
  810. )
  811. " style="
  812. border: none;
  813. outline: none;
  814. width: 80%;
  815. minwidth: 215px;
  816. z-index: 99;
  817. font-size: 14px;
  818. white-space: nowrap;
  819. overflow: hidden;
  820. text-overflow: ellipsis;
  821. " />
  822. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  823. border: none;
  824. outline: none;
  825. width: 80%;
  826. white-space: nowrap;
  827. overflow: hidden;
  828. text-overflow: ellipsis;
  829. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  830. <input :placeholder="item1.title ? item1.title : '链接'
  831. " v-if="item1.type == 8" style="
  832. border: none;
  833. outline: none;
  834. width: 80%;
  835. white-space: nowrap;
  836. overflow: hidden;
  837. text-overflow: ellipsis;
  838. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  839. <input :placeholder="item1.title ? item1.title : '链接'
  840. " v-if="item1.type == 14" style="
  841. border: none;
  842. outline: none;
  843. width: 80%;
  844. white-space: nowrap;
  845. overflow: hidden;
  846. text-overflow: ellipsis;
  847. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  848. </div>
  849. <div class="chapter_upload_ic">
  850. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  851. </div>
  852. <div class="chapter_upload_ud" style="z-index: 99">
  853. <div class="chapter_upload_up" @click="
  854. upCd(
  855. $event,
  856. unitIndex,
  857. index,
  858. itemTaskIndex,
  859. index1
  860. )
  861. "></div>
  862. <div class="chapter_upload_down" @click="
  863. downCd(
  864. $event,
  865. unitIndex,
  866. index,
  867. itemTaskIndex,
  868. index1
  869. )
  870. "></div>
  871. </div>
  872. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  873. item1.type == 3 ||
  874. item1.type == 12 ||
  875. item1.type == 13 ||
  876. item1.type == 7
  877. " @click.stop="
  878. updataVideoT(
  879. $event,
  880. unitIndex,
  881. itemTaskIndex,
  882. index1
  883. )
  884. ">
  885. <div></div>
  886. </div>
  887. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  888. @click="selectAttText(itemTaskIndex, index1)">
  889. <div></div>
  890. </div>
  891. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  892. @click="selectLine(itemTaskIndex, index1)">
  893. <div></div>
  894. </div>
  895. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  896. @click="openUpdateSource(itemTaskIndex, index1)">
  897. <div></div>
  898. </div>
  899. <div class="chapter_upload_ic_r" @click.stop="
  900. deleteChapterData(
  901. $event,
  902. unitIndex,
  903. index,
  904. index1,
  905. itemTaskIndex
  906. )
  907. ">
  908. <div></div>
  909. </div>
  910. </div>
  911. </div>
  912. </div>
  913. </div>
  914. </div>
  915. <!-- v-if="!itemTask.isFoldchapter" -->
  916. <div class="add_info_box" style="margin: 10px 0 0">
  917. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  918. 文件
  919. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  920. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  921. " />
  922. </button>
  923. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  924. 图文
  925. </button>
  926. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  927. 链接
  928. </button>
  929. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  930. 代码
  931. </button>
  932. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  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 == 1 ||
  972. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  973. ">
  974. <div>
  975. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  976. itemTask.chapterData.length == 0
  977. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  978. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  979. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  980. @dragend="dragEnd()" draggable class="chapter_upload"
  981. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  982. getChapterData(
  983. $event,
  984. unitIndex,
  985. index,
  986. index1,
  987. item1.type
  988. )
  989. " :class="{
  990. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  991. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  992. }">
  993. <div class="chapter_upload_drag"></div>
  994. <div class="chapter_upload_t" style="width: 100%"></div>
  995. <div class="chapter_upload_o" style="
  996. position: relative;
  997. display: flex;
  998. align-items: center;
  999. ">
  1000. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1001. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1002. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1003. </div>
  1004. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1005. </div>
  1006. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1007. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1008. </div>
  1009. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1010. </div>
  1011. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1012. </div>
  1013. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1014. </div>
  1015. </div>
  1016. <div class="chapter_upload_n">
  1017. <span style="
  1018. font-size: 14px;
  1019. color: rgb(109, 109, 109);
  1020. height: 14px;
  1021. line-height: 14px;
  1022. " v-if="item1.type == 2 ||
  1023. item1.type == 3 ||
  1024. item1.type == 7
  1025. ">{{ item1.text }}-</span>
  1026. <input readonly="true" v-if="item1.type == 2 ||
  1027. item1.type == 3 ||
  1028. item1.type == 7
  1029. " :placeholder="item1.name" @click="
  1030. updataVideoT(
  1031. $event,
  1032. unitIndex,
  1033. itemTaskIndex,
  1034. index1
  1035. )
  1036. " style="
  1037. border: none;
  1038. outline: none;
  1039. width: 80%;
  1040. minwidth: 215px;
  1041. z-index: 99;
  1042. font-size: 14px;
  1043. white-space: nowrap;
  1044. overflow: hidden;
  1045. text-overflow: ellipsis;
  1046. " />
  1047. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1048. border: none;
  1049. outline: none;
  1050. width: 80%;
  1051. white-space: nowrap;
  1052. overflow: hidden;
  1053. text-overflow: ellipsis;
  1054. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1055. <input :placeholder="item1.title ? item1.title : '链接'
  1056. " v-if="item1.type == 8 || item1.type == 14" style="
  1057. border: none;
  1058. outline: none;
  1059. width: 80%;
  1060. white-space: nowrap;
  1061. overflow: hidden;
  1062. text-overflow: ellipsis;
  1063. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1064. </div>
  1065. <div class="chapter_upload_ic">
  1066. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  1067. </div>
  1068. <div class="chapter_upload_ud" style="z-index: 99">
  1069. <div class="chapter_upload_up" @click="
  1070. upCd(
  1071. $event,
  1072. unitIndex,
  1073. index,
  1074. itemTaskIndex,
  1075. index1
  1076. )
  1077. "></div>
  1078. <div class="chapter_upload_down" @click="
  1079. downCd(
  1080. $event,
  1081. unitIndex,
  1082. index,
  1083. itemTaskIndex,
  1084. index1
  1085. )
  1086. "></div>
  1087. </div>
  1088. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  1089. item1.type == 3 ||
  1090. item1.type == 12 ||
  1091. item1.type == 13 ||
  1092. item1.type == 7
  1093. " @click.stop="
  1094. updataVideoT(
  1095. $event,
  1096. unitIndex,
  1097. itemTaskIndex,
  1098. index1
  1099. )
  1100. ">
  1101. <div></div>
  1102. </div>
  1103. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  1104. @click="selectAttText(itemTaskIndex, index1)">
  1105. <div></div>
  1106. </div>
  1107. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1108. @click="selectLine(itemTaskIndex, index1)">
  1109. <div></div>
  1110. </div>
  1111. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  1112. @click="openUpdateSource(itemTaskIndex, index1)">
  1113. <div></div>
  1114. </div>
  1115. <div class="chapter_upload_ic_r" @click.stop="
  1116. deleteChapterData(
  1117. $event,
  1118. unitIndex,
  1119. index,
  1120. index1,
  1121. itemTaskIndex
  1122. )
  1123. ">
  1124. <div></div>
  1125. </div>
  1126. </div>
  1127. </div>
  1128. </div>
  1129. </div>
  1130. </div>
  1131. <div class="add_info_box" style="margin: 10px 0 0">
  1132. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1133. <span style="color: red">*</span>
  1134. 教学设计
  1135. <input type="file"
  1136. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1137. style="display: none" v-if="inputShow" @change="
  1138. beforeUpload3(
  1139. $event,
  1140. unitIndex,
  1141. 3,
  1142. itemTaskIndex,
  1143. '教学设计'
  1144. )
  1145. " />
  1146. </button>
  1147. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1148. <span style="color: red">*</span>
  1149. 教学课件
  1150. <input type="file"
  1151. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1152. style="display: none" v-if="inputShow" @change="
  1153. beforeUpload3(
  1154. $event,
  1155. unitIndex,
  1156. 3,
  1157. itemTaskIndex,
  1158. '教学课件'
  1159. )
  1160. " />
  1161. </button>
  1162. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1163. 教学视频
  1164. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1165. style="display: none" v-if="inputShow" @change="
  1166. beforeUpload3(
  1167. $event,
  1168. unitIndex,
  1169. 2,
  1170. itemTaskIndex,
  1171. '教学视频'
  1172. )
  1173. " />
  1174. </button>
  1175. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1176. 教学音频
  1177. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1178. beforeUpload3(
  1179. $event,
  1180. unitIndex,
  1181. 2,
  1182. itemTaskIndex,
  1183. '教学音频'
  1184. )
  1185. " />
  1186. </button>
  1187. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1188. 学习单
  1189. <input type="file"
  1190. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1191. style="display: none" v-if="inputShow" @change="
  1192. beforeUpload3(
  1193. $event,
  1194. unitIndex,
  1195. 3,
  1196. itemTaskIndex,
  1197. '学习单'
  1198. )
  1199. " />
  1200. </button>
  1201. </div>
  1202. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1203. itemTaskIndex
  1204. ].proVisible
  1205. " class="mask">
  1206. <div class="progressBox">
  1207. <!-- <div id="closePro" class="closeCss">
  1208. <img src="../../../assets/icon/close.png" alt />
  1209. </div> -->
  1210. <div class="lbox">
  1211. <img src="../../assets/loading.gif" />上传中,请稍后
  1212. </div>
  1213. <div style="margin-bottom: 10px">
  1214. <span>{{
  1215. unitJson[unitIndex].chapterInfo[0].taskJson[
  1216. itemTaskIndex
  1217. ].isFinishSize
  1218. }}M</span>
  1219. /
  1220. <span>{{
  1221. unitJson[unitIndex].chapterInfo[0].taskJson[
  1222. itemTaskIndex
  1223. ].isAllSize
  1224. }}M</span>
  1225. </div>
  1226. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1227. itemTaskIndex
  1228. ].progress
  1229. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1230. itemTaskIndex
  1231. ].progress
  1232. : 0
  1233. " style="width: 80%"></el-progress>
  1234. </div>
  1235. </div>
  1236. </div>
  1237. </div>
  1238. <!-- padding: 20px; -->
  1239. <div style="background: #fff;border-radius: 5px;margin-top: 15px;">
  1240. <div v-if="unitJson[unitIndex].easy != 3 &&
  1241. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1242. " style="
  1243. flex-direction: row;
  1244. justify-content: flex-start;
  1245. align-items: center;
  1246. ">
  1247. <div style="
  1248. display: flex;
  1249. flex-direction: row;
  1250. align-items: center;
  1251. margin: 5px 0 20px;
  1252. ">
  1253. <div class="lineTitle clineTitle">
  1254. {{
  1255. !unitJson[unitIndex].easy ||
  1256. unitJson[unitIndex].easy == 6 ||
  1257. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1258. ? "练习内容"
  1259. : "评价内容"
  1260. }}
  1261. </div>
  1262. <!-- <div class="line" style="width: 90%"></div> -->
  1263. </div>
  1264. </div>
  1265. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1266. " class="toolChoose">
  1267. <div class="tools">
  1268. <div class="leftTools" style="
  1269. width: 100%;
  1270. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1271. <div style="
  1272. display: flex;
  1273. flex-direction: row;
  1274. align-items: baseline;
  1275. flex-wrap: nowrap;
  1276. justify-content: flex-start;
  1277. position: relative;
  1278. ">
  1279. <div style="margin-right: 20px; font-weight: bold"
  1280. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1281. 工具 {{ toolIndex + 1 }} :
  1282. </div>
  1283. <div class="chooseWho">
  1284. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1285. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  1286. 互动类
  1287. </div>
  1288. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1289. " @click="(itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()">
  1290. 思维类
  1291. </div>
  1292. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1293. " @click="(itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()">
  1294. 协作类
  1295. </div>
  1296. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1297. " @click="(itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()">
  1298. 测评类
  1299. </div>
  1300. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1301. " @click="(itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()">
  1302. 评价类
  1303. </div>
  1304. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1305. " @click="(itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()">
  1306. 编程类
  1307. </div>
  1308. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1309. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  1310. 学科类
  1311. </div>
  1312. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1313. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1314. 其他
  1315. </div> -->
  1316. </div>
  1317. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px auto' : '0 0 0 auto' }" v-if="itemTask.toolChoose.length > 1">
  1318. <div class="chapter_upload_up2" @click.stop="
  1319. upTool(
  1320. $event,
  1321. unitIndex,
  1322. itemTaskIndex,
  1323. toolIndex
  1324. )
  1325. ">上移</div>
  1326. <div class="chapter_upload_down2" @click.stop="
  1327. downTool(
  1328. $event,
  1329. unitIndex,
  1330. itemTaskIndex,
  1331. toolIndex
  1332. )
  1333. ">下移</div>
  1334. </div>
  1335. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  1336. @click="fold3(itemTaskIndex, toolIndex)"
  1337. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1338. src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1339. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1340. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1341. src="../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  1342. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1343. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  1344. </div>
  1345. <!-- v-show="!itemTool.isFold3" -->
  1346. <div style="min-height: 163px">
  1347. <div class="toolSort" v-if="itemTool.toolType == 0">
  1348. <!-- <div class="tool">
  1349. <div
  1350. class="whiteBIcon"
  1351. @click="addTools(8, itemTaskIndex, toolIndex)"
  1352. >
  1353. <img src="../../assets/icon/secondToolList/library.png" alt />
  1354. <div style="margin: 5px 0">素材库</div>
  1355. </div>
  1356. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1357. <img
  1358. src="../../assets/icon/checkNo.png"
  1359. alt
  1360. v-if="itemTool.tool.indexOf(8) == -1"
  1361. />
  1362. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1363. alt /><span>已选择</span></div>
  1364. </div>
  1365. </div>-->
  1366. <!-- <div class="tool">
  1367. <div
  1368. class="whiteBIcon"
  1369. @click="addTools(17, itemTaskIndex, toolIndex)"
  1370. >
  1371. <img
  1372. src="../../assets/icon/secondToolList/library.png"
  1373. alt
  1374. />
  1375. <div style="margin: 5px 0">学习资料</div>
  1376. </div>
  1377. <div
  1378. class="check"
  1379. @click="addTools(17, itemTaskIndex, toolIndex)"
  1380. >
  1381. <img
  1382. src="../../assets/icon/checkNo.png"
  1383. alt
  1384. v-if="itemTool.tool.indexOf(17) == -1"
  1385. />
  1386. <img
  1387. src="../../assets/icon/checkedIs.png"
  1388. alt
  1389. v-else
  1390. />
  1391. </div>10
  1392. </div> -->
  1393. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  1394. @click="addTools(10, itemTaskIndex, toolIndex)">
  1395. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 10, toolIndex)">
  1396. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1397. <div style="margin: 5px 0">倒计时</div>
  1398. </div>
  1399. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1400. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  1401. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1402. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1403. <img src="../../assets/icon/checkNo.png" alt
  1404. v-if="itemTool.tool.indexOf(10) == -1" />
  1405. <div class="checkDiv" v-else>
  1406. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1407. </div>
  1408. </div> -->
  1409. </div>
  1410. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  1411. @click="addTools(65, itemTaskIndex, toolIndex)">
  1412. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  1413. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  1414. <div style="margin: 5px 0">挑人</div>
  1415. </div>
  1416. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1417. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  1418. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1419. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1420. <img src="../../assets/icon/checkNo.png" alt
  1421. v-if="itemTool.tool.indexOf(65) == -1" />
  1422. <div class="checkDiv" v-else>
  1423. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1424. </div>
  1425. </div> -->
  1426. </div>
  1427. <!-- <div class="tool">
  1428. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1429. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1430. <div style="margin: 5px 0">学生分组</div>
  1431. </div>
  1432. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1433. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1434. <div class="checkDiv" v-else>
  1435. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1436. </div>
  1437. </div>
  1438. </div> -->
  1439. <!-- <div class="tool">
  1440. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1441. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1442. <div style="margin: 5px 0">交互视频</div>
  1443. </div>
  1444. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1445. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1446. <div class="checkDiv" v-else>
  1447. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1448. </div>
  1449. </div>
  1450. </div> -->
  1451. </div>
  1452. <div class="toolSort" v-if="itemTool.toolType == 1">
  1453. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  1454. @click="addTools(7, itemTaskIndex, toolIndex)">
  1455. <div class="whiteBIcon" @click.stop="addTools(7, itemTaskIndex, toolIndex)">
  1456. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1457. <div style="margin: 5px 0">思维网格</div>
  1458. </div>
  1459. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1460. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  1461. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1462. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1463. <img src="../../assets/icon/checkNo.png" alt
  1464. v-if="itemTool.tool.indexOf(7) == -1" />
  1465. <div class="checkDiv" v-else>
  1466. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1467. </div>
  1468. </div> -->
  1469. </div>
  1470. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  1471. @click="addTools(1, itemTaskIndex, toolIndex)">
  1472. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 1, toolIndex)">
  1473. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1474. <div style="margin: 5px 0">电子白板</div>
  1475. </div>
  1476. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1477. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  1478. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1479. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1480. <img src="../../assets/icon/checkNo.png" alt
  1481. v-if="itemTool.tool.indexOf(1) == -1" />
  1482. <div class="checkDiv" v-else>
  1483. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1484. </div>
  1485. </div> -->
  1486. </div>
  1487. <!-- <div class="tool">
  1488. <div
  1489. class="whiteBIcon"
  1490. @click="addTools(2, itemTaskIndex, toolIndex)"
  1491. >
  1492. <img
  1493. src="../../assets/icon/secondToolList/note.png"
  1494. alt
  1495. />
  1496. <div style="margin: 5px 0">便签</div>
  1497. </div>
  1498. <div
  1499. class="check"
  1500. @click="addTools(2, itemTaskIndex, toolIndex)"
  1501. >
  1502. <img
  1503. src="../../assets/icon/checkNo.png"
  1504. alt
  1505. v-if="itemTool.tool.indexOf(2) == -1"
  1506. />
  1507. <div class="checkDiv" v-else>
  1508. <img
  1509. src="../../assets/icon/checkedIs.png"
  1510. alt
  1511. /><span>已选择</span>
  1512. </div>
  1513. </div>
  1514. </div> -->
  1515. <!-- <div class="tool">
  1516. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1517. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1518. <div style="margin: 5px 0">协同文档</div>
  1519. </div>
  1520. <div
  1521. class="check"
  1522. @click="addTools(6, itemTaskIndex, toolIndex)"
  1523. >
  1524. <img
  1525. src="../../assets/icon/checkNo.png"
  1526. alt
  1527. v-if="itemTool.tool.indexOf(6) == -1"
  1528. />
  1529. <div class="checkDiv" v-else>
  1530. <img
  1531. src="../../assets/icon/checkedIs.png"
  1532. alt
  1533. /><span>已选择</span>
  1534. </div>
  1535. </div>
  1536. </div> -->
  1537. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  1538. @click="addTools(52, itemTaskIndex, toolIndex)">
  1539. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 52, toolIndex)">
  1540. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1541. <div style="margin: 5px 0">文档</div>
  1542. </div>
  1543. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1544. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  1545. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1546. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1547. <img src="../../assets/icon/checkNo.png" alt
  1548. v-if="itemTool.tool.indexOf(52) == -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" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  1555. @click="addTools(3, itemTaskIndex, toolIndex)">
  1556. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 3, toolIndex)">
  1557. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1558. <div style="margin: 5px 0">思维导图</div>
  1559. </div>
  1560. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1561. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  1562. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1563. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1564. <img src="../../assets/icon/checkNo.png" alt
  1565. v-if="itemTool.tool.indexOf(3) == -1" />
  1566. <div class="checkDiv" v-else>
  1567. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1568. </div>
  1569. </div> -->
  1570. </div>
  1571. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  1572. @click="addTools(48, itemTaskIndex, toolIndex)">
  1573. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 48, toolIndex)">
  1574. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1575. <div style="margin: 5px 0">表格</div>
  1576. </div>
  1577. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1578. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  1579. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1580. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1581. <img src="../../assets/icon/checkNo.png" alt
  1582. v-if="itemTool.tool.indexOf(48) == -1" />
  1583. <div class="checkDiv" v-else>
  1584. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1585. </div>
  1586. </div> -->
  1587. </div>
  1588. </div>
  1589. <div class="toolSort" v-if="itemTool.toolType == 6">
  1590. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  1591. @click="addTools(49, itemTaskIndex, toolIndex)">
  1592. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 49, toolIndex)">
  1593. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1594. <div style="margin: 5px 0">学生分组</div>
  1595. </div>
  1596. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1597. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  1598. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1599. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1600. <img src="../../assets/icon/checkNo.png" alt
  1601. v-if="itemTool.tool.indexOf(49) == -1" />
  1602. <div class="checkDiv" v-else>
  1603. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1604. </div>
  1605. </div> -->
  1606. </div>
  1607. </div>
  1608. <div class="toolSort" v-if="itemTool.toolType == 2">
  1609. <!-- <div class="tool">
  1610. <div
  1611. class="whiteBIcon"
  1612. @click="addTools(5, itemTaskIndex, toolIndex)"
  1613. >
  1614. <img
  1615. src="../../assets/icon/thirdToolList/score.png"
  1616. alt
  1617. />
  1618. <div style="margin: 5px 0">量规评分</div>
  1619. </div>
  1620. <div
  1621. class="check"
  1622. @click="addTools(5, itemTaskIndex, toolIndex)"
  1623. >
  1624. <img
  1625. src="../../assets/icon/checkNo.png"
  1626. alt
  1627. v-if="itemTool.tool.indexOf(5) == -1"
  1628. />
  1629. <img
  1630. src="../../assets/icon/checkedIs.png"
  1631. alt
  1632. v-else
  1633. />
  1634. </div>
  1635. </div>-->
  1636. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  1637. @click="addTools(4, itemTaskIndex, toolIndex)">
  1638. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 4, toolIndex)">
  1639. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1640. <div style="margin: 5px 0">问卷调查</div>
  1641. </div>
  1642. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1643. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  1644. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1645. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1646. <img src="../../assets/icon/checkNo.png" alt
  1647. v-if="itemTool.tool.indexOf(4) == -1" />
  1648. <div class="checkDiv" v-else>
  1649. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1650. </div>
  1651. </div> -->
  1652. </div>
  1653. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  1654. @click="addTools(45, itemTaskIndex, toolIndex)">
  1655. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1656. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1657. <div style="margin: 5px 0">选择题</div>
  1658. </div>
  1659. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1660. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  1661. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1662. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1663. <img src="../../assets/icon/checkNo.png" alt
  1664. v-if="itemTool.tool.indexOf(45) == -1" />
  1665. <div class="checkDiv" v-else>
  1666. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1667. </div>
  1668. </div> -->
  1669. </div>
  1670. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  1671. @click="addTools(15, itemTaskIndex, toolIndex)">
  1672. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 15, toolIndex)">
  1673. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1674. <div style="margin: 5px 0">问答</div>
  1675. </div>
  1676. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1677. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  1678. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1679. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1680. <img src="../../assets/icon/checkNo.png" alt
  1681. v-if="itemTool.tool.indexOf(15) == -1" />
  1682. <div class="checkDiv" v-else>
  1683. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1684. </div>
  1685. </div> -->
  1686. </div>
  1687. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1688. @click="addTools(16, itemTaskIndex, toolIndex)">
  1689. <div class="whiteBIcon" @click.stop="addTools(16, itemTaskIndex, toolIndex)">
  1690. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1691. <div style="margin: 5px 0">作业提交</div>
  1692. </div>
  1693. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1694. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1695. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1696. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1697. <img src="../../assets/icon/checkNo.png" alt
  1698. v-if="itemTool.tool.indexOf(16) == -1" />
  1699. <div class="checkDiv" v-else>
  1700. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1701. </div>
  1702. </div> -->
  1703. </div>
  1704. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1705. @click="addTools(50, itemTaskIndex, toolIndex)">
  1706. <div class="whiteBIcon" @click.stop="addTools(50, itemTaskIndex, toolIndex)">
  1707. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1708. <div style="margin: 5px 0">批量上传</div>
  1709. </div>
  1710. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1711. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1712. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1713. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1714. <img src="../../assets/icon/checkNo.png" alt
  1715. v-if="itemTool.tool.indexOf(50) == -1" />
  1716. <div class="checkDiv" v-else>
  1717. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1718. </div>
  1719. </div> -->
  1720. </div>
  1721. <!-- <div class="tool">
  1722. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1723. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1724. <div style="margin: 5px 0">个人评价</div>
  1725. </div>
  1726. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1727. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1728. <div class="checkDiv" v-else>
  1729. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1730. </div>
  1731. </div>
  1732. </div> -->
  1733. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1734. @click="addTools(41, itemTaskIndex, toolIndex)">
  1735. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 41, toolIndex)">
  1736. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1737. <div style="margin: 5px 0">选择匹配</div>
  1738. </div>
  1739. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1740. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1741. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1742. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1743. <img src="../../assets/icon/checkNo.png" alt
  1744. v-if="itemTool.tool.indexOf(41) == -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" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1751. @click="addTools(47, itemTaskIndex, toolIndex)">
  1752. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 47, toolIndex)">
  1753. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1754. <div style="margin: 5px 0">排序</div>
  1755. </div>
  1756. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1757. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1758. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1759. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1760. <img src="../../assets/icon/checkNo.png" alt
  1761. v-if="itemTool.tool.indexOf(47) == -1" />
  1762. <div class="checkDiv" v-else>
  1763. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1764. </div>
  1765. </div> -->
  1766. </div>
  1767. <!-- <div class="tool">
  1768. <div
  1769. class="whiteBIcon"
  1770. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1771. >
  1772. <img
  1773. src="../../assets/icon/thirdToolList/mp3.png"
  1774. alt
  1775. />
  1776. <div style="margin: 5px 0">上传音频</div>
  1777. </div>
  1778. <div
  1779. class="check"
  1780. @click="addTools(42, itemTaskIndex, toolIndex)"
  1781. >
  1782. <img
  1783. src="../../assets/icon/checkNo.png"
  1784. alt
  1785. v-if="itemTool.tool.indexOf(42) == -1"
  1786. />
  1787. <img
  1788. src="../../assets/icon/checkedIs.png"
  1789. alt
  1790. v-else
  1791. />
  1792. </div>
  1793. </div> -->
  1794. </div>
  1795. <div class="toolSort" v-if="itemTool.toolType == 3">
  1796. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1797. @click="addTools(18, itemTaskIndex, toolIndex)">
  1798. <div class="whiteBIcon" @click.stop="addTools(18, itemTaskIndex, toolIndex)">
  1799. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1800. <div style="margin: 5px 0">训练平台</div>
  1801. </div>
  1802. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1803. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1804. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1805. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1806. <img src="../../assets/icon/checkNo.png" alt
  1807. v-if="itemTool.tool.indexOf(18) == -1" />
  1808. <div class="checkDiv" v-else>
  1809. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1810. </div>
  1811. </div> -->
  1812. </div>
  1813. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1814. @click="addTools(21, itemTaskIndex, toolIndex)">
  1815. <div class="whiteBIcon" @click.stop="addTools(21, itemTaskIndex, toolIndex)">
  1816. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1817. <div style="margin: 5px 0">AIoT Blockly</div>
  1818. </div>
  1819. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1820. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1821. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1822. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1823. <img src="../../assets/icon/checkNo.png" alt
  1824. v-if="itemTool.tool.indexOf(21) == -1" />
  1825. <div class="checkDiv" v-else>
  1826. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1827. </div>
  1828. </div> -->
  1829. </div>
  1830. <!-- <div class="tool">
  1831. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1832. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1833. <div style="margin: 5px 0">AI体验</div>
  1834. </div>
  1835. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1836. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1837. <div class="checkDiv" v-else>
  1838. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1839. </div>
  1840. </div>
  1841. </div> -->
  1842. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1843. @click="addTools(23, itemTaskIndex, toolIndex)">
  1844. <div class="whiteBIcon" @click.stop="addTools(23, itemTaskIndex, toolIndex)">
  1845. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1846. <div style="margin: 5px 0">AI Python</div>
  1847. </div>
  1848. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1849. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1850. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1851. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1852. <img src="../../assets/icon/checkNo.png" alt
  1853. v-if="itemTool.tool.indexOf(23) == -1" />
  1854. <div class="checkDiv" v-else>
  1855. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1856. </div>
  1857. </div> -->
  1858. </div>
  1859. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1860. @click="addTools(24, itemTaskIndex, toolIndex)">
  1861. <div class="whiteBIcon" @click.stop="addTools(24, itemTaskIndex, toolIndex)">
  1862. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1863. <div style="margin: 5px 0">AI Blockly</div>
  1864. </div>
  1865. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1866. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1867. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1868. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1869. <img src="../../assets/icon/checkNo.png" alt
  1870. v-if="itemTool.tool.indexOf(24) == -1" />
  1871. <div class="checkDiv" v-else>
  1872. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1873. </div>
  1874. </div> -->
  1875. </div>
  1876. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1877. @click="addTools(32, itemTaskIndex, toolIndex)">
  1878. <div class="whiteBIcon" @click.stop="addTools(32, itemTaskIndex, toolIndex)">
  1879. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1880. <div style="margin: 5px 0">源码编辑</div>
  1881. </div>
  1882. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1883. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1884. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1885. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1886. <img src="../../assets/icon/checkNo.png" alt
  1887. v-if="itemTool.tool.indexOf(32) == -1" />
  1888. <div class="checkDiv" v-else>
  1889. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1890. </div>
  1891. </div> -->
  1892. </div>
  1893. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1894. @click="addTools(57, itemTaskIndex, toolIndex)">
  1895. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1896. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1897. <div style="margin: 5px 0">CocoPi</div>
  1898. </div>
  1899. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1900. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1901. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1902. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1903. <img src="../../assets/icon/checkNo.png" alt
  1904. v-if="itemTool.tool.indexOf(57) == -1" />
  1905. <div class="checkDiv" v-else>
  1906. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1907. </div>
  1908. </div> -->
  1909. </div>
  1910. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1911. @click="addTools(63, itemTaskIndex, toolIndex)">
  1912. <div class="whiteBIcon" @click.stop="addTools(63, itemTaskIndex, toolIndex)">
  1913. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1914. <div style="margin: 5px 0">海龟编程</div>
  1915. </div>
  1916. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1917. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1918. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1919. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1920. <img src="../../assets/icon/checkNo.png" alt
  1921. v-if="itemTool.tool.indexOf(63) == -1" />
  1922. <div class="checkDiv" v-else>
  1923. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1924. </div>
  1925. </div> -->
  1926. </div>
  1927. </div>
  1928. <div class="toolSort" v-if="itemTool.toolType == 7">
  1929. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1930. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1931. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 40, toolIndex)">
  1932. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1933. <div style="margin: 5px 0">个人评价</div>
  1934. </div>
  1935. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1936. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1937. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1938. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1939. <img src="../../assets/icon/checkNo.png" alt
  1940. v-if="itemTool.tool.indexOf(40) == -1" />
  1941. <div class="checkDiv" v-else>
  1942. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1943. </div>
  1944. </div> -->
  1945. </div>
  1946. </div>
  1947. <div class="toolSort" v-if="itemTool.toolType == 5">
  1948. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1949. @click="addTools(28, itemTaskIndex, toolIndex)">
  1950. <div class="whiteBIcon" @click.stop="addTools(28, itemTaskIndex, toolIndex)">
  1951. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1952. <div style="margin: 5px 0">翻译</div>
  1953. </div>
  1954. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1955. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1956. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1957. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1958. <img src="../../assets/icon/checkNo.png" alt
  1959. v-if="itemTool.tool.indexOf(28) == -1" />
  1960. <div class="checkDiv" v-else>
  1961. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1962. </div>
  1963. </div> -->
  1964. </div>
  1965. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1966. @click="addTools(31, itemTaskIndex, toolIndex)">
  1967. <div class="whiteBIcon" @click.stop="addTools(31, itemTaskIndex, toolIndex)">
  1968. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1969. <div style="margin: 5px 0">数字画板</div>
  1970. </div>
  1971. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1972. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1973. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1974. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1975. <img src="../../assets/icon/checkNo.png" alt
  1976. v-if="itemTool.tool.indexOf(31) == -1" />
  1977. <div class="checkDiv" v-else>
  1978. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1979. </div>
  1980. </div> -->
  1981. </div>
  1982. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1983. @click="addTools(39, itemTaskIndex, toolIndex)">
  1984. <div class="whiteBIcon" @click.stop="addTools(39, itemTaskIndex, toolIndex)">
  1985. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1986. <div style="margin: 5px 0">GeoGebra</div>
  1987. </div>
  1988. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1989. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  1990. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1991. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1992. <img src="../../assets/icon/checkNo.png" alt
  1993. v-if="itemTool.tool.indexOf(39) == -1" />
  1994. <div class="checkDiv" v-else>
  1995. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1996. </div>
  1997. </div> -->
  1998. </div>
  1999. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  2000. @click="addTools(66, itemTaskIndex, toolIndex)">
  2001. <div class="whiteBIcon" @click.stop="addTools(66, itemTaskIndex, toolIndex)">
  2002. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  2003. <div style="margin: 5px 0">公式编辑</div>
  2004. </div>
  2005. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2006. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  2007. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2008. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  2009. <img src="../../assets/icon/checkNo.png" alt
  2010. v-if="itemTool.tool.indexOf(66) == -1" />
  2011. <div class="checkDiv" v-else>
  2012. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2013. </div>
  2014. </div> -->
  2015. </div>
  2016. <!-- <div class="tool">
  2017. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  2018. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  2019. <div style="margin: 5px 0">分子结构</div>
  2020. </div>
  2021. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  2022. <img src="../../assets/icon/checkNo.png" alt
  2023. v-if="itemTool.tool.indexOf(67) == -1" />
  2024. <div class="checkDiv" v-else>
  2025. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2026. </div>
  2027. </div>
  2028. </div> -->
  2029. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  2030. @click="addTools(68, itemTaskIndex, toolIndex)">
  2031. <div class="whiteBIcon" @click.stop="addTools(68, itemTaskIndex, toolIndex)">
  2032. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  2033. <div style="margin: 5px 0">时间轴</div>
  2034. </div>
  2035. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2036. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  2037. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2038. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  2039. <img src="../../assets/icon/checkNo.png" alt
  2040. v-if="itemTool.tool.indexOf(68) == -1" />
  2041. <div class="checkDiv" v-else>
  2042. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2043. </div>
  2044. </div> -->
  2045. </div>
  2046. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  2047. @click="addTools(69, itemTaskIndex, toolIndex)">
  2048. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 69, toolIndex)">
  2049. <img src="../../assets/icon/thirdToolList/english.png" alt />
  2050. <div style="margin: 5px 0">英语写作</div>
  2051. </div>
  2052. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2053. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1"><img
  2054. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2055. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2056. <img src="../../assets/icon/checkNo.png" alt
  2057. v-if="itemTool.tool.indexOf(4) == -1" />
  2058. <div class="checkDiv" v-else>
  2059. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2060. </div>
  2061. </div> -->
  2062. </div>
  2063. <!-- <div class="tool">
  2064. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2065. <img src="../../assets/icon/secondToolList/translation.png" alt />
  2066. <div style="margin: 5px 0">翻译</div>
  2067. </div>
  2068. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2069. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2070. <div class="checkDiv" v-else>
  2071. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2072. </div>
  2073. </div>
  2074. </div>
  2075. <div class="tool">
  2076. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2077. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  2078. <div style="margin: 5px 0">魔盒识字</div>
  2079. </div>
  2080. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2081. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  2082. <div class="checkDiv" v-else>
  2083. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. <div class="tool">
  2088. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  2089. <img src="../../assets/icon/secondToolList/24game.png" alt />
  2090. <div style="margin: 5px 0">24点</div>
  2091. </div>
  2092. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  2093. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  2094. <div class="checkDiv" v-else>
  2095. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2096. </div>
  2097. </div>
  2098. </div>
  2099. <div class="tool">
  2100. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  2101. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2102. <div style="margin: 5px 0">数学画板</div>
  2103. </div>
  2104. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2105. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2106. <div class="checkDiv" v-else>
  2107. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2108. </div>
  2109. </div>
  2110. </div>
  2111. <div class="tool">
  2112. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2113. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  2114. <div style="margin: 5px 0">GeoGebra</div>
  2115. </div>
  2116. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2117. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2118. <div class="checkDiv" v-else>
  2119. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2120. </div>
  2121. </div>
  2122. </div>
  2123. <div class="tool">
  2124. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  2125. <img src="../../assets/icon/fourthToolList/car.png" alt />
  2126. <div style="margin: 5px 0">模拟驾驶</div>
  2127. </div>
  2128. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  2129. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  2130. <div class="checkDiv" v-else>
  2131. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2132. </div>
  2133. </div>
  2134. </div>
  2135. <div class="tool">
  2136. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  2137. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  2138. <div style="margin: 5px 0">路径搜索</div>
  2139. </div>
  2140. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  2141. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  2142. <div class="checkDiv" v-else>
  2143. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2144. </div>
  2145. </div>
  2146. </div>
  2147. <div class="tool">
  2148. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  2149. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  2150. <div style="margin: 5px 0">深度学习</div>
  2151. </div>
  2152. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  2153. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  2154. <div class="checkDiv" v-else>
  2155. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. <div class="tool">
  2160. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  2161. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  2162. <div style="margin: 5px 0">全历史</div>
  2163. </div>
  2164. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  2165. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  2166. <div class="checkDiv" v-else>
  2167. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2168. </div>
  2169. </div>
  2170. </div>
  2171. </div>
  2172. <div class="toolSort" v-if="itemTool.toolType == 4">
  2173. <div class="tool">
  2174. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  2175. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  2176. <div style="margin: 5px 0">课程设计</div>
  2177. </div>
  2178. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  2179. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  2180. <div class="checkDiv" v-else>
  2181. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2182. </div>
  2183. </div>
  2184. </div>
  2185. <div class="tool">
  2186. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  2187. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  2188. <div style="margin: 5px 0">目标管理</div>
  2189. </div>
  2190. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  2191. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  2192. <div class="checkDiv" v-else>
  2193. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2194. </div>
  2195. </div>
  2196. </div> -->
  2197. <!-- <div class="tool">
  2198. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2199. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  2200. <div style="margin: 5px 0">汉字宫</div>
  2201. </div>
  2202. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2203. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2204. <div class="checkDiv" v-else>
  2205. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2206. </div>
  2207. </div>
  2208. </div> -->
  2209. </div>
  2210. </div>
  2211. <!-- v-show="!itemTool.isFold3" -->
  2212. <div>
  2213. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  2214. style="margin: 0 0 20px 0; width: 100% !important"
  2215. v-model="itemTool.toolDetail"></textarea>
  2216. </div>
  2217. </div>
  2218. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2219. <div class="addToolImg">
  2220. <img src="../../assets/icon/add.png" alt />
  2221. </div>
  2222. <div>添加工具</div>
  2223. </div> -->
  2224. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 0 auto;padding: 0 30px;height: 45px;">
  2225. 添加工具
  2226. </button>
  2227. </div>
  2228. </div>
  2229. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2230. unitJson[unitIndex].easy == 4
  2231. " class="toolChoose" style="padding: 0 0 40px;">
  2232. <div class="tools">
  2233. <div class="leftTools" style="width: 100%"
  2234. v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2235. <div>
  2236. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2237. style="margin: 0 0 20px 0; width: 100% !important"
  2238. v-model="itemTool.toolDetail"></textarea>
  2239. </div>
  2240. <div style="
  2241. display: flex;
  2242. flex-direction: row;
  2243. align-items: baseline;
  2244. flex-wrap: nowrap;
  2245. justify-content: flex-start;
  2246. position: relative;
  2247. ">
  2248. <div style="margin-right: 20px; font-weight: bold"
  2249. :id="'gj' + itemTaskIndex + '' + toolIndex">
  2250. 工具 {{ toolIndex + 1 }} :
  2251. </div>
  2252. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2253. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  2254. </div>
  2255. <div style="min-height: 163px">
  2256. <div class="toolSort">
  2257. <div class="tool">
  2258. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2259. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2260. <div style="margin: 5px 0">电子白板</div>
  2261. </div>
  2262. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2263. <img src="../../assets/icon/checkNo.png" alt
  2264. v-if="itemTool.tool.indexOf(1) == -1" />
  2265. <div class="checkDiv" v-else>
  2266. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2267. </div>
  2268. </div>
  2269. </div>
  2270. <div class="tool">
  2271. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2272. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2273. <div style="margin: 5px 0">文档</div>
  2274. </div>
  2275. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2276. <img src="../../assets/icon/checkNo.png" alt
  2277. v-if="itemTool.tool.indexOf(52) == -1" />
  2278. <div class="checkDiv" v-else>
  2279. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. <div class="tool">
  2284. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2285. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2286. <div style="margin: 5px 0">思维导图</div>
  2287. </div>
  2288. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2289. <img src="../../assets/icon/checkNo.png" alt
  2290. v-if="itemTool.tool.indexOf(3) == -1" />
  2291. <div class="checkDiv" v-else>
  2292. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2293. </div>
  2294. </div>
  2295. </div>
  2296. <div class="tool">
  2297. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2298. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2299. <div style="margin: 5px 0">问卷调查</div>
  2300. </div>
  2301. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2302. <img src="../../assets/icon/checkNo.png" alt
  2303. v-if="itemTool.tool.indexOf(4) == -1" />
  2304. <div class="checkDiv" v-else>
  2305. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2306. </div>
  2307. </div>
  2308. </div>
  2309. <div class="tool">
  2310. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2311. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  2312. <div style="margin: 5px 0">选择题</div>
  2313. </div>
  2314. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2315. <img src="../../assets/icon/checkNo.png" alt
  2316. v-if="itemTool.tool.indexOf(45) == -1" />
  2317. <div class="checkDiv" v-else>
  2318. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2319. </div>
  2320. </div>
  2321. </div>
  2322. <div class="tool">
  2323. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2324. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  2325. <div style="margin: 5px 0">问答</div>
  2326. </div>
  2327. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2328. <img src="../../assets/icon/checkNo.png" alt
  2329. v-if="itemTool.tool.indexOf(15) == -1" />
  2330. <div class="checkDiv" v-else>
  2331. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2332. </div>
  2333. </div>
  2334. </div>
  2335. <div class="tool">
  2336. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2337. <img src="../../assets/icon/thirdToolList/work.png" alt />
  2338. <div style="margin: 5px 0">作业提交</div>
  2339. </div>
  2340. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2341. <img src="../../assets/icon/checkNo.png" alt
  2342. v-if="itemTool.tool.indexOf(16) == -1" />
  2343. <div class="checkDiv" v-else>
  2344. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2345. </div>
  2346. </div>
  2347. </div>
  2348. <div class="tool">
  2349. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2350. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2351. <div style="margin: 5px 0">批量上传</div>
  2352. </div>
  2353. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2354. <img src="../../assets/icon/checkNo.png" alt
  2355. v-if="itemTool.tool.indexOf(50) == -1" />
  2356. <div class="checkDiv" v-else>
  2357. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2358. </div>
  2359. </div>
  2360. </div>
  2361. <div class="tool">
  2362. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2363. <img src="../../assets/icon/thirdToolList/select.png" alt />
  2364. <div style="margin: 5px 0">选择匹配</div>
  2365. </div>
  2366. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2367. <img src="../../assets/icon/checkNo.png" alt
  2368. v-if="itemTool.tool.indexOf(41) == -1" />
  2369. <div class="checkDiv" v-else>
  2370. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2371. </div>
  2372. </div>
  2373. </div>
  2374. <div class="tool">
  2375. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2376. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  2377. <div style="margin: 5px 0">排序</div>
  2378. </div>
  2379. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2380. <img src="../../assets/icon/checkNo.png" alt
  2381. v-if="itemTool.tool.indexOf(47) == -1" />
  2382. <div class="checkDiv" v-else>
  2383. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2384. </div>
  2385. </div>
  2386. </div>
  2387. <div class="tool">
  2388. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2389. <img src="../../assets/icon/fourthToolList/table.png" alt />
  2390. <div style="margin: 5px 0">表格</div>
  2391. </div>
  2392. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2393. <img src="../../assets/icon/checkNo.png" alt
  2394. v-if="itemTool.tool.indexOf(48) == -1" />
  2395. <div class="checkDiv" v-else>
  2396. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2397. </div>
  2398. </div>
  2399. </div>
  2400. </div>
  2401. </div>
  2402. </div>
  2403. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2404. <div class="addToolImg">
  2405. <img src="../../assets/icon/add.png" alt />
  2406. </div>
  2407. <div>添加工具</div>
  2408. </div> -->
  2409. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 35px auto 20px">
  2410. 添加工具
  2411. </button>
  2412. </div>
  2413. </div>
  2414. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2415. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2416. " class="toolChoose" style="padding: 0 0 40px;">
  2417. <div class="tools">
  2418. <div class="leftTools" style="
  2419. width: 100%;
  2420. padding: 0 0 15px 0;
  2421. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2422. <div style="min-height: 163px">
  2423. <div class="toolSort">
  2424. <div class="tool">
  2425. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2426. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2427. <div style="margin: 5px 0">批量上传</div>
  2428. </div>
  2429. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2430. <img src="../../assets/icon/checkNo.png" alt
  2431. v-if="itemTool.tool.indexOf(50) == -1" />
  2432. <div class="checkDiv" v-else>
  2433. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2434. </div>
  2435. </div>
  2436. </div>
  2437. </div>
  2438. </div>
  2439. </div>
  2440. </div>
  2441. </div>
  2442. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2443. <div class="elist_title">
  2444. <div style="
  2445. display: flex;
  2446. flex-direction: row;
  2447. align-items: center;
  2448. margin: 20px 0;
  2449. ">
  2450. <div class="lineTitle clineTitle">评价设置</div>
  2451. <!-- <div class="line" style="width: 90%"></div> -->
  2452. </div>
  2453. </div>
  2454. <div class="mbCss">
  2455. <div class="pjCss" :style="{width:itemTask.isEvaFold?'calc(100% - 55%)':'calc(100% - 120px)'}">
  2456. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2457. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2458. <span>评价名称:</span>
  2459. <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价名称'" placement="top" popper-class="text_tooltip2">
  2460. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2461. </el-tooltip>
  2462. <span>评星等级:</span>
  2463. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  2464. disabled></el-rate>
  2465. <div class="remove" @click="
  2466. deletEList(unitIndex, itemTaskIndex, eIndex)
  2467. "></div>
  2468. <div class="elist_inptu_text">
  2469. <span>评价描述:</span>
  2470. <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写评价描述'" placement="top" popper-class="text_tooltip2">
  2471. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2472. </el-tooltip>
  2473. </div>
  2474. <div class="elist_inptu_text" v-if="evalua">
  2475. <span>目标:</span>
  2476. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2477. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2478. @change="forceUpdate()">
  2479. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2480. :value="e.name">
  2481. </el-option>
  2482. </el-select> -->
  2483. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2484. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2485. </div>
  2486. </div>
  2487. </div>
  2488. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  2489. style="margin: 35px 35px 0 0">
  2490. <div class="addToolImg">
  2491. <img src="../../assets/icon/add.png" alt />
  2492. </div>
  2493. <div>添加</div>
  2494. </div> -->
  2495. <button class="c_pub_button_add pub_btn_eval_img" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 20px 35px 0 0">
  2496. 添加
  2497. </button>
  2498. </div>
  2499. <div v-if="evalua" style="
  2500. border: 1px solid #e5e5e5;
  2501. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2502. " :style="{width:itemTask.isEvaFold?'55%':'116px'}" class="evaCss">
  2503. <!-- <div class="e_add_top">
  2504. <div class="e_add_title">
  2505. <span>当前使用目标管理</span>
  2506. <span>{{ eTitle }}</span>
  2507. <img src="../../assets/line.png" class="cru_line" style="
  2508. width: 125px;
  2509. height: 20px;
  2510. bottom: -10px;
  2511. left: 155px;
  2512. " />
  2513. </div>
  2514. </div> -->
  2515. <div class="e_add_content" style="width: 100%">
  2516. <div class="e_add_list_pbox" style="width: 100%">
  2517. <div class="e_add_list_pbox_title">
  2518. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  2519. <div class="type_content" v-if="itemTask.isEvaFold">
  2520. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1, itemTaskIndex)">目标树</span>
  2521. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  2522. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  2523. </div>
  2524. <div v-if="itemTask.isEvaFold"
  2525. class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva(itemTaskIndex)"><img
  2526. src="../../assets/icon/new/icon-slide.png" />收起目标</div>
  2527. <div v-else style="margin:0 0 0 auto" class="show_taskD"
  2528. @click="foldEva(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开目标
  2529. </div>
  2530. </div>
  2531. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold" style="min-height: 200px;">
  2532. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2533. " v-if="typeMode == 1"></Mind>
  2534. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2535. </Sunburst>
  2536. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2537. v-if="typeMode == 3"></SeeBoard>
  2538. </div>
  2539. </div>
  2540. </div>
  2541. </div>
  2542. </div>
  2543. </div>
  2544. <div class="funBlock" style="padding: 0">
  2545. <div class="fold" @click="fold(itemTaskIndex, $event)">
  2546. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  2547. </div>
  2548. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  2549. </div>
  2550. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2551. <div>展开</div>
  2552. <div class="arrow">
  2553. <img src="../../assets/icon/expand.png" alt />
  2554. </div>
  2555. </div> -->
  2556. </div>
  2557. </div>
  2558. </div>
  2559. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2560. <!-- <div>
  2561. <img src="../../../assets/icon/new/addStage.png" alt />
  2562. <span>添加任务</span>
  2563. </div> -->
  2564. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2565. 添加任务
  2566. </button>
  2567. </div>
  2568. </div>
  2569. <div class="info_btnBox3">
  2570. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2571. goTo(
  2572. '/course?userid=' +
  2573. userid +
  2574. '&oid=' +
  2575. oid +
  2576. '&org=' +
  2577. org +
  2578. '&role=' +
  2579. role
  2580. )
  2581. ">
  2582. 返回课程
  2583. </button>
  2584. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps"
  2585. style="background:#dbdbdb">
  2586. {{ steps == 4 ? "返回课程" : "上一步" }}
  2587. </button>
  2588. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2589. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2590. {{ steps == 3 ? "确认上传" : "下一步" }}
  2591. </button>
  2592. </div>
  2593. </div>
  2594. </div>
  2595. </div>
  2596. </div>
  2597. <div style="
  2598. width: calc(100% - 20px);
  2599. background: rgb(255, 255, 255);
  2600. border-radius: 10px;
  2601. " v-if="this.steps == 4">
  2602. <div class="basic_box_success">
  2603. <div class="right_img">
  2604. <img src="../../assets/icon/right.png" alt />
  2605. </div>
  2606. <div style="font-weight: bold">成功</div>
  2607. <!-- <div>您的课程编号</div>
  2608. <div class="number">{{ number }}</div>-->
  2609. <!-- <div class="success_button">
  2610. <div class="look_course" @click="isNoFinsh">
  2611. 邀请老师协同编辑
  2612. </div>
  2613. <div class="attend_others" @click="goCourse">预览课程</div>
  2614. </div> -->
  2615. </div>
  2616. </div>
  2617. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  2618. @mouseleave="btnDisplay(false)" v-if="false">
  2619. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  2620. goTo(
  2621. '/course?userid=' +
  2622. userid +
  2623. '&oid=' +
  2624. oid +
  2625. '&org=' +
  2626. org +
  2627. '&role=' +
  2628. role
  2629. )
  2630. ">
  2631. 返回课程
  2632. </button>
  2633. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  2634. @click="lastSteps">
  2635. {{ steps == 4 ? "返回课程" : "上一步" }}
  2636. </button>
  2637. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
  2638. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2639. {{ steps == 3 ? "确认上传" : "下一步" }}
  2640. </button>
  2641. </div>
  2642. </div>
  2643. </div>
  2644. </div>
  2645. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2646. class="dialog_diy2 customWidth">
  2647. <div>请复制该链接邀请协同编辑</div>
  2648. <div>http://www.boomyon.com/index-zhang.com</div>
  2649. <span slot="footer" class="dialog-footer">
  2650. <el-button type="primary">复制链接分享</el-button>
  2651. <el-button @click="dialogVisible = false">取消</el-button>
  2652. </span>
  2653. </el-dialog>
  2654. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2655. :before-close="handleClose" class="dialog_diy2 customWidth">
  2656. <el-form>
  2657. <el-form-item label="文档标题">
  2658. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2659. </el-form-item>
  2660. <div>文档简介</div>
  2661. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2662. </el-form>
  2663. <span slot="footer" class="dialog-footer">
  2664. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2665. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2666. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2667. </span>
  2668. </el-dialog>
  2669. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2670. :before-close="handleClose" class="dialog_diy">
  2671. <el-form>
  2672. <el-form-item label="文档标题">
  2673. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2674. </el-form-item>
  2675. <div>文档内容</div>
  2676. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2677. </el-form>
  2678. <span slot="footer" class="dialog-footer">
  2679. <el-button @click="clearChoose">取 消</el-button>
  2680. <el-button type="primary" @click="wordNext()">确定</el-button>
  2681. </span>
  2682. </el-dialog>
  2683. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2684. :before-close="handleClose" class="dialog_diy">
  2685. <el-form>
  2686. <el-form-item label="文本标题">
  2687. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  2688. placeholder="请输入文本标题..."></el-input>
  2689. </el-form-item>
  2690. <!-- <div>富文本内容</div> -->
  2691. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2692. </el-form>
  2693. <span slot="footer" class="dialog-footer">
  2694. <el-button @click="clearAttText">取 消</el-button>
  2695. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2696. </span>
  2697. </el-dialog>
  2698. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2699. :before-close="handleClose" class="dialog_diy lineCss">
  2700. <el-form>
  2701. <el-form-item label="标题" :label-width="formLabelWidth">
  2702. <span>
  2703. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2704. </span>
  2705. </el-form-item>
  2706. <el-form-item label="链接" :label-width="formLabelWidth">
  2707. <span>
  2708. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2709. </span>
  2710. </el-form-item>
  2711. </el-form>
  2712. <span slot="footer" class="dialog-footer">
  2713. <el-button @click="clearLine">取 消</el-button>
  2714. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2715. </span>
  2716. </el-dialog>
  2717. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  2718. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  2719. <div>
  2720. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  2721. </div>
  2722. <span slot="footer" class="dialog-footer">
  2723. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2724. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  2725. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  2726. </span>
  2727. </el-dialog>
  2728. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2729. :before-close="handleClose" class="addNewPP customWidth">
  2730. <div class="people">
  2731. <div class="people_top">
  2732. <div class="people_nav">选择成员</div>
  2733. <div class="people_top_right">
  2734. <div class="people_search">
  2735. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2736. <div class="search_img" @click="searchStudent">
  2737. <img src="../../assets/icon/search.png" alt />
  2738. </div>
  2739. </div>
  2740. </div>
  2741. </div>
  2742. <el-checkbox-group v-model="checkboxList" class="people_name">
  2743. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2744. "暂无学生可选" }}</el-checkbox>
  2745. </el-checkbox-group>
  2746. </div>
  2747. <span slot="footer" class="dialog-footer">
  2748. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2749. <el-button type="primary" @click="isAddPP">确定</el-button>
  2750. </span>
  2751. </el-dialog>
  2752. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  2753. :before-close="handleClose" class="addNewPP2">
  2754. <div class="check_classBox">
  2755. <div class="check_class_right">
  2756. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  2757. 全部
  2758. </div>
  2759. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  2760. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  2761. {{ item.name }}
  2762. </div>
  2763. </el-tooltip>
  2764. </div>
  2765. <div class="check_class_left">
  2766. <div class="check_class_all_box">
  2767. <div class="check_class_left_title">选择班级</div>
  2768. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  2769. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  2770. </div>
  2771. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  2772. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  2773. </div> -->
  2774. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  2775. <div v-for="item in grade2" :key="item.id" class="class_item">
  2776. <el-checkbox :label="item.id">
  2777. {{ item.name }}
  2778. </el-checkbox>
  2779. </div>
  2780. </el-checkbox-group>
  2781. <div v-if="!grade2.length">暂无数据</div>
  2782. </div>
  2783. </div>
  2784. <span slot="footer" class="dialog-footer">
  2785. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2786. <el-button type="primary" @click="isAddClass">确定</el-button>
  2787. </span>
  2788. </el-dialog>
  2789. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2790. :before-close="handleClose" class="addNewPP customWidth">
  2791. <div class="people">
  2792. <div class="people_top">
  2793. <div class="people_top_right">
  2794. <div class="people_search">
  2795. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2796. <div class="search_img" @click="getTeacher">
  2797. <img src="../../assets/icon/search.png" alt />
  2798. </div>
  2799. </div>
  2800. </div>
  2801. <div class="people_nav">选择成员</div>
  2802. </div>
  2803. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2804. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2805. <div class="t_j_box">
  2806. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2807. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2808. </el-tooltip>
  2809. <el-tooltip placement="top" :content="item.username">
  2810. <span>{{ item.username }}</span>
  2811. </el-tooltip>
  2812. <el-tooltip placement="top" :content="item.school">
  2813. <span>{{ item.school }}</span>
  2814. </el-tooltip>
  2815. </div>
  2816. </el-checkbox>
  2817. </el-checkbox-group>
  2818. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2819. </div>
  2820. <span slot="footer" class="dialog-footer">
  2821. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2822. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2823. </span>
  2824. </el-dialog>
  2825. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2826. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  2827. <div style="height:100%">
  2828. <div class="a_add_title" style="
  2829. display: flex;
  2830. flex-direction: row;
  2831. align-items: center;
  2832. justify-content: center;
  2833. ">
  2834. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  2835. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2836. </div>
  2837. <div class="a_addBox" style="height:calc(100% - 50px)">
  2838. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  2839. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2840. <div class="a_add_checkType">
  2841. <span :class="{
  2842. active:
  2843. askJson.askJson[index1].type == '1' ||
  2844. !askJson.askJson[index1].type,
  2845. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2846. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2847. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2848. </div>
  2849. <div class="a_add_head">
  2850. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  2851. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2852. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2853. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  2854. </div>
  2855. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  2856. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  2857. </div>
  2858. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  2859. </div>
  2860. <div class="a_add_head_div">
  2861. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2862. </el-button>
  2863. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  2864. </div>
  2865. </div>
  2866. <div class="a_add_body">
  2867. <div class="a_add_input" style="flex-direction: column;">
  2868. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2869. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  2870. <div style="margin-right: 10px">
  2871. 选项{{ checkIndex + 1 }}
  2872. </div>
  2873. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2874. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  2875. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  2876. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  2877. </div>
  2878. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  2879. </div>
  2880. <div class="a_add_body_div">
  2881. <el-button type="primary" size="small"
  2882. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  2883. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  2884. v-if="askJson.askJson[index1].askItem != 1">删除
  2885. </el-button>
  2886. </div>
  2887. </div>
  2888. </div>
  2889. <!-- <div class="a_add_body_div">
  2890. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2891. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2892. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2893. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2894. </el-button>
  2895. </div> -->
  2896. </div>
  2897. </div>
  2898. </div>
  2899. </div>
  2900. <span slot="footer" class="dialog-footer">
  2901. <el-button @click="closePan(4)">取 消</el-button>
  2902. <el-button type="primary" @click="addAsk">确 定</el-button>
  2903. </span>
  2904. </el-dialog>
  2905. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2906. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  2907. <div style="height:100%">
  2908. <!-- <div class="a_add_title" style="
  2909. display: flex;
  2910. flex-direction: row;
  2911. align-items: center;
  2912. justify-content: center;
  2913. ">
  2914. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2915. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2916. </div> -->
  2917. <div class="a_addBox" style="height:100%">
  2918. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2919. <!-- 请输入题目内容 -->
  2920. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  2921. v-if="isPasteChoice">智能粘贴</button>
  2922. </div>
  2923. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2924. <div class="a_add_checkType">
  2925. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2926. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2927. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2928. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2929. </div>
  2930. <div class="a_add_head">
  2931. <div class="timuUpImg">
  2932. <div style="display: flex;align-items: center;">
  2933. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2934. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2935. placeholder="请输入题目">
  2936. </el-input> -->
  2937. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2938. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  2939. @change="() => { $forceUpdate() }"></textarea>
  2940. </div>
  2941. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  2942. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  2943. </div>
  2944. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  2945. </div>
  2946. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  2947. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2948. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2949. </div>
  2950. </div>
  2951. <div class="a_add_head_div">
  2952. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2953. </el-button>
  2954. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  2955. </div>
  2956. </div>
  2957. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2958. testJson.testJson[index1].timuList.length
  2959. ">
  2960. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2961. @click.stop="previewImg(timg.src)">
  2962. <img :src="timg.src" alt="" />
  2963. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2964. <img src="../../assets/icon/delete.png" alt="" />
  2965. </div>
  2966. </div>
  2967. </div>
  2968. <div class="a_add_body">
  2969. <div class="a_add_input a_add_input_choice">
  2970. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  2971. @change="() => { $forceUpdate() }">
  2972. <div class="radioBox">
  2973. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2974. .testItem" :key="checkIndex" :label="checkIndex">
  2975. <div style="margin-right: 10px">
  2976. 选项{{ checkIndex + 1 }}
  2977. </div>
  2978. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2979. testJson.testJson[index1].checkList[checkIndex]
  2980. .imgType &&
  2981. testJson.testJson[index1].checkList[checkIndex]
  2982. .imgType == 1
  2983. ">
  2984. <div class="inImg" @click.stop="
  2985. previewImg(
  2986. testJson.testJson[index1].checkList[checkIndex]
  2987. .src
  2988. )
  2989. ">
  2990. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2991. .src
  2992. " lazy />
  2993. <!-- <img :src="
  2994. testJson.testJson[index1].checkList[checkIndex]
  2995. .src
  2996. " alt="" /> -->
  2997. </div>
  2998. </div>
  2999. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3000. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3001. @change="() => { $forceUpdate() }"></textarea>
  3002. <div class="xzUpImg" @click.stop="addImg($event)">
  3003. <img src="../../assets/icon/xzUpImg.png" alt="" />
  3004. <input type="file" accept="image/*" style="display: none"
  3005. @change="beforeUploadTi($event, index1, checkIndex)" />
  3006. </div>
  3007. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3008. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  3009. </div>
  3010. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  3011. </div>
  3012. <div class="a_add_body_div">
  3013. <el-button type="primary" size="small"
  3014. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  3015. <el-button type="primary" size="small"
  3016. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  3017. v-if="testJson.testJson[index1].testItem != 1">删除
  3018. </el-button>
  3019. </div>
  3020. </el-radio>
  3021. </div>
  3022. </el-radio-group>
  3023. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  3024. @change="() => { $forceUpdate() }">
  3025. <div class="radioBox">
  3026. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3027. .testItem" :key="checkIndex1" :label="checkIndex1">
  3028. <div style="margin-right: 10px">
  3029. 选项{{ checkIndex1 + 1 }}
  3030. </div>
  3031. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3032. testJson.testJson[index1].checkList[checkIndex1]
  3033. .imgType &&
  3034. testJson.testJson[index1].checkList[checkIndex1]
  3035. .imgType == 1
  3036. ">
  3037. <div class="inImg" @click.stop="
  3038. previewImg(
  3039. testJson.testJson[index1].checkList[checkIndex1]
  3040. .src
  3041. )
  3042. ">
  3043. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3044. .src
  3045. " lazy />
  3046. <!-- <img :src="
  3047. testJson.testJson[index1].checkList[checkIndex1]
  3048. .src
  3049. " alt="" /> -->
  3050. </div>
  3051. </div>
  3052. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3053. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3054. @change="() => { $forceUpdate() }"></textarea>
  3055. <div class="xzUpImg" @click.stop="addImg($event)">
  3056. <img src="../../assets/icon/xzUpImg.png" alt="" />
  3057. <input type="file" accept="image/*" style="display: none"
  3058. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3059. </div>
  3060. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3061. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3062. </div>
  3063. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3064. </div>
  3065. <div class="a_add_body_div">
  3066. <el-button type="primary" size="small"
  3067. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3068. <el-button type="primary" size="small"
  3069. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3070. v-if="testJson.testJson[index1].testItem != 1">删除
  3071. </el-button>
  3072. </div>
  3073. </el-checkbox>
  3074. </div>
  3075. </el-checkbox-group>
  3076. </div>
  3077. <!-- <div class="a_add_body_div">
  3078. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3079. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3080. v-if="testJson.testJson[index1].testItem != 1">删除
  3081. </el-button>
  3082. </div> -->
  3083. </div>
  3084. </div>
  3085. </div>
  3086. </div>
  3087. <span slot="footer" class="dialog-footer">
  3088. <el-button @click="closePan(45)">取 消</el-button>
  3089. <el-button type="primary" @click="addTest">确 定</el-button>
  3090. </span>
  3091. </el-dialog>
  3092. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3093. :before-close="handleClose" class="dialog_diy addToolsDia">
  3094. <div class="toolChoose">
  3095. <div class="tools">
  3096. <div class="leftTools" style="
  3097. width: 100%;
  3098. padding: 0 0 15px 0;
  3099. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3100. <div style="
  3101. display: flex;
  3102. flex-direction: row;
  3103. align-items: baseline;
  3104. flex-wrap: nowrap;
  3105. justify-content: flex-start;
  3106. position: relative;
  3107. ">
  3108. <div class="chooseWho">
  3109. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3110. 互动类
  3111. </div>
  3112. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3113. 思维类
  3114. </div>
  3115. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3116. 评价类
  3117. </div>
  3118. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3119. 其他
  3120. </div>
  3121. </div>
  3122. </div>
  3123. <div style="min-height: 163px">
  3124. <div class="toolSort" v-if="chapToolsType == 0">
  3125. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  3126. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  3127. <img src="../../assets/icon/secondToolList/library.png" alt />
  3128. <div style="margin: 5px 0">素材库</div>
  3129. </div>
  3130. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3131. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1"><img
  3132. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3133. <!-- <div class="check" @click="chapAddTools(8)">
  3134. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3135. <div class="checkDiv" v-else>
  3136. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3137. </div>
  3138. </div> -->
  3139. </div>
  3140. </div>
  3141. <div class="toolSort" v-if="chapToolsType == 1">
  3142. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  3143. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  3144. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  3145. <div style="margin: 5px 0">思维网格</div>
  3146. </div>
  3147. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3148. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1"><img
  3149. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3150. <!-- <div class="check" @click="chapAddTools(7)">
  3151. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3152. <div class="checkDiv" v-else>
  3153. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3154. </div>
  3155. </div> -->
  3156. </div>
  3157. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  3158. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  3159. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  3160. <div style="margin: 5px 0">电子白板</div>
  3161. </div>
  3162. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3163. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1"><img
  3164. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3165. <!-- <div class="check" @click="chapAddTools(1)">
  3166. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3167. <div class="checkDiv" v-else>
  3168. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3169. </div>
  3170. </div> -->
  3171. </div>
  3172. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  3173. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  3174. <img src="../../assets/icon/secondToolList/note.png" alt />
  3175. <div style="margin: 5px 0">便签</div>
  3176. </div>
  3177. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3178. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1"><img
  3179. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3180. <!-- <div class="check" @click="chapAddTools(2)">
  3181. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3182. <div class="checkDiv" v-else>
  3183. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3184. </div>
  3185. </div> -->
  3186. </div>
  3187. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  3188. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  3189. <img src="../../assets/icon/secondToolList/doc.png" alt />
  3190. <div style="margin: 5px 0">协同文档</div>
  3191. </div>
  3192. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3193. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1"><img
  3194. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3195. <!-- <div class="check" @click="chapAddTools(6)">
  3196. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  3197. <div class="checkDiv" v-else>
  3198. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3199. </div>
  3200. </div> -->
  3201. </div>
  3202. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  3203. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  3204. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  3205. <div style="margin: 5px 0">思维导图</div>
  3206. </div>
  3207. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3208. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1"><img
  3209. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3210. <!-- <div class="check" @click="chapAddTools(3)">
  3211. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  3212. <div class="checkDiv" v-else>
  3213. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3214. </div>
  3215. </div> -->
  3216. </div>
  3217. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }" @click="chapAddTools(31)">
  3218. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  3219. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  3220. <div style="margin: 5px 0">数学画板</div>
  3221. </div>
  3222. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3223. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1"><img
  3224. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3225. <!-- <div class="check" @click="chapAddTools(31)">
  3226. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  3227. <div class="checkDiv" v-else>
  3228. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3229. </div>
  3230. </div> -->
  3231. </div>
  3232. </div>
  3233. <div class="toolSort" v-if="chapToolsType == 2">
  3234. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  3235. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  3236. <img src="../../assets/icon/thirdToolList/score.png" alt />
  3237. <div style="margin: 5px 0">量规评分</div>
  3238. </div>
  3239. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3240. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1"><img
  3241. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3242. <!-- <div class="check" @click="chapAddTools(5)">
  3243. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  3244. <div class="checkDiv" v-else>
  3245. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3246. </div>
  3247. </div> -->
  3248. </div>
  3249. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  3250. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  3251. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  3252. <div style="margin: 5px 0">问卷调查</div>
  3253. </div>
  3254. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3255. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1"><img
  3256. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3257. <!-- <div class="check" @click="chapAddTools(4)">
  3258. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  3259. <div class="checkDiv" v-else>
  3260. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3261. </div>
  3262. </div> -->
  3263. </div>
  3264. </div>
  3265. </div>
  3266. <div>
  3267. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  3268. v-model="itemTools.toolDetail" />
  3269. </div>
  3270. </div>
  3271. </div>
  3272. </div>
  3273. <span slot="footer" class="dialog-footer">
  3274. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3275. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3276. </span>
  3277. </el-dialog>
  3278. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3279. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  3280. <div>
  3281. <div class="a_add_title" style="
  3282. display: flex;
  3283. flex-direction: column;
  3284. align-items: flex-start;
  3285. justify-content: center;
  3286. ">
  3287. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3288. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  3289. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  3290. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  3291. </div>
  3292. </div>
  3293. <span slot="footer" class="dialog-footer">
  3294. <el-button @click="closePan(15)">取 消</el-button>
  3295. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3296. </span>
  3297. </el-dialog>
  3298. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3299. :before-close="handleClose" class="dialog_diy">
  3300. <div>
  3301. <div class="a_add_title" style="
  3302. display: flex;
  3303. flex-direction: column;
  3304. align-items: flex-start;
  3305. justify-content: center;
  3306. ">
  3307. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3308. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3309. </div>
  3310. </div>
  3311. <span slot="footer" class="dialog-footer">
  3312. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3313. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3314. </span>
  3315. </el-dialog>
  3316. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  3317. :before-close="handleClose" class="dialog_diy">
  3318. <div>
  3319. <div class="fileCss" style="padding-top: 20px">
  3320. <div>
  3321. <button class="info_btn" @click="addImg($event)">
  3322. 选择本地文件
  3323. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3324. </button>
  3325. <div class="spanName">选择本地文件</div>
  3326. </div>
  3327. <!-- <div>
  3328. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  3329. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3330. <img :src="cover[0].url" alt="" />
  3331. <div class="deletePic" @click="deleteSysPic">
  3332. <img src="../../assets/icon/delete.png" alt="" />
  3333. </div>
  3334. </div>
  3335. <div class="spanName">选择系统文件</div>
  3336. </div> -->
  3337. <div>
  3338. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  3339. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  3340. <img :src="cover[0].url" alt="" />
  3341. <div class="deletePic" @click="deleteSysPic">
  3342. <img src="../../assets/icon/delete.png" alt="" />
  3343. </div>
  3344. </div>
  3345. <div class="spanName">选择网络文件</div>
  3346. </div>
  3347. </div>
  3348. <!-- <div class="fileCss">
  3349. </div> -->
  3350. </div>
  3351. <span slot="footer" class="dialog-footer">
  3352. <el-button @click="choosePicVisible = false">取 消</el-button>
  3353. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3354. </span>
  3355. </el-dialog>
  3356. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3357. :before-close="handleClose" class="dialog_diy">
  3358. <div class="cru_selectBox" style="margin: 0">
  3359. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3360. 绘画
  3361. </div>
  3362. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3363. 科技
  3364. </div>
  3365. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3366. 人文
  3367. </div>
  3368. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3369. 艺术
  3370. </div>
  3371. </div>
  3372. <div class="sysPicBox">
  3373. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3374. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3375. </div>
  3376. </div>
  3377. </el-dialog>
  3378. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  3379. :before-close="handleClose" class="dialog_diy">
  3380. <div>
  3381. <div class="people_top_right" style="display: flex;align-items: center;">
  3382. <div style="position: relative; width: 100%;">
  3383. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  3384. @keyup.enter.native="resetImage()"></el-input>
  3385. <div class="search_img" @click="resetImage" style="right: 10px;">
  3386. <img src="../../assets/icon/search.png" alt />
  3387. </div>
  3388. </div>
  3389. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  3390. </div>
  3391. <div class="sysPicBox" v-loading="imageloading">
  3392. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  3393. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  3394. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  3395. </div>
  3396. </div>
  3397. </div>
  3398. </el-dialog>
  3399. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3400. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  3401. <div v-if="selectJson" style="height:100%">
  3402. <div class="select_box1" v-if="selectSteps == 1">
  3403. <div class="select_box1_img">
  3404. <div class="select_box1_title">
  3405. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  3406. </div>
  3407. <div class="select_box1_add_img">
  3408. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3409. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3410. <img src="../../assets/icon/addPoster.png" alt="" />
  3411. </div>
  3412. <div class="isSysPic" v-else>
  3413. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3414. <div class="deletePic" @click="deleteSelectPic">
  3415. <img src="../../assets/icon/delete.png" alt="" />
  3416. </div>
  3417. </div>
  3418. </div>
  3419. </div>
  3420. <div class="select_box1_select">
  3421. <div class="select_box1_title">
  3422. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  3423. </div>
  3424. <div class="select_box1_select_box">
  3425. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3426. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  3427. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3428. <div class="select_box1_select_box_add">
  3429. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3430. 添加</el-button>
  3431. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3432. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3433. </div>
  3434. </div>
  3435. </div>
  3436. </div>
  3437. <div v-if="selectSteps == 2" style="height:100%">
  3438. <div class="select_box2">
  3439. <div class="select_box2_title">设置每道题目的正确选项</div>
  3440. <div class="select_box2_box">
  3441. <div class="select_box2_img">
  3442. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3443. </div>
  3444. <div class="select_box2_answer">
  3445. <div class="select_answer_title">根据题目选择对应答案</div>
  3446. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3447. <span>{{ checkIndex + 1 }}、</span>
  3448. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3449. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3450. </el-option>
  3451. </el-select>
  3452. </div>
  3453. </div>
  3454. </div>
  3455. </div>
  3456. </div>
  3457. </div>
  3458. <span slot="footer" class="dialog-footer">
  3459. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3460. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3461. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3462. </span>
  3463. </el-dialog>
  3464. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3465. :before-close="handleClose" class="dialog_diy">
  3466. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3467. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3468. <div class="pjCss" style="width: 100%">
  3469. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3470. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3471. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3472. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  3473. <div class="remove" @click="deletRateList(eIndex)"></div>
  3474. <div style="width: 100%; display: flex">
  3475. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3476. <el-rate v-model="eItem.score" disabled></el-rate>
  3477. </div>
  3478. <div class="elist_inptu_text" style="align-items: flex-start">
  3479. <span style="min-width: 100px; text-align: right">描述:</span>
  3480. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  3481. </div>
  3482. </div>
  3483. </div>
  3484. <div class="addToolFun" @click="addRateList()">
  3485. <div class="addToolImg">
  3486. <img src="../../assets/icon/add.png" alt />
  3487. </div>
  3488. <div>添加</div>
  3489. </div>
  3490. </div>
  3491. </div>
  3492. <span slot="footer" class="dialog-footer">
  3493. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3494. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3495. </span>
  3496. </el-dialog>
  3497. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3498. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  3499. <div style="height: 100%;">
  3500. <div class="sentenBox" style="height: 100%;">
  3501. <div class="addSen" @click="addSt">添加题目</div>
  3502. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  3503. <div class="sentenTopBox">
  3504. <div class="sentenTop" :index="stIndex + 1">
  3505. <div>题目设置</div>
  3506. <div>
  3507. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  3508. </div>
  3509. <div @click="addSen(stIndex)">添加</div>
  3510. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3511. </div>
  3512. </div>
  3513. <div class="cardList">
  3514. <div v-if="st.addSentence.length > 0" class="cardBox">
  3515. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3516. @click="setRightAnswer(s, stIndex, sIndex)">
  3517. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3518. <div>{{ s }}</div>
  3519. </el-tooltip>
  3520. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3521. <img src="../../assets/icon/delete.png" alt="" />
  3522. </div>
  3523. </div>
  3524. </div>
  3525. <div class="card">
  3526. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  3527. </div>
  3528. </div>
  3529. <div class="rightCardBox">
  3530. <div>正确顺序</div>
  3531. <div class="rightCardList">
  3532. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3533. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3534. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3535. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3536. <div>{{ r }}</div>
  3537. </el-tooltip>
  3538. </div>
  3539. <div>{{ rIndex + 1 }}</div>
  3540. </div>
  3541. </div>
  3542. <div class="card" v-if="st.rightAnswer.length == 0">
  3543. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  3544. </div>
  3545. <div class="card" v-else>
  3546. <img src="../../assets/icon/conSentences/clickNo.png" alt="" />
  3547. </div>
  3548. </div>
  3549. </div>
  3550. </div>
  3551. </div>
  3552. </div>
  3553. <span slot="footer" class="dialog-footer">
  3554. <el-button @click="closePan(47)">取 消</el-button>
  3555. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3556. </span>
  3557. </el-dialog>
  3558. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3559. :before-close="handleClose" class="dialog_diy">
  3560. <el-form>
  3561. <!-- <el-form-item label="文本标题">
  3562. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3563. </el-form-item> -->
  3564. <div>表格内容</div>
  3565. <Table v-model="tableJson.text" @change="change"></Table>
  3566. </el-form>
  3567. <span slot="footer" class="dialog-footer">
  3568. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3569. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3570. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3571. </span>
  3572. </el-dialog>
  3573. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3574. :before-close="handleClose" class="dialog_diy">
  3575. <el-form>
  3576. <!-- <el-form-item label="文本标题">
  3577. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3578. </el-form-item> -->
  3579. <div>文档内容</div>
  3580. <editor-bar v-model="wordJson.text"></editor-bar>
  3581. </el-form>
  3582. <span slot="footer" class="dialog-footer">
  3583. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3584. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3585. </span>
  3586. </el-dialog>
  3587. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3588. :before-close="handleClose" class="dialog_diy">
  3589. <div style="
  3590. width: 100%;
  3591. display: flex;
  3592. flex-direction: row;
  3593. flex-wrap: nowrap;
  3594. align-items: center;
  3595. justify-content: center;
  3596. ">
  3597. <div>班级:</div>
  3598. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3599. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3600. </el-option>
  3601. </el-select>
  3602. </div>
  3603. <span slot="footer" class="dialog-footer">
  3604. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3605. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3606. </span>
  3607. </el-dialog>
  3608. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3609. :before-close="handleClose" class="dialog_diy">
  3610. <div style="
  3611. width: 100%;
  3612. display: flex;
  3613. flex-direction: row;
  3614. flex-wrap: nowrap;
  3615. align-items: center;
  3616. justify-content: center;
  3617. ">
  3618. <div>随机码:</div>
  3619. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3620. </div>
  3621. <span slot="footer" class="dialog-footer">
  3622. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3623. <el-button type="primary" @click="addInvite">确定</el-button>
  3624. </span>
  3625. </el-dialog>
  3626. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  3627. :before-close="handleClose" class="dialog_diy">
  3628. <div>
  3629. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  3630. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3631. </div>
  3632. <span slot="footer" class="dialog-footer">
  3633. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3634. <el-button type="primary" @click="addPreTime">确定</el-button>
  3635. </span>
  3636. </el-dialog>
  3637. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3638. class="dialog_diy">
  3639. <div>
  3640. <div style="
  3641. width: 100%;
  3642. display: flex;
  3643. flex-direction: row;
  3644. flex-wrap: nowrap;
  3645. align-content: center;
  3646. align-items: center;
  3647. justify-content: space-between;
  3648. ">
  3649. <div style="
  3650. display: flex;
  3651. flex-flow: row nowrap;
  3652. align-items: flex-start;
  3653. width: 100%;
  3654. flex-direction: column;
  3655. flex-wrap: nowrap;
  3656. position: relative;
  3657. ">
  3658. <div class="e_box">
  3659. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3660. <div class="e_card_picture">
  3661. <img src="../../assets/e_picture.png" />
  3662. </div>
  3663. <div class="e_card_name">
  3664. <span>{{ item.title }}</span>
  3665. </div>
  3666. <div class="e_card_btn">
  3667. <span @click="checkEva(item.id, 2)">导入</span>
  3668. </div>
  3669. </div> -->
  3670. <!-- <div class="addEva" @click="openT">
  3671. <img src="../../assets/icon/addEva.png" alt="" />
  3672. </div> -->
  3673. <div style="display:flex;justify-content: flex-end;margin-bottom: 10px;"><el-button @click="openT" type="primary" size="small">添加目标</el-button></div>
  3674. <el-table
  3675. v-if="evaJuri.length"
  3676. ref="table"
  3677. :data="evaJuri"
  3678. border
  3679. :fit="true"
  3680. style="width: 100%"
  3681. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  3682. :row-class-name="tableRowClassName"
  3683. >
  3684. <el-table-column
  3685. label="目标名称"
  3686. min-width="15"
  3687. align="center"
  3688. prop="title"
  3689. >
  3690. </el-table-column>
  3691. <el-table-column
  3692. prop="username"
  3693. label="负责人"
  3694. min-width="15"
  3695. align="center"
  3696. >
  3697. </el-table-column>
  3698. <el-table-column label="操作" width="250px">
  3699. <template slot-scope="scope">
  3700. <div class="btnBox">
  3701. <el-button
  3702. type="primary"
  3703. size="small"
  3704. @click="checkEva(scope.row.id, 2)"
  3705. >导入</el-button
  3706. >
  3707. </div>
  3708. </template>
  3709. </el-table-column>
  3710. </el-table>
  3711. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3712. 暂无数据
  3713. </div>
  3714. </div>
  3715. </div>
  3716. </div>
  3717. </div>
  3718. <span slot="footer" class="dialog-footer">
  3719. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3720. </span>
  3721. </el-dialog>
  3722. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3723. :before-close="handleClose" class="dialog_diy">
  3724. <div class="groupBox">
  3725. <div v-if="groupJson.group" class="groupContent">
  3726. <div class="groupTitle">请设置小组数量及名称</div>
  3727. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3728. <span class="groupn">第{{ index + 1 }}组名称:</span>
  3729. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3730. <div class="groupBtn">
  3731. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  3732. 添加</el-button>
  3733. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3734. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3735. </div>
  3736. </div>
  3737. </div>
  3738. <div class="groupContent">
  3739. <div class="groupTitle">请设置每组人数</div>
  3740. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3741. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3742. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  3743. @change="numberPan"></el-input>
  3744. </div>
  3745. </div>
  3746. <span slot="footer" class="dialog-footer">
  3747. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3748. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3749. </span>
  3750. </el-dialog>
  3751. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  3752. :before-close="handleClose" class="dialog_diy">
  3753. <div style="
  3754. width: 100%;
  3755. display: flex;
  3756. flex-direction: row;
  3757. flex-wrap: nowrap;
  3758. align-items: center;
  3759. justify-content: center;
  3760. ">
  3761. <div style="min-width: fit-content;">文件名称:</div>
  3762. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  3763. </div>
  3764. <span slot="footer" class="dialog-footer">
  3765. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  3766. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  3767. </span>
  3768. </el-dialog>
  3769. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  3770. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle">
  3771. <englishRight @setEngList="setEnglishList" :englishList="englishList"></englishRight>
  3772. <span slot="footer" class="dialog-footer">
  3773. <el-button @click="englishDialogVisible = false">取 消</el-button>
  3774. <el-button type="primary" @click="addEnglish">确 定</el-button>
  3775. </span>
  3776. </el-dialog>
  3777. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  3778. :before-close="handleClose" class="dialog_diy">
  3779. <div class="template_box">
  3780. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)" :class="{wordTeacherA:ctJson.id == aa.id}">
  3781. <div class="wordPic">
  3782. <img src="../../assets/icon/new/course_template.png" alt />
  3783. </div>
  3784. <div style="
  3785. margin-top: 10px;
  3786. line-height: 19px;
  3787. overflow: hidden;
  3788. text-overflow: ellipsis;
  3789. white-space: nowrap;
  3790. padding: 0 20px;
  3791. ">
  3792. {{ aa.title }}
  3793. </div>
  3794. </div>
  3795. <div class="wordTeacher" @click="checkctJson({id: 1})" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'" :class="{wordTeacherA:ctJson.id == 1}">
  3796. <div class="wordPic">
  3797. <img src="../../assets/icon/new/course_template.png" alt />
  3798. </div>
  3799. <div style="
  3800. margin-top: 10px;
  3801. line-height: 19px;
  3802. overflow: hidden;
  3803. text-overflow: ellipsis;
  3804. white-space: nowrap;
  3805. padding: 0 20px;
  3806. ">
  3807. 简易模板
  3808. </div>
  3809. </div>
  3810. <div class="wordTeacher" @click="checkctJson({id: 2})" v-if="isPasteStage" :class="{wordTeacherA:ctJson.id == 2}">
  3811. <div class="wordPic">
  3812. <img src="../../assets/icon/new/course_template.png" alt />
  3813. </div>
  3814. <div style="
  3815. margin-top: 10px;
  3816. line-height: 19px;
  3817. overflow: hidden;
  3818. text-overflow: ellipsis;
  3819. white-space: nowrap;
  3820. padding: 0 20px;
  3821. ">
  3822. 智能粘贴模式
  3823. </div>
  3824. </div>
  3825. </div>
  3826. <span slot="footer" class="dialog-footer">
  3827. <el-button @click="templateDialog = false">取 消</el-button>
  3828. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  3829. </span>
  3830. </el-dialog>
  3831. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3832. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3833. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3834. <div class="change_stageBox">
  3835. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3836. <div class="nt_taskBox">
  3837. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3838. <div class="nt_taskName">
  3839. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3840. <span>{{ t.dyName }}</span>
  3841. </el-tooltip>
  3842. </div>
  3843. </div>
  3844. <div class="moveBtn" v-if="unitJson3.length > 1">
  3845. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3846. </div>
  3847. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3848. </div>
  3849. </div>
  3850. </div>
  3851. <span slot="footer" class="dialog-footer">
  3852. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3853. <el-button type="primary" @click="updateChange">确定</el-button>
  3854. </span>
  3855. </el-dialog>
  3856. </div>
  3857. </template>
  3858. <script>
  3859. import "../../common/aws-sdk-2.235.1.min.js";
  3860. import { tools as toolsData } from "../../common/tools.js";
  3861. // import "../../common/aws-sdk-2.99.0.min.js";
  3862. import $ from "jquery";
  3863. import EditorBar from "../../components/tools/wangEnduit";
  3864. import Table from "../../components/tools/table";
  3865. import Mind from "../tools/jsmind2";
  3866. import Time from "../tools/time.vue";
  3867. import Sunburst from "../tools/sunburst";
  3868. import SeeBoard from "../tools/seeBoard";
  3869. import weilaiData from "./components/weilai.js";
  3870. import sourceDialog from "./teacherSource/dialog.vue";
  3871. import interVideo from "./interVideo/index.vue";
  3872. import englishRight from "./components/englishRight.vue";
  3873. export default {
  3874. components: {
  3875. EditorBar,
  3876. Mind,
  3877. Time,
  3878. Sunburst,
  3879. SeeBoard,
  3880. Table,
  3881. sourceDialog,
  3882. interVideo,
  3883. englishRight,
  3884. },
  3885. data() {
  3886. return {
  3887. checkAll: false,
  3888. chooseType: 1,
  3889. checkedCities: [],
  3890. isIndeterminate: true,
  3891. isSysPic: false,
  3892. isSysPic2: false,
  3893. steps: 1,
  3894. nbOrder: 0,
  3895. courseId: "",
  3896. chapToolsType: 0,
  3897. chapTools: [
  3898. {
  3899. tools: [],
  3900. toolDetail: "",
  3901. },
  3902. ],
  3903. line: "",
  3904. lineTitle: "",
  3905. sysPic: [],
  3906. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3907. sentenceList2: [],
  3908. isPushTitleList: [],
  3909. lineCount: 0,
  3910. lineType: 0,
  3911. chapCount: 0,
  3912. courseName: "",
  3913. isTeacherSee: false,
  3914. courseText: "",
  3915. preTime: 0,
  3916. formLabelWidth: "100px",
  3917. choosePicVisible: false,
  3918. sysPicVisible: false,
  3919. sysPicVisible2: false,
  3920. uploadLoading1: false,
  3921. noneBtnImg: false,
  3922. updateBoolean2: false,
  3923. unitIndex: 0,
  3924. taskCount: 0,
  3925. dialogVisible: false,
  3926. dialogVisible1: false,
  3927. dialogVisible2: false,
  3928. dialogVisible3: false,
  3929. dialogVisible4: false,
  3930. dialogVisible5: false,
  3931. dialogVisible6: false,
  3932. dialogVisible7: false,
  3933. dialogVisible8: false,
  3934. dialogVisible9: false,
  3935. dialogVisibleClass: false,
  3936. dialogVisibleMember: false,
  3937. dialogVisibleMp3: false,
  3938. dialogVisibleSelect: false,
  3939. dialogVisibleSentence: false,
  3940. dialogVisibleRate: false,
  3941. dialogVisibleChoice: false,
  3942. dialogVisiblemb: false,
  3943. dialogVisibleInvite: false,
  3944. dialogVisibleSource: false,
  3945. dialogVisibleVideo: false,
  3946. dialogVisibleStageChange: false,
  3947. dialogVisibleupdataVideoT: false,
  3948. englishDialogVisible: false,
  3949. templateDialog: false,
  3950. ctJson: {},
  3951. isClickColor: 1,
  3952. toolIndexType: "",
  3953. publicTool: 0,
  3954. searchPeople: "",
  3955. searchTN: "",
  3956. userid: this.$route.query.userid,
  3957. oid: this.$route.query.oid,
  3958. org: this.$route.query.org,
  3959. role: this.$route.query.role,
  3960. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3961. dialogVisibleTable: false,
  3962. dialogVisibleWord: false,
  3963. tableJson: { text: "" },
  3964. wordJson: { text: "" },
  3965. dialogVisibleMoreUpload: false,
  3966. dialogVisiblePreTime: false,
  3967. uploadJson: [],
  3968. classJuri: [],
  3969. gradeList: [],
  3970. cover: [], //课程封面
  3971. myWord: [],
  3972. evaJuri: [],
  3973. evalua: "",
  3974. targetArray: [],
  3975. eTitle: "",
  3976. eJson: {},
  3977. fid: "", //一级
  3978. sid: "", //二级
  3979. tid: "", //二级
  3980. typeMode: 1,
  3981. eJSONNum: 0,
  3982. data: {
  3983. meta: {
  3984. name: "example",
  3985. author: "dd@163.com",
  3986. version: "0.2",
  3987. },
  3988. format: "node_array",
  3989. data: [{ id: "root", isroot: true, topic: "" }],
  3990. },
  3991. askJson: {
  3992. askCount: 1,
  3993. askTitle: "",
  3994. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3995. },
  3996. askJson2: {},
  3997. testJson: {},
  3998. testJson2: {},
  3999. selectJson: {},
  4000. selectJson2: {},
  4001. rateJson: [],
  4002. unitJson2: [],
  4003. unitJson3: [],
  4004. unitJson: [
  4005. {
  4006. dyName: "", //单元标题
  4007. chapterInfo: [
  4008. {
  4009. isread: false,
  4010. chapterid: this.guid(),
  4011. title: "",
  4012. courseName: "",
  4013. taskJson: [
  4014. {
  4015. task: "",
  4016. taskDetail: "",
  4017. chapterData: [],
  4018. toolText: "",
  4019. toolChoose: [
  4020. {
  4021. tool: [],
  4022. toolDetail: "",
  4023. toolType: 0,
  4024. askCount: 1,
  4025. askTitle: "",
  4026. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4027. },
  4028. ],
  4029. isShowTools: false,
  4030. askCount: 1,
  4031. isFold: 1,
  4032. askTitle: "",
  4033. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4034. checkJson: [{ checkCount: [], checkPerent: [] }],
  4035. homeworkList: [],
  4036. },
  4037. ],
  4038. itemCount: 1,
  4039. fileList1: [],
  4040. video: [],
  4041. testData: [],
  4042. pData: [],
  4043. templateArray: [],
  4044. },
  4045. ],
  4046. },
  4047. ],
  4048. templateArray: [],
  4049. studentJuri: [],
  4050. teacherJuri: [],
  4051. checkboxList: [],
  4052. checkboxList2: [],
  4053. checkboxList3: [],
  4054. classSearch: "",
  4055. gradeId: "",
  4056. number: "",
  4057. tTitle: "",
  4058. tdetail: "",
  4059. templateC: {},
  4060. AttText: {},
  4061. AttTextType: 0,
  4062. AttTextIndex: 0,
  4063. cTemplate: "",
  4064. CourseType: [],
  4065. CourseType2: [],
  4066. CourseTypeJson: {},
  4067. courseTypeId: [],
  4068. courseTypeSon: [],
  4069. clearArray: [],
  4070. pTypeCheck: [],
  4071. pTypeCheckName: [],
  4072. loading: false,
  4073. toolType: 0,
  4074. inputShow: true,
  4075. inputShow2: true,
  4076. toolIndex: 0,
  4077. cidType: 0,
  4078. answerQ: "",
  4079. answerQ2: "",
  4080. grade: [],
  4081. grade2: [],
  4082. courseUserid: "",
  4083. timer: null,
  4084. timer2: null,
  4085. pasteTimer: null,
  4086. checkId: "",
  4087. isDelete: 1,
  4088. addindex: 0,
  4089. selectSteps: 1,
  4090. groupJson: {},
  4091. dialogVisibleGroup: false,
  4092. rightBoxHeight: 0,
  4093. ManAarray: [],
  4094. checkBoolean: false,
  4095. inviteCode: [],
  4096. inviteId: "",
  4097. icode: "",
  4098. easyArray: [2, 4],
  4099. sourceData: {},
  4100. updateSourcePan: false,
  4101. videoJson: {},
  4102. isBtnDisplay: false,
  4103. isStepDisplay: false,
  4104. isPasteStage: false,
  4105. isPasteTask: false,
  4106. isPasteChoice: false,
  4107. imageList: [],
  4108. imageloading: false,
  4109. searchImageValue: "",
  4110. ppage: 1,
  4111. toolsData: toolsData,
  4112. oldIndex: 0,
  4113. oldData: null,
  4114. newIndex: "",
  4115. englishList:{},
  4116. typeIndex: "",
  4117. courseState: 2,
  4118. taskJSONa: [
  4119. {
  4120. task: "",
  4121. taskDetail: "",
  4122. chapterData: [],
  4123. toolText: "",
  4124. toolChoose: [
  4125. {
  4126. tool: [],
  4127. toolDetail: "",
  4128. toolType: 0,
  4129. askCount: 1,
  4130. askTitle: "",
  4131. askJson: [
  4132. { askstitle: "", askItem: 1, checkList: [] },
  4133. ],
  4134. },
  4135. ],
  4136. isShowTools: false,
  4137. askCount: 1,
  4138. isFold: 1,
  4139. askTitle: "",
  4140. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4141. checkJson: [{ checkCount: [], checkPerent: [] }],
  4142. homeworkList: [],
  4143. },
  4144. ],
  4145. };
  4146. },
  4147. directives: {
  4148. autoHeight: {
  4149. update(el, binding) {
  4150. const { value } = binding
  4151. if (value && typeof value === 'number') {
  4152. el.style.height = `${value}px`
  4153. } else {
  4154. el.style.height = 'auto'
  4155. }
  4156. },
  4157. componentUpdated(el) {
  4158. el.style.height = `${el.scrollHeight + 5}px`
  4159. },
  4160. },
  4161. },
  4162. computed: {
  4163. // rightBoxHeight: function () {
  4164. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4165. // },
  4166. offsetLetfPx: function () {
  4167. //addnum可以直接在模板语法里面用,相当于data内的值
  4168. return (
  4169. $(".cru_select")[this.unitIndex] &&
  4170. $(".cru_select")[this.unitIndex].offsetLeft + 5
  4171. );
  4172. },
  4173. getMan2() {
  4174. return function (people) {
  4175. let _people = people;
  4176. let _people2 = "";
  4177. if (this.ManAarray.length) {
  4178. for (var i = 0; i < this.ManAarray.length; i++) {
  4179. if (this.ManAarray[i].userid == people) {
  4180. _people2 = this.ManAarray[i].name;
  4181. break;
  4182. }
  4183. }
  4184. }
  4185. if (people == this.courseUserid) {
  4186. return "";
  4187. }
  4188. return this.ManAarray.length ? _people2 : "";
  4189. };
  4190. },
  4191. getListMan2() {
  4192. return function (list) {
  4193. let _people2 = [];
  4194. if (this.ManAarray.length) {
  4195. for (var j = 0; j < list.length; j++) {
  4196. let people = list[j];
  4197. for (var i = 0; i < this.ManAarray.length; i++) {
  4198. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  4199. _people2.push(this.ManAarray[i].name);
  4200. break;
  4201. }
  4202. }
  4203. }
  4204. }
  4205. return this.ManAarray.length ? _people2.join("、") : "";
  4206. };
  4207. },
  4208. isInvite() {
  4209. return function (cid) {
  4210. let array = [];
  4211. for (var i = 0; i < this.inviteCode.length; i++) {
  4212. array.push(this.inviteCode[i].cid);
  4213. }
  4214. return array.indexOf(cid) != -1;
  4215. };
  4216. },
  4217. getInviteCodeC() {
  4218. return function (cid) {
  4219. let array = [];
  4220. for (var i = 0; i < this.inviteCode.length; i++) {
  4221. array.push(this.inviteCode[i].cid);
  4222. }
  4223. return this.inviteCode[array.indexOf(cid)].ic;
  4224. };
  4225. },
  4226. getClassC() {
  4227. return function (c) {
  4228. let _c2 = "";
  4229. if (this.grade.length) {
  4230. for (var i = 0; i < this.grade.length; i++) {
  4231. if (this.grade[i].id == c) {
  4232. _c2 = this.grade[i].name;
  4233. break;
  4234. }
  4235. }
  4236. }
  4237. return this.grade.length ? _c2 : "";
  4238. };
  4239. },
  4240. getListClassC() {
  4241. return function (list) {
  4242. let _c2 = [];
  4243. if (this.grade.length) {
  4244. for (var j = 0; j < list.length; j++) {
  4245. let c = list[j]
  4246. for (var i = 0; i < this.grade.length; i++) {
  4247. if (this.grade[i].id == c) {
  4248. _c2.push(this.grade[i].name);
  4249. break;
  4250. }
  4251. }
  4252. }
  4253. }
  4254. return this.grade.length ? _c2.join('、') : "";
  4255. };
  4256. },
  4257. },
  4258. watch: {
  4259. unitIndex(newValue, oldValue) {
  4260. if (this.isDelete == 2) {
  4261. this.isDelete = 1;
  4262. return;
  4263. }
  4264. if (this.cid != "") {
  4265. let _unitIndex = oldValue;
  4266. if (
  4267. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4268. JSON.stringify(this.unitJson[_unitIndex])
  4269. ) {
  4270. this.$refs.rightboxR.scrollTop = 0;
  4271. return;
  4272. }
  4273. let cPan = 1;
  4274. for (
  4275. var j = 0;
  4276. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4277. j++
  4278. ) {
  4279. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4280. j
  4281. ].proVisible = false;
  4282. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4283. j
  4284. ].proVisible2 = false;
  4285. if (
  4286. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4287. .length > 1
  4288. ) {
  4289. for (
  4290. var z = 0;
  4291. z <
  4292. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4293. .length;
  4294. z++
  4295. ) {
  4296. if (
  4297. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4298. .toolChoose[z].tool.length
  4299. ) {
  4300. this.$message.error("请把工具添加完整");
  4301. cPan = 2;
  4302. break;
  4303. }
  4304. }
  4305. }
  4306. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4307. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4308. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4309. (ele) => {
  4310. return ele.value != "";
  4311. }
  4312. );
  4313. }
  4314. }
  4315. if (cPan == 2) {
  4316. this.unitIndex = oldValue;
  4317. return;
  4318. }
  4319. for (var i = 0; i < this.unitJson.length; i++) {
  4320. if (this.addindex != i) {
  4321. delete this.unitJson[i].isUpdate;
  4322. }
  4323. }
  4324. this.$refs.rightboxR.scrollTop = 0;
  4325. this.addindex = -1;
  4326. let params = [
  4327. {
  4328. cid: this.cid,
  4329. chapters: JSON.stringify(this.unitJson),
  4330. uid: this.userid,
  4331. unitIndex: _unitIndex,
  4332. },
  4333. ];
  4334. this.ajax
  4335. .post(this.$store.state.api + "updateWorkNew4", params)
  4336. .then((res) => {
  4337. // this.$message({
  4338. // message: "修改成功",
  4339. // type: "success",
  4340. // });
  4341. // this.courseId = this.cid;
  4342. })
  4343. .catch((err) => {
  4344. this.$message.error("网络不佳");
  4345. console.error(err);
  4346. });
  4347. }
  4348. },
  4349. steps(newValue, old) {
  4350. if (newValue == 4) {
  4351. let cPan = 1;
  4352. for (var i = 0; i < this.unitJson.length; i++) {
  4353. for (
  4354. var j = 0;
  4355. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4356. j++
  4357. ) {
  4358. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4359. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4360. if (
  4361. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4362. ) {
  4363. for (
  4364. var z = 0;
  4365. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4366. z++
  4367. ) {
  4368. if (
  4369. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4370. .length
  4371. ) {
  4372. this.$message.error("请把工具添加完整");
  4373. cPan = 2;
  4374. break;
  4375. }
  4376. }
  4377. }
  4378. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4379. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4380. i
  4381. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4382. return ele.value != "";
  4383. });
  4384. }
  4385. }
  4386. }
  4387. this.inputShow = true;
  4388. if (cPan == 2) {
  4389. this.steps = old;
  4390. return;
  4391. }
  4392. this.goTo(
  4393. "/course?userid=" +
  4394. this.userid +
  4395. "&oid=" +
  4396. this.oid +
  4397. "&org=" +
  4398. this.org +
  4399. "&role=" +
  4400. this.role
  4401. );
  4402. }
  4403. },
  4404. },
  4405. methods: {
  4406. tableRowClassName({ row, rowIndex }) {
  4407. if ((rowIndex + 1) % 2 === 0) {
  4408. return "even_row";
  4409. } else {
  4410. return "";
  4411. }
  4412. },
  4413. openAI() {
  4414. window.parent.postMessage({ tools: "64" }, "*");
  4415. },
  4416. setMan() {
  4417. // let teacherJuri = this.teacherJuri2;
  4418. this.ManAarray = [];
  4419. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4420. if (_user.indexOf(this.userid) == -1) {
  4421. _user.push(this.userid);
  4422. }
  4423. if (_user.indexOf(this.courseUserid) == -1) {
  4424. _user.push(this.courseUserid);
  4425. }
  4426. let params = {
  4427. uid: _user.join(","),
  4428. };
  4429. this.ajax
  4430. .get(this.$store.state.api + "getAllUserById", params)
  4431. .then((res) => {
  4432. let teacherJuri = res.data[0];
  4433. this.ManAarray = teacherJuri;
  4434. })
  4435. .catch((err) => {
  4436. console.error(err);
  4437. });
  4438. },
  4439. previewImg(url) {
  4440. this.$hevueImgPreview(url);
  4441. },
  4442. btnDisplay(bool) {
  4443. this.isBtnDisplay = bool
  4444. },
  4445. stepDisplay(bool) {
  4446. this.isStepDisplay = bool
  4447. },
  4448. scrollChange() {
  4449. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  4450. },
  4451. addHw(e) {
  4452. var el = e.currentTarget;
  4453. el.getElementsByTagName("input")[0].click();
  4454. },
  4455. change(val) {
  4456. if (this.dialogVisible1) {
  4457. this.tdetail = val
  4458. } else if (this.dialogVisible6) {
  4459. this.AttText.text = val
  4460. } else if (this.dialogVisible2) {
  4461. this.cTemplate = val
  4462. } else if (this.dialogVisibleTable) {
  4463. this.tableJson.text = val
  4464. }
  4465. this.$forceUpdate();
  4466. console.log(val);
  4467. },
  4468. change2(val) {
  4469. console.log(val);
  4470. this.$forceUpdate();
  4471. },
  4472. handleClose(done) {
  4473. done();
  4474. },
  4475. closePan(tool) {
  4476. if (tool == 15) {
  4477. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  4478. this.dialogVisible8 = false
  4479. } else {
  4480. this.closeConfirm(tool);
  4481. }
  4482. } else if (tool == 4) {
  4483. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  4484. this.dialogVisible5 = false
  4485. } else {
  4486. this.closeConfirm(tool);
  4487. }
  4488. } else if (tool == 45) {
  4489. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  4490. this.dialogVisibleChoice = false
  4491. } else {
  4492. this.closeConfirm(tool);
  4493. }
  4494. } else if (tool == 41) {
  4495. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  4496. this.dialogVisibleSelect = false
  4497. } else {
  4498. this.closeConfirm(tool);
  4499. }
  4500. } else if (tool == 47) {
  4501. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  4502. this.dialogVisibleSentence = false
  4503. } else {
  4504. this.closeConfirm(tool);
  4505. }
  4506. }else if (tool == 69){
  4507. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  4508. this.englishDialogVisible = false
  4509. } else {
  4510. this.closeConfirm(tool);
  4511. }
  4512. }
  4513. },
  4514. closeConfirm(tool) {
  4515. this
  4516. .$confirm("是否保存已编辑内容?", "提示", {
  4517. confirmButtonText: "保存",
  4518. cancelButtonText: "不保存",
  4519. type: "warning",
  4520. })
  4521. .then(() => {
  4522. if (tool == 15) {
  4523. this.addAnswer();
  4524. } else if (tool == 4) {
  4525. this.addAsk();
  4526. } else if (tool == 45) {
  4527. this.addTest();
  4528. } else if (tool == 41) {
  4529. this.addSelectAnswer();
  4530. } else if (tool == 47) {
  4531. this.addSentenceTool();
  4532. }else if(tool == 69){
  4533. this.addEnglish();
  4534. }
  4535. })
  4536. .catch(() => {
  4537. if (tool == 15) {
  4538. this.dialogVisible8 = false;
  4539. } else if (tool == 4) {
  4540. this.dialogVisible5 = false;
  4541. } else if (tool == 45) {
  4542. this.dialogVisibleChoice = false;
  4543. } else if (tool == 41) {
  4544. this.dialogVisibleSelect = false;
  4545. } else if (tool == 47) {
  4546. this.dialogVisibleSentence = false;
  4547. } else if (tool == 69) {
  4548. this.englishDialogVisible = false;
  4549. }
  4550. });
  4551. },
  4552. addEnglish(){
  4553. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  4554. this.$message.error("请将内容填写完整!");
  4555. return;
  4556. }
  4557. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4558. this.taskCount
  4559. ].toolChoose[this.toolIndex].englishList = this.englishList;
  4560. this.englishList = {};
  4561. this.englishDialogVisible = false;
  4562. if (
  4563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  4564. .toolChoose[this.toolIndex].tool != 69
  4565. ) {
  4566. this.addTools(69, this.taskCount, this.toolIndex);
  4567. }
  4568. },
  4569. setEnglishList(engList){
  4570. this.englishList = engList;
  4571. },
  4572. imgChange2(i, j) {
  4573. var _tmp = this.testJson.testJson[i].checkList[j];
  4574. this.noneBtnImg = _tmp.length >= 1;
  4575. },
  4576. imgChange3(i) {
  4577. var _tmp = this.testJson.testJson[i];
  4578. this.noneBtnImg = _tmp.length >= 1;
  4579. },
  4580. imgChange1(file, fileList, type, itemTaskIndex) {
  4581. if (type == 1) {
  4582. var _tmp = this.cover;
  4583. } else if (
  4584. type == 2 ||
  4585. type == 3 ||
  4586. type == 6 ||
  4587. type == 7 ||
  4588. type == 8
  4589. ) {
  4590. var _tmp =
  4591. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4592. .chapterData;
  4593. } else if (type == 4) {
  4594. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4595. } else {
  4596. var _tmp =
  4597. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4598. .homeworkList;
  4599. }
  4600. this.noneBtnImg = _tmp.length >= 1;
  4601. },
  4602. goTo(path) {
  4603. this.$router.push(path);
  4604. },
  4605. guid() {
  4606. var _num,
  4607. i,
  4608. _guid = "";
  4609. for (i = 0; i < 32; i++) {
  4610. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4611. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4612. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4613. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4614. _guid += "-";
  4615. }
  4616. }
  4617. return _guid;
  4618. },
  4619. retrunCourse() {
  4620. this
  4621. .$confirm("是否保存已编辑内容?", "提示", {
  4622. confirmButtonText: "保存",
  4623. cancelButtonText: "不保存",
  4624. distinguishCancelAndClose: true,
  4625. type: "warning",
  4626. })
  4627. .then(() => {
  4628. if (this.cid == "" || this.cid == undefined) {
  4629. if (this.courseName == "") {
  4630. this.$message.error("请补充填写课程名称");
  4631. return;
  4632. } else {
  4633. this.addWork();
  4634. }
  4635. this.steps = 4
  4636. } else {
  4637. if (this.courseName == "") {
  4638. this.$message.error("请补充填写课程名称");
  4639. return;
  4640. } else {
  4641. if (this.userid != this.courseUserid && this.role != "1") {
  4642. this.updateWork2();
  4643. } else {
  4644. this.updateWork();
  4645. }
  4646. this.steps = 4
  4647. }
  4648. }
  4649. })
  4650. .catch((v) => {
  4651. console.log(v)
  4652. if(v == "cancel"){
  4653. this.goTo(
  4654. "/course?userid=" +
  4655. this.userid +
  4656. "&oid=" +
  4657. this.oid +
  4658. "&org=" +
  4659. this.org +
  4660. "&role=" +
  4661. this.role
  4662. );
  4663. }
  4664. });
  4665. },
  4666. lastSteps() {
  4667. if (this.steps == 4) {
  4668. this.goTo(
  4669. "/course?userid=" +
  4670. this.userid +
  4671. "&oid=" +
  4672. this.oid +
  4673. "&org=" +
  4674. this.org +
  4675. "&role=" +
  4676. this.role
  4677. );
  4678. } else {
  4679. // if (this.cidType == 0) {
  4680. // this.steps--;
  4681. // if (this.steps == 1) {
  4682. // setTimeout(() => {
  4683. // this.checkEva(this.checkId);
  4684. // setTimeout(() => {
  4685. // this.checkEva(this.checkId);
  4686. // }, 100);
  4687. // }, 100);
  4688. // }
  4689. // } else {
  4690. if (this.steps == 3) {
  4691. this.steps = 1;
  4692. setTimeout(() => {
  4693. this.checkEva(this.checkId);
  4694. setTimeout(() => {
  4695. this.checkEva(this.checkId);
  4696. }, 100);
  4697. }, 100);
  4698. }
  4699. // }
  4700. }
  4701. },
  4702. navSteps(s) {
  4703. if (this.courseName == "") {
  4704. this.$message.error("请补充填写课程名称");
  4705. return;
  4706. }
  4707. if (this.cidType == 0) {
  4708. if (this.steps == 1) {
  4709. if (this.cid == "" || this.cid == undefined) {
  4710. this.addWork();
  4711. } else {
  4712. if (this.userid != this.courseUserid && this.role != "1") {
  4713. // this.updateWork2();
  4714. } else {
  4715. this.updateWork();
  4716. }
  4717. }
  4718. }
  4719. if (s == 1) {
  4720. this.steps = 1;
  4721. setTimeout(() => {
  4722. this.checkEva(this.checkId);
  4723. setTimeout(() => {
  4724. this.checkEva(this.checkId);
  4725. }, 100);
  4726. }, 100);
  4727. }
  4728. if (s == 2) {
  4729. this.steps = 2;
  4730. }
  4731. if (s == 3) {
  4732. this.cTemplate = this.templateC.content;
  4733. this.dialogVisible2 = false;
  4734. this.steps = 3;
  4735. this.isClickColor = 1
  4736. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4737. this.$forceUpdate();
  4738. setTimeout(() => {
  4739. this.checkEva(this.checkId);
  4740. setTimeout(() => {
  4741. this.checkEva(this.checkId);
  4742. }, 100);
  4743. }, 1000);
  4744. }
  4745. } else {
  4746. if (this.steps == 1) {
  4747. if (this.cid == "" || this.cid == undefined) {
  4748. this.addWork();
  4749. } else {
  4750. if (this.userid != this.courseUserid && this.role != "1") {
  4751. // this.updateWork2();
  4752. } else {
  4753. this.updateWork();
  4754. }
  4755. }
  4756. }
  4757. if (s == 1) {
  4758. this.steps = 1;
  4759. setTimeout(() => {
  4760. this.checkEva(this.checkId);
  4761. setTimeout(() => {
  4762. this.checkEva(this.checkId);
  4763. }, 100);
  4764. }, 100);
  4765. }
  4766. if (s == 3) {
  4767. this.cTemplate = this.templateC.content;
  4768. this.dialogVisible2 = false;
  4769. this.steps = 3;
  4770. this.isClickColor = 1
  4771. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4772. this.$forceUpdate();
  4773. setTimeout(() => {
  4774. this.checkEva(this.checkId);
  4775. setTimeout(() => {
  4776. this.checkEva(this.checkId);
  4777. }, 100);
  4778. }, 1000);
  4779. }
  4780. }
  4781. this.$refs.stepBox.scrollTop = 0;
  4782. },
  4783. nextSteps() {
  4784. // if (this.cidType == 1) {
  4785. if (this.steps == 1) {
  4786. if (this.courseName != "") {
  4787. this.steps = 3;
  4788. this.isClickColor = 1
  4789. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4790. this.$forceUpdate();
  4791. setTimeout(() => {
  4792. this.checkEva(this.checkId);
  4793. setTimeout(() => {
  4794. this.checkEva(this.checkId);
  4795. }, 100);
  4796. }, 1000);
  4797. if (this.cid == "" || this.cid == undefined) {
  4798. this.addWork();
  4799. } else {
  4800. if (this.userid != this.courseUserid && this.role != "1") {
  4801. // this.updateWork2();
  4802. } else {
  4803. this.updateWork();
  4804. }
  4805. }
  4806. } else {
  4807. this.$message.error("请补充填写课程名称");
  4808. return;
  4809. }
  4810. } else if (this.steps == 3) {
  4811. if (this.cid == "" || this.cid == undefined) {
  4812. if (this.courseName == "") {
  4813. this.$message.error("请补充填写课程名称");
  4814. return;
  4815. } else {
  4816. this.addWork();
  4817. this.steps++;
  4818. }
  4819. } else {
  4820. if (this.courseName == "") {
  4821. this.$message.error("请补充填写课程名称");
  4822. return;
  4823. } else {
  4824. if (this.userid != this.courseUserid && this.role != "1") {
  4825. this.updateWork2();
  4826. } else {
  4827. this.updateWork();
  4828. }
  4829. this.steps++;
  4830. }
  4831. }
  4832. }
  4833. // } else {
  4834. // if (this.steps == 1) {
  4835. // if (this.courseName != "") {
  4836. // if (this.cid == "" || this.cid == undefined) {
  4837. // this.addWork();
  4838. // } else {
  4839. // if (this.userid != this.courseUserid && this.role != "1") {
  4840. // // this.updateWork2();
  4841. // } else {
  4842. // this.updateWork();
  4843. // }
  4844. // }
  4845. // this.steps++;
  4846. // } else {
  4847. // this.$message.error("请补充填写课程名称");
  4848. // return;
  4849. // }
  4850. // } else if (this.steps == 2) {
  4851. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  4852. // this.cTemplate = this.templateC.content;
  4853. // }
  4854. // this.dialogVisible2 = false;
  4855. // this.steps++;
  4856. // setTimeout(() => {
  4857. // this.checkEva(this.checkId);
  4858. // setTimeout(() => {
  4859. // this.checkEva(this.checkId);
  4860. // }, 100);
  4861. // }, 1000);
  4862. // } else if (this.steps == 3) {
  4863. // if (this.cid == "" || this.cid == undefined) {
  4864. // if (this.courseName == "") {
  4865. // this.$message.error("请补充填写课程名称");
  4866. // return;
  4867. // } else {
  4868. // this.addWork();
  4869. // this.steps++;
  4870. // }
  4871. // } else {
  4872. // if (this.courseName == "") {
  4873. // this.$message.error("请补充填写课程名称");
  4874. // return;
  4875. // } else {
  4876. // if (this.userid != this.courseUserid && this.role != "1") {
  4877. // this.updateWork2();
  4878. // } else {
  4879. // this.updateWork();
  4880. // }
  4881. // this.steps++;
  4882. // }
  4883. // }
  4884. // }
  4885. // }
  4886. this.$refs.stepBox.scrollTop = 0;
  4887. },
  4888. unitSet(i) {
  4889. if(this.unitIndex == i){
  4890. return;
  4891. }
  4892. this.unitIndex = i;
  4893. this.isClickColor = 1
  4894. // this.$refs.rightboxR.scrollTop = 0;
  4895. this.$refs.unitBox.scrollTop = 0
  4896. },
  4897. panUnitJson(){
  4898. let _unitIndex = this.unitIndex;
  4899. let cPan = 1;
  4900. for (
  4901. var j = 0;
  4902. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4903. j++
  4904. ) {
  4905. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4906. j
  4907. ].proVisible = false;
  4908. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4909. j
  4910. ].proVisible2 = false;
  4911. if (
  4912. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4913. .length > 1
  4914. ) {
  4915. for (
  4916. var z = 0;
  4917. z <
  4918. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4919. .length;
  4920. z++
  4921. ) {
  4922. if (
  4923. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4924. .toolChoose[z].tool.length
  4925. ) {
  4926. this.$message.error("请把工具添加完整");
  4927. cPan = 2;
  4928. break;
  4929. }
  4930. }
  4931. }
  4932. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4933. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4934. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4935. (ele) => {
  4936. return ele.value != "";
  4937. }
  4938. );
  4939. }
  4940. }
  4941. return cPan;
  4942. },
  4943. unitSet2(i) {
  4944. if(this.panUnitJson() == 2){
  4945. return;
  4946. }
  4947. if(this.unitJson[i].toolOpen){
  4948. this.unitJson[i].toolOpen = false
  4949. this.updateWork()
  4950. this.$forceUpdate()
  4951. return
  4952. }else {
  4953. this.unitJson[i].toolOpen = true
  4954. }
  4955. this.$forceUpdate()
  4956. if(this.unitIndex == i){
  4957. return;
  4958. }
  4959. this.unitIndex = i;
  4960. this.isClickColor = 1
  4961. // this.$refs.rightboxR.scrollTop = 0;
  4962. this.$refs.unitBox.scrollTop = 0
  4963. },
  4964. updateCourseState(i){
  4965. let params = [
  4966. {
  4967. cid: this.cid,
  4968. state: i,
  4969. },
  4970. ];
  4971. this.ajax
  4972. .post(this.$store.state.api + "updateCourseMode", params)
  4973. .then((res) => {
  4974. this.courseState = i
  4975. })
  4976. .catch((err) => {
  4977. this.$message.error("网络不佳");
  4978. console.error(err);
  4979. });
  4980. },
  4981. time() {
  4982. if (!this.now) {
  4983. this.now = new Date().getTime();
  4984. return true;
  4985. } else {
  4986. let time = new Date().getTime();
  4987. if (time - this.now > 3000) {
  4988. this.now = time;
  4989. return true;
  4990. } else {
  4991. return false;
  4992. }
  4993. }
  4994. },
  4995. deleteUnit(i) {
  4996. var _this = this;
  4997. if(i == 0 && _this.unitJson.length == 1){
  4998. _this
  4999. .$confirm("确定切换成任务模式吗?", "提示", {
  5000. confirmButtonText: "确定",
  5001. cancelButtonText: "取消",
  5002. type: "warning",
  5003. })
  5004. .then(() => {
  5005. _this.unitJson[i].dyName = ''
  5006. _this.updateCourseState(2)
  5007. })
  5008. .catch(() => {
  5009. return;
  5010. });
  5011. }else {
  5012. _this
  5013. .$confirm("确定删除此阶段吗?", "提示", {
  5014. confirmButtonText: "确定",
  5015. cancelButtonText: "取消",
  5016. type: "warning",
  5017. })
  5018. .then(() => {
  5019. _this.isDelete = 2;
  5020. // _this.unitIndex = _this.unitIndex - 1;
  5021. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5022. // _this.$message.success("删除成功");
  5023. })
  5024. .catch(() => {
  5025. return;
  5026. });
  5027. }
  5028. },
  5029. deleteWork(chapid) {
  5030. let params = [
  5031. {
  5032. cid: this.cid,
  5033. chapters: JSON.stringify(this.unitJson),
  5034. uid: this.userid,
  5035. chapid: chapid,
  5036. },
  5037. ];
  5038. this.ajax
  5039. .post(this.$store.state.api + "deleteWork", params)
  5040. .then((res) => {
  5041. this.$message({
  5042. message: "删除成功",
  5043. type: "success",
  5044. });
  5045. let task = JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson))
  5046. this.unitJson.splice(this.unitIndex, 1);
  5047. if(this.unitIndex == 0){
  5048. this.unitIndex = 0;
  5049. }else{
  5050. this.unitIndex = this.unitIndex - 1;
  5051. }
  5052. if(JSON.stringify(task) != JSON.stringify(this.taskJSONa)){
  5053. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson, ...task]
  5054. }
  5055. })
  5056. .catch((err) => {
  5057. this.$message.error("网络不佳");
  5058. console.error(err);
  5059. });
  5060. },
  5061. deleteTool(itemTaskIndex, i) {
  5062. var _this = this;
  5063. if (_this.time()) {
  5064. _this
  5065. .$confirm("确定删除此工具吗?", "提示", {
  5066. confirmButtonText: "确定",
  5067. cancelButtonText: "取消",
  5068. type: "warning",
  5069. })
  5070. .then(() => {
  5071. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5072. itemTaskIndex
  5073. ].toolChoose.splice(i, 1);
  5074. _this.$message.success("删除成功");
  5075. })
  5076. .catch(() => {
  5077. return;
  5078. });
  5079. }
  5080. },
  5081. deleteSentence(i) {
  5082. var _this = this;
  5083. _this
  5084. .$confirm("确定删除此题目吗?", "提示", {
  5085. confirmButtonText: "确定",
  5086. cancelButtonText: "取消",
  5087. type: "warning",
  5088. })
  5089. .then(() => {
  5090. _this.sentenceList.splice(i, 1);
  5091. _this.$message.success("删除成功");
  5092. })
  5093. .catch(() => {
  5094. return;
  5095. });
  5096. },
  5097. deleteS(s, i, j) {
  5098. this.sentenceList[i].addSentence.splice(j, 1);
  5099. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5100. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5101. this.sentenceList[i].rightAnswer.splice(a, 1);
  5102. }
  5103. },
  5104. openT() {
  5105. window.parent.postMessage({ tools: "25" }, "*");
  5106. },
  5107. deleteTask(i) {
  5108. var _this = this;
  5109. if (_this.time()) {
  5110. _this
  5111. .$confirm(
  5112. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  5113. 1 ==
  5114. i
  5115. ? "确定删除此任务吗?"
  5116. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  5117. "提示",
  5118. {
  5119. confirmButtonText: "确定",
  5120. cancelButtonText: "取消",
  5121. type: "warning",
  5122. }
  5123. )
  5124. .then(() => {
  5125. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  5126. i,
  5127. 1
  5128. );
  5129. _this.$message.success("删除成功");
  5130. })
  5131. .catch(() => {
  5132. return;
  5133. });
  5134. }
  5135. },
  5136. handlePictureCardPreview(file) {
  5137. this.dialogImageUrl = file.url;
  5138. },
  5139. clean(i, c) {
  5140. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5141. },
  5142. handle_remove1(file, fileList, type) {
  5143. var _tmp = this.cover;
  5144. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5145. // if (_tmp[i].uid == file.uid) {
  5146. // _tmp.splice(i, 1);
  5147. // break;
  5148. // }
  5149. // this.cover = _tmp;
  5150. // }
  5151. this.cover = [];
  5152. this.noneBtnImg = this.cover.length >= 1;
  5153. this.isSysPic = false;
  5154. this.isSysPic2 = false;
  5155. this.$forceUpdate();
  5156. },
  5157. addImg(e) {
  5158. var el = e.currentTarget;
  5159. el.getElementsByTagName("input")[0].click();
  5160. e.target.value = "";
  5161. },
  5162. addChaptersTools(i) {
  5163. this.chapTools = [
  5164. {
  5165. tools: [],
  5166. toolDetail: "",
  5167. },
  5168. ];
  5169. this.chapCount = i;
  5170. this.dialogVisible4 = true;
  5171. },
  5172. isNoFinsh() {
  5173. this.$message.warning("功能正在开发中");
  5174. },
  5175. addAttText(i) {
  5176. this.AttText = {
  5177. title: "",
  5178. text: "",
  5179. };
  5180. this.taskCount = i;
  5181. this.AttTextType = 0;
  5182. this.$forceUpdate();
  5183. this.dialogVisible6 = true;
  5184. setTimeout(() => {
  5185. this.$refs['fuInput'].focus();
  5186. }, 100);
  5187. },
  5188. openLine(i) {
  5189. this.line = "";
  5190. this.lineCount = i;
  5191. this.lineType = 0;
  5192. this.$forceUpdate();
  5193. this.dialogVisible7 = true;
  5194. },
  5195. pasteLine(i) {
  5196. navigator.clipboard
  5197. .readText()
  5198. .then((v) => {
  5199. console.log("获取剪贴板成功:", v);
  5200. const html = v;
  5201. const regex = /src="(.*?)"/g;
  5202. const match = regex.exec(html);
  5203. if (match && match[1]) {
  5204. console.log(match[1]);
  5205. this.$message.success("粘贴成功");
  5206. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5207. i
  5208. ].chapterData.push({
  5209. name: "链接",
  5210. title: "嵌入代码",
  5211. url: match[1],
  5212. type: 8,
  5213. });
  5214. } else {
  5215. // console.log("未找到包含 src 属性的 iframe");
  5216. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5217. }
  5218. })
  5219. .catch((v) => {
  5220. console.log("获取剪贴板失败: ", v);
  5221. });
  5222. },
  5223. openSource(i) {
  5224. this.lineCount = i;
  5225. this.sourceData = {};
  5226. this.dialogVisibleSource = true;
  5227. this.updateSourcePan = false;
  5228. },
  5229. addSource() {
  5230. if (!Object.keys(this.sourceData).length) {
  5231. this.$message.error("请选择要上传的资源");
  5232. return;
  5233. }
  5234. let keys = Object.keys(this.sourceData);
  5235. for (var i = 0; i < keys.length; i++) {
  5236. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5237. this.lineCount
  5238. ].chapterData.push({
  5239. name: "链接",
  5240. title: this.sourceData[keys[i]].name,
  5241. url: this.sourceData[keys[i]].url,
  5242. type: 14,
  5243. id: keys[i]
  5244. });
  5245. }
  5246. this.$forceUpdate();
  5247. this.dialogVisibleSource = false;
  5248. },
  5249. updateSource() {
  5250. if (!Object.keys(this.sourceData).length) {
  5251. this.$message.error("请选择要上传的资源");
  5252. return;
  5253. }
  5254. let keys = Object.keys(this.sourceData);
  5255. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5256. this.taskCount
  5257. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5258. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5259. this.taskCount
  5260. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5261. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5262. this.taskCount
  5263. ].chapterData[this.lineCount].id = keys[0];
  5264. this.updateSourcePan = false;
  5265. this.$forceUpdate();
  5266. this.dialogVisibleSource = false;
  5267. },
  5268. deleteM(i, j) {
  5269. this.testJson.testJson[i].timuList.splice(j, 1);
  5270. },
  5271. beforeUploadTiMu(event, i) {
  5272. const loading = this.openLoading();
  5273. var file = event.target.files[0];
  5274. var credentials = {
  5275. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5276. secretAccessKey: "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",
  5277. }; //秘钥形式的登录上传
  5278. window.AWS.config.update(credentials);
  5279. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5280. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5281. var _this = this;
  5282. if (file) {
  5283. var params = {
  5284. Key:
  5285. file.name.split(".")[0] +
  5286. new Date().getTime() +
  5287. "." +
  5288. file.name.split(".")[file.name.split(".").length - 1],
  5289. ContentType: file.type,
  5290. Body: file,
  5291. "Access-Control-Allow-Credentials": "*",
  5292. ACL: "public-read",
  5293. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5294. var options = {
  5295. partSize: 2048 * 1024 * 1024,
  5296. queueSize: 2,
  5297. leavePartsOnError: true,
  5298. };
  5299. bucket
  5300. .upload(params, options)
  5301. .on("httpUploadProgress", function (evt) {
  5302. //这里可以写进度条
  5303. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5304. })
  5305. .send(function (err, data) {
  5306. loading.close();
  5307. if (err) {
  5308. _this.$message.error("上传失败");
  5309. } else {
  5310. if (_this.testJson.testJson[i].timuList) {
  5311. _this.testJson.testJson[i].timuList.push({
  5312. src: data.Location,
  5313. });
  5314. } else {
  5315. _this.testJson.testJson[i].timuList = [];
  5316. _this.testJson.testJson[i].timuList.push({
  5317. src: data.Location,
  5318. });
  5319. }
  5320. _this.imgChange3(i);
  5321. _this.$forceUpdate();
  5322. }
  5323. });
  5324. }
  5325. },
  5326. beforeUploadTi(event, i, j) {
  5327. const loading = this.openLoading();
  5328. var file = event.target.files[0];
  5329. var credentials = {
  5330. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5331. secretAccessKey: "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",
  5332. }; //秘钥形式的登录上传
  5333. window.AWS.config.update(credentials);
  5334. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5335. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5336. var _this = this;
  5337. if (file) {
  5338. var params = {
  5339. Key:
  5340. file.name.split(".")[0] +
  5341. new Date().getTime() +
  5342. "." +
  5343. file.name.split(".")[file.name.split(".").length - 1],
  5344. ContentType: file.type,
  5345. Body: file,
  5346. "Access-Control-Allow-Credentials": "*",
  5347. ACL: "public-read",
  5348. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5349. var options = {
  5350. partSize: 2048 * 1024 * 1024,
  5351. queueSize: 2,
  5352. leavePartsOnError: true,
  5353. };
  5354. bucket
  5355. .upload(params, options)
  5356. .on("httpUploadProgress", function (evt) {
  5357. //这里可以写进度条
  5358. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5359. })
  5360. .send(function (err, data) {
  5361. loading.close();
  5362. if (err) {
  5363. _this.$message.error("上传失败");
  5364. } else {
  5365. _this.testJson.testJson[i].checkList[j] = {};
  5366. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5367. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5368. _this.imgChange2(i, j);
  5369. _this.$forceUpdate();
  5370. }
  5371. });
  5372. }
  5373. },
  5374. beforeUpload1(event, type) {
  5375. // const loading = this.openLoading();
  5376. var file = event.target.files[0];
  5377. var credentials = {
  5378. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5379. secretAccessKey: "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",
  5380. }; //秘钥形式的登录上传
  5381. window.AWS.config.update(credentials);
  5382. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5383. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5384. var _this = this;
  5385. if (file) {
  5386. var params = {
  5387. Key:
  5388. file.name.split(".")[0] +
  5389. new Date().getTime() +
  5390. "." +
  5391. file.name.split(".")[file.name.split(".").length - 1],
  5392. ContentType: file.type,
  5393. Body: file,
  5394. "Access-Control-Allow-Credentials": "*",
  5395. ACL: "public-read",
  5396. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5397. var options = {
  5398. partSize: 2048 * 1024 * 1024,
  5399. queueSize: 2,
  5400. leavePartsOnError: true,
  5401. };
  5402. bucket
  5403. .upload(params, options)
  5404. .on("httpUploadProgress", function (evt) {
  5405. //这里可以写进度条
  5406. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5407. })
  5408. .send(function (err, data) {
  5409. // loading.close();
  5410. if (err) {
  5411. // var a = _this.$refs.upload1.uploadFiles;
  5412. // a.splice(a.length - 1, a.length);
  5413. _this.$message.error("上传失败");
  5414. } else {
  5415. _this.cover.push({
  5416. name: file.name,
  5417. url: data.Location,
  5418. uid: file.uid,
  5419. });
  5420. _this.imgChange1(null, null, 1, null);
  5421. _this.choosePicVisible = false;
  5422. console.log(data.Location);
  5423. }
  5424. });
  5425. }
  5426. },
  5427. beforeUploadSelect(event, type) {
  5428. // const loading = this.openLoading();
  5429. var file = event.target.files[0];
  5430. var credentials = {
  5431. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5432. secretAccessKey: "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",
  5433. }; //秘钥形式的登录上传
  5434. window.AWS.config.update(credentials);
  5435. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5436. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5437. var _this = this;
  5438. if (file) {
  5439. var params = {
  5440. Key:
  5441. file.name.split(".")[0] +
  5442. new Date().getTime() +
  5443. "." +
  5444. file.name.split(".")[file.name.split(".").length - 1],
  5445. ContentType: file.type,
  5446. Body: file,
  5447. "Access-Control-Allow-Credentials": "*",
  5448. ACL: "public-read",
  5449. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5450. var options = {
  5451. partSize: 2048 * 1024 * 1024,
  5452. queueSize: 2,
  5453. leavePartsOnError: true,
  5454. };
  5455. bucket
  5456. .upload(params, options)
  5457. .on("httpUploadProgress", function (evt) {
  5458. //这里可以写进度条
  5459. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5460. })
  5461. .send(function (err, data) {
  5462. // loading.close();
  5463. if (err) {
  5464. _this.$message.error("上传失败");
  5465. } else {
  5466. _this.selectJson.url = data.Location;
  5467. console.log(data.Location);
  5468. }
  5469. });
  5470. }
  5471. },
  5472. chooseSysPic(p) {
  5473. this.cover = []
  5474. setTimeout(() => {
  5475. this.cover[0] = {
  5476. name: "系统图片.png",
  5477. url: p,
  5478. };
  5479. this.imgChange1(null, null, 1, null);
  5480. this.$forceUpdate();
  5481. }, 0);
  5482. this.isSysPic = true;
  5483. this.isSysPic2 = false;
  5484. this.sysPicVisible = false;
  5485. this.$forceUpdate();
  5486. },
  5487. chooseSysPic2(p) {
  5488. this.cover = []
  5489. setTimeout(() => {
  5490. this.cover[0] = {
  5491. name: "网络图片.png",
  5492. url: p,
  5493. };
  5494. this.imgChange1(null, null, 1, null);
  5495. this.$forceUpdate();
  5496. }, 0);
  5497. this.isSysPic2 = true;
  5498. this.isSysPic = false;
  5499. this.sysPicVisible2 = false;
  5500. this.$forceUpdate();
  5501. },
  5502. beforeUpload(data) {
  5503. this.$refs.upload1.uploadFiles;
  5504. this.uploadLoading1 = true;
  5505. var file = data.file;
  5506. var credentials = {
  5507. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5508. secretAccessKey: "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",
  5509. }; //秘钥形式的登录上传
  5510. window.AWS.config.update(credentials);
  5511. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5512. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5513. var _this = this;
  5514. if (file) {
  5515. var params = {
  5516. Key:
  5517. file.name.split(".")[0] +
  5518. new Date().getTime() +
  5519. "." +
  5520. file.name.split(".")[file.name.split(".").length - 1],
  5521. ContentType: file.type,
  5522. Body: file,
  5523. "Access-Control-Allow-Credentials": "*",
  5524. ACL: "public-read",
  5525. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5526. var options = {
  5527. partSize: 2048 * 1024 * 1024,
  5528. queueSize: 2,
  5529. leavePartsOnError: true,
  5530. };
  5531. bucket
  5532. .upload(params, options)
  5533. .on("httpUploadProgress", function (evt) {
  5534. //这里可以写进度条
  5535. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5536. })
  5537. .send(function (err, data) {
  5538. _this.uploadLoading1 = false;
  5539. if (err) {
  5540. // var a = _this.$refs.upload1.uploadFiles;
  5541. // a.splice(a.length - 1, a.length);
  5542. _this.$message.error("上传失败");
  5543. } else {
  5544. //上传成功处理
  5545. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5546. name: file.name,
  5547. url: data.Location,
  5548. uid: file.uid,
  5549. });
  5550. _this.imgChange();
  5551. console.log(data.Location);
  5552. }
  5553. });
  5554. }
  5555. },
  5556. onExceed() {
  5557. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5558. },
  5559. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5560. // const loading = this.openLoading();
  5561. var file = event.target.files[0];
  5562. var credentials = {
  5563. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5564. secretAccessKey: "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",
  5565. }; //秘钥形式的登录上传
  5566. window.AWS.config.update(credentials);
  5567. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5568. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5569. var _this = this;
  5570. if (type == 3) {
  5571. var b = [
  5572. "DOC",
  5573. "DOCX",
  5574. "DOCM",
  5575. "DOTM",
  5576. "DOTX",
  5577. "PPTX",
  5578. "PPSX",
  5579. "PPT",
  5580. "PPS",
  5581. "PPTM",
  5582. "POTM",
  5583. "PPAM",
  5584. "POTX",
  5585. "PPSM",
  5586. ];
  5587. if (
  5588. b.indexOf(
  5589. file.name
  5590. .split(".")
  5591. [file.name.split(".").length - 1].toLocaleUpperCase()
  5592. ) != -1
  5593. ) {
  5594. if (file.size / 1024 / 1024 > 80) {
  5595. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5596. this.inputShow = true;
  5597. // var a = _this.$refs.upload1.uploadFiles;
  5598. // a.splice(a.length - 1, a.length);
  5599. // loading.close();
  5600. return;
  5601. }
  5602. } else if (
  5603. file.name
  5604. .split(".")
  5605. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5606. ) {
  5607. if (file.size / 1024 / 1024 > 80) {
  5608. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5609. this.inputShow = true;
  5610. // var a = _this.$refs.upload1.uploadFiles;
  5611. // a.splice(a.length - 1, a.length);
  5612. // loading.close();
  5613. return;
  5614. }
  5615. }
  5616. }
  5617. this.inputShow = false;
  5618. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5619. itemTaskIndex
  5620. ].progress = 0;
  5621. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5622. itemTaskIndex
  5623. ].proVisible = true;
  5624. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5625. itemTaskIndex
  5626. ].isFinishSize = 0;
  5627. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5628. itemTaskIndex
  5629. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5630. _this.$forceUpdate();
  5631. if (file) {
  5632. var params = {
  5633. Key:
  5634. file.name.split(".")[0] +
  5635. new Date().getTime() +
  5636. "." +
  5637. file.name.split(".")[file.name.split(".").length - 1],
  5638. ContentType: file.type,
  5639. Body: file,
  5640. "Access-Control-Allow-Credentials": "*",
  5641. ACL: "public-read",
  5642. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5643. var options = {
  5644. partSize: 2048 * 1024 * 1024,
  5645. queueSize: 2,
  5646. leavePartsOnError: true,
  5647. };
  5648. bucket
  5649. .upload(params, options)
  5650. .on("httpUploadProgress", function (evt) {
  5651. //这里可以写进度条
  5652. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5653. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5654. itemTaskIndex
  5655. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5656. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5657. itemTaskIndex
  5658. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5659. _this.$forceUpdate();
  5660. })
  5661. .send(function (err, data) {
  5662. // loading.close();
  5663. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5664. itemTaskIndex
  5665. ].progress = 100;
  5666. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5667. itemTaskIndex
  5668. ].isFinishSize =
  5669. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5670. itemTaskIndex
  5671. ].isAllSize;
  5672. _this.$forceUpdate();
  5673. setTimeout(() => {
  5674. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5675. itemTaskIndex
  5676. ].proVisible = false;
  5677. _this.$forceUpdate();
  5678. }, 1000);
  5679. _this.inputShow = true;
  5680. if (err) {
  5681. // var a = _this.$refs.upload1.uploadFiles;
  5682. // a.splice(a.length - 1, a.length);
  5683. _this.$message.error("上传失败");
  5684. } else {
  5685. if (type == 13) {
  5686. let _type = 2;
  5687. var imgA = [
  5688. "png",
  5689. "jpg",
  5690. "jpeg",
  5691. "bmp",
  5692. "gif",
  5693. "webp",
  5694. "psd",
  5695. "svg",
  5696. "tiff",
  5697. ];
  5698. var fileA = [
  5699. "PDF",
  5700. "DOC",
  5701. "DOCX",
  5702. "DOCM",
  5703. "DOTM",
  5704. "DOTX",
  5705. "PPTX",
  5706. "PPSX",
  5707. "PPT",
  5708. "PPS",
  5709. "PPTM",
  5710. "POTM",
  5711. "PPAM",
  5712. "POTX",
  5713. "PPSM",
  5714. "XLSX",
  5715. "XLS",
  5716. ];
  5717. var videoA = [
  5718. "AVI",
  5719. "NAVI",
  5720. "MPEG",
  5721. "ASF",
  5722. "MOV",
  5723. "WMV",
  5724. "3GP",
  5725. "RM",
  5726. "RMVB",
  5727. "FLV",
  5728. "F4V",
  5729. "H.264",
  5730. "H.265",
  5731. "REAL VIDEO",
  5732. "MKV",
  5733. "WebM",
  5734. "HDDVD",
  5735. "MP4",
  5736. "MPG",
  5737. "M4V",
  5738. "MGV",
  5739. "OGV",
  5740. "QTM",
  5741. "STR",
  5742. "AMC",
  5743. "DVX",
  5744. "EVO",
  5745. "DAT",
  5746. "OGG",
  5747. "OGM",
  5748. ];
  5749. if (
  5750. fileA.indexOf(
  5751. data.Location.split(".")[
  5752. data.Location.split(".").length - 1
  5753. ].toLocaleUpperCase()
  5754. ) != -1
  5755. ) {
  5756. _type = 3;
  5757. } else if (
  5758. videoA.indexOf(
  5759. data.Location.split(".")[
  5760. data.Location.split(".").length - 1
  5761. ].toLocaleUpperCase()
  5762. ) != -1
  5763. ) {
  5764. _type = 2;
  5765. } else if (
  5766. imgA.indexOf(
  5767. data.Location.split(".")[
  5768. data.Location.split(".").length - 1
  5769. ].toLocaleLowerCase()
  5770. ) != -1
  5771. ) {
  5772. _type = 13;
  5773. } else {
  5774. _type = 12;
  5775. }
  5776. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5777. itemTaskIndex
  5778. ].chapterData.push({
  5779. name: file.name,
  5780. url: data.Location,
  5781. uid: file.uid,
  5782. type: _type,
  5783. });
  5784. _this.imgChange1(null, null, _type, itemTaskIndex);
  5785. } else if (type == 2 || type == 3 || type == 12) {
  5786. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5787. itemTaskIndex
  5788. ].chapterData.push({
  5789. name: file.name,
  5790. url: data.Location,
  5791. uid: file.uid,
  5792. type: type,
  5793. });
  5794. _this.imgChange1(null, null, type, itemTaskIndex);
  5795. } else if (type == 4) {
  5796. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5797. itemTaskIndex
  5798. ].fileList1.push({
  5799. name: file.name,
  5800. url: data.Location,
  5801. uid: file.uid,
  5802. });
  5803. _this.imgChange1(null, null, type, itemTaskIndex);
  5804. } else if (type == 5) {
  5805. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5806. itemTaskIndex
  5807. ].homeworkList.push({
  5808. name: file.name,
  5809. url: data.Location,
  5810. uid: file.uid,
  5811. });
  5812. _this.imgChange1(null, null, type, itemTaskIndex);
  5813. }
  5814. console.log(data.Location);
  5815. }
  5816. });
  5817. }
  5818. },
  5819. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5820. // const loading = this.openLoading();
  5821. var file = event.target.files[0];
  5822. var credentials = {
  5823. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5824. secretAccessKey: "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",
  5825. }; //秘钥形式的登录上传
  5826. window.AWS.config.update(credentials);
  5827. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5828. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5829. var _this = this;
  5830. if (type == 3) {
  5831. var b = [
  5832. "DOC",
  5833. "DOCX",
  5834. "DOCM",
  5835. "DOTM",
  5836. "DOTX",
  5837. "PPTX",
  5838. "PPSX",
  5839. "PPT",
  5840. "PPS",
  5841. "PPTM",
  5842. "POTM",
  5843. "PPAM",
  5844. "POTX",
  5845. "PPSM",
  5846. ];
  5847. if (
  5848. b.indexOf(
  5849. file.name
  5850. .split(".")
  5851. [file.name.split(".").length - 1].toLocaleUpperCase()
  5852. ) != -1
  5853. ) {
  5854. if (file.size / 1024 / 1024 > 80) {
  5855. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5856. this.inputShow = true;
  5857. // var a = _this.$refs.upload1.uploadFiles;
  5858. // a.splice(a.length - 1, a.length);
  5859. // loading.close();
  5860. return;
  5861. }
  5862. } else if (
  5863. file.name
  5864. .split(".")
  5865. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5866. ) {
  5867. if (file.size / 1024 / 1024 > 80) {
  5868. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5869. this.inputShow = true;
  5870. // var a = _this.$refs.upload1.uploadFiles;
  5871. // a.splice(a.length - 1, a.length);
  5872. // loading.close();
  5873. return;
  5874. }
  5875. }
  5876. }
  5877. this.inputShow = false;
  5878. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5879. itemTaskIndex
  5880. ].progress = 0;
  5881. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5882. itemTaskIndex
  5883. ].proVisible = true;
  5884. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5885. itemTaskIndex
  5886. ].isFinishSize = 0;
  5887. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5888. itemTaskIndex
  5889. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5890. _this.$forceUpdate();
  5891. if (file) {
  5892. var params = {
  5893. Key:
  5894. file.name.split(".")[0] +
  5895. new Date().getTime() +
  5896. "." +
  5897. file.name.split(".")[file.name.split(".").length - 1],
  5898. ContentType: file.type,
  5899. Body: file,
  5900. "Access-Control-Allow-Credentials": "*",
  5901. ACL: "public-read",
  5902. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5903. var options = {
  5904. partSize: 2048 * 1024 * 1024,
  5905. queueSize: 2,
  5906. leavePartsOnError: true,
  5907. };
  5908. bucket
  5909. .upload(params, options)
  5910. .on("httpUploadProgress", function (evt) {
  5911. //这里可以写进度条
  5912. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5913. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5914. itemTaskIndex
  5915. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5916. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5917. itemTaskIndex
  5918. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5919. _this.$forceUpdate();
  5920. })
  5921. .send(function (err, data) {
  5922. // loading.close();
  5923. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5924. itemTaskIndex
  5925. ].progress = 100;
  5926. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5927. itemTaskIndex
  5928. ].isFinishSize =
  5929. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5930. itemTaskIndex
  5931. ].isAllSize;
  5932. _this.$forceUpdate();
  5933. setTimeout(() => {
  5934. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5935. itemTaskIndex
  5936. ].proVisible = false;
  5937. _this.$forceUpdate();
  5938. }, 1000);
  5939. _this.inputShow = true;
  5940. if (err) {
  5941. // var a = _this.$refs.upload1.uploadFiles;
  5942. // a.splice(a.length - 1, a.length);
  5943. _this.$message.error("上传失败");
  5944. } else {
  5945. if (type == 2 || type == 3) {
  5946. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5947. itemTaskIndex
  5948. ].chapterData.push({
  5949. name: file.name,
  5950. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5951. // itemTaskIndex
  5952. // ].chapterData.length+1),
  5953. url: data.Location,
  5954. uid: file.uid,
  5955. type: type,
  5956. text: string,
  5957. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5958. // itemTaskIndex
  5959. // ].chapterData.length + 1),
  5960. });
  5961. _this.imgChange1(null, null, type, itemTaskIndex);
  5962. } else if (type == 4) {
  5963. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5964. itemTaskIndex
  5965. ].fileList1.push({
  5966. name: file.name,
  5967. url: data.Location,
  5968. uid: file.uid,
  5969. });
  5970. _this.imgChange1(null, null, type, itemTaskIndex);
  5971. } else if (type == 5) {
  5972. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5973. itemTaskIndex
  5974. ].homeworkList.push({
  5975. name: file.name,
  5976. url: data.Location,
  5977. uid: file.uid,
  5978. });
  5979. _this.imgChange1(null, null, type, itemTaskIndex);
  5980. }
  5981. console.log(data.Location);
  5982. }
  5983. });
  5984. }
  5985. },
  5986. addunit() {
  5987. this.unitJson.push({
  5988. dyName: "", //单元标题
  5989. isUpdate: 1,
  5990. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  5991. chapterInfo: [
  5992. {
  5993. isread: false,
  5994. chapterid: this.guid(),
  5995. title: "",
  5996. courseName: "",
  5997. taskJson: [
  5998. {
  5999. task: "",
  6000. taskDetail: "",
  6001. chapterData: [],
  6002. toolText: "",
  6003. toolChoose: [
  6004. {
  6005. tool: [],
  6006. toolDetail: "",
  6007. toolType: 0,
  6008. askCount: 1,
  6009. askTitle: "",
  6010. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6011. },
  6012. ],
  6013. isShowTools: false,
  6014. askCount: 1,
  6015. isFold: 1,
  6016. askTitle: "",
  6017. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6018. checkJson: [{ checkCount: [], checkPerent: [] }],
  6019. homeworkList: [],
  6020. },
  6021. ],
  6022. itemCount: 1,
  6023. fileList1: [],
  6024. video: [],
  6025. testData: [],
  6026. pData: [],
  6027. templateArray: [],
  6028. },
  6029. ],
  6030. });
  6031. this.addindex = this.unitJson.length - 1;
  6032. setTimeout(() => {
  6033. this.unitIndex = this.unitJson.length - 1;
  6034. setTimeout(() => {
  6035. console.log(this.$refs.dyInput)
  6036. this.$refs.dyInput[0].focus()
  6037. }, 100);
  6038. this.unitSet(this.unitIndex);
  6039. }, 0);
  6040. },
  6041. addToolFun(itemTaskIndex) {
  6042. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6043. itemTaskIndex
  6044. ].toolChoose.push({
  6045. tool: [],
  6046. toolDetail: "",
  6047. toolType: 0,
  6048. askCount: 1,
  6049. askTitle: "",
  6050. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6051. });
  6052. },
  6053. addTaskBorder() {
  6054. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6055. task: "",
  6056. taskDetail: "",
  6057. chapterData: [],
  6058. toolText: "",
  6059. toolChoose: [
  6060. {
  6061. tool: [],
  6062. toolDetail: "",
  6063. toolType: 0,
  6064. askCount: 1,
  6065. askTitle: "",
  6066. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6067. },
  6068. ],
  6069. isShowTools: false,
  6070. askCount: 1,
  6071. isFold: 1,//任务收起状态
  6072. askTitle: "",
  6073. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6074. checkJson: [{ checkCount: [], checkPerent: [] }],
  6075. homeworkList: [],
  6076. });
  6077. setTimeout(() => {
  6078. this.checkEva(this.checkId);
  6079. setTimeout(() => {
  6080. this.checkEva(this.checkId);
  6081. }, 100);
  6082. }, 100);
  6083. },
  6084. add(e, i) {
  6085. var el = e.currentTarget;
  6086. el.getElementsByTagName("input")[0].click();
  6087. },
  6088. fold(i, e) {
  6089. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  6090. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6091. } else {
  6092. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6093. }
  6094. },
  6095. fold2(i) {
  6096. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6097. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6098. } else {
  6099. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6100. }
  6101. this.$forceUpdate();
  6102. },
  6103. foldEva(i) {
  6104. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  6105. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = false;
  6106. } else {
  6107. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = true;
  6108. setTimeout(() => {
  6109. this.checkEva(this.checkId);
  6110. setTimeout(() => {
  6111. this.checkEva(this.checkId);
  6112. }, 500);
  6113. }, 0);
  6114. }
  6115. this.$forceUpdate();
  6116. },
  6117. foldC(i) {
  6118. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6120. } else {
  6121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6122. }
  6123. this.$forceUpdate();
  6124. },
  6125. fold3(i, ti) {
  6126. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6127. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6128. } else {
  6129. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6130. }
  6131. this.$forceUpdate();
  6132. },
  6133. deleteHomeworkBox(unitIndex, index, i) {
  6134. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6135. this.taskCount
  6136. ].homeworkList.splice(i, 1);
  6137. },
  6138. getStudent() {
  6139. let params = {
  6140. oid: this.oid,
  6141. cu: "",
  6142. cn: this.searchPeople,
  6143. };
  6144. this.ajax
  6145. .get(this.$store.state.api + "selectStudentAdd", params)
  6146. .then((res) => {
  6147. this.studentJuri = res.data[0];
  6148. })
  6149. .catch((err) => {
  6150. this.isLoading = false;
  6151. console.error(err);
  6152. });
  6153. },
  6154. getTeacher() {
  6155. let params = {
  6156. oid:
  6157. this.org && this.org != "undefined" && this.org != "null"
  6158. ? this.org
  6159. : this.oid,
  6160. cu: "",
  6161. cn: this.searchTN,
  6162. };
  6163. this.ajax
  6164. .get(
  6165. this.$store.state.api +
  6166. (this.org && this.org != "undefined" && this.org != "null"
  6167. ? "selectTeacherAddOrg"
  6168. : "selectTeacherAdd"),
  6169. params
  6170. )
  6171. .then((res) => {
  6172. let teacherJuri = res.data[0];
  6173. for (var i = 0; i < teacherJuri.length; i++) {
  6174. if (teacherJuri[i].userid == this.userid) {
  6175. teacherJuri.splice(i, 1);
  6176. break;
  6177. }
  6178. }
  6179. this.teacherJuri = teacherJuri;
  6180. })
  6181. .catch((err) => {
  6182. console.error(err);
  6183. });
  6184. },
  6185. searchStudent() {
  6186. this.getStudent();
  6187. },
  6188. selectGrage() {
  6189. let params = {
  6190. oid: this.oid,
  6191. };
  6192. this.ajax
  6193. .get(this.$store.state.api + "selectGrageBySchool", params)
  6194. .then((res) => {
  6195. this.gradeList = res.data[0];
  6196. })
  6197. .catch((err) => {
  6198. this.isLoading = false;
  6199. console.error(err);
  6200. });
  6201. },
  6202. //获取班级列表
  6203. getClass() {
  6204. let params = {
  6205. oid: this.oid,
  6206. gid: this.gradeId,
  6207. cn: this.classSearch,
  6208. };
  6209. this.ajax
  6210. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6211. .then((res) => {
  6212. if (!this.grade.length) {
  6213. this.grade = res.data[0];
  6214. }
  6215. this.grade2 = res.data[0];
  6216. this.classJuri = res.data[0];
  6217. let _check = []
  6218. let _check2 = []
  6219. for (var i = 0; i < this.grade2.length; i++) {
  6220. var gid = this.grade2[i].id
  6221. _check.push(gid)
  6222. }
  6223. for (var i = 0; i < this.checkboxList2.length; i++) {
  6224. var _id = this.checkboxList2[i]
  6225. if (_check.indexOf(_id) !== -1) {
  6226. _check2.push(_id)
  6227. }
  6228. }
  6229. this.checkAll = _check2.length === _check.length;
  6230. })
  6231. .catch((err) => {
  6232. this.isLoading = false;
  6233. console.error(err);
  6234. });
  6235. },
  6236. CourseType2Change(val) {
  6237. this.pTypeCheck = [];
  6238. for (var i = 0; i < this.CourseType2.length; i++) {
  6239. let typeA = this.CourseType2[i];
  6240. if (val.indexOf(typeA.name) != -1) {
  6241. this.pTypeCheck.push(...typeA.id);
  6242. }
  6243. }
  6244. },
  6245. getChapterData(e, i, j, ic, type) {
  6246. e.stopPropagation();
  6247. this.updataC = true;
  6248. this.icc = ic;
  6249. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6250. console.log("还不能下载图片喔");
  6251. }
  6252. },
  6253. deleteChapterData(e, i, j, ic, taskI) {
  6254. e.stopPropagation();
  6255. let _this = this;
  6256. _this
  6257. .$confirm("确定删除此项?", "提示", {
  6258. confirmButtonText: "确定",
  6259. cancelButtonText: "取消",
  6260. type: "warning",
  6261. })
  6262. .then(() => {
  6263. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6264. })
  6265. .catch(() => {
  6266. return;
  6267. });
  6268. },
  6269. updataVideoT(e, i, j, ic) {
  6270. // e.stopPropagation();
  6271. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  6272. // ic
  6273. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6274. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6275. ic
  6276. ].name;
  6277. this.taskCount = j;
  6278. this.lineCount = ic;
  6279. this.dialogVisibleupdataVideoT = true;
  6280. this.$forceUpdate();
  6281. },
  6282. updataVideoC() {
  6283. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6284. this.dialogVisibleupdataVideoT = false;
  6285. this.$forceUpdate();
  6286. },
  6287. upCd(e, i, j, taskCount, ic) {
  6288. e.stopPropagation();
  6289. if (ic == 0) {
  6290. return;
  6291. }
  6292. var a =
  6293. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6294. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6295. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6296. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6297. this.$forceUpdate();
  6298. },
  6299. downCd(e, i, j, taskCount, ic) {
  6300. e.stopPropagation();
  6301. if (
  6302. ic ==
  6303. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6304. 1
  6305. ) {
  6306. return;
  6307. }
  6308. var a =
  6309. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6310. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6311. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6312. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6313. this.$forceUpdate();
  6314. },
  6315. upTool(e, i, j, tooli){
  6316. e.stopPropagation();
  6317. if (tooli == 0) {
  6318. return;
  6319. }
  6320. this.$confirm(
  6321. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6322. "提示",
  6323. {
  6324. confirmButtonText: "确定",
  6325. cancelButtonText: "取消",
  6326. type: "warning",
  6327. }
  6328. )
  6329. .then(() => {
  6330. var a =
  6331. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6332. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6333. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6334. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6335. this.$forceUpdate()
  6336. })
  6337. .catch(() => {
  6338. return;
  6339. });
  6340. },
  6341. downTool(e, i, j, tooli){
  6342. e.stopPropagation();
  6343. if ( tooli ==
  6344. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6345. 1) {
  6346. return;
  6347. }
  6348. this.$confirm(
  6349. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6350. "提示",
  6351. {
  6352. confirmButtonText: "确定",
  6353. cancelButtonText: "取消",
  6354. type: "warning",
  6355. }
  6356. )
  6357. .then(() => {
  6358. var a =
  6359. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6360. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6361. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6362. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6363. this.$forceUpdate()
  6364. })
  6365. .catch(() => {
  6366. return;
  6367. });
  6368. },
  6369. addWork() {
  6370. let cPan = 1;
  6371. for (var i = 0; i < this.unitJson.length; i++) {
  6372. for (
  6373. var j = 0;
  6374. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6375. j++
  6376. ) {
  6377. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6378. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6379. if (
  6380. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6381. ) {
  6382. for (
  6383. var z = 0;
  6384. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6385. z++
  6386. ) {
  6387. if (
  6388. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6389. .length
  6390. ) {
  6391. this.$message.error("请把工具添加完整");
  6392. cPan = 2;
  6393. break;
  6394. }
  6395. }
  6396. }
  6397. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6398. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6399. i
  6400. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6401. return ele.value != "";
  6402. });
  6403. }
  6404. }
  6405. }
  6406. this.inputShow = true;
  6407. if (cPan == 2) {
  6408. this.steps--;
  6409. return;
  6410. }
  6411. for (var i = 0; i < this.unitJson.length; i++) {
  6412. delete this.unitJson[i].isUpdate;
  6413. }
  6414. let params = [
  6415. {
  6416. uid: this.userid,
  6417. title: this.courseName.replace(/%/g, "%25"),
  6418. brief: this.courseText.replace(/%/g, "%25"),
  6419. cover:
  6420. this.cover.length > 0
  6421. ? JSON.stringify(this.cover)
  6422. : JSON.stringify([
  6423. {
  6424. name: "noBanner.jpg",
  6425. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6426. uid: 1656409780264,
  6427. status: "success",
  6428. },
  6429. ]),
  6430. evaId: this.evalua,
  6431. astudent:
  6432. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6433. see: this.isTeacherSee == true ? 1 : 0,
  6434. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6435. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6436. courseType: JSON.stringify(this.courseTypeId),
  6437. ateacher:
  6438. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6439. inviteCode: JSON.stringify(this.inviteCode),
  6440. },
  6441. ];
  6442. this.ajax
  6443. .post(this.$store.state.api + "addWorkNew2", params)
  6444. .then((res) => {
  6445. console.log(this.steps);
  6446. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6447. this.$message({
  6448. message: "新增成功",
  6449. type: "success",
  6450. });
  6451. }
  6452. this.number = res.data.ordernumber;
  6453. this.courseId = res.data.courseId;
  6454. this.cid = res.data.courseId;
  6455. this.courseUserid = this.userid;
  6456. this.islogin = true;
  6457. })
  6458. .catch((err) => {
  6459. this.$message.error("网络不佳");
  6460. console.error(err);
  6461. });
  6462. },
  6463. goCourse() {
  6464. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  6465. },
  6466. updateWork2() {
  6467. let _unitIndex = this.unitIndex;
  6468. let cPan = 1;
  6469. for (
  6470. var j = 0;
  6471. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6472. j++
  6473. ) {
  6474. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6475. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6476. j
  6477. ].proVisible2 = false;
  6478. if (
  6479. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6480. .length > 1
  6481. ) {
  6482. for (
  6483. var z = 0;
  6484. z <
  6485. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6486. .length;
  6487. z++
  6488. ) {
  6489. if (
  6490. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6491. z
  6492. ].tool.length
  6493. ) {
  6494. this.$message.error("请把工具添加完整");
  6495. cPan = 2;
  6496. break;
  6497. }
  6498. }
  6499. }
  6500. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6501. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6502. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6503. (ele) => {
  6504. return ele.value != "";
  6505. }
  6506. );
  6507. }
  6508. }
  6509. this.inputShow = true;
  6510. if (cPan == 2) {
  6511. this.steps--;
  6512. return;
  6513. }
  6514. let params = [
  6515. {
  6516. cid: this.cid,
  6517. chapters: JSON.stringify(this.unitJson),
  6518. uid: this.userid,
  6519. unitIndex: _unitIndex,
  6520. },
  6521. ];
  6522. this.ajax
  6523. .post(this.$store.state.api + "updateWorkNew4", params)
  6524. .then((res) => {
  6525. this.$message({
  6526. message: "修改成功",
  6527. type: "success",
  6528. });
  6529. this.courseId = this.cid;
  6530. })
  6531. .catch((err) => {
  6532. this.$message.error("网络不佳");
  6533. console.error(err);
  6534. });
  6535. },
  6536. updateWork() {
  6537. let cPan = 1;
  6538. for (var i = 0; i < this.unitJson.length; i++) {
  6539. for (
  6540. var j = 0;
  6541. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6542. j++
  6543. ) {
  6544. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6545. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6546. if (
  6547. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6548. ) {
  6549. for (
  6550. var z = 0;
  6551. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6552. z++
  6553. ) {
  6554. if (
  6555. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6556. .length
  6557. ) {
  6558. this.$message.error("请把工具添加完整");
  6559. cPan = 2;
  6560. break;
  6561. }
  6562. }
  6563. }
  6564. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6565. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6566. i
  6567. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6568. return ele.value != "";
  6569. });
  6570. }
  6571. }
  6572. }
  6573. this.inputShow = true;
  6574. if (cPan == 2) {
  6575. this.steps--;
  6576. return;
  6577. }
  6578. for (var i = 0; i < this.unitJson.length; i++) {
  6579. delete this.unitJson[i].isUpdate;
  6580. }
  6581. let params = [
  6582. {
  6583. cid: this.cid,
  6584. title: this.courseName.replace(/%/g, "%25"),
  6585. brief: this.courseText.replace(/%/g, "%25"),
  6586. cover:
  6587. this.cover.length > 0
  6588. ? JSON.stringify(this.cover)
  6589. : JSON.stringify([
  6590. {
  6591. name: "noBanner.jpg",
  6592. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6593. uid: 1656409780264,
  6594. status: "success",
  6595. },
  6596. ]),
  6597. evaId: this.evalua,
  6598. astudent:
  6599. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6600. see: this.isTeacherSee == true ? 1 : 0,
  6601. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6602. template: this.myWord != "undefined" ? this.myWord : [],
  6603. uid: this.userid,
  6604. courseType: JSON.stringify(this.courseTypeId),
  6605. ateacher:
  6606. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6607. inviteCode: JSON.stringify(this.inviteCode),
  6608. },
  6609. ];
  6610. this.ajax
  6611. .post(this.$store.state.api + "updateWorkNew2", params)
  6612. .then((res) => {
  6613. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6614. if (this.cidType == 1) {
  6615. this.$message({
  6616. message: "修改成功",
  6617. type: "success",
  6618. });
  6619. } else {
  6620. this.$message({
  6621. message: "新增成功",
  6622. type: "success",
  6623. });
  6624. }
  6625. }
  6626. this.number = this.nbOrder;
  6627. this.courseId = this.cid;
  6628. })
  6629. .catch((err) => {
  6630. this.$message.error("网络不佳");
  6631. console.error(err);
  6632. });
  6633. },
  6634. guid() {
  6635. var _num,
  6636. i,
  6637. _guid = "";
  6638. for (i = 0; i < 32; i++) {
  6639. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6640. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6641. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6642. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6643. _guid += "-";
  6644. }
  6645. }
  6646. return _guid;
  6647. },
  6648. insertWord() {
  6649. this.dialogVisible1 = true;
  6650. this.updateBoolean2 = false;
  6651. this.tTitle = "";
  6652. this.tdetail = "";
  6653. },
  6654. addWord() {
  6655. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6656. name: this.tTitle,
  6657. content: this.tdetail,
  6658. uid: this.guid(),
  6659. });
  6660. this.dialogVisible1 = false;
  6661. },
  6662. upWord() { },
  6663. selectWord(uid, i, c) {
  6664. this.dialogVisible1 = true;
  6665. this.updateBoolean2 = true;
  6666. if (
  6667. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6668. ) {
  6669. this.tTitle =
  6670. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6671. this.tdetail =
  6672. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6673. }
  6674. },
  6675. isAddPP() {
  6676. if (this.checkboxList.length > 0) {
  6677. this.$message({
  6678. message: "添加成功",
  6679. type: "success",
  6680. });
  6681. this.dialogVisible3 = false;
  6682. } else {
  6683. this.$message({
  6684. message: "请添加课程成员",
  6685. type: "error",
  6686. });
  6687. }
  6688. },
  6689. isAddClass() {
  6690. this.dialogVisibleClass = false;
  6691. },
  6692. isAddPPTeacher() {
  6693. this.dialogVisibleMember = false;
  6694. this.setMan();
  6695. },
  6696. getTemplate() {
  6697. this.ajax
  6698. .get(this.$store.state.api + "getCourseTemplateT", "")
  6699. .then((res) => {
  6700. this.templateArray = res.data[0];
  6701. this.getTemplateOid();
  6702. this.$forceUpdate();
  6703. })
  6704. .catch((err) => { });
  6705. },
  6706. getTemplateOid() {
  6707. let params = {
  6708. oid: this.oid,
  6709. };
  6710. this.ajax
  6711. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6712. .then((res) => {
  6713. if (res.data[0].length) {
  6714. this.templateArray = [...res.data[0], ...this.templateArray];
  6715. }
  6716. this.getTemplateOrg();
  6717. this.$forceUpdate();
  6718. })
  6719. .catch((err) => { });
  6720. },
  6721. getTemplateOrg() {
  6722. let params = {
  6723. oid: this.org,
  6724. };
  6725. this.ajax
  6726. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6727. .then((res) => {
  6728. if (res.data[0].length) {
  6729. this.templateArray = [...res.data[0], ...this.templateArray];
  6730. }
  6731. this.$forceUpdate();
  6732. })
  6733. .catch((err) => { });
  6734. },
  6735. clearChoose() {
  6736. this.clearArray.splice(this.templateC.id, 1);
  6737. this.dialogVisible2 = false;
  6738. },
  6739. clearAttText() {
  6740. this.AttText = {
  6741. title: "",
  6742. text: "",
  6743. };
  6744. this.dialogVisible6 = false;
  6745. },
  6746. clearLine() {
  6747. this.line = "";
  6748. this.dialogVisible7 = false;
  6749. },
  6750. openTemplate(){
  6751. this.ctJson = {}
  6752. this.templateDialog = true
  6753. },
  6754. checkctJson(json){
  6755. if(this.ctJson.id == json.id){
  6756. this.ctJson = {}
  6757. }else{
  6758. this.ctJson = json
  6759. }
  6760. },
  6761. addTemplate(res){
  6762. let _this = this;
  6763. let _res = []
  6764. if(res.id == 1){
  6765. _res = [
  6766. {
  6767. dyName: "", //单元标题
  6768. easy: 1,
  6769. chapterInfo: [
  6770. {
  6771. isread: false,
  6772. chapterid: this.guid(),
  6773. title: "",
  6774. courseName: "",
  6775. taskJson: [
  6776. {
  6777. task: "",
  6778. taskDetail: "",
  6779. chapterData: [],
  6780. toolText: "",
  6781. toolChoose: [
  6782. {
  6783. tool: [],
  6784. toolDetail: "",
  6785. toolType: 0,
  6786. askCount: 1,
  6787. askTitle: "",
  6788. askJson: [
  6789. { askstitle: "", askItem: 1, checkList: [] },
  6790. ],
  6791. },
  6792. ],
  6793. isShowTools: false,
  6794. askCount: 1,
  6795. isFold: 1,
  6796. askTitle: "",
  6797. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6798. checkJson: [{ checkCount: [], checkPerent: [] }],
  6799. homeworkList: [],
  6800. },
  6801. ],
  6802. itemCount: 1,
  6803. fileList1: [],
  6804. video: [],
  6805. testData: [],
  6806. pData: [],
  6807. templateArray: [],
  6808. },
  6809. ],
  6810. },
  6811. ];
  6812. this.updateCourseState(1)
  6813. }else if(res.id == 2){
  6814. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6815. if (!iframe) {
  6816. this.$message.error("请使用AI共创生成");
  6817. return;
  6818. }
  6819. let copyData = iframe.contentWindow.copyData;
  6820. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6821. this.$message.error("请使用AI共创生成");
  6822. return;
  6823. }
  6824. let stageData = copyData.stageData;
  6825. for (var i = 0; i < stageData.length; i++) {
  6826. res.push({
  6827. dyName: stageData[i], //单元标题
  6828. chapterInfo: [
  6829. {
  6830. isread: false,
  6831. chapterid: this.guid(),
  6832. title: "",
  6833. courseName: "",
  6834. taskJson: [
  6835. {
  6836. task: "",
  6837. taskDetail: "",
  6838. chapterData: [],
  6839. toolText: "",
  6840. toolChoose: [
  6841. {
  6842. tool: [],
  6843. toolDetail: "",
  6844. toolType: 0,
  6845. askCount: 1,
  6846. askTitle: "",
  6847. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6848. },
  6849. ],
  6850. isShowTools: false,
  6851. askCount: 1,
  6852. isFold: 1,
  6853. askTitle: "",
  6854. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6855. checkJson: [{ checkCount: [], checkPerent: [] }],
  6856. homeworkList: [],
  6857. },
  6858. ],
  6859. itemCount: 1,
  6860. fileList1: [],
  6861. video: [],
  6862. testData: [],
  6863. pData: [],
  6864. templateArray: [],
  6865. },
  6866. ],
  6867. });
  6868. }
  6869. this.updateCourseState(1)
  6870. }else if(!Object.keys(res).length){
  6871. this.$message.error("请选择模板")
  6872. retrun;
  6873. }else{
  6874. _res = JSON.parse(res.chapters)
  6875. this.updateCourseState(parseInt(res.state))
  6876. }
  6877. _this
  6878. .$confirm("确定选择此模板吗?修改课程时无法重置课程模板。", "提示", {
  6879. confirmButtonText: "确定",
  6880. cancelButtonText: "取消",
  6881. type: "warning",
  6882. })
  6883. .then(() => {
  6884. _this.unitJson = _res;
  6885. _this.updateWork();
  6886. // _this.steps++;
  6887. _this.templateDialog = false
  6888. setTimeout(() => {
  6889. this.checkEva(this.checkId);
  6890. setTimeout(() => {
  6891. this.checkEva(this.checkId);
  6892. }, 100);
  6893. }, 1000);
  6894. })
  6895. .catch(() => {
  6896. return;
  6897. });
  6898. },
  6899. checkTemplate(res) {
  6900. let _this = this;
  6901. _this
  6902. .$confirm("确定选择此模板吗?修改课程时无法重置课程模板。", "提示", {
  6903. confirmButtonText: "确定",
  6904. cancelButtonText: "取消",
  6905. type: "warning",
  6906. })
  6907. .then(() => {
  6908. _this.unitJson = JSON.parse(res.chapters);
  6909. _this.steps++;
  6910. setTimeout(() => {
  6911. this.checkEva(this.checkId);
  6912. setTimeout(() => {
  6913. this.checkEva(this.checkId);
  6914. }, 100);
  6915. }, 1000);
  6916. })
  6917. .catch(() => {
  6918. return;
  6919. });
  6920. },
  6921. checkTemplate1(w) {
  6922. this.steps++;
  6923. },
  6924. checkTemplate2() {
  6925. let _this = this;
  6926. _this
  6927. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  6928. confirmButtonText: "确定",
  6929. cancelButtonText: "取消",
  6930. type: "warning",
  6931. })
  6932. .then(() => {
  6933. _this.unitIndex = 0;
  6934. _this.unitJson = [
  6935. {
  6936. dyName: "", //单元标题
  6937. chapterInfo: [
  6938. {
  6939. isread: false,
  6940. chapterid: this.guid(),
  6941. title: "",
  6942. courseName: "",
  6943. taskJson: [
  6944. {
  6945. task: "",
  6946. taskDetail: "",
  6947. chapterData: [],
  6948. toolText: "",
  6949. toolChoose: [
  6950. {
  6951. tool: [],
  6952. toolDetail: "",
  6953. toolType: 0,
  6954. askCount: 1,
  6955. askTitle: "",
  6956. askJson: [
  6957. { askstitle: "", askItem: 1, checkList: [] },
  6958. ],
  6959. },
  6960. ],
  6961. isShowTools: false,
  6962. askCount: 1,
  6963. isFold: 1,
  6964. askTitle: "",
  6965. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6966. checkJson: [{ checkCount: [], checkPerent: [] }],
  6967. homeworkList: [],
  6968. },
  6969. ],
  6970. itemCount: 1,
  6971. fileList1: [],
  6972. video: [],
  6973. testData: [],
  6974. pData: [],
  6975. templateArray: [],
  6976. },
  6977. ],
  6978. },
  6979. ];
  6980. this.steps++;
  6981. setTimeout(() => {
  6982. this.checkEva(this.checkId);
  6983. setTimeout(() => {
  6984. this.checkEva(this.checkId);
  6985. }, 100);
  6986. }, 1000);
  6987. this.updateWork();
  6988. })
  6989. .catch(() => {
  6990. return;
  6991. });
  6992. },
  6993. checkTemplate3() {
  6994. let _this = this;
  6995. _this
  6996. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  6997. confirmButtonText: "确定",
  6998. cancelButtonText: "取消",
  6999. type: "warning",
  7000. })
  7001. .then(() => {
  7002. _this.unitIndex = 0;
  7003. _this.unitJson = [
  7004. {
  7005. dyName: "", //单元标题
  7006. easy: 1,
  7007. chapterInfo: [
  7008. {
  7009. isread: false,
  7010. chapterid: this.guid(),
  7011. title: "",
  7012. courseName: "",
  7013. taskJson: [
  7014. {
  7015. task: "",
  7016. taskDetail: "",
  7017. chapterData: [],
  7018. toolText: "",
  7019. toolChoose: [
  7020. {
  7021. tool: [],
  7022. toolDetail: "",
  7023. toolType: 0,
  7024. askCount: 1,
  7025. askTitle: "",
  7026. askJson: [
  7027. { askstitle: "", askItem: 1, checkList: [] },
  7028. ],
  7029. },
  7030. ],
  7031. isShowTools: false,
  7032. askCount: 1,
  7033. isFold: 1,
  7034. askTitle: "",
  7035. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7036. checkJson: [{ checkCount: [], checkPerent: [] }],
  7037. homeworkList: [],
  7038. },
  7039. ],
  7040. itemCount: 1,
  7041. fileList1: [],
  7042. video: [],
  7043. testData: [],
  7044. pData: [],
  7045. templateArray: [],
  7046. },
  7047. ],
  7048. },
  7049. ];
  7050. // this.steps++;
  7051. this.updateWork();
  7052. })
  7053. .catch(() => {
  7054. return;
  7055. });
  7056. },
  7057. checkTemplate4() {
  7058. let _this = this;
  7059. _this
  7060. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7061. confirmButtonText: "确定",
  7062. cancelButtonText: "取消",
  7063. type: "warning",
  7064. })
  7065. .then(() => {
  7066. _this.unitIndex = 0;
  7067. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7068. this.steps++;
  7069. this.updateWork();
  7070. })
  7071. .catch(() => {
  7072. return;
  7073. });
  7074. },
  7075. wordNext() {
  7076. this.dialogVisible2 = false;
  7077. },
  7078. isAddOrUpdateAttText() {
  7079. if (this.AttTextType == 0) {
  7080. this.addAttTextMessage();
  7081. } else {
  7082. this.updateAttText();
  7083. }
  7084. },
  7085. isAddOrUpdateLine() {
  7086. if (!this.lineTitle) {
  7087. this.$message.error("请填写链接标题");
  7088. return;
  7089. }
  7090. if (this.lineType == 0) {
  7091. this.addLine();
  7092. } else {
  7093. this.updateLine();
  7094. }
  7095. },
  7096. addAttTextMessage() {
  7097. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7098. this.taskCount
  7099. ].chapterData.push({
  7100. name: this.AttText.title,
  7101. url: this.AttText.text,
  7102. type: 6,
  7103. });
  7104. this.imgChange1(null, null, 6, this.taskCount);
  7105. this.dialogVisible6 = false;
  7106. },
  7107. selectAttText(itemTaskIndex, i) {
  7108. this.AttText.title =
  7109. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7110. itemTaskIndex
  7111. ].chapterData[i].name;
  7112. this.AttText.text =
  7113. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7114. itemTaskIndex
  7115. ].chapterData[i].url;
  7116. this.taskCount = itemTaskIndex;
  7117. this.AttTextIndex = i;
  7118. this.AttTextType = 1;
  7119. this.dialogVisible6 = true;
  7120. },
  7121. updateAttText() {
  7122. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7123. this.taskCount
  7124. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7125. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7126. this.taskCount
  7127. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7128. this.dialogVisible6 = false;
  7129. },
  7130. addLine() {
  7131. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7132. this.lineCount
  7133. ].chapterData.push({
  7134. name: "链接",
  7135. title: this.lineTitle,
  7136. url: this.line,
  7137. type: 8,
  7138. });
  7139. this.imgChange1(null, null, 8, this.lineCount);
  7140. this.dialogVisible7 = false;
  7141. },
  7142. selectLine(itemTaskIndex, i) {
  7143. this.line =
  7144. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7145. itemTaskIndex
  7146. ].chapterData[i].url;
  7147. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7148. itemTaskIndex
  7149. ].chapterData[i].title
  7150. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7151. .chapterData[i].title
  7152. : "";
  7153. this.taskCount = itemTaskIndex;
  7154. this.lineCount = i;
  7155. this.lineType = 1;
  7156. this.dialogVisible7 = true;
  7157. },
  7158. openUpdateSource(itemTaskIndex, i) {
  7159. this.sourceData = {}
  7160. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7161. this.sourceData[source.id] = {}
  7162. this.sourceData[source.id].name = source.title
  7163. this.sourceData[source.id].url = source.url
  7164. this.dialogVisibleSource = true;
  7165. this.updateSourcePan = true;
  7166. this.taskCount = itemTaskIndex;
  7167. this.lineCount = i;
  7168. },
  7169. updateLine() {
  7170. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7171. this.taskCount
  7172. ].chapterData[this.lineCount].url = this.line;
  7173. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7174. this.taskCount
  7175. ].chapterData[this.lineCount].title = this.lineTitle;
  7176. this.dialogVisible7 = false;
  7177. },
  7178. addPP() {
  7179. this.dialogVisible3 = true;
  7180. },
  7181. goTo(path) {
  7182. this.$router.push(path);
  7183. },
  7184. openTools(itemTaskIndex, i, toolIndex) {
  7185. this.toolIndex = toolIndex;
  7186. this.taskCount = itemTaskIndex;
  7187. if (i == 4) {
  7188. if (toolIndex == null) {
  7189. var a =
  7190. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7191. .chapterData;
  7192. for (var i = 0; i < a.length; i++) {
  7193. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7194. this.askJson =
  7195. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7196. itemTaskIndex
  7197. ].chapterData[i].askJson;
  7198. }
  7199. }
  7200. } else {
  7201. this.askJson = JSON.parse(
  7202. JSON.stringify(
  7203. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7204. itemTaskIndex
  7205. ].toolChoose[toolIndex]
  7206. )
  7207. );
  7208. }
  7209. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7210. this.dialogVisible5 = true;
  7211. } else if (i == 45) {
  7212. if (
  7213. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7214. .toolChoose[toolIndex].testJson
  7215. ) {
  7216. this.testJson = JSON.parse(
  7217. JSON.stringify(
  7218. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7219. itemTaskIndex
  7220. ].toolChoose[toolIndex].testJson
  7221. )
  7222. );
  7223. } else {
  7224. var testJson = {
  7225. testCount: 1,
  7226. testTitle: "",
  7227. testJson: [
  7228. {
  7229. teststitle: "",
  7230. testItem: 1,
  7231. checkList: [],
  7232. timuList: [],
  7233. answer: [],
  7234. type: "1",
  7235. },
  7236. ],
  7237. };
  7238. this.testJson = testJson;
  7239. }
  7240. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7241. this.dialogVisibleChoice = true;
  7242. } else if (i == 47) {
  7243. if (
  7244. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7245. .toolChoose[toolIndex].sentenceList
  7246. ) {
  7247. this.sentenceList = JSON.parse(
  7248. JSON.stringify(
  7249. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7250. itemTaskIndex
  7251. ].toolChoose[toolIndex].sentenceList
  7252. )
  7253. );
  7254. } else {
  7255. var sentenceList = [
  7256. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7257. ];
  7258. this.sentenceList = sentenceList;
  7259. }
  7260. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7261. this.dialogVisibleSentence = true;
  7262. } else if (i == 48) {
  7263. if (
  7264. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7265. .toolChoose[toolIndex].tableJson
  7266. ) {
  7267. this.tableJson = JSON.parse(
  7268. JSON.stringify(
  7269. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7270. itemTaskIndex
  7271. ].toolChoose[toolIndex].tableJson
  7272. )
  7273. );
  7274. } else {
  7275. var tableJson = { text: "" };
  7276. this.tableJson = tableJson;
  7277. }
  7278. this.dialogVisibleTable = true;
  7279. } else if (i == 52) {
  7280. if (
  7281. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7282. .toolChoose[toolIndex].wordJson
  7283. ) {
  7284. this.wordJson = JSON.parse(
  7285. JSON.stringify(
  7286. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7287. itemTaskIndex
  7288. ].toolChoose[toolIndex].wordJson
  7289. )
  7290. );
  7291. } else {
  7292. var wordJson = { text: "" };
  7293. this.wordJson = wordJson;
  7294. }
  7295. this.dialogVisibleWord = true;
  7296. // else if (i == 50) {
  7297. // if (
  7298. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7299. // .toolChoose[toolIndex].uploadJson
  7300. // ) {
  7301. // this.uploadJson = JSON.parse(
  7302. // JSON.stringify(
  7303. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7304. // itemTaskIndex
  7305. // ].toolChoose[toolIndex].uploadJson
  7306. // )
  7307. // );
  7308. // } else {
  7309. // var uploadJson = [];
  7310. // this.uploadJson = uploadJson;
  7311. // }
  7312. // this.dialogVisibleMoreUpload = true;
  7313. // }
  7314. } else if (i == 10) {
  7315. if (
  7316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7317. .toolChoose[toolIndex].preTime
  7318. ) {
  7319. this.preTime = JSON.parse(
  7320. JSON.stringify(
  7321. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7322. itemTaskIndex
  7323. ].toolChoose[toolIndex].preTime
  7324. )
  7325. );
  7326. } else {
  7327. var preTime = 0;
  7328. this.preTime = preTime;
  7329. }
  7330. this.dialogVisiblePreTime = true;
  7331. } else if (i == 49) {
  7332. if (
  7333. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7334. .toolChoose[toolIndex].groupJson
  7335. ) {
  7336. this.groupJson = JSON.parse(
  7337. JSON.stringify(
  7338. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7339. itemTaskIndex
  7340. ].toolChoose[toolIndex].groupJson
  7341. )
  7342. );
  7343. } else {
  7344. var groupJson = {
  7345. group: [{ name: "第1组" }],
  7346. number: undefined,
  7347. islock: 1,
  7348. };
  7349. this.groupJson = groupJson;
  7350. }
  7351. this.dialogVisibleGroup = true;
  7352. } else if (i == 62) {
  7353. if (
  7354. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7355. .toolChoose[toolIndex].videoJson
  7356. ) {
  7357. this.videoJson = JSON.parse(
  7358. JSON.stringify(
  7359. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7360. itemTaskIndex
  7361. ].toolChoose[toolIndex].videoJson
  7362. )
  7363. );
  7364. } else {
  7365. var videoJson = {
  7366. video: "",
  7367. setting: [],
  7368. };
  7369. this.videoJson = videoJson;
  7370. }
  7371. this.dialogVisibleVideo = true;
  7372. } else if (i == 15) {
  7373. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7374. itemTaskIndex
  7375. ].toolChoose[toolIndex].answerQ
  7376. ? JSON.parse(
  7377. JSON.stringify(
  7378. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7379. itemTaskIndex
  7380. ].toolChoose[toolIndex].answerQ
  7381. )
  7382. )
  7383. : "";
  7384. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7385. this.dialogVisible8 = true;
  7386. } else if (i == 40) {
  7387. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7388. itemTaskIndex
  7389. ].toolChoose[toolIndex].rateJson
  7390. ? JSON.parse(
  7391. JSON.stringify(
  7392. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7393. itemTaskIndex
  7394. ].toolChoose[toolIndex].rateJson
  7395. )
  7396. )
  7397. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7398. this.selectSteps = 1;
  7399. this.dialogVisibleRate = true;
  7400. } else if (i == 42) {
  7401. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7402. itemTaskIndex
  7403. ].toolChoose[toolIndex].answerQ
  7404. ? JSON.parse(
  7405. JSON.stringify(
  7406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7407. itemTaskIndex
  7408. ].toolChoose[toolIndex].answerQ
  7409. )
  7410. )
  7411. : "";
  7412. this.dialogVisibleMp3 = true;
  7413. } else if (i == 41) {
  7414. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7415. itemTaskIndex
  7416. ].toolChoose[toolIndex].selectJson
  7417. ? JSON.parse(
  7418. JSON.stringify(
  7419. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7420. itemTaskIndex
  7421. ].toolChoose[toolIndex].selectJson
  7422. )
  7423. )
  7424. : { url: "", select: [], answer: [] };
  7425. this.selectSteps = 1;
  7426. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7427. this.dialogVisibleSelect = true;
  7428. } else if (i == 3) {
  7429. window.parent.postMessage(
  7430. {
  7431. tools: "3y",
  7432. cid: this.cid,
  7433. stage: this.unitIndex,
  7434. task: itemTaskIndex,
  7435. tool: toolIndex,
  7436. },
  7437. "*"
  7438. );
  7439. } else if (i == 1) {
  7440. window.parent.postMessage(
  7441. {
  7442. tools: "1y",
  7443. cid: this.cid,
  7444. stage: this.unitIndex,
  7445. task: itemTaskIndex,
  7446. tool: toolIndex,
  7447. },
  7448. "*"
  7449. );
  7450. } else if (i == 57) {
  7451. window.parent.postMessage(
  7452. {
  7453. tools: "57y",
  7454. cid: this.cid,
  7455. stage: this.unitIndex,
  7456. task: itemTaskIndex,
  7457. tool: toolIndex,
  7458. },
  7459. "*"
  7460. );
  7461. }else if(i == 69){
  7462. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7463. itemTaskIndex
  7464. ].toolChoose[toolIndex].englishList
  7465. ? JSON.parse(
  7466. JSON.stringify(
  7467. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7468. itemTaskIndex
  7469. ].toolChoose[toolIndex].englishList
  7470. )
  7471. )
  7472. : { };
  7473. this.englishDialogVisible = true;
  7474. }
  7475. },
  7476. chapAddTools(i) {
  7477. if (this.chapTools[0].tools.length == 0) {
  7478. this.chapTools[0].tools.push(i);
  7479. } else {
  7480. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7481. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7482. } else {
  7483. this.chapTools[0].tools.push(i);
  7484. }
  7485. }
  7486. this.$forceUpdate();
  7487. },
  7488. addChaptersDataTools() {
  7489. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7490. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7491. this.chapCount
  7492. ].chapterData.push({
  7493. name: this.chapTools[0].toolDetail,
  7494. url: this.chapTools[0].tools,
  7495. type: 7,
  7496. askJson: this.askJson,
  7497. });
  7498. } else {
  7499. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7500. this.chapCount
  7501. ].chapterData.push({
  7502. name: this.chapTools[0].toolDetail,
  7503. url: this.chapTools[0].tools,
  7504. type: 7,
  7505. });
  7506. }
  7507. this.imgChange1(null, null, 7, this.chapCount);
  7508. this.dialogVisible4 = false;
  7509. },
  7510. addTools(i, itemTaskIndex, toolIndex) {
  7511. // if (
  7512. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7513. // .toolChoose[toolIndex].tool.length == 0
  7514. // ) {
  7515. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7516. // itemTaskIndex
  7517. // ].toolChoose[toolIndex].tool.push(i);
  7518. // } else {
  7519. // if (
  7520. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7521. // itemTaskIndex
  7522. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7523. // ) {
  7524. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7525. // itemTaskIndex
  7526. // ].toolChoose[toolIndex].tool.splice(
  7527. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7528. // itemTaskIndex
  7529. // ].toolChoose[toolIndex].tool.indexOf(i),
  7530. // 1
  7531. // );
  7532. // } else {
  7533. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7534. // itemTaskIndex
  7535. // ].toolChoose[toolIndex].tool.push(i);
  7536. // }
  7537. // console.log(
  7538. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7539. // .toolChoose[toolIndex].tool
  7540. // );
  7541. // }
  7542. if (i == 4) {
  7543. if (
  7544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7545. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7547. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7548. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7549. .toolChoose[toolIndex].askJson[0].checkList < 2
  7550. ) {
  7551. this.openTools(itemTaskIndex, 4, toolIndex);
  7552. // this.$message({
  7553. // message: "请填写完整问卷内容",
  7554. // type: "error",
  7555. // });
  7556. return;
  7557. }
  7558. }
  7559. if (i == 45) {
  7560. if (
  7561. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7562. .toolChoose[toolIndex].testJson ||
  7563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7564. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7566. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7567. ) {
  7568. this.openTools(itemTaskIndex, 45, toolIndex);
  7569. // this.$message({
  7570. // message: "请填写完整问卷内容",
  7571. // type: "error",
  7572. // });
  7573. return;
  7574. }
  7575. }
  7576. if (i == 47) {
  7577. if (
  7578. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7579. .toolChoose[toolIndex].sentenceList ||
  7580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7581. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7582. ) {
  7583. this.openTools(itemTaskIndex, 47, toolIndex);
  7584. return;
  7585. }
  7586. }
  7587. if(i == 69){
  7588. if (
  7589. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7590. .toolChoose[toolIndex].englishList
  7591. ) {
  7592. this.openTools(itemTaskIndex, 69, toolIndex);
  7593. return;
  7594. }
  7595. }
  7596. // if (i == 48) {
  7597. // if (
  7598. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7599. // .toolChoose[toolIndex].tableJson
  7600. // ) {
  7601. // this.openTools(itemTaskIndex, 48, toolIndex);
  7602. // return;
  7603. // }
  7604. // }
  7605. // if (i == 50) {
  7606. // if (
  7607. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7608. // .toolChoose[toolIndex].uploadJson
  7609. // ) {
  7610. // this.openTools(itemTaskIndex, 50, toolIndex);
  7611. // return;
  7612. // }
  7613. // }
  7614. if (i == 49) {
  7615. if (
  7616. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7617. .toolChoose[toolIndex].groupJson
  7618. ) {
  7619. this.openTools(itemTaskIndex, 49, toolIndex);
  7620. return;
  7621. }
  7622. }
  7623. if (i == 62) {
  7624. if (
  7625. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7626. .toolChoose[toolIndex].videoJson
  7627. ) {
  7628. this.openTools(itemTaskIndex, 62, toolIndex);
  7629. return;
  7630. }
  7631. }
  7632. if (i == 15) {
  7633. if (
  7634. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7635. .toolChoose[toolIndex].answerQ ||
  7636. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7637. .toolChoose[toolIndex].answerQ == ""
  7638. ) {
  7639. this.openTools(itemTaskIndex, 15, toolIndex);
  7640. // this.$message({
  7641. // message: "请填写问答内容",
  7642. // type: "error",
  7643. // });
  7644. return;
  7645. }
  7646. }
  7647. if (i == 40) {
  7648. if (
  7649. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7650. .toolChoose[toolIndex].rateJson ||
  7651. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7652. .toolChoose[toolIndex].rateJson.length
  7653. ) {
  7654. this.openTools(itemTaskIndex, 40, toolIndex);
  7655. return;
  7656. }
  7657. }
  7658. if (i == 41) {
  7659. if (
  7660. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7661. .toolChoose[toolIndex].selectJson ||
  7662. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7663. .toolChoose[toolIndex].selectJson.url == "" ||
  7664. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7665. .toolChoose[toolIndex].selectJson.select.length ||
  7666. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7667. .toolChoose[toolIndex].selectJson.answer.length
  7668. ) {
  7669. this.openTools(itemTaskIndex, 41, toolIndex);
  7670. return;
  7671. }
  7672. }
  7673. if (i == 42) {
  7674. if (
  7675. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7676. .toolChoose[toolIndex].answerQ ||
  7677. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7678. .toolChoose[toolIndex].answerQ == ""
  7679. ) {
  7680. this.openTools(itemTaskIndex, 42, toolIndex);
  7681. return;
  7682. }
  7683. }
  7684. if (
  7685. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7686. .toolChoose[toolIndex].tool.length > 0
  7687. ) {
  7688. if (
  7689. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7690. itemTaskIndex
  7691. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7692. ) {
  7693. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7694. itemTaskIndex
  7695. ].toolChoose[toolIndex].tool.splice(
  7696. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7697. itemTaskIndex
  7698. ].toolChoose[toolIndex].tool.indexOf(i),
  7699. 1
  7700. );
  7701. } else {
  7702. // this.$message({
  7703. // message: "每个工具只能添加一个",
  7704. // type: "error",
  7705. // });
  7706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7707. itemTaskIndex
  7708. ].toolChoose[toolIndex].tool = [];
  7709. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7710. itemTaskIndex
  7711. ].toolChoose[toolIndex].tool.push(i);
  7712. }
  7713. } else {
  7714. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7715. itemTaskIndex
  7716. ].toolChoose[toolIndex].tool.push(i);
  7717. }
  7718. this.$forceUpdate();
  7719. },
  7720. addAskList(index) {
  7721. this.askJson.askJson.splice(index + 1, 0, {
  7722. askstitle: "",
  7723. askItem: 1,
  7724. checkList: [],
  7725. })
  7726. this.askJson.askCount++;
  7727. },
  7728. addTestList(index) {
  7729. this.testJson.testJson.splice(index + 1, 0, {
  7730. teststitle: "",
  7731. testItem: 1,
  7732. checkList: [],
  7733. timuList: [],
  7734. answer: [],
  7735. type: "1",
  7736. })
  7737. this.testJson.testCount++;
  7738. },
  7739. deleteAskList(index) {
  7740. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7741. this.askJson.askJson.splice(index, 1);
  7742. this.askJson.askCount--;
  7743. } else {
  7744. let _this = this;
  7745. _this
  7746. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7747. confirmButtonText: "确定",
  7748. cancelButtonText: "取消",
  7749. type: "warning",
  7750. })
  7751. .then(() => {
  7752. _this.askJson.askJson.splice(index, 1);
  7753. _this.askJson.askCount--;
  7754. })
  7755. .catch(() => {
  7756. return;
  7757. });
  7758. }
  7759. },
  7760. deleteTestList(index) {
  7761. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7762. this.testJson.testJson.splice(index, 1);
  7763. this.testJson.testCount--;
  7764. } else {
  7765. let _this = this;
  7766. _this
  7767. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7768. confirmButtonText: "确定",
  7769. cancelButtonText: "取消",
  7770. type: "warning",
  7771. })
  7772. .then(() => {
  7773. _this.testJson.testJson.splice(index, 1);
  7774. _this.testJson.testCount--;
  7775. })
  7776. .catch(() => {
  7777. return;
  7778. });
  7779. }
  7780. },
  7781. askMove(type, index) {
  7782. if (type == 1) {
  7783. if (index > 0) {
  7784. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  7785. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7786. this.askJson.askJson[index - 1] = b;
  7787. this.askJson.askJson[index] = a;
  7788. }
  7789. } else {
  7790. if (
  7791. index < this.askJson.askJson.length - 1
  7792. ) {
  7793. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  7794. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7795. this.askJson.askJson[index + 1] = b;
  7796. this.askJson.askJson[index] = a;
  7797. }
  7798. }
  7799. this.$forceUpdate();
  7800. },
  7801. checkMove(type, index, checkIndex) {
  7802. if (type == 1) {
  7803. if (checkIndex > 0) {
  7804. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  7805. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7806. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  7807. this.askJson.askJson[index].checkList[checkIndex] = a;
  7808. }
  7809. } else {
  7810. if (
  7811. checkIndex < this.askJson.askJson[index].checkList.length - 1
  7812. ) {
  7813. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  7814. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7815. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  7816. this.askJson.askJson[index].checkList[checkIndex] = a;
  7817. }
  7818. }
  7819. this.$forceUpdate();
  7820. },
  7821. testMove(type, index) {
  7822. if (type == 1) {
  7823. if (index > 0) {
  7824. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  7825. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7826. this.testJson.testJson[index - 1] = b;
  7827. this.testJson.testJson[index] = a;
  7828. }
  7829. } else {
  7830. if (
  7831. index < this.testJson.testJson.length - 1
  7832. ) {
  7833. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  7834. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7835. this.testJson.testJson[index + 1] = b;
  7836. this.testJson.testJson[index] = a;
  7837. }
  7838. }
  7839. this.$forceUpdate();
  7840. },
  7841. tcheckMove(type, index, checkIndex) {
  7842. if (type == 1) {
  7843. if (checkIndex > 0) {
  7844. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  7845. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7846. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  7847. this.testJson.testJson[index].checkList[checkIndex] = a;
  7848. }
  7849. } else {
  7850. if (
  7851. checkIndex < this.testJson.testJson[index].checkList.length - 1
  7852. ) {
  7853. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  7854. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7855. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  7856. this.testJson.testJson[index].checkList[checkIndex] = a;
  7857. }
  7858. }
  7859. this.$forceUpdate();
  7860. },
  7861. addcheckList(json, index) {
  7862. // json.checkList.length++;
  7863. json.checkList.splice(index + 1, 0, '')
  7864. json.askItem++;
  7865. this.$forceUpdate();
  7866. },
  7867. deletecheckList(json, index) {
  7868. // json.checkList.length--;
  7869. json.checkList.splice(index, 1)
  7870. json.askItem--;
  7871. this.$forceUpdate();
  7872. },
  7873. addTcheckList(json, index) {
  7874. // json.checkList.length++;
  7875. json.checkList.splice(index + 1, 0, '')
  7876. json.testItem++;
  7877. this.$forceUpdate();
  7878. },
  7879. deleteTcheckList(json, index) {
  7880. // json.checkList.length--;
  7881. json.checkList.splice(index, 1)
  7882. json.testItem--;
  7883. this.$forceUpdate();
  7884. },
  7885. checkTestType(type, json) {
  7886. json.type = type;
  7887. setTimeout(() => {
  7888. json.answer = [];
  7889. }, 100)
  7890. },
  7891. checkAskType(type, json) {
  7892. json.type = type;
  7893. // json.checkList = [];
  7894. this.$forceUpdate();
  7895. },
  7896. addSelectList(json) {
  7897. json.select.push("");
  7898. json.answer.push("");
  7899. },
  7900. deleteSelectList(json) {
  7901. // json.select.length--;
  7902. // json.answer.length--;
  7903. json.select.splice(json.select.length - 1, 1);
  7904. json.answer.splice(json.answer.length - 1, 1);
  7905. },
  7906. addAsk() {
  7907. if (this.askJson.askTitle === "") {
  7908. this.$message.error("标题不能为空!");
  7909. return;
  7910. }
  7911. var aj = this.askJson.askJson;
  7912. var b = 1;
  7913. for (var i = 0; i < aj.length; i++) {
  7914. if (aj[i].askstitle === "") {
  7915. var a = 1;
  7916. for (let index = 0; index < aj[i].askItem; index++) {
  7917. const element = aj[i].checkList[index]
  7918. ? aj[i].checkList[index]
  7919. : "";
  7920. if (element != "") {
  7921. b++;
  7922. this.$message.error(`请将题目${i + 1}填写完整。`);
  7923. return;
  7924. } else {
  7925. a++;
  7926. }
  7927. }
  7928. if (b == 1) {
  7929. this.$message.error("至少填写一个问题");
  7930. return;
  7931. }
  7932. } else if (aj[i].askstitle != "") {
  7933. for (let index = 0; index < aj[i].askItem; index++) {
  7934. const element = aj[i].checkList[index]
  7935. ? aj[i].checkList[index]
  7936. : "";
  7937. var index = 0;
  7938. for (var z = 0; z < aj[i].checkList.length; z++) {
  7939. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7940. if (checkC != "") {
  7941. index++;
  7942. } else {
  7943. this.$message.error(`题目${i + 1}选项不能为空!`);
  7944. return;
  7945. }
  7946. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7947. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7948. if (checkC == checkC2) {
  7949. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7950. return;
  7951. }
  7952. }
  7953. }
  7954. b++;
  7955. if (index < 2) {
  7956. this.$message.error("每道题目至少需要设置2个选项。");
  7957. return;
  7958. }
  7959. }
  7960. }
  7961. }
  7962. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7963. var elc = el.checkList.filter((element) => {
  7964. return element != "";
  7965. });
  7966. return el.askstitle != "" && elc.length != 0;
  7967. });
  7968. if (!this.dialogVisible4) {
  7969. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7970. this.taskCount
  7971. ].toolChoose[this.toolIndex] = this.askJson;
  7972. }
  7973. this.dialogVisible5 = false;
  7974. if (
  7975. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7976. .toolChoose[this.toolIndex].tool != 4
  7977. ) {
  7978. this.addTools(4, this.taskCount, this.toolIndex);
  7979. }
  7980. },
  7981. addTest() {
  7982. // if (this.testJson.testTitle === "") {
  7983. // this.$message.error("标题不能为空!");
  7984. // return;
  7985. // }
  7986. var aj = this.testJson.testJson;
  7987. var b = 1;
  7988. for (var i = 0; i < aj.length; i++) {
  7989. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  7990. var a = 1;
  7991. for (let index = 0; index < aj[i].testItem; index++) {
  7992. const element = aj[i].checkList[index]
  7993. ? aj[i].checkList[index]
  7994. : "";
  7995. if (element != "") {
  7996. b++;
  7997. this.$message.error(`请将题目${i + 1}填写完整。`);
  7998. return;
  7999. } else {
  8000. a++;
  8001. }
  8002. }
  8003. if (b == 1) {
  8004. this.$message.error("至少填写一个问题");
  8005. return;
  8006. }
  8007. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8008. for (let index = 0; index < aj[i].testItem; index++) {
  8009. const element = aj[i].checkList[index]
  8010. ? aj[i].checkList[index]
  8011. : "";
  8012. var index = 0;
  8013. for (var z = 0; z < aj[i].checkList.length; z++) {
  8014. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8015. if (checkC != "") {
  8016. index++;
  8017. } else {
  8018. this.$message.error(`题目${i + 1}选项不能为空!`);
  8019. return;
  8020. }
  8021. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8022. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8023. if (checkC == checkC2) {
  8024. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8025. return;
  8026. }
  8027. }
  8028. }
  8029. b++;
  8030. if (index < 2) {
  8031. this.$message.error("每道题目至少需要设置2个选项。");
  8032. return;
  8033. }
  8034. if (
  8035. (aj[i].type == "2" && !aj[i].answer.length) ||
  8036. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8037. ) {
  8038. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8039. return;
  8040. }
  8041. }
  8042. }
  8043. }
  8044. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8045. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8046. var elc = el.checkList.filter((element) => {
  8047. return element != "";
  8048. });
  8049. return (
  8050. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8051. );
  8052. });
  8053. isTestJson.testCount = isTestJson.testJson.length;
  8054. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8055. this.taskCount
  8056. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8057. this.dialogVisibleChoice = false;
  8058. if (
  8059. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8060. .toolChoose[this.toolIndex].tool != 45
  8061. ) {
  8062. this.addTools(45, this.taskCount, this.toolIndex);
  8063. }
  8064. },
  8065. addVideoJson(videoJson) {
  8066. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8067. this.taskCount
  8068. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8069. this.dialogVisibleVideo = false;
  8070. if (
  8071. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8072. .toolChoose[this.toolIndex].tool != 62
  8073. ) {
  8074. this.addTools(62, this.taskCount, this.toolIndex);
  8075. }
  8076. },
  8077. //自动获取剪贴板
  8078. pasteOption() {
  8079. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8080. if (!iframe) {
  8081. this.$message.error("请使用AI共创生成题目");
  8082. return;
  8083. }
  8084. let copyData = iframe.contentWindow.copyData;
  8085. if (!copyData || !copyData.selectData.length) {
  8086. this.$message.error("请使用AI共创生成题目");
  8087. return;
  8088. }
  8089. let selectData = copyData.selectData;
  8090. for (var i = 0; i < selectData.length; i++) {
  8091. let answer = 0;
  8092. switch (selectData[i].answer[0]) {
  8093. case "A":
  8094. answer = 0;
  8095. break;
  8096. case "B":
  8097. answer = 1;
  8098. break;
  8099. case "C":
  8100. answer = 2;
  8101. break;
  8102. case "D":
  8103. answer = 3;
  8104. break;
  8105. case "E":
  8106. answer = 4;
  8107. break;
  8108. default:
  8109. break;
  8110. }
  8111. this.testJson.testJson.push({
  8112. teststitle: selectData[i].subject,
  8113. testItem: selectData[i].options.length,
  8114. checkList: selectData[i].options,
  8115. timuList: [],
  8116. answer: answer,
  8117. type: "1",
  8118. });
  8119. this.testJson.testCount++;
  8120. }
  8121. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8122. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8123. var elc = el.checkList.filter((element) => {
  8124. return element != "";
  8125. });
  8126. return (
  8127. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8128. );
  8129. });
  8130. isTestJson.testCount = isTestJson.testJson.length;
  8131. this.testJson = isTestJson;
  8132. this.$forceUpdate();
  8133. },
  8134. pasteTask() {
  8135. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8136. if (!iframe) {
  8137. this.$message.error("请使用AI共创生成");
  8138. return;
  8139. }
  8140. let copyData = iframe.contentWindow.copyData;
  8141. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  8142. this.$message.error("请使用AI共创生成");
  8143. return;
  8144. }
  8145. let stageTasksData = copyData.tasksData;
  8146. let taskA = [];
  8147. let tasks = stageTasksData;
  8148. for (var j = 0; j < tasks.length; j++) {
  8149. taskA.push({
  8150. task: tasks[j].taskName,
  8151. taskDetail: tasks[j].taskDecs,
  8152. chapterData: [],
  8153. toolText: "",
  8154. toolChoose: [
  8155. {
  8156. tool: [],
  8157. toolDetail: "",
  8158. toolType: 0,
  8159. askCount: 1,
  8160. askTitle: "",
  8161. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8162. },
  8163. ],
  8164. isShowTools: false,
  8165. askCount: 1,
  8166. isFold: 1,
  8167. askTitle: "",
  8168. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8169. checkJson: [{ checkCount: [], checkPerent: [] }],
  8170. homeworkList: [],
  8171. });
  8172. }
  8173. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8174. this.$forceUpdate();
  8175. },
  8176. pasteStage() {
  8177. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8178. if (!iframe) {
  8179. this.$message.error("请使用AI共创生成");
  8180. return;
  8181. }
  8182. let copyData = iframe.contentWindow.copyData;
  8183. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  8184. this.$message.error("请使用AI共创生成");
  8185. return;
  8186. }
  8187. let stageData = copyData.stageData;
  8188. let stage = [];
  8189. for (var i = 0; i < stageData.length; i++) {
  8190. stage.push({
  8191. dyName: stageData[i], //单元标题
  8192. chapterInfo: [
  8193. {
  8194. isread: false,
  8195. chapterid: this.guid(),
  8196. title: "",
  8197. courseName: "",
  8198. taskJson: [
  8199. {
  8200. task: "",
  8201. taskDetail: "",
  8202. chapterData: [],
  8203. toolText: "",
  8204. toolChoose: [
  8205. {
  8206. tool: [],
  8207. toolDetail: "",
  8208. toolType: 0,
  8209. askCount: 1,
  8210. askTitle: "",
  8211. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8212. },
  8213. ],
  8214. isShowTools: false,
  8215. askCount: 1,
  8216. isFold: 1,
  8217. askTitle: "",
  8218. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8219. checkJson: [{ checkCount: [], checkPerent: [] }],
  8220. homeworkList: [],
  8221. },
  8222. ],
  8223. itemCount: 1,
  8224. fileList1: [],
  8225. video: [],
  8226. testData: [],
  8227. pData: [],
  8228. templateArray: [],
  8229. },
  8230. ],
  8231. });
  8232. }
  8233. let _this = this;
  8234. _this
  8235. .$confirm("确定选择智能粘贴模板吗?修改课程时无法重置课程模板。", "提示", {
  8236. confirmButtonText: "确定",
  8237. cancelButtonText: "取消",
  8238. type: "warning",
  8239. })
  8240. .then(() => {
  8241. _this.unitIndex = 0;
  8242. _this.unitJson = stage;
  8243. // _this.steps++;
  8244. _this.updateWork();
  8245. })
  8246. .catch(() => {
  8247. return;
  8248. });
  8249. },
  8250. openStageBox() {
  8251. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  8252. this.dialogVisibleStageChange = true;
  8253. },
  8254. updateChange() {
  8255. this.$confirm(
  8256. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  8257. "提示",
  8258. {
  8259. confirmButtonText: "确定",
  8260. cancelButtonText: "取消",
  8261. type: "warning",
  8262. }
  8263. )
  8264. .then(() => {
  8265. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  8266. this.updateWork()
  8267. this.dialogVisibleStageChange = false;
  8268. })
  8269. .catch(() => {
  8270. return;
  8271. });
  8272. },
  8273. addAnswer() {
  8274. if (this.answerQ == "") {
  8275. this.$message.error("请输入您想要问的问题");
  8276. return;
  8277. }
  8278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8279. this.taskCount
  8280. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8281. this.dialogVisible8 = false;
  8282. if (
  8283. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8284. .toolChoose[this.toolIndex].tool != 15
  8285. ) {
  8286. this.addTools(15, this.taskCount, this.toolIndex);
  8287. }
  8288. },
  8289. addMp3Answer() {
  8290. if (this.answerQ == "") {
  8291. this.$message.error("请输入您想要回答的问题");
  8292. return;
  8293. }
  8294. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8295. this.taskCount
  8296. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8297. this.dialogVisibleMp3 = false;
  8298. },
  8299. addRateAnswer() {
  8300. var a = 1;
  8301. for (var i = 0; i < this.rateJson.length; i++) {
  8302. if (this.rateJson[i].value == "") {
  8303. a = 2;
  8304. break;
  8305. }
  8306. }
  8307. if (a == 2) {
  8308. this.$message.error("请把评价信息填写完整");
  8309. return;
  8310. }
  8311. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8312. this.taskCount
  8313. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8314. this.dialogVisibleRate = false;
  8315. if (
  8316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8317. .toolChoose[this.toolIndex].tool != 40
  8318. ) {
  8319. this.addTools(40, this.taskCount, this.toolIndex);
  8320. }
  8321. },
  8322. addSelectAnswer() {
  8323. if (this.selectJson.url == "") {
  8324. this.$message.error("请上传题目");
  8325. return;
  8326. }
  8327. if (!this.selectJson.select.length) {
  8328. this.$message.error("请添加选项");
  8329. return;
  8330. }
  8331. if (!this.selectJson.answer.length) {
  8332. this.$message.error("请设置答案");
  8333. return;
  8334. }
  8335. var a = 1;
  8336. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8337. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8338. a = 2;
  8339. }
  8340. }
  8341. if (a == 2) {
  8342. this.$message.error("请设置答案");
  8343. return;
  8344. }
  8345. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8346. this.taskCount
  8347. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8348. this.dialogVisibleSelect = false;
  8349. if (
  8350. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8351. .toolChoose[this.toolIndex].tool != 41
  8352. ) {
  8353. this.addTools(41, this.taskCount, this.toolIndex);
  8354. }
  8355. },
  8356. nextSelectSteps() {
  8357. if (this.selectJson.url == "") {
  8358. this.$message.error("请上传题目");
  8359. return;
  8360. }
  8361. if (!this.selectJson.select.length) {
  8362. this.$message.error("请添加选项");
  8363. return;
  8364. } else {
  8365. for (var z = 0; z < this.selectJson.select.length; z++) {
  8366. let checkC = this.selectJson.select[z];
  8367. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8368. let checkC2 = this.selectJson.select[z2];
  8369. if (checkC == checkC2) {
  8370. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8371. return;
  8372. }
  8373. }
  8374. }
  8375. }
  8376. var a = 1;
  8377. for (var i = 0; i < this.selectJson.select.length; i++) {
  8378. if (!this.selectJson.select[i]) {
  8379. a = 2;
  8380. }
  8381. }
  8382. if (a == 2) {
  8383. this.$message.error("添加的选项不能为空");
  8384. return;
  8385. }
  8386. this.selectSteps++;
  8387. },
  8388. selectCourseDetail() {
  8389. if (this.cid == "" || this.cid == undefined) {
  8390. console.log("这是新增课程");
  8391. this.selectAllType();
  8392. } else {
  8393. this.cidType = 1;
  8394. let params = {
  8395. cid: this.cid,
  8396. };
  8397. this.ajax
  8398. .get(this.$store.state.api + "select_course_detail", params)
  8399. .then((res) => {
  8400. this.loading = true;
  8401. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8402. this.courseState = res.data[0][0].state
  8403. for (var j = 0; j < this.unitJson.length; j++) {
  8404. for (
  8405. var k = 0;
  8406. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8407. k++
  8408. ) {
  8409. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8410. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8411. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8412. : [];
  8413. let _chapterData = [];
  8414. for (
  8415. var c = 0;
  8416. c <
  8417. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8418. .length;
  8419. c++
  8420. ) {
  8421. if (
  8422. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8423. ) {
  8424. _chapterData.push(
  8425. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8426. );
  8427. }
  8428. }
  8429. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8430. _chapterData;
  8431. }
  8432. }
  8433. this.$forceUpdate();
  8434. this.courseName = res.data[0][0].title;
  8435. this.courseText = res.data[0][0].brief;
  8436. this.evalua = res.data[0][0].evaId;
  8437. this.cover = JSON.parse(res.data[0][0].cover);
  8438. this.noneBtnImg = this.cover.length >= 1;
  8439. // this.checkboxList =
  8440. // res.data[0][0].course_student.length > 0
  8441. // ? JSON.parse(res.data[0][0].course_student)
  8442. // : [];
  8443. this.checkboxList2 = res.data[0][0].juri
  8444. ? res.data[0][0].juri.split(",")
  8445. : [];
  8446. this.inviteCode = [];
  8447. for (var i = 0; i < res.data[2].length; i++) {
  8448. this.inviteCode.push({
  8449. cid: res.data[2][i].classid,
  8450. ic: res.data[2][i].code,
  8451. });
  8452. }
  8453. this.checkboxList3 = res.data[0][0].course_teacher
  8454. ? res.data[0][0].course_teacher.split(",")
  8455. : [];
  8456. // this.isTeacherSee =
  8457. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8458. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8459. this.myWord = res.data[0][0].template;
  8460. this.templateC.id = "123";
  8461. this.courseUserid = res.data[0][0].userid;
  8462. // if(this.courseUserid == this.userid){
  8463. // this.InviteChange(this.checkboxList2)
  8464. // }
  8465. this.nbOrder = res.data[0][0].ordernumber;
  8466. this.courseTypeId = [];
  8467. for (var i = 0; i < res.data[1].length; i++) {
  8468. this.courseTypeId.push(res.data[1][i].typeid);
  8469. }
  8470. console.log(this.courseTypeId);
  8471. // if (this.timer) clearInterval(this.timer);
  8472. if (this.timer) clearTimeout(this.timer);
  8473. this.timer = null;
  8474. // this.timer = setInterval(() => {
  8475. this.seleteCourseUpdate();
  8476. this.setMan();
  8477. this.selectAllType();
  8478. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8479. // }, 5000);
  8480. this.$forceUpdate();
  8481. setTimeout(() => {
  8482. this.checkEva(this.evalua);
  8483. setTimeout(() => {
  8484. this.checkEva(this.evalua);
  8485. }, 100);
  8486. }, 100);
  8487. })
  8488. .catch((err) => {
  8489. console.error(err);
  8490. });
  8491. }
  8492. },
  8493. seleteCourseUpdate() {
  8494. let params = {
  8495. cid: this.cid,
  8496. };
  8497. this.ajax
  8498. .get(this.$store.state.api + "select_course_detail", params)
  8499. .then((res) => {
  8500. // console.log(this.unitJson);
  8501. let unitJson = JSON.parse(res.data[0][0].chapters);
  8502. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8503. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8504. let _unitJson = [];
  8505. let _chapAarry = [];
  8506. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8507. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8508. let index = 1;
  8509. let chapindex;
  8510. if (_unitJson2.length > unitJson.length) {
  8511. for (let c = 0; c < _unitJson2.length; c++) {
  8512. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8513. }
  8514. for (let j = 0; j < unitJson.length; j++) {
  8515. let count = 0;
  8516. for (let k = 0; k < _unitJson2.length; k++) {
  8517. if (
  8518. unitJson[j].chapterInfo[0].chapterid ==
  8519. _unitJson2[k].chapterInfo[0].chapterid
  8520. ) {
  8521. count++;
  8522. _chapAarry.splice(
  8523. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8524. 1
  8525. );
  8526. _unitJson.push(unitJson[j]);
  8527. break;
  8528. }
  8529. }
  8530. // if(count === 0){
  8531. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8532. // }
  8533. }
  8534. for (let k = 0; k < _unitJson2.length; k++) {
  8535. if (_unitJson2[k].isUpdate == 1) {
  8536. _chapAarry.splice(
  8537. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8538. 1
  8539. );
  8540. _unitJson.push(_unitJson2[k]);
  8541. }
  8542. }
  8543. console.log(_chapAarry);
  8544. for (let d = 0; d < _unitJson2.length; d++) {
  8545. if (
  8546. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8547. ) {
  8548. if (_unitIndex == d) {
  8549. index = 2;
  8550. }
  8551. chapindex = d;
  8552. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8553. }
  8554. }
  8555. } else {
  8556. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8557. }
  8558. for (let i = 0; i < unitJson.length; i++) {
  8559. if (
  8560. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8561. _unitJson[i].chapterInfo[0].chapterid !=
  8562. unitJson[i].chapterInfo[0].chapterid
  8563. ) {
  8564. if (i == _unitJson.length - 1) {
  8565. // this.unitIndex++
  8566. _unitIndex2++;
  8567. }
  8568. _unitJson.splice(i, 0, unitJson[i]);
  8569. } else if (i > _unitJson.length - 1) {
  8570. _unitJson.push(unitJson[i]);
  8571. } else if (
  8572. _unitJson[i].chapterInfo[0].chapterid ==
  8573. unitJson[i].chapterInfo[0].chapterid
  8574. ) {
  8575. _unitJson[i] = unitJson[i];
  8576. }
  8577. // if (i == _unitIndex) {
  8578. // continue;
  8579. // } else
  8580. }
  8581. if (_chapAarry.length && index != 2) {
  8582. if (chapindex < _unitIndex) {
  8583. this.isDelete = 2;
  8584. // this.unitIndex--;
  8585. _unitIndex2--;
  8586. } else if (
  8587. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8588. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8589. ) {
  8590. this.isDelete = 2;
  8591. for (let n = 0; n < _unitJson.length; n++) {
  8592. if (
  8593. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8594. _unitJson[n].chapterInfo[0].chapterid
  8595. ) {
  8596. // this.unitIndex = n;
  8597. _unitIndex2 = n;
  8598. _unitJson[n] = _unitJson2[_unitIndex];
  8599. break;
  8600. }
  8601. }
  8602. }
  8603. } else if (index != 2) {
  8604. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8605. _unitJson2[_unitIndex];
  8606. for (
  8607. var ci = 0;
  8608. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8609. ci++
  8610. ) {
  8611. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8612. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8613. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8614. .toolChoose
  8615. : [];
  8616. let _chapterData = [];
  8617. for (
  8618. var c = 0;
  8619. c <
  8620. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8621. .length;
  8622. c++
  8623. ) {
  8624. if (
  8625. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8626. .chapterData[c]
  8627. ) {
  8628. _chapterData.push(
  8629. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8630. .chapterData[c]
  8631. );
  8632. }
  8633. }
  8634. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8635. _chapterData;
  8636. }
  8637. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8638. }
  8639. if (index == 1) {
  8640. this.unitJson = _unitJson;
  8641. this.$forceUpdate();
  8642. setTimeout(() => {
  8643. if (this.unitIndex != _unitIndex2) {
  8644. this.isDelete = 2;
  8645. this.unitIndex = _unitIndex2;
  8646. }
  8647. }, 0);
  8648. this.timer = setTimeout(() => {
  8649. this.seleteCourseUpdate();
  8650. }, 1000);
  8651. } else if (index == 2) {
  8652. let _this = this;
  8653. _this
  8654. .$confirm(
  8655. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8656. "提示",
  8657. {
  8658. confirmButtonText: "需要",
  8659. cancelButtonText: "取消",
  8660. type: "warning",
  8661. }
  8662. )
  8663. .then(() => {
  8664. if (_this.time()) {
  8665. _this.restoreWork(
  8666. _chapAarry[0],
  8667. _unitJson,
  8668. chapindex,
  8669. _unitJson2,
  8670. _unitIndex2
  8671. );
  8672. }
  8673. })
  8674. .catch(() => {
  8675. _this.unitJson = _unitJson;
  8676. _this.$forceUpdate();
  8677. setTimeout(() => {
  8678. if (this.unitIndex != _unitIndex2) {
  8679. this.isDelete = 2;
  8680. this.unitIndex = _unitIndex2;
  8681. }
  8682. }, 0);
  8683. _this.timer = setTimeout(() => {
  8684. _this.seleteCourseUpdate();
  8685. }, 1000);
  8686. });
  8687. }
  8688. })
  8689. .catch((err) => {
  8690. console.error(err);
  8691. });
  8692. },
  8693. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8694. let params = [
  8695. {
  8696. cid: this.cid,
  8697. chapters: JSON.stringify(this.unitJson),
  8698. uid: this.userid,
  8699. chapid: chapid,
  8700. },
  8701. ];
  8702. this.ajax
  8703. .post(this.$store.state.api + "restoreWork", params)
  8704. .then((res) => {
  8705. this.$message({
  8706. message: "恢复成功",
  8707. type: "success",
  8708. });
  8709. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8710. this.unitJson = unitJson;
  8711. this.$forceUpdate();
  8712. setTimeout(() => {
  8713. if (this.unitIndex != unitIndex2) {
  8714. this.isDelete = 2;
  8715. this.unitIndex = unitIndex2;
  8716. }
  8717. }, 0);
  8718. this.timer = setTimeout(() => {
  8719. this.seleteCourseUpdate();
  8720. }, 1000);
  8721. })
  8722. .catch((err) => {
  8723. this.$message.error("网络不佳");
  8724. console.error(err);
  8725. });
  8726. },
  8727. getTypeName() {
  8728. console.log(this.courseTypeId);
  8729. this.$forceUpdate();
  8730. },
  8731. selectAllType() {
  8732. let params = {
  8733. org: this.org && this.org != "" ? this.org : "",
  8734. oid: this.oid && this.oid != "" ? this.oid : "",
  8735. };
  8736. this.ajax
  8737. .get(this.$store.state.api + "selectAllType", params)
  8738. .then((res) => {
  8739. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8740. res.data[0] = [...res.data[0], ...res.data[4]]
  8741. }
  8742. this.CourseType = res.data;
  8743. this.CourseType2 = [
  8744. { name: "智见课程", id: [] },
  8745. { name: "智行课程", id: [] },
  8746. { name: "智创课程", id: [] },
  8747. ];
  8748. for (var cti = 0; cti < res.data[0].length; cti++) {
  8749. if (
  8750. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  8751. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  8752. ) {
  8753. this.CourseType2[0].id.push(res.data[0][cti].id);
  8754. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  8755. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8756. this.CourseType2[1].id.push(res.data[0][cti].id);
  8757. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8758. this.CourseType2[2].id.push(res.data[0][cti].id);
  8759. }
  8760. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  8761. res.data[0][cti].name = "年级";
  8762. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8763. res.data[0][cti].name = "学科";
  8764. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8765. res.data[0][cti].name = "主题";
  8766. }
  8767. }
  8768. let _courseTypeId = [];
  8769. for (var i = 0; i < res.data[0].length; i++) {
  8770. if (!this.cid) {
  8771. this.courseTypeId[res.data[0][i].id] = [];
  8772. }
  8773. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8774. // }
  8775. this.CourseTypeJson[res.data[0][i].id] = [];
  8776. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8777. if (res.data[0][i].name == "栏目") {
  8778. this.CourseType[0][i].name = "主题";
  8779. }
  8780. }
  8781. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8782. for (var j = 0; j < res.data[1].length; j++) {
  8783. if (
  8784. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8785. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8786. ) {
  8787. _courseTypeId.push(res.data[1][j].id);
  8788. }
  8789. if (res.data[0][i].id == res.data[1][j].pid) {
  8790. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8791. }
  8792. }
  8793. } else {
  8794. if (res.data[2].length > 0) {
  8795. for (var j = 0; j < res.data[2].length; j++) {
  8796. if (
  8797. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8798. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8799. ) {
  8800. _courseTypeId.push(res.data[2][j].id);
  8801. }
  8802. if (res.data[0][i].id == res.data[2][j].pid) {
  8803. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8804. }
  8805. }
  8806. }
  8807. if (res.data[3].length > 0) {
  8808. for (var j = 0; j < res.data[3].length; j++) {
  8809. if (
  8810. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8811. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8812. ) {
  8813. _courseTypeId.push(res.data[3][j].id);
  8814. }
  8815. if (res.data[0][i].id == res.data[3][j].pid) {
  8816. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8817. }
  8818. }
  8819. }
  8820. }
  8821. }
  8822. this.courseTypeId = _courseTypeId;
  8823. })
  8824. .catch((err) => {
  8825. console.error(err);
  8826. });
  8827. },
  8828. selectType() {
  8829. this.ajax
  8830. .get(this.$store.state.api + "selectType")
  8831. .then((res) => {
  8832. this.CourseType = res.data;
  8833. for (var i = 0; i < res.data[0].length; i++) {
  8834. if (!this.cid) {
  8835. this.courseTypeId[res.data[0][i].id] = "";
  8836. }
  8837. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8838. if (res.data[0][i].name == "栏目") {
  8839. this.CourseType[0][i].name = "主题";
  8840. }
  8841. }
  8842. for (var j = 0; j < res.data[1].length; j++) {
  8843. if (res.data[0][i].id == res.data[1][j].pid) {
  8844. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8845. this.CourseTypeJson[res.data[0][i].id] = [];
  8846. }
  8847. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8848. }
  8849. }
  8850. }
  8851. this.selectTypeByOid();
  8852. this.selectTypeByOrg();
  8853. })
  8854. .catch((err) => {
  8855. console.error(err);
  8856. });
  8857. },
  8858. selectTypeByOid() {
  8859. let params = {
  8860. oid: this.oid,
  8861. };
  8862. this.ajax
  8863. .get(this.$store.state.api + "selectTypeByOid", params)
  8864. .then((res) => {
  8865. for (var i = 0; i < res.data[0].length; i++) {
  8866. for (var j = 0; j < res.data[1].length; j++) {
  8867. if (res.data[0][i].id == res.data[1][j].pid) {
  8868. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8869. this.CourseTypeJson[res.data[0][i].id] = [];
  8870. }
  8871. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8872. }
  8873. }
  8874. }
  8875. })
  8876. .catch((err) => {
  8877. console.error(err);
  8878. });
  8879. },
  8880. selectTypeByOrg() {
  8881. let params = {
  8882. oid: this.org,
  8883. };
  8884. this.ajax
  8885. .get(this.$store.state.api + "selectTypeByOrg", params)
  8886. .then((res) => {
  8887. for (var i = 0; i < res.data[0].length; i++) {
  8888. for (var j = 0; j < res.data[1].length; j++) {
  8889. if (res.data[0][i].id == res.data[1][j].pid) {
  8890. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8891. this.CourseTypeJson[res.data[0][i].id] = [];
  8892. }
  8893. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8894. }
  8895. }
  8896. }
  8897. this.$forceUpdate();
  8898. })
  8899. .catch((err) => {
  8900. console.error(err);
  8901. });
  8902. },
  8903. OtherMb(type, task) {
  8904. if(task === 0 || task){
  8905. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[task].isEvaFold = true;
  8906. }
  8907. this.typeMode = type;
  8908. setTimeout(() => {
  8909. this.checkEva(this.checkId);
  8910. setTimeout(() => {
  8911. this.checkEva(this.checkId);
  8912. }, 100);
  8913. }, 100);
  8914. },
  8915. openMember() {
  8916. this.searchTN = "";
  8917. this.getTeacher();
  8918. this.dialogVisibleMember = true;
  8919. },
  8920. checkEva(id, type) {
  8921. this.dialogVisiblemb = false;
  8922. this.selectEva();
  8923. if (this.evalua != id && type == 2) {
  8924. this.$message.success("导入成功");
  8925. setTimeout(() => {
  8926. this.checkEva(id)
  8927. }, 100);
  8928. }
  8929. this.evalua = id;
  8930. this.checkId = id;
  8931. if (this.evalua != "") {
  8932. for (var i = 0; i < this.evaJuri.length; i++) {
  8933. if (this.evalua == this.evaJuri[i].id) {
  8934. this.eTitle = this.evaJuri[i].title;
  8935. this.eJson = JSON.parse(this.evaJuri[i].content);
  8936. }
  8937. }
  8938. this.data.data = [];
  8939. this.$forceUpdate();
  8940. setTimeout(() => {
  8941. this.setMindData();
  8942. }, 1000);
  8943. }
  8944. },
  8945. deleteEva() {
  8946. let _this = this;
  8947. if (_this.evalua == "") {
  8948. this.$message.warning("内容已经清空了,请勿重复清空");
  8949. return;
  8950. }
  8951. _this
  8952. .$confirm("确定删除此目标吗?", "提示", {
  8953. confirmButtonText: "确定",
  8954. cancelButtonText: "取消",
  8955. type: "warning",
  8956. })
  8957. .then(() => {
  8958. _this.evalua = "";
  8959. _this.checkId = "";
  8960. _this.eTitle = "";
  8961. let _unitJson = _this.unitJson;
  8962. for (var i = 0; i < _unitJson.length; i++) {
  8963. let _task = _unitJson[i].chapterInfo[0].taskJson;
  8964. for (var j = 0; j < _task.length; j++) {
  8965. let _eList = _task[j].eList;
  8966. for (var k = 0; k < _eList.length; k++) {
  8967. delete _eList[k].target;
  8968. }
  8969. }
  8970. }
  8971. _this.$forceUpdate();
  8972. if (_this.cid) {
  8973. _this.updateWork();
  8974. }
  8975. })
  8976. .catch(() => {
  8977. return;
  8978. });
  8979. },
  8980. selectEva() {
  8981. let params = {
  8982. oid: this.oid,
  8983. };
  8984. this.ajax
  8985. .get(this.$store.state.api + "selectAllEvaluation", params)
  8986. .then((res) => {
  8987. this.evaJuri = res.data[0];
  8988. })
  8989. .catch((err) => {
  8990. console.error(err);
  8991. });
  8992. },
  8993. setMindData() {
  8994. let targetArray = [];
  8995. this.data.data = [];
  8996. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8997. let _eJson = Object.keys(this.eJson);
  8998. let _e = this.eJson;
  8999. for (let i = 0; i < _eJson.length; i++) {
  9000. let element = _e[_eJson[i]];
  9001. this.data.data.push({
  9002. id: element.id,
  9003. parentid: "root",
  9004. topic: element.name,
  9005. });
  9006. // targetArray.push({
  9007. // id: element.id,
  9008. // parentid: "root",
  9009. // name: element.name,
  9010. // });
  9011. targetArray.push({
  9012. value: element.name,
  9013. label: element.name,
  9014. children: [],
  9015. });
  9016. let _eJsonc = Object.keys(element.child);
  9017. let _e2 = element.child;
  9018. for (let j = 0; j < _eJsonc.length; j++) {
  9019. let _ec = _e2[_eJsonc[j]];
  9020. this.data.data.push({
  9021. id: _ec.id,
  9022. parentid: element.id,
  9023. topic: _ec.name,
  9024. });
  9025. // targetArray.push({
  9026. // id: _ec.id,
  9027. // parentid: element.id,
  9028. // name: _ec.name,
  9029. // });
  9030. targetArray[i].children.push({
  9031. value: _ec.name,
  9032. label: _ec.name,
  9033. children: [],
  9034. });
  9035. let _eJsonz = Object.keys(_ec.child);
  9036. let _e3 = _ec.child;
  9037. for (let z = 0; z < _eJsonz.length; z++) {
  9038. let _ez = _e3[_eJsonz[z]];
  9039. this.data.data.push({
  9040. id: _ez.id,
  9041. parentid: _ec.id,
  9042. topic: _ez.name,
  9043. });
  9044. // targetArray.push({
  9045. // id: _ez.id,
  9046. // parentid: _ec.id,
  9047. // name: _ez.name,
  9048. // });
  9049. targetArray[i].children[j].children.push({
  9050. value: _ez.name,
  9051. label: _ez.name,
  9052. });
  9053. }
  9054. }
  9055. }
  9056. this.targetArray = targetArray;
  9057. this.$forceUpdate();
  9058. },
  9059. /*添加评价 */
  9060. addEList(index, tIndex) {
  9061. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9062. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9063. value: "",
  9064. detail: "",
  9065. score: 5,
  9066. })
  9067. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9068. { value: "", detail: "", score: 5 },
  9069. ]);
  9070. this.$forceUpdate();
  9071. },
  9072. forceUpdate() {
  9073. this.$forceUpdate();
  9074. },
  9075. deletEList(index, tIndex, eIndex) {
  9076. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9077. eIndex,
  9078. 1
  9079. );
  9080. this.$forceUpdate();
  9081. },
  9082. getChoosePic(t) {
  9083. this.chooseType = t;
  9084. this.getAllBanner();
  9085. },
  9086. getAllBanner() {
  9087. this.sysPicVisible = true;
  9088. let params = {
  9089. t: this.chooseType,
  9090. };
  9091. this.ajax
  9092. .get(this.$store.state.api + "selectAllBanner", params)
  9093. .then((res) => {
  9094. this.sysPic = res.data[0];
  9095. })
  9096. .catch((err) => {
  9097. console.error(err);
  9098. });
  9099. },
  9100. // getClass() {
  9101. // let params = {
  9102. // oid: this.oid,
  9103. // };
  9104. // this.ajax
  9105. // .get(this.$store.state.api + "selectClassBySchool", params)
  9106. // .then((res) => {
  9107. // this.classJuri = res.data[0];
  9108. // })
  9109. // .catch((err) => {
  9110. // console.error(err);
  9111. // });
  9112. // },
  9113. deleteSysPic() {
  9114. this.cover = [];
  9115. this.isSysPic = false;
  9116. this.isSysPic2 = false;
  9117. },
  9118. deleteSelectPic() {
  9119. this.selectJson.url = "";
  9120. },
  9121. setEListStar() {
  9122. this.$forceUpdate();
  9123. },
  9124. deletRateList(i) {
  9125. this.rateJson.splice(i, 1);
  9126. },
  9127. addRateList() {
  9128. this.rateJson.push({ detail: "", score: 5, value: "" });
  9129. },
  9130. addSt() {
  9131. this.sentenceList.push({
  9132. sentenceTitle: "",
  9133. addSentence: [],
  9134. rightAnswer: [],
  9135. });
  9136. },
  9137. addSen(i) {
  9138. if (!this.sentenceList[i].sentenceTitle) {
  9139. this.$message.error("请填写卡片内容!");
  9140. return;
  9141. }
  9142. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9143. this.$message.error("卡片内容字数不能超过10位");
  9144. return;
  9145. }
  9146. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9147. this.$message.error("不能添加重复的卡片内容!");
  9148. return;
  9149. }
  9150. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9151. // this.isPushTitleList.push(this.sentenceTitle);
  9152. this.sentenceList[i].sentenceTitle = "";
  9153. },
  9154. setRightAnswer(s, i, j) {
  9155. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9156. this.sentenceList[i].rightAnswer.push(s);
  9157. }
  9158. },
  9159. returnCard(r, i, j) {
  9160. this.sentenceList[i].rightAnswer.splice(j, 1);
  9161. },
  9162. addSentenceTool() {
  9163. for (var i = 0; i < this.sentenceList.length; i++) {
  9164. if (this.sentenceList[i].rightAnswer.length == 0) {
  9165. this.$message.error(`请将题目${i + 1}设置完整。`);
  9166. return;
  9167. }
  9168. if (
  9169. this.sentenceList[i].addSentence.length !=
  9170. this.sentenceList[i].rightAnswer.length
  9171. ) {
  9172. this.$message.error(`请将题目${i + 1}设置完整。`);
  9173. return;
  9174. }
  9175. }
  9176. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9177. this.taskCount
  9178. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9179. this.sentenceList = [
  9180. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9181. ];
  9182. this.dialogVisibleSentence = false;
  9183. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9184. // itemTaskIndex
  9185. // ].toolChoose[toolIndex].tool = [];
  9186. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9187. // itemTaskIndex
  9188. // ].toolChoose[toolIndex].tool.push(i);
  9189. if (
  9190. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9191. .toolChoose[this.toolIndex].tool != 47
  9192. ) {
  9193. this.addTools(47, this.taskCount, this.toolIndex);
  9194. }
  9195. },
  9196. addTableJson() {
  9197. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9198. // this.$message.error("请将信息填写完整!");
  9199. // return;
  9200. // }
  9201. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9202. this.taskCount
  9203. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9204. // this.tableJson = [{ text: "" }];
  9205. // this.dialogVisibleTable = false;
  9206. this.$message.success("上传成功");
  9207. if (
  9208. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9209. .toolChoose[this.toolIndex].tool != 48
  9210. ) {
  9211. this.addTools(48, this.taskCount, this.toolIndex);
  9212. }
  9213. },
  9214. addWordJson() {
  9215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9216. this.taskCount
  9217. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9218. // this.wordJson = [{ text: "" }];
  9219. // this.dialogVisibleWord = false;
  9220. this.$message.success("上传成功");
  9221. if (
  9222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9223. .toolChoose[this.toolIndex].tool != 52
  9224. ) {
  9225. this.addTools(52, this.taskCount, this.toolIndex);
  9226. }
  9227. },
  9228. addMoreUpload() {
  9229. if (this.uploadJson.length == 0) {
  9230. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9231. this.taskCount
  9232. ].toolChoose[this.toolIndex].uploadJson = [];
  9233. } else {
  9234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9235. this.taskCount
  9236. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9237. }
  9238. this.uploadJson = [];
  9239. this.dialogVisibleMoreUpload = false;
  9240. if (
  9241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9242. .toolChoose[this.toolIndex].tool != 50
  9243. ) {
  9244. this.addTools(50, this.taskCount, this.toolIndex);
  9245. }
  9246. },
  9247. addPreTime() {
  9248. if (this.preTime == 0) {
  9249. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9250. this.taskCount
  9251. ].toolChoose[this.toolIndex].preTime = 0;
  9252. } else {
  9253. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9254. this.taskCount
  9255. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9256. }
  9257. this.preTime = 0;
  9258. this.dialogVisiblePreTime = false;
  9259. if (
  9260. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9261. .toolChoose[this.toolIndex].tool != 10
  9262. ) {
  9263. this.addTools(10, this.taskCount, this.toolIndex);
  9264. }
  9265. },
  9266. goToTask(i) {
  9267. this.toolIndexType = ''
  9268. if (this.isClickColor == (i + 1)) {
  9269. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9270. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9271. } else {
  9272. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9273. }
  9274. this.$forceUpdate();
  9275. return;
  9276. }
  9277. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9279. } else {
  9280. document.querySelectorAll(".basic_box")[0].scrollTop =
  9281. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  9282. this.isClickColor = i + 1;
  9283. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9284. }
  9285. this.$forceUpdate();
  9286. },
  9287. goToTask2(i, stage) {
  9288. this.toolIndexType = ''
  9289. if (this.isClickColor == (i + 1) && this.unitIndex == stage) {
  9290. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9292. } else {
  9293. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9294. }
  9295. this.$forceUpdate();
  9296. return;
  9297. }
  9298. if(this.unitIndex != stage){
  9299. if(this.panUnitJson() == 2){
  9300. return;
  9301. }
  9302. this.unitSet(stage)
  9303. }
  9304. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9305. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9306. } else {
  9307. document.querySelectorAll(".basic_box")[0].scrollTop =
  9308. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  9309. this.isClickColor = i + 1;
  9310. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9311. }
  9312. this.$forceUpdate();
  9313. },
  9314. taskMove(type, index) {
  9315. this.$confirm(
  9316. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9317. "提示",
  9318. {
  9319. confirmButtonText: "确定",
  9320. cancelButtonText: "取消",
  9321. type: "warning",
  9322. }
  9323. )
  9324. .then(() => {
  9325. if (type == 1) {
  9326. if (index > 0) {
  9327. let a = JSON.parse(
  9328. JSON.stringify(
  9329. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9330. index - 1
  9331. ]
  9332. )
  9333. );
  9334. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9335. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9336. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9337. }
  9338. } else {
  9339. if (
  9340. index <
  9341. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9342. ) {
  9343. let a = JSON.parse(
  9344. JSON.stringify(
  9345. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9346. index + 1
  9347. ]
  9348. )
  9349. );
  9350. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9352. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9353. }
  9354. }
  9355. this.$forceUpdate();
  9356. })
  9357. .catch(() => {
  9358. return;
  9359. });
  9360. },
  9361. stageMove(type, index) {
  9362. if (type == 1) {
  9363. if (index > 0) {
  9364. let a = JSON.parse(
  9365. JSON.stringify(
  9366. this.unitJson3[index - 1]
  9367. )
  9368. );
  9369. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  9370. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  9371. this.unitJson3[index - 1] = this.unitJson3[index];
  9372. this.unitJson3[index] = a;
  9373. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  9374. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  9375. }
  9376. } else {
  9377. if (
  9378. index <
  9379. this.unitJson3.length - 1
  9380. ) {
  9381. let a = JSON.parse(
  9382. JSON.stringify(
  9383. this.unitJson3[
  9384. index + 1
  9385. ]
  9386. )
  9387. );
  9388. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  9389. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  9390. this.unitJson3[index + 1] =
  9391. this.unitJson3[index];
  9392. this.unitJson3[index] = a;
  9393. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  9394. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  9395. }
  9396. }
  9397. this.$forceUpdate();
  9398. },
  9399. addGroup(i) {
  9400. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9401. this.groupJson.group.push({
  9402. name: "第" + (this.groupJson.group.length + 1) + "组",
  9403. });
  9404. },
  9405. deleteGroup(i) {
  9406. this.groupJson.group.splice(i, 1);
  9407. },
  9408. numberPan() {
  9409. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9410. this.$message.error('请输入2-10的数字')
  9411. this.groupJson.number = ''
  9412. }
  9413. },
  9414. addGroupJson() {
  9415. for (var i = 0; i < this.groupJson.group.length; i++) {
  9416. if (!this.groupJson.group[i].name) {
  9417. this.$message.error("请将信息填写完整!");
  9418. return;
  9419. }
  9420. }
  9421. if (!this.groupJson.number) {
  9422. this.$message.error("请将信息填写完整!");
  9423. return;
  9424. }
  9425. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9426. this.taskCount
  9427. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9428. JSON.stringify(this.groupJson)
  9429. );
  9430. this.dialogVisibleGroup = false;
  9431. this.groupJson = {};
  9432. if (
  9433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9434. .toolChoose[this.toolIndex].tool != 49
  9435. ) {
  9436. this.addTools(49, this.taskCount, this.toolIndex);
  9437. }
  9438. },
  9439. updateTime(preTime) {
  9440. this.preTime = preTime;
  9441. },
  9442. InviteChange(val) {
  9443. console.log(val);
  9444. let _check = []
  9445. let _check2 = []
  9446. for (var i = 0; i < this.grade2.length; i++) {
  9447. var gid = this.grade2[i].id
  9448. _check.push(gid)
  9449. }
  9450. for (var i = 0; i < this.checkboxList2.length; i++) {
  9451. var _id = this.checkboxList2[i]
  9452. if (_check.indexOf(_id) !== -1) {
  9453. _check2.push(_id)
  9454. }
  9455. }
  9456. this.checkAll = _check2.length === _check.length;
  9457. return;
  9458. let array = JSON.parse(JSON.stringify(val));
  9459. this.inviteCode = this.inviteCode.filter((el) => {
  9460. if (val.indexOf(el.cid) != -1) {
  9461. array.splice(array.indexOf(el.cid), 1);
  9462. return el;
  9463. }
  9464. });
  9465. for (var i = 0; i < array.length; i++) {
  9466. this.getInviteCode(array[i]);
  9467. }
  9468. },
  9469. handleCheckAllChange(val) {
  9470. if (val) {
  9471. for (var i = 0; i < this.grade2.length; i++) {
  9472. var gid = this.grade2[i].id
  9473. if (this.checkboxList2.indexOf(gid) === -1) {
  9474. this.checkboxList2.push(gid)
  9475. }
  9476. }
  9477. } else {
  9478. let _check = []
  9479. let _check2 = []
  9480. for (var i = 0; i < this.grade2.length; i++) {
  9481. var gid = this.grade2[i].id
  9482. _check.push(gid)
  9483. }
  9484. for (var i = 0; i < this.checkboxList2.length; i++) {
  9485. var _id = this.checkboxList2[i]
  9486. if (_check.indexOf(_id) === -1) {
  9487. _check2.push(_id)
  9488. }
  9489. }
  9490. this.checkboxList2 = _check2
  9491. }
  9492. this.isIndeterminate = false;
  9493. },
  9494. async getInviteCode(cid) {
  9495. let code = this.randomNumber();
  9496. let params = {
  9497. code: code,
  9498. oid: this.oid,
  9499. };
  9500. let type = 1;
  9501. for (var i = 0; i < this.inviteCode.length; i++) {
  9502. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9503. type = 2;
  9504. }
  9505. }
  9506. if (type == 2) {
  9507. this.getInviteCode(cid);
  9508. return;
  9509. }
  9510. const res = await this.ajax.get(
  9511. this.$store.state.api + "selectInviteCode2",
  9512. params
  9513. );
  9514. if (
  9515. res.data.length &&
  9516. res.data[0].length &&
  9517. res.data[0][0].courseId != this.cid
  9518. ) {
  9519. this.getInviteCode(cid);
  9520. return;
  9521. }
  9522. let array = [];
  9523. for (var i = 0; i < this.inviteCode.length; i++) {
  9524. array.push(this.inviteCode[i].cid);
  9525. }
  9526. if (array.indexOf(cid) != -1) {
  9527. this.inviteCode[array.indexOf(cid)].ic = code;
  9528. } else {
  9529. this.inviteCode.push({ cid: cid, ic: code });
  9530. }
  9531. },
  9532. OpenInviteD(cid) {
  9533. let array = [];
  9534. this.icode = "";
  9535. for (var i = 0; i < this.inviteCode.length; i++) {
  9536. array.push(this.inviteCode[i].cid);
  9537. }
  9538. if (array.indexOf(cid) != -1) {
  9539. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9540. }
  9541. this.inviteId = cid;
  9542. this.dialogVisibleInvite = true;
  9543. },
  9544. addInvite() {
  9545. let reg = /^[A-Za-z0-9]{4,}$/;
  9546. if (!reg.test(this.icode)) {
  9547. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9548. return;
  9549. }
  9550. let type = 1;
  9551. for (var i = 0; i < this.inviteCode.length; i++) {
  9552. if (
  9553. this.inviteCode[i].cid != this.inviteId &&
  9554. this.icode == this.inviteCode[i].ic
  9555. ) {
  9556. type = 2;
  9557. }
  9558. }
  9559. if (type == 2) {
  9560. this.$message.error("已有此随机码,不能重复");
  9561. return;
  9562. }
  9563. let params = {
  9564. code: this.icode,
  9565. oid: this.oid,
  9566. };
  9567. this.ajax
  9568. .get(this.$store.state.api + "selectInviteCode", params)
  9569. .then((res) => {
  9570. if (
  9571. res.data.length &&
  9572. res.data[0].length &&
  9573. res.data[0][0].courseId != this.cid
  9574. ) {
  9575. this.$message.error("已有此随机码,不能重复");
  9576. return;
  9577. }
  9578. let array = [];
  9579. for (var i = 0; i < this.inviteCode.length; i++) {
  9580. array.push(this.inviteCode[i].cid);
  9581. }
  9582. if (array.indexOf(this.inviteId) != -1) {
  9583. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9584. } else {
  9585. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9586. }
  9587. this.icode = "";
  9588. this.dialogVisibleInvite = false;
  9589. })
  9590. .catch((err) => {
  9591. console.error(err);
  9592. });
  9593. },
  9594. randomNumber() {
  9595. // 随机生成两位数
  9596. // let num = Math.floor(Math.random() * 900) + 100;
  9597. // 生成 0 到 99 之间的随机整数
  9598. const randomNumber = Math.floor(Math.random() * 100);
  9599. // 如果随机数小于 10,补上前导零
  9600. const num =
  9601. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9602. // 随机生成两个大写字母
  9603. let letters = "";
  9604. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9605. for (let i = 0; i < 3; i++) {
  9606. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9607. }
  9608. // 随机生成两位数字和字母的组合
  9609. let mix = "";
  9610. let chars =
  9611. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9612. for (let i = 0; i < 3; i++) {
  9613. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9614. mix += char;
  9615. }
  9616. // 随机选择一种类型
  9617. let type = Math.floor(Math.random() * 3);
  9618. return num;
  9619. // 根据类型输出结果
  9620. switch (type) {
  9621. case 0:
  9622. console.log(num); // 输出两位数
  9623. return num;
  9624. case 1:
  9625. console.log(letters); // 输出两个大写字母
  9626. return letters;
  9627. case 2:
  9628. console.log(mix); // 输出两位数字和字母的组合
  9629. return mix;
  9630. }
  9631. },
  9632. getPaste() {
  9633. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9634. if (!iframe) {
  9635. return;
  9636. }
  9637. let copyData = iframe.contentWindow.copyData;
  9638. if (copyData && copyData.stageData && copyData.stageData.length) {
  9639. this.isPasteStage = true
  9640. }
  9641. if (copyData && copyData.selectData.length) {
  9642. this.isPasteChoice = true
  9643. }
  9644. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9645. this.isPasteTask = true
  9646. }
  9647. },
  9648. searchImage() {
  9649. var _this = this;
  9650. _this.imageList = []
  9651. if (!_this.searchImageValue) {
  9652. _this.sysPicVisible2 = true
  9653. return
  9654. }
  9655. _this.imageloading = true
  9656. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9657. page: _this.ppage,
  9658. pagesize: 9,
  9659. query: _this.searchImageValue
  9660. }).then(function (response) {
  9661. // console.log(response.data.data);
  9662. var data = response.data.FunctionResponse.result;
  9663. for (var i = 0; i < data.length; i++) {
  9664. _this.imageList.push({ url: data[i].thumbnail })
  9665. }
  9666. _this.imageloading = false
  9667. }).catch(function (error) {
  9668. console.log(error);
  9669. });
  9670. _this.sysPicVisible2 = true
  9671. },
  9672. changePicture() {
  9673. this.ppage++
  9674. this.searchImage()
  9675. },
  9676. resetImage() {
  9677. this.ppage = 1
  9678. this.searchImage()
  9679. },
  9680. jumpGj(i, j) {
  9681. if ((i + 1) != this.isClickColor) {
  9682. this.isClickColor = (i + 1)
  9683. }
  9684. var a = document.scrollingElement;
  9685. this.toolIndexType = `gj${i}${j}`
  9686. let target = document.querySelector(`#gj${i}${j}`);
  9687. if (target) {
  9688. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9689. setTimeout(() => {
  9690. target.scrollIntoView(true);
  9691. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  9692. setTimeout(() => {
  9693. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  9694. }, 0);
  9695. }, 0);
  9696. }
  9697. },
  9698. jumpGj2(i, j, k) {
  9699. if(this.unitIndex != k){
  9700. if(this.panUnitJson() == 2){
  9701. return;
  9702. }
  9703. this.unitSet(k)
  9704. }
  9705. setTimeout(() => {
  9706. if ((i + 1) != this.isClickColor) {
  9707. this.isClickColor = (i + 1)
  9708. }
  9709. var a = document.scrollingElement;
  9710. this.toolIndexType = `gj${i}${j}${k}`
  9711. let target = document.querySelector(`#gj${i}${j}`);
  9712. if (target) {
  9713. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9714. setTimeout(() => {
  9715. target.scrollIntoView(true);
  9716. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  9717. setTimeout(() => {
  9718. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  9719. }, 0);
  9720. }, 0);
  9721. }
  9722. }, 0);
  9723. },
  9724. dragStart(val, i, j) {
  9725. console.log(this.taskCount);
  9726. this.taskCount = j
  9727. this.oldIndex = i;
  9728. this.oldData = val;
  9729. },
  9730. dragOver(i, j) {
  9731. this.typeIndex = "chapter-" + j + '-' + i
  9732. this.newIndex = i;
  9733. },
  9734. dragEnd() {
  9735. console.log(this.taskCount);
  9736. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9737. // 删除老的节点
  9738. newItems.splice(this.oldIndex, 1);
  9739. // 在列表中目标位置增加新的节点
  9740. newItems.splice(this.newIndex, 0, this.oldData);
  9741. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9742. this.typeIndex = "";
  9743. this.newIndex = "";
  9744. this.$forceUpdate()
  9745. },
  9746. dragTaskStart(val, i) {
  9747. this.oldIndex = i;
  9748. this.oldData = val;
  9749. },
  9750. dragTaskOver(i) {
  9751. this.typeIndex = "task-" + i
  9752. this.newIndex = i;
  9753. },
  9754. dragTaskEnd() {
  9755. if(this.newIndex == this.oldIndex){
  9756. this.newIndex = "";
  9757. this.typeIndex = "";
  9758. return;
  9759. }
  9760. this.$confirm(
  9761. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9762. "提示",
  9763. {
  9764. confirmButtonText: "确定",
  9765. cancelButtonText: "取消",
  9766. type: "warning",
  9767. }
  9768. )
  9769. .then(() => {
  9770. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9771. // 删除老的节点
  9772. newItems.splice(this.oldIndex, 1);
  9773. // 在列表中目标位置增加新的节点
  9774. newItems.splice(this.newIndex, 0, this.oldData);
  9775. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  9776. this.typeIndex = "";
  9777. this.newIndex = "";
  9778. this.$forceUpdate()
  9779. })
  9780. .catch(() => {
  9781. this.newIndex = "";
  9782. this.typeIndex = "";
  9783. return;
  9784. });
  9785. },
  9786. },
  9787. beforeDestroy() {
  9788. clearTimeout(this.timer);
  9789. this.timer = null;
  9790. clearInterval(this.timer2);
  9791. this.timer2 = null;
  9792. clearInterval(this.pasteTimer);
  9793. this.pasteTimer = null;
  9794. },
  9795. beforeRouteLeave(to, from, next) {
  9796. clearTimeout(this.timer);
  9797. this.timer = null;
  9798. clearInterval(this.timer2);
  9799. this.timer2 = null;
  9800. clearInterval(this.pasteTimer);
  9801. this.pasteTimer = null;
  9802. next();
  9803. },
  9804. created() {
  9805. this.getStudent();
  9806. this.getTeacher();
  9807. this.getClass();
  9808. this.selectGrage();
  9809. this.getTemplate();
  9810. // this.selectType();
  9811. this.selectEva();
  9812. this.loading = false;
  9813. this.timer2 = setInterval(() => {
  9814. this.selectEva();
  9815. }, 5000);
  9816. this.pasteTimer = setInterval(() => {
  9817. this.getPaste();
  9818. }, 1000);
  9819. setTimeout(() => {
  9820. this.selectCourseDetail();
  9821. }, 500);
  9822. },
  9823. };
  9824. </script>
  9825. <style scoped>
  9826. @media screen and (max-width: 1280px) {
  9827. .mbCss {
  9828. flex-direction: column !important;
  9829. }
  9830. .pjCss {
  9831. width: 100% !important;
  9832. }
  9833. .evaCss {
  9834. width: 100% !important;
  9835. margin-top: 10px;
  9836. }
  9837. }
  9838. .el-table >>> .even_row {
  9839. background-color: #f1f1f1 !important;
  9840. }
  9841. .dialog_diy>>>.el-dialog__header {
  9842. background: #3c3c3c !important;
  9843. padding: 15px 20px;
  9844. }
  9845. .dialog_diy>>>.el-dialog__title {
  9846. color: #fff;
  9847. }
  9848. .dialog_diy>>>.el-dialog__headerbtn {
  9849. top: 19px;
  9850. }
  9851. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  9852. color: #fff;
  9853. }
  9854. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  9855. color: #fff;
  9856. }
  9857. .dialog_diy>>>.el-dialog__body,
  9858. .dialog_diy>>>.el-dialog__footer {
  9859. background: #fafafa;
  9860. }
  9861. .dialog_diy3>>>.el-dialog__body,
  9862. .dialog_diy3>>>.el-dialog__footer {
  9863. background: #eee !important;
  9864. }
  9865. .dialog_diy3>>>.el-dialog__body {
  9866. padding: 20px 20px;
  9867. }
  9868. .dialog_diyStage>>>.el-dialog__body {
  9869. padding: 10px;
  9870. }
  9871. .source_diy>>>.el-dialog {
  9872. height: 100% !important;
  9873. margin: 0 auto !important;
  9874. }
  9875. .source_diy>>>.el-dialog__body {
  9876. height: calc(100% - 185px);
  9877. overflow: auto;
  9878. background: #e6eaf0;
  9879. }
  9880. .source_diy>>>.el-dialog__footer {
  9881. background: #e6eaf0 !important;
  9882. }
  9883. .left {
  9884. border-right: 1px solid rgb(60, 94, 143);
  9885. display: flex;
  9886. flex-direction: column;
  9887. align-items: center;
  9888. min-height: 600px;
  9889. width: 385px;
  9890. height: 80%;
  9891. }
  9892. .tips {
  9893. color: rgb(128, 128, 128);
  9894. font-size: 12px;
  9895. width: 270px;
  9896. margin: 40px;
  9897. }
  9898. .pb_content {
  9899. height: 100% !important;
  9900. /* margin: 0 20px 0 20px; */
  9901. }
  9902. .pb_content_body {
  9903. width: 100% !important;
  9904. height: 100%;
  9905. }
  9906. .info_solid {
  9907. width: 270px;
  9908. height: 30px;
  9909. border-left: 1px solid #bdbdbd;
  9910. margin: 10px 0px 10px 30px;
  9911. }
  9912. .info_steps {
  9913. width: 270px;
  9914. font-size: 0.875rem;
  9915. display: flex;
  9916. align-items: center;
  9917. }
  9918. .info_steps span:nth-child(1) {
  9919. width: 30px;
  9920. height: 30px;
  9921. background: rgba(0, 0, 0, 0.38);
  9922. display: block;
  9923. color: #fff;
  9924. border-radius: 40px;
  9925. text-align: center;
  9926. line-height: 30px;
  9927. }
  9928. .steps_active {
  9929. background: #3d67bc !important;
  9930. }
  9931. .info_steps span:nth-child(2) {
  9932. margin-left: 5px;
  9933. }
  9934. .right {
  9935. height: 100%;
  9936. width: 100%;
  9937. display: flex;
  9938. overflow: hidden;
  9939. flex-direction: column;
  9940. }
  9941. .basic_box {
  9942. margin: 0 auto;
  9943. position: relative;
  9944. padding: 0 20px 0 20px;
  9945. }
  9946. .basic_box_success {
  9947. width: 100%;
  9948. min-height: 455px;
  9949. padding: 50px 0;
  9950. position: relative;
  9951. text-align: center;
  9952. border-bottom: 1px solid #bfbfbf;
  9953. box-sizing: border-box;
  9954. display: flex;
  9955. align-items: center;
  9956. flex-direction: column;
  9957. justify-content: center;
  9958. }
  9959. .info_title {
  9960. font-size: 1.5em;
  9961. margin-right: 25px;
  9962. /* margin: 20px 30px 20px 30px; */
  9963. }
  9964. .bInfo_title {
  9965. text-align: left;
  9966. margin: 10px 0;
  9967. }
  9968. .small_title {
  9969. font-size: 14px;
  9970. line-height: 40px;
  9971. }
  9972. .chapter_beizhu {
  9973. font-size: 12px;
  9974. font-weight: bold;
  9975. float: right;
  9976. color: rgb(128, 128, 128);
  9977. margin-top: 5px;
  9978. }
  9979. .chapter_uploadBox1 {
  9980. text-align: left;
  9981. background-color: rgb(242, 242, 242);
  9982. width: 100%;
  9983. height: 67px;
  9984. padding: 0px 15px;
  9985. border-radius: 8px;
  9986. overflow: hidden;
  9987. font-size: 16px;
  9988. box-sizing: border-box;
  9989. position: relative;
  9990. }
  9991. .chapter_add {
  9992. width: 100%;
  9993. height: 32px;
  9994. margin-top: 15px;
  9995. cursor: pointer;
  9996. }
  9997. .chapter_add_l {
  9998. margin-left: 5px;
  9999. width: 30px;
  10000. height: 30px;
  10001. float: left;
  10002. border: 1px solid #aaa;
  10003. color: #aaa;
  10004. border-radius: 50%;
  10005. font-size: 25px;
  10006. text-align: center;
  10007. }
  10008. .chapter_add_r {
  10009. font-size: 18px;
  10010. height: 40px;
  10011. line-height: 30px;
  10012. text-indent: 10px;
  10013. color: #aaa;
  10014. }
  10015. .chapter_add_r span {
  10016. font-size: 12px;
  10017. color: rgb(204, 204, 204);
  10018. }
  10019. .chapter_add_input {
  10020. display: none;
  10021. }
  10022. .line {
  10023. width: 85%;
  10024. margin: 0 auto;
  10025. border-top: 1px solid #e5e5e5;
  10026. margin-top: 20px;
  10027. }
  10028. .info_btnBox {
  10029. width: calc(100%);
  10030. display: flex;
  10031. justify-content: center;
  10032. height: 80px;
  10033. align-items: center;
  10034. background: #fff;
  10035. margin: 0 auto;
  10036. border-top: 2px solid rgb(228, 232, 237);
  10037. box-sizing: border-box;
  10038. }
  10039. .info_btnBox2 {
  10040. width: calc(100%);
  10041. display: flex;
  10042. justify-content: center;
  10043. height: 20px;
  10044. align-items: center;
  10045. background: #fff;
  10046. margin: 0 auto;
  10047. border-top: 2px solid rgb(228, 232, 237);
  10048. box-sizing: border-box;
  10049. overflow: hidden;
  10050. cursor: pointer;
  10051. }
  10052. .info_btnBox3 {
  10053. width: calc(100%);
  10054. display: flex;
  10055. justify-content: flex-end;
  10056. padding: 0 20px;
  10057. height: 60px;
  10058. align-items: center;
  10059. background: unset;
  10060. margin: 0 auto;
  10061. /* border-top: 1px solid rgb(228, 232, 237); */
  10062. box-sizing: border-box;
  10063. overflow: hidden;
  10064. cursor: pointer;
  10065. background: #fff;
  10066. border-radius: 10px;
  10067. }
  10068. .info_btn+.info_btn {
  10069. margin-left: 15px;
  10070. }
  10071. .info_btn,
  10072. .teacherWord {
  10073. color: #fff;
  10074. background-color: #0f7eff;
  10075. padding: 8px 24px;
  10076. font-size: 0.9375rem;
  10077. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10078. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10079. min-width: 64px;
  10080. font-weight: 500;
  10081. border-radius: 4px;
  10082. box-sizing: border-box;
  10083. border: none;
  10084. cursor: pointer;
  10085. }
  10086. .teacherWord {
  10087. width: 105px !important;
  10088. text-align: center !important;
  10089. line-height: 36px !important;
  10090. padding: 0 !important;
  10091. font-size: 14px !important;
  10092. margin: 10px 0 !important;
  10093. }
  10094. .template_box{
  10095. display: flex;
  10096. flex-wrap: wrap;
  10097. }
  10098. .wordTeacher {
  10099. display: flex;
  10100. flex-direction: column;
  10101. width: 100px;
  10102. height: 100px;
  10103. text-align: center;
  10104. font-size: 13px;
  10105. margin: 0 20px 20px 0 ;
  10106. background: #F0F4FA;;
  10107. position: relative;
  10108. border-radius: 5px;
  10109. align-items: center;
  10110. justify-content: center;
  10111. border: 1px solid #CAD1DC;
  10112. color: #0E1E33;
  10113. /* padding: 25px 0px; */
  10114. cursor: pointer;
  10115. }
  10116. .wordTeacher::after{
  10117. content: '';
  10118. display:block;
  10119. position: absolute;
  10120. width: 15px;
  10121. height: 15px;
  10122. right:10px;
  10123. top:10px;
  10124. background-image: url(../../assets/icon/new/choose_a.png);
  10125. background-size:100% 100%;
  10126. }
  10127. .wordTeacherA::after{
  10128. background-image: url(../../assets/icon/new/choose_b.png)
  10129. }
  10130. .wordTeacher:nth-child(5n){
  10131. margin-right: 0px;
  10132. }
  10133. .wordPic {
  10134. margin: 0 auto;
  10135. width: 30px;
  10136. height: 30px;
  10137. cursor: pointer;
  10138. }
  10139. .deleteWord {
  10140. width: 22px;
  10141. height: 22px;
  10142. position: absolute;
  10143. right: 5px;
  10144. top: -15px;
  10145. cursor: pointer;
  10146. display: none;
  10147. z-index: 999;
  10148. }
  10149. .wordPic>img,
  10150. .deleteWord>img,
  10151. .addToolImg>img {
  10152. width: 100%;
  10153. height: 100%;
  10154. }
  10155. .info_btn:hover {
  10156. background-color: #4f7cd5 !important;
  10157. }
  10158. .cru_selectBox {
  10159. display: flex;
  10160. margin: 15px 0;
  10161. flex-wrap: nowrap;
  10162. white-space: nowrap;
  10163. overflow: auto;
  10164. position: relative;
  10165. height: 40px;
  10166. max-width: calc(100% - 175px);
  10167. }
  10168. .cru_selectBox::-webkit-scrollbar {
  10169. /*滚动条整体样式*/
  10170. width: 6px;
  10171. /*高宽分别对应横竖滚动条的尺寸*/
  10172. height: 6px;
  10173. }
  10174. /*定义滚动条轨道 内阴影+圆角*/
  10175. .cru_selectBox::-webkit-scrollbar-track {
  10176. border-radius: 10px;
  10177. background-color: #eee;
  10178. }
  10179. /*定义滑块 内阴影+圆角*/
  10180. .cru_selectBox::-webkit-scrollbar-thumb {
  10181. border-radius: 10px;
  10182. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10183. background-color: rgba(0, 0, 0, 0.1);
  10184. }
  10185. .cru_line {
  10186. position: absolute;
  10187. bottom: 0px;
  10188. transition: all 0.5s;
  10189. left: 0px;
  10190. width: 50px;
  10191. height: 4px;
  10192. left: 10px;
  10193. border-radius: 2px;
  10194. background: #3681FC;
  10195. }
  10196. .cru_select {
  10197. font-size: 18px;
  10198. margin-right: 20px;
  10199. margin-left: 5px;
  10200. cursor: pointer;
  10201. color: #0E1E33;
  10202. }
  10203. .cru_select:hover {
  10204. color: #3681FC !important;
  10205. }
  10206. .cru_selected {
  10207. color: #3681FC !important;
  10208. font-weight: bold;
  10209. }
  10210. .chapter_box {
  10211. margin-top: 10px;
  10212. width: 100%;
  10213. padding: 10px 20px;
  10214. background: #fff;
  10215. border-radius: 8px;
  10216. box-sizing: border-box;
  10217. }
  10218. .chapter_contentbox {
  10219. display: flex;
  10220. align-items: center;
  10221. /* margin-top: 15px; */
  10222. }
  10223. .chapter_contentbox .cc_title {
  10224. margin: 0px;
  10225. color: black;
  10226. display: block;
  10227. white-space: nowrap;
  10228. overflow: hidden;
  10229. text-overflow: ellipsis;
  10230. margin-right: 20px;
  10231. font-size: 18px;
  10232. height: 20px;
  10233. line-height: 22px;
  10234. min-width: fit-content;
  10235. display: flex;
  10236. }
  10237. .chapter_contentbox .cc_title::before {
  10238. content: '';
  10239. height: 100%;
  10240. width: 3px;
  10241. background: #3681FC;
  10242. border-radius: 3px;
  10243. opacity: 1;
  10244. display: block;
  10245. margin-right: 10px;
  10246. }
  10247. .chapter_contentbox .cc_input {
  10248. width: 100%;
  10249. display: flex;
  10250. }
  10251. .show_taskD {
  10252. min-width: fit-content;
  10253. margin-left: 10px;
  10254. display: flex;
  10255. align-items: center;
  10256. font-size: 14px;
  10257. cursor: pointer;
  10258. color: #717C8D;
  10259. }
  10260. .show_taskD>img {
  10261. width: 15px;
  10262. margin-right: 5px;
  10263. transition: .2s all;
  10264. transform: rotate(-90deg);
  10265. }
  10266. .show_taskD.show>img {
  10267. transform: rotate(0deg);
  10268. }
  10269. .show_toolD {
  10270. min-width: fit-content;
  10271. margin-left: 10px;
  10272. display: flex;
  10273. align-items: center;
  10274. font-size: 14px;
  10275. cursor: pointer;
  10276. color: #717C8D;
  10277. /* position: absolute;
  10278. right: 45px;
  10279. top: 5px; */
  10280. }
  10281. .show_toolD>img {
  10282. width: 15px;
  10283. margin-right: 5px;
  10284. transition: .2s all;
  10285. transform: rotate(-90deg);
  10286. }
  10287. .show_toolD.show>img {
  10288. transform: rotate(0deg);
  10289. }
  10290. .remove {
  10291. background-image: url("../../assets/icon/new/delete_u.png");
  10292. cursor: pointer;
  10293. opacity: 0.5;
  10294. width: 30px;
  10295. min-width: 30px;
  10296. height: 30px;
  10297. background-size: 100% 100%;
  10298. background-repeat: no-repeat;
  10299. margin-left: 10px;
  10300. }
  10301. .remove1 {
  10302. background-image: url("../../assets/remove1.png");
  10303. background-repeat: no-repeat;
  10304. background-position: 5px 10px;
  10305. width: 40px;
  10306. height: 50px;
  10307. cursor: pointer;
  10308. margin-left: 10px;
  10309. }
  10310. .binfo_input {
  10311. width: 100%;
  10312. margin: 0;
  10313. padding: 12px 14px;
  10314. display: block;
  10315. min-width: 0;
  10316. outline: none;
  10317. box-sizing: border-box;
  10318. background: none;
  10319. border: none;
  10320. border-radius: 4px;
  10321. background: #fff;
  10322. font-size: 16px;
  10323. resize: none;
  10324. font-family: 'Microsoft YaHei';
  10325. min-height: 48px;
  10326. /* border: 1px solid #3682fc00; */
  10327. border: 1.5px solid #CAD1DC;
  10328. }
  10329. .binfo_textarea {
  10330. border: 1.5px solid #CAD1DC;
  10331. font-size: 16px;
  10332. resize: none;
  10333. /* background: #f6f6f6; */
  10334. font-family: 'Microsoft YaHei';
  10335. }
  10336. .binfo_input:focus-visible {
  10337. border: 1.5px solid #3681FC !important;
  10338. }
  10339. .time {
  10340. display: flex;
  10341. margin: 35px 0 80px 0;
  10342. }
  10343. .chapter_btnbox {
  10344. width: 160px;
  10345. border-radius: 5px;
  10346. border: 2px dashed gray;
  10347. display: flex;
  10348. padding: 8px 50px;
  10349. align-items: center;
  10350. justify-content: center;
  10351. margin: 30px auto 0;
  10352. cursor: pointer;
  10353. }
  10354. .icon_add {
  10355. position: relative;
  10356. width: 24px;
  10357. padding-top: 20px;
  10358. border-radius: 100%;
  10359. border-width: 2px;
  10360. border-style: solid;
  10361. border-color: gray;
  10362. }
  10363. .icon_add i:nth-child(1) {
  10364. position: absolute;
  10365. left: 50%;
  10366. top: 50%;
  10367. height: 60%;
  10368. transform: translate(-50%, -50%);
  10369. border-width: 1px;
  10370. border-style: solid;
  10371. border-color: inherit;
  10372. }
  10373. .icon_add i:nth-child(2) {
  10374. position: absolute;
  10375. top: 50%;
  10376. left: 50%;
  10377. width: 60%;
  10378. transform: translate(-50%, -50%);
  10379. border-width: 1px;
  10380. border-style: solid;
  10381. border-color: inherit;
  10382. }
  10383. .chapter_btn_w {
  10384. font-size: 0.9375rem;
  10385. font-weight: bold;
  10386. color: gray;
  10387. margin-left: 20px;
  10388. }
  10389. .disUoloadSty>>>.el-icon-plus {
  10390. display: none !important;
  10391. /* 上传按钮隐藏 */
  10392. }
  10393. .imgLeft {
  10394. margin: 15px 0;
  10395. }
  10396. .add_info_box {
  10397. margin: 0 0 0 auto;
  10398. display: flex;
  10399. flex-wrap: wrap;
  10400. }
  10401. .add_info_box button {
  10402. margin: 0 5px 10px 0;
  10403. }
  10404. .add_info_box2 {
  10405. display: flex;
  10406. align-items: center;
  10407. flex-wrap: wrap;
  10408. }
  10409. .add_info_box2::after {
  10410. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10411. color: red;
  10412. font-size: 14px;
  10413. margin-bottom: 10px;
  10414. }
  10415. .add_chapters_box {
  10416. text-align: left;
  10417. background-color: #fff;
  10418. width: 100%;
  10419. border-radius: 4px;
  10420. font-size: 16px;
  10421. box-sizing: border-box;
  10422. position: relative;
  10423. padding: 0 15px;
  10424. height: auto;
  10425. overflow-y: auto;
  10426. overflow-x: hidden;
  10427. border: 1px solid #CAD1DC;
  10428. }
  10429. .add_chapters_box.add_c_none {
  10430. display: flex;
  10431. justify-content: center;
  10432. align-items: center;
  10433. padding: 15px;
  10434. }
  10435. .add_c_none>img {
  10436. width: 25px;
  10437. }
  10438. .add_chapters_box.add_c_none>span {
  10439. font-size: 14px;
  10440. font-weight: 400;
  10441. margin: 0 0 5px 5px;
  10442. }
  10443. .homework_box {
  10444. display: flex;
  10445. align-items: flex-start;
  10446. flex-wrap: wrap;
  10447. margin: 15px 0 0 0;
  10448. flex-direction: column;
  10449. align-content: flex-start;
  10450. }
  10451. .course_homework {
  10452. display: flex;
  10453. justify-content: center;
  10454. flex-direction: row;
  10455. align-items: center;
  10456. margin: 0 10px 0 0;
  10457. }
  10458. .course_homework>>>.el-input__inner {
  10459. width: 140px;
  10460. margin-left: 15px;
  10461. }
  10462. .chapter_upload_move {
  10463. position: relative;
  10464. background-color: #fff;
  10465. position: absolute;
  10466. width: 100%;
  10467. top: 0px;
  10468. left: 0px;
  10469. border: 1px solid #eee;
  10470. border-radius: 5px;
  10471. transition: width 2s;
  10472. -moz-transition: width 2s;
  10473. -webkit-transition: width 2s;
  10474. -o-transition: width 2s;
  10475. }
  10476. .chapter_upload_l_i {
  10477. background-image: url("../../assets/icon.png");
  10478. background-position: 3px -165px;
  10479. width: 30px;
  10480. height: 30px;
  10481. margin: 10px auto 0 auto;
  10482. }
  10483. .course_input_box {
  10484. display: flex;
  10485. margin-right: 20px;
  10486. width: 100%;
  10487. align-items: center;
  10488. position: relative;
  10489. }
  10490. .course_input_box>.binfo_input {
  10491. width: calc(100% - 0 - 200px - 20px);
  10492. margin: 0 10px;
  10493. }
  10494. .bb_courseIcon {
  10495. width: 57px;
  10496. height: 45px;
  10497. background: #F0F4FA;
  10498. border-radius: 5px 0px 0px 5px;
  10499. display: flex;
  10500. align-items: center;
  10501. justify-content: center;
  10502. border-right: 1.5px solid rgb(202, 209, 220);
  10503. box-sizing: border-box;
  10504. position: absolute;
  10505. left: 1.5px
  10506. }
  10507. .bb_courseIcon>img {
  10508. width: 25px;
  10509. height: auto
  10510. }
  10511. .big_box {
  10512. /* margin-top: 20px; */
  10513. display: flex;
  10514. justify-content: space-between;
  10515. /* border-bottom: 1px solid #E0E2ED; */
  10516. }
  10517. .left_first {
  10518. display: flex;
  10519. flex-direction: column;
  10520. flex-wrap: nowrap;
  10521. width: calc(100% - 310px);
  10522. padding: 20px;
  10523. box-sizing: border-box;
  10524. background: #fff;
  10525. border-radius: 5px;
  10526. }
  10527. .right_first {
  10528. width: 300px;
  10529. display: flex;
  10530. align-items: center;
  10531. justify-content: center;
  10532. /* border-left: 1px solid #E0E2ED; */
  10533. box-sizing: border-box;
  10534. padding: 20px;
  10535. flex-direction: column;
  10536. background: #fff;
  10537. border-radius: 5px;
  10538. }
  10539. .ai_box {
  10540. width: 204px;
  10541. display: flex;
  10542. justify-content: flex-end;
  10543. margin-bottom: 15px;
  10544. }
  10545. .ai_content {
  10546. display: flex;
  10547. align-items: center;
  10548. font-size: 14px;
  10549. padding: 7px 20px;
  10550. box-sizing: border-box;
  10551. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10552. border-radius: 12px;
  10553. font-weight: 700;
  10554. cursor: pointer;
  10555. }
  10556. .ai_content>img {
  10557. width: 40px;
  10558. margin-right: 5px;
  10559. }
  10560. .c_info_title {
  10561. padding: 15px 0 15px 0;
  10562. font-size: 16px;
  10563. font-weight: bold;
  10564. margin: 0 0 0 20px;
  10565. box-sizing: border-box;
  10566. display: flex;
  10567. align-items: center;
  10568. line-height: 20px;
  10569. }
  10570. .c_info_title::before {
  10571. content: '';
  10572. display: block;
  10573. width: 3px;
  10574. height: 20px;
  10575. background: #0061FF;
  10576. border-radius: 3px;
  10577. margin: 0 5px 0 0;
  10578. }
  10579. .right_title {
  10580. height: 30px;
  10581. padding: 15px 0 15px 20px;
  10582. border-bottom: 1px solid #f2f2f2;
  10583. font-size: 1.5em;
  10584. font-weight: bold;
  10585. color: #0f7eff;
  10586. margin: 0 auto;
  10587. }
  10588. .people {
  10589. border: 1px solid rgb(229 229 229);
  10590. /* height: 495px; */
  10591. height: 350px;
  10592. border-radius: 5px;
  10593. width: 100%;
  10594. overflow: auto;
  10595. }
  10596. .people_top {
  10597. display: flex;
  10598. width: 100%;
  10599. /* justify-content: space-between; */
  10600. /* align-items: center; */
  10601. flex-direction: column;
  10602. padding: 10px 10px 0;
  10603. box-sizing: border-box;
  10604. }
  10605. .people_nav,
  10606. .people_top_right {
  10607. /* padding: 20px 0 0 20px; */
  10608. }
  10609. .people_top_right {
  10610. height: 40px;
  10611. margin-bottom: 10px;
  10612. }
  10613. .people_search {
  10614. display: flex;
  10615. position: relative;
  10616. }
  10617. .people_search>>>.el-input__inner {
  10618. /* height: 25px; */
  10619. width: 95%;
  10620. }
  10621. .search_img {
  10622. width: 20px;
  10623. height: 20px;
  10624. position: absolute;
  10625. right: 30px;
  10626. top: 50%;
  10627. transform: translateY(-50%);
  10628. }
  10629. .search_img>img {
  10630. width: 100%;
  10631. height: 100%;
  10632. }
  10633. .people_name {
  10634. display: flex;
  10635. justify-content: flex-start;
  10636. padding: 20px 10px;
  10637. flex-direction: column;
  10638. flex-wrap: wrap;
  10639. }
  10640. .p_box {
  10641. position: relative;
  10642. }
  10643. .people_name>>>.el-checkbox {
  10644. width: 100%;
  10645. display: flex;
  10646. align-items: center;
  10647. margin-bottom: 10px;
  10648. }
  10649. .people_name>>>.el-checkbox__label {
  10650. text-overflow: ellipsis;
  10651. overflow: hidden;
  10652. width: calc(100%);
  10653. }
  10654. .people_name2>>>.el-checkbox__label {
  10655. width: calc(100% - 130px);
  10656. }
  10657. .inviteCode {
  10658. position: absolute;
  10659. right: 30px;
  10660. color: #237ade;
  10661. top: 0;
  10662. cursor: pointer;
  10663. font-size: 13px;
  10664. }
  10665. .noneInvite {
  10666. color: #a8a8a8;
  10667. }
  10668. .inviteImg {
  10669. position: absolute;
  10670. right: 5px;
  10671. top: 0;
  10672. width: 20px;
  10673. }
  10674. .right_img {
  10675. width: 150px;
  10676. height: 150px;
  10677. margin: 0 auto;
  10678. }
  10679. .right_img>img {
  10680. width: 100%;
  10681. height: 100%;
  10682. }
  10683. .number {
  10684. margin-top: 20px;
  10685. color: #4aa6ff;
  10686. text-decoration: underline;
  10687. }
  10688. .success_button {
  10689. display: flex;
  10690. text-align: center;
  10691. margin: 5% 0 auto;
  10692. flex-direction: row;
  10693. justify-content: center;
  10694. }
  10695. .look_course {
  10696. margin-right: 40px;
  10697. background: #3d67bc;
  10698. width: 200px;
  10699. height: 35px;
  10700. line-height: 35px;
  10701. color: #fff;
  10702. text-align: center;
  10703. font-size: 14px;
  10704. border-radius: 5px;
  10705. cursor: pointer;
  10706. }
  10707. .attend_others {
  10708. width: 250px;
  10709. background: #4fb13c;
  10710. height: 35px;
  10711. line-height: 35px;
  10712. color: #fff;
  10713. text-align: center;
  10714. font-size: 14px;
  10715. border-radius: 5px;
  10716. cursor: pointer;
  10717. }
  10718. .dialog_diy2>>>.el-dialog__body {
  10719. text-align: center;
  10720. }
  10721. .write_togother {
  10722. position: absolute;
  10723. right: 45px;
  10724. display: flex;
  10725. top: 5%;
  10726. }
  10727. .write_people {
  10728. font-size: 14px;
  10729. line-height: 50px;
  10730. padding-right: 10px;
  10731. }
  10732. .end_write {
  10733. background: #3d67bc;
  10734. color: #fff;
  10735. width: 100px;
  10736. height: 35px;
  10737. line-height: 35px;
  10738. text-align: center;
  10739. font-size: 14px;
  10740. border-radius: 5px;
  10741. cursor: pointer;
  10742. }
  10743. .chapter_upload+.chapter_upload {
  10744. /* margin-top: 15px; */
  10745. border-top: 1px solid #E7EBF1;
  10746. }
  10747. .chapter_upload {
  10748. height: 45px;
  10749. position: relative;
  10750. display: flex;
  10751. align-items: center;
  10752. width: 100%;
  10753. min-height: 45px;
  10754. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  10755. /* border-radius: 4px; */
  10756. /* overflow: hidden; */
  10757. box-sizing: border-box;
  10758. }
  10759. .chapter_upload_drag {
  10760. position: absolute;
  10761. cursor: pointer;
  10762. width: 16px;
  10763. height: 16px;
  10764. left: -9px;
  10765. background-image: url("../../assets/icon/new/icon_course_drag.png");
  10766. background-size: 100% 100%;
  10767. z-index: 10;
  10768. }
  10769. .chapter_upload_t {
  10770. background-color: #fff;
  10771. position: absolute;
  10772. height: 100%;
  10773. top: 0px;
  10774. left: 0px;
  10775. box-sizing: border-box;
  10776. }
  10777. .chapter_upload_o {
  10778. width: 100%;
  10779. height: 100%;
  10780. position: relative;
  10781. z-index: 1;
  10782. }
  10783. .chapter_upload_ic {
  10784. margin: 0 15px 0px auto;
  10785. display: flex;
  10786. align-items: center;
  10787. }
  10788. .chapter_upload_ic_l {
  10789. width: 50px;
  10790. height: 50px;
  10791. float: left;
  10792. }
  10793. .chapter_upload_ic_l div {
  10794. width: 30px;
  10795. height: 35px;
  10796. background: url("../../assets/icon/icon.png");
  10797. }
  10798. .chapter_upload_ic_edit {
  10799. height: 100%;
  10800. display: flex;
  10801. align-items: center;
  10802. cursor: pointer;
  10803. margin: 0 10px 0 0;
  10804. }
  10805. .chapter_upload_ic_edit div {
  10806. width: 18px;
  10807. height: 18px;
  10808. background-image: url("../../assets/icon/new/edit_u.png");
  10809. background-size: 100% 100%;
  10810. }
  10811. .chapter_upload_ic_r {
  10812. height: 100%;
  10813. display: flex;
  10814. align-items: center;
  10815. cursor: pointer;
  10816. }
  10817. .chapter_upload_ic_r div {
  10818. width: 18px;
  10819. height: 18px;
  10820. background-image: url("../../assets/icon/new/delete_u.png");
  10821. background-size: 100% 100%;
  10822. }
  10823. .chapter_upload_n {
  10824. display: flex;
  10825. text-indent: 10px;
  10826. text-decoration: none;
  10827. text-overflow: ellipsis;
  10828. white-space: nowrap;
  10829. overflow: hidden;
  10830. width: 55%;
  10831. margin-left: 10px;
  10832. cursor: pointer;
  10833. margin-top: 2px;
  10834. align-items: center;
  10835. }
  10836. .chapter_upload_l_i2,
  10837. .chapter_upload_l_i3,
  10838. .chapter_upload_l_i8,
  10839. .chapter_upload_l_i6,
  10840. .chapter_upload_l_i12,
  10841. .chapter_upload_l_i14,
  10842. .chapter_upload_l_i13 {
  10843. width: 15px;
  10844. height: 15px;
  10845. background-size: 100% 100%;
  10846. }
  10847. .chapter_upload_l_i2 {
  10848. background-image: url("../../assets/icon/new/u_word.png");
  10849. }
  10850. .chapter_upload_l_i3 {
  10851. background-image: url("../../assets/icon/new/u_video.png");
  10852. }
  10853. .chapter_upload_l_i8 {
  10854. background-image: url("../../assets/icon/new/u_url.png");
  10855. }
  10856. .chapter_upload_l_i14 {
  10857. background-image: url("../../assets/icon/new/u_source.png");
  10858. }
  10859. .chapter_upload_l_i6 {
  10860. background-image: url("../../assets/icon/new/u_picture.png");
  10861. }
  10862. .chapter_upload_l_i12 {
  10863. background-image: url("../../assets/icon/new/u_word.png");
  10864. }
  10865. .chapter_upload_l_i13 {
  10866. background-image: url("../../assets/icon/new/u_img.png");
  10867. }
  10868. .chapter_upload_noSee {
  10869. background-image: url("../../assets/icon/new/u_noUpload.png");
  10870. width: 18px;
  10871. height: 18px;
  10872. background-size: 100% 100%;
  10873. display: block;
  10874. margin-right: 10px;
  10875. }
  10876. .chapter_upload_ud {
  10877. display: flex;
  10878. flex-direction: row;
  10879. justify-content: center;
  10880. margin: 0 10px 0 0;
  10881. }
  10882. .chapter_upload_ud>.chapter_upload_up {
  10883. margin-bottom: 0;
  10884. margin-right: 10px;
  10885. }
  10886. .chapter_upload_down,
  10887. .chapter_upload_up {
  10888. width: 20px;
  10889. height: 20px;
  10890. background: #e4eaf2;
  10891. cursor: pointer;
  10892. margin: 0 auto;
  10893. border-radius: 5px;
  10894. display: flex;
  10895. justify-content: center;
  10896. align-items: center;
  10897. }
  10898. .chapter_upload_up::after,
  10899. .chapter_upload_down::after {
  10900. content: '';
  10901. background-image: url('../../assets/icon/new/downBtn.png');
  10902. width: 13px;
  10903. height: 13px;
  10904. background-size: 100% 100%;
  10905. display: block;
  10906. }
  10907. .chapter_upload_up::after {
  10908. background-image: url('../../assets/icon/new/upBtn.png') !important;
  10909. }
  10910. .chapter_upload_up {
  10911. margin-bottom: 5px;
  10912. }
  10913. .chapter_upload_ud2 {
  10914. display: flex;
  10915. flex-direction: row;
  10916. justify-content: center;
  10917. margin: 0 10px 0 0;
  10918. }
  10919. .chapter_upload_ud2>.chapter_upload_up2 {
  10920. margin-bottom: 0;
  10921. margin-right: 10px;
  10922. }
  10923. .chapter_upload_down2,
  10924. .chapter_upload_up2 {
  10925. cursor: pointer;
  10926. margin: 0 auto;
  10927. border-radius: 5px;
  10928. display: flex;
  10929. justify-content: center;
  10930. align-items: center;
  10931. color: #717C8D;
  10932. font-size: 14px;
  10933. }
  10934. .chapter_upload_up2{
  10935. margin-right:10px;
  10936. }
  10937. .chapter_upload_up2::before,
  10938. .chapter_upload_down2::before {
  10939. content: '';
  10940. background-image: url('../../assets/icon/new/c_up.png');
  10941. width: 14px;
  10942. height: 14px;
  10943. background-size: 100% 100%;
  10944. display: block;
  10945. margin-right: 5px;
  10946. }
  10947. .chapter_upload_up2::before {
  10948. background-image: url('../../assets/icon/new/c_down.png') !important;
  10949. }
  10950. .addWordStyle {
  10951. display: flex;
  10952. flex-direction: row;
  10953. justify-content: flex-start;
  10954. overflow-x: auto;
  10955. white-space: nowrap;
  10956. flex-wrap: wrap;
  10957. }
  10958. /* table 样式 */
  10959. .cont>>>table {
  10960. border-top: 1px solid #ccc;
  10961. border-left: 1px solid #ccc;
  10962. }
  10963. .cont>>>table td,
  10964. .cont>>>table th {
  10965. border-bottom: 1px solid #ccc;
  10966. border-right: 1px solid #ccc;
  10967. /* padding: 20px 5px; */
  10968. padding: 5px 10px;
  10969. max-width: 0px;
  10970. height: 30px;
  10971. vertical-align: baseline;
  10972. }
  10973. .cont>>>table th {
  10974. border-bottom: 2px solid #ccc;
  10975. text-align: center;
  10976. }
  10977. /* blockquote 样式 */
  10978. .cont>>>blockquote {
  10979. display: block;
  10980. border-left: 8px solid #d0e5f2;
  10981. padding: 5px 10px;
  10982. margin: 10px 0;
  10983. line-height: 1.4;
  10984. font-size: 100%;
  10985. background-color: #f1f1f1;
  10986. }
  10987. /* code 样式 */
  10988. .cont>>>code {
  10989. display: inline-block;
  10990. /* *display: inline; */
  10991. zoom: 1;
  10992. background-color: #f1f1f1;
  10993. border-radius: 3px;
  10994. padding: 3px 5px;
  10995. margin: 0 3px;
  10996. }
  10997. .cont>>>pre code {
  10998. display: block;
  10999. }
  11000. /* ul ol 样式 */
  11001. .cont>>>ul,
  11002. ol {
  11003. margin: 10px 0 10px 20px;
  11004. }
  11005. .wordbox {
  11006. display: flex;
  11007. flex-wrap: wrap;
  11008. cursor: pointer;
  11009. width: 100%;
  11010. }
  11011. .checkword {
  11012. width: 22px;
  11013. height: 22px;
  11014. margin: 10px auto 0;
  11015. cursor: pointer;
  11016. }
  11017. .checkword img {
  11018. width: 100%;
  11019. }
  11020. .stepBg {
  11021. display: flex;
  11022. justify-content: space-between;
  11023. align-items: center;
  11024. background: #fff;
  11025. width: calc(100%);
  11026. margin: 0 auto;
  11027. }
  11028. .stepBorder {
  11029. height: 3px !important;
  11030. background: #CAD1DC;
  11031. width: 100px !important;
  11032. margin: 0 15px !important;
  11033. position: relative;
  11034. }
  11035. .border-active {
  11036. background: #3681FC !important
  11037. }
  11038. .border-active::before,
  11039. .border-active::after {
  11040. border-color: #3681FC !important
  11041. }
  11042. .stepBorder::before,
  11043. .stepBorder::after {
  11044. content: '';
  11045. width: 9px;
  11046. height: 9px;
  11047. background: #FFFFFF;
  11048. opacity: 1;
  11049. border: 2px solid #ACB4BF;
  11050. display: block;
  11051. box-sizing: border-box;
  11052. border-radius: 50%;
  11053. position: absolute;
  11054. top: 50%;
  11055. transform: translateY(-50%);
  11056. }
  11057. .stepBorder::after {
  11058. right: -9px;
  11059. }
  11060. .stepTop {
  11061. width: 100%;
  11062. /* border-radius: 10px; */
  11063. display: flex;
  11064. justify-content: center;
  11065. align-items: center;
  11066. flex-wrap: nowrap;
  11067. background: #fff;
  11068. /* top: 18%; */
  11069. height: 80px;
  11070. border-bottom: 2px solid rgb(228, 232, 237);
  11071. box-sizing: border-box;
  11072. }
  11073. .stepTop2 {
  11074. width: 100%;
  11075. /* border-radius: 10px; */
  11076. display: flex;
  11077. justify-content: center;
  11078. align-items: center;
  11079. flex-wrap: nowrap;
  11080. background: #fff;
  11081. /* top: 18%; */
  11082. height: 20px;
  11083. border-bottom: 2px solid rgb(228, 232, 237);
  11084. box-sizing: border-box;
  11085. overflow: hidden;
  11086. cursor: pointer;
  11087. }
  11088. .stepTop>div img {
  11089. width: 100%;
  11090. }
  11091. .stepTop>div {
  11092. height: 50px;
  11093. width: 180px;
  11094. cursor: pointer;
  11095. margin: 10px 0;
  11096. border-radius: 10px;
  11097. }
  11098. .first,
  11099. .second,
  11100. .third,
  11101. .four {
  11102. background: #3681FC;
  11103. height: 90px;
  11104. color: #fff;
  11105. display: flex;
  11106. flex-direction: row;
  11107. align-items: center;
  11108. justify-content: center;
  11109. }
  11110. .first>div:nth-child(1),
  11111. .second>div:nth-child(1),
  11112. .third>div:nth-child(1),
  11113. .four>div:nth-child(1) {
  11114. margin: 5px 10px 0 0;
  11115. width: 2rem;
  11116. }
  11117. .firstNo,
  11118. .secondNo,
  11119. .thirdNo,
  11120. .fourNo {
  11121. background: #e7e7e7;
  11122. color: #adadad;
  11123. display: flex;
  11124. flex-direction: row;
  11125. align-items: center;
  11126. justify-content: center;
  11127. }
  11128. .firstNo>div:nth-child(1),
  11129. .secondNo>div:nth-child(1),
  11130. .thirdNo>div:nth-child(1),
  11131. .fourNo>div:nth-child(1) {
  11132. margin: 5px 10px 0 0;
  11133. width: 2rem;
  11134. }
  11135. .uploadWidth>>>.el-upload {
  11136. width: 60px;
  11137. height: 60px;
  11138. position: relative;
  11139. }
  11140. .addPeople {
  11141. background: #fa6060;
  11142. width: 150px;
  11143. height: 40px;
  11144. color: #fff;
  11145. border-radius: 5px;
  11146. text-align: center;
  11147. line-height: 40px;
  11148. font-size: 14px;
  11149. cursor: pointer;
  11150. }
  11151. .kcImg {
  11152. width: 60px;
  11153. margin-left: 10px;
  11154. }
  11155. .zyImg {
  11156. width: 55px;
  11157. margin: 0 10px;
  11158. }
  11159. .deleteZy {
  11160. width: 20px;
  11161. position: absolute;
  11162. top: 5px;
  11163. right: 5px;
  11164. cursor: pointer;
  11165. }
  11166. .kcImg>img,
  11167. .zyImg>img,
  11168. .deleteZy>img {
  11169. width: 100%;
  11170. height: 100%;
  11171. }
  11172. .zyBox {
  11173. display: flex;
  11174. flex-direction: row;
  11175. align-items: center;
  11176. background: #67d37d;
  11177. color: #fff;
  11178. width: 210px;
  11179. margin: 20px 20px 0 0;
  11180. border-radius: 10px;
  11181. height: 70px;
  11182. position: relative;
  11183. }
  11184. .upCss {
  11185. display: flex;
  11186. flex-direction: row;
  11187. justify-content: flex-start;
  11188. }
  11189. .upCss>>>.el-icon-plus {
  11190. position: none !important;
  11191. width: 200px;
  11192. height: 100px;
  11193. display: flex;
  11194. flex-wrap: nowrap;
  11195. flex-direction: column;
  11196. align-items: center;
  11197. justify-content: center;
  11198. border: 1px dashed #ccc;
  11199. min-width: 78px;
  11200. min-height: 100px;
  11201. z-index: 999;
  11202. }
  11203. .upCss>>>.el-upload-list__item-name {
  11204. width: 100px;
  11205. white-space: nowrap;
  11206. overflow: hidden;
  11207. text-overflow: ellipsis;
  11208. }
  11209. .upCss>>>.el-upload-list__item .el-icon-close {
  11210. font-size: 20px;
  11211. z-index: 9999;
  11212. }
  11213. .addStageImg {
  11214. min-width: 20px;
  11215. min-height: 20px;
  11216. width: 20px;
  11217. height: 20px;
  11218. cursor: pointer;
  11219. }
  11220. .addHW {
  11221. width: 28px;
  11222. height: 28px;
  11223. cursor: pointer;
  11224. }
  11225. .addStageImg>img,
  11226. .addHW>img {
  11227. width: 100%;
  11228. height: 100%;
  11229. }
  11230. .addNewPP>>>.el-dialog__body {
  11231. padding: 5px 20px;
  11232. }
  11233. .addNewPP>>>.el-dialog {
  11234. margin-top: 5vh !important;
  11235. }
  11236. .addNewPP2>>>.el-dialog__body {
  11237. padding: 5px 0;
  11238. }
  11239. .addNewPP2>>>.el-dialog {
  11240. margin-top: 5vh !important;
  11241. }
  11242. .isHeight {
  11243. height: 680px;
  11244. }
  11245. .toolChoose {
  11246. display: flex;
  11247. /* width: 100%; */
  11248. flex-direction: row;
  11249. flex-wrap: wrap;
  11250. }
  11251. .tool,
  11252. .isToolChoose {
  11253. display: flex;
  11254. flex-direction: column;
  11255. flex-wrap: nowrap;
  11256. width: fit-content;
  11257. margin: 10px 0 10px 0;
  11258. align-items: center;
  11259. border: 2px solid #dbdbdb00;
  11260. padding: 10px 20px;
  11261. border-radius: 5px;
  11262. cursor: pointer;
  11263. /* box-shadow: 0 0 2px 0px #dedede; */
  11264. position: relative;
  11265. box-sizing: border-box;
  11266. }
  11267. .tool:hover {
  11268. border: 2px solid #a5c7ff;
  11269. }
  11270. .tool:hover>.noCTool {
  11271. display: block;
  11272. opacity: 0.5;
  11273. }
  11274. .isToolChoose {
  11275. border: 2px solid #438aff !important;
  11276. box-shadow: 0 0 2px 0px #438aff;
  11277. opacity: 1 !important;
  11278. }
  11279. .isCTool,
  11280. .noCTool {
  11281. width: 30px;
  11282. height: 30px;
  11283. position: absolute;
  11284. top: -4px;
  11285. right: -4px;
  11286. }
  11287. .noCTool {
  11288. display: none;
  11289. }
  11290. .isCTool>img,
  11291. .noCTool>img {
  11292. width: 100%;
  11293. height: 100%;
  11294. }
  11295. .tool+.tool {
  11296. margin-right: 10px;
  11297. }
  11298. .whiteBIcon {
  11299. width: 80px;
  11300. cursor: pointer;
  11301. display: flex;
  11302. flex-direction: column;
  11303. flex-wrap: nowrap;
  11304. align-items: center;
  11305. font-size: 14px;
  11306. }
  11307. .whiteBIcon>img,
  11308. .toolIcon>img,
  11309. .arrow>img {
  11310. width: 100%;
  11311. height: 100%;
  11312. }
  11313. .check img {
  11314. width: 20px;
  11315. height: 20px;
  11316. }
  11317. .whiteBIcon>img {
  11318. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11319. border-radius: 15px;
  11320. }
  11321. .whiteBIcon>div:nth-child(2) {
  11322. height: 20px;
  11323. line-height: 20px;
  11324. }
  11325. .check {
  11326. /* width: 20px;
  11327. height: 20px; */
  11328. cursor: pointer;
  11329. margin: 10px 0 0;
  11330. }
  11331. .checkDiv {
  11332. display: flex;
  11333. align-items: center;
  11334. }
  11335. .checkDiv span {
  11336. margin-left: 5px;
  11337. color: #858585;
  11338. }
  11339. .customWidth>>>.el-dialog {
  11340. min-width: 500px !important;
  11341. }
  11342. .a_addBox {
  11343. margin: 10px 0;
  11344. background: #fff;
  11345. padding: 15px;
  11346. /* max-height: 600px; */
  11347. overflow: auto;
  11348. }
  11349. .a_add_box {
  11350. border-bottom: 2px solid #eee;
  11351. padding-bottom: 25px;
  11352. }
  11353. .a_add_head {
  11354. display: flex;
  11355. align-items: center;
  11356. justify-content: space-between;
  11357. margin: 10px 0 0 0;
  11358. font-size: 18px;
  11359. }
  11360. .a_add_checkType {
  11361. margin-top: 10px;
  11362. display: flex;
  11363. font-size: 14px;
  11364. align-items: center;
  11365. }
  11366. .a_add_checkType span {
  11367. box-sizing: border-box;
  11368. padding: 0 0 5px 0;
  11369. cursor: pointer;
  11370. }
  11371. .a_add_checkType span+span {
  11372. margin-left: 10px;
  11373. }
  11374. .a_add_checkType .active {
  11375. border-bottom: 2px solid #409eff;
  11376. color: #409eff;
  11377. }
  11378. .a_add_head .a_add_head_input {
  11379. /* width: 540px; */
  11380. width: 100%;
  11381. }
  11382. .a_add_head .a_add_head_div {
  11383. display: flex;
  11384. align-items: center;
  11385. justify-content: space-between;
  11386. }
  11387. .a_add_body {
  11388. display: flex;
  11389. /* align-items: center; */
  11390. align-items: flex-end;
  11391. }
  11392. .a_add_input {
  11393. display: flex;
  11394. align-items: center;
  11395. flex-wrap: wrap;
  11396. }
  11397. .a_add_input_choice {
  11398. flex-direction: column;
  11399. margin-right: 10px;
  11400. }
  11401. .a_add_input_choice>>>.el-radio {
  11402. display: flex;
  11403. align-items: center;
  11404. flex-direction: row-reverse;
  11405. margin: 30px 0 0 0;
  11406. position: relative;
  11407. }
  11408. .a_add_input_choice>>>.el-checkbox {
  11409. display: flex;
  11410. align-items: center;
  11411. flex-direction: row-reverse;
  11412. margin: 30px 0 0 0;
  11413. position: relative;
  11414. }
  11415. .width100 {
  11416. width: 100%;
  11417. }
  11418. .a_add_input .a_add_persent {
  11419. width: 100%;
  11420. }
  11421. .a_add_persent_div {
  11422. width: 100%;
  11423. display: flex;
  11424. align-items: center;
  11425. }
  11426. .a_add_persent_div span {
  11427. margin: 5px 0;
  11428. }
  11429. .a_add_persent_div span:nth-child(1) {
  11430. width: 30%;
  11431. }
  11432. .a_add_persent_div span:nth-child(2) {
  11433. width: 7%;
  11434. }
  11435. .a_add_persent_div span:nth-child(3) {
  11436. width: 40%;
  11437. }
  11438. .a_add_body_div {
  11439. display: flex;
  11440. align-items: center;
  11441. justify-content: center;
  11442. /* flex-direction: column; */
  11443. position: absolute;
  11444. right: -20px;
  11445. transform: translateX(100%);
  11446. }
  11447. .a_add_body_div>>>.el-button--primary {
  11448. background: #466b99;
  11449. border: none;
  11450. }
  11451. .all_choose {
  11452. display: flex;
  11453. flex-direction: row;
  11454. align-items: flex-start;
  11455. width: 100%;
  11456. }
  11457. .all_choose+.all_choose {
  11458. /* margin-top: 10px */
  11459. }
  11460. .all_choose>span {
  11461. min-width: fit-content;
  11462. display: block;
  11463. white-space: nowrap;
  11464. overflow: hidden;
  11465. text-overflow: ellipsis;
  11466. margin-right: 20px;
  11467. font-weight: bold;
  11468. font-size: 14px;
  11469. }
  11470. .all_choose>>>.el-checkbox-group {
  11471. display: flex;
  11472. flex-direction: row;
  11473. width: 100%;
  11474. flex-wrap: wrap;
  11475. align-content: center;
  11476. justify-content: flex-start;
  11477. align-items: center;
  11478. margin-top: 3px;
  11479. }
  11480. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11481. margin-bottom: 10px;
  11482. display: flex;
  11483. flex-direction: row;
  11484. align-items: center;
  11485. margin-right: 10px;
  11486. }
  11487. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11488. min-width: 80px;
  11489. overflow: hidden;
  11490. width: 80px;
  11491. text-overflow: ellipsis;
  11492. white-space: nowrap;
  11493. }
  11494. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11495. width: auto;
  11496. }
  11497. .choose>div:nth-child(3)>span {
  11498. /* letter-spacing: 0 !important; */
  11499. }
  11500. .choose {
  11501. display: flex;
  11502. flex-direction: column;
  11503. flex-wrap: nowrap;
  11504. height: 100%;
  11505. justify-content: space-evenly;
  11506. align-items: flex-start;
  11507. }
  11508. .both {
  11509. display: flex;
  11510. flex-direction: row;
  11511. flex-wrap: wrap;
  11512. width: 100%;
  11513. align-items: center;
  11514. justify-content: flex-start;
  11515. margin: 15px 0;
  11516. }
  11517. .notice>>>.el-dialog {
  11518. width: 500px !important;
  11519. text-align: center;
  11520. }
  11521. .notice>>>.el-button {
  11522. margin-top: 20px;
  11523. }
  11524. .whiteBg {
  11525. /* background: #fff; */
  11526. border-radius: 10px;
  11527. }
  11528. .wb_j_box {
  11529. display: flex;
  11530. width: 100%;
  11531. padding: 0 20px 0;
  11532. box-sizing: border-box;
  11533. }
  11534. .wb_j_box_content {
  11535. width: calc(100% - 55% - 100px);
  11536. display: flex;
  11537. align-items: center;
  11538. }
  11539. .wb_j_box_p_box {
  11540. max-width: calc(100% - 200px);
  11541. word-break: break-all;
  11542. overflow: hidden;
  11543. margin: 0 0 0 10px;
  11544. font-size: 14px;
  11545. color: #6e6e6e;
  11546. z-index: 999;
  11547. }
  11548. .chooseWho {
  11549. display: flex;
  11550. width: 410px;
  11551. flex-direction: row;
  11552. flex-wrap: nowrap;
  11553. justify-content: space-between;
  11554. padding-bottom: 10px;
  11555. }
  11556. .chooseWho>div {
  11557. cursor: pointer;
  11558. padding-bottom: 10px;
  11559. font-weight: bold;
  11560. }
  11561. .isChooseActive {
  11562. color: #3e88f4;
  11563. border-bottom: 2px solid #2f80f3;
  11564. }
  11565. .toolSort {
  11566. display: flex;
  11567. flex-direction: row;
  11568. flex-wrap: wrap;
  11569. justify-content: flex-start;
  11570. align-items: flex-start;
  11571. }
  11572. .toolSort>div {
  11573. margin-right: 10px;
  11574. }
  11575. .tools {
  11576. width: 100%;
  11577. display: flex;
  11578. flex-direction: column;
  11579. flex-wrap: nowrap;
  11580. align-items: flex-start;
  11581. }
  11582. .leftTools,
  11583. .rightTools {
  11584. width: 50%;
  11585. }
  11586. .leftTools+.leftTools {
  11587. border-top: 1px solid #dbdbdb;
  11588. padding-top: 30px;
  11589. }
  11590. .rightTools {
  11591. display: flex;
  11592. flex-direction: row;
  11593. flex-wrap: nowrap;
  11594. justify-content: space-around;
  11595. }
  11596. .firstToolList {
  11597. display: flex;
  11598. flex-direction: column;
  11599. flex-wrap: nowrap;
  11600. align-items: center;
  11601. }
  11602. .iconList {
  11603. display: flex;
  11604. flex-direction: row;
  11605. flex-wrap: wrap;
  11606. justify-content: flex-start;
  11607. align-items: center;
  11608. margin: 20px 0 5px 0;
  11609. width: 240px;
  11610. min-width: 240px;
  11611. }
  11612. .iconTool {
  11613. display: flex;
  11614. flex-direction: column;
  11615. flex-wrap: nowrap;
  11616. align-items: center;
  11617. justify-content: flex-start;
  11618. margin: 15px 10px;
  11619. }
  11620. .toolIcon {
  11621. width: 50px;
  11622. }
  11623. .taskBorder {
  11624. /* border: 1px solid #CAD1DC; */
  11625. border-radius: 10px;
  11626. margin-top: 10px;
  11627. min-height: 670px;
  11628. position: relative;
  11629. background: #fff;
  11630. padding: 20px;
  11631. overflow: hidden;
  11632. box-sizing: border-box;
  11633. }
  11634. .smallTaskBorder {
  11635. height: 405px;
  11636. min-height: 405px !important;
  11637. overflow: hidden;
  11638. }
  11639. /* .taskBorder>div {
  11640. padding: 30px 30px 10px;
  11641. } */
  11642. .addTaskBorder {
  11643. /* border: 2px solid #5E9AFC; */
  11644. border-radius: 8px;
  11645. margin-top: 10px;
  11646. cursor: pointer;
  11647. /* height: 50px;
  11648. line-height: 50px; */
  11649. background: #fff;
  11650. padding: 15px 0;
  11651. display: flex;
  11652. align-items: center;
  11653. justify-content: center;
  11654. }
  11655. /* .addTaskBorder>div {
  11656. margin: 0 auto;
  11657. display: flex;
  11658. align-items: center;
  11659. justify-content: center;
  11660. }
  11661. .addTaskBorder>div>img {
  11662. width: 20px;
  11663. }
  11664. .addTaskBorder>div>span {
  11665. font-size: 16px;
  11666. margin-left: 10px;
  11667. color: #5E9AFC;
  11668. } */
  11669. .funBlock {
  11670. display: flex;
  11671. padding: 15px 0;
  11672. flex-direction: row;
  11673. justify-content: center;
  11674. align-items: center;
  11675. position: absolute;
  11676. right: 0;
  11677. bottom: 0;
  11678. background: #fff;
  11679. width: 100%;
  11680. height: 60px;
  11681. z-index: 9;
  11682. }
  11683. .fold {
  11684. display: flex;
  11685. margin: 0 20px;
  11686. flex-direction: row;
  11687. align-items: center;
  11688. cursor: pointer;
  11689. color: #2b7bff;
  11690. }
  11691. .arrow {
  11692. margin-right: 8px;
  11693. width: 16px;
  11694. height: 16px;
  11695. min-width: 16px;
  11696. min-height: 16px;
  11697. background-size: 100% 100%;
  11698. display: block;
  11699. background-image: url(../../assets/icon/new/u_up.png);
  11700. /* border-left: 7px solid transparent;
  11701. border-bottom: 7px solid #717C8D;
  11702. border-top: 0px solid transparent;
  11703. border-right: 7px solid transparent; */
  11704. /* box-sizing: border-box; */
  11705. transition: all .3s;
  11706. }
  11707. .arrowZ {
  11708. transform: rotate(180deg);
  11709. }
  11710. .addToolFun {
  11711. display: flex;
  11712. width: 150px;
  11713. flex-direction: row;
  11714. align-items: center;
  11715. justify-content: center;
  11716. border: 2px dashed #CAD1DC;
  11717. border-radius: 5px;
  11718. height: 50px;
  11719. margin: 35px auto 0;
  11720. cursor: pointer;
  11721. }
  11722. .addToolFun2 {
  11723. display: flex;
  11724. width: 150px;
  11725. border: 2px dashed #CAD1DC;
  11726. flex-direction: row;
  11727. align-items: center;
  11728. justify-content: center;
  11729. border-radius: 5px;
  11730. height: 50px;
  11731. margin: 0 auto 0;
  11732. cursor: pointer;
  11733. }
  11734. .addToolFun2>div,
  11735. .addToolFun>div {
  11736. display: flex;
  11737. line-height: 50px;
  11738. }
  11739. .addToolImg {
  11740. width: 20px;
  11741. height: 20px;
  11742. margin-right: 10px;
  11743. }
  11744. .addToolsDia>>>.el-dialog__body {
  11745. padding: 20px;
  11746. }
  11747. .addToolsDia>>>.el-dialog__body>.toolChoose {
  11748. padding: 0;
  11749. }
  11750. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  11751. padding: 0;
  11752. border-bottom: none;
  11753. margin-bottom: 0;
  11754. }
  11755. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  11756. width: 100%;
  11757. }
  11758. .lineCss>>>.el-form-item__label {
  11759. width: auto !important;
  11760. }
  11761. .lineCss>>>.el-form-item__content {
  11762. margin-left: 50px !important;
  11763. }
  11764. .newSteps {
  11765. display: flex;
  11766. width: 100% !important;
  11767. /* height: 80px; */
  11768. cursor: pointer;
  11769. margin: 10px 0;
  11770. border-radius: 10px;
  11771. flex-direction: row;
  11772. align-content: center;
  11773. justify-content: center;
  11774. align-items: center;
  11775. margin: 0 !important;
  11776. }
  11777. /* 评价样式 */
  11778. .elist_css {
  11779. padding-bottom: 75px !important;
  11780. }
  11781. .elist_title {
  11782. margin-bottom: 10px;
  11783. }
  11784. .elist_input {}
  11785. .elist_input_box {
  11786. display: flex;
  11787. align-items: center;
  11788. flex-wrap: wrap;
  11789. }
  11790. .elist_input_box+.elist_input_box {
  11791. margin-top: 30px;
  11792. }
  11793. .elist_input .elist_input_box input {
  11794. font: inherit;
  11795. color: currentColor;
  11796. width: 100%;
  11797. max-width: calc(100% - 385px);
  11798. padding: 8px 14px;
  11799. display: block;
  11800. min-width: 0;
  11801. outline: none;
  11802. border: 1px solid rgba(0, 0, 0, 0.23);
  11803. border-radius: 4px;
  11804. box-sizing: border-box;
  11805. background: #fff;
  11806. margin: 0 20px 0 0;
  11807. }
  11808. .elist_input .elist_input_box span {
  11809. height: 36px;
  11810. line-height: 36px;
  11811. color: rgb(82, 82, 82);
  11812. min-width: 80px;
  11813. }
  11814. .elist_input .elist_input_box .remove {
  11815. height: 20px;
  11816. width: 20px;
  11817. min-height: 20px;
  11818. min-width: 20px;
  11819. background-size: 100% 100%;
  11820. background-position: unset;
  11821. margin-left: 5px;
  11822. }
  11823. .elist_input_box>>>.el-rate {
  11824. display: flex;
  11825. height: 36px;
  11826. align-items: center;
  11827. }
  11828. .elist_input_box .elist_inptu_text {
  11829. width: 100%;
  11830. display: flex;
  11831. align-items: center;
  11832. margin-top: 10px;
  11833. }
  11834. .elist_input_box .elist_inptu_text input {
  11835. /* width: 500px; */
  11836. width: 100%;
  11837. max-width: unset;
  11838. }
  11839. .elist_input_box>>>.el-rate__icon {
  11840. font-size: 24px;
  11841. }
  11842. .elist_btn {
  11843. margin-top: 10px;
  11844. }
  11845. .lineTitle {
  11846. /* margin-top: 15px; */
  11847. width: 110px;
  11848. font-size: 16px;
  11849. display: flex;
  11850. align-items: center;
  11851. line-height: 20px;
  11852. }
  11853. .lineTitle::before {
  11854. content: '';
  11855. display: block;
  11856. width: 3px;
  11857. height: 20px;
  11858. background: #0061FF;
  11859. border-radius: 3px;
  11860. margin: 0 5px 0 0;
  11861. }
  11862. .clineTitle::before {
  11863. content: '';
  11864. display: block;
  11865. min-width: 10px;
  11866. width: 10px;
  11867. height: 10px;
  11868. background: #0061ff;
  11869. border-radius: 50%;
  11870. margin: 0 5px 0 0;
  11871. }
  11872. .courseTop {
  11873. display: flex;
  11874. flex-direction: row;
  11875. justify-content: space-between;
  11876. align-items: center;
  11877. width: calc(100% - 40px);
  11878. margin: 0 auto;
  11879. padding: 10px 0;
  11880. }
  11881. .stepsNav {
  11882. display: flex;
  11883. flex-direction: row;
  11884. justify-content: flex-start;
  11885. align-items: center;
  11886. }
  11887. .stepsWord {
  11888. font-size: 18px;
  11889. color: #fff;
  11890. font-weight: bold;
  11891. margin-left: auto;
  11892. background: rgb(15, 126, 255);
  11893. border-radius: 5px;
  11894. padding: 3px 25px;
  11895. box-sizing: border-box;
  11896. }
  11897. .stepBox {
  11898. width: calc(100% - 40px);
  11899. height: calc(100% - 50px);
  11900. overflow: hidden;
  11901. border-radius: 5px;
  11902. margin: 0 auto;
  11903. }
  11904. .rightBox {
  11905. width: calc(100%);
  11906. background: #F0F2F5;
  11907. /* border-radius: 10px; */
  11908. overflow: auto;
  11909. height: calc(100% - 150px);
  11910. margin: 0 auto;
  11911. position: relative;
  11912. box-sizing: border-box;
  11913. }
  11914. .e_add_top {
  11915. display: flex;
  11916. justify-content: space-between;
  11917. background: #fff;
  11918. position: absolute;
  11919. right: 20px;
  11920. height: 50px;
  11921. align-items: center;
  11922. }
  11923. .e_add_title2 {
  11924. display: flex;
  11925. align-items: center;
  11926. }
  11927. .e_add_title2 span {
  11928. width: 40px;
  11929. }
  11930. .e_add_title {
  11931. display: flex;
  11932. align-items: center;
  11933. color: #b8b8b8;
  11934. font-size: 18px;
  11935. position: relative;
  11936. height: 40px;
  11937. }
  11938. .e_add_title span {
  11939. margin-right: 10px;
  11940. }
  11941. .e_add_title .el_input {
  11942. width: 300px;
  11943. }
  11944. .e_add_title>>>.el-input__inner {
  11945. width: 400px;
  11946. }
  11947. .e_add_btn {}
  11948. .e_add_content {
  11949. display: flex;
  11950. width: 100%;
  11951. }
  11952. .e_add_list {
  11953. background: #fff;
  11954. height: 500px;
  11955. width: 210px;
  11956. position: relative;
  11957. margin: 15px 5px 0 0;
  11958. flex-shrink: 0;
  11959. display: flex;
  11960. flex-direction: column;
  11961. }
  11962. .e_add_list_title {
  11963. font-size: 20px;
  11964. width: 100%;
  11965. box-sizing: border-box;
  11966. padding: 15px 40px;
  11967. text-align: center;
  11968. border-bottom: 1px solid #eaeaea;
  11969. position: relative;
  11970. display: flex;
  11971. align-items: center;
  11972. justify-content: center;
  11973. height: 57px;
  11974. background: #f6f6f6;
  11975. }
  11976. .e_add_list_title span {
  11977. overflow: hidden;
  11978. white-space: nowrap;
  11979. text-overflow: ellipsis;
  11980. }
  11981. .e_add_list_title img {
  11982. position: absolute;
  11983. right: 15px;
  11984. width: 25px;
  11985. cursor: pointer;
  11986. top: 50%;
  11987. transform: translateY(-50%);
  11988. }
  11989. .e_add_list_body {
  11990. height: calc(100% - 187px);
  11991. overflow: auto;
  11992. }
  11993. .e_add_list_child {
  11994. width: 100%;
  11995. display: flex;
  11996. align-items: center;
  11997. justify-content: center;
  11998. position: relative;
  11999. box-sizing: border-box;
  12000. padding: 15px 40px;
  12001. text-align: center;
  12002. }
  12003. .e_add_list_child span {
  12004. overflow: hidden;
  12005. white-space: nowrap;
  12006. text-overflow: ellipsis;
  12007. cursor: pointer;
  12008. }
  12009. .e_add_list_child img {
  12010. position: absolute;
  12011. right: 10px;
  12012. width: 21px;
  12013. cursor: pointer;
  12014. top: 50%;
  12015. transform: translateY(-50%);
  12016. }
  12017. .e_add_list_child+.e_add_list_child {
  12018. border-top: 1px solid #eaeaea;
  12019. }
  12020. .e_add_list_child .active {
  12021. color: #409eff;
  12022. }
  12023. .e_add_list_btn {
  12024. position: absolute;
  12025. bottom: 0;
  12026. height: 50px;
  12027. background: rgb(120, 120, 254);
  12028. width: 100%;
  12029. color: #fff;
  12030. font-size: 16px;
  12031. text-align: center;
  12032. line-height: 50px;
  12033. cursor: pointer;
  12034. }
  12035. .e_add_list_detail {
  12036. position: absolute;
  12037. bottom: 0;
  12038. height: 130px;
  12039. background: rgb(120, 120, 254);
  12040. width: 100%;
  12041. color: #fff;
  12042. font-size: 16px;
  12043. display: flex;
  12044. align-items: center;
  12045. justify-content: center;
  12046. }
  12047. .e_add_list_detail textarea {
  12048. height: 90%;
  12049. width: 95%;
  12050. border: none;
  12051. resize: none;
  12052. outline: none;
  12053. padding: 5px;
  12054. box-sizing: border-box;
  12055. }
  12056. .e_add_list_pbox {
  12057. width: 100%;
  12058. }
  12059. .e_add_list_pbox_title {
  12060. height: 50px;
  12061. background: #fff;
  12062. display: flex;
  12063. align-items: center;
  12064. width: 100%;
  12065. box-sizing: border-box;
  12066. padding: 0 20px;
  12067. flex-direction: row;
  12068. flex-wrap: wrap;
  12069. }
  12070. .type_title {
  12071. font-size: 18px;
  12072. font-weight: 700;
  12073. }
  12074. .type_content {
  12075. font-size: 16px;
  12076. margin-left: 30px;
  12077. }
  12078. .type_content span+span {
  12079. margin-left: 20px;
  12080. }
  12081. .type_content span {
  12082. cursor: pointer;
  12083. padding-bottom: 5px;
  12084. box-sizing: border-box;
  12085. }
  12086. .type_content .active {
  12087. color: #409eff;
  12088. border-bottom: 2px solid #409eff;
  12089. }
  12090. .e_add_list_pbox_content {
  12091. height: calc(100% - 50px);
  12092. display: flex;
  12093. align-items: center;
  12094. width: 100%;
  12095. background: #fff;
  12096. }
  12097. .mbCss {
  12098. width: 100%;
  12099. display: flex;
  12100. flex-direction: row;
  12101. flex-wrap: nowrap;
  12102. align-content: center;
  12103. align-items: flex-start;
  12104. justify-content: flex-start;
  12105. }
  12106. .pjCss {
  12107. /* width: 42%; */
  12108. width: calc(100% - 55%);
  12109. display: flex;
  12110. flex-direction: column;
  12111. flex-wrap: nowrap;
  12112. align-items: flex-start;
  12113. }
  12114. .e_box {
  12115. /* display: flex; */
  12116. flex-wrap: wrap;
  12117. max-height: 500px;
  12118. align-items: flex-start;
  12119. overflow: auto;
  12120. width:100%;
  12121. }
  12122. .e_card {
  12123. border: 1px solid #ccc;
  12124. background: #fff;
  12125. margin-right: 20px;
  12126. width: 270px;
  12127. display: flex;
  12128. flex-direction: column;
  12129. align-items: center;
  12130. border-radius: 5px;
  12131. margin-top: 10px;
  12132. text-align: center;
  12133. }
  12134. .e_card_picture {
  12135. margin: 10px 0;
  12136. }
  12137. .e_card_picture>img {
  12138. width: 50px;
  12139. }
  12140. .e_card_name {
  12141. width: 100%;
  12142. padding: 0 10px;
  12143. box-sizing: border-box;
  12144. margin-bottom: 10px;
  12145. overflow: hidden;
  12146. text-overflow: ellipsis;
  12147. white-space: nowrap;
  12148. }
  12149. .e_card_time {
  12150. width: 100%;
  12151. padding: 0 10px;
  12152. box-sizing: border-box;
  12153. font-size: 15px;
  12154. color: #c3c3c3;
  12155. margin-bottom: 10px;
  12156. }
  12157. .e_card_btn {
  12158. height: 40px;
  12159. display: flex;
  12160. align-items: center;
  12161. width: 100%;
  12162. background: rgb(244, 244, 244);
  12163. }
  12164. .e_card_btn:hover {
  12165. background: rgb(221 221 221);
  12166. }
  12167. .e_card_btn span {
  12168. flex: 1 1 auto;
  12169. text-align: center;
  12170. cursor: pointer;
  12171. }
  12172. .addEva {
  12173. border: 1px solid #ccc;
  12174. background: #fff;
  12175. margin-right: 20px;
  12176. width: 270px;
  12177. height: 149px;
  12178. display: flex;
  12179. flex-direction: column;
  12180. align-items: center;
  12181. border-radius: 5px;
  12182. margin-top: 10px;
  12183. text-align: center;
  12184. cursor: pointer;
  12185. justify-content: center;
  12186. }
  12187. .addEva>img {
  12188. width: 50px;
  12189. object-fit: cover;
  12190. }
  12191. .uploadFm {
  12192. border: 1px dashed #ccc;
  12193. width: 100%;
  12194. height: 140px;
  12195. position: relative;
  12196. cursor: pointer;
  12197. display: flex;
  12198. flex-direction: column;
  12199. justify-content: center;
  12200. align-items: center;
  12201. font-size: 14px;
  12202. color: #6e6e6e;
  12203. position:relative;
  12204. }
  12205. .cover_p{
  12206. width: 100% !important;
  12207. height: 100%;
  12208. object-fit: cover;
  12209. }
  12210. .uploadFm2:hover .cover_mask{
  12211. display: flex !important;
  12212. }
  12213. .cover_mask{
  12214. display:none;
  12215. width:100%;
  12216. height:100%;
  12217. position:absolute;
  12218. background:#00000054;
  12219. align-items: center;
  12220. justify-content: center;
  12221. flex-direction: column;
  12222. }
  12223. .cover_mask > img{
  12224. width: 30px;
  12225. }
  12226. .cover_mask > span{
  12227. color: #fff;
  12228. font-size: 12px;
  12229. }
  12230. .uploadFm>img {
  12231. width: 50px;
  12232. }
  12233. .fileCss {
  12234. width: 100%;
  12235. display: flex;
  12236. flex-direction: row;
  12237. flex-wrap: nowrap;
  12238. justify-content: space-around;
  12239. align-items: center;
  12240. padding-top: 15px;
  12241. }
  12242. .fileCss>div {
  12243. display: flex;
  12244. flex-direction: column;
  12245. align-items: center;
  12246. }
  12247. .fileCss .spanName {
  12248. margin-top: 10px
  12249. }
  12250. .sysPicBox {
  12251. display: flex;
  12252. flex-direction: row;
  12253. flex-wrap: wrap;
  12254. align-content: flex-start;
  12255. height: 435px;
  12256. overflow: auto;
  12257. position: relative;
  12258. }
  12259. .picNone {
  12260. position: absolute;
  12261. left: 50%;
  12262. top: 45%;
  12263. transform: translate(-50%, -50%);
  12264. width: fit-content;
  12265. color: #9c9c9c;
  12266. }
  12267. .sysPic {
  12268. width: 200px;
  12269. height: 115px;
  12270. margin: 0 20px 20px 0;
  12271. cursor: pointer;
  12272. }
  12273. .sysPic>img,
  12274. .isSysPic>img,
  12275. .deletePic>img {
  12276. width: 100%;
  12277. height: 100%;
  12278. object-fit: cover;
  12279. }
  12280. .isSysPic {
  12281. width: 200px;
  12282. height: 115px;
  12283. position: relative;
  12284. }
  12285. .deletePic {
  12286. width: 20px;
  12287. height: 20px;
  12288. position: absolute;
  12289. top: 0;
  12290. right: 0;
  12291. cursor: pointer;
  12292. }
  12293. .select_box1 {
  12294. height: 100%;
  12295. }
  12296. .select_box1_img {
  12297. background: #fff;
  12298. border-radius: 5px;
  12299. padding: 15px;
  12300. box-sizing: border-box;
  12301. margin-bottom: 20px;
  12302. }
  12303. .select_box1_title {
  12304. padding: 0 0 15px 0;
  12305. border-bottom: 1px solid #eee;
  12306. margin-bottom: 15px;
  12307. }
  12308. .select_box1_title span:nth-child(1) {
  12309. font-size: 16px;
  12310. margin-right: 20px;
  12311. color: #000;
  12312. }
  12313. .select_box1_title span:nth-child(2) {
  12314. font-size: 14px;
  12315. color: rgb(112, 112, 112);
  12316. }
  12317. .select_box1_add_img {}
  12318. .select_box1_select {
  12319. background: #fff;
  12320. border-radius: 5px;
  12321. padding: 15px;
  12322. box-sizing: border-box;
  12323. height: calc(100% - 200px);
  12324. overflow: auto;
  12325. }
  12326. .select_box2 {
  12327. height: 100%;
  12328. }
  12329. .select_box2_title {
  12330. background: #fff;
  12331. border-radius: 5px;
  12332. padding: 5px 10px;
  12333. box-sizing: border-box;
  12334. margin-bottom: 10px;
  12335. }
  12336. .select_box2_box {
  12337. display: flex;
  12338. height: calc(100% - 30px);
  12339. }
  12340. .select_box2_img {
  12341. width: calc(100% - 310px);
  12342. height: 100%;
  12343. overflow: auto;
  12344. background: #fff;
  12345. border-radius: 5px;
  12346. }
  12347. .select_box2_img img {
  12348. width: 100%;
  12349. }
  12350. .select_box2_answer {
  12351. background: #fff;
  12352. margin-left: 10px;
  12353. border-radius: 5px;
  12354. width: 300px;
  12355. overflow: auto;
  12356. height: 100%;
  12357. display: flex;
  12358. flex-direction: column;
  12359. align-items: center;
  12360. padding-top: 10px;
  12361. box-sizing: border-box;
  12362. }
  12363. .select_box2_answer_box {
  12364. margin: 0 0 10px 0;
  12365. width: 85%;
  12366. }
  12367. .rate_textarea {
  12368. font: inherit;
  12369. color: currentColor;
  12370. width: 100%;
  12371. padding: 8px 14px;
  12372. display: block;
  12373. min-width: 0;
  12374. outline: none;
  12375. border: 1px solid rgba(0, 0, 0, 0.23);
  12376. border-radius: 4px;
  12377. box-sizing: border-box;
  12378. background: #fff;
  12379. margin: 0 20px 0 0;
  12380. resize: none;
  12381. }
  12382. .select_answer_title {
  12383. text-align: left;
  12384. width: 85%;
  12385. margin-bottom: 10px;
  12386. font-size: 18px;
  12387. color: #8e8e8e;
  12388. }
  12389. .mask {
  12390. background-color: rgb(0 0 0 / 30%);
  12391. /* position: fixed; */
  12392. position: absolute;
  12393. top: 0;
  12394. left: 0;
  12395. width: 100%;
  12396. height: 100%;
  12397. z-index: 90;
  12398. display: flex;
  12399. align-items: center;
  12400. justify-content: center;
  12401. }
  12402. .progressBox {
  12403. width: 300px;
  12404. height: 150px;
  12405. background: #fff;
  12406. border-radius: 10px;
  12407. box-shadow: 0 0 6px 1px #bfbfbf;
  12408. display: flex;
  12409. align-items: center;
  12410. justify-content: center;
  12411. flex-direction: column;
  12412. position: relative;
  12413. color: #6c6c6c;
  12414. }
  12415. .progressBox>>>.el-progress-bar__outer {
  12416. background-color: #d1dfff !important;
  12417. }
  12418. .progressBox .lbox {
  12419. height: 50px;
  12420. font-size: 19px;
  12421. display: flex;
  12422. align-items: center;
  12423. color: #747474;
  12424. }
  12425. .progressBox .lbox img {
  12426. width: 40px;
  12427. margin-right: 20px;
  12428. }
  12429. .closeCss {
  12430. position: absolute;
  12431. top: 8px;
  12432. right: 8px;
  12433. cursor: pointer;
  12434. width: 20px;
  12435. height: 20px;
  12436. }
  12437. .closeCss>img {
  12438. width: 100%;
  12439. height: 100%;
  12440. }
  12441. .updateTips::before {
  12442. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  12443. font-size: 14px;
  12444. margin-left: 20px;
  12445. font-weight: 400;
  12446. color: #ff3a3a;
  12447. margin-bottom: 10px;
  12448. display: block;
  12449. }
  12450. .updateMask {
  12451. width: 100%;
  12452. z-index: 3;
  12453. top: 0;
  12454. position: absolute;
  12455. /* background-color: rgba(0,0,0,.3); */
  12456. }
  12457. .t_j_box {
  12458. display: flex;
  12459. }
  12460. .t_j_box span:nth-child(1) {
  12461. width: 15%;
  12462. overflow: hidden;
  12463. margin-right: 10px;
  12464. text-overflow: ellipsis;
  12465. white-space: nowrap;
  12466. }
  12467. .t_j_box span:nth-child(2) {
  12468. width: 30%;
  12469. overflow: hidden;
  12470. text-overflow: ellipsis;
  12471. margin-right: 10px;
  12472. }
  12473. .t_j_box span:nth-child(3) {
  12474. max-width: calc(55% - 20px);
  12475. overflow: hidden;
  12476. text-overflow: ellipsis;
  12477. }
  12478. .sentenBox {
  12479. background: #fff;
  12480. height: 600px;
  12481. overflow: auto;
  12482. background-image: url("../../assets/icon/conSentences/csBg.png");
  12483. background-position: 102%;
  12484. background-repeat: no-repeat;
  12485. background-size: 60%;
  12486. }
  12487. .sentenBox>.sentenContent {
  12488. padding-bottom: 10px;
  12489. width: 97%;
  12490. margin: 0 auto;
  12491. }
  12492. .sentenBox>.sentenContent+.sentenContent {
  12493. border-top: 1px solid #cbcbcb;
  12494. }
  12495. .addSen {
  12496. background: #409efe;
  12497. width: 90px;
  12498. color: #fff;
  12499. height: 35px;
  12500. text-align: center;
  12501. line-height: 35px;
  12502. border-radius: 5px;
  12503. float: right;
  12504. margin: 10px 20px 0 0;
  12505. cursor: pointer;
  12506. }
  12507. .sentenTop {
  12508. display: flex;
  12509. flex-direction: row;
  12510. flex-wrap: nowrap;
  12511. align-items: center;
  12512. }
  12513. .sentenTop::before {
  12514. content: attr(index);
  12515. background: #3681fc;
  12516. border-radius: 50%;
  12517. color: #fff;
  12518. width: 25px;
  12519. height: 25px;
  12520. min-width: 25px;
  12521. min-height: 25px;
  12522. text-align: center;
  12523. line-height: 25px;
  12524. margin-right: 5px;
  12525. }
  12526. .sentenTop>div:nth-child(2) {
  12527. width: 300px;
  12528. margin: 0 15px;
  12529. }
  12530. .sentenTop>div:nth-child(3) {
  12531. background: #409efe;
  12532. color: #fff;
  12533. width: 65px;
  12534. height: 35px;
  12535. text-align: center;
  12536. line-height: 35px;
  12537. border-radius: 5px;
  12538. cursor: pointer;
  12539. }
  12540. .cardList {
  12541. padding: 30px 0 20px 0;
  12542. display: flex;
  12543. flex-direction: row;
  12544. flex-wrap: wrap;
  12545. align-items: center;
  12546. box-sizing: border-box;
  12547. border-bottom: 1px solid #f4f4f4;
  12548. width: 98%;
  12549. margin: 0 auto;
  12550. }
  12551. .rightCardList {
  12552. display: flex;
  12553. flex-wrap: wrap;
  12554. }
  12555. .cardBox {
  12556. display: flex;
  12557. flex-direction: row;
  12558. flex-wrap: wrap;
  12559. align-items: center;
  12560. align-content: center;
  12561. }
  12562. .isCard,
  12563. .isCard1 {
  12564. width: auto;
  12565. padding: 0 20px;
  12566. height: 65px;
  12567. text-align: center;
  12568. line-height: 65px;
  12569. font-size: 14px;
  12570. cursor: pointer;
  12571. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  12572. background-size: 100% 100%;
  12573. position: relative;
  12574. z-index: 99;
  12575. }
  12576. .isCard1 {
  12577. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  12578. }
  12579. .isCard:hover .deleteWord {
  12580. display: block;
  12581. }
  12582. .isCard>div:nth-child(1),
  12583. .isCard1>div:nth-child(1) {
  12584. white-space: nowrap;
  12585. overflow: hidden;
  12586. text-overflow: ellipsis;
  12587. width: 100%;
  12588. margin: 0 auto;
  12589. }
  12590. .card {
  12591. width: 140px;
  12592. height: 65px;
  12593. }
  12594. .card>img {
  12595. width: 100%;
  12596. height: 100%;
  12597. }
  12598. .rightCardBox {
  12599. width: 98%;
  12600. margin: 10px auto 0;
  12601. }
  12602. .rightCardBox>div:nth-child(1) {
  12603. margin-bottom: 10px;
  12604. }
  12605. .cardCss {
  12606. display: flex;
  12607. flex-direction: column;
  12608. flex-wrap: nowrap;
  12609. align-items: center;
  12610. border-bottom: 3px solid #b4c3d3;
  12611. padding: 0 0 5px 0;
  12612. /* margin-right: 10px; */
  12613. }
  12614. .cardCss>div:nth-child(2) {
  12615. background: #5b7b9d;
  12616. color: #fff;
  12617. width: 20px;
  12618. height: 20px;
  12619. border-radius: 50%;
  12620. text-align: center;
  12621. line-height: 20px;
  12622. }
  12623. .sentenTopBox {
  12624. display: flex;
  12625. flex-direction: row;
  12626. flex-wrap: nowrap;
  12627. align-items: center;
  12628. justify-content: space-between;
  12629. padding: 55px 0 0 20px;
  12630. box-sizing: border-box;
  12631. width: 85%;
  12632. }
  12633. .stepsBottom {
  12634. width: 100%;
  12635. box-shadow: 0 0 10px 10px #f7f7f7;
  12636. /* background: #f7f7f7; */
  12637. border-radius: 10px;
  12638. overflow: hidden;
  12639. height: 100%
  12640. }
  12641. .navTop {
  12642. background: #53749b;
  12643. color: #fff;
  12644. height: 40px;
  12645. line-height: 40px;
  12646. padding-left: 15px;
  12647. font-size: 18px;
  12648. }
  12649. .navBottom {
  12650. /* background: #6b91b7; */
  12651. height: 100%;
  12652. overflow: auto;
  12653. }
  12654. .navStage {
  12655. display: flex;
  12656. flex-direction: row;
  12657. flex-wrap: nowrap;
  12658. align-items: center;
  12659. padding: 10px 10px 10px 0;
  12660. cursor: pointer;
  12661. background: #ffffff;
  12662. width: 95%;
  12663. margin: 10px auto 0;
  12664. box-sizing: border-box;
  12665. border-radius: 5px;
  12666. flex-wrap: wrap;
  12667. position: relative;
  12668. }
  12669. .navStage::before {
  12670. content: '';
  12671. display: block;
  12672. width: 16px;
  12673. height: 16px;
  12674. background-image: url(../../assets/icon/new/icon_stage.png);
  12675. background-size: 100%;
  12676. margin-left: 10px;
  12677. }
  12678. .navStage::after {
  12679. content: '';
  12680. display: block;
  12681. width: 16px;
  12682. height: 16px;
  12683. background-image: url(../../assets/icon/new/down.png);
  12684. transform: rotate(-90deg);
  12685. background-size: 100%;
  12686. margin-left: 10px;
  12687. transition: all .5s;
  12688. }
  12689. .isNavStageOpen::after {
  12690. transform: rotate(0deg);
  12691. }
  12692. .isNavStage {
  12693. background: #0061FF;
  12694. }
  12695. .isNavStage::before{
  12696. background-image: url(../../assets/icon/new/icon_stage_a.png);
  12697. }
  12698. .isNavStage::after{
  12699. background-image: url(../../assets/icon/new/downC.png);
  12700. }
  12701. .isNavStage .nt_taskName {
  12702. font-weight: bold !important;
  12703. color: #FFFFFF !important;
  12704. }
  12705. .isNavStage .nt_taskTitle {
  12706. font-weight: bold !important;
  12707. color: #fff !important;
  12708. }
  12709. .navStage .nt_taskBox {
  12710. width: calc(100% - 53px);
  12711. padding: 0 0 0 5px;
  12712. box-sizing: border-box;
  12713. box-sizing: border-box;
  12714. display: flex;
  12715. flex-direction: row;
  12716. flex-wrap: nowrap;
  12717. align-items: baseline;
  12718. }
  12719. .navStage .nt_taskTitle {
  12720. color: #060E17;
  12721. line-height: 25px;
  12722. font-size: 16px;
  12723. }
  12724. .navStage .nt_taskName {
  12725. max-width: calc(100% - 75px);
  12726. white-space: nowrap;
  12727. overflow: hidden;
  12728. text-overflow: ellipsis;
  12729. font-size: 16px;
  12730. color: #060E17;
  12731. }
  12732. .navTask {
  12733. display: flex;
  12734. flex-direction: row;
  12735. flex-wrap: nowrap;
  12736. align-items: center;
  12737. padding: 10px 10px 10px 0;
  12738. cursor: pointer;
  12739. background: #ffffff;
  12740. width: 95%;
  12741. margin: 10px auto 0;
  12742. box-sizing: border-box;
  12743. border-radius: 5px;
  12744. flex-wrap: wrap;
  12745. position: relative;
  12746. }
  12747. .navTask::before {
  12748. content: '';
  12749. display: block;
  12750. width: 16px;
  12751. height: 16px;
  12752. background-image: url(../../assets/icon/new/icon_arrow.png);
  12753. background-size: 100%;
  12754. margin-left: 23px;
  12755. }
  12756. .noImage::before {
  12757. display: none;
  12758. background-image: unset !important;
  12759. }
  12760. .isNavOpen::before {
  12761. background-image: url(../../assets/icon/new/icon_arrow_a.png) !important;
  12762. }
  12763. .dragOverTop {
  12764. border-top: 2px solid #0061FF !important;
  12765. border-radius: 0 !important;
  12766. margin-top: 10px;
  12767. }
  12768. .dragOverBottom {
  12769. border-bottom: 2px solid #0061FF !important;
  12770. border-radius: 0 !important;
  12771. margin-top: 10px;
  12772. }
  12773. .dragOverTop2 {
  12774. border-top: 2px solid #0061FF !important;
  12775. border-radius: 0 !important;
  12776. }
  12777. .dragOverBottom2 {
  12778. border-bottom: 2px solid #0061FF !important;
  12779. border-radius: 0 !important;
  12780. }
  12781. .isNavTask {
  12782. /* background: #3681FC; */
  12783. background: #EEF3FB;
  12784. }
  12785. .isNavTask>.chapter_upload_drag {
  12786. background-image: url(../../assets/icon/new/icon_course_drag_active.png) !important;
  12787. }
  12788. .isNavTask .nt_taskName {
  12789. /* color: #fff !important; */
  12790. font-weight: bold !important;
  12791. color: #0061FF !important;
  12792. }
  12793. .isNavTask .nt_taskTitle {
  12794. /* color: #AECCFE !important; */
  12795. font-weight: bold !important;
  12796. color: #0061FF !important;
  12797. }
  12798. .navTask .nt_taskBox {
  12799. width: calc(100% - 40px);
  12800. padding: 0 0 0 5px;
  12801. box-sizing: border-box;
  12802. box-sizing: border-box;
  12803. display: flex;
  12804. flex-direction: row;
  12805. flex-wrap: nowrap;
  12806. align-items: baseline;
  12807. }
  12808. .navTask .nt_taskTitle {
  12809. /* color: #717C8D; */
  12810. color: #060E17;
  12811. line-height: 25px;
  12812. font-size: 16px;
  12813. /* min-width: 66px; */
  12814. }
  12815. .navTask .nt_taskName {
  12816. /* color: #fff; */
  12817. /* max-width: 130px; */
  12818. /* width: 100%; */
  12819. max-width: calc(100% - 66px);
  12820. white-space: nowrap;
  12821. overflow: hidden;
  12822. text-overflow: ellipsis;
  12823. font-size: 16px;
  12824. color: #060E17;
  12825. /* color: #0E1E33; */
  12826. }
  12827. .gjBox {
  12828. width: calc(100% - 25px);
  12829. padding: 0 0 0 0;
  12830. box-sizing: border-box;
  12831. border-left: 1px solid #CAD1DC;
  12832. margin-left: 25px;
  12833. }
  12834. .gjBox>div {
  12835. display: flex;
  12836. align-items: center;
  12837. }
  12838. .gjBox>div::before {
  12839. content: '';
  12840. height: 1px;
  12841. width: 10px;
  12842. background: #CAD1DC;
  12843. display: block;
  12844. margin-right: 5px;
  12845. }
  12846. .gjCss {
  12847. display: flex;
  12848. flex-direction: row;
  12849. flex-wrap: nowrap;
  12850. align-items: center;
  12851. padding: 15px 0;
  12852. box-sizing: border-box;
  12853. font-size: 14px;
  12854. cursor: pointer;
  12855. }
  12856. .isGjCss {
  12857. color: #0061ff;
  12858. }
  12859. .groupBox {}
  12860. .groupContent+.groupContent {
  12861. margin-top: 30px;
  12862. }
  12863. .groupTitle {
  12864. font-size: 24px;
  12865. color: rgb(80, 80, 80);
  12866. margin-bottom: 20px;
  12867. }
  12868. .groupName {
  12869. display: flex;
  12870. align-items: center;
  12871. }
  12872. .groupn {
  12873. font-size: 15px;
  12874. margin-right: 10px;
  12875. }
  12876. .groupName+.groupName {
  12877. margin-top: 15px;
  12878. }
  12879. .groupBtn {
  12880. margin-left: 10px;
  12881. }
  12882. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  12883. text-align: left;
  12884. }
  12885. .radioBox>div {
  12886. margin: 10px 0 0 10px;
  12887. }
  12888. .radioBox>>>.el-radio__input,
  12889. .radioBox>>>.el-checkbox__inner {
  12890. margin-left: 10px;
  12891. }
  12892. .radioBox>>>.el-radio__label,
  12893. .radioBox>>>.el-checkbox__label {
  12894. display: flex;
  12895. align-items: center;
  12896. }
  12897. .inImg {
  12898. width: 50px;
  12899. }
  12900. .inImg>img {
  12901. width: 100%;
  12902. height: 100%;
  12903. object-fit: cover;
  12904. }
  12905. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  12906. height: auto;
  12907. padding: 10px;
  12908. margin: 0;
  12909. }
  12910. .upCss>>>.el-upload-list {
  12911. width: 100%;
  12912. }
  12913. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  12914. width: 100%;
  12915. height: 120px;
  12916. object-fit: contain;
  12917. background: unset;
  12918. margin-left: 0;
  12919. }
  12920. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  12921. display: none;
  12922. }
  12923. .tcMember+.tcMember::before {
  12924. content: "、";
  12925. }
  12926. .xzUpImg {
  12927. width: 25px;
  12928. height: 25px;
  12929. min-width: 25px;
  12930. min-height: 25px;
  12931. cursor: pointer;
  12932. margin: 0 10px;
  12933. }
  12934. .xzUpImg>img {
  12935. width: 100%;
  12936. height: 100%;
  12937. }
  12938. .closeCss {
  12939. position: absolute;
  12940. top: 8px;
  12941. right: 8px;
  12942. cursor: pointer;
  12943. width: 20px;
  12944. height: 20px;
  12945. }
  12946. .closeCss>img {
  12947. width: 100%;
  12948. height: 100%;
  12949. }
  12950. .moveBtn {
  12951. display: flex;
  12952. flex-direction: row;
  12953. flex-wrap: nowrap;
  12954. align-items: center;
  12955. width: 55px;
  12956. }
  12957. .timuUpImg {
  12958. display: flex;
  12959. flex-direction: row;
  12960. align-items: center;
  12961. width: 100%;
  12962. margin-right: 10px;
  12963. }
  12964. .timuUpImg>div:nth-child(1) {
  12965. margin-right: 10px;
  12966. display: flex;
  12967. align-items: center;
  12968. width: 100%;
  12969. }
  12970. .timuImgBox {
  12971. margin: 10px 0;
  12972. display: flex;
  12973. flex-direction: column;
  12974. flex-wrap: wrap;
  12975. align-items: flex-start;
  12976. }
  12977. .timuImg {
  12978. width: 100px;
  12979. margin: 5px 0;
  12980. cursor: pointer;
  12981. position: relative;
  12982. }
  12983. .timuImg:hover .deleteWord {
  12984. display: block;
  12985. }
  12986. .deleteWord {
  12987. width: 25px;
  12988. height: 25px;
  12989. position: absolute;
  12990. right: -5px;
  12991. top: -5px;
  12992. cursor: pointer;
  12993. display: none;
  12994. }
  12995. .timuImg>img,
  12996. .deleteWord>img {
  12997. width: 100%;
  12998. height: 100%;
  12999. object-fit: cover;
  13000. }
  13001. .e_add_delete {
  13002. cursor: pointer;
  13003. margin-left: 10px;
  13004. }
  13005. .pType_box {
  13006. margin-top: 30px;
  13007. align-items: flex-end;
  13008. }
  13009. .noneBox {
  13010. height: 200px;
  13011. width: 100%;
  13012. display: flex;
  13013. align-items: center;
  13014. justify-content: center;
  13015. flex-direction: column;
  13016. /* margin-top: 150px; */
  13017. }
  13018. .noneBox>img {
  13019. width: 95px;
  13020. }
  13021. .noneBox>span {
  13022. margin-top: 10px;
  13023. color: #717C8D;
  13024. }
  13025. .rb_c_box {
  13026. width: 100%;
  13027. height: 100%;
  13028. display: flex;
  13029. /* padding: 20px; */
  13030. box-sizing: border-box;
  13031. justify-content: space-between;
  13032. }
  13033. .rb_c_box_left {
  13034. height: 100%;
  13035. background: #fff;
  13036. width: 270px;
  13037. min-width: 270px;
  13038. border-radius: 8px;
  13039. margin-right: 10px;
  13040. }
  13041. .rb_c_box_right {
  13042. height: 100%;
  13043. width: calc(100%);
  13044. overflow: hidden;
  13045. }
  13046. .rb_c_box_btn {
  13047. display: flex;
  13048. justify-content: flex-start;
  13049. height: 50px;
  13050. align-items: center;
  13051. }
  13052. .rb_c_box_right>.basic_box {
  13053. /* background: #fff; */
  13054. border-radius: 0;
  13055. height: calc(100% - 0px);
  13056. overflow: auto;
  13057. padding: 0;
  13058. }
  13059. .textarea_css {
  13060. display: block;
  13061. resize: none;
  13062. padding: 10px 15px;
  13063. line-height: 1.5;
  13064. box-sizing: border-box;
  13065. width: 100%;
  13066. font-size: 14px;
  13067. color: #606266;
  13068. background-color: #FFF;
  13069. background-image: none;
  13070. border: 1px solid #DCDFE6;
  13071. border-radius: 4px;
  13072. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  13073. outline: none;
  13074. overflow: hidden;
  13075. height: 46px;
  13076. font-family: 'Microsoft YaHei';
  13077. }
  13078. .textarea_css::-webkit-input-placeholder {
  13079. color: #C0C4CC
  13080. }
  13081. .textarea_css:focus {
  13082. border-color: #409EFF;
  13083. outline: 0;
  13084. }
  13085. .addEditor>>>.text {
  13086. height: auto;
  13087. min-height: 100px;
  13088. }
  13089. .addEditor>>>.w-e-text-container {
  13090. min-height: 100px;
  13091. }
  13092. .moveBtn2 {
  13093. flex-direction: column;
  13094. width: fit-content;
  13095. margin: 0 10px 0 10px;
  13096. }
  13097. .moveBtn2 .chapter_upload_down,
  13098. .moveBtn2 .chapter_upload_up {
  13099. width: 16px;
  13100. height: 16px;
  13101. }
  13102. .moveBtn2 .chapter_upload_up::after,
  13103. .moveBtn2 .chapter_upload_down::after {
  13104. width: 10px;
  13105. height: 10px;
  13106. }
  13107. .fullStyle>>>.el-dialog__body {
  13108. height: calc(100% - 125px) !important;
  13109. box-sizing: border-box;
  13110. }
  13111. .fullStyle>>>.el-dialog {
  13112. width: 100% !important;
  13113. max-width: 100% !important;
  13114. height: 100% !important;
  13115. margin: 0 !important;
  13116. }
  13117. .fullStyle {
  13118. width: 100% !important;
  13119. max-width: 100% !important;
  13120. height: 100% !important;
  13121. margin: 0 auto !important;
  13122. }
  13123. .wb_j_box_btn {
  13124. width: calc(100% - 30px);
  13125. display: flex;
  13126. height: 40px;
  13127. border: 1.5px solid #CAD1DC;
  13128. border-radius: 4px;
  13129. box-sizing: border-box;
  13130. align-items: center;
  13131. font-size: 14px;
  13132. cursor: pointer;
  13133. overflow: hidden;
  13134. }
  13135. .wb_j_box_btn:hover {
  13136. border: 1.5px solid #0061FF;
  13137. }
  13138. .wb_j_box_title {
  13139. background: #F0F4FA;
  13140. height: 100%;
  13141. line-height: 40px;
  13142. width: 90px;
  13143. text-align: center;
  13144. color: #060E17;
  13145. border-right: 1.5px solid #CAD1DC;
  13146. box-sizing: border-box;
  13147. }
  13148. .wb_j_box_btn_c {
  13149. width: calc(100% - 90px);
  13150. padding: 0 35px 0 10px;
  13151. box-sizing: border-box;
  13152. position: relative;
  13153. }
  13154. .wb_j_box_span {
  13155. width: 100%;
  13156. overflow: hidden;
  13157. white-space: nowrap;
  13158. text-overflow: ellipsis;
  13159. word-wrap: break-word;
  13160. color: #717C8D;
  13161. }
  13162. .wb_j_box_arrow {
  13163. content: '';
  13164. width: 14px;
  13165. height: 14px;
  13166. background: url(../../assets/icon/new/u_arrow.png);
  13167. background-size: 100% 100%;
  13168. position: absolute;
  13169. right: 12px;
  13170. top: 50%;
  13171. transform: translateY(-50%);
  13172. }
  13173. .check_classBox {
  13174. height: 400px;
  13175. display: flex;
  13176. border-top: 1.5px solid #E7EBF1;
  13177. border-bottom: 1.5px solid #E7EBF1;
  13178. }
  13179. .check_class_right {
  13180. width: 130px;
  13181. border-right: 1px solid #E7EBF1;
  13182. display: flex;
  13183. align-items: center;
  13184. flex-direction: column;
  13185. height: 100%;
  13186. overflow: auto;
  13187. padding: 15px 0;
  13188. box-sizing: border-box;
  13189. }
  13190. .check_class {
  13191. width: 85%;
  13192. border-radius: 5px;
  13193. height: 30px;
  13194. line-height: 30px;
  13195. text-align: center;
  13196. padding: 0 10px;
  13197. box-sizing: border-box;
  13198. cursor: pointer;
  13199. white-space: nowrap;
  13200. overflow: hidden;
  13201. text-overflow: ellipsis;
  13202. }
  13203. .check_class.activeX {
  13204. background: #E0EAFB;
  13205. color: #3681FC;
  13206. font-weight: 700;
  13207. }
  13208. .check_class+.check_class {
  13209. margin-top: 15px;
  13210. }
  13211. .check_class_left {
  13212. background: #FAFAFA;
  13213. width: calc(100% - 130px);
  13214. padding: 15px;
  13215. box-sizing: border-box;
  13216. }
  13217. .check_class_all_box {
  13218. display: flex;
  13219. margin-bottom: 10px;
  13220. }
  13221. .all_check {
  13222. display: flex;
  13223. align-items: center;
  13224. padding: 2px 0 0;
  13225. margin-left: 10px;
  13226. }
  13227. .all_check>>>.el-checkbox__label {
  13228. line-height: 18px;
  13229. }
  13230. .check_class_left_title {
  13231. font-size: 16px;
  13232. font-weight: 700;
  13233. }
  13234. .check_class_item {
  13235. display: flex;
  13236. flex-wrap: wrap;
  13237. height: calc(100% - 45px);
  13238. overflow: auto;
  13239. justify-content: flex-start;
  13240. align-items: flex-start;
  13241. align-content: flex-start;
  13242. }
  13243. .class_item:first-child {
  13244. /* margin: 0 15px 15px 67px; */
  13245. }
  13246. .class_item {
  13247. margin: 0 15px 15px 0;
  13248. }
  13249. .class_item:hover>>>.el-checkbox__label {
  13250. color: #409EFF;
  13251. }
  13252. .class_item>>>.el-checkbox__label {
  13253. color: #0E1E33;
  13254. }
  13255. .class_item:hover>>>.el-checkbox__inner {
  13256. border-color: #409EFF;
  13257. }
  13258. .class_item>>>.el-checkbox,
  13259. .class_item>>>.el-checkbox__input {
  13260. display: flex;
  13261. align-items: center;
  13262. }
  13263. .taskTitle{
  13264. font-size: 20px;
  13265. font-weight: bold;
  13266. margin-bottom: 35px;
  13267. }
  13268. .taskTitle:after{
  13269. content: '';
  13270. width: 100%;
  13271. display: block;
  13272. height: 1px;
  13273. background: #CAD1DC;
  13274. position: absolute;
  13275. left: 0;
  13276. margin: 15px 0 0;
  13277. }
  13278. </style>