addCoursejiu.vue 461 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300
  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: 95%; padding: 0 0px 0 20px">
  227. <div style="width: 55%">
  228. <textarea rows="6" 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">
  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" placement="top">
  510. <span>{{ 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>
  535. </div>
  536. <div class="rb_c_box_right">
  537. <!-- <div class="rb_c_box_btn">
  538. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  539. </div> -->
  540. <div class="basic_box" ref="unitBox">
  541. <div style="
  542. display: flex;
  543. flex-direction: row;
  544. align-items: center;
  545. position: sticky;
  546. top: 0;
  547. z-index: 99;
  548. width: 100%;
  549. padding: 0 20px 0 20px;
  550. box-sizing: border-box;
  551. background: #fff;
  552. border-radius: 8px;
  553. ">
  554. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  555. <div class="cru_selectBox"
  556. :style="{ maxWidth: isPasteTask ? 'calc(100% - 175px)' : 'calc(100% - 40px)' }">
  557. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  558. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  559. <!-- item.dyName ? item.dyName : -->
  560. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  561. unitJson[unitJson.length - 1].easy == 6
  562. ">{{
  563. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  564. }}</span>
  565. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  566. </div>
  567. <div class="cru_line" :style="{
  568. left: offsetLetfPx + 'px',
  569. }"></div>
  570. </div>
  571. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  572. !(unitJson[unitJson.length - 1].easy == 6)
  573. ">
  574. <img src="../../assets/icon/new/addStage.png" alt />
  575. </div>
  576. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  577. <button class="c_pub_button_add" @click="openStageBox" v-show="false"
  578. style="margin: 0 0 0 auto;">阶段顺序</button>
  579. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3 && isPasteTask"
  580. style="margin: 0 0 0 auto;">智能粘贴</button>
  581. </div>
  582. <div style="margin: 0 0 10px 0; padding: 0;" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  583. :key="index">
  584. <div class="chapter_box">
  585. <div class="chapter_contentbox">
  586. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  587. <div class="cc_input">
  588. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  589. v-model="unitJson[unitIndex].dyName" />
  590. </div>
  591. <div class="remove" v-if="unitJson.length > 1 &&
  592. !(unitJson[unitJson.length - 1].easy == 4) &&
  593. !(unitJson[unitJson.length - 1].easy == 6)
  594. " @click="deleteUnit(unitIndex)"></div>
  595. </div>
  596. </div>
  597. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  598. margin: 50px 0px 10px;
  599. font-size: 1.5em;
  600. font-weight: 700;
  601. color: #0f7eff;
  602. ">
  603. 添加任务
  604. </div> -->
  605. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  606. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  607. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  608. <div style="background: #fff;border-radius: 5px;">
  609. <!-- padding: 20px; -->
  610. <div v-if="unitJson[unitIndex].easy != 1">
  611. <div :style="{
  612. marginBottom:
  613. unitJson[unitIndex].easy == 3 ||
  614. (unitJson[unitIndex].easy == 5 &&
  615. itemTask.taskType == 1)
  616. ? '75px'
  617. : '0',
  618. }">
  619. <div style="
  620. display: flex;
  621. margin: 0px 0 20px;
  622. flex-direction: row;
  623. justify-content: flex-start;
  624. align-items: center;
  625. ">
  626. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  627. </div>
  628. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  629. flex-direction: row;
  630. justify-content: flex-start;
  631. align-items: center;
  632. margin:0;
  633. ">
  634. <!-- <div class="cc_title">
  635. 任务{{ itemTaskIndex + 1 }}
  636. </div> -->
  637. <div class="cc_input">
  638. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  639. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  640. itemTaskIndex
  641. ].task
  642. " />
  643. </div>
  644. <div class="remove" v-if="item.taskJson.length > 1 &&
  645. (!unitJson[unitIndex].easy ||
  646. unitJson[unitIndex].easy == 6)
  647. " @click="deleteTask(itemTaskIndex)"></div>
  648. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2"
  649. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  650. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  651. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  652. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  653. </div>
  654. </div>
  655. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  656. display: flex;
  657. margin: 20px 0;
  658. flex-direction: row;
  659. justify-content: flex-start;
  660. align-items: center;
  661. ">
  662. <div class="lineTitle">任务描述</div>
  663. </div> -->
  664. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2"
  665. style="margin-top: 20px;">
  666. <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  667. itemTaskIndex
  668. ].taskDetail
  669. " @change="change"></editor-bar>
  670. <!-- <textarea
  671. rows="6"
  672. class="binfo_input"
  673. placeholder="请输入任务描述"
  674. cols
  675. style="width: 70.5% !important; height: 120px"
  676. v-model="
  677. unitJson[unitIndex].chapterInfo[0].taskJson[
  678. itemTaskIndex
  679. ].taskDetail
  680. "
  681. ></textarea>-->
  682. </div>
  683. </div>
  684. </div>
  685. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  686. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  687. ">
  688. <div style="
  689. display: flex;
  690. flex-direction: row;
  691. justify-content: space-between;
  692. align-items: center;
  693. " :style="{ margin: !itemTask.isFoldchapter ? '20px 0 10px' : '20px 0 0' }">
  694. <div style="margin-bottom:10px" class="lineTitle">学习内容</div>
  695. <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  696. @click="foldC(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  697. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  698. src="../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  699. <!-- <div class="line"></div> -->
  700. </div>
  701. <div v-if="!itemTask.isFoldchapter">
  702. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  703. itemTask.chapterData.length == 0
  704. "><img src="../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  705. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  706. <div @dragstart="dragStart(item1, index1, itemTaskIndex)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  707. @dragend="dragEnd()" draggable class="chapter_upload"
  708. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  709. getChapterData(
  710. $event,
  711. unitIndex,
  712. index,
  713. index1,
  714. item1.type
  715. )
  716. " :class="{
  717. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  718. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  719. }">
  720. <div class="chapter_upload_drag"></div>
  721. <div class="chapter_upload_o" style="
  722. position: relative;
  723. display: flex;
  724. align-items: center;
  725. ">
  726. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  727. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  728. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  729. </div>
  730. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  731. </div>
  732. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  733. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  734. </div>
  735. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  736. </div>
  737. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  738. </div>
  739. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  740. </div>
  741. </div>
  742. <div class="chapter_upload_n">
  743. <input readonly="true" v-if="item1.type == 2 ||
  744. item1.type == 3 ||
  745. item1.type == 12 ||
  746. item1.type == 13 ||
  747. item1.type == 7
  748. " :placeholder="item1.name" @click="
  749. updataVideoT(
  750. $event,
  751. unitIndex,
  752. itemTaskIndex,
  753. index1
  754. )
  755. " style="
  756. border: none;
  757. outline: none;
  758. width: 80%;
  759. minwidth: 215px;
  760. z-index: 99;
  761. font-size: 14px;
  762. white-space: nowrap;
  763. overflow: hidden;
  764. text-overflow: ellipsis;
  765. " />
  766. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  767. border: none;
  768. outline: none;
  769. width: 80%;
  770. white-space: nowrap;
  771. overflow: hidden;
  772. text-overflow: ellipsis;
  773. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  774. <input :placeholder="item1.title ? item1.title : '链接'
  775. " v-if="item1.type == 8" style="
  776. border: none;
  777. outline: none;
  778. width: 80%;
  779. white-space: nowrap;
  780. overflow: hidden;
  781. text-overflow: ellipsis;
  782. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  783. <input :placeholder="item1.title ? item1.title : '链接'
  784. " v-if="item1.type == 14" style="
  785. border: none;
  786. outline: none;
  787. width: 80%;
  788. white-space: nowrap;
  789. overflow: hidden;
  790. text-overflow: ellipsis;
  791. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  792. </div>
  793. <div class="chapter_upload_ic">
  794. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  795. </div>
  796. <div class="chapter_upload_ud" style="z-index: 99">
  797. <div class="chapter_upload_up" @click="
  798. upCd(
  799. $event,
  800. unitIndex,
  801. index,
  802. itemTaskIndex,
  803. index1
  804. )
  805. "></div>
  806. <div class="chapter_upload_down" @click="
  807. downCd(
  808. $event,
  809. unitIndex,
  810. index,
  811. itemTaskIndex,
  812. index1
  813. )
  814. "></div>
  815. </div>
  816. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  817. item1.type == 3 ||
  818. item1.type == 12 ||
  819. item1.type == 13 ||
  820. item1.type == 7
  821. " @click.stop="
  822. updataVideoT(
  823. $event,
  824. unitIndex,
  825. itemTaskIndex,
  826. index1
  827. )
  828. ">
  829. <div></div>
  830. </div>
  831. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  832. @click="selectAttText(itemTaskIndex, index1)">
  833. <div></div>
  834. </div>
  835. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  836. @click="selectLine(itemTaskIndex, index1)">
  837. <div></div>
  838. </div>
  839. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  840. @click="openUpdateSource(itemTaskIndex, index1)">
  841. <div></div>
  842. </div>
  843. <div class="chapter_upload_ic_r" @click.stop="
  844. deleteChapterData(
  845. $event,
  846. unitIndex,
  847. index,
  848. index1,
  849. itemTaskIndex
  850. )
  851. ">
  852. <div></div>
  853. </div>
  854. </div>
  855. </div>
  856. </div>
  857. </div>
  858. </div>
  859. <div class="add_info_box" style="margin: 10px 0 0" v-if="!itemTask.isFoldchapter">
  860. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  861. 文件
  862. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  863. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  864. " />
  865. </button>
  866. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  867. 图文
  868. </button>
  869. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  870. 链接
  871. </button>
  872. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  873. 代码
  874. </button>
  875. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  876. 资源
  877. </button>
  878. </div>
  879. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  880. itemTaskIndex
  881. ].proVisible
  882. " class="mask">
  883. <div class="progressBox">
  884. <!-- <div id="closePro" class="closeCss">
  885. <img src="../../../assets/icon/close.png" alt />
  886. </div> -->
  887. <div class="lbox">
  888. <img src="../../assets/loading.gif" />上传中,请稍后
  889. </div>
  890. <div style="margin-bottom: 10px">
  891. <span>{{
  892. unitJson[unitIndex].chapterInfo[0].taskJson[
  893. itemTaskIndex
  894. ].isFinishSize
  895. }}M</span>
  896. /
  897. <span>{{
  898. unitJson[unitIndex].chapterInfo[0].taskJson[
  899. itemTaskIndex
  900. ].isAllSize
  901. }}M</span>
  902. </div>
  903. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  904. itemTaskIndex
  905. ].progress
  906. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  907. itemTaskIndex
  908. ].progress
  909. : 0
  910. " style="width: 80%"></el-progress>
  911. </div>
  912. </div>
  913. </div>
  914. <div v-if="unitJson[unitIndex].easy == 1 ||
  915. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  916. ">
  917. <div>
  918. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  919. itemTask.chapterData.length == 0
  920. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  921. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  922. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  923. @dragend="dragEnd()" draggable class="chapter_upload"
  924. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  925. getChapterData(
  926. $event,
  927. unitIndex,
  928. index,
  929. index1,
  930. item1.type
  931. )
  932. " :class="{
  933. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  934. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  935. }">
  936. <div class="chapter_upload_drag"></div>
  937. <div class="chapter_upload_t" style="width: 100%"></div>
  938. <div class="chapter_upload_o" style="
  939. position: relative;
  940. display: flex;
  941. align-items: center;
  942. ">
  943. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  944. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  945. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  946. </div>
  947. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  948. </div>
  949. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  950. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  951. </div>
  952. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  953. </div>
  954. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  955. </div>
  956. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  957. </div>
  958. </div>
  959. <div class="chapter_upload_n">
  960. <span style="
  961. font-size: 14px;
  962. color: rgb(109, 109, 109);
  963. height: 14px;
  964. line-height: 14px;
  965. " v-if="item1.type == 2 ||
  966. item1.type == 3 ||
  967. item1.type == 7
  968. ">{{ item1.text }}-</span>
  969. <input readonly="true" v-if="item1.type == 2 ||
  970. item1.type == 3 ||
  971. item1.type == 7
  972. " :placeholder="item1.name" @click="
  973. updataVideoT(
  974. $event,
  975. unitIndex,
  976. itemTaskIndex,
  977. index1
  978. )
  979. " style="
  980. border: none;
  981. outline: none;
  982. width: 80%;
  983. minwidth: 215px;
  984. z-index: 99;
  985. font-size: 14px;
  986. white-space: nowrap;
  987. overflow: hidden;
  988. text-overflow: ellipsis;
  989. " />
  990. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  991. border: none;
  992. outline: none;
  993. width: 80%;
  994. white-space: nowrap;
  995. overflow: hidden;
  996. text-overflow: ellipsis;
  997. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  998. <input :placeholder="item1.title ? item1.title : '链接'
  999. " v-if="item1.type == 8 || item1.type == 14" style="
  1000. border: none;
  1001. outline: none;
  1002. width: 80%;
  1003. white-space: nowrap;
  1004. overflow: hidden;
  1005. text-overflow: ellipsis;
  1006. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1007. </div>
  1008. <div class="chapter_upload_ic">
  1009. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  1010. </div>
  1011. <div class="chapter_upload_ud" style="z-index: 99">
  1012. <div class="chapter_upload_up" @click="
  1013. upCd(
  1014. $event,
  1015. unitIndex,
  1016. index,
  1017. itemTaskIndex,
  1018. index1
  1019. )
  1020. "></div>
  1021. <div class="chapter_upload_down" @click="
  1022. downCd(
  1023. $event,
  1024. unitIndex,
  1025. index,
  1026. itemTaskIndex,
  1027. index1
  1028. )
  1029. "></div>
  1030. </div>
  1031. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  1032. item1.type == 3 ||
  1033. item1.type == 12 ||
  1034. item1.type == 13 ||
  1035. item1.type == 7
  1036. " @click.stop="
  1037. updataVideoT(
  1038. $event,
  1039. unitIndex,
  1040. itemTaskIndex,
  1041. index1
  1042. )
  1043. ">
  1044. <div></div>
  1045. </div>
  1046. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  1047. @click="selectAttText(itemTaskIndex, index1)">
  1048. <div></div>
  1049. </div>
  1050. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1051. @click="selectLine(itemTaskIndex, index1)">
  1052. <div></div>
  1053. </div>
  1054. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  1055. @click="openUpdateSource(itemTaskIndex, index1)">
  1056. <div></div>
  1057. </div>
  1058. <div class="chapter_upload_ic_r" @click.stop="
  1059. deleteChapterData(
  1060. $event,
  1061. unitIndex,
  1062. index,
  1063. index1,
  1064. itemTaskIndex
  1065. )
  1066. ">
  1067. <div></div>
  1068. </div>
  1069. </div>
  1070. </div>
  1071. </div>
  1072. </div>
  1073. </div>
  1074. <div class="add_info_box" style="margin: 10px 0 0">
  1075. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1076. <span style="color: red">*</span>
  1077. 教学设计
  1078. <input type="file"
  1079. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1080. style="display: none" v-if="inputShow" @change="
  1081. beforeUpload3(
  1082. $event,
  1083. unitIndex,
  1084. 3,
  1085. itemTaskIndex,
  1086. '教学设计'
  1087. )
  1088. " />
  1089. </button>
  1090. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1091. <span style="color: red">*</span>
  1092. 教学课件
  1093. <input type="file"
  1094. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1095. style="display: none" v-if="inputShow" @change="
  1096. beforeUpload3(
  1097. $event,
  1098. unitIndex,
  1099. 3,
  1100. itemTaskIndex,
  1101. '教学课件'
  1102. )
  1103. " />
  1104. </button>
  1105. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1106. 教学视频
  1107. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1108. style="display: none" v-if="inputShow" @change="
  1109. beforeUpload3(
  1110. $event,
  1111. unitIndex,
  1112. 2,
  1113. itemTaskIndex,
  1114. '教学视频'
  1115. )
  1116. " />
  1117. </button>
  1118. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1119. 教学音频
  1120. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1121. beforeUpload3(
  1122. $event,
  1123. unitIndex,
  1124. 2,
  1125. itemTaskIndex,
  1126. '教学音频'
  1127. )
  1128. " />
  1129. </button>
  1130. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1131. 学习单
  1132. <input type="file"
  1133. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1134. style="display: none" v-if="inputShow" @change="
  1135. beforeUpload3(
  1136. $event,
  1137. unitIndex,
  1138. 3,
  1139. itemTaskIndex,
  1140. '学习单'
  1141. )
  1142. " />
  1143. </button>
  1144. </div>
  1145. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1146. itemTaskIndex
  1147. ].proVisible
  1148. " class="mask">
  1149. <div class="progressBox">
  1150. <!-- <div id="closePro" class="closeCss">
  1151. <img src="../../../assets/icon/close.png" alt />
  1152. </div> -->
  1153. <div class="lbox">
  1154. <img src="../../assets/loading.gif" />上传中,请稍后
  1155. </div>
  1156. <div style="margin-bottom: 10px">
  1157. <span>{{
  1158. unitJson[unitIndex].chapterInfo[0].taskJson[
  1159. itemTaskIndex
  1160. ].isFinishSize
  1161. }}M</span>
  1162. /
  1163. <span>{{
  1164. unitJson[unitIndex].chapterInfo[0].taskJson[
  1165. itemTaskIndex
  1166. ].isAllSize
  1167. }}M</span>
  1168. </div>
  1169. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1170. itemTaskIndex
  1171. ].progress
  1172. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1173. itemTaskIndex
  1174. ].progress
  1175. : 0
  1176. " style="width: 80%"></el-progress>
  1177. </div>
  1178. </div>
  1179. </div>
  1180. </div>
  1181. <!-- padding: 20px; -->
  1182. <div style="background: #fff;border-radius: 5px;margin-top: 15px;">
  1183. <div v-if="unitJson[unitIndex].easy != 3 &&
  1184. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1185. " style="
  1186. flex-direction: row;
  1187. justify-content: flex-start;
  1188. align-items: center;
  1189. ">
  1190. <div style="
  1191. display: flex;
  1192. flex-direction: row;
  1193. align-items: center;
  1194. margin: 5px 0 20px;
  1195. ">
  1196. <div class="lineTitle">
  1197. {{
  1198. !unitJson[unitIndex].easy ||
  1199. unitJson[unitIndex].easy == 6 ||
  1200. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1201. ? "练习内容"
  1202. : "评价内容"
  1203. }}
  1204. </div>
  1205. <!-- <div class="line" style="width: 90%"></div> -->
  1206. </div>
  1207. </div>
  1208. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1209. " class="toolChoose">
  1210. <div class="tools">
  1211. <div class="leftTools" style="
  1212. width: 100%;
  1213. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1214. <div style="
  1215. display: flex;
  1216. flex-direction: row;
  1217. align-items: baseline;
  1218. flex-wrap: nowrap;
  1219. justify-content: flex-start;
  1220. position: relative;
  1221. ">
  1222. <div style="margin-right: 20px; font-weight: bold"
  1223. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1224. 步骤 {{ toolIndex + 1 }} :
  1225. </div>
  1226. <div class="chooseWho">
  1227. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1228. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  1229. 互动类
  1230. </div>
  1231. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1232. " @click="(itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()">
  1233. 思维类
  1234. </div>
  1235. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1236. " @click="(itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()">
  1237. 协作类
  1238. </div>
  1239. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1240. " @click="(itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()">
  1241. 测评类
  1242. </div>
  1243. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1244. " @click="(itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()">
  1245. 评价类
  1246. </div>
  1247. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1248. " @click="(itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()">
  1249. 编程类
  1250. </div>
  1251. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1252. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  1253. 学科类
  1254. </div>
  1255. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1256. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1257. 其他
  1258. </div> -->
  1259. </div>
  1260. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" v-if="itemTask.toolChoose.length > 1">
  1261. <div class="chapter_upload_up2" @click.stop="
  1262. upTool(
  1263. $event,
  1264. unitIndex,
  1265. itemTaskIndex,
  1266. toolIndex
  1267. )
  1268. ">上移</div>
  1269. <div class="chapter_upload_down2" @click.stop="
  1270. downTool(
  1271. $event,
  1272. unitIndex,
  1273. itemTaskIndex,
  1274. toolIndex
  1275. )
  1276. ">下移</div>
  1277. </div>
  1278. <div v-if="!itemTool.isFold3" class="show_toolD show"
  1279. @click="fold3(itemTaskIndex, toolIndex)"
  1280. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1281. src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1282. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1283. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1284. src="../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  1285. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1286. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  1287. </div>
  1288. <div style="min-height: 163px" v-show="!itemTool.isFold3">
  1289. <div class="toolSort" v-if="itemTool.toolType == 0">
  1290. <!-- <div class="tool">
  1291. <div
  1292. class="whiteBIcon"
  1293. @click="addTools(8, itemTaskIndex, toolIndex)"
  1294. >
  1295. <img src="../../assets/icon/secondToolList/library.png" alt />
  1296. <div style="margin: 5px 0">素材库</div>
  1297. </div>
  1298. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1299. <img
  1300. src="../../assets/icon/checkNo.png"
  1301. alt
  1302. v-if="itemTool.tool.indexOf(8) == -1"
  1303. />
  1304. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1305. alt /><span>已选择</span></div>
  1306. </div>
  1307. </div>-->
  1308. <!-- <div class="tool">
  1309. <div
  1310. class="whiteBIcon"
  1311. @click="addTools(17, itemTaskIndex, toolIndex)"
  1312. >
  1313. <img
  1314. src="../../assets/icon/secondToolList/library.png"
  1315. alt
  1316. />
  1317. <div style="margin: 5px 0">学习资料</div>
  1318. </div>
  1319. <div
  1320. class="check"
  1321. @click="addTools(17, itemTaskIndex, toolIndex)"
  1322. >
  1323. <img
  1324. src="../../assets/icon/checkNo.png"
  1325. alt
  1326. v-if="itemTool.tool.indexOf(17) == -1"
  1327. />
  1328. <img
  1329. src="../../assets/icon/checkedIs.png"
  1330. alt
  1331. v-else
  1332. />
  1333. </div>10
  1334. </div> -->
  1335. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  1336. @click="addTools(10, itemTaskIndex, toolIndex)">
  1337. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 10, toolIndex)">
  1338. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1339. <div style="margin: 5px 0">倒计时</div>
  1340. </div>
  1341. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1342. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  1343. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1344. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1345. <img src="../../assets/icon/checkNo.png" alt
  1346. v-if="itemTool.tool.indexOf(10) == -1" />
  1347. <div class="checkDiv" v-else>
  1348. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1349. </div>
  1350. </div> -->
  1351. </div>
  1352. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  1353. @click="addTools(65, itemTaskIndex, toolIndex)">
  1354. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  1355. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  1356. <div style="margin: 5px 0">挑人</div>
  1357. </div>
  1358. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1359. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  1360. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1361. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1362. <img src="../../assets/icon/checkNo.png" alt
  1363. v-if="itemTool.tool.indexOf(65) == -1" />
  1364. <div class="checkDiv" v-else>
  1365. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1366. </div>
  1367. </div> -->
  1368. </div>
  1369. <!-- <div class="tool">
  1370. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1371. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1372. <div style="margin: 5px 0">学生分组</div>
  1373. </div>
  1374. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1375. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1376. <div class="checkDiv" v-else>
  1377. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1378. </div>
  1379. </div>
  1380. </div> -->
  1381. <!-- <div class="tool">
  1382. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1383. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1384. <div style="margin: 5px 0">交互视频</div>
  1385. </div>
  1386. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1387. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1388. <div class="checkDiv" v-else>
  1389. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1390. </div>
  1391. </div>
  1392. </div> -->
  1393. </div>
  1394. <div class="toolSort" v-if="itemTool.toolType == 1">
  1395. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  1396. @click="addTools(7, itemTaskIndex, toolIndex)">
  1397. <div class="whiteBIcon" @click.stop="addTools(7, itemTaskIndex, toolIndex)">
  1398. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1399. <div style="margin: 5px 0">思维网格</div>
  1400. </div>
  1401. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1402. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  1403. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1404. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1405. <img src="../../assets/icon/checkNo.png" alt
  1406. v-if="itemTool.tool.indexOf(7) == -1" />
  1407. <div class="checkDiv" v-else>
  1408. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1409. </div>
  1410. </div> -->
  1411. </div>
  1412. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  1413. @click="addTools(1, itemTaskIndex, toolIndex)">
  1414. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 1, toolIndex)">
  1415. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1416. <div style="margin: 5px 0">电子白板</div>
  1417. </div>
  1418. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1419. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  1420. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1421. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1422. <img src="../../assets/icon/checkNo.png" alt
  1423. v-if="itemTool.tool.indexOf(1) == -1" />
  1424. <div class="checkDiv" v-else>
  1425. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1426. </div>
  1427. </div> -->
  1428. </div>
  1429. <!-- <div class="tool">
  1430. <div
  1431. class="whiteBIcon"
  1432. @click="addTools(2, itemTaskIndex, toolIndex)"
  1433. >
  1434. <img
  1435. src="../../assets/icon/secondToolList/note.png"
  1436. alt
  1437. />
  1438. <div style="margin: 5px 0">便签</div>
  1439. </div>
  1440. <div
  1441. class="check"
  1442. @click="addTools(2, itemTaskIndex, toolIndex)"
  1443. >
  1444. <img
  1445. src="../../assets/icon/checkNo.png"
  1446. alt
  1447. v-if="itemTool.tool.indexOf(2) == -1"
  1448. />
  1449. <div class="checkDiv" v-else>
  1450. <img
  1451. src="../../assets/icon/checkedIs.png"
  1452. alt
  1453. /><span>已选择</span>
  1454. </div>
  1455. </div>
  1456. </div> -->
  1457. <!-- <div class="tool">
  1458. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1459. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1460. <div style="margin: 5px 0">协同文档</div>
  1461. </div>
  1462. <div
  1463. class="check"
  1464. @click="addTools(6, itemTaskIndex, toolIndex)"
  1465. >
  1466. <img
  1467. src="../../assets/icon/checkNo.png"
  1468. alt
  1469. v-if="itemTool.tool.indexOf(6) == -1"
  1470. />
  1471. <div class="checkDiv" v-else>
  1472. <img
  1473. src="../../assets/icon/checkedIs.png"
  1474. alt
  1475. /><span>已选择</span>
  1476. </div>
  1477. </div>
  1478. </div> -->
  1479. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  1480. @click="addTools(52, itemTaskIndex, toolIndex)">
  1481. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 52, toolIndex)">
  1482. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1483. <div style="margin: 5px 0">文档</div>
  1484. </div>
  1485. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1486. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  1487. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1488. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1489. <img src="../../assets/icon/checkNo.png" alt
  1490. v-if="itemTool.tool.indexOf(52) == -1" />
  1491. <div class="checkDiv" v-else>
  1492. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1493. </div>
  1494. </div> -->
  1495. </div>
  1496. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  1497. @click="addTools(3, itemTaskIndex, toolIndex)">
  1498. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 3, toolIndex)">
  1499. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1500. <div style="margin: 5px 0">思维导图</div>
  1501. </div>
  1502. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1503. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  1504. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1505. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1506. <img src="../../assets/icon/checkNo.png" alt
  1507. v-if="itemTool.tool.indexOf(3) == -1" />
  1508. <div class="checkDiv" v-else>
  1509. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1510. </div>
  1511. </div> -->
  1512. </div>
  1513. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  1514. @click="addTools(48, itemTaskIndex, toolIndex)">
  1515. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 48, toolIndex)">
  1516. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1517. <div style="margin: 5px 0">表格</div>
  1518. </div>
  1519. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1520. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  1521. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1522. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1523. <img src="../../assets/icon/checkNo.png" alt
  1524. v-if="itemTool.tool.indexOf(48) == -1" />
  1525. <div class="checkDiv" v-else>
  1526. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1527. </div>
  1528. </div> -->
  1529. </div>
  1530. </div>
  1531. <div class="toolSort" v-if="itemTool.toolType == 6">
  1532. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  1533. @click="addTools(49, itemTaskIndex, toolIndex)">
  1534. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 49, toolIndex)">
  1535. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1536. <div style="margin: 5px 0">学生分组</div>
  1537. </div>
  1538. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1539. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  1540. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1541. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1542. <img src="../../assets/icon/checkNo.png" alt
  1543. v-if="itemTool.tool.indexOf(49) == -1" />
  1544. <div class="checkDiv" v-else>
  1545. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1546. </div>
  1547. </div> -->
  1548. </div>
  1549. </div>
  1550. <div class="toolSort" v-if="itemTool.toolType == 2">
  1551. <!-- <div class="tool">
  1552. <div
  1553. class="whiteBIcon"
  1554. @click="addTools(5, itemTaskIndex, toolIndex)"
  1555. >
  1556. <img
  1557. src="../../assets/icon/thirdToolList/score.png"
  1558. alt
  1559. />
  1560. <div style="margin: 5px 0">量规评分</div>
  1561. </div>
  1562. <div
  1563. class="check"
  1564. @click="addTools(5, itemTaskIndex, toolIndex)"
  1565. >
  1566. <img
  1567. src="../../assets/icon/checkNo.png"
  1568. alt
  1569. v-if="itemTool.tool.indexOf(5) == -1"
  1570. />
  1571. <img
  1572. src="../../assets/icon/checkedIs.png"
  1573. alt
  1574. v-else
  1575. />
  1576. </div>
  1577. </div>-->
  1578. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  1579. @click="addTools(4, itemTaskIndex, toolIndex)">
  1580. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 4, toolIndex)">
  1581. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1582. <div style="margin: 5px 0">问卷调查</div>
  1583. </div>
  1584. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1585. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  1586. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1587. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1588. <img src="../../assets/icon/checkNo.png" alt
  1589. v-if="itemTool.tool.indexOf(4) == -1" />
  1590. <div class="checkDiv" v-else>
  1591. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1592. </div>
  1593. </div> -->
  1594. </div>
  1595. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  1596. @click="addTools(45, itemTaskIndex, toolIndex)">
  1597. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1598. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1599. <div style="margin: 5px 0">选择题</div>
  1600. </div>
  1601. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1602. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  1603. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1604. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1605. <img src="../../assets/icon/checkNo.png" alt
  1606. v-if="itemTool.tool.indexOf(45) == -1" />
  1607. <div class="checkDiv" v-else>
  1608. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1609. </div>
  1610. </div> -->
  1611. </div>
  1612. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  1613. @click="addTools(15, itemTaskIndex, toolIndex)">
  1614. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 15, toolIndex)">
  1615. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1616. <div style="margin: 5px 0">问答</div>
  1617. </div>
  1618. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1619. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  1620. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1621. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1622. <img src="../../assets/icon/checkNo.png" alt
  1623. v-if="itemTool.tool.indexOf(15) == -1" />
  1624. <div class="checkDiv" v-else>
  1625. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1626. </div>
  1627. </div> -->
  1628. </div>
  1629. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1630. @click="addTools(16, itemTaskIndex, toolIndex)">
  1631. <div class="whiteBIcon" @click.stop="addTools(16, itemTaskIndex, toolIndex)">
  1632. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1633. <div style="margin: 5px 0">作业提交</div>
  1634. </div>
  1635. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1636. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1637. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1638. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1639. <img src="../../assets/icon/checkNo.png" alt
  1640. v-if="itemTool.tool.indexOf(16) == -1" />
  1641. <div class="checkDiv" v-else>
  1642. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1643. </div>
  1644. </div> -->
  1645. </div>
  1646. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1647. @click="addTools(50, itemTaskIndex, toolIndex)">
  1648. <div class="whiteBIcon" @click.stop="addTools(50, itemTaskIndex, toolIndex)">
  1649. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1650. <div style="margin: 5px 0">批量上传</div>
  1651. </div>
  1652. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1653. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1654. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1655. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1656. <img src="../../assets/icon/checkNo.png" alt
  1657. v-if="itemTool.tool.indexOf(50) == -1" />
  1658. <div class="checkDiv" v-else>
  1659. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1660. </div>
  1661. </div> -->
  1662. </div>
  1663. <!-- <div class="tool">
  1664. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1665. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1666. <div style="margin: 5px 0">个人评价</div>
  1667. </div>
  1668. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1669. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1670. <div class="checkDiv" v-else>
  1671. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1672. </div>
  1673. </div>
  1674. </div> -->
  1675. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1676. @click="addTools(41, itemTaskIndex, toolIndex)">
  1677. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 41, toolIndex)">
  1678. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1679. <div style="margin: 5px 0">选择匹配</div>
  1680. </div>
  1681. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1682. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1683. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1684. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1685. <img src="../../assets/icon/checkNo.png" alt
  1686. v-if="itemTool.tool.indexOf(41) == -1" />
  1687. <div class="checkDiv" v-else>
  1688. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1689. </div>
  1690. </div> -->
  1691. </div>
  1692. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1693. @click="addTools(47, itemTaskIndex, toolIndex)">
  1694. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 47, toolIndex)">
  1695. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1696. <div style="margin: 5px 0">排序</div>
  1697. </div>
  1698. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1699. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1700. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1701. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1702. <img src="../../assets/icon/checkNo.png" alt
  1703. v-if="itemTool.tool.indexOf(47) == -1" />
  1704. <div class="checkDiv" v-else>
  1705. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1706. </div>
  1707. </div> -->
  1708. </div>
  1709. <!-- <div class="tool">
  1710. <div
  1711. class="whiteBIcon"
  1712. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1713. >
  1714. <img
  1715. src="../../assets/icon/thirdToolList/mp3.png"
  1716. alt
  1717. />
  1718. <div style="margin: 5px 0">上传音频</div>
  1719. </div>
  1720. <div
  1721. class="check"
  1722. @click="addTools(42, itemTaskIndex, toolIndex)"
  1723. >
  1724. <img
  1725. src="../../assets/icon/checkNo.png"
  1726. alt
  1727. v-if="itemTool.tool.indexOf(42) == -1"
  1728. />
  1729. <img
  1730. src="../../assets/icon/checkedIs.png"
  1731. alt
  1732. v-else
  1733. />
  1734. </div>
  1735. </div> -->
  1736. </div>
  1737. <div class="toolSort" v-if="itemTool.toolType == 3">
  1738. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1739. @click="addTools(18, itemTaskIndex, toolIndex)">
  1740. <div class="whiteBIcon" @click.stop="addTools(18, itemTaskIndex, toolIndex)">
  1741. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1742. <div style="margin: 5px 0">训练平台</div>
  1743. </div>
  1744. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1745. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1746. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1747. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1748. <img src="../../assets/icon/checkNo.png" alt
  1749. v-if="itemTool.tool.indexOf(18) == -1" />
  1750. <div class="checkDiv" v-else>
  1751. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1752. </div>
  1753. </div> -->
  1754. </div>
  1755. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1756. @click="addTools(21, itemTaskIndex, toolIndex)">
  1757. <div class="whiteBIcon" @click.stop="addTools(21, itemTaskIndex, toolIndex)">
  1758. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1759. <div style="margin: 5px 0">AIoT Blockly</div>
  1760. </div>
  1761. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1762. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1763. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1764. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1765. <img src="../../assets/icon/checkNo.png" alt
  1766. v-if="itemTool.tool.indexOf(21) == -1" />
  1767. <div class="checkDiv" v-else>
  1768. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1769. </div>
  1770. </div> -->
  1771. </div>
  1772. <!-- <div class="tool">
  1773. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1774. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1775. <div style="margin: 5px 0">AI体验</div>
  1776. </div>
  1777. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1778. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1779. <div class="checkDiv" v-else>
  1780. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1781. </div>
  1782. </div>
  1783. </div> -->
  1784. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1785. @click="addTools(23, itemTaskIndex, toolIndex)">
  1786. <div class="whiteBIcon" @click.stop="addTools(23, itemTaskIndex, toolIndex)">
  1787. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1788. <div style="margin: 5px 0">AI Python</div>
  1789. </div>
  1790. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1791. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1792. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1793. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1794. <img src="../../assets/icon/checkNo.png" alt
  1795. v-if="itemTool.tool.indexOf(23) == -1" />
  1796. <div class="checkDiv" v-else>
  1797. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1798. </div>
  1799. </div> -->
  1800. </div>
  1801. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1802. @click="addTools(24, itemTaskIndex, toolIndex)">
  1803. <div class="whiteBIcon" @click.stop="addTools(24, itemTaskIndex, toolIndex)">
  1804. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1805. <div style="margin: 5px 0">AI Blockly</div>
  1806. </div>
  1807. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1808. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1809. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1810. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1811. <img src="../../assets/icon/checkNo.png" alt
  1812. v-if="itemTool.tool.indexOf(24) == -1" />
  1813. <div class="checkDiv" v-else>
  1814. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1815. </div>
  1816. </div> -->
  1817. </div>
  1818. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1819. @click="addTools(32, itemTaskIndex, toolIndex)">
  1820. <div class="whiteBIcon" @click.stop="addTools(32, itemTaskIndex, toolIndex)">
  1821. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1822. <div style="margin: 5px 0">源码编辑</div>
  1823. </div>
  1824. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1825. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1826. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1827. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1828. <img src="../../assets/icon/checkNo.png" alt
  1829. v-if="itemTool.tool.indexOf(32) == -1" />
  1830. <div class="checkDiv" v-else>
  1831. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1832. </div>
  1833. </div> -->
  1834. </div>
  1835. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1836. @click="addTools(57, itemTaskIndex, toolIndex)">
  1837. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1838. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1839. <div style="margin: 5px 0">CocoPi</div>
  1840. </div>
  1841. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1842. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1843. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1844. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1845. <img src="../../assets/icon/checkNo.png" alt
  1846. v-if="itemTool.tool.indexOf(57) == -1" />
  1847. <div class="checkDiv" v-else>
  1848. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1849. </div>
  1850. </div> -->
  1851. </div>
  1852. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1853. @click="addTools(63, itemTaskIndex, toolIndex)">
  1854. <div class="whiteBIcon" @click.stop="addTools(63, itemTaskIndex, toolIndex)">
  1855. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1856. <div style="margin: 5px 0">海龟编程</div>
  1857. </div>
  1858. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1859. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1860. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1861. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1862. <img src="../../assets/icon/checkNo.png" alt
  1863. v-if="itemTool.tool.indexOf(63) == -1" />
  1864. <div class="checkDiv" v-else>
  1865. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1866. </div>
  1867. </div> -->
  1868. </div>
  1869. </div>
  1870. <div class="toolSort" v-if="itemTool.toolType == 7">
  1871. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1872. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1873. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 40, toolIndex)">
  1874. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1875. <div style="margin: 5px 0">个人评价</div>
  1876. </div>
  1877. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1878. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1879. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1880. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1881. <img src="../../assets/icon/checkNo.png" alt
  1882. v-if="itemTool.tool.indexOf(40) == -1" />
  1883. <div class="checkDiv" v-else>
  1884. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1885. </div>
  1886. </div> -->
  1887. </div>
  1888. </div>
  1889. <div class="toolSort" v-if="itemTool.toolType == 5">
  1890. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1891. @click="addTools(28, itemTaskIndex, toolIndex)">
  1892. <div class="whiteBIcon" @click.stop="addTools(28, itemTaskIndex, toolIndex)">
  1893. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1894. <div style="margin: 5px 0">翻译</div>
  1895. </div>
  1896. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1897. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1898. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1899. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1900. <img src="../../assets/icon/checkNo.png" alt
  1901. v-if="itemTool.tool.indexOf(28) == -1" />
  1902. <div class="checkDiv" v-else>
  1903. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1904. </div>
  1905. </div> -->
  1906. </div>
  1907. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1908. @click="addTools(31, itemTaskIndex, toolIndex)">
  1909. <div class="whiteBIcon" @click.stop="addTools(31, itemTaskIndex, toolIndex)">
  1910. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1911. <div style="margin: 5px 0">数字画板</div>
  1912. </div>
  1913. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1914. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1915. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1916. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1917. <img src="../../assets/icon/checkNo.png" alt
  1918. v-if="itemTool.tool.indexOf(31) == -1" />
  1919. <div class="checkDiv" v-else>
  1920. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1921. </div>
  1922. </div> -->
  1923. </div>
  1924. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1925. @click="addTools(39, itemTaskIndex, toolIndex)">
  1926. <div class="whiteBIcon" @click.stop="addTools(39, itemTaskIndex, toolIndex)">
  1927. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1928. <div style="margin: 5px 0">GeoGebra</div>
  1929. </div>
  1930. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1931. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  1932. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1933. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1934. <img src="../../assets/icon/checkNo.png" alt
  1935. v-if="itemTool.tool.indexOf(39) == -1" />
  1936. <div class="checkDiv" v-else>
  1937. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1938. </div>
  1939. </div> -->
  1940. </div>
  1941. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  1942. @click="addTools(66, itemTaskIndex, toolIndex)">
  1943. <div class="whiteBIcon" @click.stop="addTools(66, itemTaskIndex, toolIndex)">
  1944. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  1945. <div style="margin: 5px 0">公式编辑</div>
  1946. </div>
  1947. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1948. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  1949. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1950. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  1951. <img src="../../assets/icon/checkNo.png" alt
  1952. v-if="itemTool.tool.indexOf(66) == -1" />
  1953. <div class="checkDiv" v-else>
  1954. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1955. </div>
  1956. </div> -->
  1957. </div>
  1958. <!-- <div class="tool">
  1959. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  1960. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  1961. <div style="margin: 5px 0">分子结构</div>
  1962. </div>
  1963. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  1964. <img src="../../assets/icon/checkNo.png" alt
  1965. v-if="itemTool.tool.indexOf(67) == -1" />
  1966. <div class="checkDiv" v-else>
  1967. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1968. </div>
  1969. </div>
  1970. </div> -->
  1971. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  1972. @click="addTools(68, itemTaskIndex, toolIndex)">
  1973. <div class="whiteBIcon" @click.stop="addTools(68, itemTaskIndex, toolIndex)">
  1974. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  1975. <div style="margin: 5px 0">时间轴</div>
  1976. </div>
  1977. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1978. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  1979. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1980. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  1981. <img src="../../assets/icon/checkNo.png" alt
  1982. v-if="itemTool.tool.indexOf(68) == -1" />
  1983. <div class="checkDiv" v-else>
  1984. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1985. </div>
  1986. </div> -->
  1987. </div>
  1988. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  1989. @click="addTools(69, itemTaskIndex, toolIndex)">
  1990. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 69, toolIndex)">
  1991. <img src="../../assets/icon/thirdToolList/english.png" alt />
  1992. <div style="margin: 5px 0">英语写作</div>
  1993. </div>
  1994. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1995. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1"><img
  1996. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1997. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1998. <img src="../../assets/icon/checkNo.png" alt
  1999. v-if="itemTool.tool.indexOf(4) == -1" />
  2000. <div class="checkDiv" v-else>
  2001. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2002. </div>
  2003. </div> -->
  2004. </div>
  2005. <!-- <div class="tool">
  2006. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2007. <img src="../../assets/icon/secondToolList/translation.png" alt />
  2008. <div style="margin: 5px 0">翻译</div>
  2009. </div>
  2010. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2011. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2012. <div class="checkDiv" v-else>
  2013. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2014. </div>
  2015. </div>
  2016. </div>
  2017. <div class="tool">
  2018. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2019. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  2020. <div style="margin: 5px 0">魔盒识字</div>
  2021. </div>
  2022. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2023. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -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">
  2030. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  2031. <img src="../../assets/icon/secondToolList/24game.png" alt />
  2032. <div style="margin: 5px 0">24点</div>
  2033. </div>
  2034. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  2035. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  2036. <div class="checkDiv" v-else>
  2037. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2038. </div>
  2039. </div>
  2040. </div>
  2041. <div class="tool">
  2042. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  2043. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2044. <div style="margin: 5px 0">数学画板</div>
  2045. </div>
  2046. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2047. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2048. <div class="checkDiv" v-else>
  2049. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2050. </div>
  2051. </div>
  2052. </div>
  2053. <div class="tool">
  2054. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2055. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  2056. <div style="margin: 5px 0">GeoGebra</div>
  2057. </div>
  2058. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2059. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2060. <div class="checkDiv" v-else>
  2061. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2062. </div>
  2063. </div>
  2064. </div>
  2065. <div class="tool">
  2066. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  2067. <img src="../../assets/icon/fourthToolList/car.png" alt />
  2068. <div style="margin: 5px 0">模拟驾驶</div>
  2069. </div>
  2070. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  2071. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  2072. <div class="checkDiv" v-else>
  2073. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2074. </div>
  2075. </div>
  2076. </div>
  2077. <div class="tool">
  2078. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  2079. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  2080. <div style="margin: 5px 0">路径搜索</div>
  2081. </div>
  2082. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  2083. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  2084. <div class="checkDiv" v-else>
  2085. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2086. </div>
  2087. </div>
  2088. </div>
  2089. <div class="tool">
  2090. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  2091. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  2092. <div style="margin: 5px 0">深度学习</div>
  2093. </div>
  2094. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  2095. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  2096. <div class="checkDiv" v-else>
  2097. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2098. </div>
  2099. </div>
  2100. </div>
  2101. <div class="tool">
  2102. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  2103. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  2104. <div style="margin: 5px 0">全历史</div>
  2105. </div>
  2106. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  2107. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  2108. <div class="checkDiv" v-else>
  2109. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2110. </div>
  2111. </div>
  2112. </div>
  2113. </div>
  2114. <div class="toolSort" v-if="itemTool.toolType == 4">
  2115. <div class="tool">
  2116. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  2117. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  2118. <div style="margin: 5px 0">课程设计</div>
  2119. </div>
  2120. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  2121. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  2122. <div class="checkDiv" v-else>
  2123. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2124. </div>
  2125. </div>
  2126. </div>
  2127. <div class="tool">
  2128. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  2129. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  2130. <div style="margin: 5px 0">目标管理</div>
  2131. </div>
  2132. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  2133. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  2134. <div class="checkDiv" v-else>
  2135. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2136. </div>
  2137. </div>
  2138. </div> -->
  2139. <!-- <div class="tool">
  2140. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2141. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  2142. <div style="margin: 5px 0">汉字宫</div>
  2143. </div>
  2144. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2145. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2146. <div class="checkDiv" v-else>
  2147. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2148. </div>
  2149. </div>
  2150. </div> -->
  2151. </div>
  2152. </div>
  2153. <div v-show="!itemTool.isFold3">
  2154. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  2155. style="margin: 0 0 20px 0; width: 100% !important"
  2156. v-model="itemTool.toolDetail"></textarea>
  2157. </div>
  2158. </div>
  2159. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2160. <div class="addToolImg">
  2161. <img src="../../assets/icon/add.png" alt />
  2162. </div>
  2163. <div>添加工具</div>
  2164. </div> -->
  2165. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 0 auto;padding: 0 30px;height: 45px;">
  2166. 添加工具
  2167. </button>
  2168. </div>
  2169. </div>
  2170. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2171. unitJson[unitIndex].easy == 4
  2172. " class="toolChoose" style="padding: 0 0 40px;">
  2173. <div class="tools">
  2174. <div class="leftTools" style="width: 100%"
  2175. v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2176. <div>
  2177. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2178. style="margin: 0 0 20px 0; width: 100% !important"
  2179. v-model="itemTool.toolDetail"></textarea>
  2180. </div>
  2181. <div style="
  2182. display: flex;
  2183. flex-direction: row;
  2184. align-items: baseline;
  2185. flex-wrap: nowrap;
  2186. justify-content: flex-start;
  2187. position: relative;
  2188. ">
  2189. <div style="margin-right: 20px; font-weight: bold"
  2190. :id="'gj' + itemTaskIndex + '' + toolIndex">
  2191. 步骤 {{ toolIndex + 1 }} :
  2192. </div>
  2193. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2194. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  2195. </div>
  2196. <div style="min-height: 163px">
  2197. <div class="toolSort">
  2198. <div class="tool">
  2199. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2200. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2201. <div style="margin: 5px 0">电子白板</div>
  2202. </div>
  2203. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2204. <img src="../../assets/icon/checkNo.png" alt
  2205. v-if="itemTool.tool.indexOf(1) == -1" />
  2206. <div class="checkDiv" v-else>
  2207. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2208. </div>
  2209. </div>
  2210. </div>
  2211. <div class="tool">
  2212. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2213. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2214. <div style="margin: 5px 0">文档</div>
  2215. </div>
  2216. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2217. <img src="../../assets/icon/checkNo.png" alt
  2218. v-if="itemTool.tool.indexOf(52) == -1" />
  2219. <div class="checkDiv" v-else>
  2220. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2221. </div>
  2222. </div>
  2223. </div>
  2224. <div class="tool">
  2225. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2226. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2227. <div style="margin: 5px 0">思维导图</div>
  2228. </div>
  2229. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2230. <img src="../../assets/icon/checkNo.png" alt
  2231. v-if="itemTool.tool.indexOf(3) == -1" />
  2232. <div class="checkDiv" v-else>
  2233. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2234. </div>
  2235. </div>
  2236. </div>
  2237. <div class="tool">
  2238. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2239. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2240. <div style="margin: 5px 0">问卷调查</div>
  2241. </div>
  2242. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2243. <img src="../../assets/icon/checkNo.png" alt
  2244. v-if="itemTool.tool.indexOf(4) == -1" />
  2245. <div class="checkDiv" v-else>
  2246. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2247. </div>
  2248. </div>
  2249. </div>
  2250. <div class="tool">
  2251. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2252. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  2253. <div style="margin: 5px 0">选择题</div>
  2254. </div>
  2255. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2256. <img src="../../assets/icon/checkNo.png" alt
  2257. v-if="itemTool.tool.indexOf(45) == -1" />
  2258. <div class="checkDiv" v-else>
  2259. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2260. </div>
  2261. </div>
  2262. </div>
  2263. <div class="tool">
  2264. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2265. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  2266. <div style="margin: 5px 0">问答</div>
  2267. </div>
  2268. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2269. <img src="../../assets/icon/checkNo.png" alt
  2270. v-if="itemTool.tool.indexOf(15) == -1" />
  2271. <div class="checkDiv" v-else>
  2272. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2273. </div>
  2274. </div>
  2275. </div>
  2276. <div class="tool">
  2277. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2278. <img src="../../assets/icon/thirdToolList/work.png" alt />
  2279. <div style="margin: 5px 0">作业提交</div>
  2280. </div>
  2281. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2282. <img src="../../assets/icon/checkNo.png" alt
  2283. v-if="itemTool.tool.indexOf(16) == -1" />
  2284. <div class="checkDiv" v-else>
  2285. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2286. </div>
  2287. </div>
  2288. </div>
  2289. <div class="tool">
  2290. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2291. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2292. <div style="margin: 5px 0">批量上传</div>
  2293. </div>
  2294. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2295. <img src="../../assets/icon/checkNo.png" alt
  2296. v-if="itemTool.tool.indexOf(50) == -1" />
  2297. <div class="checkDiv" v-else>
  2298. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2299. </div>
  2300. </div>
  2301. </div>
  2302. <div class="tool">
  2303. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2304. <img src="../../assets/icon/thirdToolList/select.png" alt />
  2305. <div style="margin: 5px 0">选择匹配</div>
  2306. </div>
  2307. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2308. <img src="../../assets/icon/checkNo.png" alt
  2309. v-if="itemTool.tool.indexOf(41) == -1" />
  2310. <div class="checkDiv" v-else>
  2311. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2312. </div>
  2313. </div>
  2314. </div>
  2315. <div class="tool">
  2316. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2317. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  2318. <div style="margin: 5px 0">排序</div>
  2319. </div>
  2320. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2321. <img src="../../assets/icon/checkNo.png" alt
  2322. v-if="itemTool.tool.indexOf(47) == -1" />
  2323. <div class="checkDiv" v-else>
  2324. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2325. </div>
  2326. </div>
  2327. </div>
  2328. <div class="tool">
  2329. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2330. <img src="../../assets/icon/fourthToolList/table.png" alt />
  2331. <div style="margin: 5px 0">表格</div>
  2332. </div>
  2333. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2334. <img src="../../assets/icon/checkNo.png" alt
  2335. v-if="itemTool.tool.indexOf(48) == -1" />
  2336. <div class="checkDiv" v-else>
  2337. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2338. </div>
  2339. </div>
  2340. </div>
  2341. </div>
  2342. </div>
  2343. </div>
  2344. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2345. <div class="addToolImg">
  2346. <img src="../../assets/icon/add.png" alt />
  2347. </div>
  2348. <div>添加工具</div>
  2349. </div> -->
  2350. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 35px auto 20px">
  2351. 添加工具
  2352. </button>
  2353. </div>
  2354. </div>
  2355. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2356. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2357. " class="toolChoose" style="padding: 0 0 40px;">
  2358. <div class="tools">
  2359. <div class="leftTools" style="
  2360. width: 100%;
  2361. padding: 0 0 15px 0;
  2362. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2363. <div style="min-height: 163px">
  2364. <div class="toolSort">
  2365. <div class="tool">
  2366. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2367. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2368. <div style="margin: 5px 0">批量上传</div>
  2369. </div>
  2370. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2371. <img src="../../assets/icon/checkNo.png" alt
  2372. v-if="itemTool.tool.indexOf(50) == -1" />
  2373. <div class="checkDiv" v-else>
  2374. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2375. </div>
  2376. </div>
  2377. </div>
  2378. </div>
  2379. </div>
  2380. </div>
  2381. </div>
  2382. </div>
  2383. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2384. <div class="elist_title">
  2385. <div style="
  2386. display: flex;
  2387. flex-direction: row;
  2388. align-items: center;
  2389. margin: 20px 0;
  2390. ">
  2391. <div class="lineTitle">评价设置</div>
  2392. <!-- <div class="line" style="width: 90%"></div> -->
  2393. </div>
  2394. </div>
  2395. <div class="mbCss">
  2396. <div class="pjCss" :style="{width:itemTask.isEvaFold?'calc(100% - 55%)':'calc(100% - 120px)'}">
  2397. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2398. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2399. <span>评价名称:</span>
  2400. <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价名称'" placement="top" popper-class="text_tooltip2">
  2401. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2402. </el-tooltip>
  2403. <span>评星等级:</span>
  2404. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  2405. disabled></el-rate>
  2406. <div class="remove" @click="
  2407. deletEList(unitIndex, itemTaskIndex, eIndex)
  2408. "></div>
  2409. <div class="elist_inptu_text">
  2410. <span>评价描述:</span>
  2411. <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写评价描述'" placement="top" popper-class="text_tooltip2">
  2412. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2413. </el-tooltip>
  2414. </div>
  2415. <div class="elist_inptu_text" v-if="evalua">
  2416. <span>目标:</span>
  2417. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2418. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2419. @change="forceUpdate()">
  2420. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2421. :value="e.name">
  2422. </el-option>
  2423. </el-select> -->
  2424. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2425. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2426. </div>
  2427. </div>
  2428. </div>
  2429. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  2430. style="margin: 35px 35px 0 0">
  2431. <div class="addToolImg">
  2432. <img src="../../assets/icon/add.png" alt />
  2433. </div>
  2434. <div>添加</div>
  2435. </div> -->
  2436. <button class="c_pub_button_add pub_btn_eval_img" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 20px 35px 0 0">
  2437. 添加
  2438. </button>
  2439. </div>
  2440. <div v-if="evalua" style="
  2441. border: 1px solid #e5e5e5;
  2442. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2443. " :style="{width:itemTask.isEvaFold?'55%':'116px'}" class="evaCss">
  2444. <!-- <div class="e_add_top">
  2445. <div class="e_add_title">
  2446. <span>当前使用目标管理</span>
  2447. <span>{{ eTitle }}</span>
  2448. <img src="../../assets/line.png" class="cru_line" style="
  2449. width: 125px;
  2450. height: 20px;
  2451. bottom: -10px;
  2452. left: 155px;
  2453. " />
  2454. </div>
  2455. </div> -->
  2456. <div class="e_add_content" style="width: 100%">
  2457. <div class="e_add_list_pbox" style="width: 100%">
  2458. <div class="e_add_list_pbox_title">
  2459. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  2460. <div class="type_content" v-if="itemTask.isEvaFold">
  2461. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1, itemTaskIndex)">目标树</span>
  2462. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  2463. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  2464. </div>
  2465. <div v-if="itemTask.isEvaFold"
  2466. class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva(itemTaskIndex)"><img
  2467. src="../../assets/icon/new/icon-slide.png" />收起目标</div>
  2468. <div v-else style="margin:0 0 0 auto" class="show_taskD"
  2469. @click="foldEva(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开目标
  2470. </div>
  2471. </div>
  2472. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold" style="min-height: 200px;">
  2473. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2474. " v-if="typeMode == 1"></Mind>
  2475. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2476. </Sunburst>
  2477. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2478. v-if="typeMode == 3"></SeeBoard>
  2479. </div>
  2480. </div>
  2481. </div>
  2482. </div>
  2483. </div>
  2484. </div>
  2485. <div class="funBlock" style="padding: 0">
  2486. <div class="fold" @click="fold(itemTaskIndex, $event)">
  2487. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  2488. </div>
  2489. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  2490. </div>
  2491. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2492. <div>展开</div>
  2493. <div class="arrow">
  2494. <img src="../../assets/icon/expand.png" alt />
  2495. </div>
  2496. </div> -->
  2497. </div>
  2498. </div>
  2499. </div>
  2500. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2501. <!-- <div>
  2502. <img src="../../../assets/icon/new/addStage.png" alt />
  2503. <span>添加任务</span>
  2504. </div> -->
  2505. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2506. 添加任务
  2507. </button>
  2508. </div>
  2509. </div>
  2510. <div class="info_btnBox3">
  2511. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2512. goTo(
  2513. '/course?userid=' +
  2514. userid +
  2515. '&oid=' +
  2516. oid +
  2517. '&org=' +
  2518. org +
  2519. '&role=' +
  2520. role
  2521. )
  2522. ">
  2523. 返回课程
  2524. </button>
  2525. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps"
  2526. style="background:#dbdbdb">
  2527. {{ steps == 4 ? "返回课程" : "上一步" }}
  2528. </button>
  2529. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2530. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2531. {{ steps == 3 ? "确认上传" : "下一步" }}
  2532. </button>
  2533. </div>
  2534. </div>
  2535. </div>
  2536. </div>
  2537. </div>
  2538. <div style="
  2539. width: calc(100% - 20px);
  2540. background: rgb(255, 255, 255);
  2541. border-radius: 10px;
  2542. " v-if="this.steps == 4">
  2543. <div class="basic_box_success">
  2544. <div class="right_img">
  2545. <img src="../../assets/icon/right.png" alt />
  2546. </div>
  2547. <div style="font-weight: bold">成功</div>
  2548. <!-- <div>您的课程编号</div>
  2549. <div class="number">{{ number }}</div>-->
  2550. <!-- <div class="success_button">
  2551. <div class="look_course" @click="isNoFinsh">
  2552. 邀请老师协同编辑
  2553. </div>
  2554. <div class="attend_others" @click="goCourse">预览课程</div>
  2555. </div> -->
  2556. </div>
  2557. </div>
  2558. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  2559. @mouseleave="btnDisplay(false)" v-if="false">
  2560. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  2561. goTo(
  2562. '/course?userid=' +
  2563. userid +
  2564. '&oid=' +
  2565. oid +
  2566. '&org=' +
  2567. org +
  2568. '&role=' +
  2569. role
  2570. )
  2571. ">
  2572. 返回课程
  2573. </button>
  2574. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  2575. @click="lastSteps">
  2576. {{ steps == 4 ? "返回课程" : "上一步" }}
  2577. </button>
  2578. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
  2579. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2580. {{ steps == 3 ? "确认上传" : "下一步" }}
  2581. </button>
  2582. </div>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2587. class="dialog_diy2 customWidth">
  2588. <div>请复制该链接邀请协同编辑</div>
  2589. <div>http://www.boomyon.com/index-zhang.com</div>
  2590. <span slot="footer" class="dialog-footer">
  2591. <el-button type="primary">复制链接分享</el-button>
  2592. <el-button @click="dialogVisible = false">取消</el-button>
  2593. </span>
  2594. </el-dialog>
  2595. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2596. :before-close="handleClose" class="dialog_diy2 customWidth">
  2597. <el-form>
  2598. <el-form-item label="文档标题">
  2599. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2600. </el-form-item>
  2601. <div>文档简介</div>
  2602. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2603. </el-form>
  2604. <span slot="footer" class="dialog-footer">
  2605. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2606. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2607. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2608. </span>
  2609. </el-dialog>
  2610. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2611. :before-close="handleClose" class="dialog_diy">
  2612. <el-form>
  2613. <el-form-item label="文档标题">
  2614. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2615. </el-form-item>
  2616. <div>文档内容</div>
  2617. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2618. </el-form>
  2619. <span slot="footer" class="dialog-footer">
  2620. <el-button @click="clearChoose">取 消</el-button>
  2621. <el-button type="primary" @click="wordNext()">确定</el-button>
  2622. </span>
  2623. </el-dialog>
  2624. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2625. :before-close="handleClose" class="dialog_diy">
  2626. <el-form>
  2627. <el-form-item label="文本标题">
  2628. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  2629. placeholder="请输入文本标题..."></el-input>
  2630. </el-form-item>
  2631. <!-- <div>富文本内容</div> -->
  2632. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2633. </el-form>
  2634. <span slot="footer" class="dialog-footer">
  2635. <el-button @click="clearAttText">取 消</el-button>
  2636. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2637. </span>
  2638. </el-dialog>
  2639. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2640. :before-close="handleClose" class="dialog_diy lineCss">
  2641. <el-form>
  2642. <el-form-item label="标题" :label-width="formLabelWidth">
  2643. <span>
  2644. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2645. </span>
  2646. </el-form-item>
  2647. <el-form-item label="链接" :label-width="formLabelWidth">
  2648. <span>
  2649. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2650. </span>
  2651. </el-form-item>
  2652. </el-form>
  2653. <span slot="footer" class="dialog-footer">
  2654. <el-button @click="clearLine">取 消</el-button>
  2655. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2656. </span>
  2657. </el-dialog>
  2658. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  2659. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  2660. <div>
  2661. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  2662. </div>
  2663. <span slot="footer" class="dialog-footer">
  2664. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2665. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  2666. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  2667. </span>
  2668. </el-dialog>
  2669. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2670. :before-close="handleClose" class="addNewPP customWidth">
  2671. <div class="people">
  2672. <div class="people_top">
  2673. <div class="people_nav">选择成员</div>
  2674. <div class="people_top_right">
  2675. <div class="people_search">
  2676. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2677. <div class="search_img" @click="searchStudent">
  2678. <img src="../../assets/icon/search.png" alt />
  2679. </div>
  2680. </div>
  2681. </div>
  2682. </div>
  2683. <el-checkbox-group v-model="checkboxList" class="people_name">
  2684. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2685. "暂无学生可选" }}</el-checkbox>
  2686. </el-checkbox-group>
  2687. </div>
  2688. <span slot="footer" class="dialog-footer">
  2689. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2690. <el-button type="primary" @click="isAddPP">确定</el-button>
  2691. </span>
  2692. </el-dialog>
  2693. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  2694. :before-close="handleClose" class="addNewPP2">
  2695. <div class="check_classBox">
  2696. <div class="check_class_right">
  2697. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  2698. 全部
  2699. </div>
  2700. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  2701. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  2702. {{ item.name }}
  2703. </div>
  2704. </el-tooltip>
  2705. </div>
  2706. <div class="check_class_left">
  2707. <div class="check_class_all_box">
  2708. <div class="check_class_left_title">选择班级</div>
  2709. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  2710. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  2711. </div>
  2712. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  2713. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  2714. </div> -->
  2715. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  2716. <div v-for="item in grade2" :key="item.id" class="class_item">
  2717. <el-checkbox :label="item.id">
  2718. {{ item.name }}
  2719. </el-checkbox>
  2720. </div>
  2721. </el-checkbox-group>
  2722. <div v-if="!grade2.length">暂无数据</div>
  2723. </div>
  2724. </div>
  2725. <span slot="footer" class="dialog-footer">
  2726. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2727. <el-button type="primary" @click="isAddClass">确定</el-button>
  2728. </span>
  2729. </el-dialog>
  2730. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2731. :before-close="handleClose" class="addNewPP customWidth">
  2732. <div class="people">
  2733. <div class="people_top">
  2734. <div class="people_top_right">
  2735. <div class="people_search">
  2736. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2737. <div class="search_img" @click="getTeacher">
  2738. <img src="../../assets/icon/search.png" alt />
  2739. </div>
  2740. </div>
  2741. </div>
  2742. <div class="people_nav">选择成员</div>
  2743. </div>
  2744. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2745. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2746. <div class="t_j_box">
  2747. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2748. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2749. </el-tooltip>
  2750. <el-tooltip placement="top" :content="item.username">
  2751. <span>{{ item.username }}</span>
  2752. </el-tooltip>
  2753. <el-tooltip placement="top" :content="item.school">
  2754. <span>{{ item.school }}</span>
  2755. </el-tooltip>
  2756. </div>
  2757. </el-checkbox>
  2758. </el-checkbox-group>
  2759. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2760. </div>
  2761. <span slot="footer" class="dialog-footer">
  2762. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2763. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2764. </span>
  2765. </el-dialog>
  2766. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2767. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  2768. <div style="height:100%">
  2769. <div class="a_add_title" style="
  2770. display: flex;
  2771. flex-direction: row;
  2772. align-items: center;
  2773. justify-content: center;
  2774. ">
  2775. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  2776. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2777. </div>
  2778. <div class="a_addBox" style="height:calc(100% - 50px)">
  2779. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  2780. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2781. <div class="a_add_checkType">
  2782. <span :class="{
  2783. active:
  2784. askJson.askJson[index1].type == '1' ||
  2785. !askJson.askJson[index1].type,
  2786. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2787. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2788. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2789. </div>
  2790. <div class="a_add_head">
  2791. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  2792. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2793. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2794. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  2795. </div>
  2796. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  2797. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  2798. </div>
  2799. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  2800. </div>
  2801. <div class="a_add_head_div">
  2802. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2803. </el-button>
  2804. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  2805. </div>
  2806. </div>
  2807. <div class="a_add_body">
  2808. <div class="a_add_input" style="flex-direction: column;">
  2809. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2810. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  2811. <div style="margin-right: 10px">
  2812. 选项{{ checkIndex + 1 }}
  2813. </div>
  2814. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2815. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  2816. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  2817. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  2818. </div>
  2819. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  2820. </div>
  2821. <div class="a_add_body_div">
  2822. <el-button type="primary" size="small"
  2823. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  2824. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  2825. v-if="askJson.askJson[index1].askItem != 1">删除
  2826. </el-button>
  2827. </div>
  2828. </div>
  2829. </div>
  2830. <!-- <div class="a_add_body_div">
  2831. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2832. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2833. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2834. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2835. </el-button>
  2836. </div> -->
  2837. </div>
  2838. </div>
  2839. </div>
  2840. </div>
  2841. <span slot="footer" class="dialog-footer">
  2842. <el-button @click="closePan(4)">取 消</el-button>
  2843. <el-button type="primary" @click="addAsk">确 定</el-button>
  2844. </span>
  2845. </el-dialog>
  2846. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2847. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  2848. <div style="height:100%">
  2849. <!-- <div class="a_add_title" style="
  2850. display: flex;
  2851. flex-direction: row;
  2852. align-items: center;
  2853. justify-content: center;
  2854. ">
  2855. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2856. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2857. </div> -->
  2858. <div class="a_addBox" style="height:100%">
  2859. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2860. <!-- 请输入题目内容 -->
  2861. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  2862. v-if="isPasteChoice">智能粘贴</button>
  2863. </div>
  2864. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2865. <div class="a_add_checkType">
  2866. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2867. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2868. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2869. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2870. </div>
  2871. <div class="a_add_head">
  2872. <div class="timuUpImg">
  2873. <div style="display: flex;align-items: center;">
  2874. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2875. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2876. placeholder="请输入题目">
  2877. </el-input> -->
  2878. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2879. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  2880. @change="() => { $forceUpdate() }"></textarea>
  2881. </div>
  2882. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  2883. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  2884. </div>
  2885. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  2886. </div>
  2887. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  2888. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2889. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2890. </div>
  2891. </div>
  2892. <div class="a_add_head_div">
  2893. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2894. </el-button>
  2895. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  2896. </div>
  2897. </div>
  2898. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2899. testJson.testJson[index1].timuList.length
  2900. ">
  2901. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2902. @click.stop="previewImg(timg.src)">
  2903. <img :src="timg.src" alt="" />
  2904. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2905. <img src="../../assets/icon/delete.png" alt="" />
  2906. </div>
  2907. </div>
  2908. </div>
  2909. <div class="a_add_body">
  2910. <div class="a_add_input a_add_input_choice">
  2911. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  2912. @change="() => { $forceUpdate() }">
  2913. <div class="radioBox">
  2914. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2915. .testItem" :key="checkIndex" :label="checkIndex">
  2916. <div style="margin-right: 10px">
  2917. 选项{{ checkIndex + 1 }}
  2918. </div>
  2919. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2920. testJson.testJson[index1].checkList[checkIndex]
  2921. .imgType &&
  2922. testJson.testJson[index1].checkList[checkIndex]
  2923. .imgType == 1
  2924. ">
  2925. <div class="inImg" @click.stop="
  2926. previewImg(
  2927. testJson.testJson[index1].checkList[checkIndex]
  2928. .src
  2929. )
  2930. ">
  2931. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2932. .src
  2933. " lazy />
  2934. <!-- <img :src="
  2935. testJson.testJson[index1].checkList[checkIndex]
  2936. .src
  2937. " alt="" /> -->
  2938. </div>
  2939. </div>
  2940. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2941. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2942. @change="() => { $forceUpdate() }"></textarea>
  2943. <div class="xzUpImg" @click.stop="addImg($event)">
  2944. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2945. <input type="file" accept="image/*" style="display: none"
  2946. @change="beforeUploadTi($event, index1, checkIndex)" />
  2947. </div>
  2948. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2949. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  2950. </div>
  2951. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  2952. </div>
  2953. <div class="a_add_body_div">
  2954. <el-button type="primary" size="small"
  2955. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  2956. <el-button type="primary" size="small"
  2957. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  2958. v-if="testJson.testJson[index1].testItem != 1">删除
  2959. </el-button>
  2960. </div>
  2961. </el-radio>
  2962. </div>
  2963. </el-radio-group>
  2964. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  2965. @change="() => { $forceUpdate() }">
  2966. <div class="radioBox">
  2967. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2968. .testItem" :key="checkIndex1" :label="checkIndex1">
  2969. <div style="margin-right: 10px">
  2970. 选项{{ checkIndex1 + 1 }}
  2971. </div>
  2972. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2973. testJson.testJson[index1].checkList[checkIndex1]
  2974. .imgType &&
  2975. testJson.testJson[index1].checkList[checkIndex1]
  2976. .imgType == 1
  2977. ">
  2978. <div class="inImg" @click.stop="
  2979. previewImg(
  2980. testJson.testJson[index1].checkList[checkIndex1]
  2981. .src
  2982. )
  2983. ">
  2984. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2985. .src
  2986. " lazy />
  2987. <!-- <img :src="
  2988. testJson.testJson[index1].checkList[checkIndex1]
  2989. .src
  2990. " alt="" /> -->
  2991. </div>
  2992. </div>
  2993. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2994. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2995. @change="() => { $forceUpdate() }"></textarea>
  2996. <div class="xzUpImg" @click.stop="addImg($event)">
  2997. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2998. <input type="file" accept="image/*" style="display: none"
  2999. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3000. </div>
  3001. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3002. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3003. </div>
  3004. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3005. </div>
  3006. <div class="a_add_body_div">
  3007. <el-button type="primary" size="small"
  3008. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3009. <el-button type="primary" size="small"
  3010. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3011. v-if="testJson.testJson[index1].testItem != 1">删除
  3012. </el-button>
  3013. </div>
  3014. </el-checkbox>
  3015. </div>
  3016. </el-checkbox-group>
  3017. </div>
  3018. <!-- <div class="a_add_body_div">
  3019. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3020. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3021. v-if="testJson.testJson[index1].testItem != 1">删除
  3022. </el-button>
  3023. </div> -->
  3024. </div>
  3025. </div>
  3026. </div>
  3027. </div>
  3028. <span slot="footer" class="dialog-footer">
  3029. <el-button @click="closePan(45)">取 消</el-button>
  3030. <el-button type="primary" @click="addTest">确 定</el-button>
  3031. </span>
  3032. </el-dialog>
  3033. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3034. :before-close="handleClose" class="dialog_diy addToolsDia">
  3035. <div class="toolChoose">
  3036. <div class="tools">
  3037. <div class="leftTools" style="
  3038. width: 100%;
  3039. padding: 0 0 15px 0;
  3040. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3041. <div style="
  3042. display: flex;
  3043. flex-direction: row;
  3044. align-items: baseline;
  3045. flex-wrap: nowrap;
  3046. justify-content: flex-start;
  3047. position: relative;
  3048. ">
  3049. <div class="chooseWho">
  3050. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3051. 互动类
  3052. </div>
  3053. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3054. 思维类
  3055. </div>
  3056. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3057. 评价类
  3058. </div>
  3059. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3060. 其他
  3061. </div>
  3062. </div>
  3063. </div>
  3064. <div style="min-height: 163px">
  3065. <div class="toolSort" v-if="chapToolsType == 0">
  3066. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  3067. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  3068. <img src="../../assets/icon/secondToolList/library.png" alt />
  3069. <div style="margin: 5px 0">素材库</div>
  3070. </div>
  3071. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3072. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1"><img
  3073. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3074. <!-- <div class="check" @click="chapAddTools(8)">
  3075. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3076. <div class="checkDiv" v-else>
  3077. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3078. </div>
  3079. </div> -->
  3080. </div>
  3081. </div>
  3082. <div class="toolSort" v-if="chapToolsType == 1">
  3083. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  3084. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  3085. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  3086. <div style="margin: 5px 0">思维网格</div>
  3087. </div>
  3088. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3089. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1"><img
  3090. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3091. <!-- <div class="check" @click="chapAddTools(7)">
  3092. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3093. <div class="checkDiv" v-else>
  3094. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3095. </div>
  3096. </div> -->
  3097. </div>
  3098. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  3099. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  3100. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  3101. <div style="margin: 5px 0">电子白板</div>
  3102. </div>
  3103. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3104. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1"><img
  3105. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3106. <!-- <div class="check" @click="chapAddTools(1)">
  3107. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3108. <div class="checkDiv" v-else>
  3109. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3110. </div>
  3111. </div> -->
  3112. </div>
  3113. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  3114. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  3115. <img src="../../assets/icon/secondToolList/note.png" alt />
  3116. <div style="margin: 5px 0">便签</div>
  3117. </div>
  3118. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3119. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1"><img
  3120. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3121. <!-- <div class="check" @click="chapAddTools(2)">
  3122. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3123. <div class="checkDiv" v-else>
  3124. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3125. </div>
  3126. </div> -->
  3127. </div>
  3128. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  3129. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  3130. <img src="../../assets/icon/secondToolList/doc.png" alt />
  3131. <div style="margin: 5px 0">协同文档</div>
  3132. </div>
  3133. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3134. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1"><img
  3135. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3136. <!-- <div class="check" @click="chapAddTools(6)">
  3137. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  3138. <div class="checkDiv" v-else>
  3139. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3140. </div>
  3141. </div> -->
  3142. </div>
  3143. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  3144. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  3145. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  3146. <div style="margin: 5px 0">思维导图</div>
  3147. </div>
  3148. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3149. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1"><img
  3150. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3151. <!-- <div class="check" @click="chapAddTools(3)">
  3152. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  3153. <div class="checkDiv" v-else>
  3154. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3155. </div>
  3156. </div> -->
  3157. </div>
  3158. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }" @click="chapAddTools(31)">
  3159. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  3160. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  3161. <div style="margin: 5px 0">数学画板</div>
  3162. </div>
  3163. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3164. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1"><img
  3165. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3166. <!-- <div class="check" @click="chapAddTools(31)">
  3167. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  3168. <div class="checkDiv" v-else>
  3169. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3170. </div>
  3171. </div> -->
  3172. </div>
  3173. </div>
  3174. <div class="toolSort" v-if="chapToolsType == 2">
  3175. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  3176. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  3177. <img src="../../assets/icon/thirdToolList/score.png" alt />
  3178. <div style="margin: 5px 0">量规评分</div>
  3179. </div>
  3180. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3181. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1"><img
  3182. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3183. <!-- <div class="check" @click="chapAddTools(5)">
  3184. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  3185. <div class="checkDiv" v-else>
  3186. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3187. </div>
  3188. </div> -->
  3189. </div>
  3190. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  3191. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  3192. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  3193. <div style="margin: 5px 0">问卷调查</div>
  3194. </div>
  3195. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3196. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1"><img
  3197. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3198. <!-- <div class="check" @click="chapAddTools(4)">
  3199. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  3200. <div class="checkDiv" v-else>
  3201. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3202. </div>
  3203. </div> -->
  3204. </div>
  3205. </div>
  3206. </div>
  3207. <div>
  3208. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  3209. v-model="itemTools.toolDetail" />
  3210. </div>
  3211. </div>
  3212. </div>
  3213. </div>
  3214. <span slot="footer" class="dialog-footer">
  3215. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3216. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3217. </span>
  3218. </el-dialog>
  3219. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3220. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  3221. <div>
  3222. <div class="a_add_title" style="
  3223. display: flex;
  3224. flex-direction: column;
  3225. align-items: flex-start;
  3226. justify-content: center;
  3227. ">
  3228. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3229. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  3230. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  3231. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  3232. </div>
  3233. </div>
  3234. <span slot="footer" class="dialog-footer">
  3235. <el-button @click="closePan(15)">取 消</el-button>
  3236. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3237. </span>
  3238. </el-dialog>
  3239. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3240. :before-close="handleClose" class="dialog_diy">
  3241. <div>
  3242. <div class="a_add_title" style="
  3243. display: flex;
  3244. flex-direction: column;
  3245. align-items: flex-start;
  3246. justify-content: center;
  3247. ">
  3248. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3249. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3250. </div>
  3251. </div>
  3252. <span slot="footer" class="dialog-footer">
  3253. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3254. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3255. </span>
  3256. </el-dialog>
  3257. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  3258. :before-close="handleClose" class="dialog_diy">
  3259. <div>
  3260. <div class="fileCss" style="padding-top: 20px">
  3261. <div>
  3262. <button class="info_btn" @click="addImg($event)">
  3263. 选择本地文件
  3264. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3265. </button>
  3266. <div class="spanName">选择本地文件</div>
  3267. </div>
  3268. <div>
  3269. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  3270. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3271. <img :src="cover[0].url" alt="" />
  3272. <div class="deletePic" @click="deleteSysPic">
  3273. <img src="../../assets/icon/delete.png" alt="" />
  3274. </div>
  3275. </div>
  3276. <div class="spanName">选择系统文件</div>
  3277. </div>
  3278. <div>
  3279. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  3280. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  3281. <img :src="cover[0].url" alt="" />
  3282. <div class="deletePic" @click="deleteSysPic">
  3283. <img src="../../assets/icon/delete.png" alt="" />
  3284. </div>
  3285. </div>
  3286. <div class="spanName">选择网络文件</div>
  3287. </div>
  3288. </div>
  3289. <!-- <div class="fileCss">
  3290. </div> -->
  3291. </div>
  3292. <span slot="footer" class="dialog-footer">
  3293. <el-button @click="choosePicVisible = false">取 消</el-button>
  3294. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3295. </span>
  3296. </el-dialog>
  3297. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3298. :before-close="handleClose" class="dialog_diy">
  3299. <div class="cru_selectBox" style="margin: 0">
  3300. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3301. 绘画
  3302. </div>
  3303. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3304. 科技
  3305. </div>
  3306. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3307. 人文
  3308. </div>
  3309. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3310. 艺术
  3311. </div>
  3312. </div>
  3313. <div class="sysPicBox">
  3314. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3315. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3316. </div>
  3317. </div>
  3318. </el-dialog>
  3319. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  3320. :before-close="handleClose" class="dialog_diy">
  3321. <div>
  3322. <div class="people_top_right" style="display: flex;align-items: center;">
  3323. <div style="position: relative; width: 100%;">
  3324. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  3325. @keyup.enter.native="resetImage()"></el-input>
  3326. <div class="search_img" @click="resetImage" style="right: 10px;">
  3327. <img src="../../assets/icon/search.png" alt />
  3328. </div>
  3329. </div>
  3330. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  3331. </div>
  3332. <div class="sysPicBox" v-loading="imageloading">
  3333. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  3334. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  3335. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  3336. </div>
  3337. </div>
  3338. </div>
  3339. </el-dialog>
  3340. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3341. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  3342. <div v-if="selectJson" style="height:100%">
  3343. <div class="select_box1" v-if="selectSteps == 1">
  3344. <div class="select_box1_img">
  3345. <div class="select_box1_title">
  3346. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  3347. </div>
  3348. <div class="select_box1_add_img">
  3349. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3350. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3351. <img src="../../assets/icon/addPoster.png" alt="" />
  3352. </div>
  3353. <div class="isSysPic" v-else>
  3354. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3355. <div class="deletePic" @click="deleteSelectPic">
  3356. <img src="../../assets/icon/delete.png" alt="" />
  3357. </div>
  3358. </div>
  3359. </div>
  3360. </div>
  3361. <div class="select_box1_select">
  3362. <div class="select_box1_title">
  3363. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  3364. </div>
  3365. <div class="select_box1_select_box">
  3366. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3367. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  3368. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3369. <div class="select_box1_select_box_add">
  3370. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3371. 添加</el-button>
  3372. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3373. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3374. </div>
  3375. </div>
  3376. </div>
  3377. </div>
  3378. <div v-if="selectSteps == 2" style="height:100%">
  3379. <div class="select_box2">
  3380. <div class="select_box2_title">设置每道题目的正确选项</div>
  3381. <div class="select_box2_box">
  3382. <div class="select_box2_img">
  3383. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3384. </div>
  3385. <div class="select_box2_answer">
  3386. <div class="select_answer_title">根据题目选择对应答案</div>
  3387. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3388. <span>{{ checkIndex + 1 }}、</span>
  3389. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3390. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3391. </el-option>
  3392. </el-select>
  3393. </div>
  3394. </div>
  3395. </div>
  3396. </div>
  3397. </div>
  3398. </div>
  3399. <span slot="footer" class="dialog-footer">
  3400. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3401. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3402. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3403. </span>
  3404. </el-dialog>
  3405. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3406. :before-close="handleClose" class="dialog_diy">
  3407. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3408. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3409. <div class="pjCss" style="width: 100%">
  3410. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3411. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3412. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3413. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  3414. <div class="remove" @click="deletRateList(eIndex)"></div>
  3415. <div style="width: 100%; display: flex">
  3416. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3417. <el-rate v-model="eItem.score" disabled></el-rate>
  3418. </div>
  3419. <div class="elist_inptu_text" style="align-items: flex-start">
  3420. <span style="min-width: 100px; text-align: right">描述:</span>
  3421. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  3422. </div>
  3423. </div>
  3424. </div>
  3425. <div class="addToolFun" @click="addRateList()">
  3426. <div class="addToolImg">
  3427. <img src="../../assets/icon/add.png" alt />
  3428. </div>
  3429. <div>添加</div>
  3430. </div>
  3431. </div>
  3432. </div>
  3433. <span slot="footer" class="dialog-footer">
  3434. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3435. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3436. </span>
  3437. </el-dialog>
  3438. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3439. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  3440. <div style="height: 100%;">
  3441. <div class="sentenBox" style="height: 100%;">
  3442. <div class="addSen" @click="addSt">添加题目</div>
  3443. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  3444. <div class="sentenTopBox">
  3445. <div class="sentenTop" :index="stIndex + 1">
  3446. <div>题目设置</div>
  3447. <div>
  3448. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  3449. </div>
  3450. <div @click="addSen(stIndex)">添加</div>
  3451. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3452. </div>
  3453. </div>
  3454. <div class="cardList">
  3455. <div v-if="st.addSentence.length > 0" class="cardBox">
  3456. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3457. @click="setRightAnswer(s, stIndex, sIndex)">
  3458. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3459. <div>{{ s }}</div>
  3460. </el-tooltip>
  3461. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3462. <img src="../../assets/icon/delete.png" alt="" />
  3463. </div>
  3464. </div>
  3465. </div>
  3466. <div class="card">
  3467. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  3468. </div>
  3469. </div>
  3470. <div class="rightCardBox">
  3471. <div>正确顺序</div>
  3472. <div class="rightCardList">
  3473. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3474. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3475. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3476. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3477. <div>{{ r }}</div>
  3478. </el-tooltip>
  3479. </div>
  3480. <div>{{ rIndex + 1 }}</div>
  3481. </div>
  3482. </div>
  3483. <div class="card" v-if="st.rightAnswer.length == 0">
  3484. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  3485. </div>
  3486. <div class="card" v-else>
  3487. <img src="../../assets/icon/conSentences/clickNo.png" alt="" />
  3488. </div>
  3489. </div>
  3490. </div>
  3491. </div>
  3492. </div>
  3493. </div>
  3494. <span slot="footer" class="dialog-footer">
  3495. <el-button @click="closePan(47)">取 消</el-button>
  3496. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3497. </span>
  3498. </el-dialog>
  3499. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3500. :before-close="handleClose" class="dialog_diy">
  3501. <el-form>
  3502. <!-- <el-form-item label="文本标题">
  3503. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3504. </el-form-item> -->
  3505. <div>表格内容</div>
  3506. <Table v-model="tableJson.text" @change="change"></Table>
  3507. </el-form>
  3508. <span slot="footer" class="dialog-footer">
  3509. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3510. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3511. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3512. </span>
  3513. </el-dialog>
  3514. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3515. :before-close="handleClose" class="dialog_diy">
  3516. <el-form>
  3517. <!-- <el-form-item label="文本标题">
  3518. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3519. </el-form-item> -->
  3520. <div>文档内容</div>
  3521. <editor-bar v-model="wordJson.text"></editor-bar>
  3522. </el-form>
  3523. <span slot="footer" class="dialog-footer">
  3524. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3525. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3526. </span>
  3527. </el-dialog>
  3528. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3529. :before-close="handleClose" class="dialog_diy">
  3530. <div style="
  3531. width: 100%;
  3532. display: flex;
  3533. flex-direction: row;
  3534. flex-wrap: nowrap;
  3535. align-items: center;
  3536. justify-content: center;
  3537. ">
  3538. <div>班级:</div>
  3539. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3540. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3541. </el-option>
  3542. </el-select>
  3543. </div>
  3544. <span slot="footer" class="dialog-footer">
  3545. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3546. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3547. </span>
  3548. </el-dialog>
  3549. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3550. :before-close="handleClose" class="dialog_diy">
  3551. <div style="
  3552. width: 100%;
  3553. display: flex;
  3554. flex-direction: row;
  3555. flex-wrap: nowrap;
  3556. align-items: center;
  3557. justify-content: center;
  3558. ">
  3559. <div>随机码:</div>
  3560. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3561. </div>
  3562. <span slot="footer" class="dialog-footer">
  3563. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3564. <el-button type="primary" @click="addInvite">确定</el-button>
  3565. </span>
  3566. </el-dialog>
  3567. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  3568. :before-close="handleClose" class="dialog_diy">
  3569. <div>
  3570. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  3571. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3572. </div>
  3573. <span slot="footer" class="dialog-footer">
  3574. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3575. <el-button type="primary" @click="addPreTime">确定</el-button>
  3576. </span>
  3577. </el-dialog>
  3578. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3579. class="dialog_diy">
  3580. <div>
  3581. <div style="
  3582. width: 100%;
  3583. display: flex;
  3584. flex-direction: row;
  3585. flex-wrap: nowrap;
  3586. align-content: center;
  3587. align-items: center;
  3588. justify-content: space-between;
  3589. ">
  3590. <div style="
  3591. display: flex;
  3592. flex-flow: row nowrap;
  3593. align-items: flex-start;
  3594. width: 100%;
  3595. flex-direction: column;
  3596. flex-wrap: nowrap;
  3597. position: relative;
  3598. ">
  3599. <div class="e_box">
  3600. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3601. <div class="e_card_picture">
  3602. <img src="../../assets/e_picture.png" />
  3603. </div>
  3604. <div class="e_card_name">
  3605. <span>{{ item.title }}</span>
  3606. </div>
  3607. <div class="e_card_btn">
  3608. <span @click="checkEva(item.id, 2)">导入</span>
  3609. </div>
  3610. </div> -->
  3611. <!-- <div class="addEva" @click="openT">
  3612. <img src="../../assets/icon/addEva.png" alt="" />
  3613. </div> -->
  3614. <div style="display:flex;justify-content: flex-end;margin-bottom: 10px;"><el-button @click="openT" type="primary" size="small">添加目标</el-button></div>
  3615. <el-table
  3616. v-if="evaJuri.length"
  3617. ref="table"
  3618. :data="evaJuri"
  3619. border
  3620. :fit="true"
  3621. style="width: 100%"
  3622. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  3623. :row-class-name="tableRowClassName"
  3624. >
  3625. <el-table-column
  3626. label="目标名称"
  3627. min-width="15"
  3628. align="center"
  3629. prop="title"
  3630. >
  3631. </el-table-column>
  3632. <el-table-column
  3633. prop="username"
  3634. label="负责人"
  3635. min-width="15"
  3636. align="center"
  3637. >
  3638. </el-table-column>
  3639. <el-table-column label="操作" width="250px">
  3640. <template slot-scope="scope">
  3641. <div class="btnBox">
  3642. <el-button
  3643. type="primary"
  3644. size="small"
  3645. @click="checkEva(scope.row.id, 2)"
  3646. >导入</el-button
  3647. >
  3648. </div>
  3649. </template>
  3650. </el-table-column>
  3651. </el-table>
  3652. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3653. 暂无数据
  3654. </div>
  3655. </div>
  3656. </div>
  3657. </div>
  3658. </div>
  3659. <span slot="footer" class="dialog-footer">
  3660. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3661. </span>
  3662. </el-dialog>
  3663. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3664. :before-close="handleClose" class="dialog_diy">
  3665. <div class="groupBox">
  3666. <div v-if="groupJson.group" class="groupContent">
  3667. <div class="groupTitle">请设置小组数量及名称</div>
  3668. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3669. <span class="groupn">第{{ index + 1 }}组名称:</span>
  3670. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3671. <div class="groupBtn">
  3672. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  3673. 添加</el-button>
  3674. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3675. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3676. </div>
  3677. </div>
  3678. </div>
  3679. <div class="groupContent">
  3680. <div class="groupTitle">请设置每组人数</div>
  3681. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3682. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3683. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  3684. @change="numberPan"></el-input>
  3685. </div>
  3686. </div>
  3687. <span slot="footer" class="dialog-footer">
  3688. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3689. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3690. </span>
  3691. </el-dialog>
  3692. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  3693. :before-close="handleClose" class="dialog_diy">
  3694. <div style="
  3695. width: 100%;
  3696. display: flex;
  3697. flex-direction: row;
  3698. flex-wrap: nowrap;
  3699. align-items: center;
  3700. justify-content: center;
  3701. ">
  3702. <div style="min-width: fit-content;">文件名称:</div>
  3703. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  3704. </div>
  3705. <span slot="footer" class="dialog-footer">
  3706. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  3707. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  3708. </span>
  3709. </el-dialog>
  3710. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  3711. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle">
  3712. <englishRight @setEngList="setEnglishList" :englishList="englishList"></englishRight>
  3713. <span slot="footer" class="dialog-footer">
  3714. <el-button @click="englishDialogVisible = false">取 消</el-button>
  3715. <el-button type="primary" @click="addEnglish">确 定</el-button>
  3716. </span>
  3717. </el-dialog>
  3718. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3719. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3720. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3721. <div class="change_stageBox">
  3722. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3723. <div class="nt_taskBox">
  3724. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3725. <div class="nt_taskName">
  3726. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3727. <span>{{ t.dyName }}</span>
  3728. </el-tooltip>
  3729. </div>
  3730. </div>
  3731. <div class="moveBtn" v-if="unitJson3.length > 1">
  3732. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3733. </div>
  3734. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3735. </div>
  3736. </div>
  3737. </div>
  3738. <span slot="footer" class="dialog-footer">
  3739. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3740. <el-button type="primary" @click="updateChange">确定</el-button>
  3741. </span>
  3742. </el-dialog>
  3743. </div>
  3744. </template>
  3745. <script>
  3746. import "../../common/aws-sdk-2.235.1.min.js";
  3747. import { tools as toolsData } from "../../common/tools.js";
  3748. // import "../../common/aws-sdk-2.99.0.min.js";
  3749. import $ from "jquery";
  3750. import EditorBar from "../../components/tools/wangEnduit";
  3751. import Table from "../../components/tools/table";
  3752. import Mind from "../tools/jsmind2";
  3753. import Time from "../tools/time.vue";
  3754. import Sunburst from "../tools/sunburst";
  3755. import SeeBoard from "../tools/seeBoard";
  3756. import weilaiData from "./components/weilai.js";
  3757. import sourceDialog from "./teacherSource/dialog.vue";
  3758. import interVideo from "./interVideo/index.vue";
  3759. import englishRight from "./components/englishRight.vue";
  3760. export default {
  3761. components: {
  3762. EditorBar,
  3763. Mind,
  3764. Time,
  3765. Sunburst,
  3766. SeeBoard,
  3767. Table,
  3768. sourceDialog,
  3769. interVideo,
  3770. englishRight,
  3771. },
  3772. data() {
  3773. return {
  3774. checkAll: false,
  3775. chooseType: 1,
  3776. checkedCities: [],
  3777. isIndeterminate: true,
  3778. isSysPic: false,
  3779. isSysPic2: false,
  3780. steps: 1,
  3781. nbOrder: 0,
  3782. courseId: "",
  3783. chapToolsType: 0,
  3784. chapTools: [
  3785. {
  3786. tools: [],
  3787. toolDetail: "",
  3788. },
  3789. ],
  3790. line: "",
  3791. lineTitle: "",
  3792. sysPic: [],
  3793. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3794. sentenceList2: [],
  3795. isPushTitleList: [],
  3796. lineCount: 0,
  3797. lineType: 0,
  3798. chapCount: 0,
  3799. courseName: "",
  3800. isTeacherSee: false,
  3801. courseText: "",
  3802. preTime: 0,
  3803. formLabelWidth: "100px",
  3804. choosePicVisible: false,
  3805. sysPicVisible: false,
  3806. sysPicVisible2: false,
  3807. uploadLoading1: false,
  3808. noneBtnImg: false,
  3809. updateBoolean2: false,
  3810. unitIndex: 0,
  3811. taskCount: 0,
  3812. dialogVisible: false,
  3813. dialogVisible1: false,
  3814. dialogVisible2: false,
  3815. dialogVisible3: false,
  3816. dialogVisible4: false,
  3817. dialogVisible5: false,
  3818. dialogVisible6: false,
  3819. dialogVisible7: false,
  3820. dialogVisible8: false,
  3821. dialogVisible9: false,
  3822. dialogVisibleClass: false,
  3823. dialogVisibleMember: false,
  3824. dialogVisibleMp3: false,
  3825. dialogVisibleSelect: false,
  3826. dialogVisibleSentence: false,
  3827. dialogVisibleRate: false,
  3828. dialogVisibleChoice: false,
  3829. dialogVisiblemb: false,
  3830. dialogVisibleInvite: false,
  3831. dialogVisibleSource: false,
  3832. dialogVisibleVideo: false,
  3833. dialogVisibleStageChange: false,
  3834. dialogVisibleupdataVideoT: false,
  3835. englishDialogVisible: false,
  3836. isClickColor: 1,
  3837. toolIndexType: "",
  3838. publicTool: 0,
  3839. searchPeople: "",
  3840. searchTN: "",
  3841. userid: this.$route.query.userid,
  3842. oid: this.$route.query.oid,
  3843. org: this.$route.query.org,
  3844. role: this.$route.query.role,
  3845. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3846. dialogVisibleTable: false,
  3847. dialogVisibleWord: false,
  3848. tableJson: { text: "" },
  3849. wordJson: { text: "" },
  3850. dialogVisibleMoreUpload: false,
  3851. dialogVisiblePreTime: false,
  3852. uploadJson: [],
  3853. classJuri: [],
  3854. gradeList: [],
  3855. cover: [], //课程封面
  3856. myWord: [],
  3857. evaJuri: [],
  3858. evalua: "",
  3859. targetArray: [],
  3860. eTitle: "",
  3861. eJson: {},
  3862. fid: "", //一级
  3863. sid: "", //二级
  3864. tid: "", //二级
  3865. typeMode: 1,
  3866. eJSONNum: 0,
  3867. data: {
  3868. meta: {
  3869. name: "example",
  3870. author: "dd@163.com",
  3871. version: "0.2",
  3872. },
  3873. format: "node_array",
  3874. data: [{ id: "root", isroot: true, topic: "" }],
  3875. },
  3876. askJson: {
  3877. askCount: 1,
  3878. askTitle: "",
  3879. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3880. },
  3881. askJson2: {},
  3882. testJson: {},
  3883. testJson2: {},
  3884. selectJson: {},
  3885. selectJson2: {},
  3886. rateJson: [],
  3887. unitJson2: [],
  3888. unitJson3: [],
  3889. unitJson: [
  3890. {
  3891. dyName: "", //单元标题
  3892. chapterInfo: [
  3893. {
  3894. isread: false,
  3895. chapterid: this.guid(),
  3896. title: "",
  3897. courseName: "",
  3898. taskJson: [
  3899. {
  3900. task: "",
  3901. taskDetail: "",
  3902. chapterData: [],
  3903. toolText: "",
  3904. toolChoose: [
  3905. {
  3906. tool: [],
  3907. toolDetail: "",
  3908. toolType: 0,
  3909. askCount: 1,
  3910. askTitle: "",
  3911. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3912. },
  3913. ],
  3914. isShowTools: false,
  3915. askCount: 1,
  3916. isFold: 0,
  3917. askTitle: "",
  3918. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3919. checkJson: [{ checkCount: [], checkPerent: [] }],
  3920. homeworkList: [],
  3921. },
  3922. ],
  3923. itemCount: 1,
  3924. fileList1: [],
  3925. video: [],
  3926. testData: [],
  3927. pData: [],
  3928. templateArray: [],
  3929. },
  3930. ],
  3931. },
  3932. ],
  3933. studentJuri: [],
  3934. teacherJuri: [],
  3935. checkboxList: [],
  3936. checkboxList2: [],
  3937. checkboxList3: [],
  3938. classSearch: "",
  3939. gradeId: "",
  3940. number: "",
  3941. tTitle: "",
  3942. tdetail: "",
  3943. templateC: {},
  3944. AttText: {},
  3945. AttTextType: 0,
  3946. AttTextIndex: 0,
  3947. cTemplate: "",
  3948. CourseType: [],
  3949. CourseType2: [],
  3950. CourseTypeJson: {},
  3951. courseTypeId: [],
  3952. courseTypeSon: [],
  3953. clearArray: [],
  3954. pTypeCheck: [],
  3955. pTypeCheckName: [],
  3956. loading: false,
  3957. toolType: 0,
  3958. inputShow: true,
  3959. inputShow2: true,
  3960. toolIndex: 0,
  3961. cidType: 0,
  3962. answerQ: "",
  3963. answerQ2: "",
  3964. grade: [],
  3965. grade2: [],
  3966. courseUserid: "",
  3967. timer: null,
  3968. timer2: null,
  3969. pasteTimer: null,
  3970. checkId: "",
  3971. isDelete: 1,
  3972. addindex: 0,
  3973. selectSteps: 1,
  3974. groupJson: {},
  3975. dialogVisibleGroup: false,
  3976. rightBoxHeight: 0,
  3977. ManAarray: [],
  3978. checkBoolean: false,
  3979. inviteCode: [],
  3980. inviteId: "",
  3981. icode: "",
  3982. easyArray: [2, 4],
  3983. sourceData: {},
  3984. updateSourcePan: false,
  3985. videoJson: {},
  3986. isBtnDisplay: false,
  3987. isStepDisplay: false,
  3988. isPasteStage: false,
  3989. isPasteTask: false,
  3990. isPasteChoice: false,
  3991. imageList: [],
  3992. imageloading: false,
  3993. searchImageValue: "",
  3994. ppage: 1,
  3995. toolsData: toolsData,
  3996. oldIndex: 0,
  3997. oldData: null,
  3998. newIndex: "",
  3999. englishList:{},
  4000. typeIndex: "",
  4001. };
  4002. },
  4003. directives: {
  4004. autoHeight: {
  4005. update(el, binding) {
  4006. const { value } = binding
  4007. if (value && typeof value === 'number') {
  4008. el.style.height = `${value}px`
  4009. } else {
  4010. el.style.height = 'auto'
  4011. }
  4012. },
  4013. componentUpdated(el) {
  4014. el.style.height = `${el.scrollHeight + 5}px`
  4015. },
  4016. },
  4017. },
  4018. computed: {
  4019. // rightBoxHeight: function () {
  4020. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4021. // },
  4022. offsetLetfPx: function () {
  4023. //addnum可以直接在模板语法里面用,相当于data内的值
  4024. return (
  4025. $(".cru_select")[this.unitIndex] &&
  4026. $(".cru_select")[this.unitIndex].offsetLeft + 5
  4027. );
  4028. },
  4029. getMan2() {
  4030. return function (people) {
  4031. let _people = people;
  4032. let _people2 = "";
  4033. if (this.ManAarray.length) {
  4034. for (var i = 0; i < this.ManAarray.length; i++) {
  4035. if (this.ManAarray[i].userid == people) {
  4036. _people2 = this.ManAarray[i].name;
  4037. break;
  4038. }
  4039. }
  4040. }
  4041. if (people == this.courseUserid) {
  4042. return "";
  4043. }
  4044. return this.ManAarray.length ? _people2 : "";
  4045. };
  4046. },
  4047. getListMan2() {
  4048. return function (list) {
  4049. let _people2 = [];
  4050. if (this.ManAarray.length) {
  4051. for (var j = 0; j < list.length; j++) {
  4052. let people = list[j];
  4053. for (var i = 0; i < this.ManAarray.length; i++) {
  4054. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  4055. _people2.push(this.ManAarray[i].name);
  4056. break;
  4057. }
  4058. }
  4059. }
  4060. }
  4061. return this.ManAarray.length ? _people2.join("、") : "";
  4062. };
  4063. },
  4064. isInvite() {
  4065. return function (cid) {
  4066. let array = [];
  4067. for (var i = 0; i < this.inviteCode.length; i++) {
  4068. array.push(this.inviteCode[i].cid);
  4069. }
  4070. return array.indexOf(cid) != -1;
  4071. };
  4072. },
  4073. getInviteCodeC() {
  4074. return function (cid) {
  4075. let array = [];
  4076. for (var i = 0; i < this.inviteCode.length; i++) {
  4077. array.push(this.inviteCode[i].cid);
  4078. }
  4079. return this.inviteCode[array.indexOf(cid)].ic;
  4080. };
  4081. },
  4082. getClassC() {
  4083. return function (c) {
  4084. let _c2 = "";
  4085. if (this.grade.length) {
  4086. for (var i = 0; i < this.grade.length; i++) {
  4087. if (this.grade[i].id == c) {
  4088. _c2 = this.grade[i].name;
  4089. break;
  4090. }
  4091. }
  4092. }
  4093. return this.grade.length ? _c2 : "";
  4094. };
  4095. },
  4096. getListClassC() {
  4097. return function (list) {
  4098. let _c2 = [];
  4099. if (this.grade.length) {
  4100. for (var j = 0; j < list.length; j++) {
  4101. let c = list[j]
  4102. for (var i = 0; i < this.grade.length; i++) {
  4103. if (this.grade[i].id == c) {
  4104. _c2.push(this.grade[i].name);
  4105. break;
  4106. }
  4107. }
  4108. }
  4109. }
  4110. return this.grade.length ? _c2.join('、') : "";
  4111. };
  4112. },
  4113. },
  4114. watch: {
  4115. unitIndex(newValue, oldValue) {
  4116. if (this.isDelete == 2) {
  4117. this.isDelete = 1;
  4118. return;
  4119. }
  4120. if (this.cid != "") {
  4121. let _unitIndex = oldValue;
  4122. if (
  4123. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4124. JSON.stringify(this.unitJson[_unitIndex])
  4125. ) {
  4126. this.$refs.rightboxR.scrollTop = 0;
  4127. return;
  4128. }
  4129. let cPan = 1;
  4130. for (
  4131. var j = 0;
  4132. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4133. j++
  4134. ) {
  4135. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4136. j
  4137. ].proVisible = false;
  4138. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4139. j
  4140. ].proVisible2 = false;
  4141. if (
  4142. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4143. .length > 1
  4144. ) {
  4145. for (
  4146. var z = 0;
  4147. z <
  4148. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4149. .length;
  4150. z++
  4151. ) {
  4152. if (
  4153. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4154. .toolChoose[z].tool.length
  4155. ) {
  4156. this.$message.error("请把工具添加完整");
  4157. cPan = 2;
  4158. break;
  4159. }
  4160. }
  4161. }
  4162. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4163. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4164. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4165. (ele) => {
  4166. return ele.value != "";
  4167. }
  4168. );
  4169. }
  4170. }
  4171. if (cPan == 2) {
  4172. this.unitIndex = oldValue;
  4173. return;
  4174. }
  4175. for (var i = 0; i < this.unitJson.length; i++) {
  4176. if (this.addindex != i) {
  4177. delete this.unitJson[i].isUpdate;
  4178. }
  4179. }
  4180. this.$refs.rightboxR.scrollTop = 0;
  4181. this.addindex = -1;
  4182. let params = [
  4183. {
  4184. cid: this.cid,
  4185. chapters: JSON.stringify(this.unitJson),
  4186. uid: this.userid,
  4187. unitIndex: _unitIndex,
  4188. },
  4189. ];
  4190. this.ajax
  4191. .post(this.$store.state.api + "updateWorkNew4", params)
  4192. .then((res) => {
  4193. // this.$message({
  4194. // message: "修改成功",
  4195. // type: "success",
  4196. // });
  4197. // this.courseId = this.cid;
  4198. })
  4199. .catch((err) => {
  4200. this.$message.error("网络不佳");
  4201. console.error(err);
  4202. });
  4203. }
  4204. },
  4205. steps(newValue, old) {
  4206. if (newValue == 4) {
  4207. let cPan = 1;
  4208. for (var i = 0; i < this.unitJson.length; i++) {
  4209. for (
  4210. var j = 0;
  4211. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4212. j++
  4213. ) {
  4214. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4215. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4216. if (
  4217. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4218. ) {
  4219. for (
  4220. var z = 0;
  4221. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4222. z++
  4223. ) {
  4224. if (
  4225. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4226. .length
  4227. ) {
  4228. this.$message.error("请把工具添加完整");
  4229. cPan = 2;
  4230. break;
  4231. }
  4232. }
  4233. }
  4234. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4235. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4236. i
  4237. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4238. return ele.value != "";
  4239. });
  4240. }
  4241. }
  4242. }
  4243. this.inputShow = true;
  4244. if (cPan == 2) {
  4245. this.steps = old;
  4246. return;
  4247. }
  4248. this.goTo(
  4249. "/course?userid=" +
  4250. this.userid +
  4251. "&oid=" +
  4252. this.oid +
  4253. "&org=" +
  4254. this.org +
  4255. "&role=" +
  4256. this.role
  4257. );
  4258. }
  4259. },
  4260. },
  4261. methods: {
  4262. tableRowClassName({ row, rowIndex }) {
  4263. if ((rowIndex + 1) % 2 === 0) {
  4264. return "even_row";
  4265. } else {
  4266. return "";
  4267. }
  4268. },
  4269. openAI() {
  4270. window.parent.postMessage({ tools: "64" }, "*");
  4271. },
  4272. setMan() {
  4273. // let teacherJuri = this.teacherJuri2;
  4274. this.ManAarray = [];
  4275. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4276. if (_user.indexOf(this.userid) == -1) {
  4277. _user.push(this.userid);
  4278. }
  4279. if (_user.indexOf(this.courseUserid) == -1) {
  4280. _user.push(this.courseUserid);
  4281. }
  4282. let params = {
  4283. uid: _user.join(","),
  4284. };
  4285. this.ajax
  4286. .get(this.$store.state.api + "getAllUserById", params)
  4287. .then((res) => {
  4288. let teacherJuri = res.data[0];
  4289. this.ManAarray = teacherJuri;
  4290. })
  4291. .catch((err) => {
  4292. console.error(err);
  4293. });
  4294. },
  4295. previewImg(url) {
  4296. this.$hevueImgPreview(url);
  4297. },
  4298. btnDisplay(bool) {
  4299. this.isBtnDisplay = bool
  4300. },
  4301. stepDisplay(bool) {
  4302. this.isStepDisplay = bool
  4303. },
  4304. scrollChange() {
  4305. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  4306. },
  4307. addHw(e) {
  4308. var el = e.currentTarget;
  4309. el.getElementsByTagName("input")[0].click();
  4310. },
  4311. change(val) {
  4312. if (this.dialogVisible1) {
  4313. this.tdetail = val
  4314. } else if (this.dialogVisible6) {
  4315. this.AttText.text = val
  4316. } else if (this.dialogVisible2) {
  4317. this.cTemplate = val
  4318. } else if (this.dialogVisibleTable) {
  4319. this.tableJson.text = val
  4320. }
  4321. this.$forceUpdate();
  4322. console.log(val);
  4323. },
  4324. change2(val) {
  4325. console.log(val);
  4326. this.$forceUpdate();
  4327. },
  4328. handleClose(done) {
  4329. done();
  4330. },
  4331. closePan(tool) {
  4332. if (tool == 15) {
  4333. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  4334. this.dialogVisible8 = false
  4335. } else {
  4336. this.closeConfirm(tool);
  4337. }
  4338. } else if (tool == 4) {
  4339. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  4340. this.dialogVisible5 = false
  4341. } else {
  4342. this.closeConfirm(tool);
  4343. }
  4344. } else if (tool == 45) {
  4345. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  4346. this.dialogVisibleChoice = false
  4347. } else {
  4348. this.closeConfirm(tool);
  4349. }
  4350. } else if (tool == 41) {
  4351. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  4352. this.dialogVisibleSelect = false
  4353. } else {
  4354. this.closeConfirm(tool);
  4355. }
  4356. } else if (tool == 47) {
  4357. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  4358. this.dialogVisibleSentence = false
  4359. } else {
  4360. this.closeConfirm(tool);
  4361. }
  4362. }else if (tool == 69){
  4363. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  4364. this.englishDialogVisible = false
  4365. } else {
  4366. this.closeConfirm(tool);
  4367. }
  4368. }
  4369. },
  4370. closeConfirm(tool) {
  4371. this
  4372. .$confirm("是否保存已编辑内容?", "提示", {
  4373. confirmButtonText: "保存",
  4374. cancelButtonText: "不保存",
  4375. type: "warning",
  4376. })
  4377. .then(() => {
  4378. if (tool == 15) {
  4379. this.addAnswer();
  4380. } else if (tool == 4) {
  4381. this.addAsk();
  4382. } else if (tool == 45) {
  4383. this.addTest();
  4384. } else if (tool == 41) {
  4385. this.addSelectAnswer();
  4386. } else if (tool == 47) {
  4387. this.addSentenceTool();
  4388. }else if(tool == 69){
  4389. this.addEnglish();
  4390. }
  4391. })
  4392. .catch(() => {
  4393. if (tool == 15) {
  4394. this.dialogVisible8 = false;
  4395. } else if (tool == 4) {
  4396. this.dialogVisible5 = false;
  4397. } else if (tool == 45) {
  4398. this.dialogVisibleChoice = false;
  4399. } else if (tool == 41) {
  4400. this.dialogVisibleSelect = false;
  4401. } else if (tool == 47) {
  4402. this.dialogVisibleSentence = false;
  4403. } else if (tool == 69) {
  4404. this.englishDialogVisible = false;
  4405. }
  4406. });
  4407. },
  4408. addEnglish(){
  4409. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  4410. this.$message.error("请将内容填写完整!");
  4411. return;
  4412. }
  4413. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4414. this.taskCount
  4415. ].toolChoose[this.toolIndex].englishList = this.englishList;
  4416. this.englishList = {};
  4417. this.englishDialogVisible = false;
  4418. if (
  4419. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  4420. .toolChoose[this.toolIndex].tool != 69
  4421. ) {
  4422. this.addTools(69, this.taskCount, this.toolIndex);
  4423. }
  4424. },
  4425. setEnglishList(engList){
  4426. this.englishList = engList;
  4427. },
  4428. imgChange2(i, j) {
  4429. var _tmp = this.testJson.testJson[i].checkList[j];
  4430. this.noneBtnImg = _tmp.length >= 1;
  4431. },
  4432. imgChange3(i) {
  4433. var _tmp = this.testJson.testJson[i];
  4434. this.noneBtnImg = _tmp.length >= 1;
  4435. },
  4436. imgChange1(file, fileList, type, itemTaskIndex) {
  4437. if (type == 1) {
  4438. var _tmp = this.cover;
  4439. } else if (
  4440. type == 2 ||
  4441. type == 3 ||
  4442. type == 6 ||
  4443. type == 7 ||
  4444. type == 8
  4445. ) {
  4446. var _tmp =
  4447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4448. .chapterData;
  4449. } else if (type == 4) {
  4450. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4451. } else {
  4452. var _tmp =
  4453. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4454. .homeworkList;
  4455. }
  4456. this.noneBtnImg = _tmp.length >= 1;
  4457. },
  4458. goTo(path) {
  4459. this.$router.push(path);
  4460. },
  4461. guid() {
  4462. var _num,
  4463. i,
  4464. _guid = "";
  4465. for (i = 0; i < 32; i++) {
  4466. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4467. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4468. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4469. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4470. _guid += "-";
  4471. }
  4472. }
  4473. return _guid;
  4474. },
  4475. retrunCourse() {
  4476. this
  4477. .$confirm("是否保存已编辑内容?", "提示", {
  4478. confirmButtonText: "保存",
  4479. cancelButtonText: "不保存",
  4480. distinguishCancelAndClose: true,
  4481. type: "warning",
  4482. })
  4483. .then(() => {
  4484. if (this.cid == "" || this.cid == undefined) {
  4485. if (this.courseName == "") {
  4486. this.$message.error("请补充填写课程名称");
  4487. return;
  4488. } else {
  4489. this.addWork();
  4490. }
  4491. this.steps = 4
  4492. } else {
  4493. if (this.courseName == "") {
  4494. this.$message.error("请补充填写课程名称");
  4495. return;
  4496. } else {
  4497. if (this.userid != this.courseUserid && this.role != "1") {
  4498. this.updateWork2();
  4499. } else {
  4500. this.updateWork();
  4501. }
  4502. this.steps = 4
  4503. }
  4504. }
  4505. })
  4506. .catch((v) => {
  4507. console.log(v)
  4508. if(v == "cancel"){
  4509. this.goTo(
  4510. "/course?userid=" +
  4511. this.userid +
  4512. "&oid=" +
  4513. this.oid +
  4514. "&org=" +
  4515. this.org +
  4516. "&role=" +
  4517. this.role
  4518. );
  4519. }
  4520. });
  4521. },
  4522. lastSteps() {
  4523. if (this.steps == 4) {
  4524. this.goTo(
  4525. "/course?userid=" +
  4526. this.userid +
  4527. "&oid=" +
  4528. this.oid +
  4529. "&org=" +
  4530. this.org +
  4531. "&role=" +
  4532. this.role
  4533. );
  4534. } else {
  4535. if (this.cidType == 0) {
  4536. this.steps--;
  4537. if (this.steps == 1) {
  4538. setTimeout(() => {
  4539. this.checkEva(this.checkId);
  4540. setTimeout(() => {
  4541. this.checkEva(this.checkId);
  4542. }, 100);
  4543. }, 100);
  4544. }
  4545. } else {
  4546. if (this.steps == 3) {
  4547. this.steps = 1;
  4548. setTimeout(() => {
  4549. this.checkEva(this.checkId);
  4550. setTimeout(() => {
  4551. this.checkEva(this.checkId);
  4552. }, 100);
  4553. }, 100);
  4554. }
  4555. }
  4556. }
  4557. },
  4558. navSteps(s) {
  4559. if (this.courseName == "") {
  4560. this.$message.error("请补充填写课程名称");
  4561. return;
  4562. }
  4563. if (this.cidType == 0) {
  4564. if (this.steps == 1) {
  4565. if (this.cid == "" || this.cid == undefined) {
  4566. this.addWork();
  4567. } else {
  4568. if (this.userid != this.courseUserid && this.role != "1") {
  4569. // this.updateWork2();
  4570. } else {
  4571. this.updateWork();
  4572. }
  4573. }
  4574. }
  4575. if (s == 1) {
  4576. this.steps = 1;
  4577. setTimeout(() => {
  4578. this.checkEva(this.checkId);
  4579. setTimeout(() => {
  4580. this.checkEva(this.checkId);
  4581. }, 100);
  4582. }, 100);
  4583. }
  4584. if (s == 2) {
  4585. this.steps = 2;
  4586. }
  4587. if (s == 3) {
  4588. this.cTemplate = this.templateC.content;
  4589. this.dialogVisible2 = false;
  4590. this.steps = 3;
  4591. this.isClickColor = 1
  4592. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4593. this.$forceUpdate();
  4594. setTimeout(() => {
  4595. this.checkEva(this.checkId);
  4596. setTimeout(() => {
  4597. this.checkEva(this.checkId);
  4598. }, 100);
  4599. }, 1000);
  4600. }
  4601. } else {
  4602. if (this.steps == 1) {
  4603. if (this.cid == "" || this.cid == undefined) {
  4604. this.addWork();
  4605. } else {
  4606. if (this.userid != this.courseUserid && this.role != "1") {
  4607. // this.updateWork2();
  4608. } else {
  4609. this.updateWork();
  4610. }
  4611. }
  4612. }
  4613. if (s == 1) {
  4614. this.steps = 1;
  4615. setTimeout(() => {
  4616. this.checkEva(this.checkId);
  4617. setTimeout(() => {
  4618. this.checkEva(this.checkId);
  4619. }, 100);
  4620. }, 100);
  4621. }
  4622. if (s == 3) {
  4623. this.cTemplate = this.templateC.content;
  4624. this.dialogVisible2 = false;
  4625. this.steps = 3;
  4626. this.isClickColor = 1
  4627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4628. this.$forceUpdate();
  4629. setTimeout(() => {
  4630. this.checkEva(this.checkId);
  4631. setTimeout(() => {
  4632. this.checkEva(this.checkId);
  4633. }, 100);
  4634. }, 1000);
  4635. }
  4636. }
  4637. this.$refs.stepBox.scrollTop = 0;
  4638. },
  4639. nextSteps() {
  4640. if (this.cidType == 1) {
  4641. if (this.steps == 1) {
  4642. if (this.courseName != "") {
  4643. this.steps = 3;
  4644. this.isClickColor = 1
  4645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4646. this.$forceUpdate();
  4647. setTimeout(() => {
  4648. this.checkEva(this.checkId);
  4649. setTimeout(() => {
  4650. this.checkEva(this.checkId);
  4651. }, 100);
  4652. }, 1000);
  4653. if (this.cid == "" || this.cid == undefined) {
  4654. this.addWork();
  4655. } else {
  4656. if (this.userid != this.courseUserid && this.role != "1") {
  4657. // this.updateWork2();
  4658. } else {
  4659. this.updateWork();
  4660. }
  4661. }
  4662. } else {
  4663. this.$message.error("请补充填写课程名称");
  4664. return;
  4665. }
  4666. } else if (this.steps == 3) {
  4667. if (this.cid == "" || this.cid == undefined) {
  4668. if (this.courseName == "") {
  4669. this.$message.error("请补充填写课程名称");
  4670. return;
  4671. } else {
  4672. this.addWork();
  4673. this.steps++;
  4674. }
  4675. } else {
  4676. if (this.courseName == "") {
  4677. this.$message.error("请补充填写课程名称");
  4678. return;
  4679. } else {
  4680. if (this.userid != this.courseUserid && this.role != "1") {
  4681. this.updateWork2();
  4682. } else {
  4683. this.updateWork();
  4684. }
  4685. this.steps++;
  4686. }
  4687. }
  4688. }
  4689. } else {
  4690. if (this.steps == 1) {
  4691. if (this.courseName != "") {
  4692. if (this.cid == "" || this.cid == undefined) {
  4693. this.addWork();
  4694. } else {
  4695. if (this.userid != this.courseUserid && this.role != "1") {
  4696. // this.updateWork2();
  4697. } else {
  4698. this.updateWork();
  4699. }
  4700. }
  4701. this.steps++;
  4702. } else {
  4703. this.$message.error("请补充填写课程名称");
  4704. return;
  4705. }
  4706. } else if (this.steps == 2) {
  4707. if (this.templateC.id != "" || this.templateC.id != undefined) {
  4708. this.cTemplate = this.templateC.content;
  4709. }
  4710. this.dialogVisible2 = false;
  4711. this.steps++;
  4712. setTimeout(() => {
  4713. this.checkEva(this.checkId);
  4714. setTimeout(() => {
  4715. this.checkEva(this.checkId);
  4716. }, 100);
  4717. }, 1000);
  4718. } else if (this.steps == 3) {
  4719. if (this.cid == "" || this.cid == undefined) {
  4720. if (this.courseName == "") {
  4721. this.$message.error("请补充填写课程名称");
  4722. return;
  4723. } else {
  4724. this.addWork();
  4725. this.steps++;
  4726. }
  4727. } else {
  4728. if (this.courseName == "") {
  4729. this.$message.error("请补充填写课程名称");
  4730. return;
  4731. } else {
  4732. if (this.userid != this.courseUserid && this.role != "1") {
  4733. this.updateWork2();
  4734. } else {
  4735. this.updateWork();
  4736. }
  4737. this.steps++;
  4738. }
  4739. }
  4740. }
  4741. }
  4742. this.$refs.stepBox.scrollTop = 0;
  4743. },
  4744. unitSet(i) {
  4745. this.unitIndex = i;
  4746. this.isClickColor = 1
  4747. // this.$refs.rightboxR.scrollTop = 0;
  4748. this.$refs.unitBox.scrollTop = 0
  4749. },
  4750. time() {
  4751. if (!this.now) {
  4752. this.now = new Date().getTime();
  4753. return true;
  4754. } else {
  4755. let time = new Date().getTime();
  4756. if (time - this.now > 3000) {
  4757. this.now = time;
  4758. return true;
  4759. } else {
  4760. return false;
  4761. }
  4762. }
  4763. },
  4764. deleteUnit(i) {
  4765. var _this = this;
  4766. if (_this.time()) {
  4767. _this
  4768. .$confirm("确定删除此单元吗?", "提示", {
  4769. confirmButtonText: "确定",
  4770. cancelButtonText: "取消",
  4771. type: "warning",
  4772. })
  4773. .then(() => {
  4774. _this.isDelete = 2;
  4775. // _this.unitIndex = _this.unitIndex - 1;
  4776. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  4777. // _this.$message.success("删除成功");
  4778. })
  4779. .catch(() => {
  4780. return;
  4781. });
  4782. }
  4783. },
  4784. deleteWork(chapid) {
  4785. let params = [
  4786. {
  4787. cid: this.cid,
  4788. chapters: JSON.stringify(this.unitJson),
  4789. uid: this.userid,
  4790. chapid: chapid,
  4791. },
  4792. ];
  4793. this.ajax
  4794. .post(this.$store.state.api + "deleteWork", params)
  4795. .then((res) => {
  4796. this.$message({
  4797. message: "删除成功",
  4798. type: "success",
  4799. });
  4800. this.unitJson.splice(this.unitIndex, 1);
  4801. this.unitIndex = this.unitIndex - 1;
  4802. })
  4803. .catch((err) => {
  4804. this.$message.error("网络不佳");
  4805. console.error(err);
  4806. });
  4807. },
  4808. deleteTool(itemTaskIndex, i) {
  4809. var _this = this;
  4810. if (_this.time()) {
  4811. _this
  4812. .$confirm("确定删除此工具吗?", "提示", {
  4813. confirmButtonText: "确定",
  4814. cancelButtonText: "取消",
  4815. type: "warning",
  4816. })
  4817. .then(() => {
  4818. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4819. itemTaskIndex
  4820. ].toolChoose.splice(i, 1);
  4821. _this.$message.success("删除成功");
  4822. })
  4823. .catch(() => {
  4824. return;
  4825. });
  4826. }
  4827. },
  4828. deleteSentence(i) {
  4829. var _this = this;
  4830. _this
  4831. .$confirm("确定删除此题目吗?", "提示", {
  4832. confirmButtonText: "确定",
  4833. cancelButtonText: "取消",
  4834. type: "warning",
  4835. })
  4836. .then(() => {
  4837. _this.sentenceList.splice(i, 1);
  4838. _this.$message.success("删除成功");
  4839. })
  4840. .catch(() => {
  4841. return;
  4842. });
  4843. },
  4844. deleteS(s, i, j) {
  4845. this.sentenceList[i].addSentence.splice(j, 1);
  4846. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  4847. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  4848. this.sentenceList[i].rightAnswer.splice(a, 1);
  4849. }
  4850. },
  4851. openT() {
  4852. window.parent.postMessage({ tools: "25" }, "*");
  4853. },
  4854. deleteTask(i) {
  4855. var _this = this;
  4856. if (_this.time()) {
  4857. _this
  4858. .$confirm(
  4859. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  4860. 1 ==
  4861. i
  4862. ? "确定删除此任务吗?"
  4863. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  4864. "提示",
  4865. {
  4866. confirmButtonText: "确定",
  4867. cancelButtonText: "取消",
  4868. type: "warning",
  4869. }
  4870. )
  4871. .then(() => {
  4872. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  4873. i,
  4874. 1
  4875. );
  4876. _this.$message.success("删除成功");
  4877. })
  4878. .catch(() => {
  4879. return;
  4880. });
  4881. }
  4882. },
  4883. handlePictureCardPreview(file) {
  4884. this.dialogImageUrl = file.url;
  4885. },
  4886. clean(i, c) {
  4887. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  4888. },
  4889. handle_remove1(file, fileList, type) {
  4890. var _tmp = this.cover;
  4891. // for (var i = 0, len = _tmp.length; i < len; i++) {
  4892. // if (_tmp[i].uid == file.uid) {
  4893. // _tmp.splice(i, 1);
  4894. // break;
  4895. // }
  4896. // this.cover = _tmp;
  4897. // }
  4898. this.cover = [];
  4899. this.noneBtnImg = this.cover.length >= 1;
  4900. this.isSysPic = false;
  4901. this.isSysPic2 = false;
  4902. this.$forceUpdate();
  4903. },
  4904. addImg(e) {
  4905. var el = e.currentTarget;
  4906. el.getElementsByTagName("input")[0].click();
  4907. e.target.value = "";
  4908. },
  4909. addChaptersTools(i) {
  4910. this.chapTools = [
  4911. {
  4912. tools: [],
  4913. toolDetail: "",
  4914. },
  4915. ];
  4916. this.chapCount = i;
  4917. this.dialogVisible4 = true;
  4918. },
  4919. isNoFinsh() {
  4920. this.$message.warning("功能正在开发中");
  4921. },
  4922. addAttText(i) {
  4923. this.AttText = {
  4924. title: "",
  4925. text: "",
  4926. };
  4927. this.taskCount = i;
  4928. this.AttTextType = 0;
  4929. this.$forceUpdate();
  4930. this.dialogVisible6 = true;
  4931. setTimeout(() => {
  4932. this.$refs['fuInput'].focus();
  4933. }, 100);
  4934. },
  4935. openLine(i) {
  4936. this.line = "";
  4937. this.lineCount = i;
  4938. this.lineType = 0;
  4939. this.$forceUpdate();
  4940. this.dialogVisible7 = true;
  4941. },
  4942. pasteLine(i) {
  4943. navigator.clipboard
  4944. .readText()
  4945. .then((v) => {
  4946. console.log("获取剪贴板成功:", v);
  4947. const html = v;
  4948. const regex = /src="(.*?)"/g;
  4949. const match = regex.exec(html);
  4950. if (match && match[1]) {
  4951. console.log(match[1]);
  4952. this.$message.success("粘贴成功");
  4953. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4954. i
  4955. ].chapterData.push({
  4956. name: "链接",
  4957. title: "嵌入代码",
  4958. url: match[1],
  4959. type: 8,
  4960. });
  4961. } else {
  4962. // console.log("未找到包含 src 属性的 iframe");
  4963. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  4964. }
  4965. })
  4966. .catch((v) => {
  4967. console.log("获取剪贴板失败: ", v);
  4968. });
  4969. },
  4970. openSource(i) {
  4971. this.lineCount = i;
  4972. this.sourceData = {};
  4973. this.dialogVisibleSource = true;
  4974. this.updateSourcePan = false;
  4975. },
  4976. addSource() {
  4977. if (!Object.keys(this.sourceData).length) {
  4978. this.$message.error("请选择要上传的资源");
  4979. return;
  4980. }
  4981. let keys = Object.keys(this.sourceData);
  4982. for (var i = 0; i < keys.length; i++) {
  4983. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4984. this.lineCount
  4985. ].chapterData.push({
  4986. name: "链接",
  4987. title: this.sourceData[keys[i]].name,
  4988. url: this.sourceData[keys[i]].url,
  4989. type: 14,
  4990. id: keys[i]
  4991. });
  4992. }
  4993. this.$forceUpdate();
  4994. this.dialogVisibleSource = false;
  4995. },
  4996. updateSource() {
  4997. if (!Object.keys(this.sourceData).length) {
  4998. this.$message.error("请选择要上传的资源");
  4999. return;
  5000. }
  5001. let keys = Object.keys(this.sourceData);
  5002. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5003. this.taskCount
  5004. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5005. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5006. this.taskCount
  5007. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5008. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5009. this.taskCount
  5010. ].chapterData[this.lineCount].id = keys[0];
  5011. this.updateSourcePan = false;
  5012. this.$forceUpdate();
  5013. this.dialogVisibleSource = false;
  5014. },
  5015. deleteM(i, j) {
  5016. this.testJson.testJson[i].timuList.splice(j, 1);
  5017. },
  5018. beforeUploadTiMu(event, i) {
  5019. const loading = this.openLoading();
  5020. var file = event.target.files[0];
  5021. var credentials = {
  5022. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5023. secretAccessKey: "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",
  5024. }; //秘钥形式的登录上传
  5025. window.AWS.config.update(credentials);
  5026. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5027. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5028. var _this = this;
  5029. if (file) {
  5030. var params = {
  5031. Key:
  5032. file.name.split(".")[0] +
  5033. new Date().getTime() +
  5034. "." +
  5035. file.name.split(".")[file.name.split(".").length - 1],
  5036. ContentType: file.type,
  5037. Body: file,
  5038. "Access-Control-Allow-Credentials": "*",
  5039. ACL: "public-read",
  5040. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5041. var options = {
  5042. partSize: 2048 * 1024 * 1024,
  5043. queueSize: 2,
  5044. leavePartsOnError: true,
  5045. };
  5046. bucket
  5047. .upload(params, options)
  5048. .on("httpUploadProgress", function (evt) {
  5049. //这里可以写进度条
  5050. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5051. })
  5052. .send(function (err, data) {
  5053. loading.close();
  5054. if (err) {
  5055. _this.$message.error("上传失败");
  5056. } else {
  5057. if (_this.testJson.testJson[i].timuList) {
  5058. _this.testJson.testJson[i].timuList.push({
  5059. src: data.Location,
  5060. });
  5061. } else {
  5062. _this.testJson.testJson[i].timuList = [];
  5063. _this.testJson.testJson[i].timuList.push({
  5064. src: data.Location,
  5065. });
  5066. }
  5067. _this.imgChange3(i);
  5068. _this.$forceUpdate();
  5069. }
  5070. });
  5071. }
  5072. },
  5073. beforeUploadTi(event, i, j) {
  5074. const loading = this.openLoading();
  5075. var file = event.target.files[0];
  5076. var credentials = {
  5077. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5078. secretAccessKey: "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",
  5079. }; //秘钥形式的登录上传
  5080. window.AWS.config.update(credentials);
  5081. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5082. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5083. var _this = this;
  5084. if (file) {
  5085. var params = {
  5086. Key:
  5087. file.name.split(".")[0] +
  5088. new Date().getTime() +
  5089. "." +
  5090. file.name.split(".")[file.name.split(".").length - 1],
  5091. ContentType: file.type,
  5092. Body: file,
  5093. "Access-Control-Allow-Credentials": "*",
  5094. ACL: "public-read",
  5095. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5096. var options = {
  5097. partSize: 2048 * 1024 * 1024,
  5098. queueSize: 2,
  5099. leavePartsOnError: true,
  5100. };
  5101. bucket
  5102. .upload(params, options)
  5103. .on("httpUploadProgress", function (evt) {
  5104. //这里可以写进度条
  5105. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5106. })
  5107. .send(function (err, data) {
  5108. loading.close();
  5109. if (err) {
  5110. _this.$message.error("上传失败");
  5111. } else {
  5112. _this.testJson.testJson[i].checkList[j] = {};
  5113. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5114. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5115. _this.imgChange2(i, j);
  5116. _this.$forceUpdate();
  5117. }
  5118. });
  5119. }
  5120. },
  5121. beforeUpload1(event, type) {
  5122. // const loading = this.openLoading();
  5123. var file = event.target.files[0];
  5124. var credentials = {
  5125. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5126. secretAccessKey: "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",
  5127. }; //秘钥形式的登录上传
  5128. window.AWS.config.update(credentials);
  5129. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5130. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5131. var _this = this;
  5132. if (file) {
  5133. var params = {
  5134. Key:
  5135. file.name.split(".")[0] +
  5136. new Date().getTime() +
  5137. "." +
  5138. file.name.split(".")[file.name.split(".").length - 1],
  5139. ContentType: file.type,
  5140. Body: file,
  5141. "Access-Control-Allow-Credentials": "*",
  5142. ACL: "public-read",
  5143. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5144. var options = {
  5145. partSize: 2048 * 1024 * 1024,
  5146. queueSize: 2,
  5147. leavePartsOnError: true,
  5148. };
  5149. bucket
  5150. .upload(params, options)
  5151. .on("httpUploadProgress", function (evt) {
  5152. //这里可以写进度条
  5153. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5154. })
  5155. .send(function (err, data) {
  5156. // loading.close();
  5157. if (err) {
  5158. // var a = _this.$refs.upload1.uploadFiles;
  5159. // a.splice(a.length - 1, a.length);
  5160. _this.$message.error("上传失败");
  5161. } else {
  5162. _this.cover.push({
  5163. name: file.name,
  5164. url: data.Location,
  5165. uid: file.uid,
  5166. });
  5167. _this.imgChange1(null, null, 1, null);
  5168. _this.choosePicVisible = false;
  5169. console.log(data.Location);
  5170. }
  5171. });
  5172. }
  5173. },
  5174. beforeUploadSelect(event, type) {
  5175. // const loading = this.openLoading();
  5176. var file = event.target.files[0];
  5177. var credentials = {
  5178. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5179. secretAccessKey: "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",
  5180. }; //秘钥形式的登录上传
  5181. window.AWS.config.update(credentials);
  5182. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5183. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5184. var _this = this;
  5185. if (file) {
  5186. var params = {
  5187. Key:
  5188. file.name.split(".")[0] +
  5189. new Date().getTime() +
  5190. "." +
  5191. file.name.split(".")[file.name.split(".").length - 1],
  5192. ContentType: file.type,
  5193. Body: file,
  5194. "Access-Control-Allow-Credentials": "*",
  5195. ACL: "public-read",
  5196. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5197. var options = {
  5198. partSize: 2048 * 1024 * 1024,
  5199. queueSize: 2,
  5200. leavePartsOnError: true,
  5201. };
  5202. bucket
  5203. .upload(params, options)
  5204. .on("httpUploadProgress", function (evt) {
  5205. //这里可以写进度条
  5206. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5207. })
  5208. .send(function (err, data) {
  5209. // loading.close();
  5210. if (err) {
  5211. _this.$message.error("上传失败");
  5212. } else {
  5213. _this.selectJson.url = data.Location;
  5214. console.log(data.Location);
  5215. }
  5216. });
  5217. }
  5218. },
  5219. chooseSysPic(p) {
  5220. this.cover = []
  5221. setTimeout(() => {
  5222. this.cover[0] = {
  5223. name: "系统图片.png",
  5224. url: p,
  5225. };
  5226. this.imgChange1(null, null, 1, null);
  5227. this.$forceUpdate();
  5228. }, 0);
  5229. this.isSysPic = true;
  5230. this.isSysPic2 = false;
  5231. this.sysPicVisible = false;
  5232. this.$forceUpdate();
  5233. },
  5234. chooseSysPic2(p) {
  5235. this.cover = []
  5236. setTimeout(() => {
  5237. this.cover[0] = {
  5238. name: "网络图片.png",
  5239. url: p,
  5240. };
  5241. this.imgChange1(null, null, 1, null);
  5242. this.$forceUpdate();
  5243. }, 0);
  5244. this.isSysPic2 = true;
  5245. this.isSysPic = false;
  5246. this.sysPicVisible2 = false;
  5247. this.$forceUpdate();
  5248. },
  5249. beforeUpload(data) {
  5250. this.$refs.upload1.uploadFiles;
  5251. this.uploadLoading1 = true;
  5252. var file = data.file;
  5253. var credentials = {
  5254. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5255. secretAccessKey: "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",
  5256. }; //秘钥形式的登录上传
  5257. window.AWS.config.update(credentials);
  5258. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5259. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5260. var _this = this;
  5261. if (file) {
  5262. var params = {
  5263. Key:
  5264. file.name.split(".")[0] +
  5265. new Date().getTime() +
  5266. "." +
  5267. file.name.split(".")[file.name.split(".").length - 1],
  5268. ContentType: file.type,
  5269. Body: file,
  5270. "Access-Control-Allow-Credentials": "*",
  5271. ACL: "public-read",
  5272. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5273. var options = {
  5274. partSize: 2048 * 1024 * 1024,
  5275. queueSize: 2,
  5276. leavePartsOnError: true,
  5277. };
  5278. bucket
  5279. .upload(params, options)
  5280. .on("httpUploadProgress", function (evt) {
  5281. //这里可以写进度条
  5282. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5283. })
  5284. .send(function (err, data) {
  5285. _this.uploadLoading1 = false;
  5286. if (err) {
  5287. // var a = _this.$refs.upload1.uploadFiles;
  5288. // a.splice(a.length - 1, a.length);
  5289. _this.$message.error("上传失败");
  5290. } else {
  5291. //上传成功处理
  5292. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5293. name: file.name,
  5294. url: data.Location,
  5295. uid: file.uid,
  5296. });
  5297. _this.imgChange();
  5298. console.log(data.Location);
  5299. }
  5300. });
  5301. }
  5302. },
  5303. onExceed() {
  5304. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5305. },
  5306. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5307. // const loading = this.openLoading();
  5308. var file = event.target.files[0];
  5309. var credentials = {
  5310. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5311. secretAccessKey: "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",
  5312. }; //秘钥形式的登录上传
  5313. window.AWS.config.update(credentials);
  5314. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5315. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5316. var _this = this;
  5317. if (type == 3) {
  5318. var b = [
  5319. "DOC",
  5320. "DOCX",
  5321. "DOCM",
  5322. "DOTM",
  5323. "DOTX",
  5324. "PPTX",
  5325. "PPSX",
  5326. "PPT",
  5327. "PPS",
  5328. "PPTM",
  5329. "POTM",
  5330. "PPAM",
  5331. "POTX",
  5332. "PPSM",
  5333. ];
  5334. if (
  5335. b.indexOf(
  5336. file.name
  5337. .split(".")
  5338. [file.name.split(".").length - 1].toLocaleUpperCase()
  5339. ) != -1
  5340. ) {
  5341. if (file.size / 1024 / 1024 > 80) {
  5342. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5343. this.inputShow = true;
  5344. // var a = _this.$refs.upload1.uploadFiles;
  5345. // a.splice(a.length - 1, a.length);
  5346. // loading.close();
  5347. return;
  5348. }
  5349. } else if (
  5350. file.name
  5351. .split(".")
  5352. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5353. ) {
  5354. if (file.size / 1024 / 1024 > 80) {
  5355. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5356. this.inputShow = true;
  5357. // var a = _this.$refs.upload1.uploadFiles;
  5358. // a.splice(a.length - 1, a.length);
  5359. // loading.close();
  5360. return;
  5361. }
  5362. }
  5363. }
  5364. this.inputShow = false;
  5365. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5366. itemTaskIndex
  5367. ].progress = 0;
  5368. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5369. itemTaskIndex
  5370. ].proVisible = true;
  5371. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5372. itemTaskIndex
  5373. ].isFinishSize = 0;
  5374. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5375. itemTaskIndex
  5376. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5377. _this.$forceUpdate();
  5378. if (file) {
  5379. var params = {
  5380. Key:
  5381. file.name.split(".")[0] +
  5382. new Date().getTime() +
  5383. "." +
  5384. file.name.split(".")[file.name.split(".").length - 1],
  5385. ContentType: file.type,
  5386. Body: file,
  5387. "Access-Control-Allow-Credentials": "*",
  5388. ACL: "public-read",
  5389. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5390. var options = {
  5391. partSize: 2048 * 1024 * 1024,
  5392. queueSize: 2,
  5393. leavePartsOnError: true,
  5394. };
  5395. bucket
  5396. .upload(params, options)
  5397. .on("httpUploadProgress", function (evt) {
  5398. //这里可以写进度条
  5399. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5400. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5401. itemTaskIndex
  5402. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5403. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5404. itemTaskIndex
  5405. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5406. _this.$forceUpdate();
  5407. })
  5408. .send(function (err, data) {
  5409. // loading.close();
  5410. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5411. itemTaskIndex
  5412. ].progress = 100;
  5413. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5414. itemTaskIndex
  5415. ].isFinishSize =
  5416. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5417. itemTaskIndex
  5418. ].isAllSize;
  5419. _this.$forceUpdate();
  5420. setTimeout(() => {
  5421. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5422. itemTaskIndex
  5423. ].proVisible = false;
  5424. _this.$forceUpdate();
  5425. }, 1000);
  5426. _this.inputShow = true;
  5427. if (err) {
  5428. // var a = _this.$refs.upload1.uploadFiles;
  5429. // a.splice(a.length - 1, a.length);
  5430. _this.$message.error("上传失败");
  5431. } else {
  5432. if (type == 13) {
  5433. let _type = 2;
  5434. var imgA = [
  5435. "png",
  5436. "jpg",
  5437. "jpeg",
  5438. "bmp",
  5439. "gif",
  5440. "webp",
  5441. "psd",
  5442. "svg",
  5443. "tiff",
  5444. ];
  5445. var fileA = [
  5446. "PDF",
  5447. "DOC",
  5448. "DOCX",
  5449. "DOCM",
  5450. "DOTM",
  5451. "DOTX",
  5452. "PPTX",
  5453. "PPSX",
  5454. "PPT",
  5455. "PPS",
  5456. "PPTM",
  5457. "POTM",
  5458. "PPAM",
  5459. "POTX",
  5460. "PPSM",
  5461. "XLSX",
  5462. "XLS",
  5463. ];
  5464. var videoA = [
  5465. "AVI",
  5466. "NAVI",
  5467. "MPEG",
  5468. "ASF",
  5469. "MOV",
  5470. "WMV",
  5471. "3GP",
  5472. "RM",
  5473. "RMVB",
  5474. "FLV",
  5475. "F4V",
  5476. "H.264",
  5477. "H.265",
  5478. "REAL VIDEO",
  5479. "MKV",
  5480. "WebM",
  5481. "HDDVD",
  5482. "MP4",
  5483. "MPG",
  5484. "M4V",
  5485. "MGV",
  5486. "OGV",
  5487. "QTM",
  5488. "STR",
  5489. "AMC",
  5490. "DVX",
  5491. "EVO",
  5492. "DAT",
  5493. "OGG",
  5494. "OGM",
  5495. ];
  5496. if (
  5497. fileA.indexOf(
  5498. data.Location.split(".")[
  5499. data.Location.split(".").length - 1
  5500. ].toLocaleUpperCase()
  5501. ) != -1
  5502. ) {
  5503. _type = 3;
  5504. } else if (
  5505. videoA.indexOf(
  5506. data.Location.split(".")[
  5507. data.Location.split(".").length - 1
  5508. ].toLocaleUpperCase()
  5509. ) != -1
  5510. ) {
  5511. _type = 2;
  5512. } else if (
  5513. imgA.indexOf(
  5514. data.Location.split(".")[
  5515. data.Location.split(".").length - 1
  5516. ].toLocaleLowerCase()
  5517. ) != -1
  5518. ) {
  5519. _type = 13;
  5520. } else {
  5521. _type = 12;
  5522. }
  5523. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5524. itemTaskIndex
  5525. ].chapterData.push({
  5526. name: file.name,
  5527. url: data.Location,
  5528. uid: file.uid,
  5529. type: _type,
  5530. });
  5531. _this.imgChange1(null, null, _type, itemTaskIndex);
  5532. } else if (type == 2 || type == 3 || type == 12) {
  5533. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5534. itemTaskIndex
  5535. ].chapterData.push({
  5536. name: file.name,
  5537. url: data.Location,
  5538. uid: file.uid,
  5539. type: type,
  5540. });
  5541. _this.imgChange1(null, null, type, itemTaskIndex);
  5542. } else if (type == 4) {
  5543. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5544. itemTaskIndex
  5545. ].fileList1.push({
  5546. name: file.name,
  5547. url: data.Location,
  5548. uid: file.uid,
  5549. });
  5550. _this.imgChange1(null, null, type, itemTaskIndex);
  5551. } else if (type == 5) {
  5552. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5553. itemTaskIndex
  5554. ].homeworkList.push({
  5555. name: file.name,
  5556. url: data.Location,
  5557. uid: file.uid,
  5558. });
  5559. _this.imgChange1(null, null, type, itemTaskIndex);
  5560. }
  5561. console.log(data.Location);
  5562. }
  5563. });
  5564. }
  5565. },
  5566. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5567. // const loading = this.openLoading();
  5568. var file = event.target.files[0];
  5569. var credentials = {
  5570. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5571. secretAccessKey: "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",
  5572. }; //秘钥形式的登录上传
  5573. window.AWS.config.update(credentials);
  5574. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5575. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5576. var _this = this;
  5577. if (type == 3) {
  5578. var b = [
  5579. "DOC",
  5580. "DOCX",
  5581. "DOCM",
  5582. "DOTM",
  5583. "DOTX",
  5584. "PPTX",
  5585. "PPSX",
  5586. "PPT",
  5587. "PPS",
  5588. "PPTM",
  5589. "POTM",
  5590. "PPAM",
  5591. "POTX",
  5592. "PPSM",
  5593. ];
  5594. if (
  5595. b.indexOf(
  5596. file.name
  5597. .split(".")
  5598. [file.name.split(".").length - 1].toLocaleUpperCase()
  5599. ) != -1
  5600. ) {
  5601. if (file.size / 1024 / 1024 > 80) {
  5602. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5603. this.inputShow = true;
  5604. // var a = _this.$refs.upload1.uploadFiles;
  5605. // a.splice(a.length - 1, a.length);
  5606. // loading.close();
  5607. return;
  5608. }
  5609. } else if (
  5610. file.name
  5611. .split(".")
  5612. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5613. ) {
  5614. if (file.size / 1024 / 1024 > 80) {
  5615. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5616. this.inputShow = true;
  5617. // var a = _this.$refs.upload1.uploadFiles;
  5618. // a.splice(a.length - 1, a.length);
  5619. // loading.close();
  5620. return;
  5621. }
  5622. }
  5623. }
  5624. this.inputShow = false;
  5625. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5626. itemTaskIndex
  5627. ].progress = 0;
  5628. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5629. itemTaskIndex
  5630. ].proVisible = true;
  5631. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5632. itemTaskIndex
  5633. ].isFinishSize = 0;
  5634. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5635. itemTaskIndex
  5636. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5637. _this.$forceUpdate();
  5638. if (file) {
  5639. var params = {
  5640. Key:
  5641. file.name.split(".")[0] +
  5642. new Date().getTime() +
  5643. "." +
  5644. file.name.split(".")[file.name.split(".").length - 1],
  5645. ContentType: file.type,
  5646. Body: file,
  5647. "Access-Control-Allow-Credentials": "*",
  5648. ACL: "public-read",
  5649. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5650. var options = {
  5651. partSize: 2048 * 1024 * 1024,
  5652. queueSize: 2,
  5653. leavePartsOnError: true,
  5654. };
  5655. bucket
  5656. .upload(params, options)
  5657. .on("httpUploadProgress", function (evt) {
  5658. //这里可以写进度条
  5659. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5660. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5661. itemTaskIndex
  5662. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5663. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5664. itemTaskIndex
  5665. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5666. _this.$forceUpdate();
  5667. })
  5668. .send(function (err, data) {
  5669. // loading.close();
  5670. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5671. itemTaskIndex
  5672. ].progress = 100;
  5673. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5674. itemTaskIndex
  5675. ].isFinishSize =
  5676. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5677. itemTaskIndex
  5678. ].isAllSize;
  5679. _this.$forceUpdate();
  5680. setTimeout(() => {
  5681. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5682. itemTaskIndex
  5683. ].proVisible = false;
  5684. _this.$forceUpdate();
  5685. }, 1000);
  5686. _this.inputShow = true;
  5687. if (err) {
  5688. // var a = _this.$refs.upload1.uploadFiles;
  5689. // a.splice(a.length - 1, a.length);
  5690. _this.$message.error("上传失败");
  5691. } else {
  5692. if (type == 2 || type == 3) {
  5693. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5694. itemTaskIndex
  5695. ].chapterData.push({
  5696. name: file.name,
  5697. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5698. // itemTaskIndex
  5699. // ].chapterData.length+1),
  5700. url: data.Location,
  5701. uid: file.uid,
  5702. type: type,
  5703. text: string,
  5704. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5705. // itemTaskIndex
  5706. // ].chapterData.length + 1),
  5707. });
  5708. _this.imgChange1(null, null, type, itemTaskIndex);
  5709. } else if (type == 4) {
  5710. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5711. itemTaskIndex
  5712. ].fileList1.push({
  5713. name: file.name,
  5714. url: data.Location,
  5715. uid: file.uid,
  5716. });
  5717. _this.imgChange1(null, null, type, itemTaskIndex);
  5718. } else if (type == 5) {
  5719. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5720. itemTaskIndex
  5721. ].homeworkList.push({
  5722. name: file.name,
  5723. url: data.Location,
  5724. uid: file.uid,
  5725. });
  5726. _this.imgChange1(null, null, type, itemTaskIndex);
  5727. }
  5728. console.log(data.Location);
  5729. }
  5730. });
  5731. }
  5732. },
  5733. addunit() {
  5734. this.unitJson.push({
  5735. dyName: "", //单元标题
  5736. isUpdate: 1,
  5737. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  5738. chapterInfo: [
  5739. {
  5740. isread: false,
  5741. chapterid: this.guid(),
  5742. title: "",
  5743. courseName: "",
  5744. taskJson: [
  5745. {
  5746. task: "",
  5747. taskDetail: "",
  5748. chapterData: [],
  5749. toolText: "",
  5750. toolChoose: [
  5751. {
  5752. tool: [],
  5753. toolDetail: "",
  5754. toolType: 0,
  5755. askCount: 1,
  5756. askTitle: "",
  5757. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5758. },
  5759. ],
  5760. isShowTools: false,
  5761. askCount: 1,
  5762. isFold: 0,
  5763. askTitle: "",
  5764. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5765. checkJson: [{ checkCount: [], checkPerent: [] }],
  5766. homeworkList: [],
  5767. },
  5768. ],
  5769. itemCount: 1,
  5770. fileList1: [],
  5771. video: [],
  5772. testData: [],
  5773. pData: [],
  5774. templateArray: [],
  5775. },
  5776. ],
  5777. });
  5778. this.addindex = this.unitJson.length - 1;
  5779. setTimeout(() => {
  5780. this.unitIndex = this.unitJson.length - 1;
  5781. setTimeout(() => {
  5782. console.log(this.$refs.dyInput)
  5783. this.$refs.dyInput[0].focus()
  5784. }, 100);
  5785. this.unitSet(this.unitIndex);
  5786. }, 0);
  5787. },
  5788. addToolFun(itemTaskIndex) {
  5789. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5790. itemTaskIndex
  5791. ].toolChoose.push({
  5792. tool: [],
  5793. toolDetail: "",
  5794. toolType: 0,
  5795. askCount: 1,
  5796. askTitle: "",
  5797. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5798. });
  5799. },
  5800. addTaskBorder() {
  5801. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5802. task: "",
  5803. taskDetail: "",
  5804. chapterData: [],
  5805. toolText: "",
  5806. toolChoose: [
  5807. {
  5808. tool: [],
  5809. toolDetail: "",
  5810. toolType: 0,
  5811. askCount: 1,
  5812. askTitle: "",
  5813. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5814. },
  5815. ],
  5816. isShowTools: false,
  5817. askCount: 1,
  5818. isFold: 0,
  5819. askTitle: "",
  5820. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5821. checkJson: [{ checkCount: [], checkPerent: [] }],
  5822. homeworkList: [],
  5823. });
  5824. setTimeout(() => {
  5825. this.checkEva(this.checkId);
  5826. setTimeout(() => {
  5827. this.checkEva(this.checkId);
  5828. }, 100);
  5829. }, 100);
  5830. },
  5831. add(e, i) {
  5832. var el = e.currentTarget;
  5833. el.getElementsByTagName("input")[0].click();
  5834. },
  5835. fold(i, e) {
  5836. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  5837. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5838. } else {
  5839. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5840. }
  5841. },
  5842. fold2(i) {
  5843. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  5844. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  5845. } else {
  5846. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  5847. }
  5848. this.$forceUpdate();
  5849. },
  5850. foldEva(i) {
  5851. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  5852. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = false;
  5853. } else {
  5854. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = true;
  5855. setTimeout(() => {
  5856. this.checkEva(this.checkId);
  5857. setTimeout(() => {
  5858. this.checkEva(this.checkId);
  5859. }, 500);
  5860. }, 0);
  5861. }
  5862. this.$forceUpdate();
  5863. },
  5864. foldC(i) {
  5865. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  5866. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  5867. } else {
  5868. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  5869. }
  5870. this.$forceUpdate();
  5871. },
  5872. fold3(i, ti) {
  5873. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  5874. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  5875. } else {
  5876. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  5877. }
  5878. this.$forceUpdate();
  5879. },
  5880. deleteHomeworkBox(unitIndex, index, i) {
  5881. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5882. this.taskCount
  5883. ].homeworkList.splice(i, 1);
  5884. },
  5885. getStudent() {
  5886. let params = {
  5887. oid: this.oid,
  5888. cu: "",
  5889. cn: this.searchPeople,
  5890. };
  5891. this.ajax
  5892. .get(this.$store.state.api + "selectStudentAdd", params)
  5893. .then((res) => {
  5894. this.studentJuri = res.data[0];
  5895. })
  5896. .catch((err) => {
  5897. this.isLoading = false;
  5898. console.error(err);
  5899. });
  5900. },
  5901. getTeacher() {
  5902. let params = {
  5903. oid:
  5904. this.org && this.org != "undefined" && this.org != "null"
  5905. ? this.org
  5906. : this.oid,
  5907. cu: "",
  5908. cn: this.searchTN,
  5909. };
  5910. this.ajax
  5911. .get(
  5912. this.$store.state.api +
  5913. (this.org && this.org != "undefined" && this.org != "null"
  5914. ? "selectTeacherAddOrg"
  5915. : "selectTeacherAdd"),
  5916. params
  5917. )
  5918. .then((res) => {
  5919. let teacherJuri = res.data[0];
  5920. for (var i = 0; i < teacherJuri.length; i++) {
  5921. if (teacherJuri[i].userid == this.userid) {
  5922. teacherJuri.splice(i, 1);
  5923. break;
  5924. }
  5925. }
  5926. this.teacherJuri = teacherJuri;
  5927. })
  5928. .catch((err) => {
  5929. console.error(err);
  5930. });
  5931. },
  5932. searchStudent() {
  5933. this.getStudent();
  5934. },
  5935. selectGrage() {
  5936. let params = {
  5937. oid: this.oid,
  5938. };
  5939. this.ajax
  5940. .get(this.$store.state.api + "selectGrageBySchool", params)
  5941. .then((res) => {
  5942. this.gradeList = res.data[0];
  5943. })
  5944. .catch((err) => {
  5945. this.isLoading = false;
  5946. console.error(err);
  5947. });
  5948. },
  5949. //获取班级列表
  5950. getClass() {
  5951. let params = {
  5952. oid: this.oid,
  5953. gid: this.gradeId,
  5954. cn: this.classSearch,
  5955. };
  5956. this.ajax
  5957. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  5958. .then((res) => {
  5959. if (!this.grade.length) {
  5960. this.grade = res.data[0];
  5961. }
  5962. this.grade2 = res.data[0];
  5963. this.classJuri = res.data[0];
  5964. let _check = []
  5965. let _check2 = []
  5966. for (var i = 0; i < this.grade2.length; i++) {
  5967. var gid = this.grade2[i].id
  5968. _check.push(gid)
  5969. }
  5970. for (var i = 0; i < this.checkboxList2.length; i++) {
  5971. var _id = this.checkboxList2[i]
  5972. if (_check.indexOf(_id) !== -1) {
  5973. _check2.push(_id)
  5974. }
  5975. }
  5976. this.checkAll = _check2.length === _check.length;
  5977. })
  5978. .catch((err) => {
  5979. this.isLoading = false;
  5980. console.error(err);
  5981. });
  5982. },
  5983. CourseType2Change(val) {
  5984. this.pTypeCheck = [];
  5985. for (var i = 0; i < this.CourseType2.length; i++) {
  5986. let typeA = this.CourseType2[i];
  5987. if (val.indexOf(typeA.name) != -1) {
  5988. this.pTypeCheck.push(...typeA.id);
  5989. }
  5990. }
  5991. },
  5992. getChapterData(e, i, j, ic, type) {
  5993. e.stopPropagation();
  5994. this.updataC = true;
  5995. this.icc = ic;
  5996. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5997. console.log("还不能下载图片喔");
  5998. }
  5999. },
  6000. deleteChapterData(e, i, j, ic, taskI) {
  6001. e.stopPropagation();
  6002. let _this = this;
  6003. _this
  6004. .$confirm("确定删除此项?", "提示", {
  6005. confirmButtonText: "确定",
  6006. cancelButtonText: "取消",
  6007. type: "warning",
  6008. })
  6009. .then(() => {
  6010. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6011. })
  6012. .catch(() => {
  6013. return;
  6014. });
  6015. },
  6016. updataVideoT(e, i, j, ic) {
  6017. // e.stopPropagation();
  6018. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  6019. // ic
  6020. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6021. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6022. ic
  6023. ].name;
  6024. this.taskCount = j;
  6025. this.lineCount = ic;
  6026. this.dialogVisibleupdataVideoT = true;
  6027. this.$forceUpdate();
  6028. },
  6029. updataVideoC() {
  6030. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6031. this.dialogVisibleupdataVideoT = false;
  6032. this.$forceUpdate();
  6033. },
  6034. upCd(e, i, j, taskCount, ic) {
  6035. e.stopPropagation();
  6036. if (ic == 0) {
  6037. return;
  6038. }
  6039. var a =
  6040. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6041. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6042. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6043. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6044. this.$forceUpdate();
  6045. },
  6046. downCd(e, i, j, taskCount, ic) {
  6047. e.stopPropagation();
  6048. if (
  6049. ic ==
  6050. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6051. 1
  6052. ) {
  6053. return;
  6054. }
  6055. var a =
  6056. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6057. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6058. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6059. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6060. this.$forceUpdate();
  6061. },
  6062. upTool(e, i, j, tooli){
  6063. e.stopPropagation();
  6064. if (tooli == 0) {
  6065. return;
  6066. }
  6067. this.$confirm(
  6068. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6069. "提示",
  6070. {
  6071. confirmButtonText: "确定",
  6072. cancelButtonText: "取消",
  6073. type: "warning",
  6074. }
  6075. )
  6076. .then(() => {
  6077. var a =
  6078. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6079. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6080. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6081. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6082. this.$forceUpdate()
  6083. })
  6084. .catch(() => {
  6085. return;
  6086. });
  6087. },
  6088. downTool(e, i, j, tooli){
  6089. e.stopPropagation();
  6090. if ( tooli ==
  6091. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6092. 1) {
  6093. return;
  6094. }
  6095. this.$confirm(
  6096. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6097. "提示",
  6098. {
  6099. confirmButtonText: "确定",
  6100. cancelButtonText: "取消",
  6101. type: "warning",
  6102. }
  6103. )
  6104. .then(() => {
  6105. var a =
  6106. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6107. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6108. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6109. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6110. this.$forceUpdate()
  6111. })
  6112. .catch(() => {
  6113. return;
  6114. });
  6115. },
  6116. addWork() {
  6117. let cPan = 1;
  6118. for (var i = 0; i < this.unitJson.length; i++) {
  6119. for (
  6120. var j = 0;
  6121. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6122. j++
  6123. ) {
  6124. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6125. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6126. if (
  6127. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6128. ) {
  6129. for (
  6130. var z = 0;
  6131. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6132. z++
  6133. ) {
  6134. if (
  6135. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6136. .length
  6137. ) {
  6138. this.$message.error("请把工具添加完整");
  6139. cPan = 2;
  6140. break;
  6141. }
  6142. }
  6143. }
  6144. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6145. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6146. i
  6147. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6148. return ele.value != "";
  6149. });
  6150. }
  6151. }
  6152. }
  6153. this.inputShow = true;
  6154. if (cPan == 2) {
  6155. this.steps--;
  6156. return;
  6157. }
  6158. for (var i = 0; i < this.unitJson.length; i++) {
  6159. delete this.unitJson[i].isUpdate;
  6160. }
  6161. let params = [
  6162. {
  6163. uid: this.userid,
  6164. title: this.courseName.replace(/%/g, "%25"),
  6165. brief: this.courseText.replace(/%/g, "%25"),
  6166. cover:
  6167. this.cover.length > 0
  6168. ? JSON.stringify(this.cover)
  6169. : JSON.stringify([
  6170. {
  6171. name: "noBanner.jpg",
  6172. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6173. uid: 1656409780264,
  6174. status: "success",
  6175. },
  6176. ]),
  6177. evaId: this.evalua,
  6178. astudent:
  6179. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6180. see: this.isTeacherSee == true ? 1 : 0,
  6181. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6182. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6183. courseType: JSON.stringify(this.courseTypeId),
  6184. ateacher:
  6185. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6186. inviteCode: JSON.stringify(this.inviteCode),
  6187. },
  6188. ];
  6189. this.ajax
  6190. .post(this.$store.state.api + "addWorkNew2", params)
  6191. .then((res) => {
  6192. console.log(this.steps);
  6193. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6194. this.$message({
  6195. message: "新增成功",
  6196. type: "success",
  6197. });
  6198. }
  6199. this.number = res.data.ordernumber;
  6200. this.courseId = res.data.courseId;
  6201. this.cid = res.data.courseId;
  6202. this.courseUserid = this.userid;
  6203. this.islogin = true;
  6204. })
  6205. .catch((err) => {
  6206. this.$message.error("网络不佳");
  6207. console.error(err);
  6208. });
  6209. },
  6210. goCourse() {
  6211. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  6212. },
  6213. updateWork2() {
  6214. let _unitIndex = this.unitIndex;
  6215. let cPan = 1;
  6216. for (
  6217. var j = 0;
  6218. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6219. j++
  6220. ) {
  6221. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6222. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6223. j
  6224. ].proVisible2 = false;
  6225. if (
  6226. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6227. .length > 1
  6228. ) {
  6229. for (
  6230. var z = 0;
  6231. z <
  6232. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6233. .length;
  6234. z++
  6235. ) {
  6236. if (
  6237. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6238. z
  6239. ].tool.length
  6240. ) {
  6241. this.$message.error("请把工具添加完整");
  6242. cPan = 2;
  6243. break;
  6244. }
  6245. }
  6246. }
  6247. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6248. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6249. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6250. (ele) => {
  6251. return ele.value != "";
  6252. }
  6253. );
  6254. }
  6255. }
  6256. this.inputShow = true;
  6257. if (cPan == 2) {
  6258. this.steps--;
  6259. return;
  6260. }
  6261. let params = [
  6262. {
  6263. cid: this.cid,
  6264. chapters: JSON.stringify(this.unitJson),
  6265. uid: this.userid,
  6266. unitIndex: _unitIndex,
  6267. },
  6268. ];
  6269. this.ajax
  6270. .post(this.$store.state.api + "updateWorkNew4", params)
  6271. .then((res) => {
  6272. this.$message({
  6273. message: "修改成功",
  6274. type: "success",
  6275. });
  6276. this.courseId = this.cid;
  6277. })
  6278. .catch((err) => {
  6279. this.$message.error("网络不佳");
  6280. console.error(err);
  6281. });
  6282. },
  6283. updateWork() {
  6284. let cPan = 1;
  6285. for (var i = 0; i < this.unitJson.length; i++) {
  6286. for (
  6287. var j = 0;
  6288. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6289. j++
  6290. ) {
  6291. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6292. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6293. if (
  6294. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6295. ) {
  6296. for (
  6297. var z = 0;
  6298. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6299. z++
  6300. ) {
  6301. if (
  6302. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6303. .length
  6304. ) {
  6305. this.$message.error("请把工具添加完整");
  6306. cPan = 2;
  6307. break;
  6308. }
  6309. }
  6310. }
  6311. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6312. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6313. i
  6314. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6315. return ele.value != "";
  6316. });
  6317. }
  6318. }
  6319. }
  6320. this.inputShow = true;
  6321. if (cPan == 2) {
  6322. this.steps--;
  6323. return;
  6324. }
  6325. for (var i = 0; i < this.unitJson.length; i++) {
  6326. delete this.unitJson[i].isUpdate;
  6327. }
  6328. let params = [
  6329. {
  6330. cid: this.cid,
  6331. title: this.courseName.replace(/%/g, "%25"),
  6332. brief: this.courseText.replace(/%/g, "%25"),
  6333. cover:
  6334. this.cover.length > 0
  6335. ? JSON.stringify(this.cover)
  6336. : JSON.stringify([
  6337. {
  6338. name: "noBanner.jpg",
  6339. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6340. uid: 1656409780264,
  6341. status: "success",
  6342. },
  6343. ]),
  6344. evaId: this.evalua,
  6345. astudent:
  6346. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6347. see: this.isTeacherSee == true ? 1 : 0,
  6348. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6349. template: this.myWord != "undefined" ? this.myWord : [],
  6350. uid: this.userid,
  6351. courseType: JSON.stringify(this.courseTypeId),
  6352. ateacher:
  6353. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6354. inviteCode: JSON.stringify(this.inviteCode),
  6355. },
  6356. ];
  6357. this.ajax
  6358. .post(this.$store.state.api + "updateWorkNew2", params)
  6359. .then((res) => {
  6360. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6361. if (this.cidType == 1) {
  6362. this.$message({
  6363. message: "修改成功",
  6364. type: "success",
  6365. });
  6366. } else {
  6367. this.$message({
  6368. message: "新增成功",
  6369. type: "success",
  6370. });
  6371. }
  6372. }
  6373. this.number = this.nbOrder;
  6374. this.courseId = this.cid;
  6375. })
  6376. .catch((err) => {
  6377. this.$message.error("网络不佳");
  6378. console.error(err);
  6379. });
  6380. },
  6381. guid() {
  6382. var _num,
  6383. i,
  6384. _guid = "";
  6385. for (i = 0; i < 32; i++) {
  6386. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6387. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6388. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6389. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6390. _guid += "-";
  6391. }
  6392. }
  6393. return _guid;
  6394. },
  6395. insertWord() {
  6396. this.dialogVisible1 = true;
  6397. this.updateBoolean2 = false;
  6398. this.tTitle = "";
  6399. this.tdetail = "";
  6400. },
  6401. addWord() {
  6402. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6403. name: this.tTitle,
  6404. content: this.tdetail,
  6405. uid: this.guid(),
  6406. });
  6407. this.dialogVisible1 = false;
  6408. },
  6409. upWord() { },
  6410. selectWord(uid, i, c) {
  6411. this.dialogVisible1 = true;
  6412. this.updateBoolean2 = true;
  6413. if (
  6414. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6415. ) {
  6416. this.tTitle =
  6417. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6418. this.tdetail =
  6419. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6420. }
  6421. },
  6422. isAddPP() {
  6423. if (this.checkboxList.length > 0) {
  6424. this.$message({
  6425. message: "添加成功",
  6426. type: "success",
  6427. });
  6428. this.dialogVisible3 = false;
  6429. } else {
  6430. this.$message({
  6431. message: "请添加课程成员",
  6432. type: "error",
  6433. });
  6434. }
  6435. },
  6436. isAddClass() {
  6437. this.dialogVisibleClass = false;
  6438. },
  6439. isAddPPTeacher() {
  6440. this.dialogVisibleMember = false;
  6441. this.setMan();
  6442. },
  6443. getTemplate() {
  6444. this.ajax
  6445. .get(this.$store.state.api + "getCourseTemplateT", "")
  6446. .then((res) => {
  6447. this.templateArray = res.data[0];
  6448. this.getTemplateOid();
  6449. this.$forceUpdate();
  6450. })
  6451. .catch((err) => { });
  6452. },
  6453. getTemplateOid() {
  6454. let params = {
  6455. oid: this.oid,
  6456. };
  6457. this.ajax
  6458. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6459. .then((res) => {
  6460. if (res.data[0].length) {
  6461. this.templateArray = [...res.data[0], ...this.templateArray];
  6462. }
  6463. this.getTemplateOrg();
  6464. this.$forceUpdate();
  6465. })
  6466. .catch((err) => { });
  6467. },
  6468. getTemplateOrg() {
  6469. let params = {
  6470. oid: this.org,
  6471. };
  6472. this.ajax
  6473. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6474. .then((res) => {
  6475. if (res.data[0].length) {
  6476. this.templateArray = [...res.data[0], ...this.templateArray];
  6477. }
  6478. this.$forceUpdate();
  6479. })
  6480. .catch((err) => { });
  6481. },
  6482. clearChoose() {
  6483. this.clearArray.splice(this.templateC.id, 1);
  6484. this.dialogVisible2 = false;
  6485. },
  6486. clearAttText() {
  6487. this.AttText = {
  6488. title: "",
  6489. text: "",
  6490. };
  6491. this.dialogVisible6 = false;
  6492. },
  6493. clearLine() {
  6494. this.line = "";
  6495. this.dialogVisible7 = false;
  6496. },
  6497. checkTemplate(res) {
  6498. let _this = this;
  6499. _this
  6500. .$confirm("确定选择此模板吗?修改课程时无法重置课程模板。", "提示", {
  6501. confirmButtonText: "确定",
  6502. cancelButtonText: "取消",
  6503. type: "warning",
  6504. })
  6505. .then(() => {
  6506. _this.unitJson = JSON.parse(res.chapters);
  6507. _this.steps++;
  6508. setTimeout(() => {
  6509. this.checkEva(this.checkId);
  6510. setTimeout(() => {
  6511. this.checkEva(this.checkId);
  6512. }, 100);
  6513. }, 1000);
  6514. })
  6515. .catch(() => {
  6516. return;
  6517. });
  6518. },
  6519. checkTemplate1(w) {
  6520. this.steps++;
  6521. },
  6522. checkTemplate2() {
  6523. let _this = this;
  6524. _this
  6525. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  6526. confirmButtonText: "确定",
  6527. cancelButtonText: "取消",
  6528. type: "warning",
  6529. })
  6530. .then(() => {
  6531. _this.unitIndex = 0;
  6532. _this.unitJson = [
  6533. {
  6534. dyName: "", //单元标题
  6535. chapterInfo: [
  6536. {
  6537. isread: false,
  6538. chapterid: this.guid(),
  6539. title: "",
  6540. courseName: "",
  6541. taskJson: [
  6542. {
  6543. task: "",
  6544. taskDetail: "",
  6545. chapterData: [],
  6546. toolText: "",
  6547. toolChoose: [
  6548. {
  6549. tool: [],
  6550. toolDetail: "",
  6551. toolType: 0,
  6552. askCount: 1,
  6553. askTitle: "",
  6554. askJson: [
  6555. { askstitle: "", askItem: 1, checkList: [] },
  6556. ],
  6557. },
  6558. ],
  6559. isShowTools: false,
  6560. askCount: 1,
  6561. isFold: 0,
  6562. askTitle: "",
  6563. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6564. checkJson: [{ checkCount: [], checkPerent: [] }],
  6565. homeworkList: [],
  6566. },
  6567. ],
  6568. itemCount: 1,
  6569. fileList1: [],
  6570. video: [],
  6571. testData: [],
  6572. pData: [],
  6573. templateArray: [],
  6574. },
  6575. ],
  6576. },
  6577. ];
  6578. this.steps++;
  6579. setTimeout(() => {
  6580. this.checkEva(this.checkId);
  6581. setTimeout(() => {
  6582. this.checkEva(this.checkId);
  6583. }, 100);
  6584. }, 1000);
  6585. this.updateWork();
  6586. })
  6587. .catch(() => {
  6588. return;
  6589. });
  6590. },
  6591. checkTemplate3() {
  6592. let _this = this;
  6593. _this
  6594. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  6595. confirmButtonText: "确定",
  6596. cancelButtonText: "取消",
  6597. type: "warning",
  6598. })
  6599. .then(() => {
  6600. _this.unitIndex = 0;
  6601. _this.unitJson = [
  6602. {
  6603. dyName: "", //单元标题
  6604. easy: 1,
  6605. chapterInfo: [
  6606. {
  6607. isread: false,
  6608. chapterid: this.guid(),
  6609. title: "",
  6610. courseName: "",
  6611. taskJson: [
  6612. {
  6613. task: "",
  6614. taskDetail: "",
  6615. chapterData: [],
  6616. toolText: "",
  6617. toolChoose: [
  6618. {
  6619. tool: [],
  6620. toolDetail: "",
  6621. toolType: 0,
  6622. askCount: 1,
  6623. askTitle: "",
  6624. askJson: [
  6625. { askstitle: "", askItem: 1, checkList: [] },
  6626. ],
  6627. },
  6628. ],
  6629. isShowTools: false,
  6630. askCount: 1,
  6631. isFold: 0,
  6632. askTitle: "",
  6633. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6634. checkJson: [{ checkCount: [], checkPerent: [] }],
  6635. homeworkList: [],
  6636. },
  6637. ],
  6638. itemCount: 1,
  6639. fileList1: [],
  6640. video: [],
  6641. testData: [],
  6642. pData: [],
  6643. templateArray: [],
  6644. },
  6645. ],
  6646. },
  6647. ];
  6648. this.steps++;
  6649. this.updateWork();
  6650. })
  6651. .catch(() => {
  6652. return;
  6653. });
  6654. },
  6655. checkTemplate4() {
  6656. let _this = this;
  6657. _this
  6658. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  6659. confirmButtonText: "确定",
  6660. cancelButtonText: "取消",
  6661. type: "warning",
  6662. })
  6663. .then(() => {
  6664. _this.unitIndex = 0;
  6665. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  6666. this.steps++;
  6667. this.updateWork();
  6668. })
  6669. .catch(() => {
  6670. return;
  6671. });
  6672. },
  6673. wordNext() {
  6674. this.dialogVisible2 = false;
  6675. },
  6676. isAddOrUpdateAttText() {
  6677. if (this.AttTextType == 0) {
  6678. this.addAttTextMessage();
  6679. } else {
  6680. this.updateAttText();
  6681. }
  6682. },
  6683. isAddOrUpdateLine() {
  6684. if (!this.lineTitle) {
  6685. this.$message.error("请填写链接标题");
  6686. return;
  6687. }
  6688. if (this.lineType == 0) {
  6689. this.addLine();
  6690. } else {
  6691. this.updateLine();
  6692. }
  6693. },
  6694. addAttTextMessage() {
  6695. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6696. this.taskCount
  6697. ].chapterData.push({
  6698. name: this.AttText.title,
  6699. url: this.AttText.text,
  6700. type: 6,
  6701. });
  6702. this.imgChange1(null, null, 6, this.taskCount);
  6703. this.dialogVisible6 = false;
  6704. },
  6705. selectAttText(itemTaskIndex, i) {
  6706. this.AttText.title =
  6707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6708. itemTaskIndex
  6709. ].chapterData[i].name;
  6710. this.AttText.text =
  6711. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6712. itemTaskIndex
  6713. ].chapterData[i].url;
  6714. this.taskCount = itemTaskIndex;
  6715. this.AttTextIndex = i;
  6716. this.AttTextType = 1;
  6717. this.dialogVisible6 = true;
  6718. },
  6719. updateAttText() {
  6720. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6721. this.taskCount
  6722. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6723. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6724. this.taskCount
  6725. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6726. this.dialogVisible6 = false;
  6727. },
  6728. addLine() {
  6729. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6730. this.lineCount
  6731. ].chapterData.push({
  6732. name: "链接",
  6733. title: this.lineTitle,
  6734. url: this.line,
  6735. type: 8,
  6736. });
  6737. this.imgChange1(null, null, 8, this.lineCount);
  6738. this.dialogVisible7 = false;
  6739. },
  6740. selectLine(itemTaskIndex, i) {
  6741. this.line =
  6742. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6743. itemTaskIndex
  6744. ].chapterData[i].url;
  6745. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6746. itemTaskIndex
  6747. ].chapterData[i].title
  6748. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6749. .chapterData[i].title
  6750. : "";
  6751. this.taskCount = itemTaskIndex;
  6752. this.lineCount = i;
  6753. this.lineType = 1;
  6754. this.dialogVisible7 = true;
  6755. },
  6756. openUpdateSource(itemTaskIndex, i) {
  6757. this.sourceData = {}
  6758. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  6759. this.sourceData[source.id] = {}
  6760. this.sourceData[source.id].name = source.title
  6761. this.sourceData[source.id].url = source.url
  6762. this.dialogVisibleSource = true;
  6763. this.updateSourcePan = true;
  6764. this.taskCount = itemTaskIndex;
  6765. this.lineCount = i;
  6766. },
  6767. updateLine() {
  6768. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6769. this.taskCount
  6770. ].chapterData[this.lineCount].url = this.line;
  6771. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6772. this.taskCount
  6773. ].chapterData[this.lineCount].title = this.lineTitle;
  6774. this.dialogVisible7 = false;
  6775. },
  6776. addPP() {
  6777. this.dialogVisible3 = true;
  6778. },
  6779. goTo(path) {
  6780. this.$router.push(path);
  6781. },
  6782. openTools(itemTaskIndex, i, toolIndex) {
  6783. this.toolIndex = toolIndex;
  6784. this.taskCount = itemTaskIndex;
  6785. if (i == 4) {
  6786. if (toolIndex == null) {
  6787. var a =
  6788. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6789. .chapterData;
  6790. for (var i = 0; i < a.length; i++) {
  6791. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6792. this.askJson =
  6793. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6794. itemTaskIndex
  6795. ].chapterData[i].askJson;
  6796. }
  6797. }
  6798. } else {
  6799. this.askJson = JSON.parse(
  6800. JSON.stringify(
  6801. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6802. itemTaskIndex
  6803. ].toolChoose[toolIndex]
  6804. )
  6805. );
  6806. }
  6807. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  6808. this.dialogVisible5 = true;
  6809. } else if (i == 45) {
  6810. if (
  6811. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6812. .toolChoose[toolIndex].testJson
  6813. ) {
  6814. this.testJson = JSON.parse(
  6815. JSON.stringify(
  6816. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6817. itemTaskIndex
  6818. ].toolChoose[toolIndex].testJson
  6819. )
  6820. );
  6821. } else {
  6822. var testJson = {
  6823. testCount: 1,
  6824. testTitle: "",
  6825. testJson: [
  6826. {
  6827. teststitle: "",
  6828. testItem: 1,
  6829. checkList: [],
  6830. timuList: [],
  6831. answer: [],
  6832. type: "1",
  6833. },
  6834. ],
  6835. };
  6836. this.testJson = testJson;
  6837. }
  6838. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  6839. this.dialogVisibleChoice = true;
  6840. } else if (i == 47) {
  6841. if (
  6842. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6843. .toolChoose[toolIndex].sentenceList
  6844. ) {
  6845. this.sentenceList = JSON.parse(
  6846. JSON.stringify(
  6847. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6848. itemTaskIndex
  6849. ].toolChoose[toolIndex].sentenceList
  6850. )
  6851. );
  6852. } else {
  6853. var sentenceList = [
  6854. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6855. ];
  6856. this.sentenceList = sentenceList;
  6857. }
  6858. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  6859. this.dialogVisibleSentence = true;
  6860. } else if (i == 48) {
  6861. if (
  6862. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6863. .toolChoose[toolIndex].tableJson
  6864. ) {
  6865. this.tableJson = JSON.parse(
  6866. JSON.stringify(
  6867. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6868. itemTaskIndex
  6869. ].toolChoose[toolIndex].tableJson
  6870. )
  6871. );
  6872. } else {
  6873. var tableJson = { text: "" };
  6874. this.tableJson = tableJson;
  6875. }
  6876. this.dialogVisibleTable = true;
  6877. } else if (i == 52) {
  6878. if (
  6879. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6880. .toolChoose[toolIndex].wordJson
  6881. ) {
  6882. this.wordJson = JSON.parse(
  6883. JSON.stringify(
  6884. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6885. itemTaskIndex
  6886. ].toolChoose[toolIndex].wordJson
  6887. )
  6888. );
  6889. } else {
  6890. var wordJson = { text: "" };
  6891. this.wordJson = wordJson;
  6892. }
  6893. this.dialogVisibleWord = true;
  6894. // else if (i == 50) {
  6895. // if (
  6896. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6897. // .toolChoose[toolIndex].uploadJson
  6898. // ) {
  6899. // this.uploadJson = JSON.parse(
  6900. // JSON.stringify(
  6901. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6902. // itemTaskIndex
  6903. // ].toolChoose[toolIndex].uploadJson
  6904. // )
  6905. // );
  6906. // } else {
  6907. // var uploadJson = [];
  6908. // this.uploadJson = uploadJson;
  6909. // }
  6910. // this.dialogVisibleMoreUpload = true;
  6911. // }
  6912. } else if (i == 10) {
  6913. if (
  6914. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6915. .toolChoose[toolIndex].preTime
  6916. ) {
  6917. this.preTime = JSON.parse(
  6918. JSON.stringify(
  6919. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6920. itemTaskIndex
  6921. ].toolChoose[toolIndex].preTime
  6922. )
  6923. );
  6924. } else {
  6925. var preTime = 0;
  6926. this.preTime = preTime;
  6927. }
  6928. this.dialogVisiblePreTime = true;
  6929. } else if (i == 49) {
  6930. if (
  6931. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6932. .toolChoose[toolIndex].groupJson
  6933. ) {
  6934. this.groupJson = JSON.parse(
  6935. JSON.stringify(
  6936. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6937. itemTaskIndex
  6938. ].toolChoose[toolIndex].groupJson
  6939. )
  6940. );
  6941. } else {
  6942. var groupJson = {
  6943. group: [{ name: "第1组" }],
  6944. number: undefined,
  6945. islock: 1,
  6946. };
  6947. this.groupJson = groupJson;
  6948. }
  6949. this.dialogVisibleGroup = true;
  6950. } else if (i == 62) {
  6951. if (
  6952. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6953. .toolChoose[toolIndex].videoJson
  6954. ) {
  6955. this.videoJson = JSON.parse(
  6956. JSON.stringify(
  6957. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6958. itemTaskIndex
  6959. ].toolChoose[toolIndex].videoJson
  6960. )
  6961. );
  6962. } else {
  6963. var videoJson = {
  6964. video: "",
  6965. setting: [],
  6966. };
  6967. this.videoJson = videoJson;
  6968. }
  6969. this.dialogVisibleVideo = true;
  6970. } else if (i == 15) {
  6971. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6972. itemTaskIndex
  6973. ].toolChoose[toolIndex].answerQ
  6974. ? JSON.parse(
  6975. JSON.stringify(
  6976. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6977. itemTaskIndex
  6978. ].toolChoose[toolIndex].answerQ
  6979. )
  6980. )
  6981. : "";
  6982. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  6983. this.dialogVisible8 = true;
  6984. } else if (i == 40) {
  6985. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6986. itemTaskIndex
  6987. ].toolChoose[toolIndex].rateJson
  6988. ? JSON.parse(
  6989. JSON.stringify(
  6990. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6991. itemTaskIndex
  6992. ].toolChoose[toolIndex].rateJson
  6993. )
  6994. )
  6995. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  6996. this.selectSteps = 1;
  6997. this.dialogVisibleRate = true;
  6998. } else if (i == 42) {
  6999. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7000. itemTaskIndex
  7001. ].toolChoose[toolIndex].answerQ
  7002. ? JSON.parse(
  7003. JSON.stringify(
  7004. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7005. itemTaskIndex
  7006. ].toolChoose[toolIndex].answerQ
  7007. )
  7008. )
  7009. : "";
  7010. this.dialogVisibleMp3 = true;
  7011. } else if (i == 41) {
  7012. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7013. itemTaskIndex
  7014. ].toolChoose[toolIndex].selectJson
  7015. ? JSON.parse(
  7016. JSON.stringify(
  7017. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7018. itemTaskIndex
  7019. ].toolChoose[toolIndex].selectJson
  7020. )
  7021. )
  7022. : { url: "", select: [], answer: [] };
  7023. this.selectSteps = 1;
  7024. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7025. this.dialogVisibleSelect = true;
  7026. } else if (i == 3) {
  7027. window.parent.postMessage(
  7028. {
  7029. tools: "3y",
  7030. cid: this.cid,
  7031. stage: this.unitIndex,
  7032. task: itemTaskIndex,
  7033. tool: toolIndex,
  7034. },
  7035. "*"
  7036. );
  7037. } else if (i == 1) {
  7038. window.parent.postMessage(
  7039. {
  7040. tools: "1y",
  7041. cid: this.cid,
  7042. stage: this.unitIndex,
  7043. task: itemTaskIndex,
  7044. tool: toolIndex,
  7045. },
  7046. "*"
  7047. );
  7048. } else if (i == 57) {
  7049. window.parent.postMessage(
  7050. {
  7051. tools: "57y",
  7052. cid: this.cid,
  7053. stage: this.unitIndex,
  7054. task: itemTaskIndex,
  7055. tool: toolIndex,
  7056. },
  7057. "*"
  7058. );
  7059. }else if(i == 69){
  7060. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7061. itemTaskIndex
  7062. ].toolChoose[toolIndex].englishList
  7063. ? JSON.parse(
  7064. JSON.stringify(
  7065. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7066. itemTaskIndex
  7067. ].toolChoose[toolIndex].englishList
  7068. )
  7069. )
  7070. : { };
  7071. this.englishDialogVisible = true;
  7072. }
  7073. },
  7074. chapAddTools(i) {
  7075. if (this.chapTools[0].tools.length == 0) {
  7076. this.chapTools[0].tools.push(i);
  7077. } else {
  7078. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7079. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7080. } else {
  7081. this.chapTools[0].tools.push(i);
  7082. }
  7083. }
  7084. this.$forceUpdate();
  7085. },
  7086. addChaptersDataTools() {
  7087. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7089. this.chapCount
  7090. ].chapterData.push({
  7091. name: this.chapTools[0].toolDetail,
  7092. url: this.chapTools[0].tools,
  7093. type: 7,
  7094. askJson: this.askJson,
  7095. });
  7096. } else {
  7097. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7098. this.chapCount
  7099. ].chapterData.push({
  7100. name: this.chapTools[0].toolDetail,
  7101. url: this.chapTools[0].tools,
  7102. type: 7,
  7103. });
  7104. }
  7105. this.imgChange1(null, null, 7, this.chapCount);
  7106. this.dialogVisible4 = false;
  7107. },
  7108. addTools(i, itemTaskIndex, toolIndex) {
  7109. // if (
  7110. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7111. // .toolChoose[toolIndex].tool.length == 0
  7112. // ) {
  7113. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7114. // itemTaskIndex
  7115. // ].toolChoose[toolIndex].tool.push(i);
  7116. // } else {
  7117. // if (
  7118. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7119. // itemTaskIndex
  7120. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7121. // ) {
  7122. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7123. // itemTaskIndex
  7124. // ].toolChoose[toolIndex].tool.splice(
  7125. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7126. // itemTaskIndex
  7127. // ].toolChoose[toolIndex].tool.indexOf(i),
  7128. // 1
  7129. // );
  7130. // } else {
  7131. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7132. // itemTaskIndex
  7133. // ].toolChoose[toolIndex].tool.push(i);
  7134. // }
  7135. // console.log(
  7136. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7137. // .toolChoose[toolIndex].tool
  7138. // );
  7139. // }
  7140. if (i == 4) {
  7141. if (
  7142. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7143. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7144. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7145. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7146. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7147. .toolChoose[toolIndex].askJson[0].checkList < 2
  7148. ) {
  7149. this.openTools(itemTaskIndex, 4, toolIndex);
  7150. // this.$message({
  7151. // message: "请填写完整问卷内容",
  7152. // type: "error",
  7153. // });
  7154. return;
  7155. }
  7156. }
  7157. if (i == 45) {
  7158. if (
  7159. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7160. .toolChoose[toolIndex].testJson ||
  7161. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7162. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7164. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7165. ) {
  7166. this.openTools(itemTaskIndex, 45, toolIndex);
  7167. // this.$message({
  7168. // message: "请填写完整问卷内容",
  7169. // type: "error",
  7170. // });
  7171. return;
  7172. }
  7173. }
  7174. if (i == 47) {
  7175. if (
  7176. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7177. .toolChoose[toolIndex].sentenceList ||
  7178. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7179. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7180. ) {
  7181. this.openTools(itemTaskIndex, 47, toolIndex);
  7182. return;
  7183. }
  7184. }
  7185. if(i == 69){
  7186. if (
  7187. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7188. .toolChoose[toolIndex].englishList
  7189. ) {
  7190. this.openTools(itemTaskIndex, 69, toolIndex);
  7191. return;
  7192. }
  7193. }
  7194. // if (i == 48) {
  7195. // if (
  7196. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7197. // .toolChoose[toolIndex].tableJson
  7198. // ) {
  7199. // this.openTools(itemTaskIndex, 48, toolIndex);
  7200. // return;
  7201. // }
  7202. // }
  7203. // if (i == 50) {
  7204. // if (
  7205. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7206. // .toolChoose[toolIndex].uploadJson
  7207. // ) {
  7208. // this.openTools(itemTaskIndex, 50, toolIndex);
  7209. // return;
  7210. // }
  7211. // }
  7212. if (i == 49) {
  7213. if (
  7214. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7215. .toolChoose[toolIndex].groupJson
  7216. ) {
  7217. this.openTools(itemTaskIndex, 49, toolIndex);
  7218. return;
  7219. }
  7220. }
  7221. if (i == 62) {
  7222. if (
  7223. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7224. .toolChoose[toolIndex].videoJson
  7225. ) {
  7226. this.openTools(itemTaskIndex, 62, toolIndex);
  7227. return;
  7228. }
  7229. }
  7230. if (i == 15) {
  7231. if (
  7232. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7233. .toolChoose[toolIndex].answerQ ||
  7234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7235. .toolChoose[toolIndex].answerQ == ""
  7236. ) {
  7237. this.openTools(itemTaskIndex, 15, toolIndex);
  7238. // this.$message({
  7239. // message: "请填写问答内容",
  7240. // type: "error",
  7241. // });
  7242. return;
  7243. }
  7244. }
  7245. if (i == 40) {
  7246. if (
  7247. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7248. .toolChoose[toolIndex].rateJson ||
  7249. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7250. .toolChoose[toolIndex].rateJson.length
  7251. ) {
  7252. this.openTools(itemTaskIndex, 40, toolIndex);
  7253. return;
  7254. }
  7255. }
  7256. if (i == 41) {
  7257. if (
  7258. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7259. .toolChoose[toolIndex].selectJson ||
  7260. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7261. .toolChoose[toolIndex].selectJson.url == "" ||
  7262. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7263. .toolChoose[toolIndex].selectJson.select.length ||
  7264. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7265. .toolChoose[toolIndex].selectJson.answer.length
  7266. ) {
  7267. this.openTools(itemTaskIndex, 41, toolIndex);
  7268. return;
  7269. }
  7270. }
  7271. if (i == 42) {
  7272. if (
  7273. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7274. .toolChoose[toolIndex].answerQ ||
  7275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7276. .toolChoose[toolIndex].answerQ == ""
  7277. ) {
  7278. this.openTools(itemTaskIndex, 42, toolIndex);
  7279. return;
  7280. }
  7281. }
  7282. if (
  7283. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7284. .toolChoose[toolIndex].tool.length > 0
  7285. ) {
  7286. if (
  7287. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7288. itemTaskIndex
  7289. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7290. ) {
  7291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7292. itemTaskIndex
  7293. ].toolChoose[toolIndex].tool.splice(
  7294. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7295. itemTaskIndex
  7296. ].toolChoose[toolIndex].tool.indexOf(i),
  7297. 1
  7298. );
  7299. } else {
  7300. // this.$message({
  7301. // message: "每个工具只能添加一个",
  7302. // type: "error",
  7303. // });
  7304. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7305. itemTaskIndex
  7306. ].toolChoose[toolIndex].tool = [];
  7307. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7308. itemTaskIndex
  7309. ].toolChoose[toolIndex].tool.push(i);
  7310. }
  7311. } else {
  7312. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7313. itemTaskIndex
  7314. ].toolChoose[toolIndex].tool.push(i);
  7315. }
  7316. this.$forceUpdate();
  7317. },
  7318. addAskList(index) {
  7319. this.askJson.askJson.splice(index + 1, 0, {
  7320. askstitle: "",
  7321. askItem: 1,
  7322. checkList: [],
  7323. })
  7324. this.askJson.askCount++;
  7325. },
  7326. addTestList(index) {
  7327. this.testJson.testJson.splice(index + 1, 0, {
  7328. teststitle: "",
  7329. testItem: 1,
  7330. checkList: [],
  7331. timuList: [],
  7332. answer: [],
  7333. type: "1",
  7334. })
  7335. this.testJson.testCount++;
  7336. },
  7337. deleteAskList(index) {
  7338. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7339. this.askJson.askJson.splice(index, 1);
  7340. this.askJson.askCount--;
  7341. } else {
  7342. let _this = this;
  7343. _this
  7344. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7345. confirmButtonText: "确定",
  7346. cancelButtonText: "取消",
  7347. type: "warning",
  7348. })
  7349. .then(() => {
  7350. _this.askJson.askJson.splice(index, 1);
  7351. _this.askJson.askCount--;
  7352. })
  7353. .catch(() => {
  7354. return;
  7355. });
  7356. }
  7357. },
  7358. deleteTestList(index) {
  7359. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7360. this.testJson.testJson.splice(index, 1);
  7361. this.testJson.testCount--;
  7362. } else {
  7363. let _this = this;
  7364. _this
  7365. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7366. confirmButtonText: "确定",
  7367. cancelButtonText: "取消",
  7368. type: "warning",
  7369. })
  7370. .then(() => {
  7371. _this.testJson.testJson.splice(index, 1);
  7372. _this.testJson.testCount--;
  7373. })
  7374. .catch(() => {
  7375. return;
  7376. });
  7377. }
  7378. },
  7379. askMove(type, index) {
  7380. if (type == 1) {
  7381. if (index > 0) {
  7382. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  7383. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7384. this.askJson.askJson[index - 1] = b;
  7385. this.askJson.askJson[index] = a;
  7386. }
  7387. } else {
  7388. if (
  7389. index < this.askJson.askJson.length - 1
  7390. ) {
  7391. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  7392. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7393. this.askJson.askJson[index + 1] = b;
  7394. this.askJson.askJson[index] = a;
  7395. }
  7396. }
  7397. this.$forceUpdate();
  7398. },
  7399. checkMove(type, index, checkIndex) {
  7400. if (type == 1) {
  7401. if (checkIndex > 0) {
  7402. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  7403. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7404. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  7405. this.askJson.askJson[index].checkList[checkIndex] = a;
  7406. }
  7407. } else {
  7408. if (
  7409. checkIndex < this.askJson.askJson[index].checkList.length - 1
  7410. ) {
  7411. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  7412. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7413. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  7414. this.askJson.askJson[index].checkList[checkIndex] = a;
  7415. }
  7416. }
  7417. this.$forceUpdate();
  7418. },
  7419. testMove(type, index) {
  7420. if (type == 1) {
  7421. if (index > 0) {
  7422. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  7423. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7424. this.testJson.testJson[index - 1] = b;
  7425. this.testJson.testJson[index] = a;
  7426. }
  7427. } else {
  7428. if (
  7429. index < this.testJson.testJson.length - 1
  7430. ) {
  7431. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  7432. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7433. this.testJson.testJson[index + 1] = b;
  7434. this.testJson.testJson[index] = a;
  7435. }
  7436. }
  7437. this.$forceUpdate();
  7438. },
  7439. tcheckMove(type, index, checkIndex) {
  7440. if (type == 1) {
  7441. if (checkIndex > 0) {
  7442. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  7443. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7444. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  7445. this.testJson.testJson[index].checkList[checkIndex] = a;
  7446. }
  7447. } else {
  7448. if (
  7449. checkIndex < this.testJson.testJson[index].checkList.length - 1
  7450. ) {
  7451. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  7452. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7453. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  7454. this.testJson.testJson[index].checkList[checkIndex] = a;
  7455. }
  7456. }
  7457. this.$forceUpdate();
  7458. },
  7459. addcheckList(json, index) {
  7460. // json.checkList.length++;
  7461. json.checkList.splice(index + 1, 0, '')
  7462. json.askItem++;
  7463. this.$forceUpdate();
  7464. },
  7465. deletecheckList(json, index) {
  7466. // json.checkList.length--;
  7467. json.checkList.splice(index, 1)
  7468. json.askItem--;
  7469. this.$forceUpdate();
  7470. },
  7471. addTcheckList(json, index) {
  7472. // json.checkList.length++;
  7473. json.checkList.splice(index + 1, 0, '')
  7474. json.testItem++;
  7475. this.$forceUpdate();
  7476. },
  7477. deleteTcheckList(json, index) {
  7478. // json.checkList.length--;
  7479. json.checkList.splice(index, 1)
  7480. json.testItem--;
  7481. this.$forceUpdate();
  7482. },
  7483. checkTestType(type, json) {
  7484. json.type = type;
  7485. setTimeout(() => {
  7486. json.answer = [];
  7487. }, 100)
  7488. },
  7489. checkAskType(type, json) {
  7490. json.type = type;
  7491. // json.checkList = [];
  7492. this.$forceUpdate();
  7493. },
  7494. addSelectList(json) {
  7495. json.select.push("");
  7496. json.answer.push("");
  7497. },
  7498. deleteSelectList(json) {
  7499. // json.select.length--;
  7500. // json.answer.length--;
  7501. json.select.splice(json.select.length - 1, 1);
  7502. json.answer.splice(json.answer.length - 1, 1);
  7503. },
  7504. addAsk() {
  7505. if (this.askJson.askTitle === "") {
  7506. this.$message.error("标题不能为空!");
  7507. return;
  7508. }
  7509. var aj = this.askJson.askJson;
  7510. var b = 1;
  7511. for (var i = 0; i < aj.length; i++) {
  7512. if (aj[i].askstitle === "") {
  7513. var a = 1;
  7514. for (let index = 0; index < aj[i].askItem; index++) {
  7515. const element = aj[i].checkList[index]
  7516. ? aj[i].checkList[index]
  7517. : "";
  7518. if (element != "") {
  7519. b++;
  7520. this.$message.error(`请将题目${i + 1}填写完整。`);
  7521. return;
  7522. } else {
  7523. a++;
  7524. }
  7525. }
  7526. if (b == 1) {
  7527. this.$message.error("至少填写一个问题");
  7528. return;
  7529. }
  7530. } else if (aj[i].askstitle != "") {
  7531. for (let index = 0; index < aj[i].askItem; index++) {
  7532. const element = aj[i].checkList[index]
  7533. ? aj[i].checkList[index]
  7534. : "";
  7535. var index = 0;
  7536. for (var z = 0; z < aj[i].checkList.length; z++) {
  7537. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7538. if (checkC != "") {
  7539. index++;
  7540. } else {
  7541. this.$message.error(`题目${i + 1}选项不能为空!`);
  7542. return;
  7543. }
  7544. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7545. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7546. if (checkC == checkC2) {
  7547. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7548. return;
  7549. }
  7550. }
  7551. }
  7552. b++;
  7553. if (index < 2) {
  7554. this.$message.error("每道题目至少需要设置2个选项。");
  7555. return;
  7556. }
  7557. }
  7558. }
  7559. }
  7560. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7561. var elc = el.checkList.filter((element) => {
  7562. return element != "";
  7563. });
  7564. return el.askstitle != "" && elc.length != 0;
  7565. });
  7566. if (!this.dialogVisible4) {
  7567. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7568. this.taskCount
  7569. ].toolChoose[this.toolIndex] = this.askJson;
  7570. }
  7571. this.dialogVisible5 = false;
  7572. if (
  7573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7574. .toolChoose[this.toolIndex].tool != 4
  7575. ) {
  7576. this.addTools(4, this.taskCount, this.toolIndex);
  7577. }
  7578. },
  7579. addTest() {
  7580. // if (this.testJson.testTitle === "") {
  7581. // this.$message.error("标题不能为空!");
  7582. // return;
  7583. // }
  7584. var aj = this.testJson.testJson;
  7585. var b = 1;
  7586. for (var i = 0; i < aj.length; i++) {
  7587. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  7588. var a = 1;
  7589. for (let index = 0; index < aj[i].testItem; index++) {
  7590. const element = aj[i].checkList[index]
  7591. ? aj[i].checkList[index]
  7592. : "";
  7593. if (element != "") {
  7594. b++;
  7595. this.$message.error(`请将题目${i + 1}填写完整。`);
  7596. return;
  7597. } else {
  7598. a++;
  7599. }
  7600. }
  7601. if (b == 1) {
  7602. this.$message.error("至少填写一个问题");
  7603. return;
  7604. }
  7605. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  7606. for (let index = 0; index < aj[i].testItem; index++) {
  7607. const element = aj[i].checkList[index]
  7608. ? aj[i].checkList[index]
  7609. : "";
  7610. var index = 0;
  7611. for (var z = 0; z < aj[i].checkList.length; z++) {
  7612. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7613. if (checkC != "") {
  7614. index++;
  7615. } else {
  7616. this.$message.error(`题目${i + 1}选项不能为空!`);
  7617. return;
  7618. }
  7619. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7620. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7621. if (checkC == checkC2) {
  7622. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7623. return;
  7624. }
  7625. }
  7626. }
  7627. b++;
  7628. if (index < 2) {
  7629. this.$message.error("每道题目至少需要设置2个选项。");
  7630. return;
  7631. }
  7632. if (
  7633. (aj[i].type == "2" && !aj[i].answer.length) ||
  7634. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  7635. ) {
  7636. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  7637. return;
  7638. }
  7639. }
  7640. }
  7641. }
  7642. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7643. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7644. var elc = el.checkList.filter((element) => {
  7645. return element != "";
  7646. });
  7647. return (
  7648. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7649. );
  7650. });
  7651. isTestJson.testCount = isTestJson.testJson.length;
  7652. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7653. this.taskCount
  7654. ].toolChoose[this.toolIndex].testJson = isTestJson;
  7655. this.dialogVisibleChoice = false;
  7656. if (
  7657. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7658. .toolChoose[this.toolIndex].tool != 45
  7659. ) {
  7660. this.addTools(45, this.taskCount, this.toolIndex);
  7661. }
  7662. },
  7663. addVideoJson(videoJson) {
  7664. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7665. this.taskCount
  7666. ].toolChoose[this.toolIndex].videoJson = videoJson;
  7667. this.dialogVisibleVideo = false;
  7668. if (
  7669. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7670. .toolChoose[this.toolIndex].tool != 62
  7671. ) {
  7672. this.addTools(62, this.taskCount, this.toolIndex);
  7673. }
  7674. },
  7675. //自动获取剪贴板
  7676. pasteOption() {
  7677. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7678. if (!iframe) {
  7679. this.$message.error("请使用AI共创生成题目");
  7680. return;
  7681. }
  7682. let copyData = iframe.contentWindow.copyData;
  7683. if (!copyData || !copyData.selectData.length) {
  7684. this.$message.error("请使用AI共创生成题目");
  7685. return;
  7686. }
  7687. let selectData = copyData.selectData;
  7688. for (var i = 0; i < selectData.length; i++) {
  7689. let answer = 0;
  7690. switch (selectData[i].answer[0]) {
  7691. case "A":
  7692. answer = 0;
  7693. break;
  7694. case "B":
  7695. answer = 1;
  7696. break;
  7697. case "C":
  7698. answer = 2;
  7699. break;
  7700. case "D":
  7701. answer = 3;
  7702. break;
  7703. case "E":
  7704. answer = 4;
  7705. break;
  7706. default:
  7707. break;
  7708. }
  7709. this.testJson.testJson.push({
  7710. teststitle: selectData[i].subject,
  7711. testItem: selectData[i].options.length,
  7712. checkList: selectData[i].options,
  7713. timuList: [],
  7714. answer: answer,
  7715. type: "1",
  7716. });
  7717. this.testJson.testCount++;
  7718. }
  7719. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7720. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7721. var elc = el.checkList.filter((element) => {
  7722. return element != "";
  7723. });
  7724. return (
  7725. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7726. );
  7727. });
  7728. isTestJson.testCount = isTestJson.testJson.length;
  7729. this.testJson = isTestJson;
  7730. this.$forceUpdate();
  7731. },
  7732. pasteTask() {
  7733. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7734. if (!iframe) {
  7735. this.$message.error("请使用AI共创生成");
  7736. return;
  7737. }
  7738. let copyData = iframe.contentWindow.copyData;
  7739. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  7740. this.$message.error("请使用AI共创生成");
  7741. return;
  7742. }
  7743. let stageTasksData = copyData.tasksData;
  7744. let taskA = [];
  7745. let tasks = stageTasksData;
  7746. for (var j = 0; j < tasks.length; j++) {
  7747. taskA.push({
  7748. task: tasks[j].taskName,
  7749. taskDetail: tasks[j].taskDecs,
  7750. chapterData: [],
  7751. toolText: "",
  7752. toolChoose: [
  7753. {
  7754. tool: [],
  7755. toolDetail: "",
  7756. toolType: 0,
  7757. askCount: 1,
  7758. askTitle: "",
  7759. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7760. },
  7761. ],
  7762. isShowTools: false,
  7763. askCount: 1,
  7764. isFold: 0,
  7765. askTitle: "",
  7766. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7767. checkJson: [{ checkCount: [], checkPerent: [] }],
  7768. homeworkList: [],
  7769. });
  7770. }
  7771. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  7772. this.$forceUpdate();
  7773. },
  7774. pasteStage() {
  7775. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7776. if (!iframe) {
  7777. this.$message.error("请使用AI共创生成");
  7778. return;
  7779. }
  7780. let copyData = iframe.contentWindow.copyData;
  7781. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  7782. this.$message.error("请使用AI共创生成");
  7783. return;
  7784. }
  7785. let stageData = copyData.stageData;
  7786. let stage = [];
  7787. for (var i = 0; i < stageData.length; i++) {
  7788. stage.push({
  7789. dyName: stageData[i], //单元标题
  7790. chapterInfo: [
  7791. {
  7792. isread: false,
  7793. chapterid: this.guid(),
  7794. title: "",
  7795. courseName: "",
  7796. taskJson: [
  7797. {
  7798. task: "",
  7799. taskDetail: "",
  7800. chapterData: [],
  7801. toolText: "",
  7802. toolChoose: [
  7803. {
  7804. tool: [],
  7805. toolDetail: "",
  7806. toolType: 0,
  7807. askCount: 1,
  7808. askTitle: "",
  7809. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7810. },
  7811. ],
  7812. isShowTools: false,
  7813. askCount: 1,
  7814. isFold: 0,
  7815. askTitle: "",
  7816. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7817. checkJson: [{ checkCount: [], checkPerent: [] }],
  7818. homeworkList: [],
  7819. },
  7820. ],
  7821. itemCount: 1,
  7822. fileList1: [],
  7823. video: [],
  7824. testData: [],
  7825. pData: [],
  7826. templateArray: [],
  7827. },
  7828. ],
  7829. });
  7830. }
  7831. let _this = this;
  7832. _this
  7833. .$confirm("确定选择智能粘贴模板吗?修改课程时无法重置课程模板。", "提示", {
  7834. confirmButtonText: "确定",
  7835. cancelButtonText: "取消",
  7836. type: "warning",
  7837. })
  7838. .then(() => {
  7839. _this.unitIndex = 0;
  7840. _this.unitJson = stage;
  7841. _this.steps++;
  7842. _this.updateWork();
  7843. })
  7844. .catch(() => {
  7845. return;
  7846. });
  7847. },
  7848. openStageBox() {
  7849. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  7850. this.dialogVisibleStageChange = true;
  7851. },
  7852. updateChange() {
  7853. this.$confirm(
  7854. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  7855. "提示",
  7856. {
  7857. confirmButtonText: "确定",
  7858. cancelButtonText: "取消",
  7859. type: "warning",
  7860. }
  7861. )
  7862. .then(() => {
  7863. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  7864. this.updateWork()
  7865. this.dialogVisibleStageChange = false;
  7866. })
  7867. .catch(() => {
  7868. return;
  7869. });
  7870. },
  7871. addAnswer() {
  7872. if (this.answerQ == "") {
  7873. this.$message.error("请输入您想要问的问题");
  7874. return;
  7875. }
  7876. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7877. this.taskCount
  7878. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7879. this.dialogVisible8 = false;
  7880. if (
  7881. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7882. .toolChoose[this.toolIndex].tool != 15
  7883. ) {
  7884. this.addTools(15, this.taskCount, this.toolIndex);
  7885. }
  7886. },
  7887. addMp3Answer() {
  7888. if (this.answerQ == "") {
  7889. this.$message.error("请输入您想要回答的问题");
  7890. return;
  7891. }
  7892. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7893. this.taskCount
  7894. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7895. this.dialogVisibleMp3 = false;
  7896. },
  7897. addRateAnswer() {
  7898. var a = 1;
  7899. for (var i = 0; i < this.rateJson.length; i++) {
  7900. if (this.rateJson[i].value == "") {
  7901. a = 2;
  7902. break;
  7903. }
  7904. }
  7905. if (a == 2) {
  7906. this.$message.error("请把评价信息填写完整");
  7907. return;
  7908. }
  7909. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7910. this.taskCount
  7911. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7912. this.dialogVisibleRate = false;
  7913. if (
  7914. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7915. .toolChoose[this.toolIndex].tool != 40
  7916. ) {
  7917. this.addTools(40, this.taskCount, this.toolIndex);
  7918. }
  7919. },
  7920. addSelectAnswer() {
  7921. if (this.selectJson.url == "") {
  7922. this.$message.error("请上传题目");
  7923. return;
  7924. }
  7925. if (!this.selectJson.select.length) {
  7926. this.$message.error("请添加选项");
  7927. return;
  7928. }
  7929. if (!this.selectJson.answer.length) {
  7930. this.$message.error("请设置答案");
  7931. return;
  7932. }
  7933. var a = 1;
  7934. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7935. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7936. a = 2;
  7937. }
  7938. }
  7939. if (a == 2) {
  7940. this.$message.error("请设置答案");
  7941. return;
  7942. }
  7943. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7944. this.taskCount
  7945. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7946. this.dialogVisibleSelect = false;
  7947. if (
  7948. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7949. .toolChoose[this.toolIndex].tool != 41
  7950. ) {
  7951. this.addTools(41, this.taskCount, this.toolIndex);
  7952. }
  7953. },
  7954. nextSelectSteps() {
  7955. if (this.selectJson.url == "") {
  7956. this.$message.error("请上传题目");
  7957. return;
  7958. }
  7959. if (!this.selectJson.select.length) {
  7960. this.$message.error("请添加选项");
  7961. return;
  7962. } else {
  7963. for (var z = 0; z < this.selectJson.select.length; z++) {
  7964. let checkC = this.selectJson.select[z];
  7965. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  7966. let checkC2 = this.selectJson.select[z2];
  7967. if (checkC == checkC2) {
  7968. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7969. return;
  7970. }
  7971. }
  7972. }
  7973. }
  7974. var a = 1;
  7975. for (var i = 0; i < this.selectJson.select.length; i++) {
  7976. if (!this.selectJson.select[i]) {
  7977. a = 2;
  7978. }
  7979. }
  7980. if (a == 2) {
  7981. this.$message.error("添加的选项不能为空");
  7982. return;
  7983. }
  7984. this.selectSteps++;
  7985. },
  7986. selectCourseDetail() {
  7987. if (this.cid == "" || this.cid == undefined) {
  7988. console.log("这是新增课程");
  7989. this.selectAllType();
  7990. } else {
  7991. this.cidType = 1;
  7992. let params = {
  7993. cid: this.cid,
  7994. };
  7995. this.ajax
  7996. .get(this.$store.state.api + "select_course_detail", params)
  7997. .then((res) => {
  7998. this.loading = true;
  7999. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8000. for (var j = 0; j < this.unitJson.length; j++) {
  8001. for (
  8002. var k = 0;
  8003. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8004. k++
  8005. ) {
  8006. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8007. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8008. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8009. : [];
  8010. let _chapterData = [];
  8011. for (
  8012. var c = 0;
  8013. c <
  8014. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8015. .length;
  8016. c++
  8017. ) {
  8018. if (
  8019. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8020. ) {
  8021. _chapterData.push(
  8022. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8023. );
  8024. }
  8025. }
  8026. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8027. _chapterData;
  8028. }
  8029. }
  8030. this.$forceUpdate();
  8031. this.courseName = res.data[0][0].title;
  8032. this.courseText = res.data[0][0].brief;
  8033. this.evalua = res.data[0][0].evaId;
  8034. this.cover = JSON.parse(res.data[0][0].cover);
  8035. this.noneBtnImg = this.cover.length >= 1;
  8036. // this.checkboxList =
  8037. // res.data[0][0].course_student.length > 0
  8038. // ? JSON.parse(res.data[0][0].course_student)
  8039. // : [];
  8040. this.checkboxList2 = res.data[0][0].juri
  8041. ? res.data[0][0].juri.split(",")
  8042. : [];
  8043. this.inviteCode = [];
  8044. for (var i = 0; i < res.data[2].length; i++) {
  8045. this.inviteCode.push({
  8046. cid: res.data[2][i].classid,
  8047. ic: res.data[2][i].code,
  8048. });
  8049. }
  8050. this.checkboxList3 = res.data[0][0].course_teacher
  8051. ? res.data[0][0].course_teacher.split(",")
  8052. : [];
  8053. // this.isTeacherSee =
  8054. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8055. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8056. this.myWord = res.data[0][0].template;
  8057. this.templateC.id = "123";
  8058. this.courseUserid = res.data[0][0].userid;
  8059. // if(this.courseUserid == this.userid){
  8060. // this.InviteChange(this.checkboxList2)
  8061. // }
  8062. this.nbOrder = res.data[0][0].ordernumber;
  8063. this.courseTypeId = [];
  8064. for (var i = 0; i < res.data[1].length; i++) {
  8065. this.courseTypeId.push(res.data[1][i].typeid);
  8066. }
  8067. console.log(this.courseTypeId);
  8068. // if (this.timer) clearInterval(this.timer);
  8069. if (this.timer) clearTimeout(this.timer);
  8070. this.timer = null;
  8071. // this.timer = setInterval(() => {
  8072. this.seleteCourseUpdate();
  8073. this.setMan();
  8074. this.selectAllType();
  8075. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8076. // }, 5000);
  8077. this.$forceUpdate();
  8078. setTimeout(() => {
  8079. this.checkEva(this.evalua);
  8080. setTimeout(() => {
  8081. this.checkEva(this.evalua);
  8082. }, 100);
  8083. }, 100);
  8084. })
  8085. .catch((err) => {
  8086. console.error(err);
  8087. });
  8088. }
  8089. },
  8090. seleteCourseUpdate() {
  8091. let params = {
  8092. cid: this.cid,
  8093. };
  8094. this.ajax
  8095. .get(this.$store.state.api + "select_course_detail", params)
  8096. .then((res) => {
  8097. // console.log(this.unitJson);
  8098. let unitJson = JSON.parse(res.data[0][0].chapters);
  8099. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8100. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8101. let _unitJson = [];
  8102. let _chapAarry = [];
  8103. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8104. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8105. let index = 1;
  8106. let chapindex;
  8107. if (_unitJson2.length > unitJson.length) {
  8108. for (let c = 0; c < _unitJson2.length; c++) {
  8109. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8110. }
  8111. for (let j = 0; j < unitJson.length; j++) {
  8112. let count = 0;
  8113. for (let k = 0; k < _unitJson2.length; k++) {
  8114. if (
  8115. unitJson[j].chapterInfo[0].chapterid ==
  8116. _unitJson2[k].chapterInfo[0].chapterid
  8117. ) {
  8118. count++;
  8119. _chapAarry.splice(
  8120. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8121. 1
  8122. );
  8123. _unitJson.push(unitJson[j]);
  8124. break;
  8125. }
  8126. }
  8127. // if(count === 0){
  8128. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8129. // }
  8130. }
  8131. for (let k = 0; k < _unitJson2.length; k++) {
  8132. if (_unitJson2[k].isUpdate == 1) {
  8133. _chapAarry.splice(
  8134. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8135. 1
  8136. );
  8137. _unitJson.push(_unitJson2[k]);
  8138. }
  8139. }
  8140. console.log(_chapAarry);
  8141. for (let d = 0; d < _unitJson2.length; d++) {
  8142. if (
  8143. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8144. ) {
  8145. if (_unitIndex == d) {
  8146. index = 2;
  8147. }
  8148. chapindex = d;
  8149. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8150. }
  8151. }
  8152. } else {
  8153. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8154. }
  8155. for (let i = 0; i < unitJson.length; i++) {
  8156. if (
  8157. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8158. _unitJson[i].chapterInfo[0].chapterid !=
  8159. unitJson[i].chapterInfo[0].chapterid
  8160. ) {
  8161. if (i == _unitJson.length - 1) {
  8162. // this.unitIndex++
  8163. _unitIndex2++;
  8164. }
  8165. _unitJson.splice(i, 0, unitJson[i]);
  8166. } else if (i > _unitJson.length - 1) {
  8167. _unitJson.push(unitJson[i]);
  8168. } else if (
  8169. _unitJson[i].chapterInfo[0].chapterid ==
  8170. unitJson[i].chapterInfo[0].chapterid
  8171. ) {
  8172. _unitJson[i] = unitJson[i];
  8173. }
  8174. // if (i == _unitIndex) {
  8175. // continue;
  8176. // } else
  8177. }
  8178. if (_chapAarry.length && index != 2) {
  8179. if (chapindex < _unitIndex) {
  8180. this.isDelete = 2;
  8181. // this.unitIndex--;
  8182. _unitIndex2--;
  8183. } else if (
  8184. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8185. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8186. ) {
  8187. this.isDelete = 2;
  8188. for (let n = 0; n < _unitJson.length; n++) {
  8189. if (
  8190. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8191. _unitJson[n].chapterInfo[0].chapterid
  8192. ) {
  8193. // this.unitIndex = n;
  8194. _unitIndex2 = n;
  8195. _unitJson[n] = _unitJson2[_unitIndex];
  8196. break;
  8197. }
  8198. }
  8199. }
  8200. } else if (index != 2) {
  8201. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8202. _unitJson2[_unitIndex];
  8203. for (
  8204. var ci = 0;
  8205. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8206. ci++
  8207. ) {
  8208. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8209. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8210. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8211. .toolChoose
  8212. : [];
  8213. let _chapterData = [];
  8214. for (
  8215. var c = 0;
  8216. c <
  8217. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8218. .length;
  8219. c++
  8220. ) {
  8221. if (
  8222. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8223. .chapterData[c]
  8224. ) {
  8225. _chapterData.push(
  8226. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8227. .chapterData[c]
  8228. );
  8229. }
  8230. }
  8231. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8232. _chapterData;
  8233. }
  8234. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8235. }
  8236. if (index == 1) {
  8237. this.unitJson = _unitJson;
  8238. this.$forceUpdate();
  8239. setTimeout(() => {
  8240. if (this.unitIndex != _unitIndex2) {
  8241. this.isDelete = 2;
  8242. this.unitIndex = _unitIndex2;
  8243. }
  8244. }, 0);
  8245. this.timer = setTimeout(() => {
  8246. this.seleteCourseUpdate();
  8247. }, 1000);
  8248. } else if (index == 2) {
  8249. let _this = this;
  8250. _this
  8251. .$confirm(
  8252. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8253. "提示",
  8254. {
  8255. confirmButtonText: "需要",
  8256. cancelButtonText: "取消",
  8257. type: "warning",
  8258. }
  8259. )
  8260. .then(() => {
  8261. if (_this.time()) {
  8262. _this.restoreWork(
  8263. _chapAarry[0],
  8264. _unitJson,
  8265. chapindex,
  8266. _unitJson2,
  8267. _unitIndex2
  8268. );
  8269. }
  8270. })
  8271. .catch(() => {
  8272. _this.unitJson = _unitJson;
  8273. _this.$forceUpdate();
  8274. setTimeout(() => {
  8275. if (this.unitIndex != _unitIndex2) {
  8276. this.isDelete = 2;
  8277. this.unitIndex = _unitIndex2;
  8278. }
  8279. }, 0);
  8280. _this.timer = setTimeout(() => {
  8281. _this.seleteCourseUpdate();
  8282. }, 1000);
  8283. });
  8284. }
  8285. })
  8286. .catch((err) => {
  8287. console.error(err);
  8288. });
  8289. },
  8290. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8291. let params = [
  8292. {
  8293. cid: this.cid,
  8294. chapters: JSON.stringify(this.unitJson),
  8295. uid: this.userid,
  8296. chapid: chapid,
  8297. },
  8298. ];
  8299. this.ajax
  8300. .post(this.$store.state.api + "restoreWork", params)
  8301. .then((res) => {
  8302. this.$message({
  8303. message: "恢复成功",
  8304. type: "success",
  8305. });
  8306. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8307. this.unitJson = unitJson;
  8308. this.$forceUpdate();
  8309. setTimeout(() => {
  8310. if (this.unitIndex != unitIndex2) {
  8311. this.isDelete = 2;
  8312. this.unitIndex = unitIndex2;
  8313. }
  8314. }, 0);
  8315. this.timer = setTimeout(() => {
  8316. this.seleteCourseUpdate();
  8317. }, 1000);
  8318. })
  8319. .catch((err) => {
  8320. this.$message.error("网络不佳");
  8321. console.error(err);
  8322. });
  8323. },
  8324. getTypeName() {
  8325. console.log(this.courseTypeId);
  8326. this.$forceUpdate();
  8327. },
  8328. selectAllType() {
  8329. let params = {
  8330. org: this.org && this.org != "" ? this.org : "",
  8331. oid: this.oid && this.oid != "" ? this.oid : "",
  8332. };
  8333. this.ajax
  8334. .get(this.$store.state.api + "selectAllType", params)
  8335. .then((res) => {
  8336. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8337. res.data[0] = [...res.data[0], ...res.data[4]]
  8338. }
  8339. this.CourseType = res.data;
  8340. this.CourseType2 = [
  8341. { name: "智见课程", id: [] },
  8342. { name: "智行课程", id: [] },
  8343. { name: "智创课程", id: [] },
  8344. ];
  8345. for (var cti = 0; cti < res.data[0].length; cti++) {
  8346. if (
  8347. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  8348. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  8349. ) {
  8350. this.CourseType2[0].id.push(res.data[0][cti].id);
  8351. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  8352. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8353. this.CourseType2[1].id.push(res.data[0][cti].id);
  8354. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8355. this.CourseType2[2].id.push(res.data[0][cti].id);
  8356. }
  8357. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  8358. res.data[0][cti].name = "年级";
  8359. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8360. res.data[0][cti].name = "学科";
  8361. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8362. res.data[0][cti].name = "主题";
  8363. }
  8364. }
  8365. let _courseTypeId = [];
  8366. for (var i = 0; i < res.data[0].length; i++) {
  8367. if (!this.cid) {
  8368. this.courseTypeId[res.data[0][i].id] = [];
  8369. }
  8370. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8371. // }
  8372. this.CourseTypeJson[res.data[0][i].id] = [];
  8373. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8374. if (res.data[0][i].name == "栏目") {
  8375. this.CourseType[0][i].name = "主题";
  8376. }
  8377. }
  8378. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8379. for (var j = 0; j < res.data[1].length; j++) {
  8380. if (
  8381. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8382. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8383. ) {
  8384. _courseTypeId.push(res.data[1][j].id);
  8385. }
  8386. if (res.data[0][i].id == res.data[1][j].pid) {
  8387. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8388. }
  8389. }
  8390. } else {
  8391. if (res.data[2].length > 0) {
  8392. for (var j = 0; j < res.data[2].length; j++) {
  8393. if (
  8394. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8395. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8396. ) {
  8397. _courseTypeId.push(res.data[2][j].id);
  8398. }
  8399. if (res.data[0][i].id == res.data[2][j].pid) {
  8400. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8401. }
  8402. }
  8403. }
  8404. if (res.data[3].length > 0) {
  8405. for (var j = 0; j < res.data[3].length; j++) {
  8406. if (
  8407. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8408. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8409. ) {
  8410. _courseTypeId.push(res.data[3][j].id);
  8411. }
  8412. if (res.data[0][i].id == res.data[3][j].pid) {
  8413. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8414. }
  8415. }
  8416. }
  8417. }
  8418. }
  8419. this.courseTypeId = _courseTypeId;
  8420. })
  8421. .catch((err) => {
  8422. console.error(err);
  8423. });
  8424. },
  8425. selectType() {
  8426. this.ajax
  8427. .get(this.$store.state.api + "selectType")
  8428. .then((res) => {
  8429. this.CourseType = res.data;
  8430. for (var i = 0; i < res.data[0].length; i++) {
  8431. if (!this.cid) {
  8432. this.courseTypeId[res.data[0][i].id] = "";
  8433. }
  8434. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8435. if (res.data[0][i].name == "栏目") {
  8436. this.CourseType[0][i].name = "主题";
  8437. }
  8438. }
  8439. for (var j = 0; j < res.data[1].length; j++) {
  8440. if (res.data[0][i].id == res.data[1][j].pid) {
  8441. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8442. this.CourseTypeJson[res.data[0][i].id] = [];
  8443. }
  8444. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8445. }
  8446. }
  8447. }
  8448. this.selectTypeByOid();
  8449. this.selectTypeByOrg();
  8450. })
  8451. .catch((err) => {
  8452. console.error(err);
  8453. });
  8454. },
  8455. selectTypeByOid() {
  8456. let params = {
  8457. oid: this.oid,
  8458. };
  8459. this.ajax
  8460. .get(this.$store.state.api + "selectTypeByOid", params)
  8461. .then((res) => {
  8462. for (var i = 0; i < res.data[0].length; i++) {
  8463. for (var j = 0; j < res.data[1].length; j++) {
  8464. if (res.data[0][i].id == res.data[1][j].pid) {
  8465. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8466. this.CourseTypeJson[res.data[0][i].id] = [];
  8467. }
  8468. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8469. }
  8470. }
  8471. }
  8472. })
  8473. .catch((err) => {
  8474. console.error(err);
  8475. });
  8476. },
  8477. selectTypeByOrg() {
  8478. let params = {
  8479. oid: this.org,
  8480. };
  8481. this.ajax
  8482. .get(this.$store.state.api + "selectTypeByOrg", params)
  8483. .then((res) => {
  8484. for (var i = 0; i < res.data[0].length; i++) {
  8485. for (var j = 0; j < res.data[1].length; j++) {
  8486. if (res.data[0][i].id == res.data[1][j].pid) {
  8487. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8488. this.CourseTypeJson[res.data[0][i].id] = [];
  8489. }
  8490. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8491. }
  8492. }
  8493. }
  8494. this.$forceUpdate();
  8495. })
  8496. .catch((err) => {
  8497. console.error(err);
  8498. });
  8499. },
  8500. OtherMb(type, task) {
  8501. if(task === 0 || task){
  8502. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[task].isEvaFold = true;
  8503. }
  8504. this.typeMode = type;
  8505. setTimeout(() => {
  8506. this.checkEva(this.checkId);
  8507. setTimeout(() => {
  8508. this.checkEva(this.checkId);
  8509. }, 100);
  8510. }, 100);
  8511. },
  8512. openMember() {
  8513. this.searchTN = "";
  8514. this.getTeacher();
  8515. this.dialogVisibleMember = true;
  8516. },
  8517. checkEva(id, type) {
  8518. this.dialogVisiblemb = false;
  8519. this.selectEva();
  8520. if (this.evalua != id && type == 2) {
  8521. this.$message.success("导入成功");
  8522. setTimeout(() => {
  8523. this.checkEva(id)
  8524. }, 100);
  8525. }
  8526. this.evalua = id;
  8527. this.checkId = id;
  8528. if (this.evalua != "") {
  8529. for (var i = 0; i < this.evaJuri.length; i++) {
  8530. if (this.evalua == this.evaJuri[i].id) {
  8531. this.eTitle = this.evaJuri[i].title;
  8532. this.eJson = JSON.parse(this.evaJuri[i].content);
  8533. }
  8534. }
  8535. this.data.data = [];
  8536. this.$forceUpdate();
  8537. setTimeout(() => {
  8538. this.setMindData();
  8539. }, 1000);
  8540. }
  8541. },
  8542. deleteEva() {
  8543. let _this = this;
  8544. if (_this.evalua == "") {
  8545. this.$message.warning("内容已经清空了,请勿重复清空");
  8546. return;
  8547. }
  8548. _this
  8549. .$confirm("确定删除此目标吗?", "提示", {
  8550. confirmButtonText: "确定",
  8551. cancelButtonText: "取消",
  8552. type: "warning",
  8553. })
  8554. .then(() => {
  8555. _this.evalua = "";
  8556. _this.checkId = "";
  8557. _this.eTitle = "";
  8558. let _unitJson = _this.unitJson;
  8559. for (var i = 0; i < _unitJson.length; i++) {
  8560. let _task = _unitJson[i].chapterInfo[0].taskJson;
  8561. for (var j = 0; j < _task.length; j++) {
  8562. let _eList = _task[j].eList;
  8563. for (var k = 0; k < _eList.length; k++) {
  8564. delete _eList[k].target;
  8565. }
  8566. }
  8567. }
  8568. _this.$forceUpdate();
  8569. if (_this.cid) {
  8570. _this.updateWork();
  8571. }
  8572. })
  8573. .catch(() => {
  8574. return;
  8575. });
  8576. },
  8577. selectEva() {
  8578. let params = {
  8579. oid: this.oid,
  8580. };
  8581. this.ajax
  8582. .get(this.$store.state.api + "selectAllEvaluation", params)
  8583. .then((res) => {
  8584. this.evaJuri = res.data[0];
  8585. })
  8586. .catch((err) => {
  8587. console.error(err);
  8588. });
  8589. },
  8590. setMindData() {
  8591. let targetArray = [];
  8592. this.data.data = [];
  8593. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8594. let _eJson = Object.keys(this.eJson);
  8595. let _e = this.eJson;
  8596. for (let i = 0; i < _eJson.length; i++) {
  8597. let element = _e[_eJson[i]];
  8598. this.data.data.push({
  8599. id: element.id,
  8600. parentid: "root",
  8601. topic: element.name,
  8602. });
  8603. // targetArray.push({
  8604. // id: element.id,
  8605. // parentid: "root",
  8606. // name: element.name,
  8607. // });
  8608. targetArray.push({
  8609. value: element.name,
  8610. label: element.name,
  8611. children: [],
  8612. });
  8613. let _eJsonc = Object.keys(element.child);
  8614. let _e2 = element.child;
  8615. for (let j = 0; j < _eJsonc.length; j++) {
  8616. let _ec = _e2[_eJsonc[j]];
  8617. this.data.data.push({
  8618. id: _ec.id,
  8619. parentid: element.id,
  8620. topic: _ec.name,
  8621. });
  8622. // targetArray.push({
  8623. // id: _ec.id,
  8624. // parentid: element.id,
  8625. // name: _ec.name,
  8626. // });
  8627. targetArray[i].children.push({
  8628. value: _ec.name,
  8629. label: _ec.name,
  8630. children: [],
  8631. });
  8632. let _eJsonz = Object.keys(_ec.child);
  8633. let _e3 = _ec.child;
  8634. for (let z = 0; z < _eJsonz.length; z++) {
  8635. let _ez = _e3[_eJsonz[z]];
  8636. this.data.data.push({
  8637. id: _ez.id,
  8638. parentid: _ec.id,
  8639. topic: _ez.name,
  8640. });
  8641. // targetArray.push({
  8642. // id: _ez.id,
  8643. // parentid: _ec.id,
  8644. // name: _ez.name,
  8645. // });
  8646. targetArray[i].children[j].children.push({
  8647. value: _ez.name,
  8648. label: _ez.name,
  8649. });
  8650. }
  8651. }
  8652. }
  8653. this.targetArray = targetArray;
  8654. this.$forceUpdate();
  8655. },
  8656. /*添加评价 */
  8657. addEList(index, tIndex) {
  8658. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8659. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8660. value: "",
  8661. detail: "",
  8662. score: 5,
  8663. })
  8664. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8665. { value: "", detail: "", score: 5 },
  8666. ]);
  8667. this.$forceUpdate();
  8668. },
  8669. forceUpdate() {
  8670. this.$forceUpdate();
  8671. },
  8672. deletEList(index, tIndex, eIndex) {
  8673. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8674. eIndex,
  8675. 1
  8676. );
  8677. this.$forceUpdate();
  8678. },
  8679. getChoosePic(t) {
  8680. this.chooseType = t;
  8681. this.getAllBanner();
  8682. },
  8683. getAllBanner() {
  8684. this.sysPicVisible = true;
  8685. let params = {
  8686. t: this.chooseType,
  8687. };
  8688. this.ajax
  8689. .get(this.$store.state.api + "selectAllBanner", params)
  8690. .then((res) => {
  8691. this.sysPic = res.data[0];
  8692. })
  8693. .catch((err) => {
  8694. console.error(err);
  8695. });
  8696. },
  8697. // getClass() {
  8698. // let params = {
  8699. // oid: this.oid,
  8700. // };
  8701. // this.ajax
  8702. // .get(this.$store.state.api + "selectClassBySchool", params)
  8703. // .then((res) => {
  8704. // this.classJuri = res.data[0];
  8705. // })
  8706. // .catch((err) => {
  8707. // console.error(err);
  8708. // });
  8709. // },
  8710. deleteSysPic() {
  8711. this.cover = [];
  8712. this.isSysPic = false;
  8713. this.isSysPic2 = false;
  8714. },
  8715. deleteSelectPic() {
  8716. this.selectJson.url = "";
  8717. },
  8718. setEListStar() {
  8719. this.$forceUpdate();
  8720. },
  8721. deletRateList(i) {
  8722. this.rateJson.splice(i, 1);
  8723. },
  8724. addRateList() {
  8725. this.rateJson.push({ detail: "", score: 5, value: "" });
  8726. },
  8727. addSt() {
  8728. this.sentenceList.push({
  8729. sentenceTitle: "",
  8730. addSentence: [],
  8731. rightAnswer: [],
  8732. });
  8733. },
  8734. addSen(i) {
  8735. if (!this.sentenceList[i].sentenceTitle) {
  8736. this.$message.error("请填写卡片内容!");
  8737. return;
  8738. }
  8739. if (this.sentenceList[i].sentenceTitle.length > 10) {
  8740. this.$message.error("卡片内容字数不能超过10位");
  8741. return;
  8742. }
  8743. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  8744. this.$message.error("不能添加重复的卡片内容!");
  8745. return;
  8746. }
  8747. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8748. // this.isPushTitleList.push(this.sentenceTitle);
  8749. this.sentenceList[i].sentenceTitle = "";
  8750. },
  8751. setRightAnswer(s, i, j) {
  8752. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8753. this.sentenceList[i].rightAnswer.push(s);
  8754. }
  8755. },
  8756. returnCard(r, i, j) {
  8757. this.sentenceList[i].rightAnswer.splice(j, 1);
  8758. },
  8759. addSentenceTool() {
  8760. for (var i = 0; i < this.sentenceList.length; i++) {
  8761. if (this.sentenceList[i].rightAnswer.length == 0) {
  8762. this.$message.error(`请将题目${i + 1}设置完整。`);
  8763. return;
  8764. }
  8765. if (
  8766. this.sentenceList[i].addSentence.length !=
  8767. this.sentenceList[i].rightAnswer.length
  8768. ) {
  8769. this.$message.error(`请将题目${i + 1}设置完整。`);
  8770. return;
  8771. }
  8772. }
  8773. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8774. this.taskCount
  8775. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8776. this.sentenceList = [
  8777. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8778. ];
  8779. this.dialogVisibleSentence = false;
  8780. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8781. // itemTaskIndex
  8782. // ].toolChoose[toolIndex].tool = [];
  8783. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8784. // itemTaskIndex
  8785. // ].toolChoose[toolIndex].tool.push(i);
  8786. if (
  8787. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8788. .toolChoose[this.toolIndex].tool != 47
  8789. ) {
  8790. this.addTools(47, this.taskCount, this.toolIndex);
  8791. }
  8792. },
  8793. addTableJson() {
  8794. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8795. // this.$message.error("请将信息填写完整!");
  8796. // return;
  8797. // }
  8798. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8799. this.taskCount
  8800. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  8801. // this.tableJson = [{ text: "" }];
  8802. // this.dialogVisibleTable = false;
  8803. this.$message.success("上传成功");
  8804. if (
  8805. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8806. .toolChoose[this.toolIndex].tool != 48
  8807. ) {
  8808. this.addTools(48, this.taskCount, this.toolIndex);
  8809. }
  8810. },
  8811. addWordJson() {
  8812. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8813. this.taskCount
  8814. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  8815. // this.wordJson = [{ text: "" }];
  8816. // this.dialogVisibleWord = false;
  8817. this.$message.success("上传成功");
  8818. if (
  8819. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8820. .toolChoose[this.toolIndex].tool != 52
  8821. ) {
  8822. this.addTools(52, this.taskCount, this.toolIndex);
  8823. }
  8824. },
  8825. addMoreUpload() {
  8826. if (this.uploadJson.length == 0) {
  8827. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8828. this.taskCount
  8829. ].toolChoose[this.toolIndex].uploadJson = [];
  8830. } else {
  8831. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8832. this.taskCount
  8833. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  8834. }
  8835. this.uploadJson = [];
  8836. this.dialogVisibleMoreUpload = false;
  8837. if (
  8838. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8839. .toolChoose[this.toolIndex].tool != 50
  8840. ) {
  8841. this.addTools(50, this.taskCount, this.toolIndex);
  8842. }
  8843. },
  8844. addPreTime() {
  8845. if (this.preTime == 0) {
  8846. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8847. this.taskCount
  8848. ].toolChoose[this.toolIndex].preTime = 0;
  8849. } else {
  8850. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8851. this.taskCount
  8852. ].toolChoose[this.toolIndex].preTime = this.preTime;
  8853. }
  8854. this.preTime = 0;
  8855. this.dialogVisiblePreTime = false;
  8856. if (
  8857. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8858. .toolChoose[this.toolIndex].tool != 10
  8859. ) {
  8860. this.addTools(10, this.taskCount, this.toolIndex);
  8861. }
  8862. },
  8863. goToTask(i) {
  8864. this.toolIndexType = ''
  8865. if (this.isClickColor == (i + 1)) {
  8866. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  8867. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  8868. } else {
  8869. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8870. }
  8871. this.$forceUpdate();
  8872. return;
  8873. }
  8874. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  8875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  8876. } else {
  8877. document.querySelectorAll(".basic_box")[0].scrollTop =
  8878. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  8879. this.isClickColor = i + 1;
  8880. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8881. }
  8882. this.$forceUpdate();
  8883. },
  8884. taskMove(type, index) {
  8885. this.$confirm(
  8886. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8887. "提示",
  8888. {
  8889. confirmButtonText: "确定",
  8890. cancelButtonText: "取消",
  8891. type: "warning",
  8892. }
  8893. )
  8894. .then(() => {
  8895. if (type == 1) {
  8896. if (index > 0) {
  8897. let a = JSON.parse(
  8898. JSON.stringify(
  8899. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8900. index - 1
  8901. ]
  8902. )
  8903. );
  8904. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8905. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8906. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8907. }
  8908. } else {
  8909. if (
  8910. index <
  8911. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8912. ) {
  8913. let a = JSON.parse(
  8914. JSON.stringify(
  8915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8916. index + 1
  8917. ]
  8918. )
  8919. );
  8920. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8921. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8922. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8923. }
  8924. }
  8925. this.$forceUpdate();
  8926. })
  8927. .catch(() => {
  8928. return;
  8929. });
  8930. },
  8931. stageMove(type, index) {
  8932. if (type == 1) {
  8933. if (index > 0) {
  8934. let a = JSON.parse(
  8935. JSON.stringify(
  8936. this.unitJson3[index - 1]
  8937. )
  8938. );
  8939. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  8940. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  8941. this.unitJson3[index - 1] = this.unitJson3[index];
  8942. this.unitJson3[index] = a;
  8943. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  8944. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  8945. }
  8946. } else {
  8947. if (
  8948. index <
  8949. this.unitJson3.length - 1
  8950. ) {
  8951. let a = JSON.parse(
  8952. JSON.stringify(
  8953. this.unitJson3[
  8954. index + 1
  8955. ]
  8956. )
  8957. );
  8958. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  8959. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  8960. this.unitJson3[index + 1] =
  8961. this.unitJson3[index];
  8962. this.unitJson3[index] = a;
  8963. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  8964. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  8965. }
  8966. }
  8967. this.$forceUpdate();
  8968. },
  8969. addGroup(i) {
  8970. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8971. this.groupJson.group.push({
  8972. name: "第" + (this.groupJson.group.length + 1) + "组",
  8973. });
  8974. },
  8975. deleteGroup(i) {
  8976. this.groupJson.group.splice(i, 1);
  8977. },
  8978. numberPan() {
  8979. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  8980. this.$message.error('请输入2-10的数字')
  8981. this.groupJson.number = ''
  8982. }
  8983. },
  8984. addGroupJson() {
  8985. for (var i = 0; i < this.groupJson.group.length; i++) {
  8986. if (!this.groupJson.group[i].name) {
  8987. this.$message.error("请将信息填写完整!");
  8988. return;
  8989. }
  8990. }
  8991. if (!this.groupJson.number) {
  8992. this.$message.error("请将信息填写完整!");
  8993. return;
  8994. }
  8995. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8996. this.taskCount
  8997. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8998. JSON.stringify(this.groupJson)
  8999. );
  9000. this.dialogVisibleGroup = false;
  9001. this.groupJson = {};
  9002. if (
  9003. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9004. .toolChoose[this.toolIndex].tool != 49
  9005. ) {
  9006. this.addTools(49, this.taskCount, this.toolIndex);
  9007. }
  9008. },
  9009. updateTime(preTime) {
  9010. this.preTime = preTime;
  9011. },
  9012. InviteChange(val) {
  9013. console.log(val);
  9014. let _check = []
  9015. let _check2 = []
  9016. for (var i = 0; i < this.grade2.length; i++) {
  9017. var gid = this.grade2[i].id
  9018. _check.push(gid)
  9019. }
  9020. for (var i = 0; i < this.checkboxList2.length; i++) {
  9021. var _id = this.checkboxList2[i]
  9022. if (_check.indexOf(_id) !== -1) {
  9023. _check2.push(_id)
  9024. }
  9025. }
  9026. this.checkAll = _check2.length === _check.length;
  9027. return;
  9028. let array = JSON.parse(JSON.stringify(val));
  9029. this.inviteCode = this.inviteCode.filter((el) => {
  9030. if (val.indexOf(el.cid) != -1) {
  9031. array.splice(array.indexOf(el.cid), 1);
  9032. return el;
  9033. }
  9034. });
  9035. for (var i = 0; i < array.length; i++) {
  9036. this.getInviteCode(array[i]);
  9037. }
  9038. },
  9039. handleCheckAllChange(val) {
  9040. if (val) {
  9041. for (var i = 0; i < this.grade2.length; i++) {
  9042. var gid = this.grade2[i].id
  9043. if (this.checkboxList2.indexOf(gid) === -1) {
  9044. this.checkboxList2.push(gid)
  9045. }
  9046. }
  9047. } else {
  9048. let _check = []
  9049. let _check2 = []
  9050. for (var i = 0; i < this.grade2.length; i++) {
  9051. var gid = this.grade2[i].id
  9052. _check.push(gid)
  9053. }
  9054. for (var i = 0; i < this.checkboxList2.length; i++) {
  9055. var _id = this.checkboxList2[i]
  9056. if (_check.indexOf(_id) === -1) {
  9057. _check2.push(_id)
  9058. }
  9059. }
  9060. this.checkboxList2 = _check2
  9061. }
  9062. this.isIndeterminate = false;
  9063. },
  9064. async getInviteCode(cid) {
  9065. let code = this.randomNumber();
  9066. let params = {
  9067. code: code,
  9068. oid: this.oid,
  9069. };
  9070. let type = 1;
  9071. for (var i = 0; i < this.inviteCode.length; i++) {
  9072. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9073. type = 2;
  9074. }
  9075. }
  9076. if (type == 2) {
  9077. this.getInviteCode(cid);
  9078. return;
  9079. }
  9080. const res = await this.ajax.get(
  9081. this.$store.state.api + "selectInviteCode2",
  9082. params
  9083. );
  9084. if (
  9085. res.data.length &&
  9086. res.data[0].length &&
  9087. res.data[0][0].courseId != this.cid
  9088. ) {
  9089. this.getInviteCode(cid);
  9090. return;
  9091. }
  9092. let array = [];
  9093. for (var i = 0; i < this.inviteCode.length; i++) {
  9094. array.push(this.inviteCode[i].cid);
  9095. }
  9096. if (array.indexOf(cid) != -1) {
  9097. this.inviteCode[array.indexOf(cid)].ic = code;
  9098. } else {
  9099. this.inviteCode.push({ cid: cid, ic: code });
  9100. }
  9101. },
  9102. OpenInviteD(cid) {
  9103. let array = [];
  9104. this.icode = "";
  9105. for (var i = 0; i < this.inviteCode.length; i++) {
  9106. array.push(this.inviteCode[i].cid);
  9107. }
  9108. if (array.indexOf(cid) != -1) {
  9109. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9110. }
  9111. this.inviteId = cid;
  9112. this.dialogVisibleInvite = true;
  9113. },
  9114. addInvite() {
  9115. let reg = /^[A-Za-z0-9]{4,}$/;
  9116. if (!reg.test(this.icode)) {
  9117. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9118. return;
  9119. }
  9120. let type = 1;
  9121. for (var i = 0; i < this.inviteCode.length; i++) {
  9122. if (
  9123. this.inviteCode[i].cid != this.inviteId &&
  9124. this.icode == this.inviteCode[i].ic
  9125. ) {
  9126. type = 2;
  9127. }
  9128. }
  9129. if (type == 2) {
  9130. this.$message.error("已有此随机码,不能重复");
  9131. return;
  9132. }
  9133. let params = {
  9134. code: this.icode,
  9135. oid: this.oid,
  9136. };
  9137. this.ajax
  9138. .get(this.$store.state.api + "selectInviteCode", params)
  9139. .then((res) => {
  9140. if (
  9141. res.data.length &&
  9142. res.data[0].length &&
  9143. res.data[0][0].courseId != this.cid
  9144. ) {
  9145. this.$message.error("已有此随机码,不能重复");
  9146. return;
  9147. }
  9148. let array = [];
  9149. for (var i = 0; i < this.inviteCode.length; i++) {
  9150. array.push(this.inviteCode[i].cid);
  9151. }
  9152. if (array.indexOf(this.inviteId) != -1) {
  9153. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9154. } else {
  9155. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9156. }
  9157. this.icode = "";
  9158. this.dialogVisibleInvite = false;
  9159. })
  9160. .catch((err) => {
  9161. console.error(err);
  9162. });
  9163. },
  9164. randomNumber() {
  9165. // 随机生成两位数
  9166. // let num = Math.floor(Math.random() * 900) + 100;
  9167. // 生成 0 到 99 之间的随机整数
  9168. const randomNumber = Math.floor(Math.random() * 100);
  9169. // 如果随机数小于 10,补上前导零
  9170. const num =
  9171. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9172. // 随机生成两个大写字母
  9173. let letters = "";
  9174. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9175. for (let i = 0; i < 3; i++) {
  9176. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9177. }
  9178. // 随机生成两位数字和字母的组合
  9179. let mix = "";
  9180. let chars =
  9181. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9182. for (let i = 0; i < 3; i++) {
  9183. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9184. mix += char;
  9185. }
  9186. // 随机选择一种类型
  9187. let type = Math.floor(Math.random() * 3);
  9188. return num;
  9189. // 根据类型输出结果
  9190. switch (type) {
  9191. case 0:
  9192. console.log(num); // 输出两位数
  9193. return num;
  9194. case 1:
  9195. console.log(letters); // 输出两个大写字母
  9196. return letters;
  9197. case 2:
  9198. console.log(mix); // 输出两位数字和字母的组合
  9199. return mix;
  9200. }
  9201. },
  9202. getPaste() {
  9203. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9204. if (!iframe) {
  9205. return;
  9206. }
  9207. let copyData = iframe.contentWindow.copyData;
  9208. if (copyData && copyData.stageData && copyData.stageData.length) {
  9209. this.isPasteStage = true
  9210. }
  9211. if (copyData && copyData.selectData.length) {
  9212. this.isPasteChoice = true
  9213. }
  9214. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9215. this.isPasteTask = true
  9216. }
  9217. },
  9218. searchImage() {
  9219. var _this = this;
  9220. _this.imageList = []
  9221. if (!_this.searchImageValue) {
  9222. _this.sysPicVisible2 = true
  9223. return
  9224. }
  9225. _this.imageloading = true
  9226. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9227. page: _this.ppage,
  9228. pagesize: 9,
  9229. query: _this.searchImageValue
  9230. }).then(function (response) {
  9231. // console.log(response.data.data);
  9232. var data = response.data.FunctionResponse.result;
  9233. for (var i = 0; i < data.length; i++) {
  9234. _this.imageList.push({ url: data[i].thumbnail })
  9235. }
  9236. _this.imageloading = false
  9237. }).catch(function (error) {
  9238. console.log(error);
  9239. });
  9240. _this.sysPicVisible2 = true
  9241. },
  9242. changePicture() {
  9243. this.ppage++
  9244. this.searchImage()
  9245. },
  9246. resetImage() {
  9247. this.ppage = 1
  9248. this.searchImage()
  9249. },
  9250. jumpGj(i, j) {
  9251. if ((i + 1) != this.isClickColor) {
  9252. this.isClickColor = (i + 1)
  9253. }
  9254. var a = document.scrollingElement;
  9255. this.toolIndexType = `gj${i}${j}`
  9256. let target = document.querySelector(`#gj${i}${j}`);
  9257. if (target) {
  9258. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9259. setTimeout(() => {
  9260. target.scrollIntoView(true);
  9261. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  9262. setTimeout(() => {
  9263. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  9264. }, 0);
  9265. }, 0);
  9266. }
  9267. },
  9268. dragStart(val, i, j) {
  9269. console.log(this.taskCount);
  9270. this.taskCount = j
  9271. this.oldIndex = i;
  9272. this.oldData = val;
  9273. },
  9274. dragOver(i, j) {
  9275. this.typeIndex = "chapter-" + j + '-' + i
  9276. this.newIndex = i;
  9277. },
  9278. dragEnd() {
  9279. console.log(this.taskCount);
  9280. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9281. // 删除老的节点
  9282. newItems.splice(this.oldIndex, 1);
  9283. // 在列表中目标位置增加新的节点
  9284. newItems.splice(this.newIndex, 0, this.oldData);
  9285. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9286. this.typeIndex = "";
  9287. this.newIndex = "";
  9288. this.$forceUpdate()
  9289. },
  9290. dragTaskStart(val, i) {
  9291. this.oldIndex = i;
  9292. this.oldData = val;
  9293. },
  9294. dragTaskOver(i) {
  9295. this.typeIndex = "task-" + i
  9296. this.newIndex = i;
  9297. },
  9298. dragTaskEnd() {
  9299. if(this.newIndex == this.oldIndex){
  9300. this.newIndex = "";
  9301. this.typeIndex = "";
  9302. return;
  9303. }
  9304. this.$confirm(
  9305. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9306. "提示",
  9307. {
  9308. confirmButtonText: "确定",
  9309. cancelButtonText: "取消",
  9310. type: "warning",
  9311. }
  9312. )
  9313. .then(() => {
  9314. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9315. // 删除老的节点
  9316. newItems.splice(this.oldIndex, 1);
  9317. // 在列表中目标位置增加新的节点
  9318. newItems.splice(this.newIndex, 0, this.oldData);
  9319. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  9320. this.typeIndex = "";
  9321. this.newIndex = "";
  9322. this.$forceUpdate()
  9323. })
  9324. .catch(() => {
  9325. this.newIndex = "";
  9326. this.typeIndex = "";
  9327. return;
  9328. });
  9329. },
  9330. },
  9331. beforeDestroy() {
  9332. clearTimeout(this.timer);
  9333. this.timer = null;
  9334. clearInterval(this.timer2);
  9335. this.timer2 = null;
  9336. clearInterval(this.pasteTimer);
  9337. this.pasteTimer = null;
  9338. },
  9339. beforeRouteLeave(to, from, next) {
  9340. clearTimeout(this.timer);
  9341. this.timer = null;
  9342. clearInterval(this.timer2);
  9343. this.timer2 = null;
  9344. clearInterval(this.pasteTimer);
  9345. this.pasteTimer = null;
  9346. next();
  9347. },
  9348. created() {
  9349. this.getStudent();
  9350. this.getTeacher();
  9351. this.getClass();
  9352. this.selectGrage();
  9353. this.getTemplate();
  9354. // this.selectType();
  9355. this.selectEva();
  9356. this.loading = false;
  9357. this.timer2 = setInterval(() => {
  9358. this.selectEva();
  9359. }, 5000);
  9360. this.pasteTimer = setInterval(() => {
  9361. this.getPaste();
  9362. }, 1000);
  9363. setTimeout(() => {
  9364. this.selectCourseDetail();
  9365. }, 500);
  9366. },
  9367. };
  9368. </script>
  9369. <style scoped>
  9370. @media screen and (max-width: 1280px) {
  9371. .mbCss {
  9372. flex-direction: column !important;
  9373. }
  9374. .pjCss {
  9375. width: 100% !important;
  9376. }
  9377. .evaCss {
  9378. width: 100% !important;
  9379. margin-top: 10px;
  9380. }
  9381. }
  9382. .el-table >>> .even_row {
  9383. background-color: #f1f1f1 !important;
  9384. }
  9385. .dialog_diy>>>.el-dialog__header {
  9386. background: #3c3c3c !important;
  9387. padding: 15px 20px;
  9388. }
  9389. .dialog_diy>>>.el-dialog__title {
  9390. color: #fff;
  9391. }
  9392. .dialog_diy>>>.el-dialog__headerbtn {
  9393. top: 19px;
  9394. }
  9395. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  9396. color: #fff;
  9397. }
  9398. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  9399. color: #fff;
  9400. }
  9401. .dialog_diy>>>.el-dialog__body,
  9402. .dialog_diy>>>.el-dialog__footer {
  9403. background: #fafafa;
  9404. }
  9405. .dialog_diy3>>>.el-dialog__body,
  9406. .dialog_diy3>>>.el-dialog__footer {
  9407. background: #eee !important;
  9408. }
  9409. .dialog_diy3>>>.el-dialog__body {
  9410. padding: 20px 20px;
  9411. }
  9412. .dialog_diyStage>>>.el-dialog__body {
  9413. padding: 10px;
  9414. }
  9415. .source_diy>>>.el-dialog {
  9416. height: 100% !important;
  9417. margin: 0 auto !important;
  9418. }
  9419. .source_diy>>>.el-dialog__body {
  9420. height: calc(100% - 185px);
  9421. overflow: auto;
  9422. background: #e6eaf0;
  9423. }
  9424. .source_diy>>>.el-dialog__footer {
  9425. background: #e6eaf0 !important;
  9426. }
  9427. .left {
  9428. border-right: 1px solid rgb(60, 94, 143);
  9429. display: flex;
  9430. flex-direction: column;
  9431. align-items: center;
  9432. min-height: 600px;
  9433. width: 385px;
  9434. height: 80%;
  9435. }
  9436. .tips {
  9437. color: rgb(128, 128, 128);
  9438. font-size: 12px;
  9439. width: 270px;
  9440. margin: 40px;
  9441. }
  9442. .pb_content {
  9443. height: 100% !important;
  9444. /* margin: 0 20px 0 20px; */
  9445. }
  9446. .pb_content_body {
  9447. width: 100% !important;
  9448. height: 100%;
  9449. }
  9450. .info_solid {
  9451. width: 270px;
  9452. height: 30px;
  9453. border-left: 1px solid #bdbdbd;
  9454. margin: 10px 0px 10px 30px;
  9455. }
  9456. .info_steps {
  9457. width: 270px;
  9458. font-size: 0.875rem;
  9459. display: flex;
  9460. align-items: center;
  9461. }
  9462. .info_steps span:nth-child(1) {
  9463. width: 30px;
  9464. height: 30px;
  9465. background: rgba(0, 0, 0, 0.38);
  9466. display: block;
  9467. color: #fff;
  9468. border-radius: 40px;
  9469. text-align: center;
  9470. line-height: 30px;
  9471. }
  9472. .steps_active {
  9473. background: #3d67bc !important;
  9474. }
  9475. .info_steps span:nth-child(2) {
  9476. margin-left: 5px;
  9477. }
  9478. .right {
  9479. height: 100%;
  9480. width: 100%;
  9481. display: flex;
  9482. overflow: hidden;
  9483. flex-direction: column;
  9484. }
  9485. .basic_box {
  9486. margin: 0 auto;
  9487. position: relative;
  9488. padding: 0 20px 0 20px;
  9489. }
  9490. .basic_box_success {
  9491. width: 100%;
  9492. min-height: 455px;
  9493. padding: 50px 0;
  9494. position: relative;
  9495. text-align: center;
  9496. border-bottom: 1px solid #bfbfbf;
  9497. box-sizing: border-box;
  9498. display: flex;
  9499. align-items: center;
  9500. flex-direction: column;
  9501. justify-content: center;
  9502. }
  9503. .info_title {
  9504. font-size: 1.5em;
  9505. margin-right: 25px;
  9506. /* margin: 20px 30px 20px 30px; */
  9507. }
  9508. .bInfo_title {
  9509. text-align: left;
  9510. margin: 10px 0;
  9511. }
  9512. .small_title {
  9513. font-size: 14px;
  9514. line-height: 40px;
  9515. }
  9516. .chapter_beizhu {
  9517. font-size: 12px;
  9518. font-weight: bold;
  9519. float: right;
  9520. color: rgb(128, 128, 128);
  9521. margin-top: 5px;
  9522. }
  9523. .chapter_uploadBox1 {
  9524. text-align: left;
  9525. background-color: rgb(242, 242, 242);
  9526. width: 100%;
  9527. height: 67px;
  9528. padding: 0px 15px;
  9529. border-radius: 8px;
  9530. overflow: hidden;
  9531. font-size: 16px;
  9532. box-sizing: border-box;
  9533. position: relative;
  9534. }
  9535. .chapter_add {
  9536. width: 100%;
  9537. height: 32px;
  9538. margin-top: 15px;
  9539. cursor: pointer;
  9540. }
  9541. .chapter_add_l {
  9542. margin-left: 5px;
  9543. width: 30px;
  9544. height: 30px;
  9545. float: left;
  9546. border: 1px solid #aaa;
  9547. color: #aaa;
  9548. border-radius: 50%;
  9549. font-size: 25px;
  9550. text-align: center;
  9551. }
  9552. .chapter_add_r {
  9553. font-size: 18px;
  9554. height: 40px;
  9555. line-height: 30px;
  9556. text-indent: 10px;
  9557. color: #aaa;
  9558. }
  9559. .chapter_add_r span {
  9560. font-size: 12px;
  9561. color: rgb(204, 204, 204);
  9562. }
  9563. .chapter_add_input {
  9564. display: none;
  9565. }
  9566. .line {
  9567. width: 85%;
  9568. margin: 0 auto;
  9569. border-top: 1px solid #e5e5e5;
  9570. margin-top: 20px;
  9571. }
  9572. .info_btnBox {
  9573. width: calc(100%);
  9574. display: flex;
  9575. justify-content: center;
  9576. height: 80px;
  9577. align-items: center;
  9578. background: #fff;
  9579. margin: 0 auto;
  9580. border-top: 2px solid rgb(228, 232, 237);
  9581. box-sizing: border-box;
  9582. }
  9583. .info_btnBox2 {
  9584. width: calc(100%);
  9585. display: flex;
  9586. justify-content: center;
  9587. height: 20px;
  9588. align-items: center;
  9589. background: #fff;
  9590. margin: 0 auto;
  9591. border-top: 2px solid rgb(228, 232, 237);
  9592. box-sizing: border-box;
  9593. overflow: hidden;
  9594. cursor: pointer;
  9595. }
  9596. .info_btnBox3 {
  9597. width: calc(100%);
  9598. display: flex;
  9599. justify-content: flex-end;
  9600. padding: 0 20px;
  9601. height: 60px;
  9602. align-items: center;
  9603. background: unset;
  9604. margin: 0 auto;
  9605. /* border-top: 1px solid rgb(228, 232, 237); */
  9606. box-sizing: border-box;
  9607. overflow: hidden;
  9608. cursor: pointer;
  9609. background: #fff;
  9610. border-radius: 10px;
  9611. }
  9612. .info_btn+.info_btn {
  9613. margin-left: 15px;
  9614. }
  9615. .info_btn,
  9616. .teacherWord {
  9617. color: #fff;
  9618. background-color: #0f7eff;
  9619. padding: 8px 24px;
  9620. font-size: 0.9375rem;
  9621. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9622. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9623. min-width: 64px;
  9624. font-weight: 500;
  9625. border-radius: 4px;
  9626. box-sizing: border-box;
  9627. border: none;
  9628. cursor: pointer;
  9629. }
  9630. .teacherWord {
  9631. width: 105px !important;
  9632. text-align: center !important;
  9633. line-height: 36px !important;
  9634. padding: 0 !important;
  9635. font-size: 14px !important;
  9636. margin: 10px 0 !important;
  9637. }
  9638. .wordTeacher {
  9639. display: flex;
  9640. flex-direction: column;
  9641. width: 145px;
  9642. text-align: center;
  9643. font-size: 14px;
  9644. margin: 30px 0 0 10px;
  9645. background: #fff;
  9646. position: relative;
  9647. border-radius: 5px;
  9648. padding: 25px 0px;
  9649. }
  9650. .wordPic {
  9651. margin: 0 auto;
  9652. width: 60px;
  9653. height: 60px;
  9654. cursor: pointer;
  9655. }
  9656. .deleteWord {
  9657. width: 22px;
  9658. height: 22px;
  9659. position: absolute;
  9660. right: 5px;
  9661. top: -15px;
  9662. cursor: pointer;
  9663. display: none;
  9664. z-index: 999;
  9665. }
  9666. .wordPic>img,
  9667. .deleteWord>img,
  9668. .addToolImg>img {
  9669. width: 100%;
  9670. height: 100%;
  9671. }
  9672. .info_btn:hover {
  9673. background-color: #4f7cd5 !important;
  9674. }
  9675. .cru_selectBox {
  9676. display: flex;
  9677. margin: 24px 0 10px;
  9678. flex-wrap: nowrap;
  9679. white-space: nowrap;
  9680. overflow: auto;
  9681. position: relative;
  9682. height: 40px;
  9683. max-width: calc(100% - 175px);
  9684. }
  9685. .cru_selectBox::-webkit-scrollbar {
  9686. /*滚动条整体样式*/
  9687. width: 6px;
  9688. /*高宽分别对应横竖滚动条的尺寸*/
  9689. height: 6px;
  9690. }
  9691. /*定义滚动条轨道 内阴影+圆角*/
  9692. .cru_selectBox::-webkit-scrollbar-track {
  9693. border-radius: 10px;
  9694. background-color: #eee;
  9695. }
  9696. /*定义滑块 内阴影+圆角*/
  9697. .cru_selectBox::-webkit-scrollbar-thumb {
  9698. border-radius: 10px;
  9699. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  9700. background-color: rgba(0, 0, 0, 0.1);
  9701. }
  9702. .cru_line {
  9703. position: absolute;
  9704. bottom: 0px;
  9705. transition: all 0.5s;
  9706. left: 0px;
  9707. width: 50px;
  9708. height: 4px;
  9709. left: 10px;
  9710. border-radius: 2px;
  9711. background: #3681FC;
  9712. }
  9713. .cru_select {
  9714. font-size: 18px;
  9715. margin-right: 20px;
  9716. margin-left: 5px;
  9717. cursor: pointer;
  9718. color: #0E1E33;
  9719. }
  9720. .cru_select:hover {
  9721. color: #3681FC !important;
  9722. }
  9723. .cru_selected {
  9724. color: #3681FC !important;
  9725. font-weight: bold;
  9726. }
  9727. .chapter_box {
  9728. margin-top: 10px;
  9729. width: 100%;
  9730. padding: 10px 20px;
  9731. background: #fff;
  9732. border-radius: 8px;
  9733. box-sizing: border-box;
  9734. }
  9735. .chapter_contentbox {
  9736. display: flex;
  9737. align-items: center;
  9738. /* margin-top: 15px; */
  9739. }
  9740. .chapter_contentbox .cc_title {
  9741. margin: 0px;
  9742. color: black;
  9743. display: block;
  9744. white-space: nowrap;
  9745. overflow: hidden;
  9746. text-overflow: ellipsis;
  9747. margin-right: 20px;
  9748. font-size: 18px;
  9749. height: 20px;
  9750. line-height: 22px;
  9751. min-width: fit-content;
  9752. display: flex;
  9753. }
  9754. .chapter_contentbox .cc_title::before {
  9755. content: '';
  9756. height: 100%;
  9757. width: 3px;
  9758. background: #3681FC;
  9759. border-radius: 3px;
  9760. opacity: 1;
  9761. display: block;
  9762. margin-right: 10px;
  9763. }
  9764. .chapter_contentbox .cc_input {
  9765. width: 100%;
  9766. display: flex;
  9767. }
  9768. .show_taskD {
  9769. min-width: fit-content;
  9770. margin-left: 10px;
  9771. display: flex;
  9772. align-items: center;
  9773. font-size: 14px;
  9774. cursor: pointer;
  9775. color: #717C8D;
  9776. }
  9777. .show_taskD>img {
  9778. width: 15px;
  9779. margin-right: 5px;
  9780. transition: .2s all;
  9781. transform: rotate(-90deg);
  9782. }
  9783. .show_taskD.show>img {
  9784. transform: rotate(0deg);
  9785. }
  9786. .show_toolD {
  9787. min-width: fit-content;
  9788. margin-left: 10px;
  9789. display: flex;
  9790. align-items: center;
  9791. font-size: 14px;
  9792. cursor: pointer;
  9793. color: #717C8D;
  9794. /* position: absolute;
  9795. right: 45px;
  9796. top: 5px; */
  9797. }
  9798. .show_toolD>img {
  9799. width: 15px;
  9800. margin-right: 5px;
  9801. transition: .2s all;
  9802. transform: rotate(-90deg);
  9803. }
  9804. .show_toolD.show>img {
  9805. transform: rotate(0deg);
  9806. }
  9807. .remove {
  9808. background-image: url("../../assets/icon/new/delete_u.png");
  9809. cursor: pointer;
  9810. opacity: 0.5;
  9811. width: 30px;
  9812. min-width: 30px;
  9813. height: 30px;
  9814. background-size: 100% 100%;
  9815. background-repeat: no-repeat;
  9816. margin-left: 10px;
  9817. }
  9818. .remove1 {
  9819. background-image: url("../../assets/remove1.png");
  9820. background-repeat: no-repeat;
  9821. background-position: 5px 10px;
  9822. width: 40px;
  9823. height: 50px;
  9824. cursor: pointer;
  9825. margin-left: 10px;
  9826. }
  9827. .binfo_input {
  9828. width: 100%;
  9829. margin: 0;
  9830. padding: 12px 14px;
  9831. display: block;
  9832. min-width: 0;
  9833. outline: none;
  9834. box-sizing: border-box;
  9835. background: none;
  9836. border: none;
  9837. border-radius: 4px;
  9838. background: #fff;
  9839. font-size: 16px;
  9840. resize: none;
  9841. font-family: 'Microsoft YaHei';
  9842. min-height: 48px;
  9843. /* border: 1px solid #3682fc00; */
  9844. border: 1.5px solid #CAD1DC;
  9845. }
  9846. .binfo_textarea {
  9847. border: 1.5px solid #CAD1DC;
  9848. font-size: 16px;
  9849. resize: none;
  9850. /* background: #f6f6f6; */
  9851. font-family: 'Microsoft YaHei';
  9852. }
  9853. .binfo_input:focus-visible {
  9854. border: 1.5px solid #3681FC !important;
  9855. }
  9856. .time {
  9857. display: flex;
  9858. margin: 35px 0 80px 0;
  9859. }
  9860. .chapter_btnbox {
  9861. width: 160px;
  9862. border-radius: 5px;
  9863. border: 2px dashed gray;
  9864. display: flex;
  9865. padding: 8px 50px;
  9866. align-items: center;
  9867. justify-content: center;
  9868. margin: 30px auto 0;
  9869. cursor: pointer;
  9870. }
  9871. .icon_add {
  9872. position: relative;
  9873. width: 24px;
  9874. padding-top: 20px;
  9875. border-radius: 100%;
  9876. border-width: 2px;
  9877. border-style: solid;
  9878. border-color: gray;
  9879. }
  9880. .icon_add i:nth-child(1) {
  9881. position: absolute;
  9882. left: 50%;
  9883. top: 50%;
  9884. height: 60%;
  9885. transform: translate(-50%, -50%);
  9886. border-width: 1px;
  9887. border-style: solid;
  9888. border-color: inherit;
  9889. }
  9890. .icon_add i:nth-child(2) {
  9891. position: absolute;
  9892. top: 50%;
  9893. left: 50%;
  9894. width: 60%;
  9895. transform: translate(-50%, -50%);
  9896. border-width: 1px;
  9897. border-style: solid;
  9898. border-color: inherit;
  9899. }
  9900. .chapter_btn_w {
  9901. font-size: 0.9375rem;
  9902. font-weight: bold;
  9903. color: gray;
  9904. margin-left: 20px;
  9905. }
  9906. .disUoloadSty>>>.el-icon-plus {
  9907. display: none !important;
  9908. /* 上传按钮隐藏 */
  9909. }
  9910. .imgLeft {
  9911. margin: 15px 0;
  9912. }
  9913. .add_info_box {
  9914. margin: 0 0 0 auto;
  9915. display: flex;
  9916. flex-wrap: wrap;
  9917. }
  9918. .add_info_box button {
  9919. margin: 0 5px 10px 0;
  9920. }
  9921. .add_info_box2 {
  9922. display: flex;
  9923. align-items: center;
  9924. flex-wrap: wrap;
  9925. }
  9926. .add_info_box2::after {
  9927. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  9928. color: red;
  9929. font-size: 14px;
  9930. margin-bottom: 10px;
  9931. }
  9932. .add_chapters_box {
  9933. text-align: left;
  9934. background-color: #fff;
  9935. width: 100%;
  9936. border-radius: 4px;
  9937. font-size: 16px;
  9938. box-sizing: border-box;
  9939. position: relative;
  9940. padding: 0 15px;
  9941. height: auto;
  9942. overflow-y: auto;
  9943. overflow-x: hidden;
  9944. border: 1px solid #CAD1DC;
  9945. }
  9946. .add_chapters_box.add_c_none {
  9947. display: flex;
  9948. justify-content: center;
  9949. align-items: center;
  9950. padding: 15px;
  9951. }
  9952. .add_c_none>img {
  9953. width: 25px;
  9954. }
  9955. .add_chapters_box.add_c_none>span {
  9956. font-size: 14px;
  9957. font-weight: 400;
  9958. margin: 0 0 5px 5px;
  9959. }
  9960. .homework_box {
  9961. display: flex;
  9962. align-items: flex-start;
  9963. flex-wrap: wrap;
  9964. margin: 15px 0 0 0;
  9965. flex-direction: column;
  9966. align-content: flex-start;
  9967. }
  9968. .course_homework {
  9969. display: flex;
  9970. justify-content: center;
  9971. flex-direction: row;
  9972. align-items: center;
  9973. margin: 0 10px 0 0;
  9974. }
  9975. .course_homework>>>.el-input__inner {
  9976. width: 140px;
  9977. margin-left: 15px;
  9978. }
  9979. .chapter_upload_move {
  9980. position: relative;
  9981. background-color: #fff;
  9982. position: absolute;
  9983. width: 100%;
  9984. top: 0px;
  9985. left: 0px;
  9986. border: 1px solid #eee;
  9987. border-radius: 5px;
  9988. transition: width 2s;
  9989. -moz-transition: width 2s;
  9990. -webkit-transition: width 2s;
  9991. -o-transition: width 2s;
  9992. }
  9993. .chapter_upload_l_i {
  9994. background-image: url("../../assets/icon.png");
  9995. background-position: 3px -165px;
  9996. width: 30px;
  9997. height: 30px;
  9998. margin: 10px auto 0 auto;
  9999. }
  10000. .course_input_box {
  10001. display: flex;
  10002. margin-right: 20px;
  10003. width: 100%;
  10004. align-items: center;
  10005. position: relative;
  10006. }
  10007. .course_input_box>.binfo_input {
  10008. width: calc(100% - 0 - 200px - 20px);
  10009. margin: 0 10px;
  10010. }
  10011. .bb_courseIcon {
  10012. width: 57px;
  10013. height: 45px;
  10014. background: #F0F4FA;
  10015. border-radius: 5px 0px 0px 5px;
  10016. display: flex;
  10017. align-items: center;
  10018. justify-content: center;
  10019. border-right: 1.5px solid rgb(202, 209, 220);
  10020. box-sizing: border-box;
  10021. position: absolute;
  10022. left: 1.5px
  10023. }
  10024. .bb_courseIcon>img {
  10025. width: 25px;
  10026. height: auto
  10027. }
  10028. .big_box {
  10029. /* margin-top: 20px; */
  10030. display: flex;
  10031. justify-content: space-between;
  10032. /* border-bottom: 1px solid #E0E2ED; */
  10033. }
  10034. .left_first {
  10035. display: flex;
  10036. flex-direction: column;
  10037. flex-wrap: nowrap;
  10038. width: calc(100% - 310px);
  10039. padding: 20px;
  10040. box-sizing: border-box;
  10041. background: #fff;
  10042. border-radius: 5px;
  10043. }
  10044. .right_first {
  10045. width: 300px;
  10046. display: flex;
  10047. align-items: center;
  10048. justify-content: center;
  10049. /* border-left: 1px solid #E0E2ED; */
  10050. box-sizing: border-box;
  10051. padding: 20px;
  10052. flex-direction: column;
  10053. background: #fff;
  10054. border-radius: 5px;
  10055. }
  10056. .ai_box {
  10057. width: 204px;
  10058. display: flex;
  10059. justify-content: flex-end;
  10060. margin-bottom: 15px;
  10061. }
  10062. .ai_content {
  10063. display: flex;
  10064. align-items: center;
  10065. font-size: 14px;
  10066. padding: 7px 20px;
  10067. box-sizing: border-box;
  10068. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10069. border-radius: 12px;
  10070. font-weight: 700;
  10071. cursor: pointer;
  10072. }
  10073. .ai_content>img {
  10074. width: 40px;
  10075. margin-right: 5px;
  10076. }
  10077. .c_info_title {
  10078. padding: 15px 0 15px 0;
  10079. font-size: 16px;
  10080. font-weight: bold;
  10081. margin: 0 0 0 20px;
  10082. box-sizing: border-box;
  10083. display: flex;
  10084. align-items: center;
  10085. line-height: 20px;
  10086. }
  10087. .c_info_title::before {
  10088. content: '';
  10089. display: block;
  10090. width: 3px;
  10091. height: 20px;
  10092. background: #0061FF;
  10093. border-radius: 3px;
  10094. margin: 0 5px 0 0;
  10095. }
  10096. .right_title {
  10097. height: 30px;
  10098. padding: 15px 0 15px 20px;
  10099. border-bottom: 1px solid #f2f2f2;
  10100. font-size: 1.5em;
  10101. font-weight: bold;
  10102. color: #0f7eff;
  10103. margin: 0 auto;
  10104. }
  10105. .people {
  10106. border: 1px solid rgb(229 229 229);
  10107. /* height: 495px; */
  10108. height: 350px;
  10109. border-radius: 5px;
  10110. width: 100%;
  10111. overflow: auto;
  10112. }
  10113. .people_top {
  10114. display: flex;
  10115. width: 100%;
  10116. /* justify-content: space-between; */
  10117. /* align-items: center; */
  10118. flex-direction: column;
  10119. padding: 10px 10px 0;
  10120. box-sizing: border-box;
  10121. }
  10122. .people_nav,
  10123. .people_top_right {
  10124. /* padding: 20px 0 0 20px; */
  10125. }
  10126. .people_top_right {
  10127. height: 40px;
  10128. margin-bottom: 10px;
  10129. }
  10130. .people_search {
  10131. display: flex;
  10132. position: relative;
  10133. }
  10134. .people_search>>>.el-input__inner {
  10135. /* height: 25px; */
  10136. width: 95%;
  10137. }
  10138. .search_img {
  10139. width: 20px;
  10140. height: 20px;
  10141. position: absolute;
  10142. right: 30px;
  10143. top: 50%;
  10144. transform: translateY(-50%);
  10145. }
  10146. .search_img>img {
  10147. width: 100%;
  10148. height: 100%;
  10149. }
  10150. .people_name {
  10151. display: flex;
  10152. justify-content: flex-start;
  10153. padding: 20px 10px;
  10154. flex-direction: column;
  10155. flex-wrap: wrap;
  10156. }
  10157. .p_box {
  10158. position: relative;
  10159. }
  10160. .people_name>>>.el-checkbox {
  10161. width: 100%;
  10162. display: flex;
  10163. align-items: center;
  10164. margin-bottom: 10px;
  10165. }
  10166. .people_name>>>.el-checkbox__label {
  10167. text-overflow: ellipsis;
  10168. overflow: hidden;
  10169. width: calc(100%);
  10170. }
  10171. .people_name2>>>.el-checkbox__label {
  10172. width: calc(100% - 130px);
  10173. }
  10174. .inviteCode {
  10175. position: absolute;
  10176. right: 30px;
  10177. color: #237ade;
  10178. top: 0;
  10179. cursor: pointer;
  10180. font-size: 13px;
  10181. }
  10182. .noneInvite {
  10183. color: #a8a8a8;
  10184. }
  10185. .inviteImg {
  10186. position: absolute;
  10187. right: 5px;
  10188. top: 0;
  10189. width: 20px;
  10190. }
  10191. .right_img {
  10192. width: 150px;
  10193. height: 150px;
  10194. margin: 0 auto;
  10195. }
  10196. .right_img>img {
  10197. width: 100%;
  10198. height: 100%;
  10199. }
  10200. .number {
  10201. margin-top: 20px;
  10202. color: #4aa6ff;
  10203. text-decoration: underline;
  10204. }
  10205. .success_button {
  10206. display: flex;
  10207. text-align: center;
  10208. margin: 5% 0 auto;
  10209. flex-direction: row;
  10210. justify-content: center;
  10211. }
  10212. .look_course {
  10213. margin-right: 40px;
  10214. background: #3d67bc;
  10215. width: 200px;
  10216. height: 35px;
  10217. line-height: 35px;
  10218. color: #fff;
  10219. text-align: center;
  10220. font-size: 14px;
  10221. border-radius: 5px;
  10222. cursor: pointer;
  10223. }
  10224. .attend_others {
  10225. width: 250px;
  10226. background: #4fb13c;
  10227. height: 35px;
  10228. line-height: 35px;
  10229. color: #fff;
  10230. text-align: center;
  10231. font-size: 14px;
  10232. border-radius: 5px;
  10233. cursor: pointer;
  10234. }
  10235. .dialog_diy2>>>.el-dialog__body {
  10236. text-align: center;
  10237. }
  10238. .write_togother {
  10239. position: absolute;
  10240. right: 45px;
  10241. display: flex;
  10242. top: 5%;
  10243. }
  10244. .write_people {
  10245. font-size: 14px;
  10246. line-height: 50px;
  10247. padding-right: 10px;
  10248. }
  10249. .end_write {
  10250. background: #3d67bc;
  10251. color: #fff;
  10252. width: 100px;
  10253. height: 35px;
  10254. line-height: 35px;
  10255. text-align: center;
  10256. font-size: 14px;
  10257. border-radius: 5px;
  10258. cursor: pointer;
  10259. }
  10260. .chapter_upload+.chapter_upload {
  10261. /* margin-top: 15px; */
  10262. border-top: 1px solid #E7EBF1;
  10263. }
  10264. .chapter_upload {
  10265. height: 45px;
  10266. position: relative;
  10267. display: flex;
  10268. align-items: center;
  10269. width: 100%;
  10270. min-height: 45px;
  10271. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  10272. /* border-radius: 4px; */
  10273. /* overflow: hidden; */
  10274. box-sizing: border-box;
  10275. }
  10276. .chapter_upload_drag {
  10277. position: absolute;
  10278. cursor: pointer;
  10279. width: 16px;
  10280. height: 16px;
  10281. left: -9px;
  10282. background-image: url("../../assets/icon/new/icon_course_drag.png");
  10283. background-size: 100% 100%;
  10284. z-index: 10;
  10285. }
  10286. .chapter_upload_t {
  10287. background-color: #fff;
  10288. position: absolute;
  10289. height: 100%;
  10290. top: 0px;
  10291. left: 0px;
  10292. box-sizing: border-box;
  10293. }
  10294. .chapter_upload_o {
  10295. width: 100%;
  10296. height: 100%;
  10297. position: relative;
  10298. z-index: 1;
  10299. }
  10300. .chapter_upload_ic {
  10301. margin: 0 15px 0px auto;
  10302. display: flex;
  10303. align-items: center;
  10304. }
  10305. .chapter_upload_ic_l {
  10306. width: 50px;
  10307. height: 50px;
  10308. float: left;
  10309. }
  10310. .chapter_upload_ic_l div {
  10311. width: 30px;
  10312. height: 35px;
  10313. background: url("../../assets/icon/icon.png");
  10314. }
  10315. .chapter_upload_ic_edit {
  10316. height: 100%;
  10317. display: flex;
  10318. align-items: center;
  10319. cursor: pointer;
  10320. margin: 0 10px 0 0;
  10321. }
  10322. .chapter_upload_ic_edit div {
  10323. width: 18px;
  10324. height: 18px;
  10325. background-image: url("../../assets/icon/new/edit_u.png");
  10326. background-size: 100% 100%;
  10327. }
  10328. .chapter_upload_ic_r {
  10329. height: 100%;
  10330. display: flex;
  10331. align-items: center;
  10332. cursor: pointer;
  10333. }
  10334. .chapter_upload_ic_r div {
  10335. width: 18px;
  10336. height: 18px;
  10337. background-image: url("../../assets/icon/new/delete_u.png");
  10338. background-size: 100% 100%;
  10339. }
  10340. .chapter_upload_n {
  10341. display: flex;
  10342. text-indent: 10px;
  10343. text-decoration: none;
  10344. text-overflow: ellipsis;
  10345. white-space: nowrap;
  10346. overflow: hidden;
  10347. width: 55%;
  10348. margin-left: 10px;
  10349. cursor: pointer;
  10350. margin-top: 2px;
  10351. align-items: center;
  10352. }
  10353. .chapter_upload_l_i2,
  10354. .chapter_upload_l_i3,
  10355. .chapter_upload_l_i8,
  10356. .chapter_upload_l_i6,
  10357. .chapter_upload_l_i12,
  10358. .chapter_upload_l_i14,
  10359. .chapter_upload_l_i13 {
  10360. width: 15px;
  10361. height: 15px;
  10362. background-size: 100% 100%;
  10363. }
  10364. .chapter_upload_l_i2 {
  10365. background-image: url("../../assets/icon/new/u_word.png");
  10366. }
  10367. .chapter_upload_l_i3 {
  10368. background-image: url("../../assets/icon/new/u_video.png");
  10369. }
  10370. .chapter_upload_l_i8 {
  10371. background-image: url("../../assets/icon/new/u_url.png");
  10372. }
  10373. .chapter_upload_l_i14 {
  10374. background-image: url("../../assets/icon/new/u_source.png");
  10375. }
  10376. .chapter_upload_l_i6 {
  10377. background-image: url("../../assets/icon/new/u_picture.png");
  10378. }
  10379. .chapter_upload_l_i12 {
  10380. background-image: url("../../assets/icon/new/u_word.png");
  10381. }
  10382. .chapter_upload_l_i13 {
  10383. background-image: url("../../assets/icon/new/u_img.png");
  10384. }
  10385. .chapter_upload_noSee {
  10386. background-image: url("../../assets/icon/new/u_noUpload.png");
  10387. width: 18px;
  10388. height: 18px;
  10389. background-size: 100% 100%;
  10390. display: block;
  10391. margin-right: 10px;
  10392. }
  10393. .chapter_upload_ud {
  10394. display: flex;
  10395. flex-direction: row;
  10396. justify-content: center;
  10397. margin: 0 10px 0 0;
  10398. }
  10399. .chapter_upload_ud>.chapter_upload_up {
  10400. margin-bottom: 0;
  10401. margin-right: 10px;
  10402. }
  10403. .chapter_upload_down,
  10404. .chapter_upload_up {
  10405. width: 20px;
  10406. height: 20px;
  10407. background: #e4eaf2;
  10408. cursor: pointer;
  10409. margin: 0 auto;
  10410. border-radius: 5px;
  10411. display: flex;
  10412. justify-content: center;
  10413. align-items: center;
  10414. }
  10415. .chapter_upload_up::after,
  10416. .chapter_upload_down::after {
  10417. content: '';
  10418. background-image: url('../../assets/icon/new/downBtn.png');
  10419. width: 13px;
  10420. height: 13px;
  10421. background-size: 100% 100%;
  10422. display: block;
  10423. }
  10424. .chapter_upload_up::after {
  10425. background-image: url('../../assets/icon/new/upBtn.png') !important;
  10426. }
  10427. .chapter_upload_up {
  10428. margin-bottom: 5px;
  10429. }
  10430. .chapter_upload_ud2 {
  10431. display: flex;
  10432. flex-direction: row;
  10433. justify-content: center;
  10434. margin: 0 10px 0 0;
  10435. }
  10436. .chapter_upload_ud2>.chapter_upload_up2 {
  10437. margin-bottom: 0;
  10438. margin-right: 10px;
  10439. }
  10440. .chapter_upload_down2,
  10441. .chapter_upload_up2 {
  10442. cursor: pointer;
  10443. margin: 0 auto;
  10444. border-radius: 5px;
  10445. display: flex;
  10446. justify-content: center;
  10447. align-items: center;
  10448. color: #717C8D;
  10449. font-size: 14px;
  10450. }
  10451. .chapter_upload_up2{
  10452. margin-right:10px;
  10453. }
  10454. .chapter_upload_up2::before,
  10455. .chapter_upload_down2::before {
  10456. content: '';
  10457. background-image: url('../../assets/icon/new/c_up.png');
  10458. width: 14px;
  10459. height: 14px;
  10460. background-size: 100% 100%;
  10461. display: block;
  10462. margin-right: 5px;
  10463. }
  10464. .chapter_upload_up2::before {
  10465. background-image: url('../../assets/icon/new/c_down.png') !important;
  10466. }
  10467. .addWordStyle {
  10468. display: flex;
  10469. flex-direction: row;
  10470. justify-content: flex-start;
  10471. overflow-x: auto;
  10472. white-space: nowrap;
  10473. flex-wrap: wrap;
  10474. }
  10475. /* table 样式 */
  10476. .cont>>>table {
  10477. border-top: 1px solid #ccc;
  10478. border-left: 1px solid #ccc;
  10479. }
  10480. .cont>>>table td,
  10481. .cont>>>table th {
  10482. border-bottom: 1px solid #ccc;
  10483. border-right: 1px solid #ccc;
  10484. /* padding: 20px 5px; */
  10485. padding: 5px 10px;
  10486. max-width: 0px;
  10487. height: 30px;
  10488. vertical-align: baseline;
  10489. }
  10490. .cont>>>table th {
  10491. border-bottom: 2px solid #ccc;
  10492. text-align: center;
  10493. }
  10494. /* blockquote 样式 */
  10495. .cont>>>blockquote {
  10496. display: block;
  10497. border-left: 8px solid #d0e5f2;
  10498. padding: 5px 10px;
  10499. margin: 10px 0;
  10500. line-height: 1.4;
  10501. font-size: 100%;
  10502. background-color: #f1f1f1;
  10503. }
  10504. /* code 样式 */
  10505. .cont>>>code {
  10506. display: inline-block;
  10507. /* *display: inline; */
  10508. zoom: 1;
  10509. background-color: #f1f1f1;
  10510. border-radius: 3px;
  10511. padding: 3px 5px;
  10512. margin: 0 3px;
  10513. }
  10514. .cont>>>pre code {
  10515. display: block;
  10516. }
  10517. /* ul ol 样式 */
  10518. .cont>>>ul,
  10519. ol {
  10520. margin: 10px 0 10px 20px;
  10521. }
  10522. .wordbox {
  10523. display: flex;
  10524. flex-wrap: wrap;
  10525. cursor: pointer;
  10526. width: 100%;
  10527. }
  10528. .checkword {
  10529. width: 22px;
  10530. height: 22px;
  10531. margin: 10px auto 0;
  10532. cursor: pointer;
  10533. }
  10534. .checkword img {
  10535. width: 100%;
  10536. }
  10537. .stepBg {
  10538. display: flex;
  10539. justify-content: space-between;
  10540. align-items: center;
  10541. background: #fff;
  10542. width: calc(100%);
  10543. margin: 0 auto;
  10544. }
  10545. .stepBorder {
  10546. height: 3px !important;
  10547. background: #CAD1DC;
  10548. width: 100px !important;
  10549. margin: 0 15px !important;
  10550. position: relative;
  10551. }
  10552. .border-active {
  10553. background: #3681FC !important
  10554. }
  10555. .border-active::before,
  10556. .border-active::after {
  10557. border-color: #3681FC !important
  10558. }
  10559. .stepBorder::before,
  10560. .stepBorder::after {
  10561. content: '';
  10562. width: 9px;
  10563. height: 9px;
  10564. background: #FFFFFF;
  10565. opacity: 1;
  10566. border: 2px solid #ACB4BF;
  10567. display: block;
  10568. box-sizing: border-box;
  10569. border-radius: 50%;
  10570. position: absolute;
  10571. top: 50%;
  10572. transform: translateY(-50%);
  10573. }
  10574. .stepBorder::after {
  10575. right: -9px;
  10576. }
  10577. .stepTop {
  10578. width: 100%;
  10579. /* border-radius: 10px; */
  10580. display: flex;
  10581. justify-content: center;
  10582. align-items: center;
  10583. flex-wrap: nowrap;
  10584. background: #fff;
  10585. /* top: 18%; */
  10586. height: 80px;
  10587. border-bottom: 2px solid rgb(228, 232, 237);
  10588. box-sizing: border-box;
  10589. }
  10590. .stepTop2 {
  10591. width: 100%;
  10592. /* border-radius: 10px; */
  10593. display: flex;
  10594. justify-content: center;
  10595. align-items: center;
  10596. flex-wrap: nowrap;
  10597. background: #fff;
  10598. /* top: 18%; */
  10599. height: 20px;
  10600. border-bottom: 2px solid rgb(228, 232, 237);
  10601. box-sizing: border-box;
  10602. overflow: hidden;
  10603. cursor: pointer;
  10604. }
  10605. .stepTop>div img {
  10606. width: 100%;
  10607. }
  10608. .stepTop>div {
  10609. height: 50px;
  10610. width: 180px;
  10611. cursor: pointer;
  10612. margin: 10px 0;
  10613. border-radius: 10px;
  10614. }
  10615. .first,
  10616. .second,
  10617. .third,
  10618. .four {
  10619. background: #3681FC;
  10620. height: 90px;
  10621. color: #fff;
  10622. display: flex;
  10623. flex-direction: row;
  10624. align-items: center;
  10625. justify-content: center;
  10626. }
  10627. .first>div:nth-child(1),
  10628. .second>div:nth-child(1),
  10629. .third>div:nth-child(1),
  10630. .four>div:nth-child(1) {
  10631. margin: 5px 10px 0 0;
  10632. width: 2rem;
  10633. }
  10634. .firstNo,
  10635. .secondNo,
  10636. .thirdNo,
  10637. .fourNo {
  10638. background: #e7e7e7;
  10639. color: #adadad;
  10640. display: flex;
  10641. flex-direction: row;
  10642. align-items: center;
  10643. justify-content: center;
  10644. }
  10645. .firstNo>div:nth-child(1),
  10646. .secondNo>div:nth-child(1),
  10647. .thirdNo>div:nth-child(1),
  10648. .fourNo>div:nth-child(1) {
  10649. margin: 5px 10px 0 0;
  10650. width: 2rem;
  10651. }
  10652. .uploadWidth>>>.el-upload {
  10653. width: 60px;
  10654. height: 60px;
  10655. position: relative;
  10656. }
  10657. .addPeople {
  10658. background: #fa6060;
  10659. width: 150px;
  10660. height: 40px;
  10661. color: #fff;
  10662. border-radius: 5px;
  10663. text-align: center;
  10664. line-height: 40px;
  10665. font-size: 14px;
  10666. cursor: pointer;
  10667. }
  10668. .kcImg {
  10669. width: 60px;
  10670. margin-left: 10px;
  10671. }
  10672. .zyImg {
  10673. width: 55px;
  10674. margin: 0 10px;
  10675. }
  10676. .deleteZy {
  10677. width: 20px;
  10678. position: absolute;
  10679. top: 5px;
  10680. right: 5px;
  10681. cursor: pointer;
  10682. }
  10683. .kcImg>img,
  10684. .zyImg>img,
  10685. .deleteZy>img {
  10686. width: 100%;
  10687. height: 100%;
  10688. }
  10689. .zyBox {
  10690. display: flex;
  10691. flex-direction: row;
  10692. align-items: center;
  10693. background: #67d37d;
  10694. color: #fff;
  10695. width: 210px;
  10696. margin: 20px 20px 0 0;
  10697. border-radius: 10px;
  10698. height: 70px;
  10699. position: relative;
  10700. }
  10701. .upCss {
  10702. display: flex;
  10703. flex-direction: row;
  10704. justify-content: flex-start;
  10705. }
  10706. .upCss>>>.el-icon-plus {
  10707. position: none !important;
  10708. width: 200px;
  10709. height: 100px;
  10710. display: flex;
  10711. flex-wrap: nowrap;
  10712. flex-direction: column;
  10713. align-items: center;
  10714. justify-content: center;
  10715. border: 1px dashed #ccc;
  10716. min-width: 78px;
  10717. min-height: 100px;
  10718. z-index: 999;
  10719. }
  10720. .upCss>>>.el-upload-list__item-name {
  10721. width: 100px;
  10722. white-space: nowrap;
  10723. overflow: hidden;
  10724. text-overflow: ellipsis;
  10725. }
  10726. .upCss>>>.el-upload-list__item .el-icon-close {
  10727. font-size: 20px;
  10728. z-index: 9999;
  10729. }
  10730. .addStageImg {
  10731. min-width: 20px;
  10732. min-height: 20px;
  10733. width: 20px;
  10734. height: 20px;
  10735. cursor: pointer;
  10736. }
  10737. .addHW {
  10738. width: 28px;
  10739. height: 28px;
  10740. cursor: pointer;
  10741. }
  10742. .addStageImg>img,
  10743. .addHW>img {
  10744. width: 100%;
  10745. height: 100%;
  10746. }
  10747. .addNewPP>>>.el-dialog__body {
  10748. padding: 5px 20px;
  10749. }
  10750. .addNewPP>>>.el-dialog {
  10751. margin-top: 5vh !important;
  10752. }
  10753. .addNewPP2>>>.el-dialog__body {
  10754. padding: 5px 0;
  10755. }
  10756. .addNewPP2>>>.el-dialog {
  10757. margin-top: 5vh !important;
  10758. }
  10759. .isHeight {
  10760. height: 680px;
  10761. }
  10762. .toolChoose {
  10763. display: flex;
  10764. /* width: 100%; */
  10765. flex-direction: row;
  10766. flex-wrap: wrap;
  10767. }
  10768. .tool,
  10769. .isToolChoose {
  10770. display: flex;
  10771. flex-direction: column;
  10772. flex-wrap: nowrap;
  10773. width: fit-content;
  10774. margin: 10px 0 10px 0;
  10775. align-items: center;
  10776. border: 2px solid #dbdbdb00;
  10777. padding: 10px 20px;
  10778. border-radius: 5px;
  10779. cursor: pointer;
  10780. /* box-shadow: 0 0 2px 0px #dedede; */
  10781. position: relative;
  10782. box-sizing: border-box;
  10783. }
  10784. .tool:hover {
  10785. border: 2px solid #a5c7ff;
  10786. }
  10787. .tool:hover>.noCTool {
  10788. display: block;
  10789. opacity: 0.5;
  10790. }
  10791. .isToolChoose {
  10792. border: 2px solid #438aff !important;
  10793. box-shadow: 0 0 2px 0px #438aff;
  10794. opacity: 1 !important;
  10795. }
  10796. .isCTool,
  10797. .noCTool {
  10798. width: 30px;
  10799. height: 30px;
  10800. position: absolute;
  10801. top: -4px;
  10802. right: -4px;
  10803. }
  10804. .noCTool {
  10805. display: none;
  10806. }
  10807. .isCTool>img,
  10808. .noCTool>img {
  10809. width: 100%;
  10810. height: 100%;
  10811. }
  10812. .tool+.tool {
  10813. margin-right: 10px;
  10814. }
  10815. .whiteBIcon {
  10816. width: 80px;
  10817. cursor: pointer;
  10818. display: flex;
  10819. flex-direction: column;
  10820. flex-wrap: nowrap;
  10821. align-items: center;
  10822. font-size: 14px;
  10823. }
  10824. .whiteBIcon>img,
  10825. .toolIcon>img,
  10826. .arrow>img {
  10827. width: 100%;
  10828. height: 100%;
  10829. }
  10830. .check img {
  10831. width: 20px;
  10832. height: 20px;
  10833. }
  10834. .whiteBIcon>img {
  10835. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10836. border-radius: 15px;
  10837. }
  10838. .whiteBIcon>div:nth-child(2) {
  10839. height: 20px;
  10840. line-height: 20px;
  10841. }
  10842. .check {
  10843. /* width: 20px;
  10844. height: 20px; */
  10845. cursor: pointer;
  10846. margin: 10px 0 0;
  10847. }
  10848. .checkDiv {
  10849. display: flex;
  10850. align-items: center;
  10851. }
  10852. .checkDiv span {
  10853. margin-left: 5px;
  10854. color: #858585;
  10855. }
  10856. .customWidth>>>.el-dialog {
  10857. min-width: 500px !important;
  10858. }
  10859. .a_addBox {
  10860. margin: 10px 0;
  10861. background: #fff;
  10862. padding: 15px;
  10863. /* max-height: 600px; */
  10864. overflow: auto;
  10865. }
  10866. .a_add_box {
  10867. border-bottom: 2px solid #eee;
  10868. padding-bottom: 25px;
  10869. }
  10870. .a_add_head {
  10871. display: flex;
  10872. align-items: center;
  10873. justify-content: space-between;
  10874. margin: 10px 0 0 0;
  10875. font-size: 18px;
  10876. }
  10877. .a_add_checkType {
  10878. margin-top: 10px;
  10879. display: flex;
  10880. font-size: 14px;
  10881. align-items: center;
  10882. }
  10883. .a_add_checkType span {
  10884. box-sizing: border-box;
  10885. padding: 0 0 5px 0;
  10886. cursor: pointer;
  10887. }
  10888. .a_add_checkType span+span {
  10889. margin-left: 10px;
  10890. }
  10891. .a_add_checkType .active {
  10892. border-bottom: 2px solid #409eff;
  10893. color: #409eff;
  10894. }
  10895. .a_add_head .a_add_head_input {
  10896. /* width: 540px; */
  10897. width: 100%;
  10898. }
  10899. .a_add_head .a_add_head_div {
  10900. display: flex;
  10901. align-items: center;
  10902. justify-content: space-between;
  10903. }
  10904. .a_add_body {
  10905. display: flex;
  10906. /* align-items: center; */
  10907. align-items: flex-end;
  10908. }
  10909. .a_add_input {
  10910. display: flex;
  10911. align-items: center;
  10912. flex-wrap: wrap;
  10913. }
  10914. .a_add_input_choice {
  10915. flex-direction: column;
  10916. margin-right: 10px;
  10917. }
  10918. .a_add_input_choice>>>.el-radio {
  10919. display: flex;
  10920. align-items: center;
  10921. flex-direction: row-reverse;
  10922. margin: 30px 0 0 0;
  10923. position: relative;
  10924. }
  10925. .a_add_input_choice>>>.el-checkbox {
  10926. display: flex;
  10927. align-items: center;
  10928. flex-direction: row-reverse;
  10929. margin: 30px 0 0 0;
  10930. position: relative;
  10931. }
  10932. .width100 {
  10933. width: 100%;
  10934. }
  10935. .a_add_input .a_add_persent {
  10936. width: 100%;
  10937. }
  10938. .a_add_persent_div {
  10939. width: 100%;
  10940. display: flex;
  10941. align-items: center;
  10942. }
  10943. .a_add_persent_div span {
  10944. margin: 5px 0;
  10945. }
  10946. .a_add_persent_div span:nth-child(1) {
  10947. width: 30%;
  10948. }
  10949. .a_add_persent_div span:nth-child(2) {
  10950. width: 7%;
  10951. }
  10952. .a_add_persent_div span:nth-child(3) {
  10953. width: 40%;
  10954. }
  10955. .a_add_body_div {
  10956. display: flex;
  10957. align-items: center;
  10958. justify-content: center;
  10959. /* flex-direction: column; */
  10960. position: absolute;
  10961. right: -20px;
  10962. transform: translateX(100%);
  10963. }
  10964. .a_add_body_div>>>.el-button--primary {
  10965. background: #466b99;
  10966. border: none;
  10967. }
  10968. .all_choose {
  10969. display: flex;
  10970. flex-direction: row;
  10971. align-items: flex-start;
  10972. width: 100%;
  10973. }
  10974. .all_choose+.all_choose {
  10975. /* margin-top: 10px */
  10976. }
  10977. .all_choose>span {
  10978. min-width: fit-content;
  10979. display: block;
  10980. white-space: nowrap;
  10981. overflow: hidden;
  10982. text-overflow: ellipsis;
  10983. margin-right: 20px;
  10984. font-weight: bold;
  10985. font-size: 14px;
  10986. }
  10987. .all_choose>>>.el-checkbox-group {
  10988. display: flex;
  10989. flex-direction: row;
  10990. width: 100%;
  10991. flex-wrap: wrap;
  10992. align-content: center;
  10993. justify-content: flex-start;
  10994. align-items: center;
  10995. margin-top: 3px;
  10996. }
  10997. .all_choose>.el-checkbox-group>>>.el-checkbox {
  10998. margin-bottom: 10px;
  10999. display: flex;
  11000. flex-direction: row;
  11001. align-items: center;
  11002. margin-right: 10px;
  11003. }
  11004. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11005. min-width: 80px;
  11006. overflow: hidden;
  11007. width: 80px;
  11008. text-overflow: ellipsis;
  11009. white-space: nowrap;
  11010. }
  11011. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11012. width: auto;
  11013. }
  11014. .choose>div:nth-child(3)>span {
  11015. /* letter-spacing: 0 !important; */
  11016. }
  11017. .choose {
  11018. display: flex;
  11019. flex-direction: column;
  11020. flex-wrap: nowrap;
  11021. height: 100%;
  11022. justify-content: space-evenly;
  11023. align-items: flex-start;
  11024. }
  11025. .both {
  11026. display: flex;
  11027. flex-direction: row;
  11028. flex-wrap: wrap;
  11029. width: 100%;
  11030. align-items: center;
  11031. justify-content: flex-start;
  11032. margin: 15px 0;
  11033. }
  11034. .notice>>>.el-dialog {
  11035. width: 500px !important;
  11036. text-align: center;
  11037. }
  11038. .notice>>>.el-button {
  11039. margin-top: 20px;
  11040. }
  11041. .whiteBg {
  11042. /* background: #fff; */
  11043. border-radius: 10px;
  11044. }
  11045. .wb_j_box {
  11046. display: flex;
  11047. width: 100%;
  11048. padding: 0 20px 0;
  11049. box-sizing: border-box;
  11050. }
  11051. .wb_j_box_content {
  11052. width: calc(100% - 55% - 100px);
  11053. display: flex;
  11054. align-items: center;
  11055. }
  11056. .wb_j_box_p_box {
  11057. max-width: calc(100% - 200px);
  11058. word-break: break-all;
  11059. overflow: hidden;
  11060. margin: 0 0 0 10px;
  11061. font-size: 14px;
  11062. color: #6e6e6e;
  11063. z-index: 999;
  11064. }
  11065. .chooseWho {
  11066. display: flex;
  11067. width: 410px;
  11068. flex-direction: row;
  11069. flex-wrap: nowrap;
  11070. justify-content: space-between;
  11071. padding-bottom: 10px;
  11072. }
  11073. .chooseWho>div {
  11074. cursor: pointer;
  11075. padding-bottom: 10px;
  11076. font-weight: bold;
  11077. }
  11078. .isChooseActive {
  11079. color: #3e88f4;
  11080. border-bottom: 2px solid #2f80f3;
  11081. }
  11082. .toolSort {
  11083. display: flex;
  11084. flex-direction: row;
  11085. flex-wrap: wrap;
  11086. justify-content: flex-start;
  11087. align-items: flex-start;
  11088. }
  11089. .toolSort>div {
  11090. margin-right: 10px;
  11091. }
  11092. .tools {
  11093. width: 100%;
  11094. display: flex;
  11095. flex-direction: column;
  11096. flex-wrap: nowrap;
  11097. align-items: flex-start;
  11098. }
  11099. .leftTools,
  11100. .rightTools {
  11101. width: 50%;
  11102. }
  11103. .leftTools+.leftTools {
  11104. border-top: 1px solid #dbdbdb;
  11105. padding-top: 30px;
  11106. }
  11107. .rightTools {
  11108. display: flex;
  11109. flex-direction: row;
  11110. flex-wrap: nowrap;
  11111. justify-content: space-around;
  11112. }
  11113. .firstToolList {
  11114. display: flex;
  11115. flex-direction: column;
  11116. flex-wrap: nowrap;
  11117. align-items: center;
  11118. }
  11119. .iconList {
  11120. display: flex;
  11121. flex-direction: row;
  11122. flex-wrap: wrap;
  11123. justify-content: flex-start;
  11124. align-items: center;
  11125. margin: 20px 0 5px 0;
  11126. width: 240px;
  11127. min-width: 240px;
  11128. }
  11129. .iconTool {
  11130. display: flex;
  11131. flex-direction: column;
  11132. flex-wrap: nowrap;
  11133. align-items: center;
  11134. justify-content: flex-start;
  11135. margin: 15px 10px;
  11136. }
  11137. .toolIcon {
  11138. width: 50px;
  11139. }
  11140. .taskBorder {
  11141. /* border: 1px solid #CAD1DC; */
  11142. border-radius: 10px;
  11143. margin-top: 10px;
  11144. min-height: 670px;
  11145. position: relative;
  11146. background: #fff;
  11147. padding: 20px;
  11148. overflow: hidden;
  11149. box-sizing: border-box;
  11150. }
  11151. .smallTaskBorder {
  11152. height: 280px;
  11153. min-height: 280px !important;
  11154. overflow: hidden;
  11155. }
  11156. /* .taskBorder>div {
  11157. padding: 30px 30px 10px;
  11158. } */
  11159. .addTaskBorder {
  11160. /* border: 2px solid #5E9AFC; */
  11161. border-radius: 8px;
  11162. margin-top: 10px;
  11163. cursor: pointer;
  11164. /* height: 50px;
  11165. line-height: 50px; */
  11166. background: #fff;
  11167. padding: 15px 0;
  11168. display: flex;
  11169. align-items: center;
  11170. justify-content: center;
  11171. }
  11172. /* .addTaskBorder>div {
  11173. margin: 0 auto;
  11174. display: flex;
  11175. align-items: center;
  11176. justify-content: center;
  11177. }
  11178. .addTaskBorder>div>img {
  11179. width: 20px;
  11180. }
  11181. .addTaskBorder>div>span {
  11182. font-size: 16px;
  11183. margin-left: 10px;
  11184. color: #5E9AFC;
  11185. } */
  11186. .funBlock {
  11187. display: flex;
  11188. padding: 15px 0;
  11189. flex-direction: row;
  11190. justify-content: center;
  11191. align-items: center;
  11192. position: absolute;
  11193. right: 0;
  11194. bottom: 0;
  11195. background: #fff;
  11196. width: 100%;
  11197. height: 60px;
  11198. z-index: 999;
  11199. }
  11200. .fold {
  11201. display: flex;
  11202. margin: 0 20px;
  11203. flex-direction: row;
  11204. align-items: center;
  11205. cursor: pointer;
  11206. color: #2b7bff;
  11207. }
  11208. .arrow {
  11209. margin-right: 8px;
  11210. width: 16px;
  11211. height: 16px;
  11212. min-width: 16px;
  11213. min-height: 16px;
  11214. background-size: 100% 100%;
  11215. display: block;
  11216. background-image: url(../../assets/icon/new/u_up.png);
  11217. /* border-left: 7px solid transparent;
  11218. border-bottom: 7px solid #717C8D;
  11219. border-top: 0px solid transparent;
  11220. border-right: 7px solid transparent; */
  11221. /* box-sizing: border-box; */
  11222. transition: all .3s;
  11223. }
  11224. .arrowZ {
  11225. transform: rotate(180deg);
  11226. }
  11227. .addToolFun {
  11228. display: flex;
  11229. width: 150px;
  11230. flex-direction: row;
  11231. align-items: center;
  11232. justify-content: center;
  11233. border: 2px dashed #CAD1DC;
  11234. border-radius: 5px;
  11235. height: 50px;
  11236. margin: 35px auto 0;
  11237. cursor: pointer;
  11238. }
  11239. .addToolFun2 {
  11240. display: flex;
  11241. width: 150px;
  11242. border: 2px dashed #CAD1DC;
  11243. flex-direction: row;
  11244. align-items: center;
  11245. justify-content: center;
  11246. border-radius: 5px;
  11247. height: 50px;
  11248. margin: 0 auto 0;
  11249. cursor: pointer;
  11250. }
  11251. .addToolFun2>div,
  11252. .addToolFun>div {
  11253. display: flex;
  11254. line-height: 50px;
  11255. }
  11256. .addToolImg {
  11257. width: 20px;
  11258. height: 20px;
  11259. margin-right: 10px;
  11260. }
  11261. .addToolsDia>>>.el-dialog__body {
  11262. padding: 20px;
  11263. }
  11264. .addToolsDia>>>.el-dialog__body>.toolChoose {
  11265. padding: 0;
  11266. }
  11267. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  11268. padding: 0;
  11269. border-bottom: none;
  11270. margin-bottom: 0;
  11271. }
  11272. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  11273. width: 100%;
  11274. }
  11275. .lineCss>>>.el-form-item__label {
  11276. width: auto !important;
  11277. }
  11278. .lineCss>>>.el-form-item__content {
  11279. margin-left: 50px !important;
  11280. }
  11281. .newSteps {
  11282. display: flex;
  11283. width: 100% !important;
  11284. /* height: 80px; */
  11285. cursor: pointer;
  11286. margin: 10px 0;
  11287. border-radius: 10px;
  11288. flex-direction: row;
  11289. align-content: center;
  11290. justify-content: center;
  11291. align-items: center;
  11292. margin: 0 !important;
  11293. }
  11294. /* 评价样式 */
  11295. .elist_css {
  11296. padding-bottom: 75px !important;
  11297. }
  11298. .elist_title {
  11299. margin-bottom: 10px;
  11300. }
  11301. .elist_input {}
  11302. .elist_input_box {
  11303. display: flex;
  11304. align-items: center;
  11305. flex-wrap: wrap;
  11306. }
  11307. .elist_input_box+.elist_input_box {
  11308. margin-top: 30px;
  11309. }
  11310. .elist_input .elist_input_box input {
  11311. font: inherit;
  11312. color: currentColor;
  11313. width: 100%;
  11314. max-width: calc(100% - 385px);
  11315. padding: 8px 14px;
  11316. display: block;
  11317. min-width: 0;
  11318. outline: none;
  11319. border: 1px solid rgba(0, 0, 0, 0.23);
  11320. border-radius: 4px;
  11321. box-sizing: border-box;
  11322. background: #fff;
  11323. margin: 0 20px 0 0;
  11324. }
  11325. .elist_input .elist_input_box span {
  11326. height: 36px;
  11327. line-height: 36px;
  11328. color: rgb(82, 82, 82);
  11329. min-width: 80px;
  11330. }
  11331. .elist_input .elist_input_box .remove {
  11332. height: 20px;
  11333. width: 20px;
  11334. min-height: 20px;
  11335. min-width: 20px;
  11336. background-size: 100% 100%;
  11337. background-position: unset;
  11338. margin-left: 5px;
  11339. }
  11340. .elist_input_box>>>.el-rate {
  11341. display: flex;
  11342. height: 36px;
  11343. align-items: center;
  11344. }
  11345. .elist_input_box .elist_inptu_text {
  11346. width: 100%;
  11347. display: flex;
  11348. align-items: center;
  11349. margin-top: 10px;
  11350. }
  11351. .elist_input_box .elist_inptu_text input {
  11352. /* width: 500px; */
  11353. width: 100%;
  11354. max-width: unset;
  11355. }
  11356. .elist_input_box>>>.el-rate__icon {
  11357. font-size: 24px;
  11358. }
  11359. .elist_btn {
  11360. margin-top: 10px;
  11361. }
  11362. .lineTitle {
  11363. /* margin-top: 15px; */
  11364. width: 110px;
  11365. font-size: 16px;
  11366. display: flex;
  11367. align-items: center;
  11368. line-height: 20px;
  11369. }
  11370. .lineTitle::before {
  11371. content: '';
  11372. display: block;
  11373. width: 3px;
  11374. height: 20px;
  11375. background: #0061FF;
  11376. border-radius: 3px;
  11377. margin: 0 5px 0 0;
  11378. }
  11379. .courseTop {
  11380. display: flex;
  11381. flex-direction: row;
  11382. justify-content: space-between;
  11383. align-items: center;
  11384. width: calc(100% - 40px);
  11385. margin: 0 auto;
  11386. padding: 10px 0;
  11387. }
  11388. .stepsNav {
  11389. display: flex;
  11390. flex-direction: row;
  11391. justify-content: flex-start;
  11392. align-items: center;
  11393. }
  11394. .stepsWord {
  11395. font-size: 18px;
  11396. color: #fff;
  11397. font-weight: bold;
  11398. margin-left: auto;
  11399. background: rgb(15, 126, 255);
  11400. border-radius: 5px;
  11401. padding: 3px 25px;
  11402. box-sizing: border-box;
  11403. }
  11404. .stepBox {
  11405. width: calc(100% - 40px);
  11406. height: calc(100% - 50px);
  11407. overflow: hidden;
  11408. border-radius: 5px;
  11409. margin: 0 auto;
  11410. }
  11411. .rightBox {
  11412. width: calc(100%);
  11413. background: #F0F2F5;
  11414. /* border-radius: 10px; */
  11415. overflow: auto;
  11416. height: calc(100% - 150px);
  11417. margin: 0 auto;
  11418. position: relative;
  11419. box-sizing: border-box;
  11420. }
  11421. .e_add_top {
  11422. display: flex;
  11423. justify-content: space-between;
  11424. background: #fff;
  11425. position: absolute;
  11426. right: 20px;
  11427. height: 50px;
  11428. align-items: center;
  11429. }
  11430. .e_add_title2 {
  11431. display: flex;
  11432. align-items: center;
  11433. }
  11434. .e_add_title2 span {
  11435. width: 40px;
  11436. }
  11437. .e_add_title {
  11438. display: flex;
  11439. align-items: center;
  11440. color: #b8b8b8;
  11441. font-size: 18px;
  11442. position: relative;
  11443. height: 40px;
  11444. }
  11445. .e_add_title span {
  11446. margin-right: 10px;
  11447. }
  11448. .e_add_title .el_input {
  11449. width: 300px;
  11450. }
  11451. .e_add_title>>>.el-input__inner {
  11452. width: 400px;
  11453. }
  11454. .e_add_btn {}
  11455. .e_add_content {
  11456. display: flex;
  11457. width: 100%;
  11458. }
  11459. .e_add_list {
  11460. background: #fff;
  11461. height: 500px;
  11462. width: 210px;
  11463. position: relative;
  11464. margin: 15px 5px 0 0;
  11465. flex-shrink: 0;
  11466. display: flex;
  11467. flex-direction: column;
  11468. }
  11469. .e_add_list_title {
  11470. font-size: 20px;
  11471. width: 100%;
  11472. box-sizing: border-box;
  11473. padding: 15px 40px;
  11474. text-align: center;
  11475. border-bottom: 1px solid #eaeaea;
  11476. position: relative;
  11477. display: flex;
  11478. align-items: center;
  11479. justify-content: center;
  11480. height: 57px;
  11481. background: #f6f6f6;
  11482. }
  11483. .e_add_list_title span {
  11484. overflow: hidden;
  11485. white-space: nowrap;
  11486. text-overflow: ellipsis;
  11487. }
  11488. .e_add_list_title img {
  11489. position: absolute;
  11490. right: 15px;
  11491. width: 25px;
  11492. cursor: pointer;
  11493. top: 50%;
  11494. transform: translateY(-50%);
  11495. }
  11496. .e_add_list_body {
  11497. height: calc(100% - 187px);
  11498. overflow: auto;
  11499. }
  11500. .e_add_list_child {
  11501. width: 100%;
  11502. display: flex;
  11503. align-items: center;
  11504. justify-content: center;
  11505. position: relative;
  11506. box-sizing: border-box;
  11507. padding: 15px 40px;
  11508. text-align: center;
  11509. }
  11510. .e_add_list_child span {
  11511. overflow: hidden;
  11512. white-space: nowrap;
  11513. text-overflow: ellipsis;
  11514. cursor: pointer;
  11515. }
  11516. .e_add_list_child img {
  11517. position: absolute;
  11518. right: 10px;
  11519. width: 21px;
  11520. cursor: pointer;
  11521. top: 50%;
  11522. transform: translateY(-50%);
  11523. }
  11524. .e_add_list_child+.e_add_list_child {
  11525. border-top: 1px solid #eaeaea;
  11526. }
  11527. .e_add_list_child .active {
  11528. color: #409eff;
  11529. }
  11530. .e_add_list_btn {
  11531. position: absolute;
  11532. bottom: 0;
  11533. height: 50px;
  11534. background: rgb(120, 120, 254);
  11535. width: 100%;
  11536. color: #fff;
  11537. font-size: 16px;
  11538. text-align: center;
  11539. line-height: 50px;
  11540. cursor: pointer;
  11541. }
  11542. .e_add_list_detail {
  11543. position: absolute;
  11544. bottom: 0;
  11545. height: 130px;
  11546. background: rgb(120, 120, 254);
  11547. width: 100%;
  11548. color: #fff;
  11549. font-size: 16px;
  11550. display: flex;
  11551. align-items: center;
  11552. justify-content: center;
  11553. }
  11554. .e_add_list_detail textarea {
  11555. height: 90%;
  11556. width: 95%;
  11557. border: none;
  11558. resize: none;
  11559. outline: none;
  11560. padding: 5px;
  11561. box-sizing: border-box;
  11562. }
  11563. .e_add_list_pbox {
  11564. width: 100%;
  11565. }
  11566. .e_add_list_pbox_title {
  11567. height: 50px;
  11568. background: #fff;
  11569. display: flex;
  11570. align-items: center;
  11571. width: 100%;
  11572. box-sizing: border-box;
  11573. padding: 0 20px;
  11574. flex-direction: row;
  11575. flex-wrap: wrap;
  11576. }
  11577. .type_title {
  11578. font-size: 18px;
  11579. font-weight: 700;
  11580. }
  11581. .type_content {
  11582. font-size: 16px;
  11583. margin-left: 30px;
  11584. }
  11585. .type_content span+span {
  11586. margin-left: 20px;
  11587. }
  11588. .type_content span {
  11589. cursor: pointer;
  11590. padding-bottom: 5px;
  11591. box-sizing: border-box;
  11592. }
  11593. .type_content .active {
  11594. color: #409eff;
  11595. border-bottom: 2px solid #409eff;
  11596. }
  11597. .e_add_list_pbox_content {
  11598. height: calc(100% - 50px);
  11599. display: flex;
  11600. align-items: center;
  11601. width: 100%;
  11602. background: #fff;
  11603. }
  11604. .mbCss {
  11605. width: 100%;
  11606. display: flex;
  11607. flex-direction: row;
  11608. flex-wrap: nowrap;
  11609. align-content: center;
  11610. align-items: flex-start;
  11611. justify-content: flex-start;
  11612. }
  11613. .pjCss {
  11614. /* width: 42%; */
  11615. width: calc(100% - 55%);
  11616. display: flex;
  11617. flex-direction: column;
  11618. flex-wrap: nowrap;
  11619. align-items: flex-start;
  11620. }
  11621. .e_box {
  11622. /* display: flex; */
  11623. flex-wrap: wrap;
  11624. max-height: 500px;
  11625. align-items: flex-start;
  11626. overflow: auto;
  11627. width:100%;
  11628. }
  11629. .e_card {
  11630. border: 1px solid #ccc;
  11631. background: #fff;
  11632. margin-right: 20px;
  11633. width: 270px;
  11634. display: flex;
  11635. flex-direction: column;
  11636. align-items: center;
  11637. border-radius: 5px;
  11638. margin-top: 10px;
  11639. text-align: center;
  11640. }
  11641. .e_card_picture {
  11642. margin: 10px 0;
  11643. }
  11644. .e_card_picture>img {
  11645. width: 50px;
  11646. }
  11647. .e_card_name {
  11648. width: 100%;
  11649. padding: 0 10px;
  11650. box-sizing: border-box;
  11651. margin-bottom: 10px;
  11652. overflow: hidden;
  11653. text-overflow: ellipsis;
  11654. white-space: nowrap;
  11655. }
  11656. .e_card_time {
  11657. width: 100%;
  11658. padding: 0 10px;
  11659. box-sizing: border-box;
  11660. font-size: 15px;
  11661. color: #c3c3c3;
  11662. margin-bottom: 10px;
  11663. }
  11664. .e_card_btn {
  11665. height: 40px;
  11666. display: flex;
  11667. align-items: center;
  11668. width: 100%;
  11669. background: rgb(244, 244, 244);
  11670. }
  11671. .e_card_btn:hover {
  11672. background: rgb(221 221 221);
  11673. }
  11674. .e_card_btn span {
  11675. flex: 1 1 auto;
  11676. text-align: center;
  11677. cursor: pointer;
  11678. }
  11679. .addEva {
  11680. border: 1px solid #ccc;
  11681. background: #fff;
  11682. margin-right: 20px;
  11683. width: 270px;
  11684. height: 149px;
  11685. display: flex;
  11686. flex-direction: column;
  11687. align-items: center;
  11688. border-radius: 5px;
  11689. margin-top: 10px;
  11690. text-align: center;
  11691. cursor: pointer;
  11692. justify-content: center;
  11693. }
  11694. .addEva>img {
  11695. width: 50px;
  11696. object-fit: cover;
  11697. }
  11698. .uploadFm {
  11699. border: 1px dashed #ccc;
  11700. width: 100%;
  11701. height: 140px;
  11702. position: relative;
  11703. cursor: pointer;
  11704. display: flex;
  11705. flex-direction: column;
  11706. justify-content: center;
  11707. align-items: center;
  11708. font-size: 14px;
  11709. color: #6e6e6e;
  11710. position:relative;
  11711. }
  11712. .cover_p{
  11713. width: 100% !important;
  11714. height: 100%;
  11715. object-fit: cover;
  11716. }
  11717. .uploadFm2:hover .cover_mask{
  11718. display: flex !important;
  11719. }
  11720. .cover_mask{
  11721. display:none;
  11722. width:100%;
  11723. height:100%;
  11724. position:absolute;
  11725. background:#00000054;
  11726. align-items: center;
  11727. justify-content: center;
  11728. flex-direction: column;
  11729. }
  11730. .cover_mask > img{
  11731. width: 30px;
  11732. }
  11733. .cover_mask > span{
  11734. color: #fff;
  11735. font-size: 12px;
  11736. }
  11737. .uploadFm>img {
  11738. width: 50px;
  11739. }
  11740. .fileCss {
  11741. width: 100%;
  11742. display: flex;
  11743. flex-direction: row;
  11744. flex-wrap: nowrap;
  11745. justify-content: space-around;
  11746. align-items: center;
  11747. padding-top: 15px;
  11748. }
  11749. .fileCss>div {
  11750. display: flex;
  11751. flex-direction: column;
  11752. align-items: center;
  11753. }
  11754. .fileCss .spanName {
  11755. margin-top: 10px
  11756. }
  11757. .sysPicBox {
  11758. display: flex;
  11759. flex-direction: row;
  11760. flex-wrap: wrap;
  11761. align-content: flex-start;
  11762. height: 435px;
  11763. overflow: auto;
  11764. position: relative;
  11765. }
  11766. .picNone {
  11767. position: absolute;
  11768. left: 50%;
  11769. top: 45%;
  11770. transform: translate(-50%, -50%);
  11771. width: fit-content;
  11772. color: #9c9c9c;
  11773. }
  11774. .sysPic {
  11775. width: 200px;
  11776. height: 115px;
  11777. margin: 0 20px 20px 0;
  11778. cursor: pointer;
  11779. }
  11780. .sysPic>img,
  11781. .isSysPic>img,
  11782. .deletePic>img {
  11783. width: 100%;
  11784. height: 100%;
  11785. object-fit: cover;
  11786. }
  11787. .isSysPic {
  11788. width: 200px;
  11789. height: 115px;
  11790. position: relative;
  11791. }
  11792. .deletePic {
  11793. width: 20px;
  11794. height: 20px;
  11795. position: absolute;
  11796. top: 0;
  11797. right: 0;
  11798. cursor: pointer;
  11799. }
  11800. .select_box1 {
  11801. height: 100%;
  11802. }
  11803. .select_box1_img {
  11804. background: #fff;
  11805. border-radius: 5px;
  11806. padding: 15px;
  11807. box-sizing: border-box;
  11808. margin-bottom: 20px;
  11809. }
  11810. .select_box1_title {
  11811. padding: 0 0 15px 0;
  11812. border-bottom: 1px solid #eee;
  11813. margin-bottom: 15px;
  11814. }
  11815. .select_box1_title span:nth-child(1) {
  11816. font-size: 16px;
  11817. margin-right: 20px;
  11818. color: #000;
  11819. }
  11820. .select_box1_title span:nth-child(2) {
  11821. font-size: 14px;
  11822. color: rgb(112, 112, 112);
  11823. }
  11824. .select_box1_add_img {}
  11825. .select_box1_select {
  11826. background: #fff;
  11827. border-radius: 5px;
  11828. padding: 15px;
  11829. box-sizing: border-box;
  11830. height: calc(100% - 200px);
  11831. overflow: auto;
  11832. }
  11833. .select_box2 {
  11834. height: 100%;
  11835. }
  11836. .select_box2_title {
  11837. background: #fff;
  11838. border-radius: 5px;
  11839. padding: 5px 10px;
  11840. box-sizing: border-box;
  11841. margin-bottom: 10px;
  11842. }
  11843. .select_box2_box {
  11844. display: flex;
  11845. height: calc(100% - 30px);
  11846. }
  11847. .select_box2_img {
  11848. width: calc(100% - 310px);
  11849. height: 100%;
  11850. overflow: auto;
  11851. background: #fff;
  11852. border-radius: 5px;
  11853. }
  11854. .select_box2_img img {
  11855. width: 100%;
  11856. }
  11857. .select_box2_answer {
  11858. background: #fff;
  11859. margin-left: 10px;
  11860. border-radius: 5px;
  11861. width: 300px;
  11862. overflow: auto;
  11863. height: 100%;
  11864. display: flex;
  11865. flex-direction: column;
  11866. align-items: center;
  11867. padding-top: 10px;
  11868. box-sizing: border-box;
  11869. }
  11870. .select_box2_answer_box {
  11871. margin: 0 0 10px 0;
  11872. width: 85%;
  11873. }
  11874. .rate_textarea {
  11875. font: inherit;
  11876. color: currentColor;
  11877. width: 100%;
  11878. padding: 8px 14px;
  11879. display: block;
  11880. min-width: 0;
  11881. outline: none;
  11882. border: 1px solid rgba(0, 0, 0, 0.23);
  11883. border-radius: 4px;
  11884. box-sizing: border-box;
  11885. background: #fff;
  11886. margin: 0 20px 0 0;
  11887. resize: none;
  11888. }
  11889. .select_answer_title {
  11890. text-align: left;
  11891. width: 85%;
  11892. margin-bottom: 10px;
  11893. font-size: 18px;
  11894. color: #8e8e8e;
  11895. }
  11896. .mask {
  11897. background-color: rgb(0 0 0 / 30%);
  11898. /* position: fixed; */
  11899. position: absolute;
  11900. top: 0;
  11901. left: 0;
  11902. width: 100%;
  11903. height: 100%;
  11904. z-index: 90;
  11905. display: flex;
  11906. align-items: center;
  11907. justify-content: center;
  11908. }
  11909. .progressBox {
  11910. width: 300px;
  11911. height: 150px;
  11912. background: #fff;
  11913. border-radius: 10px;
  11914. box-shadow: 0 0 6px 1px #bfbfbf;
  11915. display: flex;
  11916. align-items: center;
  11917. justify-content: center;
  11918. flex-direction: column;
  11919. position: relative;
  11920. color: #6c6c6c;
  11921. }
  11922. .progressBox>>>.el-progress-bar__outer {
  11923. background-color: #d1dfff !important;
  11924. }
  11925. .progressBox .lbox {
  11926. height: 50px;
  11927. font-size: 19px;
  11928. display: flex;
  11929. align-items: center;
  11930. color: #747474;
  11931. }
  11932. .progressBox .lbox img {
  11933. width: 40px;
  11934. margin-right: 20px;
  11935. }
  11936. .closeCss {
  11937. position: absolute;
  11938. top: 8px;
  11939. right: 8px;
  11940. cursor: pointer;
  11941. width: 20px;
  11942. height: 20px;
  11943. }
  11944. .closeCss>img {
  11945. width: 100%;
  11946. height: 100%;
  11947. }
  11948. .updateTips::before {
  11949. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  11950. font-size: 14px;
  11951. margin-left: 20px;
  11952. font-weight: 400;
  11953. color: #ff3a3a;
  11954. margin-bottom: 10px;
  11955. display: block;
  11956. }
  11957. .updateMask {
  11958. width: 100%;
  11959. z-index: 3;
  11960. top: 0;
  11961. position: absolute;
  11962. /* background-color: rgba(0,0,0,.3); */
  11963. }
  11964. .t_j_box {
  11965. display: flex;
  11966. }
  11967. .t_j_box span:nth-child(1) {
  11968. width: 15%;
  11969. overflow: hidden;
  11970. margin-right: 10px;
  11971. text-overflow: ellipsis;
  11972. white-space: nowrap;
  11973. }
  11974. .t_j_box span:nth-child(2) {
  11975. width: 30%;
  11976. overflow: hidden;
  11977. text-overflow: ellipsis;
  11978. margin-right: 10px;
  11979. }
  11980. .t_j_box span:nth-child(3) {
  11981. max-width: calc(55% - 20px);
  11982. overflow: hidden;
  11983. text-overflow: ellipsis;
  11984. }
  11985. .sentenBox {
  11986. background: #fff;
  11987. height: 600px;
  11988. overflow: auto;
  11989. background-image: url("../../assets/icon/conSentences/csBg.png");
  11990. background-position: 102%;
  11991. background-repeat: no-repeat;
  11992. background-size: 60%;
  11993. }
  11994. .sentenBox>.sentenContent {
  11995. padding-bottom: 10px;
  11996. width: 97%;
  11997. margin: 0 auto;
  11998. }
  11999. .sentenBox>.sentenContent+.sentenContent {
  12000. border-top: 1px solid #cbcbcb;
  12001. }
  12002. .addSen {
  12003. background: #409efe;
  12004. width: 90px;
  12005. color: #fff;
  12006. height: 35px;
  12007. text-align: center;
  12008. line-height: 35px;
  12009. border-radius: 5px;
  12010. float: right;
  12011. margin: 10px 20px 0 0;
  12012. cursor: pointer;
  12013. }
  12014. .sentenTop {
  12015. display: flex;
  12016. flex-direction: row;
  12017. flex-wrap: nowrap;
  12018. align-items: center;
  12019. }
  12020. .sentenTop::before {
  12021. content: attr(index);
  12022. background: #3681fc;
  12023. border-radius: 50%;
  12024. color: #fff;
  12025. width: 25px;
  12026. height: 25px;
  12027. min-width: 25px;
  12028. min-height: 25px;
  12029. text-align: center;
  12030. line-height: 25px;
  12031. margin-right: 5px;
  12032. }
  12033. .sentenTop>div:nth-child(2) {
  12034. width: 300px;
  12035. margin: 0 15px;
  12036. }
  12037. .sentenTop>div:nth-child(3) {
  12038. background: #409efe;
  12039. color: #fff;
  12040. width: 65px;
  12041. height: 35px;
  12042. text-align: center;
  12043. line-height: 35px;
  12044. border-radius: 5px;
  12045. cursor: pointer;
  12046. }
  12047. .cardList {
  12048. padding: 30px 0 20px 0;
  12049. display: flex;
  12050. flex-direction: row;
  12051. flex-wrap: wrap;
  12052. align-items: center;
  12053. box-sizing: border-box;
  12054. border-bottom: 1px solid #f4f4f4;
  12055. width: 98%;
  12056. margin: 0 auto;
  12057. }
  12058. .rightCardList {
  12059. display: flex;
  12060. flex-wrap: wrap;
  12061. }
  12062. .cardBox {
  12063. display: flex;
  12064. flex-direction: row;
  12065. flex-wrap: wrap;
  12066. align-items: center;
  12067. align-content: center;
  12068. }
  12069. .isCard,
  12070. .isCard1 {
  12071. width: auto;
  12072. padding: 0 20px;
  12073. height: 65px;
  12074. text-align: center;
  12075. line-height: 65px;
  12076. font-size: 14px;
  12077. cursor: pointer;
  12078. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  12079. background-size: 100% 100%;
  12080. position: relative;
  12081. z-index: 99;
  12082. }
  12083. .isCard1 {
  12084. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  12085. }
  12086. .isCard:hover .deleteWord {
  12087. display: block;
  12088. }
  12089. .isCard>div:nth-child(1),
  12090. .isCard1>div:nth-child(1) {
  12091. white-space: nowrap;
  12092. overflow: hidden;
  12093. text-overflow: ellipsis;
  12094. width: 100%;
  12095. margin: 0 auto;
  12096. }
  12097. .card {
  12098. width: 140px;
  12099. height: 65px;
  12100. }
  12101. .card>img {
  12102. width: 100%;
  12103. height: 100%;
  12104. }
  12105. .rightCardBox {
  12106. width: 98%;
  12107. margin: 10px auto 0;
  12108. }
  12109. .rightCardBox>div:nth-child(1) {
  12110. margin-bottom: 10px;
  12111. }
  12112. .cardCss {
  12113. display: flex;
  12114. flex-direction: column;
  12115. flex-wrap: nowrap;
  12116. align-items: center;
  12117. border-bottom: 3px solid #b4c3d3;
  12118. padding: 0 0 5px 0;
  12119. /* margin-right: 10px; */
  12120. }
  12121. .cardCss>div:nth-child(2) {
  12122. background: #5b7b9d;
  12123. color: #fff;
  12124. width: 20px;
  12125. height: 20px;
  12126. border-radius: 50%;
  12127. text-align: center;
  12128. line-height: 20px;
  12129. }
  12130. .sentenTopBox {
  12131. display: flex;
  12132. flex-direction: row;
  12133. flex-wrap: nowrap;
  12134. align-items: center;
  12135. justify-content: space-between;
  12136. padding: 55px 0 0 20px;
  12137. box-sizing: border-box;
  12138. width: 85%;
  12139. }
  12140. .stepsBottom {
  12141. width: 100%;
  12142. box-shadow: 0 0 10px 10px #f7f7f7;
  12143. /* background: #f7f7f7; */
  12144. border-radius: 10px;
  12145. overflow: hidden;
  12146. height: 100%
  12147. }
  12148. .navTop {
  12149. background: #53749b;
  12150. color: #fff;
  12151. height: 40px;
  12152. line-height: 40px;
  12153. padding-left: 15px;
  12154. font-size: 18px;
  12155. }
  12156. .navBottom {
  12157. /* background: #6b91b7; */
  12158. height: 100%;
  12159. overflow: auto;
  12160. }
  12161. .navTask {
  12162. display: flex;
  12163. flex-direction: row;
  12164. flex-wrap: nowrap;
  12165. align-items: center;
  12166. padding: 10px 10px 10px 0;
  12167. cursor: pointer;
  12168. background: #ffffff;
  12169. width: 95%;
  12170. margin: 10px auto 0;
  12171. box-sizing: border-box;
  12172. border-radius: 5px;
  12173. flex-wrap: wrap;
  12174. position: relative;
  12175. }
  12176. .navTask::before {
  12177. content: '';
  12178. display: block;
  12179. width: 16px;
  12180. height: 16px;
  12181. background-image: url(../../assets/icon/new/icon_arrow.png);
  12182. background-size: 100%;
  12183. margin-left: 23px;
  12184. }
  12185. .noImage::before {
  12186. display: none;
  12187. background-image: unset !important;
  12188. }
  12189. .isNavOpen::before {
  12190. background-image: url(../../assets/icon/new/icon_arrow_a.png) !important;
  12191. }
  12192. .dragOverTop {
  12193. border-top: 2px solid #0061FF !important;
  12194. border-radius: 0 !important;
  12195. margin-top: 10px;
  12196. }
  12197. .dragOverBottom {
  12198. border-bottom: 2px solid #0061FF !important;
  12199. border-radius: 0 !important;
  12200. margin-top: 10px;
  12201. }
  12202. .dragOverTop2 {
  12203. border-top: 2px solid #0061FF !important;
  12204. border-radius: 0 !important;
  12205. }
  12206. .dragOverBottom2 {
  12207. border-bottom: 2px solid #0061FF !important;
  12208. border-radius: 0 !important;
  12209. }
  12210. .isNavTask {
  12211. /* background: #3681FC; */
  12212. background: #EEF3FB;
  12213. }
  12214. .isNavTask>.chapter_upload_drag {
  12215. background-image: url(../../assets/icon/new/icon_course_drag_active.png) !important;
  12216. }
  12217. .isNavTask .nt_taskName {
  12218. /* color: #fff !important; */
  12219. font-weight: bold !important;
  12220. color: #0061FF !important;
  12221. }
  12222. .isNavTask .nt_taskTitle {
  12223. /* color: #AECCFE !important; */
  12224. font-weight: bold !important;
  12225. color: #0061FF !important;
  12226. }
  12227. .navTask .nt_taskBox {
  12228. width: calc(100% - 40px);
  12229. padding: 0 0 0 5px;
  12230. box-sizing: border-box;
  12231. box-sizing: border-box;
  12232. display: flex;
  12233. flex-direction: row;
  12234. flex-wrap: nowrap;
  12235. align-items: baseline;
  12236. }
  12237. .navTask .nt_taskTitle {
  12238. /* color: #717C8D; */
  12239. color: #060E17;
  12240. line-height: 25px;
  12241. font-size: 16px;
  12242. /* min-width: 66px; */
  12243. }
  12244. .navTask .nt_taskName {
  12245. /* color: #fff; */
  12246. /* max-width: 130px; */
  12247. /* width: 100%; */
  12248. max-width: calc(100% - 66px);
  12249. white-space: nowrap;
  12250. overflow: hidden;
  12251. text-overflow: ellipsis;
  12252. font-size: 16px;
  12253. color: #060E17;
  12254. /* color: #0E1E33; */
  12255. }
  12256. .gjBox {
  12257. width: calc(100% - 25px);
  12258. padding: 0 0 0 0;
  12259. box-sizing: border-box;
  12260. border-left: 1px solid #CAD1DC;
  12261. margin-left: 25px;
  12262. }
  12263. .gjBox>div {
  12264. display: flex;
  12265. align-items: center;
  12266. }
  12267. .gjBox>div::before {
  12268. content: '';
  12269. height: 1px;
  12270. width: 10px;
  12271. background: #CAD1DC;
  12272. display: block;
  12273. margin-right: 5px;
  12274. }
  12275. .gjCss {
  12276. display: flex;
  12277. flex-direction: row;
  12278. flex-wrap: nowrap;
  12279. align-items: center;
  12280. padding: 15px 0;
  12281. box-sizing: border-box;
  12282. font-size: 14px;
  12283. cursor: pointer;
  12284. }
  12285. .isGjCss {
  12286. color: #0061ff;
  12287. }
  12288. .groupBox {}
  12289. .groupContent+.groupContent {
  12290. margin-top: 30px;
  12291. }
  12292. .groupTitle {
  12293. font-size: 24px;
  12294. color: rgb(80, 80, 80);
  12295. margin-bottom: 20px;
  12296. }
  12297. .groupName {
  12298. display: flex;
  12299. align-items: center;
  12300. }
  12301. .groupn {
  12302. font-size: 15px;
  12303. margin-right: 10px;
  12304. }
  12305. .groupName+.groupName {
  12306. margin-top: 15px;
  12307. }
  12308. .groupBtn {
  12309. margin-left: 10px;
  12310. }
  12311. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  12312. text-align: left;
  12313. }
  12314. .radioBox>div {
  12315. margin: 10px 0 0 10px;
  12316. }
  12317. .radioBox>>>.el-radio__input,
  12318. .radioBox>>>.el-checkbox__inner {
  12319. margin-left: 10px;
  12320. }
  12321. .radioBox>>>.el-radio__label,
  12322. .radioBox>>>.el-checkbox__label {
  12323. display: flex;
  12324. align-items: center;
  12325. }
  12326. .inImg {
  12327. width: 50px;
  12328. }
  12329. .inImg>img {
  12330. width: 100%;
  12331. height: 100%;
  12332. object-fit: cover;
  12333. }
  12334. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  12335. height: auto;
  12336. padding: 10px;
  12337. margin: 0;
  12338. }
  12339. .upCss>>>.el-upload-list {
  12340. width: 100%;
  12341. }
  12342. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  12343. width: 100%;
  12344. height: 120px;
  12345. object-fit: contain;
  12346. background: unset;
  12347. margin-left: 0;
  12348. }
  12349. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  12350. display: none;
  12351. }
  12352. .tcMember+.tcMember::before {
  12353. content: "、";
  12354. }
  12355. .xzUpImg {
  12356. width: 25px;
  12357. height: 25px;
  12358. min-width: 25px;
  12359. min-height: 25px;
  12360. cursor: pointer;
  12361. margin: 0 10px;
  12362. }
  12363. .xzUpImg>img {
  12364. width: 100%;
  12365. height: 100%;
  12366. }
  12367. .closeCss {
  12368. position: absolute;
  12369. top: 8px;
  12370. right: 8px;
  12371. cursor: pointer;
  12372. width: 20px;
  12373. height: 20px;
  12374. }
  12375. .closeCss>img {
  12376. width: 100%;
  12377. height: 100%;
  12378. }
  12379. .moveBtn {
  12380. display: flex;
  12381. flex-direction: row;
  12382. flex-wrap: nowrap;
  12383. align-items: center;
  12384. width: 55px;
  12385. }
  12386. .timuUpImg {
  12387. display: flex;
  12388. flex-direction: row;
  12389. align-items: center;
  12390. width: 100%;
  12391. margin-right: 10px;
  12392. }
  12393. .timuUpImg>div:nth-child(1) {
  12394. margin-right: 10px;
  12395. display: flex;
  12396. align-items: center;
  12397. width: 100%;
  12398. }
  12399. .timuImgBox {
  12400. margin: 10px 0;
  12401. display: flex;
  12402. flex-direction: column;
  12403. flex-wrap: wrap;
  12404. align-items: flex-start;
  12405. }
  12406. .timuImg {
  12407. width: 100px;
  12408. margin: 5px 0;
  12409. cursor: pointer;
  12410. position: relative;
  12411. }
  12412. .timuImg:hover .deleteWord {
  12413. display: block;
  12414. }
  12415. .deleteWord {
  12416. width: 25px;
  12417. height: 25px;
  12418. position: absolute;
  12419. right: -5px;
  12420. top: -5px;
  12421. cursor: pointer;
  12422. display: none;
  12423. }
  12424. .timuImg>img,
  12425. .deleteWord>img {
  12426. width: 100%;
  12427. height: 100%;
  12428. object-fit: cover;
  12429. }
  12430. .e_add_delete {
  12431. cursor: pointer;
  12432. margin-left: 10px;
  12433. }
  12434. .pType_box {
  12435. margin-top: 30px;
  12436. align-items: flex-end;
  12437. }
  12438. .noneBox {
  12439. height: 200px;
  12440. width: 100%;
  12441. display: flex;
  12442. align-items: center;
  12443. justify-content: center;
  12444. flex-direction: column;
  12445. /* margin-top: 150px; */
  12446. }
  12447. .noneBox>img {
  12448. width: 95px;
  12449. }
  12450. .noneBox>span {
  12451. margin-top: 10px;
  12452. color: #717C8D;
  12453. }
  12454. .rb_c_box {
  12455. width: 100%;
  12456. height: 100%;
  12457. display: flex;
  12458. /* padding: 20px; */
  12459. box-sizing: border-box;
  12460. justify-content: space-between;
  12461. }
  12462. .rb_c_box_left {
  12463. height: 100%;
  12464. background: #fff;
  12465. width: 270px;
  12466. min-width: 270px;
  12467. border-radius: 8px;
  12468. margin-right: 10px;
  12469. }
  12470. .rb_c_box_right {
  12471. height: 100%;
  12472. width: calc(100%);
  12473. overflow: hidden;
  12474. }
  12475. .rb_c_box_btn {
  12476. display: flex;
  12477. justify-content: flex-start;
  12478. height: 50px;
  12479. align-items: center;
  12480. }
  12481. .rb_c_box_right>.basic_box {
  12482. /* background: #fff; */
  12483. border-radius: 0;
  12484. height: calc(100% - 0px);
  12485. overflow: auto;
  12486. padding: 0;
  12487. }
  12488. .textarea_css {
  12489. display: block;
  12490. resize: none;
  12491. padding: 10px 15px;
  12492. line-height: 1.5;
  12493. box-sizing: border-box;
  12494. width: 100%;
  12495. font-size: 14px;
  12496. color: #606266;
  12497. background-color: #FFF;
  12498. background-image: none;
  12499. border: 1px solid #DCDFE6;
  12500. border-radius: 4px;
  12501. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  12502. outline: none;
  12503. overflow: hidden;
  12504. height: 46px;
  12505. font-family: 'Microsoft YaHei';
  12506. }
  12507. .textarea_css::-webkit-input-placeholder {
  12508. color: #C0C4CC
  12509. }
  12510. .textarea_css:focus {
  12511. border-color: #409EFF;
  12512. outline: 0;
  12513. }
  12514. .addEditor>>>.text {
  12515. height: auto;
  12516. min-height: 100px;
  12517. }
  12518. .addEditor>>>.w-e-text-container {
  12519. min-height: 100px;
  12520. }
  12521. .moveBtn2 {
  12522. flex-direction: column;
  12523. width: fit-content;
  12524. margin: 0 10px 0 10px;
  12525. }
  12526. .moveBtn2 .chapter_upload_down,
  12527. .moveBtn2 .chapter_upload_up {
  12528. width: 16px;
  12529. height: 16px;
  12530. }
  12531. .moveBtn2 .chapter_upload_up::after,
  12532. .moveBtn2 .chapter_upload_down::after {
  12533. width: 10px;
  12534. height: 10px;
  12535. }
  12536. .fullStyle>>>.el-dialog__body {
  12537. height: calc(100% - 125px) !important;
  12538. box-sizing: border-box;
  12539. }
  12540. .fullStyle>>>.el-dialog {
  12541. width: 100% !important;
  12542. max-width: 100% !important;
  12543. height: 100% !important;
  12544. margin: 0 !important;
  12545. }
  12546. .fullStyle {
  12547. width: 100% !important;
  12548. max-width: 100% !important;
  12549. height: 100% !important;
  12550. margin: 0 auto !important;
  12551. }
  12552. .wb_j_box_btn {
  12553. width: calc(100% - 30px);
  12554. display: flex;
  12555. height: 40px;
  12556. border: 1.5px solid #CAD1DC;
  12557. border-radius: 4px;
  12558. box-sizing: border-box;
  12559. align-items: center;
  12560. font-size: 14px;
  12561. cursor: pointer;
  12562. overflow: hidden;
  12563. }
  12564. .wb_j_box_btn:hover {
  12565. border: 1.5px solid #0061FF;
  12566. }
  12567. .wb_j_box_title {
  12568. background: #F0F4FA;
  12569. height: 100%;
  12570. line-height: 40px;
  12571. width: 90px;
  12572. text-align: center;
  12573. color: #060E17;
  12574. border-right: 1.5px solid #CAD1DC;
  12575. box-sizing: border-box;
  12576. }
  12577. .wb_j_box_btn_c {
  12578. width: calc(100% - 90px);
  12579. padding: 0 35px 0 10px;
  12580. box-sizing: border-box;
  12581. position: relative;
  12582. }
  12583. .wb_j_box_span {
  12584. width: 100%;
  12585. overflow: hidden;
  12586. white-space: nowrap;
  12587. text-overflow: ellipsis;
  12588. word-wrap: break-word;
  12589. color: #717C8D;
  12590. }
  12591. .wb_j_box_arrow {
  12592. content: '';
  12593. width: 14px;
  12594. height: 14px;
  12595. background: url(../../assets/icon/new/u_arrow.png);
  12596. background-size: 100% 100%;
  12597. position: absolute;
  12598. right: 12px;
  12599. top: 50%;
  12600. transform: translateY(-50%);
  12601. }
  12602. .check_classBox {
  12603. height: 400px;
  12604. display: flex;
  12605. border-top: 1.5px solid #E7EBF1;
  12606. border-bottom: 1.5px solid #E7EBF1;
  12607. }
  12608. .check_class_right {
  12609. width: 130px;
  12610. border-right: 1px solid #E7EBF1;
  12611. display: flex;
  12612. align-items: center;
  12613. flex-direction: column;
  12614. height: 100%;
  12615. overflow: auto;
  12616. padding: 15px 0;
  12617. box-sizing: border-box;
  12618. }
  12619. .check_class {
  12620. width: 85%;
  12621. border-radius: 5px;
  12622. height: 30px;
  12623. line-height: 30px;
  12624. text-align: center;
  12625. padding: 0 10px;
  12626. box-sizing: border-box;
  12627. cursor: pointer;
  12628. white-space: nowrap;
  12629. overflow: hidden;
  12630. text-overflow: ellipsis;
  12631. }
  12632. .check_class.activeX {
  12633. background: #E0EAFB;
  12634. color: #3681FC;
  12635. font-weight: 700;
  12636. }
  12637. .check_class+.check_class {
  12638. margin-top: 15px;
  12639. }
  12640. .check_class_left {
  12641. background: #FAFAFA;
  12642. width: calc(100% - 130px);
  12643. padding: 15px;
  12644. box-sizing: border-box;
  12645. }
  12646. .check_class_all_box {
  12647. display: flex;
  12648. margin-bottom: 10px;
  12649. }
  12650. .all_check {
  12651. display: flex;
  12652. align-items: center;
  12653. padding: 2px 0 0;
  12654. margin-left: 10px;
  12655. }
  12656. .all_check>>>.el-checkbox__label {
  12657. line-height: 18px;
  12658. }
  12659. .check_class_left_title {
  12660. font-size: 16px;
  12661. font-weight: 700;
  12662. }
  12663. .check_class_item {
  12664. display: flex;
  12665. flex-wrap: wrap;
  12666. height: calc(100% - 45px);
  12667. overflow: auto;
  12668. justify-content: flex-start;
  12669. align-items: flex-start;
  12670. align-content: flex-start;
  12671. }
  12672. .class_item:first-child {
  12673. /* margin: 0 15px 15px 67px; */
  12674. }
  12675. .class_item {
  12676. margin: 0 15px 15px 0;
  12677. }
  12678. .class_item:hover>>>.el-checkbox__label {
  12679. color: #409EFF;
  12680. }
  12681. .class_item>>>.el-checkbox__label {
  12682. color: #0E1E33;
  12683. }
  12684. .class_item:hover>>>.el-checkbox__inner {
  12685. border-color: #409EFF;
  12686. }
  12687. .class_item>>>.el-checkbox,
  12688. .class_item>>>.el-checkbox__input {
  12689. display: flex;
  12690. align-items: center;
  12691. }</style>