addCourse.vue 482 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420
  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 style="display: flex; margin-top: 20px; position: relative"> -->
  6. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  7. <div class="courseTop">
  8. <div class="stepsNav">
  9. <el-breadcrumb separator-class="el-icon-arrow-right">
  10. <el-breadcrumb-item :to="{
  11. path:
  12. '/course?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org +
  18. '&role=' +
  19. role,
  20. }">课程管理</el-breadcrumb-item>
  21. <el-breadcrumb-item>
  22. <span style="color: rgb(15, 126, 255)">添加课程</span>
  23. </el-breadcrumb-item>
  24. </el-breadcrumb>
  25. </div>
  26. <div class="r_pub_button_retrun" @click="lastSteps()">返回</div>
  27. </div>
  28. <div class="rightBox" style="padding: 0;"
  29. :style="{ height: (!isBtnDisplay) ? 'calc(100% - 50px)' : 'calc(100% - 120px)' }" v-if="this.steps == 1"
  30. @mousewheel="scrollChange">
  31. <div class="updateMask" :style="{
  32. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  33. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  34. <div class="whiteBg" style="background:unset;padding: 0;">
  35. <div>
  36. <div class="basic_box" style="padding: 0;">
  37. <div class="big_box">
  38. <div class="left_first">
  39. <div :class="{
  40. updateTips: cid && userid != courseUserid && role != '1',
  41. }">
  42. <div style="width: 100%;">
  43. <div class="course_input_box">
  44. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  45. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  46. 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;" />
  47. <!-- background: #f6f6f6; -->
  48. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  49. style="justify-content: center;width: 200px;"></el-switch>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  54. <span>类型</span>
  55. <!-- 学科+ 主题+ 未来+ -->
  56. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  57. style="display: flex; align-items: center">
  58. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  59. <el-radio :label="item.name">{{
  60. item.name
  61. }}</el-radio>
  62. </div>
  63. </el-radio-group>
  64. </div>
  65. <div class="both">
  66. <div class="choose">
  67. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  68. <span v-if="CourseTypeJson[item.id].length > 0 &&
  69. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  70. ? pTypeCheck.indexOf(item.id) != -1
  71. : true)
  72. ">{{ item.name }}:</span>
  73. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  74. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  75. ? pTypeCheck.indexOf(item.id) != -1
  76. : true)
  77. ">
  78. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  79. item1.name }}</el-checkbox>
  80. </el-checkbox-group>
  81. <!-- <div
  82. v-else
  83. style="font-size: 14px; margin-left: -8px"
  84. >
  85. 暂无
  86. </div> -->
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="right_first">
  92. <!-- <div class="ai_box">
  93. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  94. </div> -->
  95. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  96. <div style="width: 100%;">
  97. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  98. <img src="../../../assets/icon/addPoster.png" alt="" />
  99. <div>点击添加封面</div>
  100. </div>
  101. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  102. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  103. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  104. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  105. <i class="el-icon-plus"></i>
  106. </el-upload>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <div class="whiteBg" style="margin-top: 10px">
  114. <div class="wb_j_box">
  115. <div class="wb_j_box_content">
  116. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  117. (dialogVisibleClass = true),
  118. (classSearch = ''),
  119. (gradeId = ''),
  120. getClass()
  121. ">添加班级</button>
  122. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  123. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  124. getClassC(tc) }}</span>
  125. </div> -->
  126. <div class="wb_j_box_btn" @click="
  127. (dialogVisibleClass = true),
  128. (classSearch = ''),
  129. (gradeId = ''),
  130. getClass()
  131. ">
  132. <div class="wb_j_box_title">授课班级</div>
  133. <div class="wb_j_box_btn_c">
  134. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  135. v-if="checkboxList2.length" popper-class="text_tooltip2">
  136. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  137. </el-tooltip>
  138. <div v-else class="wb_j_box_span">请选择授课班级</div>
  139. <div class="wb_j_box_arrow"></div>
  140. </div>
  141. </div>
  142. </div>
  143. <div style="margin-left: auto;">
  144. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask">智能粘贴</button>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="false">
  149. <div class="right_title">课程简要描述</div>
  150. <div style="width: 95%; padding: 15px 0px 15px 20px">
  151. <div style="width: 55%">
  152. <textarea rows="8" class="binfo_input" cols v-model="courseText"></textarea>
  153. </div>
  154. </div>
  155. </div>
  156. <div class="whiteBg" style="border-radius: 0; background:#F0F2F5;">
  157. <!-- <div class="right_title">
  158. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" />
  159. </div>
  160. <span style="margin:0 10px">上传课程内容</span>
  161. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px"
  162. v-if="isPasteTask">智能粘贴</button>
  163. </div> -->
  164. <div style="display: flex">
  165. <div class="course_left">
  166. <div class="stepsBottom2">
  167. <div class="navBottom" :style="{ height: heightPx }">
  168. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  169. .taskJson" :key="tIndex">
  170. <div @dragstart="dragTaskStart(t, tIndex)" @dragover.prevent="dragTaskOver(tIndex)"
  171. @dragend="dragTaskEnd()" draggable @click="goToTask(tIndex)" class="navTask" :class="{
  172. isNavTask:
  173. isClickColor > 0 && isClickColor == tIndex + 1,
  174. isNavOpen: t.toolOpen,
  175. // dragOver: newIndex === tIndex
  176. }">
  177. <div style="left: 8px;" class="chapter_upload_drag"></div>
  178. <div class="nt_taskBox">
  179. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  180. <div class="nt_taskName">
  181. <el-tooltip effect="light" :content="t.task" placement="top">
  182. <span>{{ t.task }}</span>
  183. </el-tooltip>
  184. </div>
  185. </div>
  186. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  187. 1
  188. ">
  189. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  190. @click.stop="taskMove(1, tIndex)"></div>
  191. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  192. @click.stop="taskMove(2, tIndex)"></div>
  193. </div> -->
  194. </div>
  195. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  196. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  197. @click="jumpGj(tIndex, toolIndex2)">
  198. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  199. <div>工具{{ toolIndex2 + 1 }}:</div>
  200. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. <div class="basic_box2">
  209. <div style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  210. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  211. <div class="taskBorder" style="padding: 20px 20px 10px;">
  212. <div class="basic_box" style="
  213. margin: 0;
  214. min-height: 0;
  215. padding: 10px 0 0 !important;
  216. ">
  217. <div style="
  218. display: flex;
  219. margin: 0 0 0 0;
  220. flex-direction: row;
  221. justify-content: space-between;
  222. align-items: center;
  223. ">
  224. <div class="lineTitle" style="margin-bottom:10px">学习内容</div>
  225. <div style="margin-bottom:10px" v-if="!item.taskJson[0].isFoldchapter" class="show_taskD show"
  226. @click="foldC(0)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  227. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(0)"><img
  228. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  229. </div>
  230. <div v-if="!item.taskJson[0].isFoldchapter">
  231. <div class="add_chapters_box add_c_none" v-if="item.taskJson[0].chapterData &&
  232. item.taskJson[0].chapterData.length == 0
  233. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  234. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  235. <div @dragstart="dragStart(item1, index1, 0)" @dragover.prevent="dragOver(index1)"
  236. @dragend="dragEnd()" draggable class="chapter_upload" v-for="(item1, index1) in item.taskJson[0]
  237. .chapterData" :key="item1.id" @click="
  238. getChapterData(
  239. $event,
  240. unitIndex,
  241. index,
  242. index1,
  243. item1.type
  244. )
  245. ">
  246. <div class="chapter_upload_drag"></div>
  247. <div class="chapter_upload_t" style="width: 100%"></div>
  248. <div class="chapter_upload_o" style="
  249. position: relative;
  250. display: flex;
  251. align-items: center;
  252. ">
  253. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  254. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  255. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  256. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  257. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  258. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  259. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  260. </div>
  261. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  262. </div>
  263. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  264. </div>
  265. </div>
  266. <div class="chapter_upload_n">
  267. <input readonly="true" v-if="item1.type == 2 ||
  268. item1.type == 3 ||
  269. item1.type == 12 ||
  270. item1.type == 13 ||
  271. item1.type == 7
  272. " :placeholder="item1.name" @click="
  273. updataVideoT(
  274. $event,
  275. unitIndex,
  276. 0,
  277. index1
  278. )
  279. " style="
  280. border: none;
  281. outline: none;
  282. width: 80%;
  283. minwidth: 215px;
  284. z-index: 99;
  285. font-size: 14px;
  286. white-space: nowrap;
  287. overflow: hidden;
  288. text-overflow: ellipsis;
  289. " />
  290. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  291. border: none;
  292. outline: none;
  293. width: 80%;
  294. white-space: nowrap;
  295. overflow: hidden;
  296. text-overflow: ellipsis;
  297. " readonly="true" @click="selectAttText(0, index1)" />
  298. <input :placeholder="item1.title ? item1.title : '链接'
  299. " v-if="item1.type == 8" style="
  300. border: none;
  301. outline: none;
  302. width: 80%;
  303. white-space: nowrap;
  304. overflow: hidden;
  305. text-overflow: ellipsis;
  306. " readonly="true" @click="selectLine(0, index1)" />
  307. <input :placeholder="item1.title ? item1.title : '链接'
  308. " v-if="item1.type == 14" style="
  309. border: none;
  310. outline: none;
  311. width: 80%;
  312. white-space: nowrap;
  313. overflow: hidden;
  314. text-overflow: ellipsis;
  315. " readonly="true" @click="openUpdateSource(0, index1)" />
  316. </div>
  317. <div class="chapter_upload_ic">
  318. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  319. </div>
  320. <div class="chapter_upload_ud" style="z-index: 99">
  321. <div class="chapter_upload_up" @click.stop="
  322. upCd(
  323. $event,
  324. unitIndex,
  325. index,
  326. 0,
  327. index1
  328. )
  329. "></div>
  330. <div class="chapter_upload_down" @click.stop="
  331. downCd(
  332. $event,
  333. unitIndex,
  334. index,
  335. 0,
  336. index1
  337. )
  338. "></div>
  339. </div>
  340. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  341. item1.type == 3 ||
  342. item1.type == 12 ||
  343. item1.type == 13 ||
  344. item1.type == 7
  345. " @click.stop="
  346. updataVideoT(
  347. $event,
  348. unitIndex,
  349. 0,
  350. index1
  351. )
  352. ">
  353. <div></div>
  354. </div>
  355. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  356. @click="selectAttText(0, index1)">
  357. <div></div>
  358. </div>
  359. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  360. @click="selectLine(0, index1)">
  361. <div></div>
  362. </div>
  363. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  364. @click="openUpdateSource(0, index1)">
  365. <div></div>
  366. </div>
  367. <div class="chapter_upload_ic_r" @click.stop="
  368. deleteChapterData(
  369. $event,
  370. unitIndex,
  371. index,
  372. index1,
  373. 0
  374. )
  375. ">
  376. <div></div>
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. <div class="add_info_box" style="margin:10px 0 0" v-if="!item.taskJson[0].isFoldchapter">
  384. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  385. 文件
  386. <input type="file" accept="*" style="display: none" v-if="inputShow"
  387. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  388. </button>
  389. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  390. 图文
  391. </button>
  392. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  393. 链接
  394. </button>
  395. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  396. 代码
  397. </button>
  398. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  399. 资源
  400. </button>
  401. <!-- <button class="info_btn" @click="addImg($event)">
  402. 其他附件
  403. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  404. " />
  405. </button> -->
  406. </div>
  407. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  408. .proVisible
  409. " class="mask">
  410. <div class="progressBox">
  411. <!-- <div id="closePro" class="closeCss">
  412. <img src="../../../../assets/icon/close.png" alt />
  413. </div> -->
  414. <div class="lbox">
  415. <img src="../../../assets/loading.gif" />上传中,请稍后
  416. </div>
  417. <div style="margin-bottom: 10px">
  418. <span>{{
  419. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  420. .isFinishSize
  421. }}M</span>
  422. /
  423. <span>{{
  424. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  425. .isAllSize
  426. }}M</span>
  427. </div>
  428. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  429. .progress
  430. ? unitJson[unitIndex].chapterInfo[0]
  431. .taskJson[0].progress
  432. : 0
  433. " style="width: 80%"></el-progress>
  434. </div>
  435. </div>
  436. </div>
  437. </div>
  438. <div class="taskBorder" :style="{
  439. minHeight: unitJson[unitIndex].easy && 'unset',
  440. }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  441. <div v-if="unitJson[unitIndex].easy != 1">
  442. <div :style="{
  443. marginBottom:
  444. unitJson[unitIndex].easy == 3 ||
  445. (unitJson[unitIndex].easy == 5 &&
  446. itemTask.taskType == 1)
  447. ? '75px'
  448. : '0',
  449. }">
  450. <div style="
  451. display: flex;
  452. margin: 0px 0 20px;
  453. flex-direction: row;
  454. justify-content: flex-start;
  455. align-items: center;
  456. ">
  457. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  458. </div>
  459. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  460. flex-direction: row;
  461. justify-content: flex-start;
  462. align-items: center;
  463. ">
  464. <!-- <div class="cc_title">
  465. 任务{{ itemTaskIndex + 1 }}
  466. </div> -->
  467. <div class="cc_input">
  468. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  469. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  470. itemTaskIndex
  471. ].task
  472. " />
  473. <div v-if="itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  474. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  475. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  476. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  477. </div>
  478. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  479. </div>
  480. </div>
  481. </div>
  482. <div style="margin: 25px 0" v-if="itemTask.isFold2">
  483. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  484. itemTaskIndex
  485. ].taskDetail
  486. " @change="change"></editor-bar> -->
  487. <textarea rows="2" v-autoHeight="70" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  488. itemTaskIndex
  489. ].taskDetail
  490. "></textarea>
  491. </div>
  492. <div class="toolChoose" style="margin: 20px 0">
  493. <div class="tools">
  494. <div class="leftTools" style="
  495. width: 100%;
  496. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  497. <div style="
  498. display: flex;
  499. flex-direction: row;
  500. align-items: baseline;
  501. flex-wrap: nowrap;
  502. justify-content: flex-start;
  503. position: relative;
  504. ">
  505. <div :id="'gj' + itemTaskIndex + '' + toolIndex"
  506. style="margin-right: 20px; font-weight: bold">
  507. 步骤 {{ toolIndex + 1 }} :
  508. </div>
  509. <div class="chooseWho">
  510. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  511. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = true), $forceUpdate()">
  512. 互动类
  513. </div>
  514. <div :class="itemTool.toolType == 1
  515. ? 'isChooseActive'
  516. : ''
  517. " @click="
  518. (itemTool.toolType = 1), (itemTool.isFold3 = true), $forceUpdate()
  519. ">
  520. 思维类
  521. </div>
  522. <div :class="itemTool.toolType == 6
  523. ? 'isChooseActive'
  524. : ''
  525. " @click="
  526. (itemTool.toolType = 6), (itemTool.isFold3 = true), $forceUpdate()
  527. ">
  528. 协作类
  529. </div>
  530. <div :class="itemTool.toolType == 2
  531. ? 'isChooseActive'
  532. : ''
  533. " @click="
  534. (itemTool.toolType = 2), (itemTool.isFold3 = true), $forceUpdate()
  535. ">
  536. 测评类
  537. </div>
  538. <div :class="itemTool.toolType == 7
  539. ? 'isChooseActive'
  540. : ''
  541. " @click="
  542. (itemTool.toolType = 7), (itemTool.isFold3 = true), $forceUpdate()
  543. ">
  544. 评价类
  545. </div>
  546. <div :class="itemTool.toolType == 3
  547. ? 'isChooseActive'
  548. : ''
  549. " @click="
  550. (itemTool.toolType = 3), (itemTool.isFold3 = true), $forceUpdate()
  551. ">
  552. 编程类
  553. </div>
  554. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  555. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = true), $forceUpdate()">
  556. 学科类
  557. </div>
  558. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  559. " @click="(itemTool.toolType = 4), $forceUpdate()">
  560. 其他
  561. </div> -->
  562. </div>
  563. <div v-if="itemTool.isFold3" class="show_toolD show"
  564. @click="fold3(itemTaskIndex, toolIndex)"
  565. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  566. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  567. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  568. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  569. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  570. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  571. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
  572. </div>
  573. <div style="min-height: 163px" v-show="itemTool.isFold3">
  574. <div class="toolSort" v-if="itemTool.toolType == 0">
  575. <!-- <div class="tool">
  576. <div
  577. class="whiteBIcon"
  578. @click="addTools(8, itemTaskIndex, toolIndex)"
  579. >
  580. <img src="../../../assets/icon/secondToolList/library.png" alt />
  581. <div style="margin: 5px 0">素材库</div>
  582. </div>
  583. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  584. <img
  585. src="../../../assets/icon/checkNo.png"
  586. alt
  587. v-if="itemTool.tool.indexOf(8) == -1"
  588. />
  589. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  590. alt /><span>已选择</span></div>
  591. </div>
  592. </div>-->
  593. <!-- <div class="tool">
  594. <div
  595. class="whiteBIcon"
  596. @click="addTools(17, itemTaskIndex, toolIndex)"
  597. >
  598. <img
  599. src="../../../assets/icon/secondToolList/library.png"
  600. alt
  601. />
  602. <div style="margin: 5px 0">学习资料</div>
  603. </div>
  604. <div
  605. class="check"
  606. @click="addTools(17, itemTaskIndex, toolIndex)"
  607. >
  608. <img
  609. src="../../../assets/icon/checkNo.png"
  610. alt
  611. v-if="itemTool.tool.indexOf(17) == -1"
  612. />
  613. <img
  614. src="../../../assets/icon/checkedIs.png"
  615. alt
  616. v-else
  617. />
  618. </div>10
  619. </div> -->
  620. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  621. @click="addTools(10, itemTaskIndex, toolIndex)">
  622. <div class="whiteBIcon" @click.stop="
  623. openTools(itemTaskIndex, 10, toolIndex)
  624. ">
  625. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  626. <div style="margin: 5px 0">倒计时</div>
  627. </div>
  628. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  629. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  630. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  631. <!-- <div class="check" @click="
  632. addTools(10, itemTaskIndex, toolIndex)
  633. ">
  634. <img src="../../../assets/icon/checkNo.png" alt
  635. v-if="itemTool.tool.indexOf(10) == -1" />
  636. <div class="checkDiv" v-else>
  637. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  638. </div>
  639. </div> -->
  640. </div>
  641. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  642. @click="addTools(65, itemTaskIndex, toolIndex)">
  643. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  644. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  645. <div style="margin: 5px 0">挑人</div>
  646. </div>
  647. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  648. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  649. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  650. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  651. <img src="../../../assets/icon/checkNo.png" alt
  652. v-if="itemTool.tool.indexOf(65) == -1" />
  653. <div class="checkDiv" v-else>
  654. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  655. </div>
  656. </div> -->
  657. </div>
  658. <!-- <div class="tool">
  659. <div
  660. class="whiteBIcon"
  661. @click="
  662. openTools(itemTaskIndex, 49, toolIndex)
  663. "
  664. >
  665. <img
  666. src="../../../assets/icon/fourthToolList/group.png"
  667. alt
  668. />
  669. <div style="margin: 5px 0">学生分组</div>
  670. </div>
  671. <div
  672. class="check"
  673. @click="
  674. addTools(49, itemTaskIndex, toolIndex)
  675. "
  676. >
  677. <img
  678. src="../../../assets/icon/checkNo.png"
  679. alt
  680. v-if="itemTool.tool.indexOf(49) == -1"
  681. />
  682. <div class="checkDiv" v-else>
  683. <img
  684. src="../../../assets/icon/checkedIs.png"
  685. alt
  686. /><span>已选择</span>
  687. </div>
  688. </div>
  689. </div> -->
  690. <!-- <div class="tool">
  691. <div class="whiteBIcon" @click="
  692. openTools(itemTaskIndex, 62, toolIndex)
  693. ">
  694. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  695. <div style="margin: 5px 0">交互视频</div>
  696. </div>
  697. <div class="check" @click="
  698. addTools(62, itemTaskIndex, toolIndex)
  699. ">
  700. <img src="../../../assets/icon/checkNo.png" alt
  701. v-if="itemTool.tool.indexOf(62) == -1" />
  702. <div class="checkDiv" v-else>
  703. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  704. </div>
  705. </div>
  706. </div> -->
  707. </div>
  708. <div class="toolSort" v-if="itemTool.toolType == 1">
  709. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  710. @click="addTools(7, itemTaskIndex, toolIndex)">
  711. <div class="whiteBIcon" @click.stop="
  712. addTools(7, itemTaskIndex, toolIndex)
  713. ">
  714. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  715. <div style="margin: 5px 0">思维网格</div>
  716. </div>
  717. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  718. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  719. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  720. <!-- <div class="check" @click="
  721. addTools(7, itemTaskIndex, toolIndex)
  722. ">
  723. <img src="../../../assets/icon/checkNo.png" alt
  724. v-if="itemTool.tool.indexOf(7) == -1" />
  725. <div class="checkDiv" v-else>
  726. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  727. </div>
  728. </div> -->
  729. </div>
  730. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  731. @click="addTools(1, itemTaskIndex, toolIndex)">
  732. <div class="whiteBIcon" @click.stop="
  733. openTools(itemTaskIndex, 1, toolIndex)
  734. ">
  735. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  736. <div style="margin: 5px 0">电子白板</div>
  737. </div>
  738. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  739. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  740. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  741. <!-- <div class="check" @click="
  742. addTools(1, itemTaskIndex, toolIndex)
  743. ">
  744. <img src="../../../assets/icon/checkNo.png" alt
  745. v-if="itemTool.tool.indexOf(1) == -1" />
  746. <div class="checkDiv" v-else>
  747. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  748. </div>
  749. </div> -->
  750. </div>
  751. <!-- <div class="tool">
  752. <div
  753. class="whiteBIcon"
  754. @click="addTools(2, itemTaskIndex, toolIndex)"
  755. >
  756. <img
  757. src="../../../assets/icon/secondToolList/note.png"
  758. alt
  759. />
  760. <div style="margin: 5px 0">便签</div>
  761. </div>
  762. <div
  763. class="check"
  764. @click="addTools(2, itemTaskIndex, toolIndex)"
  765. >
  766. <img
  767. src="../../../assets/icon/checkNo.png"
  768. alt
  769. v-if="itemTool.tool.indexOf(2) == -1"
  770. />
  771. <div class="checkDiv" v-else>
  772. <img
  773. src="../../../assets/icon/checkedIs.png"
  774. alt
  775. /><span>已选择</span>
  776. </div>
  777. </div>
  778. </div> -->
  779. <!-- <div class="tool">
  780. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  781. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  782. <div style="margin: 5px 0">协同文档</div>
  783. </div>
  784. <div
  785. class="check"
  786. @click="addTools(6, itemTaskIndex, toolIndex)"
  787. >
  788. <img
  789. src="../../../assets/icon/checkNo.png"
  790. alt
  791. v-if="itemTool.tool.indexOf(6) == -1"
  792. />
  793. <div class="checkDiv" v-else>
  794. <img
  795. src="../../../assets/icon/checkedIs.png"
  796. alt
  797. /><span>已选择</span>
  798. </div>
  799. </div>
  800. </div> -->
  801. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  802. @click="addTools(52, itemTaskIndex, toolIndex)">
  803. <div class="whiteBIcon" @click.stop="
  804. openTools(itemTaskIndex, 52, toolIndex)
  805. ">
  806. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  807. <div style="margin: 5px 0">文档</div>
  808. </div>
  809. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  810. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  811. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  812. <!-- <div class="check" @click="
  813. addTools(52, itemTaskIndex, toolIndex)
  814. ">
  815. <img src="../../../assets/icon/checkNo.png" alt
  816. v-if="itemTool.tool.indexOf(52) == -1" />
  817. <div class="checkDiv" v-else>
  818. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  819. </div>
  820. </div> -->
  821. </div>
  822. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  823. @click="addTools(3, itemTaskIndex, toolIndex)">
  824. <div class="whiteBIcon" @click.stop="
  825. openTools(itemTaskIndex, 3, toolIndex)
  826. ">
  827. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  828. <div style="margin: 5px 0">思维导图</div>
  829. </div>
  830. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  831. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  832. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  833. <!-- <div class="check" @click="
  834. addTools(3, itemTaskIndex, toolIndex)
  835. ">
  836. <img src="../../../assets/icon/checkNo.png" alt
  837. v-if="itemTool.tool.indexOf(3) == -1" />
  838. <div class="checkDiv" v-else>
  839. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  840. </div>
  841. </div> -->
  842. </div>
  843. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  844. @click="addTools(48, itemTaskIndex, toolIndex)">
  845. <div class="whiteBIcon" @click.stop="
  846. openTools(itemTaskIndex, 48, toolIndex)
  847. ">
  848. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  849. <div style="margin: 5px 0">表格</div>
  850. </div>
  851. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  852. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  853. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  854. <!-- <div class="check" @click="
  855. addTools(48, itemTaskIndex, toolIndex)
  856. ">
  857. <img src="../../../assets/icon/checkNo.png" alt
  858. v-if="itemTool.tool.indexOf(48) == -1" />
  859. <div class="checkDiv" v-else>
  860. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  861. </div>
  862. </div> -->
  863. </div>
  864. </div>
  865. <div class="toolSort" v-if="itemTool.toolType == 6">
  866. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  867. @click="addTools(49, itemTaskIndex, toolIndex)">
  868. <div class="whiteBIcon" @click.stop="
  869. openTools(itemTaskIndex, 49, toolIndex)
  870. ">
  871. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  872. <div style="margin: 5px 0">学生分组</div>
  873. </div>
  874. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  875. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  876. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  877. <!-- <div class="check" @click="
  878. addTools(49, itemTaskIndex, toolIndex)
  879. ">
  880. <img src="../../../assets/icon/checkNo.png" alt
  881. v-if="itemTool.tool.indexOf(49) == -1" />
  882. <div class="checkDiv" v-else>
  883. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  884. </div>
  885. </div> -->
  886. </div>
  887. </div>
  888. <div class="toolSort" v-if="itemTool.toolType == 2">
  889. <!-- <div class="tool">
  890. <div
  891. class="whiteBIcon"
  892. @click="addTools(5, itemTaskIndex, toolIndex)"
  893. >
  894. <img
  895. src="../../../assets/icon/thirdToolList/score.png"
  896. alt
  897. />
  898. <div style="margin: 5px 0">量规评分</div>
  899. </div>
  900. <div
  901. class="check"
  902. @click="addTools(5, itemTaskIndex, toolIndex)"
  903. >
  904. <img
  905. src="../../../assets/icon/checkNo.png"
  906. alt
  907. v-if="itemTool.tool.indexOf(5) == -1"
  908. />
  909. <img
  910. src="../../../assets/icon/checkedIs.png"
  911. alt
  912. v-else
  913. />
  914. </div>
  915. </div>-->
  916. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  917. @click="addTools(4, itemTaskIndex, toolIndex)">
  918. <div class="whiteBIcon" @click.stop="
  919. openTools(itemTaskIndex, 4, toolIndex)
  920. ">
  921. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  922. <div style="margin: 5px 0">问卷调查</div>
  923. </div>
  924. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  925. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  926. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  927. <!-- <div class="check" @click="
  928. addTools(4, itemTaskIndex, toolIndex)
  929. ">
  930. <img src="../../../assets/icon/checkNo.png" alt
  931. v-if="itemTool.tool.indexOf(4) == -1" />
  932. <div class="checkDiv" v-else>
  933. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  934. </div>
  935. </div> -->
  936. </div>
  937. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  938. @click="addTools(45, itemTaskIndex, toolIndex)">
  939. <div class="whiteBIcon" @click.stop="
  940. openTools(itemTaskIndex, 45, toolIndex)
  941. ">
  942. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  943. <div style="margin: 5px 0">选择题</div>
  944. </div>
  945. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  946. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  947. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  948. <!-- <div class="check" @click="
  949. addTools(45, itemTaskIndex, toolIndex)
  950. ">
  951. <img src="../../../assets/icon/checkNo.png" alt
  952. v-if="itemTool.tool.indexOf(45) == -1" />
  953. <div class="checkDiv" v-else>
  954. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  955. </div>
  956. </div> -->
  957. </div>
  958. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  959. @click="addTools(15, itemTaskIndex, toolIndex)">
  960. <div class="whiteBIcon" @click.stop="
  961. openTools(itemTaskIndex, 15, toolIndex)
  962. ">
  963. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  964. <div style="margin: 5px 0">问答</div>
  965. </div>
  966. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  967. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  968. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  969. <!-- <div class="check" @click="
  970. addTools(15, itemTaskIndex, toolIndex)
  971. ">
  972. <img src="../../../assets/icon/checkNo.png" alt
  973. v-if="itemTool.tool.indexOf(15) == -1" />
  974. <div class="checkDiv" v-else>
  975. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  976. </div>
  977. </div> -->
  978. </div>
  979. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  980. @click="addTools(16, itemTaskIndex, toolIndex)">
  981. <div class="whiteBIcon" @click.stop="
  982. addTools(16, itemTaskIndex, toolIndex)
  983. ">
  984. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  985. <div style="margin: 5px 0">作业提交</div>
  986. </div>
  987. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  988. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  989. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  990. <!-- <div class="check" @click="
  991. addTools(16, itemTaskIndex, toolIndex)
  992. ">
  993. <img src="../../../assets/icon/checkNo.png" alt
  994. v-if="itemTool.tool.indexOf(16) == -1" />
  995. <div class="checkDiv" v-else>
  996. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  997. </div>
  998. </div> -->
  999. </div>
  1000. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1001. @click="addTools(50, itemTaskIndex, toolIndex)">
  1002. <div class="whiteBIcon" @click.stop="
  1003. addTools(50, itemTaskIndex, toolIndex)
  1004. ">
  1005. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1006. <div style="margin: 5px 0">批量上传</div>
  1007. </div>
  1008. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1009. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1010. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1011. <!-- <div class="check" @click="
  1012. addTools(50, itemTaskIndex, toolIndex)
  1013. ">
  1014. <img src="../../../assets/icon/checkNo.png" alt
  1015. v-if="itemTool.tool.indexOf(50) == -1" />
  1016. <div class="checkDiv" v-else>
  1017. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1018. </div>
  1019. </div> -->
  1020. </div>
  1021. <!-- <div class="tool">
  1022. <div
  1023. class="whiteBIcon"
  1024. @click="
  1025. openTools(itemTaskIndex, 40, toolIndex)
  1026. "
  1027. >
  1028. <img
  1029. src="../../../assets/icon/thirdToolList/eval.png"
  1030. alt
  1031. />
  1032. <div style="margin: 5px 0">个人评价</div>
  1033. </div>
  1034. <div
  1035. class="check"
  1036. @click="
  1037. addTools(40, itemTaskIndex, toolIndex)
  1038. "
  1039. >
  1040. <img
  1041. src="../../../assets/icon/checkNo.png"
  1042. alt
  1043. v-if="itemTool.tool.indexOf(40) == -1"
  1044. />
  1045. <div class="checkDiv" v-else>
  1046. <img
  1047. src="../../../assets/icon/checkedIs.png"
  1048. alt
  1049. /><span>已选择</span>
  1050. </div>
  1051. </div>
  1052. </div> -->
  1053. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1054. @click="addTools(41, itemTaskIndex, toolIndex)">
  1055. <div class="whiteBIcon" @click.stop="
  1056. openTools(itemTaskIndex, 41, toolIndex)
  1057. ">
  1058. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1059. <div style="margin: 5px 0">选择匹配</div>
  1060. </div>
  1061. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1062. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1063. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1064. <!-- <div class="check" @click="
  1065. addTools(41, itemTaskIndex, toolIndex)
  1066. ">
  1067. <img src="../../../assets/icon/checkNo.png" alt
  1068. v-if="itemTool.tool.indexOf(41) == -1" />
  1069. <div class="checkDiv" v-else>
  1070. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1071. </div>
  1072. </div> -->
  1073. </div>
  1074. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1075. @click="addTools(47, itemTaskIndex, toolIndex)">
  1076. <div class="whiteBIcon" @click.stop="
  1077. openTools(itemTaskIndex, 47, toolIndex)
  1078. ">
  1079. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1080. <div style="margin: 5px 0">排序</div>
  1081. </div>
  1082. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1083. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1084. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1085. <!-- <div class="check" @click="
  1086. addTools(47, itemTaskIndex, toolIndex)
  1087. ">
  1088. <img src="../../../assets/icon/checkNo.png" alt
  1089. v-if="itemTool.tool.indexOf(47) == -1" />
  1090. <div class="checkDiv" v-else>
  1091. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1092. </div>
  1093. </div> -->
  1094. </div>
  1095. <!-- <div class="tool">
  1096. <div
  1097. class="whiteBIcon"
  1098. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1099. >
  1100. <img
  1101. src="../../../assets/icon/thirdToolList/mp3.png"
  1102. alt
  1103. />
  1104. <div style="margin: 5px 0">上传音频</div>
  1105. </div>
  1106. <div
  1107. class="check"
  1108. @click="addTools(42, itemTaskIndex, toolIndex)"
  1109. >
  1110. <img
  1111. src="../../../assets/icon/checkNo.png"
  1112. alt
  1113. v-if="itemTool.tool.indexOf(42) == -1"
  1114. />
  1115. <img
  1116. src="../../../assets/icon/checkedIs.png"
  1117. alt
  1118. v-else
  1119. />
  1120. </div>
  1121. </div> -->
  1122. </div>
  1123. <div class="toolSort" v-if="itemTool.toolType == 3">
  1124. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1125. @click="addTools(18, itemTaskIndex, toolIndex)">
  1126. <div class="whiteBIcon" @click.stop="
  1127. addTools(18, itemTaskIndex, toolIndex)
  1128. ">
  1129. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1130. <div style="margin: 5px 0">训练平台</div>
  1131. </div>
  1132. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1133. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1134. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1135. <!-- <div class="check" @click="
  1136. addTools(18, itemTaskIndex, toolIndex)
  1137. ">
  1138. <img src="../../../assets/icon/checkNo.png" alt
  1139. v-if="itemTool.tool.indexOf(18) == -1" />
  1140. <div class="checkDiv" v-else>
  1141. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1142. </div>
  1143. </div> -->
  1144. </div>
  1145. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1146. @click="addTools(21, itemTaskIndex, toolIndex)">
  1147. <div class="whiteBIcon" @click.stop="
  1148. addTools(21, itemTaskIndex, toolIndex)
  1149. ">
  1150. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1151. <div style="margin: 5px 0">AIoT Blockly</div>
  1152. </div>
  1153. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1154. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1155. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1156. <!-- <div class="check" @click="
  1157. addTools(21, itemTaskIndex, toolIndex)
  1158. ">
  1159. <img src="../../../assets/icon/checkNo.png" alt
  1160. v-if="itemTool.tool.indexOf(21) == -1" />
  1161. <div class="checkDiv" v-else>
  1162. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1163. </div>
  1164. </div> -->
  1165. </div>
  1166. <!-- <div class="tool">
  1167. <div class="whiteBIcon" @click="
  1168. addTools(22, itemTaskIndex, toolIndex)
  1169. ">
  1170. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1171. <div style="margin: 5px 0">AI体验</div>
  1172. </div>
  1173. <div class="check" @click="
  1174. addTools(22, itemTaskIndex, toolIndex)
  1175. ">
  1176. <img src="../../../assets/icon/checkNo.png" alt
  1177. v-if="itemTool.tool.indexOf(22) == -1" />
  1178. <div class="checkDiv" v-else>
  1179. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1180. </div>
  1181. </div>
  1182. </div> -->
  1183. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1184. @click="addTools(23, itemTaskIndex, toolIndex)">
  1185. <div class="whiteBIcon" @click.stop="
  1186. addTools(23, itemTaskIndex, toolIndex)
  1187. ">
  1188. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1189. <div style="margin: 5px 0">AI Python</div>
  1190. </div>
  1191. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1192. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1193. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1194. <!-- <div class="check" @click="
  1195. addTools(23, itemTaskIndex, toolIndex)
  1196. ">
  1197. <img src="../../../assets/icon/checkNo.png" alt
  1198. v-if="itemTool.tool.indexOf(23) == -1" />
  1199. <div class="checkDiv" v-else>
  1200. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1201. </div>
  1202. </div> -->
  1203. </div>
  1204. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1205. @click="addTools(24, itemTaskIndex, toolIndex)">
  1206. <div class="whiteBIcon" @click.stop="
  1207. addTools(24, itemTaskIndex, toolIndex)
  1208. ">
  1209. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1210. <div style="margin: 5px 0">AI Blockly</div>
  1211. </div>
  1212. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1213. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1214. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1215. <!-- <div class="check" @click="
  1216. addTools(24, itemTaskIndex, toolIndex)
  1217. ">
  1218. <img src="../../../assets/icon/checkNo.png" alt
  1219. v-if="itemTool.tool.indexOf(24) == -1" />
  1220. <div class="checkDiv" v-else>
  1221. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1222. </div>
  1223. </div> -->
  1224. </div>
  1225. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1226. @click="addTools(32, itemTaskIndex, toolIndex)">
  1227. <div class="whiteBIcon" @click.stop="
  1228. addTools(32, itemTaskIndex, toolIndex)
  1229. ">
  1230. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1231. <div style="margin: 5px 0">源码编辑</div>
  1232. </div>
  1233. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1234. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1235. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1236. <!-- <div class="check" @click="
  1237. addTools(32, itemTaskIndex, toolIndex)
  1238. ">
  1239. <img src="../../../assets/icon/checkNo.png" alt
  1240. v-if="itemTool.tool.indexOf(32) == -1" />
  1241. <div class="checkDiv" v-else>
  1242. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1243. </div>
  1244. </div> -->
  1245. </div>
  1246. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1247. @click="addTools(57, itemTaskIndex, toolIndex)">
  1248. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1249. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1250. <div style="margin: 5px 0">CocoPi</div>
  1251. </div>
  1252. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1253. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1254. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1255. <!-- <div class="check" @click="
  1256. addTools(57, itemTaskIndex, toolIndex)
  1257. ">
  1258. <img src="../../../assets/icon/checkNo.png" alt
  1259. v-if="itemTool.tool.indexOf(57) == -1" />
  1260. <div class="checkDiv" v-else>
  1261. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1262. </div>
  1263. </div> -->
  1264. </div>
  1265. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1266. @click="addTools(63, itemTaskIndex, toolIndex)">
  1267. <div class="whiteBIcon" @click.stop="
  1268. addTools(63, itemTaskIndex, toolIndex)
  1269. ">
  1270. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1271. <div style="margin: 5px 0">海龟编程</div>
  1272. </div>
  1273. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1274. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1275. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1276. <!-- <div class="check" @click="
  1277. addTools(63, itemTaskIndex, toolIndex)
  1278. ">
  1279. <img src="../../../assets/icon/checkNo.png" alt
  1280. v-if="itemTool.tool.indexOf(63) == -1" />
  1281. <div class="checkDiv" v-else>
  1282. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1283. </div>
  1284. </div> -->
  1285. </div>
  1286. </div>
  1287. <div class="toolSort" v-if="itemTool.toolType == 5">
  1288. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1289. @click="addTools(28, itemTaskIndex, toolIndex)">
  1290. <div class="whiteBIcon" @click.stop="
  1291. addTools(28, itemTaskIndex, toolIndex)
  1292. ">
  1293. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1294. <div style="margin: 5px 0">翻译</div>
  1295. </div>
  1296. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1297. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1298. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1299. <!-- <div class="check" @click="
  1300. addTools(28, itemTaskIndex, toolIndex)
  1301. ">
  1302. <img src="../../../assets/icon/checkNo.png" alt
  1303. v-if="itemTool.tool.indexOf(28) == -1" />
  1304. <div class="checkDiv" v-else>
  1305. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1306. </div>
  1307. </div> -->
  1308. </div>
  1309. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1310. @click="addTools(31, itemTaskIndex, toolIndex)">
  1311. <div class="whiteBIcon" @click.stop="
  1312. addTools(31, itemTaskIndex, toolIndex)
  1313. ">
  1314. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1315. <div style="margin: 5px 0">数字画板</div>
  1316. </div>
  1317. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1318. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1319. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1320. <!-- <div class="check" @click="
  1321. addTools(31, itemTaskIndex, toolIndex)
  1322. ">
  1323. <img src="../../../assets/icon/checkNo.png" alt
  1324. v-if="itemTool.tool.indexOf(31) == -1" />
  1325. <div class="checkDiv" v-else>
  1326. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1327. </div>
  1328. </div> -->
  1329. </div>
  1330. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1331. @click="addTools(39, itemTaskIndex, toolIndex)">
  1332. <div class="whiteBIcon" @click.stop="
  1333. addTools(39, itemTaskIndex, toolIndex)
  1334. ">
  1335. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1336. <div style="margin: 5px 0">GeoGebra</div>
  1337. </div>
  1338. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1339. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  1340. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1341. <!-- <div class="check" @click="
  1342. addTools(39, itemTaskIndex, toolIndex)
  1343. ">
  1344. <img src="../../../assets/icon/checkNo.png" alt
  1345. v-if="itemTool.tool.indexOf(39) == -1" />
  1346. <div class="checkDiv" v-else>
  1347. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1348. </div>
  1349. </div> -->
  1350. </div>
  1351. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  1352. @click="addTools(66, itemTaskIndex, toolIndex)">
  1353. <div class="whiteBIcon" @click.stop="
  1354. addTools(66, itemTaskIndex, toolIndex)
  1355. ">
  1356. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1357. <div style="margin: 5px 0">公式编辑</div>
  1358. </div>
  1359. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1360. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  1361. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1362. <!-- <div class="check" @click="
  1363. addTools(66, itemTaskIndex, toolIndex)
  1364. ">
  1365. <img src="../../../assets/icon/checkNo.png" alt
  1366. v-if="itemTool.tool.indexOf(66) == -1" />
  1367. <div class="checkDiv" v-else>
  1368. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1369. </div>
  1370. </div> -->
  1371. </div>
  1372. <!-- <div class="tool">
  1373. <div class="whiteBIcon" @click="
  1374. addTools(67, itemTaskIndex, toolIndex)
  1375. ">
  1376. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1377. <div style="margin: 5px 0">分子结构</div>
  1378. </div>
  1379. <div class="check" @click="
  1380. addTools(67, itemTaskIndex, toolIndex)
  1381. ">
  1382. <img src="../../../assets/icon/checkNo.png" alt
  1383. v-if="itemTool.tool.indexOf(67) == -1" />
  1384. <div class="checkDiv" v-else>
  1385. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1386. </div>
  1387. </div>
  1388. </div> -->
  1389. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  1390. @click="addTools(68, itemTaskIndex, toolIndex)">
  1391. <div class="whiteBIcon" @click.stop="
  1392. addTools(68, itemTaskIndex, toolIndex)
  1393. ">
  1394. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1395. <div style="margin: 5px 0">时间轴</div>
  1396. </div>
  1397. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1398. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  1399. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1400. <!-- <div class="check" @click="
  1401. addTools(68, itemTaskIndex, toolIndex)
  1402. ">
  1403. <img src="../../../assets/icon/checkNo.png" alt
  1404. v-if="itemTool.tool.indexOf(68) == -1" />
  1405. <div class="checkDiv" v-else>
  1406. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1407. </div>
  1408. </div> -->
  1409. </div>
  1410. <!-- <div class="tool">
  1411. <div class="whiteBIcon" @click="
  1412. addTools(28, itemTaskIndex, toolIndex)
  1413. ">
  1414. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1415. <div style="margin: 5px 0">翻译</div>
  1416. </div>
  1417. <div class="check" @click="
  1418. addTools(28, itemTaskIndex, toolIndex)
  1419. ">
  1420. <img src="../../../assets/icon/checkNo.png" alt
  1421. v-if="itemTool.tool.indexOf(28) == -1" />
  1422. <div class="checkDiv" v-else>
  1423. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1424. </div>
  1425. </div>
  1426. </div>
  1427. <div class="tool">
  1428. <div class="whiteBIcon" @click="
  1429. addTools(37, itemTaskIndex, toolIndex)
  1430. ">
  1431. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1432. <div style="margin: 5px 0">魔盒识字</div>
  1433. </div>
  1434. <div class="check" @click="
  1435. addTools(37, itemTaskIndex, toolIndex)
  1436. ">
  1437. <img src="../../../assets/icon/checkNo.png" alt
  1438. v-if="itemTool.tool.indexOf(37) == -1" />
  1439. <div class="checkDiv" v-else>
  1440. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1441. </div>
  1442. </div>
  1443. </div>
  1444. <div class="tool">
  1445. <div class="whiteBIcon" @click="
  1446. addTools(38, itemTaskIndex, toolIndex)
  1447. ">
  1448. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1449. <div style="margin: 5px 0">24点</div>
  1450. </div>
  1451. <div class="check" @click="
  1452. addTools(38, itemTaskIndex, toolIndex)
  1453. ">
  1454. <img src="../../../assets/icon/checkNo.png" alt
  1455. v-if="itemTool.tool.indexOf(38) == -1" />
  1456. <div class="checkDiv" v-else>
  1457. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1458. </div>
  1459. </div>
  1460. </div>
  1461. <div class="tool">
  1462. <div class="whiteBIcon" @click="
  1463. addTools(31, itemTaskIndex, toolIndex)
  1464. ">
  1465. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1466. <div style="margin: 5px 0">数学画板</div>
  1467. </div>
  1468. <div class="check" @click="
  1469. addTools(31, itemTaskIndex, toolIndex)
  1470. ">
  1471. <img src="../../../assets/icon/checkNo.png" alt
  1472. v-if="itemTool.tool.indexOf(31) == -1" />
  1473. <div class="checkDiv" v-else>
  1474. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1475. </div>
  1476. </div>
  1477. </div>
  1478. <div class="tool">
  1479. <div class="whiteBIcon" @click="
  1480. addTools(39, itemTaskIndex, toolIndex)
  1481. ">
  1482. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1483. <div style="margin: 5px 0">GeoGebra</div>
  1484. </div>
  1485. <div class="check" @click="
  1486. addTools(39, itemTaskIndex, toolIndex)
  1487. ">
  1488. <img src="../../../assets/icon/checkNo.png" alt
  1489. v-if="itemTool.tool.indexOf(39) == -1" />
  1490. <div class="checkDiv" v-else>
  1491. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1492. </div>
  1493. </div>
  1494. </div>
  1495. <div class="tool">
  1496. <div class="whiteBIcon" @click="
  1497. addTools(58, itemTaskIndex, toolIndex)
  1498. ">
  1499. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1500. <div style="margin: 5px 0">模拟驾驶</div>
  1501. </div>
  1502. <div class="check" @click="
  1503. addTools(58, itemTaskIndex, toolIndex)
  1504. ">
  1505. <img src="../../../assets/icon/checkNo.png" alt
  1506. v-if="itemTool.tool.indexOf(58) == -1" />
  1507. <div class="checkDiv" v-else>
  1508. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1509. </div>
  1510. </div>
  1511. </div>
  1512. <div class="tool">
  1513. <div class="whiteBIcon" @click="
  1514. addTools(59, itemTaskIndex, toolIndex)
  1515. ">
  1516. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1517. <div style="margin: 5px 0">路径搜索</div>
  1518. </div>
  1519. <div class="check" @click="
  1520. addTools(59, itemTaskIndex, toolIndex)
  1521. ">
  1522. <img src="../../../assets/icon/checkNo.png" alt
  1523. v-if="itemTool.tool.indexOf(59) == -1" />
  1524. <div class="checkDiv" v-else>
  1525. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1526. </div>
  1527. </div>
  1528. </div>
  1529. <div class="tool">
  1530. <div class="whiteBIcon" @click="
  1531. addTools(60, itemTaskIndex, toolIndex)
  1532. ">
  1533. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1534. <div style="margin: 5px 0">深度学习</div>
  1535. </div>
  1536. <div class="check" @click="
  1537. addTools(60, itemTaskIndex, toolIndex)
  1538. ">
  1539. <img src="../../../assets/icon/checkNo.png" alt
  1540. v-if="itemTool.tool.indexOf(60) == -1" />
  1541. <div class="checkDiv" v-else>
  1542. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1543. </div>
  1544. </div>
  1545. </div>
  1546. <div class="tool">
  1547. <div class="whiteBIcon" @click="
  1548. addTools(61, itemTaskIndex, toolIndex)
  1549. ">
  1550. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1551. <div style="margin: 5px 0">全历史</div>
  1552. </div>
  1553. <div class="check" @click="
  1554. addTools(61, itemTaskIndex, toolIndex)
  1555. ">
  1556. <img src="../../../assets/icon/checkNo.png" alt
  1557. v-if="itemTool.tool.indexOf(61) == -1" />
  1558. <div class="checkDiv" v-else>
  1559. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1560. </div>
  1561. </div>
  1562. </div> -->
  1563. </div>
  1564. <div class="toolSort" v-if="itemTool.toolType == 7">
  1565. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1566. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1567. <div class="whiteBIcon" @click="
  1568. openTools(itemTaskIndex, 40, toolIndex)
  1569. ">
  1570. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1571. <div style="margin: 5px 0">个人评价</div>
  1572. </div>
  1573. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1574. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1575. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1576. <!-- <div class="check" @click="
  1577. addTools(40, itemTaskIndex, toolIndex)
  1578. ">
  1579. <img src="../../../assets/icon/checkNo.png" alt
  1580. v-if="itemTool.tool.indexOf(40) == -1" />
  1581. <div class="checkDiv" v-else>
  1582. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1583. </div>
  1584. </div> -->
  1585. </div>
  1586. </div>
  1587. <div class="toolSort" v-if="itemTool.toolType == 4">
  1588. <div class="tool">
  1589. <div class="whiteBIcon" @click="
  1590. addTools(26, itemTaskIndex, toolIndex)
  1591. ">
  1592. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1593. <div style="margin: 5px 0">课程设计</div>
  1594. </div>
  1595. <div class="check" @click="
  1596. addTools(26, itemTaskIndex, toolIndex)
  1597. ">
  1598. <img src="../../../assets/icon/checkNo.png" alt
  1599. v-if="itemTool.tool.indexOf(26) == -1" />
  1600. <div class="checkDiv" v-else>
  1601. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1602. </div>
  1603. </div>
  1604. </div>
  1605. <div class="tool">
  1606. <div class="whiteBIcon" @click="
  1607. addTools(25, itemTaskIndex, toolIndex)
  1608. ">
  1609. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1610. <div style="margin: 5px 0">目标管理</div>
  1611. </div>
  1612. <div class="check" @click="
  1613. addTools(25, itemTaskIndex, toolIndex)
  1614. ">
  1615. <img src="../../../assets/icon/checkNo.png" alt
  1616. v-if="itemTool.tool.indexOf(25) == -1" />
  1617. <div class="checkDiv" v-else>
  1618. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1619. </div>
  1620. </div>
  1621. </div>
  1622. <!-- <div class="tool">
  1623. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1624. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1625. <div style="margin: 5px 0">汉字宫</div>
  1626. </div>
  1627. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1628. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1629. <div class="checkDiv" v-else>
  1630. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1631. </div>
  1632. </div>
  1633. </div> -->
  1634. </div>
  1635. </div>
  1636. <div v-show="itemTool.isFold3">
  1637. <textarea rows="3" type="text" v-autoHeight="87" placeholder="添加工具描述" class="binfo_input"
  1638. style="
  1639. margin: 0 0 20px 0;
  1640. " v-model="itemTool.toolDetail"></textarea>
  1641. </div>
  1642. </div>
  1643. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1644. <div class="addToolImg">
  1645. <img src="../../../assets/icon/add.png" alt />
  1646. </div>
  1647. <div>添加工具</div>
  1648. </div> -->
  1649. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)"
  1650. style="margin: 0 auto;padding: 0 30px;height: 45px;">
  1651. 添加工具
  1652. </button>
  1653. </div>
  1654. </div>
  1655. </div>
  1656. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1657. <!-- <div>
  1658. <img src="../../../assets/icon/new/addStage.png" alt />
  1659. <span>添加任务</span>
  1660. </div> -->
  1661. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  1662. 添加任务
  1663. </button>
  1664. </div>
  1665. </div>
  1666. </div>
  1667. </div>
  1668. </div>
  1669. <div class="info_btnBox3">
  1670. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  1671. 返回课程
  1672. </button>
  1673. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  1674. 确认上传
  1675. </button>
  1676. </div>
  1677. </div>
  1678. <div class="rightBox" v-if="this.steps == 2">
  1679. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  1680. <div class="right_title" style="border: none; margin: 0; padding: 0">
  1681. 请选择合适的课程模板
  1682. </div>
  1683. <div class="wordbox">
  1684. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  1685. <div class="wordPic">
  1686. <img src="../../../assets/icon/wordMub.png" alt />
  1687. </div>
  1688. <div style="
  1689. margin-top: 10px;
  1690. line-height: 19px;
  1691. overflow: hidden;
  1692. text-overflow: ellipsis;
  1693. white-space: nowrap;
  1694. padding: 0 20px;
  1695. ">
  1696. {{ aa.title }}
  1697. </div>
  1698. </div>
  1699. <div class="wordTeacher" @click="checkTemplate2()">
  1700. <div class="wordPic">
  1701. <img src="../../../assets/icon/wordMub.png" alt />
  1702. </div>
  1703. <div style="
  1704. margin-top: 10px;
  1705. line-height: 19px;
  1706. overflow: hidden;
  1707. text-overflow: ellipsis;
  1708. white-space: nowrap;
  1709. padding: 0 20px;
  1710. ">
  1711. 任务模式
  1712. </div>
  1713. </div>
  1714. <div class="wordTeacher" @click="checkTemplate3()">
  1715. <div class="wordPic">
  1716. <img src="../../../assets/icon/wordMub.png" alt />
  1717. </div>
  1718. <div style="
  1719. margin-top: 10px;
  1720. line-height: 19px;
  1721. overflow: hidden;
  1722. text-overflow: ellipsis;
  1723. white-space: nowrap;
  1724. padding: 0 20px;
  1725. ">
  1726. 简易模式
  1727. </div>
  1728. </div>
  1729. <div class="wordTeacher" @click="pasteStage()">
  1730. <div class="wordPic">
  1731. <img src="../../../assets/icon/wordMub.png" alt />
  1732. </div>
  1733. <div style="
  1734. margin-top: 10px;
  1735. line-height: 19px;
  1736. overflow: hidden;
  1737. text-overflow: ellipsis;
  1738. white-space: nowrap;
  1739. padding: 0 20px;
  1740. ">
  1741. 智能粘贴模式
  1742. </div>
  1743. </div>
  1744. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  1745. <div class="wordPic">
  1746. <img src="../../../assets/icon/wordMub.png" alt />
  1747. </div>
  1748. <div style="
  1749. margin-top: 10px;
  1750. line-height: 19px;
  1751. overflow: hidden;
  1752. text-overflow: ellipsis;
  1753. white-space: nowrap;
  1754. padding: 0 20px;
  1755. ">
  1756. 未来小学课程设计
  1757. </div>
  1758. </div> -->
  1759. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  1760. <div class="wordPic">
  1761. <img src="../../../assets/icon/wordMub.png" alt />
  1762. </div>
  1763. <div style="
  1764. margin-top: 10px;
  1765. line-height: 19px;
  1766. overflow: hidden;
  1767. text-overflow: ellipsis;
  1768. white-space: nowrap;
  1769. padding: 0 20px;
  1770. ">
  1771. 我的课程
  1772. </div>
  1773. </div> -->
  1774. </div>
  1775. </div>
  1776. </div>
  1777. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  1778. <div class="basic_box">
  1779. <div style="
  1780. display: flex;
  1781. flex-direction: row;
  1782. align-items: center;
  1783. position: sticky;
  1784. top: 0;
  1785. background: #fff;
  1786. z-index: 99;
  1787. width: 100%;
  1788. padding: 0 20px 0 20px;
  1789. box-sizing: border-box;
  1790. ">
  1791. <div class="cru_selectBox">
  1792. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1793. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1794. <!-- item.dyName ? item.dyName : -->
  1795. {{ "第" + (index + 1) + "阶段" }}
  1796. </div>
  1797. <img src="../../../assets/line.png" class="cru_line" :style="{
  1798. left: offsetLetfPx + 'px',
  1799. }" />
  1800. </div>
  1801. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  1802. !(unitJson[unitJson.length - 1].easy == 6)
  1803. ">
  1804. <img src="../../../assets/icon/add.png" alt />
  1805. </div>
  1806. </div>
  1807. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  1808. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  1809. <div>
  1810. <div class="chapter_contentbox">
  1811. <div>第{{ unitIndex + 1 }}阶段</div>
  1812. <div>
  1813. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  1814. </div>
  1815. <div v-if="unitJson.length > 1 &&
  1816. !(unitJson[unitJson.length - 1].easy == 4) &&
  1817. !(unitJson[unitJson.length - 1].easy == 6)
  1818. " @click="deleteUnit(unitIndex)"></div>
  1819. </div>
  1820. </div>
  1821. <div v-if="!unitJson[unitIndex].easy" style="
  1822. margin: 50px 0px 10px;
  1823. font-size: 1.5em;
  1824. font-weight: 700;
  1825. color: #0f7eff;
  1826. ">
  1827. 添加任务
  1828. </div>
  1829. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  1830. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1831. <div v-if="unitJson[unitIndex].easy != 1">
  1832. <div :style="{
  1833. marginBottom:
  1834. unitJson[unitIndex].easy == 3 ||
  1835. (unitJson[unitIndex].easy == 5 &&
  1836. itemTask.taskType == 1)
  1837. ? '75px'
  1838. : '0',
  1839. }">
  1840. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  1841. 任务{{ itemTaskIndex + 1 }}
  1842. </div>
  1843. <div class="chapter_contentbox" style="
  1844. flex-direction: row;
  1845. justify-content: flex-start;
  1846. align-items: center;
  1847. ">
  1848. <div style="
  1849. border-left: 6px solid #5699e8;
  1850. height: 20px;
  1851. padding-left: 10px;
  1852. line-height: 22px;
  1853. ">
  1854. 任务名称
  1855. </div>
  1856. <div>
  1857. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1858. itemTaskIndex
  1859. ].task
  1860. " />
  1861. </div>
  1862. <div class="remove" v-if="item.taskJson.length > 1 &&
  1863. (!unitJson[unitIndex].easy ||
  1864. unitJson[unitIndex].easy == 6)
  1865. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  1866. </div>
  1867. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  1868. display: flex;
  1869. margin: 0 0 20px 0;
  1870. flex-direction: row;
  1871. justify-content: flex-start;
  1872. align-items: center;
  1873. width: 70.5% !important;
  1874. padding-top: 30px;
  1875. ">
  1876. <div class="lineTitle">任务描述</div>
  1877. </div>
  1878. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  1879. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1880. itemTaskIndex
  1881. ].taskDetail
  1882. " @change="change"></editor-bar>
  1883. <!-- <textarea
  1884. rows="6"
  1885. class="binfo_input"
  1886. placeholder="请输入任务描述"
  1887. cols
  1888. style="width: 70.5% !important; height: 120px"
  1889. v-model="
  1890. unitJson[unitIndex].chapterInfo[0].taskJson[
  1891. itemTaskIndex
  1892. ].taskDetail
  1893. "
  1894. ></textarea>-->
  1895. </div>
  1896. </div>
  1897. </div>
  1898. <div v-if="!unitJson[unitIndex].easy ||
  1899. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1900. " class="basic_box" style="
  1901. padding: 0 !important;
  1902. ">
  1903. <div style="
  1904. display: flex;
  1905. margin: 0 0 20px 0;
  1906. flex-direction: row;
  1907. justify-content: flex-start;
  1908. align-items: center;
  1909. ">
  1910. <div class="lineTitle">学习内容</div>
  1911. </div>
  1912. <div>
  1913. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  1914. itemTask.chapterData.length == 0
  1915. " style="height: 185px"></div>
  1916. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1917. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  1918. @click="
  1919. getChapterData(
  1920. $event,
  1921. unitIndex,
  1922. index,
  1923. index1,
  1924. item1.type
  1925. )
  1926. ">
  1927. <div class="chapter_upload_t" style="width: 100%"></div>
  1928. <div class="chapter_upload_o" style="
  1929. position: relative;
  1930. display: flex;
  1931. align-items: center;
  1932. ">
  1933. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1934. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  1935. <div v-if="item1.type == 3 ||
  1936. item1.type == 12 ||
  1937. item1.type == 13 ||
  1938. item1.type == 6 ||
  1939. item1.type == 7
  1940. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  1941. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  1942. </div>
  1943. <div class="chapter_upload_ic" style="
  1944. cursor: pointer;
  1945. position: absolute;
  1946. width: 45px;
  1947. right: 0;
  1948. top: 0;
  1949. ">
  1950. <div class="chapter_upload_ic_l"></div>
  1951. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  1952. deleteChapterData(
  1953. $event,
  1954. unitIndex,
  1955. index,
  1956. index1,
  1957. itemTaskIndex
  1958. )
  1959. ">
  1960. <div></div>
  1961. </div>
  1962. </div>
  1963. <div class="chapter_upload_n">
  1964. <input v-if="item1.type == 2 ||
  1965. item1.type == 3 ||
  1966. item1.type == 12 ||
  1967. item1.type == 13 ||
  1968. item1.type == 7
  1969. " :placeholder="item1.name" @change="
  1970. updataVideoT(
  1971. $event,
  1972. unitIndex,
  1973. chapterIndex,
  1974. index1
  1975. )
  1976. " style="
  1977. border: none;
  1978. outline: none;
  1979. width: 80%;
  1980. minwidth: 215px;
  1981. z-index: 99;
  1982. font-size: 14px;
  1983. white-space: nowrap;
  1984. overflow: hidden;
  1985. text-overflow: ellipsis;
  1986. " />
  1987. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1988. border: none;
  1989. outline: none;
  1990. width: 80%;
  1991. white-space: nowrap;
  1992. overflow: hidden;
  1993. text-overflow: ellipsis;
  1994. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1995. <input :placeholder="item1.title ? item1.title : '链接'
  1996. " v-if="item1.type == 8" style="
  1997. border: none;
  1998. outline: none;
  1999. width: 80%;
  2000. white-space: nowrap;
  2001. overflow: hidden;
  2002. text-overflow: ellipsis;
  2003. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2004. <div class="chapter_upload_ud" style="z-index: 99">
  2005. <div class="chapter_upload_up" @click="
  2006. upCd(
  2007. $event,
  2008. unitIndex,
  2009. index,
  2010. itemTaskIndex,
  2011. index1
  2012. )
  2013. "></div>
  2014. <div class="chapter_upload_down" @click="
  2015. downCd(
  2016. $event,
  2017. unitIndex,
  2018. index,
  2019. itemTaskIndex,
  2020. index1
  2021. )
  2022. "></div>
  2023. </div>
  2024. </div>
  2025. </div>
  2026. </div>
  2027. </div>
  2028. </div>
  2029. <div class="add_info_box">
  2030. <button class="info_btn" @click="addImg($event)">
  2031. 添加文件
  2032. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  2033. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2034. " />
  2035. </button>
  2036. <!-- <button class="info_btn" @click="addImg($event)">
  2037. 添加视频
  2038. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2039. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2040. " />
  2041. </button>
  2042. <button class="info_btn" @click="addImg($event)">
  2043. 添加文档
  2044. <input type="file"
  2045. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2046. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2047. " />
  2048. </button> -->
  2049. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  2050. 添加图文
  2051. </button>
  2052. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2053. 添加链接
  2054. </button>
  2055. <button class="info_btn" @click="openSource(itemTaskIndex)">
  2056. 添加资源
  2057. </button>
  2058. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  2059. 嵌入代码
  2060. </button>
  2061. <!-- <button class="info_btn" @click="addImg($event)">
  2062. 其他附件
  2063. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2064. " />
  2065. </button> -->
  2066. </div>
  2067. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2068. itemTaskIndex
  2069. ].proVisible
  2070. " class="mask">
  2071. <div class="progressBox">
  2072. <!-- <div id="closePro" class="closeCss">
  2073. <img src="../../../../assets/icon/close.png" alt />
  2074. </div> -->
  2075. <div class="lbox">
  2076. <img src="../../../assets/loading.gif" />上传中,请稍后
  2077. </div>
  2078. <div style="margin-bottom: 10px">
  2079. <span>{{
  2080. unitJson[unitIndex].chapterInfo[0].taskJson[
  2081. itemTaskIndex
  2082. ].isFinishSize
  2083. }}M</span>
  2084. /
  2085. <span>{{
  2086. unitJson[unitIndex].chapterInfo[0].taskJson[
  2087. itemTaskIndex
  2088. ].isAllSize
  2089. }}M</span>
  2090. </div>
  2091. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2092. itemTaskIndex
  2093. ].progress
  2094. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2095. itemTaskIndex
  2096. ].progress
  2097. : 0
  2098. " style="width: 80%"></el-progress>
  2099. </div>
  2100. </div>
  2101. </div>
  2102. <div v-if="unitJson[unitIndex].easy == 1 ||
  2103. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2104. " class="basic_box" style="
  2105. margin: 0 auto;
  2106. min-height: 0;
  2107. width: 95% !important;
  2108. padding: 20px 10px 10px;
  2109. ">
  2110. <div>
  2111. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  2112. itemTask.chapterData.length == 0
  2113. " style="height: 185px"></div>
  2114. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2115. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  2116. <div class="chapter_upload" @click="
  2117. getChapterData(
  2118. $event,
  2119. unitIndex,
  2120. index,
  2121. index1,
  2122. item1.type
  2123. )
  2124. ">
  2125. <div class="chapter_upload_t" style="width: 100%"></div>
  2126. <div class="chapter_upload_o" style="
  2127. position: relative;
  2128. display: flex;
  2129. align-items: center;
  2130. ">
  2131. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2132. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2133. <div v-if="item1.type == 3 ||
  2134. item1.type == 6 ||
  2135. item1.type == 7
  2136. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2137. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2138. </div>
  2139. <div class="chapter_upload_ic" style="
  2140. cursor: pointer;
  2141. position: absolute;
  2142. width: 45px;
  2143. right: 0;
  2144. top: 0;
  2145. ">
  2146. <div class="chapter_upload_ic_l"></div>
  2147. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2148. deleteChapterData(
  2149. $event,
  2150. unitIndex,
  2151. index,
  2152. index1,
  2153. itemTaskIndex
  2154. )
  2155. ">
  2156. <div></div>
  2157. </div>
  2158. </div>
  2159. <div class="chapter_upload_n">
  2160. <span style="
  2161. font-size: 14px;
  2162. color: rgb(109, 109, 109);
  2163. height: 14px;
  2164. line-height: 12px;
  2165. " v-if="item1.type == 2 ||
  2166. item1.type == 3 ||
  2167. item1.type == 7
  2168. ">{{ item1.text }}-</span>
  2169. <input v-if="item1.type == 2 ||
  2170. item1.type == 3 ||
  2171. item1.type == 7
  2172. " :placeholder="item1.name" @change="
  2173. updataVideoT(
  2174. $event,
  2175. unitIndex,
  2176. chapterIndex,
  2177. index1
  2178. )
  2179. " style="
  2180. border: none;
  2181. outline: none;
  2182. width: 80%;
  2183. minwidth: 215px;
  2184. z-index: 99;
  2185. font-size: 14px;
  2186. white-space: nowrap;
  2187. overflow: hidden;
  2188. text-overflow: ellipsis;
  2189. " />
  2190. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2191. border: none;
  2192. outline: none;
  2193. width: 80%;
  2194. white-space: nowrap;
  2195. overflow: hidden;
  2196. text-overflow: ellipsis;
  2197. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2198. <input :placeholder="item1.title ? item1.title : '链接'
  2199. " v-if="item1.type == 8" style="
  2200. border: none;
  2201. outline: none;
  2202. width: 80%;
  2203. white-space: nowrap;
  2204. overflow: hidden;
  2205. text-overflow: ellipsis;
  2206. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2207. <div class="chapter_upload_ud" style="z-index: 99">
  2208. <div class="chapter_upload_up" @click="
  2209. upCd(
  2210. $event,
  2211. unitIndex,
  2212. index,
  2213. itemTaskIndex,
  2214. index1
  2215. )
  2216. "></div>
  2217. <div class="chapter_upload_down" @click="
  2218. downCd(
  2219. $event,
  2220. unitIndex,
  2221. index,
  2222. itemTaskIndex,
  2223. index1
  2224. )
  2225. "></div>
  2226. </div>
  2227. </div>
  2228. </div>
  2229. </div>
  2230. </div>
  2231. </div>
  2232. </div>
  2233. <div class="add_info_box" style="margin: 10px 0 0">
  2234. <button class="info_btn" @click="addImg($event)">
  2235. <span style="color: red">*</span>
  2236. 教学设计
  2237. <input type="file"
  2238. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2239. style="display: none" v-if="inputShow" @change="
  2240. beforeUpload3(
  2241. $event,
  2242. unitIndex,
  2243. 3,
  2244. itemTaskIndex,
  2245. '教学设计'
  2246. )
  2247. " />
  2248. </button>
  2249. <button class="info_btn" @click="addImg($event)">
  2250. <span style="color: red">*</span>
  2251. 教学课件
  2252. <input type="file"
  2253. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2254. style="display: none" v-if="inputShow" @change="
  2255. beforeUpload3(
  2256. $event,
  2257. unitIndex,
  2258. 3,
  2259. itemTaskIndex,
  2260. '教学课件'
  2261. )
  2262. " />
  2263. </button>
  2264. <button class="info_btn" @click="addImg($event)">
  2265. 教学视频
  2266. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2267. v-if="inputShow" @change="
  2268. beforeUpload3(
  2269. $event,
  2270. unitIndex,
  2271. 2,
  2272. itemTaskIndex,
  2273. '教学视频'
  2274. )
  2275. " />
  2276. </button>
  2277. <button class="info_btn" @click="addImg($event)">
  2278. 教学音频
  2279. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  2280. beforeUpload3(
  2281. $event,
  2282. unitIndex,
  2283. 2,
  2284. itemTaskIndex,
  2285. '教学音频'
  2286. )
  2287. " />
  2288. </button>
  2289. <button class="info_btn" @click="addImg($event)">
  2290. 学习单
  2291. <input type="file"
  2292. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2293. style="display: none" v-if="inputShow" @change="
  2294. beforeUpload3(
  2295. $event,
  2296. unitIndex,
  2297. 3,
  2298. itemTaskIndex,
  2299. '学习单'
  2300. )
  2301. " />
  2302. </button>
  2303. </div>
  2304. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2305. itemTaskIndex
  2306. ].proVisible
  2307. " class="mask">
  2308. <div class="progressBox">
  2309. <!-- <div id="closePro" class="closeCss">
  2310. <img src="../../../../assets/icon/close.png" alt />
  2311. </div> -->
  2312. <div class="lbox">
  2313. <img src="../../../assets/loading.gif" />上传中,请稍后
  2314. </div>
  2315. <div style="margin-bottom: 10px">
  2316. <span>{{
  2317. unitJson[unitIndex].chapterInfo[0].taskJson[
  2318. itemTaskIndex
  2319. ].isFinishSize
  2320. }}M</span>
  2321. /
  2322. <span>{{
  2323. unitJson[unitIndex].chapterInfo[0].taskJson[
  2324. itemTaskIndex
  2325. ].isAllSize
  2326. }}M</span>
  2327. </div>
  2328. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2329. itemTaskIndex
  2330. ].progress
  2331. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2332. itemTaskIndex
  2333. ].progress
  2334. : 0
  2335. " style="width: 80%"></el-progress>
  2336. </div>
  2337. </div>
  2338. </div>
  2339. <div v-if="unitJson[unitIndex].easy != 3 &&
  2340. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  2341. " style="
  2342. flex-direction: row;
  2343. justify-content: flex-start;
  2344. align-items: center;
  2345. padding: 0 0 0 30px;
  2346. paddint-top: 10px !important;
  2347. ">
  2348. <div style="
  2349. display: flex;
  2350. flex-direction: row;
  2351. align-items: center;
  2352. margin-bottom: 20px;
  2353. ">
  2354. <div class="lineTitle">
  2355. {{
  2356. !unitJson[unitIndex].easy ||
  2357. unitJson[unitIndex].easy == 6 ||
  2358. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2359. ? "练习内容"
  2360. : "评价内容"
  2361. }}
  2362. </div>
  2363. </div>
  2364. </div>
  2365. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  2366. " class="toolChoose" style="padding: 0 0 0 30px">
  2367. <div class="tools">
  2368. <div class="leftTools" style="
  2369. width: 95%;
  2370. padding: 0 0 15px 0;
  2371. margin: 15px 0;
  2372. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2373. <div>
  2374. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2375. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2376. </div>
  2377. <div style="
  2378. display: flex;
  2379. flex-direction: row;
  2380. align-items: baseline;
  2381. flex-wrap: nowrap;
  2382. justify-content: flex-start;
  2383. position: relative;
  2384. ">
  2385. <div style="margin-right: 20px; font-weight: bold">
  2386. 步骤 {{ toolIndex + 1 }} :
  2387. </div>
  2388. <div class="chooseWho">
  2389. <!-- <div
  2390. :class="
  2391. itemTool.toolType == 0 ? 'isChooseActive' : ''
  2392. "
  2393. @click="(itemTool.toolType = 0), $forceUpdate()"
  2394. >
  2395. 互动类
  2396. </div> -->
  2397. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  2398. " @click="(itemTool.toolType = 1), $forceUpdate()">
  2399. 思维类
  2400. </div>
  2401. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  2402. " @click="(itemTool.toolType = 6), $forceUpdate()">
  2403. 协作类
  2404. </div>
  2405. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  2406. " @click="(itemTool.toolType = 2), $forceUpdate()">
  2407. 测评类
  2408. </div>
  2409. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  2410. " @click="(itemTool.toolType = 7), $forceUpdate()">
  2411. 评价类
  2412. </div>
  2413. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  2414. " @click="(itemTool.toolType = 3), $forceUpdate()">
  2415. 学科类
  2416. </div>
  2417. <!-- <div
  2418. :class="
  2419. itemTool.toolType == 5 ? 'isChooseActive' : ''
  2420. "
  2421. @click="(itemTool.toolType = 5), $forceUpdate()"
  2422. >
  2423. 学科类
  2424. </div>
  2425. <div
  2426. :class="
  2427. itemTool.toolType == 4 ? 'isChooseActive' : ''
  2428. "
  2429. @click="(itemTool.toolType = 4), $forceUpdate()"
  2430. >
  2431. 其他
  2432. </div> -->
  2433. </div>
  2434. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2435. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2436. </div>
  2437. <div style="min-height: 163px">
  2438. <div class="toolSort" v-if="itemTool.toolType == 0">
  2439. <!-- <div class="tool">
  2440. <div
  2441. class="whiteBIcon"
  2442. @click="addTools(8, itemTaskIndex, toolIndex)"
  2443. >
  2444. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2445. <div style="margin: 5px 0">素材库</div>
  2446. </div>
  2447. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2448. <img
  2449. src="../../../assets/icon/checkNo.png"
  2450. alt
  2451. v-if="itemTool.tool.indexOf(8) == -1"
  2452. />
  2453. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2454. alt /><span>已选择</span></div>
  2455. </div>
  2456. </div>-->
  2457. <!-- <div class="tool">
  2458. <div
  2459. class="whiteBIcon"
  2460. @click="addTools(17, itemTaskIndex, toolIndex)"
  2461. >
  2462. <img
  2463. src="../../../assets/icon/secondToolList/library.png"
  2464. alt
  2465. />
  2466. <div style="margin: 5px 0">学习资料</div>
  2467. </div>
  2468. <div
  2469. class="check"
  2470. @click="addTools(17, itemTaskIndex, toolIndex)"
  2471. >
  2472. <img
  2473. src="../../../assets/icon/checkNo.png"
  2474. alt
  2475. v-if="itemTool.tool.indexOf(17) == -1"
  2476. />
  2477. <img
  2478. src="../../../assets/icon/checkedIs.png"
  2479. alt
  2480. v-else
  2481. />
  2482. </div>10
  2483. </div> -->
  2484. <div class="tool">
  2485. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  2486. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2487. <div style="margin: 5px 0">倒计时</div>
  2488. </div>
  2489. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2490. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  2491. <div class="checkDiv" v-else>
  2492. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2493. </div>
  2494. </div>
  2495. </div>
  2496. <!-- <div class="tool">
  2497. <div
  2498. class="whiteBIcon"
  2499. @click="openTools(itemTaskIndex, 49, toolIndex)"
  2500. >
  2501. <img
  2502. src="../../../assets/icon/fourthToolList/group.png"
  2503. alt
  2504. />
  2505. <div style="margin: 5px 0">学生分组</div>
  2506. </div>
  2507. <div
  2508. class="check"
  2509. @click="addTools(49, itemTaskIndex, toolIndex)"
  2510. >
  2511. <img
  2512. src="../../../assets/icon/checkNo.png"
  2513. alt
  2514. v-if="itemTool.tool.indexOf(49) == -1"
  2515. />
  2516. <div class="checkDiv" v-else>
  2517. <img
  2518. src="../../../assets/icon/checkedIs.png"
  2519. alt
  2520. /><span>已选择</span>
  2521. </div>
  2522. </div>
  2523. </div> -->
  2524. <div class="tool">
  2525. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2526. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2527. <div style="margin: 5px 0">交互视频</div>
  2528. </div>
  2529. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2530. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2531. <div class="checkDiv" v-else>
  2532. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2533. </div>
  2534. </div>
  2535. </div>
  2536. </div>
  2537. <div class="toolSort" v-if="itemTool.toolType == 1">
  2538. <div class="tool">
  2539. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  2540. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2541. <div style="margin: 5px 0">思维网格</div>
  2542. </div>
  2543. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2544. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  2545. <div class="checkDiv" v-else>
  2546. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2547. </div>
  2548. </div>
  2549. </div>
  2550. <div class="tool">
  2551. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2552. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2553. <div style="margin: 5px 0">电子白板</div>
  2554. </div>
  2555. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2556. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2557. <div class="checkDiv" v-else>
  2558. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2559. </div>
  2560. </div>
  2561. </div>
  2562. <!-- <div class="tool">
  2563. <div
  2564. class="whiteBIcon"
  2565. @click="addTools(2, itemTaskIndex, toolIndex)"
  2566. >
  2567. <img
  2568. src="../../../assets/icon/secondToolList/note.png"
  2569. alt
  2570. />
  2571. <div style="margin: 5px 0">便签</div>
  2572. </div>
  2573. <div
  2574. class="check"
  2575. @click="addTools(2, itemTaskIndex, toolIndex)"
  2576. >
  2577. <img
  2578. src="../../../assets/icon/checkNo.png"
  2579. alt
  2580. v-if="itemTool.tool.indexOf(2) == -1"
  2581. />
  2582. <div class="checkDiv" v-else>
  2583. <img
  2584. src="../../../assets/icon/checkedIs.png"
  2585. alt
  2586. /><span>已选择</span>
  2587. </div>
  2588. </div>
  2589. </div> -->
  2590. <!-- <div class="tool">
  2591. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2592. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2593. <div style="margin: 5px 0">协同文档</div>
  2594. </div>
  2595. <div
  2596. class="check"
  2597. @click="addTools(6, itemTaskIndex, toolIndex)"
  2598. >
  2599. <img
  2600. src="../../../assets/icon/checkNo.png"
  2601. alt
  2602. v-if="itemTool.tool.indexOf(6) == -1"
  2603. />
  2604. <div class="checkDiv" v-else>
  2605. <img
  2606. src="../../../assets/icon/checkedIs.png"
  2607. alt
  2608. /><span>已选择</span>
  2609. </div>
  2610. </div>
  2611. </div> -->
  2612. <div class="tool">
  2613. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2614. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2615. <div style="margin: 5px 0">文档</div>
  2616. </div>
  2617. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2618. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2619. <div class="checkDiv" v-else>
  2620. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2621. </div>
  2622. </div>
  2623. </div>
  2624. <div class="tool">
  2625. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2626. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2627. <div style="margin: 5px 0">思维导图</div>
  2628. </div>
  2629. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2630. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  2631. <div class="checkDiv" v-else>
  2632. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2633. </div>
  2634. </div>
  2635. </div>
  2636. <div class="tool">
  2637. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2638. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2639. <div style="margin: 5px 0">表格</div>
  2640. </div>
  2641. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2642. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  2643. <div class="checkDiv" v-else>
  2644. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2645. </div>
  2646. </div>
  2647. </div>
  2648. </div>
  2649. <div class="toolSort" v-if="itemTool.toolType == 6">
  2650. <div class="tool">
  2651. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2652. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2653. <div style="margin: 5px 0">学生分组</div>
  2654. </div>
  2655. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2656. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2657. <div class="checkDiv" v-else>
  2658. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2659. </div>
  2660. </div>
  2661. </div>
  2662. </div>
  2663. <div class="toolSort" v-if="itemTool.toolType == 2">
  2664. <!-- <div class="tool">
  2665. <div
  2666. class="whiteBIcon"
  2667. @click="addTools(5, itemTaskIndex, toolIndex)"
  2668. >
  2669. <img
  2670. src="../../../assets/icon/thirdToolList/score.png"
  2671. alt
  2672. />
  2673. <div style="margin: 5px 0">量规评分</div>
  2674. </div>
  2675. <div
  2676. class="check"
  2677. @click="addTools(5, itemTaskIndex, toolIndex)"
  2678. >
  2679. <img
  2680. src="../../../assets/icon/checkNo.png"
  2681. alt
  2682. v-if="itemTool.tool.indexOf(5) == -1"
  2683. />
  2684. <img
  2685. src="../../../assets/icon/checkedIs.png"
  2686. alt
  2687. v-else
  2688. />
  2689. </div>
  2690. </div>-->
  2691. <div class="tool">
  2692. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2693. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2694. <div style="margin: 5px 0">问卷调查</div>
  2695. </div>
  2696. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2697. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  2698. <div class="checkDiv" v-else>
  2699. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2700. </div>
  2701. </div>
  2702. </div>
  2703. <div class="tool">
  2704. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2705. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2706. <div style="margin: 5px 0">选择题</div>
  2707. </div>
  2708. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2709. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  2710. <div class="checkDiv" v-else>
  2711. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2712. </div>
  2713. </div>
  2714. </div>
  2715. <div class="tool">
  2716. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2717. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2718. <div style="margin: 5px 0">问答</div>
  2719. </div>
  2720. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2721. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  2722. <div class="checkDiv" v-else>
  2723. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2724. </div>
  2725. </div>
  2726. </div>
  2727. <div class="tool">
  2728. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2729. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2730. <div style="margin: 5px 0">作业提交</div>
  2731. </div>
  2732. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2733. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  2734. <div class="checkDiv" v-else>
  2735. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2736. </div>
  2737. </div>
  2738. </div>
  2739. <div class="tool">
  2740. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  2741. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2742. <div style="margin: 5px 0">批量上传</div>
  2743. </div>
  2744. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2745. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2746. <div class="checkDiv" v-else>
  2747. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2748. </div>
  2749. </div>
  2750. </div>
  2751. <!-- <div class="tool">
  2752. <div
  2753. class="whiteBIcon"
  2754. @click="openTools(itemTaskIndex, 40, toolIndex)"
  2755. >
  2756. <img
  2757. src="../../../assets/icon/thirdToolList/eval.png"
  2758. alt
  2759. />
  2760. <div style="margin: 5px 0">个人评价</div>
  2761. </div>
  2762. <div
  2763. class="check"
  2764. @click="addTools(40, itemTaskIndex, toolIndex)"
  2765. >
  2766. <img
  2767. src="../../../assets/icon/checkNo.png"
  2768. alt
  2769. v-if="itemTool.tool.indexOf(40) == -1"
  2770. />
  2771. <div class="checkDiv" v-else>
  2772. <img
  2773. src="../../../assets/icon/checkedIs.png"
  2774. alt
  2775. /><span>已选择</span>
  2776. </div>
  2777. </div>
  2778. </div> -->
  2779. <div class="tool">
  2780. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2781. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2782. <div style="margin: 5px 0">选择匹配</div>
  2783. </div>
  2784. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2785. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  2786. <div class="checkDiv" v-else>
  2787. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2788. </div>
  2789. </div>
  2790. </div>
  2791. <div class="tool">
  2792. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2793. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2794. <div style="margin: 5px 0">排序</div>
  2795. </div>
  2796. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2797. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  2798. <div class="checkDiv" v-else>
  2799. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2800. </div>
  2801. </div>
  2802. </div>
  2803. <!-- <div class="tool">
  2804. <div
  2805. class="whiteBIcon"
  2806. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2807. >
  2808. <img
  2809. src="../../../assets/icon/thirdToolList/mp3.png"
  2810. alt
  2811. />
  2812. <div style="margin: 5px 0">上传音频</div>
  2813. </div>
  2814. <div
  2815. class="check"
  2816. @click="addTools(42, itemTaskIndex, toolIndex)"
  2817. >
  2818. <img
  2819. src="../../../assets/icon/checkNo.png"
  2820. alt
  2821. v-if="itemTool.tool.indexOf(42) == -1"
  2822. />
  2823. <img
  2824. src="../../../assets/icon/checkedIs.png"
  2825. alt
  2826. v-else
  2827. />
  2828. </div>
  2829. </div> -->
  2830. </div>
  2831. <div class="toolSort" v-if="itemTool.toolType == 3">
  2832. <div class="tool">
  2833. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  2834. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2835. <div style="margin: 5px 0">训练平台</div>
  2836. </div>
  2837. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2838. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  2839. <div class="checkDiv" v-else>
  2840. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2841. </div>
  2842. </div>
  2843. </div>
  2844. <div class="tool">
  2845. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  2846. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2847. <div style="margin: 5px 0">AIoT Blockly</div>
  2848. </div>
  2849. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2850. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  2851. <div class="checkDiv" v-else>
  2852. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2853. </div>
  2854. </div>
  2855. </div>
  2856. <div class="tool">
  2857. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2858. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2859. <div style="margin: 5px 0">AI体验</div>
  2860. </div>
  2861. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2862. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2863. <div class="checkDiv" v-else>
  2864. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2865. </div>
  2866. </div>
  2867. </div>
  2868. <div class="tool">
  2869. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  2870. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2871. <div style="margin: 5px 0">AI Python</div>
  2872. </div>
  2873. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2874. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  2875. <div class="checkDiv" v-else>
  2876. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2877. </div>
  2878. </div>
  2879. </div>
  2880. <div class="tool">
  2881. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  2882. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2883. <div style="margin: 5px 0">AI Blockly</div>
  2884. </div>
  2885. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2886. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  2887. <div class="checkDiv" v-else>
  2888. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2889. </div>
  2890. </div>
  2891. </div>
  2892. <!-- <div class="tool">
  2893. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  2894. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2895. <div style="margin: 5px 0">源码编辑</div>
  2896. </div>
  2897. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2898. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  2899. <div class="checkDiv" v-else>
  2900. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2901. </div>
  2902. </div>
  2903. </div> -->
  2904. <div class="tool">
  2905. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  2906. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2907. <div style="margin: 5px 0">CocoPi</div>
  2908. </div>
  2909. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2910. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  2911. <div class="checkDiv" v-else>
  2912. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2913. </div>
  2914. </div>
  2915. </div>
  2916. <div class="tool">
  2917. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  2918. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2919. <div style="margin: 5px 0">海龟编程</div>
  2920. </div>
  2921. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2922. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  2923. <div class="checkDiv" v-else>
  2924. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2925. </div>
  2926. </div>
  2927. </div>
  2928. </div>
  2929. <div class="toolSort" v-if="itemTool.toolType == 7">
  2930. <div class="tool">
  2931. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2932. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2933. <div style="margin: 5px 0">个人评价</div>
  2934. </div>
  2935. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2936. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2937. <div class="checkDiv" v-else>
  2938. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2939. </div>
  2940. </div>
  2941. </div>
  2942. </div>
  2943. <div class="toolSort" v-if="itemTool.toolType == 5">
  2944. <div class="tool">
  2945. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2946. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  2947. <div style="margin: 5px 0">翻译</div>
  2948. </div>
  2949. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2950. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2951. <div class="checkDiv" v-else>
  2952. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2953. </div>
  2954. </div>
  2955. </div>
  2956. <div class="tool">
  2957. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2958. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  2959. <div style="margin: 5px 0">魔盒识字</div>
  2960. </div>
  2961. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2962. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  2963. <div class="checkDiv" v-else>
  2964. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2965. </div>
  2966. </div>
  2967. </div>
  2968. <div class="tool">
  2969. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  2970. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  2971. <div style="margin: 5px 0">24点</div>
  2972. </div>
  2973. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  2974. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  2975. <div class="checkDiv" v-else>
  2976. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2977. </div>
  2978. </div>
  2979. </div>
  2980. <div class="tool">
  2981. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  2982. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2983. <div style="margin: 5px 0">数学画板</div>
  2984. </div>
  2985. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2986. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2987. <div class="checkDiv" v-else>
  2988. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2989. </div>
  2990. </div>
  2991. </div>
  2992. <div class="tool">
  2993. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2994. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  2995. <div style="margin: 5px 0">GeoGebra</div>
  2996. </div>
  2997. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2998. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2999. <div class="checkDiv" v-else>
  3000. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3001. </div>
  3002. </div>
  3003. </div>
  3004. <div class="tool">
  3005. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3006. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3007. <div style="margin: 5px 0">模拟驾驶</div>
  3008. </div>
  3009. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3010. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3011. <div class="checkDiv" v-else>
  3012. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3013. </div>
  3014. </div>
  3015. </div>
  3016. <div class="tool">
  3017. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3018. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3019. <div style="margin: 5px 0">路径搜索</div>
  3020. </div>
  3021. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3022. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3023. <div class="checkDiv" v-else>
  3024. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3025. </div>
  3026. </div>
  3027. </div>
  3028. <div class="tool">
  3029. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3030. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3031. <div style="margin: 5px 0">深度学习</div>
  3032. </div>
  3033. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3034. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3035. <div class="checkDiv" v-else>
  3036. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3037. </div>
  3038. </div>
  3039. </div>
  3040. <div class="tool">
  3041. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3042. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3043. <div style="margin: 5px 0">全历史</div>
  3044. </div>
  3045. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3046. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3047. <div class="checkDiv" v-else>
  3048. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3049. </div>
  3050. </div>
  3051. </div>
  3052. </div>
  3053. <div class="toolSort" v-if="itemTool.toolType == 4">
  3054. <div class="tool">
  3055. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3056. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3057. <div style="margin: 5px 0">课程设计</div>
  3058. </div>
  3059. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3060. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3061. <div class="checkDiv" v-else>
  3062. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3063. </div>
  3064. </div>
  3065. </div>
  3066. <div class="tool">
  3067. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3068. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3069. <div style="margin: 5px 0">目标管理</div>
  3070. </div>
  3071. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3072. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3073. <div class="checkDiv" v-else>
  3074. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3075. </div>
  3076. </div>
  3077. </div>
  3078. <!-- <div class="tool">
  3079. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3080. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3081. <div style="margin: 5px 0">汉字宫</div>
  3082. </div>
  3083. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3084. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3085. <div class="checkDiv" v-else>
  3086. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3087. </div>
  3088. </div>
  3089. </div> -->
  3090. </div>
  3091. </div>
  3092. </div>
  3093. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  3094. <div class="addToolImg">
  3095. <img src="../../../assets/icon/add.png" alt />
  3096. </div>
  3097. <div>添加工具</div>
  3098. </div>
  3099. </div>
  3100. </div>
  3101. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  3102. unitJson[unitIndex].easy == 4
  3103. " class="toolChoose" style="padding: 0 0 0 30px">
  3104. <div class="tools">
  3105. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3106. :key="toolIndex">
  3107. <div>
  3108. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  3109. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  3110. </div>
  3111. <div style="
  3112. display: flex;
  3113. flex-direction: row;
  3114. align-items: baseline;
  3115. flex-wrap: nowrap;
  3116. justify-content: flex-start;
  3117. position: relative;
  3118. ">
  3119. <div style="margin-right: 20px; font-weight: bold">
  3120. 步骤 {{ toolIndex + 1 }} :
  3121. </div>
  3122. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3123. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  3124. </div>
  3125. <div style="min-height: 163px">
  3126. <div class="toolSort">
  3127. <div class="tool">
  3128. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  3129. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3130. <div style="margin: 5px 0">电子白板</div>
  3131. </div>
  3132. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  3133. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  3134. <div class="checkDiv" v-else>
  3135. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3136. </div>
  3137. </div>
  3138. </div>
  3139. <div class="tool">
  3140. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  3141. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3142. <div style="margin: 5px 0">文档</div>
  3143. </div>
  3144. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  3145. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  3146. <div class="checkDiv" v-else>
  3147. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div class="tool">
  3152. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  3153. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3154. <div style="margin: 5px 0">思维导图</div>
  3155. </div>
  3156. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  3157. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  3158. <div class="checkDiv" v-else>
  3159. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3160. </div>
  3161. </div>
  3162. </div>
  3163. <div class="tool">
  3164. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  3165. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3166. <div style="margin: 5px 0">问卷调查</div>
  3167. </div>
  3168. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3169. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  3170. <div class="checkDiv" v-else>
  3171. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3172. </div>
  3173. </div>
  3174. </div>
  3175. <div class="tool">
  3176. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  3177. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3178. <div style="margin: 5px 0">选择题</div>
  3179. </div>
  3180. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3181. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  3182. <div class="checkDiv" v-else>
  3183. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3184. </div>
  3185. </div>
  3186. </div>
  3187. <div class="tool">
  3188. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  3189. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3190. <div style="margin: 5px 0">问答</div>
  3191. </div>
  3192. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3193. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  3194. <div class="checkDiv" v-else>
  3195. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3196. </div>
  3197. </div>
  3198. </div>
  3199. <div class="tool">
  3200. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  3201. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3202. <div style="margin: 5px 0">作业提交</div>
  3203. </div>
  3204. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3205. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  3206. <div class="checkDiv" v-else>
  3207. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3208. </div>
  3209. </div>
  3210. </div>
  3211. <div class="tool">
  3212. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3213. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3214. <div style="margin: 5px 0">批量上传</div>
  3215. </div>
  3216. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3217. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3218. <div class="checkDiv" v-else>
  3219. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3220. </div>
  3221. </div>
  3222. </div>
  3223. <div class="tool">
  3224. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  3225. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3226. <div style="margin: 5px 0">选择匹配</div>
  3227. </div>
  3228. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3229. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  3230. <div class="checkDiv" v-else>
  3231. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3232. </div>
  3233. </div>
  3234. </div>
  3235. <div class="tool">
  3236. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  3237. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3238. <div style="margin: 5px 0">排序</div>
  3239. </div>
  3240. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3241. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  3242. <div class="checkDiv" v-else>
  3243. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3244. </div>
  3245. </div>
  3246. </div>
  3247. <div class="tool">
  3248. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  3249. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3250. <div style="margin: 5px 0">表格</div>
  3251. </div>
  3252. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  3253. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  3254. <div class="checkDiv" v-else>
  3255. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3256. </div>
  3257. </div>
  3258. </div>
  3259. </div>
  3260. </div>
  3261. </div>
  3262. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3263. <div class="addToolImg">
  3264. <img src="../../../assets/icon/add.png" alt />
  3265. </div>
  3266. <div>添加工具</div>
  3267. </div>
  3268. </div>
  3269. </div>
  3270. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  3271. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  3272. " class="toolChoose" style="padding: 0 0 0 30px">
  3273. <div class="tools">
  3274. <div class="leftTools" style="
  3275. width: 95%;
  3276. padding: 0 0 15px 0;
  3277. margin-bottom: 15px;
  3278. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  3279. <div style="min-height: 163px">
  3280. <div class="toolSort">
  3281. <div class="tool">
  3282. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3283. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3284. <div style="margin: 5px 0">批量上传</div>
  3285. </div>
  3286. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3287. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3288. <div class="checkDiv" v-else>
  3289. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3290. </div>
  3291. </div>
  3292. </div>
  3293. </div>
  3294. </div>
  3295. </div>
  3296. </div>
  3297. </div>
  3298. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  3299. <div class="elist_title">
  3300. <div style="
  3301. display: flex;
  3302. flex-direction: row;
  3303. align-items: center;
  3304. margin-bottom: 20px;
  3305. ">
  3306. <div class="lineTitle">评价设置</div>
  3307. </div>
  3308. </div>
  3309. <div class="mbCss">
  3310. <div class="pjCss">
  3311. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3312. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3313. <span>评价名称:</span>
  3314. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  3315. <span>评星等级:</span>
  3316. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  3317. <div class="remove" @click="
  3318. deletEList(unitIndex, itemTaskIndex, eIndex)
  3319. "></div>
  3320. <div class="elist_inptu_text">
  3321. <span>评价描述:</span>
  3322. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  3323. </div>
  3324. <div class="elist_inptu_text" v-if="evalua">
  3325. <span>目标:</span>
  3326. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  3327. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3328. @change="forceUpdate()">
  3329. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3330. :value="e.name">
  3331. </el-option>
  3332. </el-select> -->
  3333. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3334. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3335. </div>
  3336. </div>
  3337. </div>
  3338. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  3339. <div class="addToolImg">
  3340. <img src="../../../assets/icon/add.png" alt />
  3341. </div>
  3342. <div>添加</div>
  3343. </div>
  3344. </div>
  3345. <div v-if="evalua" style="
  3346. border: 1px solid #e5e5e5;
  3347. width: 55%;
  3348. margin-top: 20px;
  3349. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3350. " class="evaCss">
  3351. <div class="e_add_top">
  3352. <div class="e_add_title">
  3353. <span>当前使用目标管理</span>
  3354. <span>{{ eTitle }}</span>
  3355. <img src="../../../assets/line.png" class="cru_line" style="
  3356. width: 125px;
  3357. height: 20px;
  3358. bottom: -10px;
  3359. left: 155px;
  3360. " />
  3361. </div>
  3362. </div>
  3363. <div class="e_add_content" style="width: 100%">
  3364. <div class="e_add_list_pbox" style="width: 100%">
  3365. <div class="e_add_list_pbox_title">
  3366. <span class="type_title">切换模式</span>
  3367. <div class="type_content">
  3368. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  3369. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  3370. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  3371. </div>
  3372. </div>
  3373. <div class="e_add_list_pbox_content">
  3374. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3375. " v-if="typeMode == 1"></Mind>
  3376. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3377. </Sunburst>
  3378. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3379. v-if="typeMode == 3"></SeeBoard>
  3380. </div>
  3381. </div>
  3382. </div>
  3383. </div>
  3384. </div>
  3385. </div>
  3386. <div class="funBlock" style="padding: 0">
  3387. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  3388. <div>折叠</div>
  3389. <div class="arrow">
  3390. <img src="../../../assets/icon/fold.png" alt />
  3391. </div>
  3392. </div>
  3393. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3394. <div>展开</div>
  3395. <div class="arrow">
  3396. <img src="../../../assets/icon/expand.png" alt />
  3397. </div>
  3398. </div>
  3399. </div>
  3400. </div>
  3401. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3402. <div>
  3403. <img src="../../../assets/icon/new/addStage.png" alt />
  3404. <span>添加任务</span>
  3405. </div>
  3406. </div>
  3407. </div>
  3408. </div>
  3409. </div>
  3410. <div class="rightBox" v-if="this.steps == 4">
  3411. <div class="basic_box_success">
  3412. <div class="right_img">
  3413. <img src="../../../assets/icon/right.png" alt />
  3414. </div>
  3415. <div style="font-weight: bold">成功</div>
  3416. <!-- <div>您的课程编号</div>
  3417. <div class="number">{{ number }}</div>-->
  3418. <!-- <div class="success_button">
  3419. <div class="look_course" @click="isNoFinsh">
  3420. 邀请老师协同编辑
  3421. </div>
  3422. <div class="attend_others" @click="goCourse">预览课程</div>
  3423. </div> -->
  3424. </div>
  3425. </div>
  3426. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3427. @mouseleave="btnDisplay(false)" v-if="false">
  3428. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps" v-if="isBtnDisplay">
  3429. 返回课程
  3430. </button>
  3431. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="isBtnDisplay">
  3432. 确认上传
  3433. </button>
  3434. </div>
  3435. </div>
  3436. </div>
  3437. </div>
  3438. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3439. class="dialog_diy2 customWidth">
  3440. <div>请复制该链接邀请协同编辑</div>
  3441. <div>http://www.boomyon.com/index-zhang.com</div>
  3442. <span slot="footer" class="dialog-footer">
  3443. <el-button type="primary">复制链接分享</el-button>
  3444. <el-button @click="dialogVisible = false">取消</el-button>
  3445. </span>
  3446. </el-dialog>
  3447. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  3448. :before-close="handleClose" class="dialog_diy2 customWidth">
  3449. <el-form>
  3450. <el-form-item label="文档标题">
  3451. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3452. </el-form-item>
  3453. <div>文档简介</div>
  3454. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3455. </el-form>
  3456. <span slot="footer" class="dialog-footer">
  3457. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3458. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3459. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3460. </span>
  3461. </el-dialog>
  3462. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3463. :before-close="handleClose" class="dialog_diy">
  3464. <el-form>
  3465. <el-form-item label="文档标题">
  3466. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3467. </el-form-item>
  3468. <div>文档内容</div>
  3469. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3470. </el-form>
  3471. <span slot="footer" class="dialog-footer">
  3472. <el-button @click="clearChoose">取 消</el-button>
  3473. <el-button type="primary" @click="wordNext()">确定</el-button>
  3474. </span>
  3475. </el-dialog>
  3476. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3477. :before-close="handleClose" class="dialog_diy">
  3478. <el-form>
  3479. <el-form-item label="文本标题">
  3480. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3481. placeholder="请输入文本标题..."></el-input>
  3482. </el-form-item>
  3483. <!-- <div>富文本内容</div> -->
  3484. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3485. </el-form>
  3486. <span slot="footer" class="dialog-footer">
  3487. <el-button @click="clearAttText">取 消</el-button>
  3488. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3489. </span>
  3490. </el-dialog>
  3491. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3492. :before-close="handleClose" class="dialog_diy lineCss">
  3493. <el-form>
  3494. <el-form-item label="标题" :label-width="formLabelWidth">
  3495. <span>
  3496. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3497. </span>
  3498. </el-form-item>
  3499. <el-form-item label="链接" :label-width="formLabelWidth">
  3500. <span>
  3501. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3502. </span>
  3503. </el-form-item>
  3504. </el-form>
  3505. <span slot="footer" class="dialog-footer">
  3506. <el-button @click="clearLine">取 消</el-button>
  3507. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3508. </span>
  3509. </el-dialog>
  3510. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3511. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3512. <div>
  3513. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3514. </div>
  3515. <span slot="footer" class="dialog-footer">
  3516. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3517. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3518. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3519. </span>
  3520. </el-dialog>
  3521. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3522. :before-close="handleClose" class="addNewPP customWidth">
  3523. <div class="people">
  3524. <div class="people_top">
  3525. <div class="people_nav">选择成员</div>
  3526. <div class="people_top_right">
  3527. <div class="people_search">
  3528. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3529. <div class="search_img" @click="searchStudent">
  3530. <img src="../../../assets/icon/search.png" alt />
  3531. </div>
  3532. </div>
  3533. </div>
  3534. </div>
  3535. <el-checkbox-group v-model="checkboxList" class="people_name">
  3536. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3537. "暂无学生可选" }}</el-checkbox>
  3538. </el-checkbox-group>
  3539. </div>
  3540. <span slot="footer" class="dialog-footer">
  3541. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3542. <el-button type="primary" @click="isAddPP">确定</el-button>
  3543. </span>
  3544. </el-dialog>
  3545. <!-- <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  3546. :before-close="handleClose" class="addNewPP">
  3547. <div class="people" style="height: 300px">
  3548. <div class="people_top">
  3549. <div class="people_top_right">
  3550. <div class="people_search">
  3551. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  3552. <el-option label="全部" value=""></el-option>
  3553. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
  3554. :value="item.id"></el-option>
  3555. </el-select>
  3556. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  3557. <div class="search_img">
  3558. <img src="../../../assets/icon/search.png" alt />
  3559. </div>
  3560. </div>
  3561. </div>
  3562. <div class="people_nav">选择班级</div>
  3563. </div>
  3564. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
  3565. v-if="grade2.length">
  3566. <div v-for="item in grade2" :key="item.id" class="p_box">
  3567. <el-checkbox :label="item.id">
  3568. {{ item.name }}
  3569. </el-checkbox>
  3570. </div>
  3571. </el-checkbox-group>
  3572. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  3573. </div>
  3574. <span slot="footer" class="dialog-footer">
  3575. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3576. <el-button type="primary" @click="isAddClass">确定</el-button>
  3577. </span>
  3578. </el-dialog> -->
  3579. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3580. :before-close="handleClose" class="addNewPP2">
  3581. <div class="check_classBox">
  3582. <div class="check_class_right">
  3583. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  3584. 全部
  3585. </div>
  3586. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3587. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  3588. {{ item.name }}
  3589. </div>
  3590. </el-tooltip>
  3591. </div>
  3592. <div class="check_class_left">
  3593. <div class="check_class_all_box">
  3594. <div class="check_class_left_title">选择班级</div>
  3595. <div style="display:flex;align-items:center;"><el-checkbox v-model="checkAll"
  3596. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  3597. </div>
  3598. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  3599. <div v-for="item in grade2" :key="item.id" class="class_item">
  3600. <el-checkbox :label="item.id">
  3601. {{ item.name }}
  3602. </el-checkbox>
  3603. </div>
  3604. </el-checkbox-group>
  3605. <div v-if="!grade2.length">暂无数据</div>
  3606. </div>
  3607. </div>
  3608. <span slot="footer" class="dialog-footer">
  3609. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3610. <el-button type="primary" @click="isAddClass">确定</el-button>
  3611. </span>
  3612. </el-dialog>
  3613. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3614. :before-close="handleClose" class="addNewPP customWidth">
  3615. <div class="people">
  3616. <div class="people_top">
  3617. <div class="people_top_right">
  3618. <div class="people_search">
  3619. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3620. <div class="search_img" @click="getTeacher">
  3621. <img src="../../../assets/icon/search.png" alt />
  3622. </div>
  3623. </div>
  3624. </div>
  3625. <div class="people_nav">选择成员</div>
  3626. </div>
  3627. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  3628. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3629. <div class="t_j_box">
  3630. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3631. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3632. </el-tooltip>
  3633. <el-tooltip placement="top" :content="item.username">
  3634. <span>{{ item.username }}</span>
  3635. </el-tooltip>
  3636. <el-tooltip placement="top" :content="item.school">
  3637. <span>{{ item.school }}</span>
  3638. </el-tooltip>
  3639. </div>
  3640. </el-checkbox>
  3641. </el-checkbox-group>
  3642. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3643. </div>
  3644. <span slot="footer" class="dialog-footer">
  3645. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3646. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3647. </span>
  3648. </el-dialog>
  3649. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  3650. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  3651. <div style="height:100%">
  3652. <div class="a_add_title" style="
  3653. display: flex;
  3654. flex-direction: row;
  3655. align-items: center;
  3656. justify-content: center;
  3657. ">
  3658. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3659. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3660. </div>
  3661. <div class="a_addBox" style="height:calc(100% - 50px)">
  3662. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3663. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3664. <div class="a_add_checkType">
  3665. <span :class="{
  3666. active:
  3667. askJson.askJson[index1].type == '1' ||
  3668. !askJson.askJson[index1].type,
  3669. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3670. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3671. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3672. </div>
  3673. <div class="a_add_head">
  3674. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  3675. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  3676. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  3677. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  3678. </div>
  3679. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  3680. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  3681. </div>
  3682. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  3683. </div>
  3684. <div class="a_add_head_div">
  3685. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3686. </el-button>
  3687. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  3688. </div>
  3689. </div>
  3690. <div class="a_add_body">
  3691. <div class="a_add_input" style="flex-direction: column;">
  3692. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  3693. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  3694. <div style="margin-right: 10px">
  3695. 选项{{ checkIndex + 1 }}
  3696. </div>
  3697. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  3698. " placeholder="请输入选项" style="width: 300px" @change="() => { $forceUpdate() }"></textarea>
  3699. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  3700. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  3701. </div>
  3702. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  3703. </div>
  3704. <div class="a_add_body_div">
  3705. <el-button type="primary" size="small"
  3706. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  3707. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  3708. v-if="askJson.askJson[index1].askItem != 1">删除
  3709. </el-button>
  3710. </div>
  3711. </div>
  3712. </div>
  3713. <!-- <div class="a_add_body_div">
  3714. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3715. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3716. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3717. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3718. </el-button>
  3719. </div> -->
  3720. </div>
  3721. </div>
  3722. </div>
  3723. </div>
  3724. <span slot="footer" class="dialog-footer">
  3725. <el-button @click="closePan(4)">取 消</el-button>
  3726. <el-button type="primary" @click="addAsk">确 定</el-button>
  3727. </span>
  3728. </el-dialog>
  3729. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  3730. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  3731. <div style="height:100%">
  3732. <!-- <div class="a_add_title" style="
  3733. display: flex;
  3734. flex-direction: row;
  3735. align-items: center;
  3736. justify-content: center;
  3737. ">
  3738. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3739. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3740. </div> -->
  3741. <div class="a_addBox" style="height:100%">
  3742. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  3743. <!-- 请输入题目内容 -->
  3744. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  3745. v-if="isPasteChoice">智能粘贴</button>
  3746. </div>
  3747. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3748. <div class="a_add_checkType">
  3749. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  3750. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  3751. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  3752. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  3753. </div>
  3754. <div class="a_add_head">
  3755. <div class="timuUpImg">
  3756. <div style="display: flex;align-items: center;">
  3757. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  3758. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  3759. placeholder="请输入题目">
  3760. </el-input> -->
  3761. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3762. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  3763. @change="() => { $forceUpdate() }"></textarea>
  3764. </div>
  3765. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  3766. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  3767. </div>
  3768. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  3769. </div>
  3770. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  3771. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3772. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  3773. </div>
  3774. </div>
  3775. <div class="a_add_head_div">
  3776. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  3777. </el-button>
  3778. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  3779. </div>
  3780. </div>
  3781. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3782. testJson.testJson[index1].timuList.length
  3783. ">
  3784. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3785. @click.stop="previewImg(timg.src)">
  3786. <img :src="timg.src" alt="" />
  3787. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  3788. <img src="../../../assets/icon/delete.png" alt="" />
  3789. </div>
  3790. </div>
  3791. </div>
  3792. <div class="a_add_body">
  3793. <div class="a_add_input a_add_input_choice">
  3794. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  3795. @change="() => { $forceUpdate() }">
  3796. <div class="radioBox">
  3797. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3798. .testItem" :key="checkIndex" :label="checkIndex">
  3799. <div style="margin-right: 10px">
  3800. 选项{{ checkIndex + 1 }}
  3801. </div>
  3802. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3803. testJson.testJson[index1].checkList[checkIndex]
  3804. .imgType &&
  3805. testJson.testJson[index1].checkList[checkIndex]
  3806. .imgType == 1
  3807. ">
  3808. <div class="inImg" @click.stop="
  3809. previewImg(
  3810. testJson.testJson[index1].checkList[checkIndex]
  3811. .src
  3812. )
  3813. ">
  3814. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3815. .src
  3816. " lazy />
  3817. <!-- <img :src="
  3818. testJson.testJson[index1].checkList[checkIndex]
  3819. .src
  3820. " alt="" /> -->
  3821. </div>
  3822. </div>
  3823. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3824. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3825. @change="() => { $forceUpdate() }"></textarea>
  3826. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3827. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  3828. </div>
  3829. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  3830. </div>
  3831. <div class="xzUpImg" @click.stop="addImg($event)">
  3832. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3833. <input type="file" accept="image/*" style="display: none"
  3834. @change="beforeUploadTi($event, index1, checkIndex)" />
  3835. </div>
  3836. <div class="a_add_body_div">
  3837. <el-button type="primary" size="small"
  3838. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  3839. <el-button type="primary" size="small"
  3840. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  3841. v-if="testJson.testJson[index1].testItem != 1">删除
  3842. </el-button>
  3843. </div>
  3844. </el-radio>
  3845. </div>
  3846. </el-radio-group>
  3847. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  3848. @change="() => { $forceUpdate() }">
  3849. <div class="radioBox">
  3850. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3851. .testItem" :key="checkIndex1" :label="checkIndex1">
  3852. <div style="margin-right: 10px">
  3853. 选项{{ checkIndex1 + 1 }}
  3854. </div>
  3855. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3856. testJson.testJson[index1].checkList[checkIndex1]
  3857. .imgType &&
  3858. testJson.testJson[index1].checkList[checkIndex1]
  3859. .imgType == 1
  3860. ">
  3861. <div class="inImg" @click.stop="
  3862. previewImg(
  3863. testJson.testJson[index1].checkList[checkIndex1]
  3864. .src
  3865. )
  3866. ">
  3867. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3868. .src
  3869. " lazy />
  3870. <!-- <img :src="
  3871. testJson.testJson[index1].checkList[checkIndex1]
  3872. .src
  3873. " alt="" /> -->
  3874. </div>
  3875. </div>
  3876. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3877. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3878. @change="() => { $forceUpdate() }"></textarea>
  3879. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3880. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3881. </div>
  3882. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3883. </div>
  3884. <div class="xzUpImg" @click.stop="addImg($event)">
  3885. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3886. <input type="file" accept="image/*" style="display: none"
  3887. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3888. </div>
  3889. <div class="a_add_body_div">
  3890. <el-button type="primary" size="small"
  3891. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3892. <el-button type="primary" size="small"
  3893. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3894. v-if="testJson.testJson[index1].testItem != 1">删除
  3895. </el-button>
  3896. </div>
  3897. </el-checkbox>
  3898. </div>
  3899. </el-checkbox-group>
  3900. </div>
  3901. <!-- <div class="a_add_body_div">
  3902. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3903. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3904. v-if="testJson.testJson[index1].testItem != 1">删除
  3905. </el-button>
  3906. </div> -->
  3907. </div>
  3908. </div>
  3909. </div>
  3910. </div>
  3911. <span slot="footer" class="dialog-footer">
  3912. <el-button @click="closePan(45)">取 消</el-button>
  3913. <el-button type="primary" @click="addTest">确 定</el-button>
  3914. </span>
  3915. </el-dialog>
  3916. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3917. :before-close="handleClose" class="dialog_diy addToolsDia">
  3918. <div class="toolChoose" style="padding: 0 0 0 30px">
  3919. <div class="tools">
  3920. <div class="leftTools" style="
  3921. width: 95%;
  3922. padding: 0 0 15px 0;
  3923. margin: 15px 0;
  3924. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3925. <div style="
  3926. display: flex;
  3927. flex-direction: row;
  3928. align-items: baseline;
  3929. flex-wrap: nowrap;
  3930. justify-content: flex-start;
  3931. position: relative;
  3932. ">
  3933. <div class="chooseWho">
  3934. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3935. 互动类
  3936. </div>
  3937. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3938. 思维类
  3939. </div>
  3940. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3941. 评价类
  3942. </div>
  3943. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3944. 其他
  3945. </div>
  3946. </div>
  3947. </div>
  3948. <div style="min-height: 163px">
  3949. <div class="toolSort" v-if="chapToolsType == 0">
  3950. <div class="tool">
  3951. <div class="whiteBIcon" @click="chapAddTools(8)">
  3952. <img src="../../../assets/icon/secondToolList/library.png" alt />
  3953. <div style="margin: 5px 0">素材库</div>
  3954. </div>
  3955. <div class="check" @click="chapAddTools(8)">
  3956. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3957. <div class="checkDiv" v-else>
  3958. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3959. </div>
  3960. </div>
  3961. </div>
  3962. </div>
  3963. <div class="toolSort" v-if="chapToolsType == 1">
  3964. <div class="tool">
  3965. <div class="whiteBIcon" @click="chapAddTools(7)">
  3966. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  3967. <div style="margin: 5px 0">思维网格</div>
  3968. </div>
  3969. <div class="check" @click="chapAddTools(7)">
  3970. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3971. <div class="checkDiv" v-else>
  3972. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3973. </div>
  3974. </div>
  3975. </div>
  3976. <div class="tool">
  3977. <div class="whiteBIcon" @click="chapAddTools(1)">
  3978. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3979. <div style="margin: 5px 0">电子白板</div>
  3980. </div>
  3981. <div class="check" @click="chapAddTools(1)">
  3982. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3983. <div class="checkDiv" v-else>
  3984. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3985. </div>
  3986. </div>
  3987. </div>
  3988. <div class="tool">
  3989. <div class="whiteBIcon" @click="chapAddTools(2)">
  3990. <img src="../../../assets/icon/secondToolList/note.png" alt />
  3991. <div style="margin: 5px 0">便签</div>
  3992. </div>
  3993. <div class="check" @click="chapAddTools(2)">
  3994. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3995. <div class="checkDiv" v-else>
  3996. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3997. </div>
  3998. </div>
  3999. </div>
  4000. <div class="tool">
  4001. <div class="whiteBIcon" @click="chapAddTools(6)">
  4002. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4003. <div style="margin: 5px 0">协同文档</div>
  4004. </div>
  4005. <div class="check" @click="chapAddTools(6)">
  4006. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4007. <div class="checkDiv" v-else>
  4008. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4009. </div>
  4010. </div>
  4011. </div>
  4012. <div class="tool">
  4013. <div class="whiteBIcon" @click="chapAddTools(3)">
  4014. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4015. <div style="margin: 5px 0">思维导图</div>
  4016. </div>
  4017. <div class="check" @click="chapAddTools(3)">
  4018. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4019. <div class="checkDiv" v-else>
  4020. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4021. </div>
  4022. </div>
  4023. </div>
  4024. <div class="tool">
  4025. <div class="whiteBIcon" @click="chapAddTools(31)">
  4026. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4027. <div style="margin: 5px 0">数学画板</div>
  4028. </div>
  4029. <div class="check" @click="chapAddTools(31)">
  4030. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4031. <div class="checkDiv" v-else>
  4032. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4033. </div>
  4034. </div>
  4035. </div>
  4036. </div>
  4037. <div class="toolSort" v-if="chapToolsType == 2">
  4038. <div class="tool">
  4039. <div class="whiteBIcon" @click="chapAddTools(5)">
  4040. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4041. <div style="margin: 5px 0">量规评分</div>
  4042. </div>
  4043. <div class="check" @click="chapAddTools(5)">
  4044. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4045. <div class="checkDiv" v-else>
  4046. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4047. </div>
  4048. </div>
  4049. </div>
  4050. <div class="tool">
  4051. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  4052. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4053. <div style="margin: 5px 0">问卷调查</div>
  4054. </div>
  4055. <div class="check" @click="chapAddTools(4)">
  4056. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4057. <div class="checkDiv" v-else>
  4058. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4059. </div>
  4060. </div>
  4061. </div>
  4062. </div>
  4063. </div>
  4064. <div>
  4065. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  4066. v-model="itemTools.toolDetail" />
  4067. </div>
  4068. </div>
  4069. </div>
  4070. </div>
  4071. <span slot="footer" class="dialog-footer">
  4072. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4073. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4074. </span>
  4075. </el-dialog>
  4076. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  4077. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  4078. <div>
  4079. <div class="a_add_title" style="
  4080. display: flex;
  4081. flex-direction: column;
  4082. align-items: flex-start;
  4083. justify-content: center;
  4084. ">
  4085. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4086. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  4087. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4088. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  4089. </div>
  4090. </div>
  4091. <span slot="footer" class="dialog-footer">
  4092. <el-button @click="closePan(15)">取 消</el-button>
  4093. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4094. </span>
  4095. </el-dialog>
  4096. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4097. :before-close="handleClose" class="dialog_diy">
  4098. <div>
  4099. <div class="a_add_title" style="
  4100. display: flex;
  4101. flex-direction: column;
  4102. align-items: flex-start;
  4103. justify-content: center;
  4104. ">
  4105. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4106. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4107. </div>
  4108. </div>
  4109. <span slot="footer" class="dialog-footer">
  4110. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4111. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4112. </span>
  4113. </el-dialog>
  4114. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4115. :before-close="handleClose" class="dialog_diy">
  4116. <div>
  4117. <div class="fileCss" style="padding-top: 20px">
  4118. <div>
  4119. <button class="info_btn" @click="addImg($event)">
  4120. 选择本地文件
  4121. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4122. </button>
  4123. <div class="spanName">选择本地文件</div>
  4124. </div>
  4125. <div>
  4126. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4127. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4128. <img :src="cover[0].url" alt="" />
  4129. <div class="deletePic" @click="deleteSysPic">
  4130. <img src="../../../assets/icon/delete.png" alt="" />
  4131. </div>
  4132. </div>
  4133. <div class="spanName">选择系统文件</div>
  4134. </div>
  4135. <div>
  4136. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  4137. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4138. <img :src="cover[0].url" alt="" />
  4139. <div class="deletePic" @click="deleteSysPic">
  4140. <img src="../../../assets/icon/delete.png" alt="" />
  4141. </div>
  4142. </div>
  4143. <div class="spanName">选择网络文件</div>
  4144. </div>
  4145. </div>
  4146. <!-- <div class="fileCss">
  4147. <div>选择本地文件</div>
  4148. <div>选择系统文件</div>
  4149. </div> -->
  4150. </div>
  4151. <span slot="footer" class="dialog-footer">
  4152. <el-button @click="choosePicVisible = false">取 消</el-button>
  4153. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4154. </span>
  4155. </el-dialog>
  4156. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4157. :before-close="handleClose" class="dialog_diy">
  4158. <div class="cru_selectBox" style="margin: 0">
  4159. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4160. 绘画
  4161. </div>
  4162. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4163. 科技
  4164. </div>
  4165. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4166. 人文
  4167. </div>
  4168. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4169. 艺术
  4170. </div>
  4171. </div>
  4172. <div class="sysPicBox">
  4173. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4174. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4175. </div>
  4176. </div>
  4177. </el-dialog>
  4178. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4179. :before-close="handleClose" class="dialog_diy">
  4180. <div>
  4181. <div class="people_top_right" style="display: flex;align-items: center;">
  4182. <div style="position: relative; width: 100%;">
  4183. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4184. @keyup.enter.native="resetImage()"></el-input>
  4185. <div class="search_img" @click="resetImage" style="right: 10px;">
  4186. <img src="../../../assets/icon/search.png" alt />
  4187. </div>
  4188. </div>
  4189. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  4190. </div>
  4191. <div class="sysPicBox" v-loading="imageloading">
  4192. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  4193. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4194. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4195. </div>
  4196. </div>
  4197. </div>
  4198. </el-dialog>
  4199. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  4200. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  4201. <div v-if="selectJson" style="height:100%">
  4202. <div class="select_box1" v-if="selectSteps == 1">
  4203. <div class="select_box1_img">
  4204. <div class="select_box1_title">
  4205. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4206. </div>
  4207. <div class="select_box1_add_img">
  4208. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4209. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4210. <img src="../../../assets/icon/addPoster.png" alt="" />
  4211. </div>
  4212. <div class="isSysPic" v-else>
  4213. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4214. <div class="deletePic" @click="deleteSelectPic">
  4215. <img src="../../../assets/icon/delete.png" alt="" />
  4216. </div>
  4217. </div>
  4218. </div>
  4219. </div>
  4220. <div class="select_box1_select">
  4221. <div class="select_box1_title">
  4222. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4223. </div>
  4224. <div class="select_box1_select_box">
  4225. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4226. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4227. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4228. <div class="select_box1_select_box_add">
  4229. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4230. 添加</el-button>
  4231. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4232. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4233. </div>
  4234. </div>
  4235. </div>
  4236. </div>
  4237. <div v-if="selectSteps == 2" style="height:100%">
  4238. <div class="select_box2">
  4239. <div class="select_box2_title">设置每道题目的正确选项</div>
  4240. <div class="select_box2_box">
  4241. <div class="select_box2_img">
  4242. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4243. </div>
  4244. <div class="select_box2_answer">
  4245. <div class="select_answer_title">根据题目选择对应答案</div>
  4246. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4247. <span>{{ checkIndex + 1 }}、</span>
  4248. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4249. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4250. </el-option>
  4251. </el-select>
  4252. </div>
  4253. </div>
  4254. </div>
  4255. </div>
  4256. </div>
  4257. </div>
  4258. <span slot="footer" class="dialog-footer">
  4259. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4260. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4261. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4262. </span>
  4263. </el-dialog>
  4264. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4265. :before-close="handleClose" class="dialog_diy">
  4266. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4267. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4268. <div class="pjCss" style="width: 100%">
  4269. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4270. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4271. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4272. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  4273. <div class="remove" @click="deletRateList(eIndex)"></div>
  4274. <div style="width: 100%; display: flex">
  4275. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4276. <el-rate v-model="eItem.score" disabled></el-rate>
  4277. </div>
  4278. <div class="elist_inptu_text" style="align-items: flex-start">
  4279. <span style="min-width: 100px; text-align: right">描述:</span>
  4280. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  4281. </div>
  4282. </div>
  4283. </div>
  4284. <div class="addToolFun" @click="addRateList()">
  4285. <div class="addToolImg">
  4286. <img src="../../../assets/icon/add.png" alt />
  4287. </div>
  4288. <div>添加</div>
  4289. </div>
  4290. </div>
  4291. </div>
  4292. <span slot="footer" class="dialog-footer">
  4293. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4294. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4295. </span>
  4296. </el-dialog>
  4297. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4298. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  4299. <div style="height: 100%;">
  4300. <div class="sentenBox" style="height: 100%;">
  4301. <div class="addSen" @click="addSt">添加题目</div>
  4302. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4303. <div class="sentenTopBox">
  4304. <div class="sentenTop" :index="stIndex + 1">
  4305. <div>题目设置</div>
  4306. <div>
  4307. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4308. </div>
  4309. <div @click="addSen(stIndex)">添加</div>
  4310. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4311. </div>
  4312. </div>
  4313. <div class="cardList">
  4314. <div v-if="st.addSentence.length > 0" class="cardBox">
  4315. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4316. @click="setRightAnswer(s, stIndex, sIndex)">
  4317. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4318. <div>{{ s }}</div>
  4319. </el-tooltip>
  4320. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4321. <img src="../../../assets/icon/delete.png" alt="" />
  4322. </div>
  4323. </div>
  4324. </div>
  4325. <div class="card">
  4326. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4327. </div>
  4328. </div>
  4329. <div class="rightCardBox">
  4330. <div>正确顺序</div>
  4331. <div class="rightCardList">
  4332. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4333. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4334. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4335. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4336. <div>{{ r }}</div>
  4337. </el-tooltip>
  4338. </div>
  4339. <div>{{ rIndex + 1 }}</div>
  4340. </div>
  4341. </div>
  4342. <div class="card" v-if="st.rightAnswer.length == 0">
  4343. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4344. </div>
  4345. <div class="card" v-else>
  4346. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4347. </div>
  4348. </div>
  4349. </div>
  4350. </div>
  4351. </div>
  4352. </div>
  4353. <span slot="footer" class="dialog-footer">
  4354. <el-button @click="closePan(47)">取 消</el-button>
  4355. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4356. </span>
  4357. </el-dialog>
  4358. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4359. :before-close="handleClose" class="dialog_diy">
  4360. <el-form>
  4361. <!-- <el-form-item label="文本标题">
  4362. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4363. </el-form-item> -->
  4364. <div>表格内容</div>
  4365. <Table v-model="tableJson.text" @change="change"></Table>
  4366. </el-form>
  4367. <span slot="footer" class="dialog-footer">
  4368. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4369. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4370. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4371. </span>
  4372. </el-dialog>
  4373. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  4374. :before-close="handleClose" class="dialog_diy">
  4375. <el-form>
  4376. <!-- <el-form-item label="文本标题">
  4377. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4378. </el-form-item> -->
  4379. <div>文档内容</div>
  4380. <editor-bar v-model="wordJson.text"></editor-bar>
  4381. </el-form>
  4382. <span slot="footer" class="dialog-footer">
  4383. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4384. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4385. </span>
  4386. </el-dialog>
  4387. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4388. :before-close="handleClose" class="dialog_diy">
  4389. <div style="
  4390. width: 100%;
  4391. display: flex;
  4392. flex-direction: row;
  4393. flex-wrap: nowrap;
  4394. align-items: center;
  4395. justify-content: center;
  4396. ">
  4397. <div>班级:</div>
  4398. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4399. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4400. </el-option>
  4401. </el-select>
  4402. </div>
  4403. <span slot="footer" class="dialog-footer">
  4404. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4405. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4406. </span>
  4407. </el-dialog>
  4408. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4409. :before-close="handleClose" class="dialog_diy">
  4410. <div style="
  4411. width: 100%;
  4412. display: flex;
  4413. flex-direction: row;
  4414. flex-wrap: nowrap;
  4415. align-items: center;
  4416. justify-content: center;
  4417. ">
  4418. <div>随机码:</div>
  4419. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4420. </div>
  4421. <span slot="footer" class="dialog-footer">
  4422. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4423. <el-button type="primary" @click="addInvite">确定</el-button>
  4424. </span>
  4425. </el-dialog>
  4426. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4427. :before-close="handleClose" class="dialog_diy">
  4428. <div>
  4429. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  4430. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4431. </div>
  4432. <span slot="footer" class="dialog-footer">
  4433. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4434. <el-button type="primary" @click="addPreTime">确定</el-button>
  4435. </span>
  4436. </el-dialog>
  4437. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  4438. class="dialog_diy">
  4439. <div>
  4440. <div style="
  4441. width: 100%;
  4442. display: flex;
  4443. flex-direction: row;
  4444. flex-wrap: nowrap;
  4445. align-content: center;
  4446. align-items: center;
  4447. justify-content: space-between;
  4448. ">
  4449. <div style="
  4450. display: flex;
  4451. flex-flow: row nowrap;
  4452. align-items: flex-start;
  4453. width: 100%;
  4454. flex-direction: column;
  4455. flex-wrap: nowrap;
  4456. position: relative;
  4457. ">
  4458. <div class="e_box">
  4459. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4460. <div class="e_card_picture">
  4461. <img src="../../../assets/e_picture.png" />
  4462. </div>
  4463. <div class="e_card_name">
  4464. <span>{{ item.title }}</span>
  4465. </div>
  4466. <div class="e_card_btn">
  4467. <span @click="checkEva(item.id, 2)">导入</span>
  4468. </div>
  4469. </div>
  4470. <div class="addEva" @click="openT">
  4471. <img src="../../../assets/icon/addEva.png" alt="" />
  4472. </div>
  4473. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4474. 暂无数据
  4475. </div>
  4476. </div>
  4477. </div>
  4478. </div>
  4479. </div>
  4480. <span slot="footer" class="dialog-footer">
  4481. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4482. </span>
  4483. </el-dialog>
  4484. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4485. :before-close="handleClose" class="dialog_diy">
  4486. <div class="groupBox">
  4487. <div v-if="groupJson.group" class="groupContent">
  4488. <div class="groupTitle">请设置小组数量及名称</div>
  4489. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4490. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4491. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4492. <div class="groupBtn">
  4493. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  4494. 添加</el-button>
  4495. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4496. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4497. </div>
  4498. </div>
  4499. </div>
  4500. <div class="groupContent">
  4501. <div class="groupTitle">请设置每组人数</div>
  4502. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4503. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4504. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  4505. @change="numberPan"></el-input>
  4506. </div>
  4507. </div>
  4508. <span slot="footer" class="dialog-footer">
  4509. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4510. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4511. </span>
  4512. </el-dialog>
  4513. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4514. :before-close="handleClose" class="dialog_diy">
  4515. <div style="
  4516. width: 100%;
  4517. display: flex;
  4518. flex-direction: row;
  4519. flex-wrap: nowrap;
  4520. align-items: center;
  4521. justify-content: center;
  4522. ">
  4523. <div style="min-width: fit-content;">文件名称:</div>
  4524. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4525. </div>
  4526. <span slot="footer" class="dialog-footer">
  4527. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4528. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4529. </span>
  4530. </el-dialog>
  4531. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4532. </div>
  4533. </template>
  4534. <script>
  4535. import "../../../common/aws-sdk-2.235.1.min.js";
  4536. import { tools as toolsData } from "../../../common/tools.js";
  4537. import $ from "jquery";
  4538. import EditorBar from "../../../components/tools/wangEnduit";
  4539. import Table from "../../../components/tools/table";
  4540. import Mind from "../../tools/jsmind2";
  4541. import Time from "../../tools/time.vue";
  4542. import Sunburst from "../../tools/sunburst";
  4543. import SeeBoard from "../../tools/seeBoard";
  4544. import weilaiData from "../components/weilai.js";
  4545. import sourceDialog from "../teacherSource/dialog.vue";
  4546. import interVideo from "../interVideo/index.vue";
  4547. export default {
  4548. components: {
  4549. EditorBar,
  4550. Mind,
  4551. Time,
  4552. Sunburst,
  4553. SeeBoard,
  4554. Table,
  4555. sourceDialog,
  4556. interVideo,
  4557. },
  4558. data() {
  4559. return {
  4560. checkAll: false,
  4561. chooseType: 1,
  4562. checkedCities: [],
  4563. isIndeterminate: true,
  4564. isSysPic: false,
  4565. isSysPic2: false,
  4566. steps: 1,
  4567. nbOrder: 0,
  4568. courseId: "",
  4569. chapToolsType: 0,
  4570. chapTools: [
  4571. {
  4572. tools: [],
  4573. toolDetail: "",
  4574. },
  4575. ],
  4576. line: "",
  4577. lineTitle: "",
  4578. sysPic: [],
  4579. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4580. sentenceList2: [],
  4581. isPushTitleList: [],
  4582. lineCount: 0,
  4583. lineType: 0,
  4584. chapCount: 0,
  4585. courseName: "",
  4586. isTeacherSee: false,
  4587. courseText: "",
  4588. preTime: 0,
  4589. formLabelWidth: "100px",
  4590. choosePicVisible: false,
  4591. sysPicVisible: false,
  4592. uploadLoading1: false,
  4593. noneBtnImg: false,
  4594. updateBoolean2: false,
  4595. unitIndex: 0,
  4596. taskCount: 0,
  4597. dialogVisible: false,
  4598. dialogVisible1: false,
  4599. dialogVisible2: false,
  4600. dialogVisible3: false,
  4601. dialogVisible4: false,
  4602. dialogVisible5: false,
  4603. dialogVisible6: false,
  4604. dialogVisible7: false,
  4605. dialogVisible8: false,
  4606. dialogVisible9: false,
  4607. dialogVisibleClass: false,
  4608. dialogVisibleMember: false,
  4609. dialogVisibleMp3: false,
  4610. dialogVisibleSelect: false,
  4611. dialogVisibleSentence: false,
  4612. dialogVisibleRate: false,
  4613. dialogVisibleChoice: false,
  4614. dialogVisiblemb: false,
  4615. dialogVisibleInvite: false,
  4616. dialogVisibleSource: false,
  4617. dialogVisibleVideo: false,
  4618. dialogVisibleupdataVideoT: false,
  4619. isClickColor: 1,
  4620. toolIndexType: "",
  4621. publicTool: 0,
  4622. searchPeople: "",
  4623. searchTN: "",
  4624. userid: this.$route.query.userid,
  4625. oid: this.$route.query.oid,
  4626. org: this.$route.query.org,
  4627. role: this.$route.query.role,
  4628. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4629. dialogVisibleTable: false,
  4630. dialogVisibleWord: false,
  4631. tableJson: { text: "" },
  4632. wordJson: { text: "" },
  4633. dialogVisibleMoreUpload: false,
  4634. dialogVisiblePreTime: false,
  4635. uploadJson: [],
  4636. classJuri: [],
  4637. gradeList: [],
  4638. cover: [], //课程封面
  4639. myWord: [],
  4640. evaJuri: [],
  4641. evalua: "",
  4642. targetArray: [],
  4643. eTitle: "",
  4644. eJson: {},
  4645. fid: "", //一级
  4646. sid: "", //二级
  4647. tid: "", //二级
  4648. typeMode: 1,
  4649. eJSONNum: 0,
  4650. data: {
  4651. meta: {
  4652. name: "example",
  4653. author: "dd@163.com",
  4654. version: "0.2",
  4655. },
  4656. format: "node_array",
  4657. data: [{ id: "root", isroot: true, topic: "" }],
  4658. },
  4659. askJson: {
  4660. askCount: 1,
  4661. askTitle: "",
  4662. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4663. },
  4664. askJson2: {},
  4665. testJson: {},
  4666. testJson2: {},
  4667. selectJson: {},
  4668. selectJson2: {},
  4669. rateJson: [],
  4670. unitJson2: [],
  4671. unitJson: [
  4672. {
  4673. dyName: "", //单元标题
  4674. chapterInfo: [
  4675. {
  4676. isread: false,
  4677. chapterid: this.guid(),
  4678. title: "",
  4679. courseName: "",
  4680. taskJson: [
  4681. {
  4682. task: "",
  4683. taskDetail: "",
  4684. chapterData: [],
  4685. toolChoose: [
  4686. {
  4687. tool: [],
  4688. toolDetail: "",
  4689. toolType: 0,
  4690. askCount: 1,
  4691. askTitle: "",
  4692. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4693. },
  4694. ],
  4695. toolText: "",
  4696. isShowTools: false,
  4697. askCount: 1,
  4698. isFold: 0,
  4699. askTitle: "",
  4700. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4701. checkJson: [{ checkCount: [], checkPerent: [] }],
  4702. homeworkList: [],
  4703. },
  4704. ],
  4705. itemCount: 1,
  4706. fileList1: [],
  4707. video: [],
  4708. testData: [],
  4709. pData: [],
  4710. templateArray: [],
  4711. },
  4712. ],
  4713. },
  4714. ],
  4715. studentJuri: [],
  4716. teacherJuri: [],
  4717. checkboxList: [],
  4718. checkboxList2: [],
  4719. checkboxList3: [],
  4720. classSearch: "",
  4721. gradeId: "",
  4722. number: "",
  4723. tTitle: "",
  4724. tdetail: "",
  4725. templateC: {},
  4726. AttText: {},
  4727. AttTextType: 0,
  4728. AttTextIndex: 0,
  4729. cTemplate: "",
  4730. CourseType: [],
  4731. CourseType2: [],
  4732. CourseTypeJson: {},
  4733. courseTypeId: [],
  4734. courseTypeSon: [],
  4735. clearArray: [],
  4736. pTypeCheck: [],
  4737. pTypeCheckName: [],
  4738. loading: false,
  4739. toolType: 0,
  4740. inputShow: true,
  4741. inputShow2: true,
  4742. toolIndex: 0,
  4743. cidType: 0,
  4744. answerQ: "",
  4745. answerQ2: "",
  4746. grade: [],
  4747. grade2: [],
  4748. courseUserid: "",
  4749. timer: null,
  4750. timer2: null,
  4751. pasteTimer: null,
  4752. checkId: "",
  4753. isDelete: 1,
  4754. addindex: 0,
  4755. selectSteps: 1,
  4756. groupJson: {},
  4757. dialogVisibleGroup: false,
  4758. rightBoxHeight: 0,
  4759. ManAarray: [],
  4760. checkBoolean: false,
  4761. inviteCode: [],
  4762. inviteId: "",
  4763. icode: "",
  4764. easyArray: [2, 4],
  4765. sourceData: {},
  4766. updateSourcePan: false,
  4767. videoJson: {},
  4768. isBtnDisplay: false,
  4769. isPasteTask: false,
  4770. isPasteChoice: false,
  4771. sysPicVisible2: false,
  4772. imageloading: false,
  4773. searchImageValue: "",
  4774. ppage: 1,
  4775. imageList: [],
  4776. heightPx: '100%',
  4777. toolsData: toolsData,
  4778. oldIndex: 0,
  4779. oldData: null,
  4780. newIndex: "",
  4781. };
  4782. },
  4783. directives: {
  4784. autoHeight: {
  4785. update(el, binding) {
  4786. const { value } = binding
  4787. if (value && typeof value === 'number') {
  4788. el.style.height = `${value}px`
  4789. } else {
  4790. el.style.height = 'auto'
  4791. }
  4792. },
  4793. componentUpdated(el) {
  4794. el.style.height = `${el.scrollHeight + 5}px`
  4795. },
  4796. },
  4797. },
  4798. computed: {
  4799. // rightBoxHeight: function () {
  4800. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4801. // },
  4802. offsetLetfPx: function () {
  4803. //addnum可以直接在模板语法里面用,相当于data内的值
  4804. return (
  4805. $(".cru_select")[this.unitIndex] &&
  4806. $(".cru_select")[this.unitIndex].offsetLeft
  4807. );
  4808. },
  4809. getMan2() {
  4810. return function (people) {
  4811. let _people = people;
  4812. let _people2 = "";
  4813. if (this.ManAarray.length) {
  4814. for (var i = 0; i < this.ManAarray.length; i++) {
  4815. if (this.ManAarray[i].userid == people) {
  4816. _people2 = this.ManAarray[i].name;
  4817. break;
  4818. }
  4819. }
  4820. }
  4821. if (people == this.courseUserid) {
  4822. return "";
  4823. }
  4824. return this.ManAarray.length ? _people2 : "";
  4825. };
  4826. },
  4827. isInvite() {
  4828. return function (cid) {
  4829. let array = [];
  4830. for (var i = 0; i < this.inviteCode.length; i++) {
  4831. array.push(this.inviteCode[i].cid);
  4832. }
  4833. return array.indexOf(cid) != -1;
  4834. };
  4835. },
  4836. getInviteCodeC() {
  4837. return function (cid) {
  4838. let array = [];
  4839. for (var i = 0; i < this.inviteCode.length; i++) {
  4840. array.push(this.inviteCode[i].cid);
  4841. }
  4842. return this.inviteCode[array.indexOf(cid)].ic;
  4843. };
  4844. },
  4845. getClassC() {
  4846. return function (c) {
  4847. let _c2 = "";
  4848. if (this.grade.length) {
  4849. for (var i = 0; i < this.grade.length; i++) {
  4850. if (this.grade[i].id == c) {
  4851. _c2 = this.grade[i].name;
  4852. break;
  4853. }
  4854. }
  4855. }
  4856. return this.grade.length ? _c2 : "";
  4857. };
  4858. },
  4859. getListClassC() {
  4860. return function (list) {
  4861. let _c2 = [];
  4862. if (this.grade.length) {
  4863. for (var j = 0; j < list.length; j++) {
  4864. let c = list[j]
  4865. for (var i = 0; i < this.grade.length; i++) {
  4866. if (this.grade[i].id == c) {
  4867. _c2.push(this.grade[i].name);
  4868. break;
  4869. }
  4870. }
  4871. }
  4872. }
  4873. return this.grade.length ? _c2.join('、') : "";
  4874. };
  4875. },
  4876. },
  4877. watch: {
  4878. unitIndex(newValue, oldValue) {
  4879. if (this.isDelete == 2) {
  4880. this.isDelete = 1;
  4881. return;
  4882. }
  4883. if (this.cid != "") {
  4884. let _unitIndex = oldValue;
  4885. if (
  4886. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4887. JSON.stringify(this.unitJson[_unitIndex])
  4888. ) {
  4889. this.$refs.rightboxR.scrollTop = 0;
  4890. return;
  4891. }
  4892. let cPan = 1;
  4893. for (
  4894. var j = 0;
  4895. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4896. j++
  4897. ) {
  4898. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4899. j
  4900. ].proVisible = false;
  4901. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4902. j
  4903. ].proVisible2 = false;
  4904. if (
  4905. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4906. .length > 1
  4907. ) {
  4908. for (
  4909. var z = 0;
  4910. z <
  4911. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4912. .length;
  4913. z++
  4914. ) {
  4915. if (
  4916. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4917. .toolChoose[z].tool.length
  4918. ) {
  4919. this.$message.error("请把工具添加完整");
  4920. cPan = 2;
  4921. break;
  4922. }
  4923. }
  4924. }
  4925. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4926. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4927. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4928. (ele) => {
  4929. return ele.value != "";
  4930. }
  4931. );
  4932. }
  4933. }
  4934. if (cPan == 2) {
  4935. this.unitIndex = oldValue;
  4936. return;
  4937. }
  4938. for (var i = 0; i < this.unitJson.length; i++) {
  4939. if (this.addindex != i) {
  4940. delete this.unitJson[i].isUpdate;
  4941. }
  4942. }
  4943. this.$refs.rightboxR.scrollTop = 0;
  4944. this.addindex = -1;
  4945. let params = [
  4946. {
  4947. cid: this.cid,
  4948. chapters: JSON.stringify(this.unitJson),
  4949. uid: this.userid,
  4950. unitIndex: _unitIndex,
  4951. },
  4952. ];
  4953. this.ajax
  4954. .post(this.$store.state.api + "updateWorkNew4", params)
  4955. .then((res) => {
  4956. // this.$message({
  4957. // message: "修改成功",
  4958. // type: "success",
  4959. // });
  4960. // this.courseId = this.cid;
  4961. })
  4962. .catch((err) => {
  4963. this.$message.error("网络不佳");
  4964. console.error(err);
  4965. });
  4966. }
  4967. },
  4968. steps(newValue) {
  4969. if (newValue == 4) {
  4970. this.goTo(
  4971. "/course?userid=" +
  4972. this.userid +
  4973. "&oid=" +
  4974. this.oid +
  4975. "&org=" +
  4976. this.org +
  4977. "&role=" +
  4978. this.role
  4979. );
  4980. }
  4981. },
  4982. },
  4983. methods: {
  4984. openAI() {
  4985. window.parent.postMessage({ tools: "64" }, "*");
  4986. },
  4987. setMan() {
  4988. // let teacherJuri = this.teacherJuri2;
  4989. this.ManAarray = [];
  4990. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4991. if (_user.indexOf(this.userid) == -1) {
  4992. _user.push(this.userid);
  4993. }
  4994. if (_user.indexOf(this.courseUserid) == -1) {
  4995. _user.push(this.courseUserid);
  4996. }
  4997. let params = {
  4998. uid: _user.join(","),
  4999. };
  5000. this.ajax
  5001. .get(this.$store.state.api + "getAllUserById", params)
  5002. .then((res) => {
  5003. let teacherJuri = res.data[0];
  5004. this.ManAarray = teacherJuri;
  5005. })
  5006. .catch((err) => {
  5007. console.error(err);
  5008. });
  5009. },
  5010. previewImg(url) {
  5011. this.$hevueImgPreview(url);
  5012. },
  5013. btnDisplay(bool) {
  5014. this.isBtnDisplay = bool
  5015. },
  5016. scrollChange() {
  5017. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  5018. // document.querySelector('.course_left').scrollHeight
  5019. // document.querySelector('.stepsBottom2').scrollHeight
  5020. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  5021. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  5022. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  5023. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  5024. let top = $(".rightBox")[0].scrollTop - maxheight;
  5025. // if (top < client) {
  5026. // $('.stepsBottom2')[0].style.position = 'absolute'
  5027. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  5028. // // $('.stepsBottom2')[0].style.top = client + 'px'
  5029. // } else
  5030. if (top > 0) {
  5031. let top = $(".rightBox")[0].offsetTop;
  5032. $(".stepsBottom2")[0].style.position = "fixed";
  5033. $(".stepsBottom2")[0].style.top = top + "px";
  5034. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  5035. // $('.stepsBottom2')[0].style.top = top + 'px'
  5036. } else {
  5037. $(".stepsBottom2")[0].style.position = "absolute";
  5038. $(".stepsBottom2")[0].style.top = "0px";
  5039. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  5040. }
  5041. const clientHeight = $(".rightBox")[0].clientHeight;
  5042. const scrollTop = $(".rightBox")[0].scrollTop;
  5043. const scrollHeight = $(".rightBox")[0].scrollHeight;
  5044. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  5045. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  5046. }
  5047. },
  5048. addHw(e) {
  5049. var el = e.currentTarget;
  5050. el.getElementsByTagName("input")[0].click();
  5051. },
  5052. change(val) {
  5053. if (this.dialogVisible1) {
  5054. this.tdetail = val
  5055. } else if (this.dialogVisible6) {
  5056. this.AttText.text = val
  5057. } else if (this.dialogVisible2) {
  5058. this.cTemplate = val
  5059. } else if (this.dialogVisibleTable) {
  5060. this.tableJson.text = val
  5061. }
  5062. this.$forceUpdate();
  5063. console.log(val);
  5064. },
  5065. change2(val) {
  5066. console.log(val);
  5067. this.$forceUpdate();
  5068. },
  5069. handleClose(done) {
  5070. done();
  5071. },
  5072. closePan(tool) {
  5073. if (tool == 15) {
  5074. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5075. this.dialogVisible8 = false
  5076. } else {
  5077. this.closeConfirm(tool);
  5078. }
  5079. } else if (tool == 4) {
  5080. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5081. this.dialogVisible5 = false
  5082. } else {
  5083. this.closeConfirm(tool);
  5084. }
  5085. } else if (tool == 45) {
  5086. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5087. this.dialogVisibleChoice = false
  5088. } else {
  5089. this.closeConfirm(tool);
  5090. }
  5091. } else if (tool == 41) {
  5092. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  5093. this.dialogVisibleSelect = false
  5094. } else {
  5095. this.closeConfirm(tool);
  5096. }
  5097. } else if (tool == 47) {
  5098. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  5099. this.dialogVisibleSentence = false
  5100. } else {
  5101. this.closeConfirm(tool);
  5102. }
  5103. }
  5104. },
  5105. closeConfirm(tool) {
  5106. this
  5107. .$confirm("是否保存已编辑内容?", "提示", {
  5108. confirmButtonText: "保存",
  5109. cancelButtonText: "不保存",
  5110. type: "warning",
  5111. })
  5112. .then(() => {
  5113. if (tool == 15) {
  5114. this.addAnswer();
  5115. } else if (tool == 4) {
  5116. this.addAsk();
  5117. } else if (tool == 45) {
  5118. this.addTest();
  5119. } else if (tool == 41) {
  5120. this.addSelectAnswer();
  5121. } else if (tool == 47) {
  5122. this.addSentenceTool();
  5123. }
  5124. })
  5125. .catch(() => {
  5126. if (tool == 15) {
  5127. this.dialogVisible8 = false;
  5128. } else if (tool == 4) {
  5129. this.dialogVisible5 = false;
  5130. } else if (tool == 45) {
  5131. this.dialogVisibleChoice = false;
  5132. } else if (tool == 41) {
  5133. this.dialogVisibleSelect = false;
  5134. } else if (tool == 47) {
  5135. this.dialogVisibleSentence = false;
  5136. }
  5137. });
  5138. },
  5139. imgChange2(i, j) {
  5140. var _tmp = this.testJson.testJson[i].checkList[j];
  5141. this.noneBtnImg = _tmp.length >= 1;
  5142. },
  5143. imgChange3(i) {
  5144. var _tmp = this.testJson.testJson[i];
  5145. this.noneBtnImg = _tmp.length >= 1;
  5146. },
  5147. imgChange1(file, fileList, type, itemTaskIndex) {
  5148. if (type == 1) {
  5149. var _tmp = this.cover;
  5150. } else if (
  5151. type == 2 ||
  5152. type == 3 ||
  5153. type == 6 ||
  5154. type == 7 ||
  5155. type == 8
  5156. ) {
  5157. var _tmp =
  5158. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5159. .chapterData;
  5160. } else if (type == 4) {
  5161. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5162. } else {
  5163. var _tmp =
  5164. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5165. .homeworkList;
  5166. }
  5167. this.noneBtnImg = _tmp.length >= 1;
  5168. },
  5169. goTo(path) {
  5170. this.$router.push(path);
  5171. },
  5172. guid() {
  5173. var _num,
  5174. i,
  5175. _guid = "";
  5176. for (i = 0; i < 32; i++) {
  5177. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5178. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5179. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5180. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5181. _guid += "-";
  5182. }
  5183. }
  5184. return _guid;
  5185. },
  5186. lastSteps() {
  5187. this
  5188. .$confirm("是否保存已编辑内容?", "提示", {
  5189. confirmButtonText: "保存",
  5190. cancelButtonText: "不保存",
  5191. distinguishCancelAndClose: true,
  5192. type: "warning",
  5193. })
  5194. .then(() => {
  5195. if (this.cid == "" || this.cid == undefined) {
  5196. if (this.courseName == "") {
  5197. this.$message.error("请补充填写课程名称");
  5198. return;
  5199. } else {
  5200. this.addWork();
  5201. }
  5202. } else {
  5203. if (this.courseName == "") {
  5204. this.$message.error("请补充填写课程名称");
  5205. return;
  5206. } else {
  5207. if (this.userid != this.courseUserid && this.role != "1") {
  5208. this.updateWork2();
  5209. } else {
  5210. this.updateWork();
  5211. }
  5212. }
  5213. }
  5214. })
  5215. .catch((v) => {
  5216. console.log(v)
  5217. if(v == "cancel"){
  5218. this.goTo(
  5219. "/course?userid=" +
  5220. this.userid +
  5221. "&oid=" +
  5222. this.oid +
  5223. "&org=" +
  5224. this.org +
  5225. "&role=" +
  5226. this.role
  5227. );
  5228. }
  5229. });
  5230. },
  5231. nextSteps() {
  5232. if (this.cid == "" || this.cid == undefined) {
  5233. if (this.courseName == "") {
  5234. this.$message.error("请补充填写课程名称");
  5235. return;
  5236. } else {
  5237. this.addWork();
  5238. }
  5239. } else {
  5240. if (this.courseName == "") {
  5241. this.$message.error("请补充填写课程名称");
  5242. return;
  5243. } else {
  5244. if (this.userid != this.courseUserid && this.role != "1") {
  5245. this.updateWork2();
  5246. } else {
  5247. this.updateWork();
  5248. }
  5249. }
  5250. }
  5251. this.$refs.stepBox.scrollTop = 0;
  5252. },
  5253. unitSet(i) {
  5254. this.unitIndex = i;
  5255. // this.$refs.rightboxR.scrollTop = 0;
  5256. },
  5257. time() {
  5258. if (!this.now) {
  5259. this.now = new Date().getTime();
  5260. return true;
  5261. } else {
  5262. let time = new Date().getTime();
  5263. if (time - this.now > 3000) {
  5264. this.now = time;
  5265. return true;
  5266. } else {
  5267. return false;
  5268. }
  5269. }
  5270. },
  5271. deleteUnit(i) {
  5272. var _this = this;
  5273. if (_this.time()) {
  5274. _this
  5275. .$confirm("确定删除此单元吗?", "提示", {
  5276. confirmButtonText: "确定",
  5277. cancelButtonText: "取消",
  5278. type: "warning",
  5279. })
  5280. .then(() => {
  5281. _this.isDelete = 2;
  5282. // _this.unitIndex = _this.unitIndex - 1;
  5283. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5284. // _this.$message.success("删除成功");
  5285. })
  5286. .catch(() => {
  5287. return;
  5288. });
  5289. }
  5290. },
  5291. deleteWork(chapid) {
  5292. let params = [
  5293. {
  5294. cid: this.cid,
  5295. chapters: JSON.stringify(this.unitJson),
  5296. uid: this.userid,
  5297. chapid: chapid,
  5298. },
  5299. ];
  5300. this.ajax
  5301. .post(this.$store.state.api + "deleteWork", params)
  5302. .then((res) => {
  5303. this.$message({
  5304. message: "删除成功",
  5305. type: "success",
  5306. });
  5307. this.unitJson.splice(this.unitIndex, 1);
  5308. this.unitIndex = this.unitIndex - 1;
  5309. })
  5310. .catch((err) => {
  5311. this.$message.error("网络不佳");
  5312. console.error(err);
  5313. });
  5314. },
  5315. deleteTool(itemTaskIndex, i) {
  5316. var _this = this;
  5317. if (_this.time()) {
  5318. _this
  5319. .$confirm("确定删除此工具吗?", "提示", {
  5320. confirmButtonText: "确定",
  5321. cancelButtonText: "取消",
  5322. type: "warning",
  5323. })
  5324. .then(() => {
  5325. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5326. itemTaskIndex
  5327. ].toolChoose.splice(i, 1);
  5328. _this.$message.success("删除成功");
  5329. })
  5330. .catch(() => {
  5331. return;
  5332. });
  5333. }
  5334. },
  5335. deleteSentence(i) {
  5336. var _this = this;
  5337. _this
  5338. .$confirm("确定删除此题目吗?", "提示", {
  5339. confirmButtonText: "确定",
  5340. cancelButtonText: "取消",
  5341. type: "warning",
  5342. })
  5343. .then(() => {
  5344. _this.sentenceList.splice(i, 1);
  5345. _this.$message.success("删除成功");
  5346. })
  5347. .catch(() => {
  5348. return;
  5349. });
  5350. },
  5351. deleteS(s, i, j) {
  5352. this.sentenceList[i].addSentence.splice(j, 1);
  5353. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5354. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5355. this.sentenceList[i].rightAnswer.splice(a, 1);
  5356. }
  5357. },
  5358. openT() {
  5359. window.parent.postMessage({ tools: "25" }, "*");
  5360. },
  5361. deleteTask(i) {
  5362. var _this = this;
  5363. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  5364. _this
  5365. .$confirm("确定删除此任务吗?", "提示", {
  5366. confirmButtonText: "确定",
  5367. cancelButtonText: "取消",
  5368. type: "warning",
  5369. })
  5370. .then(() => {
  5371. if (i == 0) {
  5372. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5373. i + 1
  5374. ].chapterData = JSON.parse(
  5375. JSON.stringify(
  5376. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  5377. .chapterData
  5378. )
  5379. );
  5380. }
  5381. _this.$forceUpdate();
  5382. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  5383. _this.$message.success("删除成功");
  5384. // this.$nextTick(() => {
  5385. // $('.stepsBottom2')[0].style.transition = 'unset'
  5386. // setTimeout(() => {
  5387. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  5388. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  5389. // let top = $('.stepsBottom2')[0].offsetTop - 20
  5390. // if (top > client) {
  5391. // $('.stepsBottom2')[0].style.top = client + 'px'
  5392. // }
  5393. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  5394. // this.$forceUpdate()
  5395. // }, 500)
  5396. // })
  5397. })
  5398. .catch(() => {
  5399. return;
  5400. });
  5401. },
  5402. handlePictureCardPreview(file) {
  5403. this.dialogImageUrl = file.url;
  5404. },
  5405. clean(i, c) {
  5406. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5407. },
  5408. handle_remove1(file, fileList, type) {
  5409. var _tmp = this.cover;
  5410. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5411. // if (_tmp[i].uid == file.uid) {
  5412. // _tmp.splice(i, 1);
  5413. // break;
  5414. // }
  5415. // this.cover = _tmp;
  5416. // }
  5417. this.cover = [];
  5418. this.noneBtnImg = this.cover.length >= 1;
  5419. this.isSysPic = false;
  5420. this.isSysPic2 = false;
  5421. this.$forceUpdate();
  5422. },
  5423. addImg(e) {
  5424. var el = e.currentTarget;
  5425. el.getElementsByTagName("input")[0].click();
  5426. e.target.value = "";
  5427. },
  5428. addChaptersTools(i) {
  5429. this.chapTools = [
  5430. {
  5431. tools: [],
  5432. toolDetail: "",
  5433. },
  5434. ];
  5435. this.chapCount = i;
  5436. this.dialogVisible4 = true;
  5437. },
  5438. isNoFinsh() {
  5439. this.$message.warning("功能正在开发中");
  5440. },
  5441. addAttText(i) {
  5442. this.AttText = {
  5443. title: "",
  5444. text: "",
  5445. };
  5446. this.taskCount = i;
  5447. this.AttTextType = 0;
  5448. this.$forceUpdate();
  5449. this.dialogVisible6 = true;
  5450. setTimeout(() => {
  5451. this.$refs['fuInput'].focus();
  5452. }, 100);
  5453. },
  5454. openLine(i) {
  5455. this.line = "";
  5456. this.lineCount = i;
  5457. this.lineType = 0;
  5458. this.$forceUpdate();
  5459. this.dialogVisible7 = true;
  5460. },
  5461. pasteLine(i) {
  5462. navigator.clipboard
  5463. .readText()
  5464. .then((v) => {
  5465. console.log("获取剪贴板成功:", v);
  5466. const html = v;
  5467. const regex = /src="(.*?)"/g;
  5468. const match = regex.exec(html);
  5469. if (match && match[1]) {
  5470. console.log(match[1]);
  5471. this.$message.success("粘贴成功");
  5472. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5473. i
  5474. ].chapterData.push({
  5475. name: "链接",
  5476. title: "嵌入代码",
  5477. url: match[1],
  5478. type: 8,
  5479. });
  5480. } else {
  5481. // console.log("未找到包含 src 属性的 iframe");
  5482. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5483. }
  5484. })
  5485. .catch((v) => {
  5486. console.log("获取剪贴板失败: ", v);
  5487. });
  5488. },
  5489. openSource(i) {
  5490. this.lineCount = i;
  5491. this.sourceData = {};
  5492. this.dialogVisibleSource = true;
  5493. this.updateSourcePan = false;
  5494. },
  5495. addSource() {
  5496. if (!Object.keys(this.sourceData).length) {
  5497. this.$message.error("请选择要上传的资源");
  5498. return;
  5499. }
  5500. let keys = Object.keys(this.sourceData);
  5501. for (var i = 0; i < keys.length; i++) {
  5502. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5503. this.lineCount
  5504. ].chapterData.push({
  5505. name: "链接",
  5506. title: this.sourceData[keys[i]].name,
  5507. url: this.sourceData[keys[i]].url,
  5508. type: 14,
  5509. id: keys[i]
  5510. });
  5511. }
  5512. this.$forceUpdate();
  5513. this.dialogVisibleSource = false;
  5514. },
  5515. updateSource() {
  5516. if (!Object.keys(this.sourceData).length) {
  5517. this.$message.error("请选择要上传的资源");
  5518. return;
  5519. }
  5520. let keys = Object.keys(this.sourceData);
  5521. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5522. this.taskCount
  5523. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5524. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5525. this.taskCount
  5526. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5528. this.taskCount
  5529. ].chapterData[this.lineCount].id = keys[0];
  5530. this.updateSourcePan = false;
  5531. this.$forceUpdate();
  5532. this.dialogVisibleSource = false;
  5533. },
  5534. deleteM(i, j) {
  5535. this.testJson.testJson[i].timuList.splice(j, 1);
  5536. },
  5537. beforeUploadTiMu(event, i) {
  5538. const loading = this.openLoading();
  5539. var file = event.target.files[0];
  5540. var credentials = {
  5541. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5542. secretAccessKey: "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",
  5543. }; //秘钥形式的登录上传
  5544. window.AWS.config.update(credentials);
  5545. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5546. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5547. var _this = this;
  5548. if (file) {
  5549. var params = {
  5550. Key:
  5551. file.name.split(".")[0] +
  5552. new Date().getTime() +
  5553. "." +
  5554. file.name.split(".")[file.name.split(".").length - 1],
  5555. ContentType: file.type,
  5556. Body: file,
  5557. "Access-Control-Allow-Credentials": "*",
  5558. ACL: "public-read",
  5559. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5560. var options = {
  5561. partSize: 2048 * 1024 * 1024,
  5562. queueSize: 2,
  5563. leavePartsOnError: true,
  5564. };
  5565. bucket
  5566. .upload(params, options)
  5567. .on("httpUploadProgress", function (evt) {
  5568. //这里可以写进度条
  5569. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5570. })
  5571. .send(function (err, data) {
  5572. loading.close();
  5573. if (err) {
  5574. _this.$message.error("上传失败");
  5575. } else {
  5576. if (_this.testJson.testJson[i].timuList) {
  5577. _this.testJson.testJson[i].timuList.push({
  5578. src: data.Location,
  5579. });
  5580. } else {
  5581. _this.testJson.testJson[i].timuList = [];
  5582. _this.testJson.testJson[i].timuList.push({
  5583. src: data.Location,
  5584. });
  5585. }
  5586. _this.imgChange3(i);
  5587. _this.$forceUpdate();
  5588. }
  5589. });
  5590. }
  5591. },
  5592. beforeUploadTi(event, i, j) {
  5593. const loading = this.openLoading();
  5594. var file = event.target.files[0];
  5595. var credentials = {
  5596. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5597. secretAccessKey: "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",
  5598. }; //秘钥形式的登录上传
  5599. window.AWS.config.update(credentials);
  5600. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5601. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5602. var _this = this;
  5603. if (file) {
  5604. var params = {
  5605. Key:
  5606. file.name.split(".")[0] +
  5607. new Date().getTime() +
  5608. "." +
  5609. file.name.split(".")[file.name.split(".").length - 1],
  5610. ContentType: file.type,
  5611. Body: file,
  5612. "Access-Control-Allow-Credentials": "*",
  5613. ACL: "public-read",
  5614. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5615. var options = {
  5616. partSize: 2048 * 1024 * 1024,
  5617. queueSize: 2,
  5618. leavePartsOnError: true,
  5619. };
  5620. bucket
  5621. .upload(params, options)
  5622. .on("httpUploadProgress", function (evt) {
  5623. //这里可以写进度条
  5624. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5625. })
  5626. .send(function (err, data) {
  5627. loading.close();
  5628. if (err) {
  5629. _this.$message.error("上传失败");
  5630. } else {
  5631. _this.testJson.testJson[i].checkList[j] = {};
  5632. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5633. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5634. _this.imgChange2(i, j);
  5635. _this.$forceUpdate();
  5636. }
  5637. });
  5638. }
  5639. },
  5640. beforeUpload1(event, type) {
  5641. // const loading = this.openLoading();
  5642. var file = event.target.files[0];
  5643. var credentials = {
  5644. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5645. secretAccessKey: "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",
  5646. }; //秘钥形式的登录上传
  5647. window.AWS.config.update(credentials);
  5648. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5649. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5650. var _this = this;
  5651. if (file) {
  5652. var params = {
  5653. Key:
  5654. file.name.split(".")[0] +
  5655. new Date().getTime() +
  5656. "." +
  5657. file.name.split(".")[file.name.split(".").length - 1],
  5658. ContentType: file.type,
  5659. Body: file,
  5660. "Access-Control-Allow-Credentials": "*",
  5661. ACL: "public-read",
  5662. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5663. var options = {
  5664. partSize: 2048 * 1024 * 1024,
  5665. queueSize: 2,
  5666. leavePartsOnError: true,
  5667. };
  5668. bucket
  5669. .upload(params, options)
  5670. .on("httpUploadProgress", function (evt) {
  5671. //这里可以写进度条
  5672. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5673. })
  5674. .send(function (err, data) {
  5675. // loading.close();
  5676. if (err) {
  5677. // var a = _this.$refs.upload1.uploadFiles;
  5678. // a.splice(a.length - 1, a.length);
  5679. _this.$message.error("上传失败");
  5680. } else {
  5681. _this.cover.push({
  5682. name: file.name,
  5683. url: data.Location,
  5684. uid: file.uid,
  5685. });
  5686. _this.imgChange1(null, null, 1, null);
  5687. _this.choosePicVisible = false;
  5688. console.log(data.Location);
  5689. }
  5690. });
  5691. }
  5692. },
  5693. beforeUploadSelect(event, type) {
  5694. // const loading = this.openLoading();
  5695. var file = event.target.files[0];
  5696. var credentials = {
  5697. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5698. secretAccessKey: "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",
  5699. }; //秘钥形式的登录上传
  5700. window.AWS.config.update(credentials);
  5701. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5702. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5703. var _this = this;
  5704. if (file) {
  5705. var params = {
  5706. Key:
  5707. file.name.split(".")[0] +
  5708. new Date().getTime() +
  5709. "." +
  5710. file.name.split(".")[file.name.split(".").length - 1],
  5711. ContentType: file.type,
  5712. Body: file,
  5713. "Access-Control-Allow-Credentials": "*",
  5714. ACL: "public-read",
  5715. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5716. var options = {
  5717. partSize: 2048 * 1024 * 1024,
  5718. queueSize: 2,
  5719. leavePartsOnError: true,
  5720. };
  5721. bucket
  5722. .upload(params, options)
  5723. .on("httpUploadProgress", function (evt) {
  5724. //这里可以写进度条
  5725. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5726. })
  5727. .send(function (err, data) {
  5728. // loading.close();
  5729. if (err) {
  5730. _this.$message.error("上传失败");
  5731. } else {
  5732. _this.selectJson.url = data.Location;
  5733. console.log(data.Location);
  5734. }
  5735. });
  5736. }
  5737. },
  5738. chooseSysPic(p) {
  5739. this.cover = []
  5740. setTimeout(() => {
  5741. this.cover[0] = {
  5742. name: "系统图片.png",
  5743. url: p,
  5744. };
  5745. this.imgChange1(null, null, 1, null);
  5746. this.$forceUpdate();
  5747. }, 0);
  5748. this.isSysPic = true;
  5749. this.isSysPic2 = false;
  5750. this.sysPicVisible = false;
  5751. this.$forceUpdate();
  5752. },
  5753. chooseSysPic2(p) {
  5754. this.cover = []
  5755. setTimeout(() => {
  5756. this.cover[0] = {
  5757. name: "网络图片.png",
  5758. url: p,
  5759. };
  5760. this.imgChange1(null, null, 1, null);
  5761. this.$forceUpdate();
  5762. }, 0);
  5763. this.isSysPic2 = true;
  5764. this.isSysPic = false;
  5765. this.sysPicVisible2 = false;
  5766. this.$forceUpdate();
  5767. },
  5768. beforeUpload(data) {
  5769. this.$refs.upload1.uploadFiles;
  5770. this.uploadLoading1 = true;
  5771. var file = data.file;
  5772. var credentials = {
  5773. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5774. secretAccessKey: "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",
  5775. }; //秘钥形式的登录上传
  5776. window.AWS.config.update(credentials);
  5777. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5778. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5779. var _this = this;
  5780. if (file) {
  5781. var params = {
  5782. Key:
  5783. file.name.split(".")[0] +
  5784. new Date().getTime() +
  5785. "." +
  5786. file.name.split(".")[file.name.split(".").length - 1],
  5787. ContentType: file.type,
  5788. Body: file,
  5789. "Access-Control-Allow-Credentials": "*",
  5790. ACL: "public-read",
  5791. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5792. var options = {
  5793. partSize: 2048 * 1024 * 1024,
  5794. queueSize: 2,
  5795. leavePartsOnError: true,
  5796. };
  5797. bucket
  5798. .upload(params, options)
  5799. .on("httpUploadProgress", function (evt) {
  5800. //这里可以写进度条
  5801. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5802. })
  5803. .send(function (err, data) {
  5804. _this.uploadLoading1 = false;
  5805. if (err) {
  5806. // var a = _this.$refs.upload1.uploadFiles;
  5807. // a.splice(a.length - 1, a.length);
  5808. _this.$message.error("上传失败");
  5809. } else {
  5810. //上传成功处理
  5811. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5812. name: file.name,
  5813. url: data.Location,
  5814. uid: file.uid,
  5815. });
  5816. _this.imgChange();
  5817. console.log(data.Location);
  5818. }
  5819. });
  5820. }
  5821. },
  5822. onExceed() {
  5823. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5824. },
  5825. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5826. // const loading = this.openLoading();
  5827. var file = event.target.files[0];
  5828. var credentials = {
  5829. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5830. secretAccessKey: "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",
  5831. }; //秘钥形式的登录上传
  5832. window.AWS.config.update(credentials);
  5833. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5834. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5835. var _this = this;
  5836. if (type == 3) {
  5837. var b = [
  5838. "DOC",
  5839. "DOCX",
  5840. "DOCM",
  5841. "DOTM",
  5842. "DOTX",
  5843. "PPTX",
  5844. "PPSX",
  5845. "PPT",
  5846. "PPS",
  5847. "PPTM",
  5848. "POTM",
  5849. "PPAM",
  5850. "POTX",
  5851. "PPSM",
  5852. "XLSX",
  5853. "XLS",
  5854. ];
  5855. if (
  5856. b.indexOf(
  5857. file.name
  5858. .split(".")
  5859. [file.name.split(".").length - 1].toLocaleUpperCase()
  5860. ) != -1
  5861. ) {
  5862. if (file.size / 1024 / 1024 > 80) {
  5863. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5864. this.inputShow = true;
  5865. // var a = _this.$refs.upload1.uploadFiles;
  5866. // a.splice(a.length - 1, a.length);
  5867. // loading.close();
  5868. return;
  5869. }
  5870. } else if (
  5871. file.name
  5872. .split(".")
  5873. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5874. ) {
  5875. if (file.size / 1024 / 1024 > 80) {
  5876. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5877. this.inputShow = true;
  5878. // var a = _this.$refs.upload1.uploadFiles;
  5879. // a.splice(a.length - 1, a.length);
  5880. // loading.close();
  5881. return;
  5882. }
  5883. }
  5884. }
  5885. this.inputShow = false;
  5886. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5887. itemTaskIndex
  5888. ].progress = 0;
  5889. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5890. itemTaskIndex
  5891. ].proVisible = true;
  5892. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5893. itemTaskIndex
  5894. ].isFinishSize = 0;
  5895. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5896. itemTaskIndex
  5897. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5898. _this.$forceUpdate();
  5899. if (file) {
  5900. var params = {
  5901. Key:
  5902. file.name.split(".")[0] +
  5903. new Date().getTime() +
  5904. "." +
  5905. file.name.split(".")[file.name.split(".").length - 1],
  5906. ContentType: file.type,
  5907. Body: file,
  5908. "Access-Control-Allow-Credentials": "*",
  5909. ACL: "public-read",
  5910. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5911. var options = {
  5912. partSize: 2048 * 1024 * 1024,
  5913. queueSize: 2,
  5914. leavePartsOnError: true,
  5915. };
  5916. bucket
  5917. .upload(params, options)
  5918. .on("httpUploadProgress", function (evt) {
  5919. //这里可以写进度条
  5920. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5921. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5922. itemTaskIndex
  5923. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5924. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5925. itemTaskIndex
  5926. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5927. _this.$forceUpdate();
  5928. })
  5929. .send(function (err, data) {
  5930. // loading.close();
  5931. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5932. itemTaskIndex
  5933. ].progress = 100;
  5934. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5935. itemTaskIndex
  5936. ].isFinishSize =
  5937. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5938. itemTaskIndex
  5939. ].isAllSize;
  5940. _this.$forceUpdate();
  5941. setTimeout(() => {
  5942. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5943. itemTaskIndex
  5944. ].proVisible = false;
  5945. _this.$forceUpdate();
  5946. }, 1000);
  5947. _this.inputShow = true;
  5948. if (err) {
  5949. // var a = _this.$refs.upload1.uploadFiles;
  5950. // a.splice(a.length - 1, a.length);
  5951. _this.$message.error("上传失败");
  5952. } else {
  5953. if (type == 13) {
  5954. let _type = 2;
  5955. var imgA = [
  5956. "png",
  5957. "jpg",
  5958. "jpeg",
  5959. "bmp",
  5960. "gif",
  5961. "webp",
  5962. "psd",
  5963. "svg",
  5964. "tiff",
  5965. ];
  5966. var fileA = [
  5967. "PDF",
  5968. "DOC",
  5969. "DOCX",
  5970. "DOCM",
  5971. "DOTM",
  5972. "DOTX",
  5973. "PPTX",
  5974. "PPSX",
  5975. "PPT",
  5976. "PPS",
  5977. "PPTM",
  5978. "POTM",
  5979. "PPAM",
  5980. "POTX",
  5981. "PPSM",
  5982. "XLSX",
  5983. "XLS",
  5984. ];
  5985. var videoA = [
  5986. "AVI",
  5987. "NAVI",
  5988. "MPEG",
  5989. "ASF",
  5990. "MOV",
  5991. "WMV",
  5992. "3GP",
  5993. "RM",
  5994. "RMVB",
  5995. "FLV",
  5996. "F4V",
  5997. "H.264",
  5998. "H.265",
  5999. "REAL VIDEO",
  6000. "MKV",
  6001. "WebM",
  6002. "HDDVD",
  6003. "MP4",
  6004. "MPG",
  6005. "M4V",
  6006. "MGV",
  6007. "OGV",
  6008. "QTM",
  6009. "STR",
  6010. "AMC",
  6011. "DVX",
  6012. "EVO",
  6013. "DAT",
  6014. "OGG",
  6015. "OGM",
  6016. ];
  6017. if (
  6018. fileA.indexOf(
  6019. data.Location.split(".")[
  6020. data.Location.split(".").length - 1
  6021. ].toLocaleUpperCase()
  6022. ) != -1
  6023. ) {
  6024. _type = 3;
  6025. } else if (
  6026. videoA.indexOf(
  6027. data.Location.split(".")[
  6028. data.Location.split(".").length - 1
  6029. ].toLocaleUpperCase()
  6030. ) != -1
  6031. ) {
  6032. _type = 2;
  6033. } else if (
  6034. imgA.indexOf(
  6035. data.Location.split(".")[
  6036. data.Location.split(".").length - 1
  6037. ].toLocaleLowerCase()
  6038. ) != -1
  6039. ) {
  6040. _type = 13;
  6041. } else {
  6042. _type = 12;
  6043. }
  6044. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6045. itemTaskIndex
  6046. ].chapterData.push({
  6047. name: file.name,
  6048. url: data.Location,
  6049. uid: file.uid,
  6050. type: _type,
  6051. });
  6052. _this.imgChange1(null, null, _type, itemTaskIndex);
  6053. } else if (type == 2 || type == 3 || type == 12) {
  6054. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6055. itemTaskIndex
  6056. ].chapterData.push({
  6057. name: file.name,
  6058. url: data.Location,
  6059. uid: file.uid,
  6060. type: type,
  6061. });
  6062. _this.imgChange1(null, null, type, itemTaskIndex);
  6063. } else if (type == 4) {
  6064. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6065. itemTaskIndex
  6066. ].fileList1.push({
  6067. name: file.name,
  6068. url: data.Location,
  6069. uid: file.uid,
  6070. });
  6071. _this.imgChange1(null, null, type, itemTaskIndex);
  6072. } else if (type == 5) {
  6073. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6074. itemTaskIndex
  6075. ].homeworkList.push({
  6076. name: file.name,
  6077. url: data.Location,
  6078. uid: file.uid,
  6079. });
  6080. _this.imgChange1(null, null, type, itemTaskIndex);
  6081. }
  6082. console.log(data.Location);
  6083. }
  6084. });
  6085. }
  6086. },
  6087. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  6088. // const loading = this.openLoading();
  6089. var file = event.target.files[0];
  6090. var credentials = {
  6091. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6092. secretAccessKey: "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",
  6093. }; //秘钥形式的登录上传
  6094. window.AWS.config.update(credentials);
  6095. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6096. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6097. var _this = this;
  6098. if (type == 3) {
  6099. var b = [
  6100. "DOC",
  6101. "DOCX",
  6102. "DOCM",
  6103. "DOTM",
  6104. "DOTX",
  6105. "PPTX",
  6106. "PPSX",
  6107. "PPT",
  6108. "PPS",
  6109. "PPTM",
  6110. "POTM",
  6111. "PPAM",
  6112. "POTX",
  6113. "PPSM",
  6114. ];
  6115. if (
  6116. b.indexOf(
  6117. file.name
  6118. .split(".")
  6119. [file.name.split(".").length - 1].toLocaleUpperCase()
  6120. ) != -1
  6121. ) {
  6122. if (file.size / 1024 / 1024 > 80) {
  6123. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6124. this.inputShow = true;
  6125. // var a = _this.$refs.upload1.uploadFiles;
  6126. // a.splice(a.length - 1, a.length);
  6127. // loading.close();
  6128. return;
  6129. }
  6130. } else if (
  6131. file.name
  6132. .split(".")
  6133. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6134. ) {
  6135. if (file.size / 1024 / 1024 > 80) {
  6136. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6137. this.inputShow = true;
  6138. // var a = _this.$refs.upload1.uploadFiles;
  6139. // a.splice(a.length - 1, a.length);
  6140. // loading.close();
  6141. return;
  6142. }
  6143. }
  6144. }
  6145. this.inputShow = false;
  6146. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6147. itemTaskIndex
  6148. ].progress = 0;
  6149. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6150. itemTaskIndex
  6151. ].proVisible = true;
  6152. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6153. itemTaskIndex
  6154. ].isFinishSize = 0;
  6155. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6156. itemTaskIndex
  6157. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6158. _this.$forceUpdate();
  6159. if (file) {
  6160. var params = {
  6161. Key:
  6162. file.name.split(".")[0] +
  6163. new Date().getTime() +
  6164. "." +
  6165. file.name.split(".")[file.name.split(".").length - 1],
  6166. ContentType: file.type,
  6167. Body: file,
  6168. "Access-Control-Allow-Credentials": "*",
  6169. ACL: "public-read",
  6170. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6171. var options = {
  6172. partSize: 2048 * 1024 * 1024,
  6173. queueSize: 2,
  6174. leavePartsOnError: true,
  6175. };
  6176. bucket
  6177. .upload(params, options)
  6178. .on("httpUploadProgress", function (evt) {
  6179. //这里可以写进度条
  6180. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6181. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6182. itemTaskIndex
  6183. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6184. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6185. itemTaskIndex
  6186. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6187. _this.$forceUpdate();
  6188. })
  6189. .send(function (err, data) {
  6190. // loading.close();
  6191. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6192. itemTaskIndex
  6193. ].progress = 100;
  6194. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6195. itemTaskIndex
  6196. ].isFinishSize =
  6197. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6198. itemTaskIndex
  6199. ].isAllSize;
  6200. _this.$forceUpdate();
  6201. setTimeout(() => {
  6202. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6203. itemTaskIndex
  6204. ].proVisible = false;
  6205. _this.$forceUpdate();
  6206. }, 1000);
  6207. _this.inputShow = true;
  6208. if (err) {
  6209. // var a = _this.$refs.upload1.uploadFiles;
  6210. // a.splice(a.length - 1, a.length);
  6211. _this.$message.error("上传失败");
  6212. } else {
  6213. if (type == 2 || type == 3) {
  6214. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6215. itemTaskIndex
  6216. ].chapterData.push({
  6217. name: file.name,
  6218. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6219. // itemTaskIndex
  6220. // ].chapterData.length+1),
  6221. url: data.Location,
  6222. uid: file.uid,
  6223. type: type,
  6224. text: string,
  6225. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6226. // itemTaskIndex
  6227. // ].chapterData.length + 1),
  6228. });
  6229. _this.imgChange1(null, null, type, itemTaskIndex);
  6230. } else if (type == 4) {
  6231. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6232. itemTaskIndex
  6233. ].fileList1.push({
  6234. name: file.name,
  6235. url: data.Location,
  6236. uid: file.uid,
  6237. });
  6238. _this.imgChange1(null, null, type, itemTaskIndex);
  6239. } else if (type == 5) {
  6240. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6241. itemTaskIndex
  6242. ].homeworkList.push({
  6243. name: file.name,
  6244. url: data.Location,
  6245. uid: file.uid,
  6246. });
  6247. _this.imgChange1(null, null, type, itemTaskIndex);
  6248. }
  6249. console.log(data.Location);
  6250. }
  6251. });
  6252. }
  6253. },
  6254. addunit() {
  6255. this.unitJson.push({
  6256. dyName: "", //单元标题
  6257. isUpdate: 1,
  6258. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6259. chapterInfo: [
  6260. {
  6261. isread: false,
  6262. chapterid: this.guid(),
  6263. title: "",
  6264. courseName: "",
  6265. taskJson: [
  6266. {
  6267. task: "",
  6268. taskDetail: "",
  6269. chapterData: [],
  6270. toolText: "",
  6271. toolChoose: [
  6272. {
  6273. tool: [],
  6274. toolDetail: "",
  6275. toolType: 0,
  6276. askCount: 1,
  6277. askTitle: "",
  6278. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6279. },
  6280. ],
  6281. isShowTools: false,
  6282. askCount: 1,
  6283. isFold: 0,
  6284. askTitle: "",
  6285. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6286. checkJson: [{ checkCount: [], checkPerent: [] }],
  6287. homeworkList: [],
  6288. },
  6289. ],
  6290. itemCount: 1,
  6291. fileList1: [],
  6292. video: [],
  6293. testData: [],
  6294. pData: [],
  6295. templateArray: [],
  6296. },
  6297. ],
  6298. });
  6299. this.addindex = this.unitJson.length - 1;
  6300. setTimeout(() => {
  6301. this.unitIndex = this.unitJson.length - 1;
  6302. this.unitSet(this.unitIndex);
  6303. }, 0);
  6304. },
  6305. addToolFun(itemTaskIndex) {
  6306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6307. itemTaskIndex
  6308. ].toolChoose.push({
  6309. tool: [],
  6310. toolDetail: "",
  6311. toolType: 0,
  6312. askCount: 1,
  6313. askTitle: "",
  6314. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6315. });
  6316. },
  6317. addTaskBorder() {
  6318. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6319. task: "",
  6320. taskDetail: "",
  6321. chapterData: [],
  6322. toolChoose: [
  6323. {
  6324. tool: [],
  6325. toolDetail: "",
  6326. toolType: 0,
  6327. askCount: 1,
  6328. askTitle: "",
  6329. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6330. },
  6331. ],
  6332. toolText: "",
  6333. isShowTools: false,
  6334. askCount: 1,
  6335. isFold: 0,
  6336. askTitle: "",
  6337. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6338. checkJson: [{ checkCount: [], checkPerent: [] }],
  6339. homeworkList: [],
  6340. });
  6341. },
  6342. add(e, i) {
  6343. var el = e.currentTarget;
  6344. el.getElementsByTagName("input")[0].click();
  6345. },
  6346. fold(i, e, type) {
  6347. var a = e.currentTarget.parentElement.parentElement;
  6348. var b = e.currentTarget.parentElement;
  6349. if (type == 1) {
  6350. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6351. a.className += " smallTaskBorder";
  6352. b.className += " funBlockTop";
  6353. } else {
  6354. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6355. a.className = "taskBorder";
  6356. b.className = "funBlock";
  6357. }
  6358. console.log(e);
  6359. },
  6360. fold2(i) {
  6361. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6362. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6363. } else {
  6364. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6365. }
  6366. setTimeout(() => {
  6367. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  6368. setTimeout(() => {
  6369. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  6370. }, 0);
  6371. }, 0);
  6372. this.$forceUpdate();
  6373. },
  6374. foldC(i) {
  6375. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6376. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6377. } else {
  6378. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6379. }
  6380. this.$forceUpdate();
  6381. },
  6382. fold3(i, ti) {
  6383. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6384. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6385. } else {
  6386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6387. }
  6388. this.$forceUpdate();
  6389. },
  6390. deleteHomeworkBox(unitIndex, index, i) {
  6391. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6392. this.taskCount
  6393. ].homeworkList.splice(i, 1);
  6394. },
  6395. getStudent() {
  6396. let params = {
  6397. oid: this.oid,
  6398. cu: "",
  6399. cn: this.searchPeople,
  6400. };
  6401. this.ajax
  6402. .get(this.$store.state.api + "selectStudentAdd", params)
  6403. .then((res) => {
  6404. this.studentJuri = res.data[0];
  6405. })
  6406. .catch((err) => {
  6407. this.isLoading = false;
  6408. console.error(err);
  6409. });
  6410. },
  6411. getTeacher() {
  6412. let params = {
  6413. oid:
  6414. this.org && this.org != "undefined" && this.org != "null"
  6415. ? this.org
  6416. : this.oid,
  6417. cu: "",
  6418. cn: this.searchTN,
  6419. };
  6420. this.ajax
  6421. .get(
  6422. this.$store.state.api +
  6423. (this.org && this.org != "undefined" && this.org != "null"
  6424. ? "selectTeacherAddOrg"
  6425. : "selectTeacherAdd"),
  6426. params
  6427. )
  6428. .then((res) => {
  6429. let teacherJuri = res.data[0];
  6430. for (var i = 0; i < teacherJuri.length; i++) {
  6431. if (teacherJuri[i].userid == this.userid) {
  6432. teacherJuri.splice(i, 1);
  6433. break;
  6434. }
  6435. }
  6436. this.teacherJuri = teacherJuri;
  6437. })
  6438. .catch((err) => {
  6439. console.error(err);
  6440. });
  6441. },
  6442. searchStudent() {
  6443. this.getStudent();
  6444. },
  6445. selectGrage() {
  6446. let params = {
  6447. oid: this.oid,
  6448. };
  6449. this.ajax
  6450. .get(this.$store.state.api + "selectGrageBySchool", params)
  6451. .then((res) => {
  6452. this.gradeList = res.data[0];
  6453. })
  6454. .catch((err) => {
  6455. this.isLoading = false;
  6456. console.error(err);
  6457. });
  6458. },
  6459. //获取班级列表
  6460. getClass() {
  6461. let params = {
  6462. oid: this.oid,
  6463. gid: this.gradeId,
  6464. cn: this.classSearch,
  6465. };
  6466. this.ajax
  6467. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6468. .then((res) => {
  6469. if (!this.grade.length) {
  6470. this.grade = res.data[0];
  6471. }
  6472. this.grade2 = res.data[0];
  6473. this.classJuri = res.data[0];
  6474. let _check = []
  6475. let _check2 = []
  6476. for (var i = 0; i < this.grade2.length; i++) {
  6477. var gid = this.grade2[i].id
  6478. _check.push(gid)
  6479. }
  6480. for (var i = 0; i < this.checkboxList2.length; i++) {
  6481. var _id = this.checkboxList2[i]
  6482. if (_check.indexOf(_id) !== -1) {
  6483. _check2.push(_id)
  6484. }
  6485. }
  6486. this.checkAll = _check2.length === _check.length;
  6487. })
  6488. .catch((err) => {
  6489. this.isLoading = false;
  6490. console.error(err);
  6491. });
  6492. },
  6493. CourseType2Change(val) {
  6494. this.pTypeCheck = [];
  6495. for (var i = 0; i < this.CourseType2.length; i++) {
  6496. let typeA = this.CourseType2[i];
  6497. if (val.indexOf(typeA.name) != -1) {
  6498. this.pTypeCheck.push(...typeA.id);
  6499. }
  6500. }
  6501. },
  6502. getChapterData(e, i, j, ic, type) {
  6503. e.stopPropagation();
  6504. this.updataC = true;
  6505. this.icc = ic;
  6506. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6507. console.log("还不能下载图片喔");
  6508. }
  6509. },
  6510. deleteChapterData(e, i, j, ic, taskI) {
  6511. e.stopPropagation();
  6512. let _this = this;
  6513. _this
  6514. .$confirm("确定删除此项?", "提示", {
  6515. confirmButtonText: "确定",
  6516. cancelButtonText: "取消",
  6517. type: "warning",
  6518. })
  6519. .then(() => {
  6520. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6521. })
  6522. .catch(() => {
  6523. return;
  6524. });
  6525. },
  6526. updataVideoT(e, i, j, ic) {
  6527. // e.stopPropagation();
  6528. // this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6529. // ic
  6530. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6531. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6532. ic
  6533. ].name;
  6534. this.taskCount = j;
  6535. this.lineCount = ic;
  6536. this.dialogVisibleupdataVideoT = true;
  6537. this.$forceUpdate();
  6538. },
  6539. updataVideoC() {
  6540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6541. this.dialogVisibleupdataVideoT = false;
  6542. this.$forceUpdate();
  6543. },
  6544. upCd(e, i, j, taskCount, ic) {
  6545. e.stopPropagation();
  6546. if (ic == 0) {
  6547. return;
  6548. }
  6549. var a =
  6550. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6551. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6552. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6553. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6554. this.$forceUpdate();
  6555. },
  6556. downCd(e, i, j, taskCount, ic) {
  6557. e.stopPropagation();
  6558. if (
  6559. ic ==
  6560. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6561. 1
  6562. ) {
  6563. return;
  6564. }
  6565. var a =
  6566. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6567. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6568. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6569. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6570. this.$forceUpdate();
  6571. },
  6572. addWork() {
  6573. let cPan = 1;
  6574. for (var i = 0; i < this.unitJson.length; i++) {
  6575. for (
  6576. var j = 0;
  6577. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6578. j++
  6579. ) {
  6580. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6581. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6582. if (
  6583. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6584. ) {
  6585. for (
  6586. var z = 0;
  6587. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6588. z++
  6589. ) {
  6590. if (
  6591. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6592. .length
  6593. ) {
  6594. this.$message.error("请把工具添加完整");
  6595. cPan = 2;
  6596. break;
  6597. }
  6598. }
  6599. }
  6600. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6601. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6602. i
  6603. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6604. return ele.value != "";
  6605. });
  6606. }
  6607. }
  6608. }
  6609. this.inputShow = true;
  6610. if (cPan == 2) {
  6611. return;
  6612. }
  6613. for (var i = 0; i < this.unitJson.length; i++) {
  6614. delete this.unitJson[i].isUpdate;
  6615. }
  6616. let params = [
  6617. {
  6618. uid: this.userid,
  6619. title: this.courseName.replace(/%/g, "%25"),
  6620. brief: this.courseText.replace(/%/g, "%25"),
  6621. cover:
  6622. this.cover.length > 0
  6623. ? JSON.stringify(this.cover)
  6624. : JSON.stringify([
  6625. {
  6626. name: "noBanner.jpg",
  6627. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6628. uid: 1656409780264,
  6629. status: "success",
  6630. },
  6631. ]),
  6632. evaId: this.evalua,
  6633. astudent:
  6634. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6635. see: this.isTeacherSee == true ? 1 : 0,
  6636. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6637. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6638. courseType: JSON.stringify(this.courseTypeId),
  6639. ateacher:
  6640. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6641. inviteCode: JSON.stringify(this.inviteCode),
  6642. },
  6643. ];
  6644. this.ajax
  6645. .post(this.$store.state.api + "addWorkNew2T", params)
  6646. .then((res) => {
  6647. console.log(this.steps);
  6648. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6649. this.$message({
  6650. message: "新增成功",
  6651. type: "success",
  6652. });
  6653. // }
  6654. this.number = res.data.ordernumber;
  6655. this.courseId = res.data.courseId;
  6656. this.cid = res.data.courseId;
  6657. this.courseUserid = this.userid;
  6658. this.islogin = true;
  6659. this.steps = 4;
  6660. })
  6661. .catch((err) => {
  6662. this.$message.error("网络不佳");
  6663. console.error(err);
  6664. });
  6665. },
  6666. goCourse() {
  6667. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  6668. },
  6669. updateWork2() {
  6670. let _unitIndex = this.unitIndex;
  6671. let cPan = 1;
  6672. for (
  6673. var j = 0;
  6674. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6675. j++
  6676. ) {
  6677. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6678. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6679. j
  6680. ].proVisible2 = false;
  6681. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6682. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6683. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6684. (ele) => {
  6685. return ele.value != "";
  6686. }
  6687. );
  6688. }
  6689. }
  6690. this.inputShow = true;
  6691. if (cPan == 2) {
  6692. return;
  6693. }
  6694. let params = [
  6695. {
  6696. cid: this.cid,
  6697. chapters: JSON.stringify(this.unitJson),
  6698. uid: this.userid,
  6699. unitIndex: _unitIndex,
  6700. },
  6701. ];
  6702. this.ajax
  6703. .post(this.$store.state.api + "updateWorkNew4", params)
  6704. .then((res) => {
  6705. this.$message({
  6706. message: "修改成功",
  6707. type: "success",
  6708. });
  6709. this.courseId = this.cid;
  6710. })
  6711. .catch((err) => {
  6712. this.$message.error("网络不佳");
  6713. console.error(err);
  6714. });
  6715. },
  6716. updateWork() {
  6717. let cPan = 1;
  6718. for (var i = 0; i < this.unitJson.length; i++) {
  6719. for (
  6720. var j = 0;
  6721. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6722. j++
  6723. ) {
  6724. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6725. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6726. if (
  6727. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6728. ) {
  6729. for (
  6730. var z = 0;
  6731. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6732. z++
  6733. ) {
  6734. if (
  6735. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6736. .length
  6737. ) {
  6738. this.$message.error("请把工具添加完整");
  6739. cPan = 2;
  6740. break;
  6741. }
  6742. }
  6743. }
  6744. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6745. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6746. i
  6747. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6748. return ele.value != "";
  6749. });
  6750. }
  6751. }
  6752. }
  6753. this.inputShow = true;
  6754. if (cPan == 2) {
  6755. return;
  6756. }
  6757. for (var i = 0; i < this.unitJson.length; i++) {
  6758. delete this.unitJson[i].isUpdate;
  6759. }
  6760. let params = [
  6761. {
  6762. cid: this.cid,
  6763. title: this.courseName.replace(/%/g, "%25"),
  6764. brief: this.courseText.replace(/%/g, "%25"),
  6765. cover:
  6766. this.cover.length > 0
  6767. ? JSON.stringify(this.cover)
  6768. : JSON.stringify([
  6769. {
  6770. name: "noBanner.jpg",
  6771. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6772. uid: 1656409780264,
  6773. status: "success",
  6774. },
  6775. ]),
  6776. evaId: this.evalua,
  6777. astudent:
  6778. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6779. see: this.isTeacherSee == true ? 1 : 0,
  6780. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6781. template: this.myWord != "undefined" ? this.myWord : [],
  6782. uid: this.userid,
  6783. courseType: JSON.stringify(this.courseTypeId),
  6784. ateacher:
  6785. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6786. inviteCode: JSON.stringify(this.inviteCode),
  6787. },
  6788. ];
  6789. this.ajax
  6790. .post(this.$store.state.api + "updateWorkNew2", params)
  6791. .then((res) => {
  6792. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6793. if (this.cidType == 1) {
  6794. this.$message({
  6795. message: "修改成功",
  6796. type: "success",
  6797. });
  6798. } else {
  6799. this.$message({
  6800. message: "新增成功",
  6801. type: "success",
  6802. });
  6803. }
  6804. // }
  6805. this.number = this.nbOrder;
  6806. this.courseId = this.cid;
  6807. this.steps = 4;
  6808. })
  6809. .catch((err) => {
  6810. this.$message.error("网络不佳");
  6811. console.error(err);
  6812. });
  6813. },
  6814. guid() {
  6815. var _num,
  6816. i,
  6817. _guid = "";
  6818. for (i = 0; i < 32; i++) {
  6819. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6820. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6821. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6822. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6823. _guid += "-";
  6824. }
  6825. }
  6826. return _guid;
  6827. },
  6828. insertWord() {
  6829. this.dialogVisible1 = true;
  6830. this.updateBoolean2 = false;
  6831. this.tTitle = "";
  6832. this.tdetail = "";
  6833. },
  6834. addWord() {
  6835. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6836. name: this.tTitle,
  6837. content: this.tdetail,
  6838. uid: this.guid(),
  6839. });
  6840. this.dialogVisible1 = false;
  6841. },
  6842. upWord() { },
  6843. selectWord(uid, i, c) {
  6844. this.dialogVisible1 = true;
  6845. this.updateBoolean2 = true;
  6846. if (
  6847. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6848. ) {
  6849. this.tTitle =
  6850. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6851. this.tdetail =
  6852. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6853. }
  6854. },
  6855. isAddPP() {
  6856. if (this.checkboxList.length > 0) {
  6857. this.$message({
  6858. message: "添加成功",
  6859. type: "success",
  6860. });
  6861. this.dialogVisible3 = false;
  6862. } else {
  6863. this.$message({
  6864. message: "请添加课程成员",
  6865. type: "error",
  6866. });
  6867. }
  6868. },
  6869. isAddClass() {
  6870. this.dialogVisibleClass = false;
  6871. },
  6872. isAddPPTeacher() {
  6873. this.dialogVisibleMember = false;
  6874. this.setMan();
  6875. },
  6876. getTemplate() {
  6877. this.ajax
  6878. .get(this.$store.state.api + "getCourseTemplateT", "")
  6879. .then((res) => {
  6880. this.templateArray = res.data[0];
  6881. this.getTemplateOid();
  6882. this.$forceUpdate();
  6883. })
  6884. .catch((err) => { });
  6885. },
  6886. getTemplateOid() {
  6887. let params = {
  6888. oid: this.oid,
  6889. };
  6890. this.ajax
  6891. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6892. .then((res) => {
  6893. if (res.data[0].length) {
  6894. this.templateArray = [...res.data[0], ...this.templateArray];
  6895. }
  6896. this.getTemplateOrg();
  6897. this.$forceUpdate();
  6898. })
  6899. .catch((err) => { });
  6900. },
  6901. getTemplateOrg() {
  6902. let params = {
  6903. oid: this.org,
  6904. };
  6905. this.ajax
  6906. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6907. .then((res) => {
  6908. if (res.data[0].length) {
  6909. this.templateArray = [...res.data[0], ...this.templateArray];
  6910. }
  6911. this.$forceUpdate();
  6912. })
  6913. .catch((err) => { });
  6914. },
  6915. clearChoose() {
  6916. this.clearArray.splice(this.templateC.id, 1);
  6917. this.dialogVisible2 = false;
  6918. },
  6919. clearAttText() {
  6920. this.AttText = {
  6921. title: "",
  6922. text: "",
  6923. };
  6924. this.dialogVisible6 = false;
  6925. },
  6926. clearLine() {
  6927. this.line = "";
  6928. this.dialogVisible7 = false;
  6929. },
  6930. checkTemplate(res) {
  6931. let _this = this;
  6932. _this
  6933. .$confirm("确定选择此模板吗?", "提示", {
  6934. confirmButtonText: "确定",
  6935. cancelButtonText: "取消",
  6936. type: "warning",
  6937. })
  6938. .then(() => {
  6939. _this.unitJson = JSON.parse(res.chapters);
  6940. _this.steps++;
  6941. setTimeout(() => {
  6942. this.checkEva(this.checkId);
  6943. }, 1000);
  6944. })
  6945. .catch(() => {
  6946. return;
  6947. });
  6948. },
  6949. checkTemplate1(w) {
  6950. this.steps++;
  6951. },
  6952. checkTemplate2() {
  6953. let _this = this;
  6954. _this
  6955. .$confirm("确定选择空模板吗?", "提示", {
  6956. confirmButtonText: "确定",
  6957. cancelButtonText: "取消",
  6958. type: "warning",
  6959. })
  6960. .then(() => {
  6961. _this.unitIndex = 0;
  6962. _this.unitJson = [
  6963. {
  6964. dyName: "", //单元标题
  6965. chapterInfo: [
  6966. {
  6967. isread: false,
  6968. chapterid: this.guid(),
  6969. title: "",
  6970. courseName: "",
  6971. taskJson: [
  6972. {
  6973. task: "",
  6974. taskDetail: "",
  6975. chapterData: [],
  6976. toolText: "",
  6977. toolChoose: [
  6978. {
  6979. tool: [],
  6980. toolDetail: "",
  6981. toolType: 0,
  6982. askCount: 1,
  6983. askTitle: "",
  6984. askJson: [
  6985. { askstitle: "", askItem: 1, checkList: [] },
  6986. ],
  6987. },
  6988. ],
  6989. isShowTools: false,
  6990. askCount: 1,
  6991. isFold: 0,
  6992. askTitle: "",
  6993. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6994. checkJson: [{ checkCount: [], checkPerent: [] }],
  6995. homeworkList: [],
  6996. },
  6997. ],
  6998. itemCount: 1,
  6999. fileList1: [],
  7000. video: [],
  7001. testData: [],
  7002. pData: [],
  7003. templateArray: [],
  7004. },
  7005. ],
  7006. },
  7007. ];
  7008. this.steps++;
  7009. this.updateWork();
  7010. })
  7011. .catch(() => {
  7012. return;
  7013. });
  7014. },
  7015. checkTemplate3() {
  7016. let _this = this;
  7017. _this
  7018. .$confirm("确定选择简易模式吗?", "提示", {
  7019. confirmButtonText: "确定",
  7020. cancelButtonText: "取消",
  7021. type: "warning",
  7022. })
  7023. .then(() => {
  7024. _this.unitIndex = 0;
  7025. _this.unitJson = [
  7026. {
  7027. dyName: "", //单元标题
  7028. easy: 1,
  7029. chapterInfo: [
  7030. {
  7031. isread: false,
  7032. chapterid: this.guid(),
  7033. title: "",
  7034. courseName: "",
  7035. taskJson: [
  7036. {
  7037. task: "",
  7038. taskDetail: "",
  7039. chapterData: [],
  7040. toolText: "",
  7041. toolChoose: [
  7042. {
  7043. tool: [],
  7044. toolDetail: "",
  7045. toolType: 0,
  7046. askCount: 1,
  7047. askTitle: "",
  7048. askJson: [
  7049. { askstitle: "", askItem: 1, checkList: [] },
  7050. ],
  7051. },
  7052. ],
  7053. isShowTools: false,
  7054. askCount: 1,
  7055. isFold: 0,
  7056. askTitle: "",
  7057. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7058. checkJson: [{ checkCount: [], checkPerent: [] }],
  7059. homeworkList: [],
  7060. },
  7061. ],
  7062. itemCount: 1,
  7063. fileList1: [],
  7064. video: [],
  7065. testData: [],
  7066. pData: [],
  7067. templateArray: [],
  7068. },
  7069. ],
  7070. },
  7071. ];
  7072. this.steps++;
  7073. this.updateWork();
  7074. })
  7075. .catch(() => {
  7076. return;
  7077. });
  7078. },
  7079. checkTemplate4() {
  7080. let _this = this;
  7081. _this
  7082. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7083. confirmButtonText: "确定",
  7084. cancelButtonText: "取消",
  7085. type: "warning",
  7086. })
  7087. .then(() => {
  7088. _this.unitIndex = 0;
  7089. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7090. this.steps++;
  7091. this.updateWork();
  7092. })
  7093. .catch(() => {
  7094. return;
  7095. });
  7096. },
  7097. wordNext() {
  7098. this.dialogVisible2 = false;
  7099. },
  7100. isAddOrUpdateAttText() {
  7101. if (this.AttTextType == 0) {
  7102. this.addAttTextMessage();
  7103. } else {
  7104. this.updateAttText();
  7105. }
  7106. },
  7107. isAddOrUpdateLine() {
  7108. if (!this.lineTitle) {
  7109. this.$message.error("请填写链接标题");
  7110. return;
  7111. }
  7112. if (this.lineType == 0) {
  7113. this.addLine();
  7114. } else {
  7115. this.updateLine();
  7116. }
  7117. },
  7118. addAttTextMessage() {
  7119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7120. this.taskCount
  7121. ].chapterData.push({
  7122. name: this.AttText.title,
  7123. url: this.AttText.text,
  7124. type: 6,
  7125. });
  7126. this.imgChange1(null, null, 6, this.taskCount);
  7127. this.dialogVisible6 = false;
  7128. },
  7129. selectAttText(itemTaskIndex, i) {
  7130. this.AttText.title =
  7131. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7132. itemTaskIndex
  7133. ].chapterData[i].name;
  7134. this.AttText.text =
  7135. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7136. itemTaskIndex
  7137. ].chapterData[i].url;
  7138. this.taskCount = itemTaskIndex;
  7139. this.AttTextIndex = i;
  7140. this.AttTextType = 1;
  7141. this.dialogVisible6 = true;
  7142. },
  7143. updateAttText() {
  7144. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7145. this.taskCount
  7146. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7147. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7148. this.taskCount
  7149. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7150. this.dialogVisible6 = false;
  7151. },
  7152. addLine() {
  7153. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7154. this.lineCount
  7155. ].chapterData.push({
  7156. name: "链接",
  7157. title: this.lineTitle,
  7158. url: this.line,
  7159. type: 8,
  7160. });
  7161. this.imgChange1(null, null, 8, this.lineCount);
  7162. this.dialogVisible7 = false;
  7163. },
  7164. selectLine(itemTaskIndex, i) {
  7165. this.line =
  7166. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7167. itemTaskIndex
  7168. ].chapterData[i].url;
  7169. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7170. itemTaskIndex
  7171. ].chapterData[i].title
  7172. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7173. .chapterData[i].title
  7174. : "";
  7175. this.taskCount = itemTaskIndex;
  7176. this.lineCount = i;
  7177. this.lineType = 1;
  7178. this.dialogVisible7 = true;
  7179. },
  7180. openUpdateSource(itemTaskIndex, i) {
  7181. this.sourceData = {}
  7182. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7183. this.sourceData[source.id] = {}
  7184. this.sourceData[source.id].name = source.title
  7185. this.sourceData[source.id].url = source.url
  7186. this.dialogVisibleSource = true;
  7187. this.updateSourcePan = true;
  7188. this.taskCount = itemTaskIndex;
  7189. this.lineCount = i;
  7190. },
  7191. updateLine() {
  7192. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7193. this.taskCount
  7194. ].chapterData[this.lineCount].url = this.line;
  7195. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7196. this.taskCount
  7197. ].chapterData[this.lineCount].title = this.lineTitle;
  7198. this.dialogVisible7 = false;
  7199. },
  7200. addPP() {
  7201. this.dialogVisible3 = true;
  7202. },
  7203. goTo(path) {
  7204. this.$router.push(path);
  7205. },
  7206. openTools(itemTaskIndex, i, toolIndex) {
  7207. this.toolIndex = toolIndex;
  7208. this.taskCount = itemTaskIndex;
  7209. if (i == 4) {
  7210. if (toolIndex == null) {
  7211. var a =
  7212. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7213. .chapterData;
  7214. for (var i = 0; i < a.length; i++) {
  7215. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7216. this.askJson =
  7217. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7218. itemTaskIndex
  7219. ].chapterData[i].askJson;
  7220. }
  7221. }
  7222. } else {
  7223. this.askJson = JSON.parse(
  7224. JSON.stringify(
  7225. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7226. itemTaskIndex
  7227. ].toolChoose[toolIndex]
  7228. )
  7229. );
  7230. }
  7231. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7232. this.dialogVisible5 = true;
  7233. } else if (i == 45) {
  7234. if (
  7235. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7236. .toolChoose[toolIndex].testJson
  7237. ) {
  7238. this.testJson = JSON.parse(
  7239. JSON.stringify(
  7240. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7241. itemTaskIndex
  7242. ].toolChoose[toolIndex].testJson
  7243. )
  7244. );
  7245. } else {
  7246. var testJson = {
  7247. testCount: 1,
  7248. testTitle: "",
  7249. testJson: [
  7250. {
  7251. teststitle: "",
  7252. testItem: 1,
  7253. checkList: [],
  7254. timuList: [],
  7255. answer: [],
  7256. type: "1",
  7257. },
  7258. ],
  7259. };
  7260. this.testJson = testJson;
  7261. }
  7262. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7263. this.dialogVisibleChoice = true;
  7264. } else if (i == 47) {
  7265. if (
  7266. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7267. .toolChoose[toolIndex].sentenceList
  7268. ) {
  7269. this.sentenceList = JSON.parse(
  7270. JSON.stringify(
  7271. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7272. itemTaskIndex
  7273. ].toolChoose[toolIndex].sentenceList
  7274. )
  7275. );
  7276. } else {
  7277. var sentenceList = [
  7278. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7279. ];
  7280. this.sentenceList = sentenceList;
  7281. }
  7282. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7283. this.dialogVisibleSentence = true;
  7284. } else if (i == 48) {
  7285. if (
  7286. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7287. .toolChoose[toolIndex].tableJson
  7288. ) {
  7289. this.tableJson = JSON.parse(
  7290. JSON.stringify(
  7291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7292. itemTaskIndex
  7293. ].toolChoose[toolIndex].tableJson
  7294. )
  7295. );
  7296. } else {
  7297. var tableJson = { text: "" };
  7298. this.tableJson = tableJson;
  7299. }
  7300. this.dialogVisibleTable = true;
  7301. } else if (i == 52) {
  7302. if (
  7303. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7304. .toolChoose[toolIndex].wordJson
  7305. ) {
  7306. this.wordJson = JSON.parse(
  7307. JSON.stringify(
  7308. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7309. itemTaskIndex
  7310. ].toolChoose[toolIndex].wordJson
  7311. )
  7312. );
  7313. } else {
  7314. var wordJson = { text: "" };
  7315. this.wordJson = wordJson;
  7316. }
  7317. this.dialogVisibleWord = true;
  7318. // else if (i == 50) {
  7319. // if (
  7320. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7321. // .toolChoose[toolIndex].uploadJson
  7322. // ) {
  7323. // this.uploadJson = JSON.parse(
  7324. // JSON.stringify(
  7325. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7326. // itemTaskIndex
  7327. // ].toolChoose[toolIndex].uploadJson
  7328. // )
  7329. // );
  7330. // } else {
  7331. // var uploadJson = [];
  7332. // this.uploadJson = uploadJson;
  7333. // }
  7334. // this.dialogVisibleMoreUpload = true;
  7335. // }
  7336. } else if (i == 10) {
  7337. if (
  7338. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7339. .toolChoose[toolIndex].preTime
  7340. ) {
  7341. this.preTime = JSON.parse(
  7342. JSON.stringify(
  7343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7344. itemTaskIndex
  7345. ].toolChoose[toolIndex].preTime
  7346. )
  7347. );
  7348. } else {
  7349. var preTime = 0;
  7350. this.preTime = preTime;
  7351. }
  7352. this.dialogVisiblePreTime = true;
  7353. } else if (i == 49) {
  7354. if (
  7355. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7356. .toolChoose[toolIndex].groupJson
  7357. ) {
  7358. this.groupJson = JSON.parse(
  7359. JSON.stringify(
  7360. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7361. itemTaskIndex
  7362. ].toolChoose[toolIndex].groupJson
  7363. )
  7364. );
  7365. } else {
  7366. var groupJson = {
  7367. group: [{ name: "第1组" }],
  7368. number: undefined,
  7369. islock: 1,
  7370. };
  7371. this.groupJson = groupJson;
  7372. }
  7373. this.dialogVisibleGroup = true;
  7374. } else if (i == 62) {
  7375. if (
  7376. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7377. .toolChoose[toolIndex].videoJson
  7378. ) {
  7379. this.videoJson = JSON.parse(
  7380. JSON.stringify(
  7381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7382. itemTaskIndex
  7383. ].toolChoose[toolIndex].videoJson
  7384. )
  7385. );
  7386. } else {
  7387. var videoJson = {
  7388. video: "",
  7389. setting: [],
  7390. };
  7391. this.videoJson = videoJson;
  7392. }
  7393. this.dialogVisibleVideo = true;
  7394. } else if (i == 15) {
  7395. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7396. itemTaskIndex
  7397. ].toolChoose[toolIndex].answerQ
  7398. ? JSON.parse(
  7399. JSON.stringify(
  7400. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7401. itemTaskIndex
  7402. ].toolChoose[toolIndex].answerQ
  7403. )
  7404. )
  7405. : "";
  7406. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7407. this.dialogVisible8 = true;
  7408. } else if (i == 40) {
  7409. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7410. itemTaskIndex
  7411. ].toolChoose[toolIndex].rateJson
  7412. ? JSON.parse(
  7413. JSON.stringify(
  7414. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7415. itemTaskIndex
  7416. ].toolChoose[toolIndex].rateJson
  7417. )
  7418. )
  7419. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7420. this.selectSteps = 1;
  7421. this.dialogVisibleRate = true;
  7422. } else if (i == 42) {
  7423. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7424. itemTaskIndex
  7425. ].toolChoose[toolIndex].answerQ
  7426. ? JSON.parse(
  7427. JSON.stringify(
  7428. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7429. itemTaskIndex
  7430. ].toolChoose[toolIndex].answerQ
  7431. )
  7432. )
  7433. : "";
  7434. this.dialogVisibleMp3 = true;
  7435. } else if (i == 41) {
  7436. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7437. itemTaskIndex
  7438. ].toolChoose[toolIndex].selectJson
  7439. ? JSON.parse(
  7440. JSON.stringify(
  7441. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7442. itemTaskIndex
  7443. ].toolChoose[toolIndex].selectJson
  7444. )
  7445. )
  7446. : { url: "", select: [], answer: [] };
  7447. this.selectSteps = 1;
  7448. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7449. this.dialogVisibleSelect = true;
  7450. } else if (i == 3) {
  7451. if (!this.cid) {
  7452. this.$message.error(
  7453. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7454. );
  7455. return;
  7456. }
  7457. window.parent.postMessage(
  7458. {
  7459. tools: "3y",
  7460. cid: this.cid,
  7461. stage: this.unitIndex,
  7462. task: itemTaskIndex,
  7463. tool: toolIndex,
  7464. },
  7465. "*"
  7466. );
  7467. } else if (i == 1) {
  7468. if (!this.cid) {
  7469. this.$message.error(
  7470. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7471. );
  7472. return;
  7473. }
  7474. window.parent.postMessage(
  7475. {
  7476. tools: "1y",
  7477. cid: this.cid,
  7478. stage: this.unitIndex,
  7479. task: itemTaskIndex,
  7480. tool: toolIndex,
  7481. },
  7482. "*"
  7483. );
  7484. } else if (i == 57) {
  7485. if (!this.cid) {
  7486. this.$message.error(
  7487. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7488. );
  7489. return;
  7490. }
  7491. window.parent.postMessage(
  7492. {
  7493. tools: "57y",
  7494. cid: this.cid,
  7495. stage: this.unitIndex,
  7496. task: itemTaskIndex,
  7497. tool: toolIndex,
  7498. },
  7499. "*"
  7500. );
  7501. }
  7502. },
  7503. chapAddTools(i) {
  7504. if (this.chapTools[0].tools.length == 0) {
  7505. this.chapTools[0].tools.push(i);
  7506. } else {
  7507. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7508. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7509. } else {
  7510. this.chapTools[0].tools.push(i);
  7511. }
  7512. }
  7513. this.$forceUpdate();
  7514. },
  7515. addChaptersDataTools() {
  7516. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7518. this.chapCount
  7519. ].chapterData.push({
  7520. name: this.chapTools[0].toolDetail,
  7521. url: this.chapTools[0].tools,
  7522. type: 7,
  7523. askJson: this.askJson,
  7524. });
  7525. } else {
  7526. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7527. this.chapCount
  7528. ].chapterData.push({
  7529. name: this.chapTools[0].toolDetail,
  7530. url: this.chapTools[0].tools,
  7531. type: 7,
  7532. });
  7533. }
  7534. this.imgChange1(null, null, 7, this.chapCount);
  7535. this.dialogVisible4 = false;
  7536. },
  7537. addTools(i, itemTaskIndex, toolIndex) {
  7538. // if (
  7539. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7540. // .toolChoose[toolIndex].tool.length == 0
  7541. // ) {
  7542. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7543. // itemTaskIndex
  7544. // ].toolChoose[toolIndex].tool.push(i);
  7545. // } else {
  7546. // if (
  7547. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7548. // itemTaskIndex
  7549. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7550. // ) {
  7551. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7552. // itemTaskIndex
  7553. // ].toolChoose[toolIndex].tool.splice(
  7554. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7555. // itemTaskIndex
  7556. // ].toolChoose[toolIndex].tool.indexOf(i),
  7557. // 1
  7558. // );
  7559. // } else {
  7560. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7561. // itemTaskIndex
  7562. // ].toolChoose[toolIndex].tool.push(i);
  7563. // }
  7564. // console.log(
  7565. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7566. // .toolChoose[toolIndex].tool
  7567. // );
  7568. // }
  7569. if (i == 4) {
  7570. if (
  7571. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7572. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7574. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7575. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7576. .toolChoose[toolIndex].askJson[0].checkList < 2
  7577. ) {
  7578. this.openTools(itemTaskIndex, 4, toolIndex);
  7579. // this.$message({
  7580. // message: "请填写完整问卷内容",
  7581. // type: "error",
  7582. // });
  7583. return;
  7584. }
  7585. }
  7586. if (i == 45) {
  7587. if (
  7588. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7589. .toolChoose[toolIndex].testJson ||
  7590. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7591. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7592. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7593. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7594. ) {
  7595. this.openTools(itemTaskIndex, 45, toolIndex);
  7596. // this.$message({
  7597. // message: "请填写完整问卷内容",
  7598. // type: "error",
  7599. // });
  7600. return;
  7601. }
  7602. }
  7603. if (i == 47) {
  7604. if (
  7605. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7606. .toolChoose[toolIndex].sentenceList ||
  7607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7608. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7609. ) {
  7610. this.openTools(itemTaskIndex, 47, toolIndex);
  7611. return;
  7612. }
  7613. }
  7614. // if (i == 48) {
  7615. // if (
  7616. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7617. // .toolChoose[toolIndex].tableJson
  7618. // ) {
  7619. // this.openTools(itemTaskIndex, 48, toolIndex);
  7620. // return;
  7621. // }
  7622. // }
  7623. // if (i == 50) {
  7624. // if (
  7625. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7626. // .toolChoose[toolIndex].uploadJson
  7627. // ) {
  7628. // this.openTools(itemTaskIndex, 50, toolIndex);
  7629. // return;
  7630. // }
  7631. // }
  7632. if (i == 49) {
  7633. if (
  7634. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7635. .toolChoose[toolIndex].groupJson
  7636. ) {
  7637. this.openTools(itemTaskIndex, 49, toolIndex);
  7638. return;
  7639. }
  7640. }
  7641. if (i == 62) {
  7642. if (
  7643. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7644. .toolChoose[toolIndex].videoJson
  7645. ) {
  7646. this.openTools(itemTaskIndex, 62, toolIndex);
  7647. return;
  7648. }
  7649. }
  7650. if (i == 15) {
  7651. if (
  7652. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7653. .toolChoose[toolIndex].answerQ ||
  7654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7655. .toolChoose[toolIndex].answerQ == ""
  7656. ) {
  7657. this.openTools(itemTaskIndex, 15, toolIndex);
  7658. // this.$message({
  7659. // message: "请填写问答内容",
  7660. // type: "error",
  7661. // });
  7662. return;
  7663. }
  7664. }
  7665. if (i == 40) {
  7666. if (
  7667. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7668. .toolChoose[toolIndex].rateJson ||
  7669. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7670. .toolChoose[toolIndex].rateJson.length
  7671. ) {
  7672. this.openTools(itemTaskIndex, 40, toolIndex);
  7673. return;
  7674. }
  7675. }
  7676. if (i == 41) {
  7677. if (
  7678. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7679. .toolChoose[toolIndex].selectJson ||
  7680. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7681. .toolChoose[toolIndex].selectJson.url == "" ||
  7682. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7683. .toolChoose[toolIndex].selectJson.select.length ||
  7684. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7685. .toolChoose[toolIndex].selectJson.answer.length
  7686. ) {
  7687. this.openTools(itemTaskIndex, 41, toolIndex);
  7688. return;
  7689. }
  7690. }
  7691. if (i == 42) {
  7692. if (
  7693. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7694. .toolChoose[toolIndex].answerQ ||
  7695. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7696. .toolChoose[toolIndex].answerQ == ""
  7697. ) {
  7698. this.openTools(itemTaskIndex, 42, toolIndex);
  7699. return;
  7700. }
  7701. }
  7702. if (
  7703. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7704. .toolChoose[toolIndex].tool.length > 0
  7705. ) {
  7706. if (
  7707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7708. itemTaskIndex
  7709. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7710. ) {
  7711. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7712. itemTaskIndex
  7713. ].toolChoose[toolIndex].tool.splice(
  7714. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7715. itemTaskIndex
  7716. ].toolChoose[toolIndex].tool.indexOf(i),
  7717. 1
  7718. );
  7719. } else {
  7720. // this.$message({
  7721. // message: "每个工具只能添加一个",
  7722. // type: "error",
  7723. // });
  7724. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7725. itemTaskIndex
  7726. ].toolChoose[toolIndex].tool = [];
  7727. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7728. itemTaskIndex
  7729. ].toolChoose[toolIndex].tool.push(i);
  7730. }
  7731. } else {
  7732. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7733. itemTaskIndex
  7734. ].toolChoose[toolIndex].tool.push(i);
  7735. }
  7736. this.$forceUpdate();
  7737. },
  7738. addAskList(index) {
  7739. this.askJson.askJson.splice(index + 1, 0, {
  7740. askstitle: "",
  7741. askItem: 1,
  7742. checkList: [],
  7743. })
  7744. this.askJson.askCount++;
  7745. },
  7746. addTestList(index) {
  7747. this.testJson.testJson.splice(index + 1, 0, {
  7748. teststitle: "",
  7749. testItem: 1,
  7750. checkList: [],
  7751. timuList: [],
  7752. answer: [],
  7753. type: "1",
  7754. })
  7755. this.testJson.testCount++;
  7756. },
  7757. deleteAskList(index) {
  7758. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7759. this.askJson.askJson.splice(index, 1);
  7760. this.askJson.askCount--;
  7761. } else {
  7762. let _this = this;
  7763. _this
  7764. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7765. confirmButtonText: "确定",
  7766. cancelButtonText: "取消",
  7767. type: "warning",
  7768. })
  7769. .then(() => {
  7770. _this.askJson.askJson.splice(index, 1);
  7771. _this.askJson.askCount--;
  7772. })
  7773. .catch(() => {
  7774. return;
  7775. });
  7776. }
  7777. },
  7778. deleteTestList(index) {
  7779. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7780. this.testJson.testJson.splice(index, 1);
  7781. this.testJson.testCount--;
  7782. } else {
  7783. let _this = this;
  7784. _this
  7785. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7786. confirmButtonText: "确定",
  7787. cancelButtonText: "取消",
  7788. type: "warning",
  7789. })
  7790. .then(() => {
  7791. _this.testJson.testJson.splice(index, 1);
  7792. _this.testJson.testCount--;
  7793. })
  7794. .catch(() => {
  7795. return;
  7796. });
  7797. }
  7798. },
  7799. askMove(type, index) {
  7800. if (type == 1) {
  7801. if (index > 0) {
  7802. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  7803. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7804. this.askJson.askJson[index - 1] = b;
  7805. this.askJson.askJson[index] = a;
  7806. }
  7807. } else {
  7808. if (
  7809. index < this.askJson.askJson.length - 1
  7810. ) {
  7811. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  7812. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7813. this.askJson.askJson[index + 1] = b;
  7814. this.askJson.askJson[index] = a;
  7815. }
  7816. }
  7817. this.$forceUpdate();
  7818. },
  7819. checkMove(type, index, checkIndex) {
  7820. if (type == 1) {
  7821. if (checkIndex > 0) {
  7822. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  7823. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7824. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  7825. this.askJson.askJson[index].checkList[checkIndex] = a;
  7826. }
  7827. } else {
  7828. if (
  7829. checkIndex < this.askJson.askJson[index].checkList.length - 1
  7830. ) {
  7831. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  7832. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7833. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  7834. this.askJson.askJson[index].checkList[checkIndex] = a;
  7835. }
  7836. }
  7837. this.$forceUpdate();
  7838. },
  7839. testMove(type, index) {
  7840. if (type == 1) {
  7841. if (index > 0) {
  7842. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  7843. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7844. this.testJson.testJson[index - 1] = b;
  7845. this.testJson.testJson[index] = a;
  7846. }
  7847. } else {
  7848. if (
  7849. index < this.testJson.testJson.length - 1
  7850. ) {
  7851. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  7852. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7853. this.testJson.testJson[index + 1] = b;
  7854. this.testJson.testJson[index] = a;
  7855. }
  7856. }
  7857. this.$forceUpdate();
  7858. },
  7859. tcheckMove(type, index, checkIndex) {
  7860. if (type == 1) {
  7861. if (checkIndex > 0) {
  7862. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  7863. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7864. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  7865. this.testJson.testJson[index].checkList[checkIndex] = a;
  7866. }
  7867. } else {
  7868. if (
  7869. checkIndex < this.testJson.testJson[index].checkList.length - 1
  7870. ) {
  7871. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  7872. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7873. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  7874. this.testJson.testJson[index].checkList[checkIndex] = a;
  7875. }
  7876. }
  7877. this.$forceUpdate();
  7878. },
  7879. addcheckList(json, index) {
  7880. // json.checkList.length++;
  7881. json.checkList.splice(index + 1, 0, '')
  7882. json.askItem++;
  7883. this.$forceUpdate();
  7884. },
  7885. deletecheckList(json, index) {
  7886. // json.checkList.length--;
  7887. json.checkList.splice(index, 1)
  7888. json.askItem--;
  7889. this.$forceUpdate();
  7890. },
  7891. addTcheckList(json, index) {
  7892. // json.checkList.length++;
  7893. json.checkList.splice(index + 1, 0, '')
  7894. json.testItem++;
  7895. this.$forceUpdate();
  7896. },
  7897. deleteTcheckList(json, index) {
  7898. // json.checkList.length--;
  7899. json.checkList.splice(index, 1)
  7900. json.testItem--;
  7901. this.$forceUpdate();
  7902. },
  7903. checkTestType(type, json) {
  7904. json.type = type;
  7905. setTimeout(() => {
  7906. json.answer = [];
  7907. }, 100)
  7908. this.$forceUpdate();
  7909. },
  7910. checkAskType(type, json) {
  7911. json.type = type;
  7912. // json.checkList = [];
  7913. this.$forceUpdate();
  7914. },
  7915. addSelectList(json) {
  7916. json.select.push("");
  7917. json.answer.push("");
  7918. },
  7919. deleteSelectList(json) {
  7920. // json.select.length--;
  7921. // json.answer.length--;
  7922. json.select.splice(json.select.length - 1, 1);
  7923. json.answer.splice(json.answer.length - 1, 1);
  7924. },
  7925. addAsk() {
  7926. if (this.askJson.askTitle === "") {
  7927. this.$message.error("标题不能为空!");
  7928. return;
  7929. }
  7930. var aj = this.askJson.askJson;
  7931. var b = 1;
  7932. for (var i = 0; i < aj.length; i++) {
  7933. if (aj[i].askstitle === "") {
  7934. var a = 1;
  7935. for (let index = 0; index < aj[i].askItem; index++) {
  7936. const element = aj[i].checkList[index]
  7937. ? aj[i].checkList[index]
  7938. : "";
  7939. if (element != "") {
  7940. b++;
  7941. this.$message.error(`请将题目${i + 1}填写完整。`);
  7942. return;
  7943. } else {
  7944. a++;
  7945. }
  7946. }
  7947. if (b == 1) {
  7948. this.$message.error("至少填写一个问题");
  7949. return;
  7950. }
  7951. } else if (aj[i].askstitle != "") {
  7952. for (let index = 0; index < aj[i].askItem; index++) {
  7953. const element = aj[i].checkList[index]
  7954. ? aj[i].checkList[index]
  7955. : "";
  7956. var index = 0;
  7957. for (var z = 0; z < aj[i].checkList.length; z++) {
  7958. let checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7959. if (checkC != "") {
  7960. index++;
  7961. } else {
  7962. this.$message.error(`题目${i + 1}选项不能为空!`);
  7963. return;
  7964. }
  7965. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7966. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7967. if (checkC == checkC2) {
  7968. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7969. return;
  7970. }
  7971. }
  7972. }
  7973. b++;
  7974. if (index < 2) {
  7975. this.$message.error("每道题目至少需要设置2个选项。");
  7976. return;
  7977. }
  7978. }
  7979. }
  7980. }
  7981. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7982. var elc = el.checkList.filter((element) => {
  7983. return element != "";
  7984. });
  7985. return el.askstitle != "" && elc.length != 0;
  7986. });
  7987. if (!this.dialogVisible4) {
  7988. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7989. this.taskCount
  7990. ].toolChoose[this.toolIndex] = this.askJson;
  7991. }
  7992. this.dialogVisible5 = false;
  7993. if (
  7994. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7995. .toolChoose[this.toolIndex].tool != 4
  7996. ) {
  7997. this.addTools(4, this.taskCount, this.toolIndex);
  7998. }
  7999. },
  8000. addTest() {
  8001. // if (this.testJson.testTitle === "") {
  8002. // this.$message.error("标题不能为空!");
  8003. // return;
  8004. // }
  8005. var aj = this.testJson.testJson;
  8006. var b = 1;
  8007. for (var i = 0; i < aj.length; i++) {
  8008. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8009. var a = 1;
  8010. for (let index = 0; index < aj[i].testItem; index++) {
  8011. const element = aj[i].checkList[index]
  8012. ? aj[i].checkList[index]
  8013. : "";
  8014. if (element != "") {
  8015. b++;
  8016. this.$message.error(`请将题目${i + 1}填写完整。`);
  8017. return;
  8018. } else {
  8019. a++;
  8020. }
  8021. }
  8022. if (b == 1) {
  8023. this.$message.error("至少填写一个问题");
  8024. return;
  8025. }
  8026. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8027. for (let index = 0; index < aj[i].testItem; index++) {
  8028. const element = aj[i].checkList[index]
  8029. ? aj[i].checkList[index]
  8030. : "";
  8031. var index = 0;
  8032. for (var z = 0; z < aj[i].checkList.length; z++) {
  8033. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8034. if (checkC != "") {
  8035. index++;
  8036. } else {
  8037. this.$message.error(`题目${i + 1}选项不能为空!`);
  8038. return;
  8039. }
  8040. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8041. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8042. if (checkC == checkC2) {
  8043. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8044. return;
  8045. }
  8046. }
  8047. }
  8048. b++;
  8049. if (index < 2) {
  8050. this.$message.error("每道题目至少需要设置2个选项。");
  8051. return;
  8052. }
  8053. if (
  8054. (aj[i].type == "2" && !aj[i].answer.length) ||
  8055. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8056. ) {
  8057. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8058. return;
  8059. }
  8060. }
  8061. }
  8062. }
  8063. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8064. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8065. var elc = el.checkList.filter((element) => {
  8066. return element != "";
  8067. });
  8068. return (
  8069. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8070. );
  8071. });
  8072. isTestJson.testCount = isTestJson.testJson.length;
  8073. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8074. this.taskCount
  8075. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8076. this.dialogVisibleChoice = false;
  8077. if (
  8078. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8079. .toolChoose[this.toolIndex].tool != 45
  8080. ) {
  8081. this.addTools(45, this.taskCount, this.toolIndex);
  8082. }
  8083. },
  8084. addVideoJson(videoJson) {
  8085. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8086. this.taskCount
  8087. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8088. this.dialogVisibleVideo = false;
  8089. if (
  8090. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8091. .toolChoose[this.toolIndex].tool != 62
  8092. ) {
  8093. this.addTools(62, this.taskCount, this.toolIndex);
  8094. }
  8095. },
  8096. //自动获取剪贴板
  8097. pasteOption() {
  8098. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8099. if (!iframe) {
  8100. this.$message.error("请使用AI共创生成题目");
  8101. return;
  8102. }
  8103. let copyData = iframe.contentWindow.copyData;
  8104. if (!copyData || !copyData.selectData.length) {
  8105. this.$message.error("请使用AI共创生成题目");
  8106. return;
  8107. }
  8108. let selectData = copyData.selectData;
  8109. for (var i = 0; i < selectData.length; i++) {
  8110. let answer = 0;
  8111. switch (selectData[i].answer[0]) {
  8112. case "A":
  8113. answer = 0;
  8114. break;
  8115. case "B":
  8116. answer = 1;
  8117. break;
  8118. case "C":
  8119. answer = 2;
  8120. break;
  8121. case "D":
  8122. answer = 3;
  8123. break;
  8124. case "E":
  8125. answer = 4;
  8126. break;
  8127. default:
  8128. break;
  8129. }
  8130. this.testJson.testJson.push({
  8131. teststitle: selectData[i].subject,
  8132. testItem: selectData[i].options.length,
  8133. checkList: selectData[i].options,
  8134. timuList: [],
  8135. answer: answer,
  8136. type: "1",
  8137. });
  8138. this.testJson.testCount++;
  8139. }
  8140. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8141. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8142. var elc = el.checkList.filter((element) => {
  8143. return element != "";
  8144. });
  8145. return (
  8146. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8147. );
  8148. });
  8149. isTestJson.testCount = isTestJson.testJson.length;
  8150. this.testJson = isTestJson;
  8151. this.$forceUpdate();
  8152. },
  8153. pasteTask() {
  8154. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8155. if (!iframe) {
  8156. this.$message.error("请使用AI共创生成");
  8157. return;
  8158. }
  8159. let copyData = iframe.contentWindow.copyData;
  8160. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  8161. this.$message.error("请使用AI共创生成");
  8162. return;
  8163. }
  8164. let stageTasksData = copyData.tasksData;
  8165. let taskA = [];
  8166. let tasks = stageTasksData;
  8167. for (var j = 0; j < tasks.length; j++) {
  8168. taskA.push({
  8169. task: tasks[j].taskName,
  8170. taskDetail: tasks[j].taskDecs,
  8171. chapterData: [],
  8172. toolText: "",
  8173. toolChoose: [
  8174. {
  8175. tool: [],
  8176. toolDetail: "",
  8177. toolType: 0,
  8178. askCount: 1,
  8179. askTitle: "",
  8180. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8181. },
  8182. ],
  8183. isShowTools: false,
  8184. askCount: 1,
  8185. isFold: 0,
  8186. askTitle: "",
  8187. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8188. checkJson: [{ checkCount: [], checkPerent: [] }],
  8189. homeworkList: [],
  8190. });
  8191. }
  8192. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8193. this.$forceUpdate();
  8194. },
  8195. pasteStage() {
  8196. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8197. if (!iframe) {
  8198. this.$message.error("请使用AI共创生成");
  8199. return;
  8200. }
  8201. let copyData = iframe.contentWindow.copyData;
  8202. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  8203. this.$message.error("请使用AI共创生成");
  8204. return;
  8205. }
  8206. let stageData = copyData.stageData;
  8207. let stage = [];
  8208. for (var i = 0; i < stageData.length; i++) {
  8209. stage.push({
  8210. dyName: stageData[i], //单元标题
  8211. chapterInfo: [
  8212. {
  8213. isread: false,
  8214. chapterid: this.guid(),
  8215. title: "",
  8216. courseName: "",
  8217. taskJson: [
  8218. {
  8219. task: "",
  8220. taskDetail: "",
  8221. chapterData: [],
  8222. toolText: "",
  8223. toolChoose: [
  8224. {
  8225. tool: [],
  8226. toolDetail: "",
  8227. toolType: 0,
  8228. askCount: 1,
  8229. askTitle: "",
  8230. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8231. },
  8232. ],
  8233. isShowTools: false,
  8234. askCount: 1,
  8235. isFold: 0,
  8236. askTitle: "",
  8237. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8238. checkJson: [{ checkCount: [], checkPerent: [] }],
  8239. homeworkList: [],
  8240. },
  8241. ],
  8242. itemCount: 1,
  8243. fileList1: [],
  8244. video: [],
  8245. testData: [],
  8246. pData: [],
  8247. templateArray: [],
  8248. },
  8249. ],
  8250. });
  8251. }
  8252. let _this = this;
  8253. _this
  8254. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  8255. confirmButtonText: "确定",
  8256. cancelButtonText: "取消",
  8257. type: "warning",
  8258. })
  8259. .then(() => {
  8260. _this.unitIndex = 0;
  8261. _this.unitJson = stage;
  8262. _this.steps++;
  8263. _this.updateWork();
  8264. })
  8265. .catch(() => {
  8266. return;
  8267. });
  8268. },
  8269. addAnswer() {
  8270. if (this.answerQ == "") {
  8271. this.$message.error("请输入您想要问的问题");
  8272. return;
  8273. }
  8274. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8275. this.taskCount
  8276. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8277. this.dialogVisible8 = false;
  8278. if (
  8279. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8280. .toolChoose[this.toolIndex].tool != 15
  8281. ) {
  8282. this.addTools(15, this.taskCount, this.toolIndex);
  8283. }
  8284. },
  8285. addMp3Answer() {
  8286. if (this.answerQ == "") {
  8287. this.$message.error("请输入您想要回答的问题");
  8288. return;
  8289. }
  8290. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8291. this.taskCount
  8292. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8293. this.dialogVisibleMp3 = false;
  8294. },
  8295. addRateAnswer() {
  8296. var a = 1;
  8297. for (var i = 0; i < this.rateJson.length; i++) {
  8298. if (this.rateJson[i].value == "") {
  8299. a = 2;
  8300. break;
  8301. }
  8302. }
  8303. if (a == 2) {
  8304. this.$message.error("请把评价信息填写完整");
  8305. return;
  8306. }
  8307. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8308. this.taskCount
  8309. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8310. this.dialogVisibleRate = false;
  8311. if (
  8312. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8313. .toolChoose[this.toolIndex].tool != 40
  8314. ) {
  8315. this.addTools(40, this.taskCount, this.toolIndex);
  8316. }
  8317. },
  8318. addSelectAnswer() {
  8319. if (this.selectJson.url == "") {
  8320. this.$message.error("请上传题目");
  8321. return;
  8322. }
  8323. if (!this.selectJson.select.length) {
  8324. this.$message.error("请添加选项");
  8325. return;
  8326. }
  8327. if (!this.selectJson.answer.length) {
  8328. this.$message.error("请设置答案");
  8329. return;
  8330. }
  8331. var a = 1;
  8332. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8333. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8334. a = 2;
  8335. }
  8336. }
  8337. if (a == 2) {
  8338. this.$message.error("请设置答案");
  8339. return;
  8340. }
  8341. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8342. this.taskCount
  8343. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8344. this.dialogVisibleSelect = false;
  8345. if (
  8346. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8347. .toolChoose[this.toolIndex].tool != 41
  8348. ) {
  8349. this.addTools(41, this.taskCount, this.toolIndex);
  8350. }
  8351. },
  8352. nextSelectSteps() {
  8353. if (this.selectJson.url == "") {
  8354. this.$message.error("请上传题目");
  8355. return;
  8356. }
  8357. if (!this.selectJson.select.length) {
  8358. this.$message.error("请添加选项");
  8359. return;
  8360. } else {
  8361. for (var z = 0; z < this.selectJson.select.length; z++) {
  8362. let checkC = this.selectJson.select[z];
  8363. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8364. let checkC2 = this.selectJson.select[z2];
  8365. if (checkC == checkC2) {
  8366. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8367. return;
  8368. }
  8369. }
  8370. }
  8371. }
  8372. var a = 1;
  8373. for (var i = 0; i < this.selectJson.select.length; i++) {
  8374. if (!this.selectJson.select[i]) {
  8375. a = 2;
  8376. }
  8377. }
  8378. if (a == 2) {
  8379. this.$message.error("添加的选项不能为空");
  8380. return;
  8381. }
  8382. this.selectSteps++;
  8383. },
  8384. selectCourseDetail() {
  8385. if (this.cid == "" || this.cid == undefined) {
  8386. console.log("这是新增课程");
  8387. this.selectAllType();
  8388. } else {
  8389. this.cidType = 1;
  8390. let params = {
  8391. cid: this.cid,
  8392. };
  8393. this.ajax
  8394. .get(this.$store.state.api + "select_course_detail", params)
  8395. .then((res) => {
  8396. this.loading = true;
  8397. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8398. for (var j = 0; j < this.unitJson.length; j++) {
  8399. for (
  8400. var k = 0;
  8401. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8402. k++
  8403. ) {
  8404. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8405. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8406. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8407. : [];
  8408. let _chapterData = [];
  8409. for (
  8410. var c = 0;
  8411. c <
  8412. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8413. .length;
  8414. c++
  8415. ) {
  8416. if (
  8417. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8418. ) {
  8419. _chapterData.push(
  8420. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8421. );
  8422. }
  8423. }
  8424. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8425. _chapterData;
  8426. }
  8427. }
  8428. this.$forceUpdate();
  8429. this.courseName = res.data[0][0].title;
  8430. this.courseText = res.data[0][0].brief;
  8431. this.evalua = res.data[0][0].evaId;
  8432. this.cover = JSON.parse(res.data[0][0].cover);
  8433. this.noneBtnImg = this.cover.length >= 1;
  8434. // this.checkboxList =
  8435. // res.data[0][0].course_student.length > 0
  8436. // ? JSON.parse(res.data[0][0].course_student)
  8437. // : [];
  8438. this.checkboxList2 = res.data[0][0].juri
  8439. ? res.data[0][0].juri.split(",")
  8440. : [];
  8441. this.inviteCode = [];
  8442. for (var i = 0; i < res.data[2].length; i++) {
  8443. this.inviteCode.push({
  8444. cid: res.data[2][i].classid,
  8445. ic: res.data[2][i].code,
  8446. });
  8447. }
  8448. this.checkboxList3 = res.data[0][0].course_teacher
  8449. ? res.data[0][0].course_teacher.split(",")
  8450. : [];
  8451. // this.isTeacherSee =
  8452. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8453. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8454. this.myWord = res.data[0][0].template;
  8455. this.templateC.id = "123";
  8456. this.courseUserid = res.data[0][0].userid;
  8457. // if(this.courseUserid == this.userid){
  8458. // this.InviteChange(this.checkboxList2)
  8459. // }
  8460. this.nbOrder = res.data[0][0].ordernumber;
  8461. this.courseTypeId = [];
  8462. for (var i = 0; i < res.data[1].length; i++) {
  8463. this.courseTypeId.push(res.data[1][i].typeid);
  8464. }
  8465. console.log(this.courseTypeId);
  8466. // if (this.timer) clearInterval(this.timer);
  8467. if (this.timer) clearTimeout(this.timer);
  8468. this.timer = null;
  8469. // this.timer = setInterval(() => {
  8470. // this.seleteCourseUpdate();
  8471. this.setMan();
  8472. this.selectAllType();
  8473. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8474. // }, 5000);
  8475. this.$forceUpdate();
  8476. setTimeout(() => {
  8477. this.checkEva(this.evalua);
  8478. }, 0);
  8479. })
  8480. .catch((err) => {
  8481. console.error(err);
  8482. });
  8483. }
  8484. },
  8485. seleteCourseUpdate() {
  8486. let params = {
  8487. cid: this.cid,
  8488. };
  8489. this.ajax
  8490. .get(this.$store.state.api + "select_course_detail", params)
  8491. .then((res) => {
  8492. // console.log(this.unitJson);
  8493. let unitJson = JSON.parse(res.data[0][0].chapters);
  8494. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8495. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8496. let _unitJson = [];
  8497. let _chapAarry = [];
  8498. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8499. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8500. let index = 1;
  8501. let chapindex;
  8502. if (_unitJson2.length > unitJson.length) {
  8503. for (let c = 0; c < _unitJson2.length; c++) {
  8504. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8505. }
  8506. for (let j = 0; j < unitJson.length; j++) {
  8507. let count = 0;
  8508. for (let k = 0; k < _unitJson2.length; k++) {
  8509. if (
  8510. unitJson[j].chapterInfo[0].chapterid ==
  8511. _unitJson2[k].chapterInfo[0].chapterid
  8512. ) {
  8513. count++;
  8514. _chapAarry.splice(
  8515. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8516. 1
  8517. );
  8518. _unitJson.push(unitJson[j]);
  8519. break;
  8520. }
  8521. }
  8522. // if(count === 0){
  8523. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8524. // }
  8525. }
  8526. for (let k = 0; k < _unitJson2.length; k++) {
  8527. if (_unitJson2[k].isUpdate == 1) {
  8528. _chapAarry.splice(
  8529. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8530. 1
  8531. );
  8532. _unitJson.push(_unitJson2[k]);
  8533. }
  8534. }
  8535. console.log(_chapAarry);
  8536. for (let d = 0; d < _unitJson2.length; d++) {
  8537. if (
  8538. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8539. ) {
  8540. if (_unitIndex == d) {
  8541. index = 2;
  8542. }
  8543. chapindex = d;
  8544. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8545. }
  8546. }
  8547. } else {
  8548. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8549. }
  8550. for (let i = 0; i < unitJson.length; i++) {
  8551. if (
  8552. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8553. _unitJson[i].chapterInfo[0].chapterid !=
  8554. unitJson[i].chapterInfo[0].chapterid
  8555. ) {
  8556. if (i == _unitJson.length - 1) {
  8557. // this.unitIndex++
  8558. _unitIndex2++;
  8559. }
  8560. _unitJson.splice(i, 0, unitJson[i]);
  8561. } else if (i > _unitJson.length - 1) {
  8562. _unitJson.push(unitJson[i]);
  8563. } else if (
  8564. _unitJson[i].chapterInfo[0].chapterid ==
  8565. unitJson[i].chapterInfo[0].chapterid
  8566. ) {
  8567. _unitJson[i] = unitJson[i];
  8568. }
  8569. // if (i == _unitIndex) {
  8570. // continue;
  8571. // } else
  8572. }
  8573. if (_chapAarry.length && index != 2) {
  8574. if (chapindex < _unitIndex) {
  8575. this.isDelete = 2;
  8576. // this.unitIndex--;
  8577. _unitIndex2--;
  8578. } else if (
  8579. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8580. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8581. ) {
  8582. this.isDelete = 2;
  8583. for (let n = 0; n < _unitJson.length; n++) {
  8584. if (
  8585. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8586. _unitJson[n].chapterInfo[0].chapterid
  8587. ) {
  8588. // this.unitIndex = n;
  8589. _unitIndex2 = n;
  8590. _unitJson[n] = _unitJson2[_unitIndex];
  8591. break;
  8592. }
  8593. }
  8594. }
  8595. } else if (index != 2) {
  8596. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8597. _unitJson2[_unitIndex];
  8598. for (
  8599. var ci = 0;
  8600. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8601. ci++
  8602. ) {
  8603. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8604. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8605. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8606. .toolChoose
  8607. : [];
  8608. let _chapterData = [];
  8609. for (
  8610. var c = 0;
  8611. c <
  8612. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8613. .length;
  8614. c++
  8615. ) {
  8616. if (
  8617. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8618. .chapterData[c]
  8619. ) {
  8620. _chapterData.push(
  8621. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8622. .chapterData[c]
  8623. );
  8624. }
  8625. }
  8626. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8627. _chapterData;
  8628. }
  8629. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8630. }
  8631. if (index == 1) {
  8632. this.unitJson = _unitJson;
  8633. this.$forceUpdate();
  8634. setTimeout(() => {
  8635. if (this.unitIndex != _unitIndex2) {
  8636. this.isDelete = 2;
  8637. this.unitIndex = _unitIndex2;
  8638. }
  8639. }, 0);
  8640. this.timer = setTimeout(() => {
  8641. this.seleteCourseUpdate();
  8642. }, 1000);
  8643. } else if (index == 2) {
  8644. let _this = this;
  8645. _this
  8646. .$confirm(
  8647. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8648. "提示",
  8649. {
  8650. confirmButtonText: "需要",
  8651. cancelButtonText: "取消",
  8652. type: "warning",
  8653. }
  8654. )
  8655. .then(() => {
  8656. if (_this.time()) {
  8657. _this.restoreWork(
  8658. _chapAarry[0],
  8659. _unitJson,
  8660. chapindex,
  8661. _unitJson2,
  8662. _unitIndex2
  8663. );
  8664. }
  8665. })
  8666. .catch(() => {
  8667. _this.unitJson = _unitJson;
  8668. _this.$forceUpdate();
  8669. setTimeout(() => {
  8670. if (this.unitIndex != _unitIndex2) {
  8671. this.isDelete = 2;
  8672. this.unitIndex = _unitIndex2;
  8673. }
  8674. }, 0);
  8675. _this.timer = setTimeout(() => {
  8676. _this.seleteCourseUpdate();
  8677. }, 1000);
  8678. });
  8679. }
  8680. })
  8681. .catch((err) => {
  8682. console.error(err);
  8683. });
  8684. },
  8685. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8686. let params = [
  8687. {
  8688. cid: this.cid,
  8689. chapters: JSON.stringify(this.unitJson),
  8690. uid: this.userid,
  8691. chapid: chapid,
  8692. },
  8693. ];
  8694. this.ajax
  8695. .post(this.$store.state.api + "restoreWork", params)
  8696. .then((res) => {
  8697. this.$message({
  8698. message: "恢复成功",
  8699. type: "success",
  8700. });
  8701. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8702. this.unitJson = unitJson;
  8703. this.$forceUpdate();
  8704. setTimeout(() => {
  8705. if (this.unitIndex != unitIndex2) {
  8706. this.isDelete = 2;
  8707. this.unitIndex = unitIndex2;
  8708. }
  8709. }, 0);
  8710. this.timer = setTimeout(() => {
  8711. this.seleteCourseUpdate();
  8712. }, 1000);
  8713. })
  8714. .catch((err) => {
  8715. this.$message.error("网络不佳");
  8716. console.error(err);
  8717. });
  8718. },
  8719. getTypeName() {
  8720. console.log(this.courseTypeId);
  8721. this.$forceUpdate();
  8722. },
  8723. selectAllType() {
  8724. let params = {
  8725. org: this.org && this.org != "" ? this.org : "",
  8726. oid: this.oid && this.oid != "" ? this.oid : "",
  8727. };
  8728. this.ajax
  8729. .get(this.$store.state.api + "selectAllType", params)
  8730. .then((res) => {
  8731. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8732. res.data[0] = [...res.data[0], ...res.data[4]]
  8733. }
  8734. this.CourseType = res.data;
  8735. this.CourseType2 = [
  8736. { name: "智见课程", id: [] },
  8737. { name: "智行课程", id: [] },
  8738. { name: "智创课程", id: [] },
  8739. ];
  8740. for (var cti = 0; cti < res.data[0].length; cti++) {
  8741. if (
  8742. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  8743. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  8744. ) {
  8745. this.CourseType2[0].id.push(res.data[0][cti].id);
  8746. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  8747. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8748. this.CourseType2[1].id.push(res.data[0][cti].id);
  8749. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8750. this.CourseType2[2].id.push(res.data[0][cti].id);
  8751. }
  8752. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  8753. res.data[0][cti].name = "年级";
  8754. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8755. res.data[0][cti].name = "学科";
  8756. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8757. res.data[0][cti].name = "主题";
  8758. }
  8759. }
  8760. let _courseTypeId = [];
  8761. for (var i = 0; i < res.data[0].length; i++) {
  8762. if (!this.cid) {
  8763. this.courseTypeId[res.data[0][i].id] = [];
  8764. }
  8765. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8766. // }
  8767. this.CourseTypeJson[res.data[0][i].id] = [];
  8768. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8769. if (res.data[0][i].name == "栏目") {
  8770. this.CourseType[0][i].name = "主题";
  8771. }
  8772. }
  8773. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8774. for (var j = 0; j < res.data[1].length; j++) {
  8775. if (
  8776. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8777. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8778. ) {
  8779. _courseTypeId.push(res.data[1][j].id);
  8780. }
  8781. if (res.data[0][i].id == res.data[1][j].pid) {
  8782. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8783. }
  8784. }
  8785. } else {
  8786. if (res.data[2].length > 0) {
  8787. for (var j = 0; j < res.data[2].length; j++) {
  8788. if (
  8789. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8790. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8791. ) {
  8792. _courseTypeId.push(res.data[2][j].id);
  8793. }
  8794. if (res.data[0][i].id == res.data[2][j].pid) {
  8795. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8796. }
  8797. }
  8798. }
  8799. if (res.data[3].length > 0) {
  8800. for (var j = 0; j < res.data[3].length; j++) {
  8801. if (
  8802. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8803. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8804. ) {
  8805. _courseTypeId.push(res.data[3][j].id);
  8806. }
  8807. if (res.data[0][i].id == res.data[3][j].pid) {
  8808. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8809. }
  8810. }
  8811. }
  8812. }
  8813. }
  8814. this.courseTypeId = _courseTypeId;
  8815. })
  8816. .catch((err) => {
  8817. console.error(err);
  8818. });
  8819. },
  8820. selectType() {
  8821. this.ajax
  8822. .get(this.$store.state.api + "selectType")
  8823. .then((res) => {
  8824. this.CourseType = res.data;
  8825. for (var i = 0; i < res.data[0].length; i++) {
  8826. if (!this.cid) {
  8827. this.courseTypeId[res.data[0][i].id] = "";
  8828. }
  8829. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8830. if (res.data[0][i].name == "栏目") {
  8831. this.CourseType[0][i].name = "主题";
  8832. }
  8833. }
  8834. for (var j = 0; j < res.data[1].length; j++) {
  8835. if (res.data[0][i].id == res.data[1][j].pid) {
  8836. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8837. this.CourseTypeJson[res.data[0][i].id] = [];
  8838. }
  8839. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8840. }
  8841. }
  8842. }
  8843. this.selectTypeByOid();
  8844. this.selectTypeByOrg();
  8845. })
  8846. .catch((err) => {
  8847. console.error(err);
  8848. });
  8849. },
  8850. selectTypeByOid() {
  8851. let params = {
  8852. oid: this.oid,
  8853. };
  8854. this.ajax
  8855. .get(this.$store.state.api + "selectTypeByOid", params)
  8856. .then((res) => {
  8857. for (var i = 0; i < res.data[0].length; i++) {
  8858. for (var j = 0; j < res.data[1].length; j++) {
  8859. if (res.data[0][i].id == res.data[1][j].pid) {
  8860. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8861. this.CourseTypeJson[res.data[0][i].id] = [];
  8862. }
  8863. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8864. }
  8865. }
  8866. }
  8867. })
  8868. .catch((err) => {
  8869. console.error(err);
  8870. });
  8871. },
  8872. selectTypeByOrg() {
  8873. let params = {
  8874. oid: this.org,
  8875. };
  8876. this.ajax
  8877. .get(this.$store.state.api + "selectTypeByOrg", params)
  8878. .then((res) => {
  8879. for (var i = 0; i < res.data[0].length; i++) {
  8880. for (var j = 0; j < res.data[1].length; j++) {
  8881. if (res.data[0][i].id == res.data[1][j].pid) {
  8882. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8883. this.CourseTypeJson[res.data[0][i].id] = [];
  8884. }
  8885. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8886. }
  8887. }
  8888. }
  8889. this.$forceUpdate();
  8890. })
  8891. .catch((err) => {
  8892. console.error(err);
  8893. });
  8894. },
  8895. OtherMb(type) {
  8896. this.typeMode = type;
  8897. setTimeout(() => {
  8898. this.checkEva(this.checkId);
  8899. }, 0);
  8900. },
  8901. openMember() {
  8902. this.searchTN = "";
  8903. this.getTeacher();
  8904. this.dialogVisibleMember = true;
  8905. },
  8906. checkEva(id, type) {
  8907. this.dialogVisiblemb = false;
  8908. this.selectEva();
  8909. if (this.evalua != id && type == 2) {
  8910. this.$message.success("导入成功");
  8911. }
  8912. this.evalua = id;
  8913. this.checkId = id;
  8914. if (this.evalua != "") {
  8915. for (var i = 0; i < this.evaJuri.length; i++) {
  8916. if (this.evalua == this.evaJuri[i].id) {
  8917. this.eTitle = this.evaJuri[i].title;
  8918. this.eJson = JSON.parse(this.evaJuri[i].content);
  8919. }
  8920. }
  8921. this.data.data = [];
  8922. this.$forceUpdate();
  8923. setTimeout(() => {
  8924. this.setMindData();
  8925. }, 500);
  8926. }
  8927. },
  8928. deleteEva() {
  8929. let _this = this;
  8930. if (_this.evalua == "") {
  8931. this.$message.warning("内容已经清空了,请勿重复清空");
  8932. return;
  8933. }
  8934. _this
  8935. .$confirm("确定删除此目标吗?", "提示", {
  8936. confirmButtonText: "确定",
  8937. cancelButtonText: "取消",
  8938. type: "warning",
  8939. })
  8940. .then(() => {
  8941. _this.evalua = "";
  8942. _this.checkId = "";
  8943. _this.eTitle = "";
  8944. let _unitJson = _this.unitJson;
  8945. for (var i = 0; i < _unitJson.length; i++) {
  8946. let _task = _unitJson[i].chapterInfo[0].taskJson;
  8947. for (var j = 0; j < _task.length; j++) {
  8948. let _eList = _task[j].eList;
  8949. for (var k = 0; k < _eList.length; k++) {
  8950. delete _eList[k].target;
  8951. }
  8952. }
  8953. }
  8954. _this.$forceUpdate();
  8955. if (_this.cid) {
  8956. _this.updateWork();
  8957. }
  8958. })
  8959. .catch(() => {
  8960. return;
  8961. });
  8962. },
  8963. selectEva() {
  8964. let params = {
  8965. oid: this.oid,
  8966. };
  8967. this.ajax
  8968. .get(this.$store.state.api + "selectAllEvaluation", params)
  8969. .then((res) => {
  8970. this.evaJuri = res.data[0];
  8971. })
  8972. .catch((err) => {
  8973. console.error(err);
  8974. });
  8975. },
  8976. setMindData() {
  8977. let targetArray = [];
  8978. this.data.data = [];
  8979. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8980. let _eJson = Object.keys(this.eJson);
  8981. let _e = this.eJson;
  8982. for (let i = 0; i < _eJson.length; i++) {
  8983. let element = _e[_eJson[i]];
  8984. this.data.data.push({
  8985. id: element.id,
  8986. parentid: "root",
  8987. topic: element.name,
  8988. });
  8989. // targetArray.push({
  8990. // id: element.id,
  8991. // parentid: "root",
  8992. // name: element.name,
  8993. // });
  8994. targetArray.push({
  8995. value: element.name,
  8996. label: element.name,
  8997. children: [],
  8998. });
  8999. let _eJsonc = Object.keys(element.child);
  9000. let _e2 = element.child;
  9001. for (let j = 0; j < _eJsonc.length; j++) {
  9002. let _ec = _e2[_eJsonc[j]];
  9003. this.data.data.push({
  9004. id: _ec.id,
  9005. parentid: element.id,
  9006. topic: _ec.name,
  9007. });
  9008. // targetArray.push({
  9009. // id: _ec.id,
  9010. // parentid: element.id,
  9011. // name: _ec.name,
  9012. // });
  9013. targetArray[i].children.push({
  9014. value: _ec.name,
  9015. label: _ec.name,
  9016. children: [],
  9017. });
  9018. let _eJsonz = Object.keys(_ec.child);
  9019. let _e3 = _ec.child;
  9020. for (let z = 0; z < _eJsonz.length; z++) {
  9021. let _ez = _e3[_eJsonz[z]];
  9022. this.data.data.push({
  9023. id: _ez.id,
  9024. parentid: _ec.id,
  9025. topic: _ez.name,
  9026. });
  9027. // targetArray.push({
  9028. // id: _ez.id,
  9029. // parentid: _ec.id,
  9030. // name: _ez.name,
  9031. // });
  9032. targetArray[i].children[j].children.push({
  9033. value: _ez.name,
  9034. label: _ez.name,
  9035. });
  9036. }
  9037. }
  9038. }
  9039. this.targetArray = targetArray;
  9040. this.$forceUpdate();
  9041. },
  9042. /*添加评价 */
  9043. addEList(index, tIndex) {
  9044. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9045. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9046. value: "",
  9047. detail: "",
  9048. score: 5,
  9049. })
  9050. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9051. { value: "", detail: "", score: 5 },
  9052. ]);
  9053. this.$forceUpdate();
  9054. },
  9055. forceUpdate() {
  9056. this.$forceUpdate();
  9057. },
  9058. deletEList(index, tIndex, eIndex) {
  9059. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9060. eIndex,
  9061. 1
  9062. );
  9063. this.$forceUpdate();
  9064. },
  9065. getChoosePic(t) {
  9066. this.chooseType = t;
  9067. this.getAllBanner();
  9068. },
  9069. getAllBanner() {
  9070. this.sysPicVisible = true;
  9071. let params = {
  9072. t: this.chooseType,
  9073. };
  9074. this.ajax
  9075. .get(this.$store.state.api + "selectAllBanner", params)
  9076. .then((res) => {
  9077. this.sysPic = res.data[0];
  9078. })
  9079. .catch((err) => {
  9080. console.error(err);
  9081. });
  9082. },
  9083. // getClass() {
  9084. // let params = {
  9085. // oid: this.oid,
  9086. // };
  9087. // this.ajax
  9088. // .get(this.$store.state.api + "selectClassBySchool", params)
  9089. // .then((res) => {
  9090. // this.classJuri = res.data[0];
  9091. // })
  9092. // .catch((err) => {
  9093. // console.error(err);
  9094. // });
  9095. // },
  9096. deleteSysPic() {
  9097. this.cover = [];
  9098. this.isSysPic = false;
  9099. this.isSysPic2 = false;
  9100. },
  9101. deleteSelectPic() {
  9102. this.selectJson.url = "";
  9103. },
  9104. setEListStar() {
  9105. this.$forceUpdate();
  9106. },
  9107. deletRateList(i) {
  9108. this.rateJson.splice(i, 1);
  9109. },
  9110. addRateList() {
  9111. this.rateJson.push({ detail: "", score: 5, value: "" });
  9112. },
  9113. addSt() {
  9114. this.sentenceList.push({
  9115. sentenceTitle: "",
  9116. addSentence: [],
  9117. rightAnswer: [],
  9118. });
  9119. },
  9120. addSen(i) {
  9121. if (!this.sentenceList[i].sentenceTitle) {
  9122. this.$message.error("请填写卡片内容!");
  9123. return;
  9124. }
  9125. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9126. this.$message.error("卡片内容字数不能超过10位");
  9127. return;
  9128. }
  9129. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9130. this.$message.error("不能添加重复的卡片内容!");
  9131. return;
  9132. }
  9133. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9134. // this.isPushTitleList.push(this.sentenceTitle);
  9135. this.sentenceList[i].sentenceTitle = "";
  9136. },
  9137. setRightAnswer(s, i, j) {
  9138. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9139. this.sentenceList[i].rightAnswer.push(s);
  9140. }
  9141. },
  9142. returnCard(r, i, j) {
  9143. this.sentenceList[i].rightAnswer.splice(j, 1);
  9144. },
  9145. addSentenceTool() {
  9146. for (var i = 0; i < this.sentenceList.length; i++) {
  9147. if (this.sentenceList[i].rightAnswer.length == 0) {
  9148. this.$message.error(`请将题目${i + 1}设置完整。`);
  9149. return;
  9150. }
  9151. if (
  9152. this.sentenceList[i].addSentence.length !=
  9153. this.sentenceList[i].rightAnswer.length
  9154. ) {
  9155. this.$message.error(`请将题目${i + 1}设置完整。`);
  9156. return;
  9157. }
  9158. }
  9159. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9160. this.taskCount
  9161. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9162. this.sentenceList = [
  9163. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9164. ];
  9165. this.dialogVisibleSentence = false;
  9166. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9167. // itemTaskIndex
  9168. // ].toolChoose[toolIndex].tool = [];
  9169. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9170. // itemTaskIndex
  9171. // ].toolChoose[toolIndex].tool.push(i);
  9172. if (
  9173. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9174. .toolChoose[this.toolIndex].tool != 47
  9175. ) {
  9176. this.addTools(47, this.taskCount, this.toolIndex);
  9177. }
  9178. },
  9179. addTableJson() {
  9180. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9181. // this.$message.error("请将信息填写完整!");
  9182. // return;
  9183. // }
  9184. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9185. this.taskCount
  9186. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9187. // this.tableJson = [{ text: "" }];
  9188. // this.dialogVisibleTable = false;
  9189. this.$message.success("上传成功");
  9190. if (
  9191. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9192. .toolChoose[this.toolIndex].tool != 48
  9193. ) {
  9194. this.addTools(48, this.taskCount, this.toolIndex);
  9195. }
  9196. },
  9197. addWordJson() {
  9198. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9199. this.taskCount
  9200. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9201. // this.wordJson = [{ text: "" }];
  9202. // this.dialogVisibleWord = false;
  9203. this.$message.success("上传成功");
  9204. if (
  9205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9206. .toolChoose[this.toolIndex].tool != 52
  9207. ) {
  9208. this.addTools(52, this.taskCount, this.toolIndex);
  9209. }
  9210. },
  9211. addMoreUpload() {
  9212. if (this.uploadJson.length == 0) {
  9213. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9214. this.taskCount
  9215. ].toolChoose[this.toolIndex].uploadJson = [];
  9216. } else {
  9217. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9218. this.taskCount
  9219. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9220. }
  9221. this.uploadJson = [];
  9222. this.dialogVisibleMoreUpload = false;
  9223. if (
  9224. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9225. .toolChoose[this.toolIndex].tool != 50
  9226. ) {
  9227. this.addTools(50, this.taskCount, this.toolIndex);
  9228. }
  9229. },
  9230. addPreTime() {
  9231. if (this.preTime == 0) {
  9232. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9233. this.taskCount
  9234. ].toolChoose[this.toolIndex].preTime = 0;
  9235. } else {
  9236. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9237. this.taskCount
  9238. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9239. }
  9240. this.preTime = 0;
  9241. this.dialogVisiblePreTime = false;
  9242. if (
  9243. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9244. .toolChoose[this.toolIndex].tool != 10
  9245. ) {
  9246. this.addTools(10, this.taskCount, this.toolIndex);
  9247. }
  9248. },
  9249. goToTask(i) {
  9250. this.toolIndexType = ''
  9251. if (this.isClickColor == (i + 1)) {
  9252. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9253. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9254. } else {
  9255. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9256. }
  9257. this.$forceUpdate();
  9258. return;
  9259. }
  9260. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9261. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9262. } else {
  9263. document.querySelectorAll(".rightBox")[0].scrollTop =
  9264. document.querySelectorAll(".taskBorder")[i + 1].offsetTop +
  9265. document.querySelectorAll(".taskBorder")[i + 1].parentElement.parentElement.offsetTop;
  9266. this.isClickColor = i + 1;
  9267. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9268. }
  9269. this.$forceUpdate();
  9270. },
  9271. taskMove(type, index) {
  9272. // this
  9273. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  9274. // confirmButtonText: "确定",
  9275. // cancelButtonText: "取消",
  9276. // type: "warning",
  9277. // })
  9278. // .then(() => {
  9279. if (type == 1) {
  9280. if (index > 0) {
  9281. let a = JSON.parse(
  9282. JSON.stringify(
  9283. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  9284. )
  9285. );
  9286. let b = JSON.parse(
  9287. JSON.stringify(
  9288. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  9289. )
  9290. );
  9291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9292. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9293. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9294. if (index - 1 == 0) {
  9295. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9296. index - 1
  9297. ].chapterData = a.chapterData;
  9298. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9299. index
  9300. ].chapterData = b.chapterData;
  9301. }
  9302. }
  9303. } else {
  9304. if (
  9305. index <
  9306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9307. ) {
  9308. let a = JSON.parse(
  9309. JSON.stringify(
  9310. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  9311. )
  9312. );
  9313. let b = JSON.parse(
  9314. JSON.stringify(
  9315. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  9316. )
  9317. );
  9318. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9319. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9320. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9321. if (index == 0) {
  9322. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9323. index + 1
  9324. ].chapterData = a.chapterData;
  9325. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9326. index
  9327. ].chapterData = b.chapterData;
  9328. }
  9329. }
  9330. }
  9331. this.$forceUpdate();
  9332. // })
  9333. // .catch(() => {
  9334. // return;
  9335. // })
  9336. },
  9337. addGroup(i) {
  9338. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9339. this.groupJson.group.push({
  9340. name: "第" + (this.groupJson.group.length + 1) + "组",
  9341. });
  9342. },
  9343. deleteGroup(i) {
  9344. this.groupJson.group.splice(i, 1);
  9345. },
  9346. numberPan() {
  9347. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9348. this.$message.error('请输入2-10的数字')
  9349. this.groupJson.number = ''
  9350. }
  9351. },
  9352. addGroupJson() {
  9353. for (var i = 0; i < this.groupJson.group.length; i++) {
  9354. if (!this.groupJson.group[i].name) {
  9355. this.$message.error("请将信息填写完整!");
  9356. return;
  9357. }
  9358. }
  9359. if (!this.groupJson.number) {
  9360. this.$message.error("请将信息填写完整!");
  9361. return;
  9362. }
  9363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9364. this.taskCount
  9365. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9366. JSON.stringify(this.groupJson)
  9367. );
  9368. this.dialogVisibleGroup = false;
  9369. this.groupJson = {};
  9370. if (
  9371. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9372. .toolChoose[this.toolIndex].tool != 49
  9373. ) {
  9374. this.addTools(49, this.taskCount, this.toolIndex);
  9375. }
  9376. },
  9377. updateTime(preTime) {
  9378. this.preTime = preTime;
  9379. },
  9380. InviteChange(val) {
  9381. console.log(val);
  9382. let _check = []
  9383. let _check2 = []
  9384. for (var i = 0; i < this.grade2.length; i++) {
  9385. var gid = this.grade2[i].id
  9386. _check.push(gid)
  9387. }
  9388. for (var i = 0; i < this.checkboxList2.length; i++) {
  9389. var _id = this.checkboxList2[i]
  9390. if (_check.indexOf(_id) !== -1) {
  9391. _check2.push(_id)
  9392. }
  9393. }
  9394. this.checkAll = _check2.length === _check.length;
  9395. return;
  9396. let array = JSON.parse(JSON.stringify(val));
  9397. this.inviteCode = this.inviteCode.filter((el) => {
  9398. if (val.indexOf(el.cid) != -1) {
  9399. array.splice(array.indexOf(el.cid), 1);
  9400. return el;
  9401. }
  9402. });
  9403. for (var i = 0; i < array.length; i++) {
  9404. this.getInviteCode(array[i]);
  9405. }
  9406. },
  9407. handleCheckAllChange(val) {
  9408. if (val) {
  9409. for (var i = 0; i < this.grade2.length; i++) {
  9410. var gid = this.grade2[i].id
  9411. if (this.checkboxList2.indexOf(gid) === -1) {
  9412. this.checkboxList2.push(gid)
  9413. }
  9414. }
  9415. } else {
  9416. let _check = []
  9417. let _check2 = []
  9418. for (var i = 0; i < this.grade2.length; i++) {
  9419. var gid = this.grade2[i].id
  9420. _check.push(gid)
  9421. }
  9422. for (var i = 0; i < this.checkboxList2.length; i++) {
  9423. var _id = this.checkboxList2[i]
  9424. if (_check.indexOf(_id) === -1) {
  9425. _check2.push(_id)
  9426. }
  9427. }
  9428. this.checkboxList2 = _check2
  9429. }
  9430. this.isIndeterminate = false;
  9431. },
  9432. async getInviteCode(cid) {
  9433. let code = this.randomNumber();
  9434. let params = {
  9435. code: code,
  9436. oid: this.oid,
  9437. };
  9438. let type = 1;
  9439. for (var i = 0; i < this.inviteCode.length; i++) {
  9440. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9441. type = 2;
  9442. }
  9443. }
  9444. if (type == 2) {
  9445. this.getInviteCode(cid);
  9446. return;
  9447. }
  9448. const res = await this.ajax.get(
  9449. this.$store.state.api + "selectInviteCode2",
  9450. params
  9451. );
  9452. if (
  9453. res.data.length &&
  9454. res.data[0].length &&
  9455. res.data[0][0].courseId != this.cid
  9456. ) {
  9457. this.getInviteCode(cid);
  9458. return;
  9459. }
  9460. let array = [];
  9461. for (var i = 0; i < this.inviteCode.length; i++) {
  9462. array.push(this.inviteCode[i].cid);
  9463. }
  9464. if (array.indexOf(cid) != -1) {
  9465. this.inviteCode[array.indexOf(cid)].ic = code;
  9466. } else {
  9467. this.inviteCode.push({ cid: cid, ic: code });
  9468. }
  9469. },
  9470. OpenInviteD(cid) {
  9471. let array = [];
  9472. this.icode = "";
  9473. for (var i = 0; i < this.inviteCode.length; i++) {
  9474. array.push(this.inviteCode[i].cid);
  9475. }
  9476. if (array.indexOf(cid) != -1) {
  9477. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9478. }
  9479. this.inviteId = cid;
  9480. this.dialogVisibleInvite = true;
  9481. },
  9482. addInvite() {
  9483. let reg = /^[A-Za-z0-9]{4,}$/;
  9484. if (!reg.test(this.icode)) {
  9485. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9486. return;
  9487. }
  9488. let type = 1;
  9489. for (var i = 0; i < this.inviteCode.length; i++) {
  9490. if (
  9491. this.inviteCode[i].cid != this.inviteId &&
  9492. this.icode == this.inviteCode[i].ic
  9493. ) {
  9494. type = 2;
  9495. }
  9496. }
  9497. if (type == 2) {
  9498. this.$message.error("已有此随机码,不能重复");
  9499. return;
  9500. }
  9501. let params = {
  9502. code: this.icode,
  9503. oid: this.oid,
  9504. };
  9505. this.ajax
  9506. .get(this.$store.state.api + "selectInviteCode", params)
  9507. .then((res) => {
  9508. if (
  9509. res.data.length &&
  9510. res.data[0].length &&
  9511. res.data[0][0].courseId != this.cid
  9512. ) {
  9513. this.$message.error("已有此随机码,不能重复");
  9514. return;
  9515. }
  9516. let array = [];
  9517. for (var i = 0; i < this.inviteCode.length; i++) {
  9518. array.push(this.inviteCode[i].cid);
  9519. }
  9520. if (array.indexOf(this.inviteId) != -1) {
  9521. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9522. } else {
  9523. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9524. }
  9525. this.icode = "";
  9526. this.dialogVisibleInvite = false;
  9527. })
  9528. .catch((err) => {
  9529. console.error(err);
  9530. });
  9531. },
  9532. randomNumber() {
  9533. // 随机生成两位数
  9534. // let num = Math.floor(Math.random() * 900) + 100;
  9535. // 生成 0 到 99 之间的随机整数
  9536. const randomNumber = Math.floor(Math.random() * 100);
  9537. // 如果随机数小于 10,补上前导零
  9538. const num =
  9539. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9540. // 随机生成两个大写字母
  9541. let letters = "";
  9542. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9543. for (let i = 0; i < 3; i++) {
  9544. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9545. }
  9546. // 随机生成两位数字和字母的组合
  9547. let mix = "";
  9548. let chars =
  9549. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9550. for (let i = 0; i < 3; i++) {
  9551. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9552. mix += char;
  9553. }
  9554. // 随机选择一种类型
  9555. let type = Math.floor(Math.random() * 3);
  9556. return num;
  9557. // 根据类型输出结果
  9558. switch (type) {
  9559. case 0:
  9560. console.log(num); // 输出两位数
  9561. return num;
  9562. case 1:
  9563. console.log(letters); // 输出两个大写字母
  9564. return letters;
  9565. case 2:
  9566. console.log(mix); // 输出两位数字和字母的组合
  9567. return mix;
  9568. }
  9569. },
  9570. getPaste() {
  9571. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9572. if (!iframe) {
  9573. return;
  9574. }
  9575. let copyData = iframe.contentWindow.copyData;
  9576. // if (copyData && copyData.stageData && copyData.stageData.length) {
  9577. // this.isPasteStage = true
  9578. // }
  9579. if (copyData && copyData.selectData.length) {
  9580. this.isPasteChoice = true
  9581. }
  9582. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9583. this.isPasteTask = true
  9584. }
  9585. },
  9586. searchImage() {
  9587. var _this = this;
  9588. _this.imageList = []
  9589. if (!_this.searchImageValue) {
  9590. _this.sysPicVisible2 = true
  9591. return
  9592. }
  9593. _this.imageloading = true
  9594. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9595. page: _this.ppage,
  9596. pagesize: 9,
  9597. query: _this.searchImageValue
  9598. }).then(function (response) {
  9599. // console.log(response.data.data);
  9600. var data = response.data.FunctionResponse.result;
  9601. for (var i = 0; i < data.length; i++) {
  9602. _this.imageList.push({ url: data[i].thumbnail })
  9603. }
  9604. _this.imageloading = false
  9605. }).catch(function (error) {
  9606. console.log(error);
  9607. });
  9608. _this.sysPicVisible2 = true
  9609. },
  9610. changePicture() {
  9611. this.ppage++
  9612. this.searchImage()
  9613. },
  9614. resetImage() {
  9615. this.ppage = 1
  9616. this.searchImage()
  9617. },
  9618. jumpGj(i, j) {
  9619. if ((i + 1) != this.isClickColor) {
  9620. this.isClickColor = (i + 1)
  9621. }
  9622. var a = document.scrollingElement;
  9623. this.toolIndexType = `gj${i}${j}`
  9624. let target = document.querySelector(`#gj${i}${j}`);
  9625. if (target) {
  9626. target.scrollIntoView(true);
  9627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  9628. // setTimeout(() => {
  9629. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  9630. // }, 0);
  9631. }
  9632. },
  9633. dragStart(val, i, j) {
  9634. this.taskCount = j
  9635. this.oldIndex = i;
  9636. this.oldData = val;
  9637. },
  9638. dragOver(i) {
  9639. this.newIndex = i;
  9640. },
  9641. dragEnd() {
  9642. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9643. // 删除老的节点
  9644. newItems.splice(this.oldIndex, 1);
  9645. // 在列表中目标位置增加新的节点
  9646. newItems.splice(this.newIndex, 0, this.oldData);
  9647. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9648. this.newIndex = "";
  9649. this.$forceUpdate()
  9650. },
  9651. dragTaskStart(val, i) {
  9652. this.oldIndex = i;
  9653. this.oldData = val;
  9654. },
  9655. dragTaskOver(i) {
  9656. this.newIndex = i;
  9657. },
  9658. dragTaskEnd() {
  9659. if (this.newIndex == this.oldIndex) {
  9660. return;
  9661. }
  9662. this.$confirm(
  9663. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9664. "提示",
  9665. {
  9666. confirmButtonText: "确定",
  9667. cancelButtonText: "取消",
  9668. type: "warning",
  9669. }
  9670. )
  9671. .then(() => {
  9672. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9673. let chapterData = []
  9674. if (this.oldIndex == 0) {
  9675. chapterData = newItems[this.oldIndex].chapterData
  9676. newItems[this.oldIndex].chapterData = []
  9677. }
  9678. // 删除老的节点
  9679. newItems.splice(this.oldIndex, 1);
  9680. // 在列表中目标位置增加新的节点
  9681. newItems.splice(this.newIndex, 0, this.oldData);
  9682. if (this.oldIndex == 0) {
  9683. newItems[0].chapterData = chapterData
  9684. }
  9685. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  9686. this.newIndex = "";
  9687. this.$forceUpdate()
  9688. })
  9689. .catch(() => {
  9690. this.newIndex = "";
  9691. return;
  9692. });
  9693. },
  9694. },
  9695. beforeDestroy() {
  9696. clearTimeout(this.timer);
  9697. this.timer = null;
  9698. clearInterval(this.timer2);
  9699. this.timer2 = null;
  9700. clearInterval(this.pasteTimer);
  9701. this.pasteTimer = null;
  9702. },
  9703. beforeRouteLeave(to, from, next) {
  9704. clearTimeout(this.timer);
  9705. this.timer = null;
  9706. clearInterval(this.timer2);
  9707. this.timer2 = null;
  9708. clearInterval(this.pasteTimer);
  9709. this.pasteTimer = null;
  9710. next();
  9711. },
  9712. created() {
  9713. this.getStudent();
  9714. this.getTeacher();
  9715. this.getClass();
  9716. this.selectGrage();
  9717. this.getTemplate();
  9718. // this.selectType();
  9719. this.selectEva();
  9720. this.loading = false;
  9721. this.timer2 = setInterval(() => {
  9722. this.selectEva();
  9723. }, 5000);
  9724. this.pasteTimer = setInterval(() => {
  9725. this.getPaste();
  9726. }, 1000);
  9727. setTimeout(() => {
  9728. this.selectCourseDetail();
  9729. }, 500);
  9730. },
  9731. mounted() {
  9732. this.$nextTick(() => {
  9733. //监听这个dom的scroll事件
  9734. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  9735. this.heightPx = $(".rightBox")[0].offsetHeight + 'px'
  9736. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  9737. this.$forceUpdate();
  9738. });
  9739. },
  9740. };
  9741. </script>
  9742. <style scoped>
  9743. @media screen and (max-width: 1280px) {
  9744. .mbCss {
  9745. flex-direction: column !important;
  9746. }
  9747. .pjCss {
  9748. width: 100% !important;
  9749. }
  9750. .evaCss {
  9751. width: 100% !important;
  9752. }
  9753. }
  9754. .dialog_diy>>>.el-dialog__header {
  9755. background: #3c3c3c !important;
  9756. padding: 15px 20px;
  9757. }
  9758. .dialog_diy>>>.el-dialog__title {
  9759. color: #fff;
  9760. }
  9761. .dialog_diy>>>.el-dialog__headerbtn {
  9762. top: 19px;
  9763. }
  9764. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  9765. color: #fff;
  9766. }
  9767. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  9768. color: #fff;
  9769. }
  9770. .dialog_diy>>>.el-dialog__body,
  9771. .dialog_diy>>>.el-dialog__footer {
  9772. background: #fafafa;
  9773. }
  9774. .dialog_diy3>>>.el-dialog__body,
  9775. .dialog_diy3>>>.el-dialog__footer {
  9776. background: #eee !important;
  9777. }
  9778. .dialog_diy3>>>.el-dialog__body {
  9779. padding: 20px 20px;
  9780. }
  9781. .source_diy>>>.el-dialog {
  9782. height: 100% !important;
  9783. margin: 0 auto !important;
  9784. }
  9785. .source_diy>>>.el-dialog__body {
  9786. height: calc(100% - 185px);
  9787. overflow: auto;
  9788. background: #e6eaf0;
  9789. }
  9790. .source_diy>>>.el-dialog__footer {
  9791. background: #e6eaf0 !important;
  9792. }
  9793. .left {
  9794. border-right: 1px solid rgb(60, 94, 143);
  9795. display: flex;
  9796. flex-direction: column;
  9797. align-items: center;
  9798. min-height: 600px;
  9799. width: 385px;
  9800. height: 80%;
  9801. }
  9802. .tips {
  9803. color: rgb(128, 128, 128);
  9804. font-size: 12px;
  9805. width: 270px;
  9806. margin: 40px;
  9807. }
  9808. .pb_content {
  9809. height: 100% !important;
  9810. /* margin: 0 20px 0 20px; */
  9811. }
  9812. .pb_content_body {
  9813. width: 100% !important;
  9814. height: 100%;
  9815. }
  9816. .info_solid {
  9817. width: 270px;
  9818. height: 30px;
  9819. border-left: 1px solid #bdbdbd;
  9820. margin: 10px 0px 10px 30px;
  9821. }
  9822. .info_steps {
  9823. width: 270px;
  9824. font-size: 0.875rem;
  9825. display: flex;
  9826. align-items: center;
  9827. }
  9828. .info_steps span:nth-child(1) {
  9829. width: 30px;
  9830. height: 30px;
  9831. background: rgba(0, 0, 0, 0.38);
  9832. display: block;
  9833. color: #fff;
  9834. border-radius: 40px;
  9835. text-align: center;
  9836. line-height: 30px;
  9837. }
  9838. .steps_active {
  9839. background: #3d67bc !important;
  9840. }
  9841. .info_steps span:nth-child(2) {
  9842. margin-left: 5px;
  9843. }
  9844. .right {
  9845. height: 100%;
  9846. width: calc(100% - 40px);
  9847. display: flex;
  9848. overflow: hidden;
  9849. margin: 0 auto;
  9850. }
  9851. .basic_box {
  9852. margin: 0 auto;
  9853. position: relative;
  9854. padding: 0 20px 0 20px;
  9855. }
  9856. .basic_box2 {
  9857. position: relative;
  9858. width: calc(100% - 300px);
  9859. }
  9860. .basic_box_success {
  9861. width: 100%;
  9862. height: 100%;
  9863. padding: 50px 0;
  9864. position: relative;
  9865. text-align: center;
  9866. /* border-bottom: 1px solid #bfbfbf; */
  9867. box-sizing: border-box;
  9868. display: flex;
  9869. align-items: center;
  9870. flex-direction: column;
  9871. justify-content: center;
  9872. }
  9873. .info_title {
  9874. font-size: 1.5em;
  9875. margin-right: 25px;
  9876. /* margin: 20px 30px 20px 30px; */
  9877. }
  9878. .bInfo_title {
  9879. text-align: left;
  9880. margin: 10px 0;
  9881. }
  9882. .small_title {
  9883. font-size: 14px;
  9884. line-height: 40px;
  9885. }
  9886. .chapter_beizhu {
  9887. font-size: 12px;
  9888. font-weight: bold;
  9889. float: right;
  9890. color: rgb(128, 128, 128);
  9891. margin-top: 5px;
  9892. }
  9893. .chapter_uploadBox1 {
  9894. text-align: left;
  9895. background-color: rgb(242, 242, 242);
  9896. width: 100%;
  9897. height: 67px;
  9898. padding: 0px 15px;
  9899. border-radius: 8px;
  9900. overflow: hidden;
  9901. font-size: 16px;
  9902. box-sizing: border-box;
  9903. position: relative;
  9904. }
  9905. .chapter_add {
  9906. width: 100%;
  9907. height: 32px;
  9908. margin-top: 15px;
  9909. cursor: pointer;
  9910. }
  9911. .chapter_add_l {
  9912. margin-left: 5px;
  9913. width: 30px;
  9914. height: 30px;
  9915. float: left;
  9916. border: 1px solid #aaa;
  9917. color: #aaa;
  9918. border-radius: 50%;
  9919. font-size: 25px;
  9920. text-align: center;
  9921. }
  9922. .chapter_add_r {
  9923. font-size: 18px;
  9924. height: 40px;
  9925. line-height: 30px;
  9926. text-indent: 10px;
  9927. color: #aaa;
  9928. }
  9929. .chapter_add_r span {
  9930. font-size: 12px;
  9931. color: rgb(204, 204, 204);
  9932. }
  9933. .chapter_add_input {
  9934. display: none;
  9935. }
  9936. .line {
  9937. width: 85%;
  9938. margin: 0 auto;
  9939. border-top: 1px solid #e5e5e5;
  9940. margin-top: 20px;
  9941. }
  9942. .info_btnBox {
  9943. width: calc(100%);
  9944. display: flex;
  9945. justify-content: center;
  9946. height: 70px;
  9947. align-items: center;
  9948. background: #fff;
  9949. margin: 0 auto;
  9950. border-top: 2px solid rgb(228, 232, 237);
  9951. box-sizing: border-box;
  9952. border-radius: 0px 0 5px 5px;
  9953. }
  9954. .info_btnBox2 {
  9955. width: calc(100%);
  9956. display: flex;
  9957. justify-content: center;
  9958. height: 20px;
  9959. align-items: center;
  9960. background: #fff;
  9961. margin: 0 auto;
  9962. border-top: 2px solid rgb(228, 232, 237);
  9963. box-sizing: border-box;
  9964. overflow: hidden;
  9965. cursor: pointer;
  9966. }
  9967. .info_btnBox3 {
  9968. width: calc(100%);
  9969. display: flex;
  9970. justify-content: flex-end;
  9971. padding: 0 20px;
  9972. height: 60px;
  9973. align-items: center;
  9974. background: unset;
  9975. margin: 0 auto;
  9976. /* border-top: 1px solid rgb(228, 232, 237); */
  9977. box-sizing: border-box;
  9978. overflow: hidden;
  9979. cursor: pointer;
  9980. background: #fff;
  9981. border-radius: 10px;
  9982. }
  9983. .info_btn+.info_btn {
  9984. margin-left: 15px;
  9985. }
  9986. .info_btn,
  9987. .teacherWord {
  9988. color: #fff;
  9989. background-color: #0f7eff;
  9990. padding: 8px 24px;
  9991. font-size: 0.9375rem;
  9992. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9993. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9994. min-width: 64px;
  9995. font-weight: 500;
  9996. border-radius: 4px;
  9997. box-sizing: border-box;
  9998. border: none;
  9999. cursor: pointer;
  10000. }
  10001. .teacherWord {
  10002. width: 105px !important;
  10003. text-align: center !important;
  10004. line-height: 36px !important;
  10005. padding: 0 !important;
  10006. font-size: 14px !important;
  10007. margin: 10px 0 !important;
  10008. }
  10009. .wordTeacher {
  10010. display: flex;
  10011. flex-direction: column;
  10012. width: 20%;
  10013. text-align: center;
  10014. font-size: 14px;
  10015. margin: 30px 30px 0 10px;
  10016. background: #fff;
  10017. position: relative;
  10018. border-radius: 5px;
  10019. padding: 25px 0px;
  10020. }
  10021. .wordPic {
  10022. margin: 0 auto;
  10023. width: 60px;
  10024. height: 60px;
  10025. cursor: pointer;
  10026. }
  10027. .deleteWord {
  10028. width: 22px;
  10029. height: 22px;
  10030. position: absolute;
  10031. right: 5px;
  10032. top: -15px;
  10033. cursor: pointer;
  10034. display: none;
  10035. z-index: 999;
  10036. }
  10037. .wordPic>img,
  10038. .deleteWord>img,
  10039. .addToolImg>img {
  10040. width: 100%;
  10041. height: 100%;
  10042. }
  10043. .info_btn:hover {
  10044. background-color: #4f7cd5 !important;
  10045. }
  10046. .cru_selectBox {
  10047. display: flex;
  10048. margin: 24px 0 10px;
  10049. flex-wrap: nowrap;
  10050. white-space: nowrap;
  10051. overflow: auto;
  10052. position: relative;
  10053. height: 47px;
  10054. }
  10055. .cru_selectBox::-webkit-scrollbar {
  10056. /*滚动条整体样式*/
  10057. width: 6px;
  10058. /*高宽分别对应横竖滚动条的尺寸*/
  10059. height: 6px;
  10060. }
  10061. /*定义滚动条轨道 内阴影+圆角*/
  10062. .cru_selectBox::-webkit-scrollbar-track {
  10063. border-radius: 10px;
  10064. background-color: #eee;
  10065. }
  10066. /*定义滑块 内阴影+圆角*/
  10067. .cru_selectBox::-webkit-scrollbar-thumb {
  10068. border-radius: 10px;
  10069. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10070. background-color: rgba(0, 0, 0, 0.1);
  10071. }
  10072. .cru_line {
  10073. position: absolute;
  10074. bottom: 0px;
  10075. transition: all 0.5s;
  10076. left: 0px;
  10077. width: 125px;
  10078. margin-left: -25px;
  10079. }
  10080. .cru_select {
  10081. font-size: 21px;
  10082. margin-right: 37px;
  10083. margin-left: 5px;
  10084. cursor: pointer;
  10085. color: #a6a6a6;
  10086. }
  10087. .cru_selected {
  10088. color: #0b7fc2 !important;
  10089. }
  10090. .chapter_contentbox {
  10091. display: flex;
  10092. align-items: center;
  10093. margin-top: 15px;
  10094. }
  10095. .chapter_contentbox .cc_title {
  10096. margin: 0px;
  10097. color: black;
  10098. display: block;
  10099. white-space: nowrap;
  10100. overflow: hidden;
  10101. text-overflow: ellipsis;
  10102. margin-right: 20px;
  10103. font-size: 18px;
  10104. height: 20px;
  10105. line-height: 22px;
  10106. min-width: fit-content;
  10107. display: flex;
  10108. }
  10109. .chapter_contentbox .cc_title::before {
  10110. content: '';
  10111. height: 100%;
  10112. width: 3px;
  10113. background: #3681FC;
  10114. border-radius: 3px;
  10115. opacity: 1;
  10116. display: block;
  10117. margin-right: 10px;
  10118. }
  10119. .chapter_contentbox .cc_input {
  10120. width: 100%;
  10121. display: flex;
  10122. }
  10123. .show_taskD {
  10124. min-width: fit-content;
  10125. margin-left: 10px;
  10126. display: flex;
  10127. align-items: center;
  10128. font-size: 14px;
  10129. cursor: pointer;
  10130. color: #717C8D;
  10131. }
  10132. .show_taskD>img {
  10133. width: 15px;
  10134. margin-right: 5px;
  10135. transition: .2s all;
  10136. transform: rotate(-90deg);
  10137. }
  10138. .show_taskD.show>img {
  10139. transform: rotate(0deg);
  10140. }
  10141. .show_toolD {
  10142. min-width: fit-content;
  10143. margin-left: 10px;
  10144. display: flex;
  10145. align-items: center;
  10146. font-size: 14px;
  10147. cursor: pointer;
  10148. color: #717C8D;
  10149. position: absolute;
  10150. right: 45px;
  10151. top: 5px;
  10152. }
  10153. .show_toolD>img {
  10154. width: 15px;
  10155. margin-right: 5px;
  10156. transition: .2s all;
  10157. transform: rotate(-90deg);
  10158. }
  10159. .show_toolD.show>img {
  10160. transform: rotate(0deg);
  10161. }
  10162. .remove {
  10163. background-image: url("../../../assets/icon/new/delete_u.png");
  10164. cursor: pointer;
  10165. opacity: 0.5;
  10166. width: 30px;
  10167. min-width: 30px;
  10168. height: 30px;
  10169. background-size: 100% 100%;
  10170. background-repeat: no-repeat;
  10171. margin-left: 10px;
  10172. }
  10173. .remove1 {
  10174. background-image: url("../../../assets/remove1.png");
  10175. background-repeat: no-repeat;
  10176. background-position: 5px 10px;
  10177. width: 40px;
  10178. height: 50px;
  10179. cursor: pointer;
  10180. margin-left: 10px;
  10181. }
  10182. .binfo_input {
  10183. width: 100%;
  10184. margin: 0;
  10185. padding: 12px 14px;
  10186. display: block;
  10187. min-width: 0;
  10188. outline: none;
  10189. box-sizing: border-box;
  10190. background: none;
  10191. border: none;
  10192. border-radius: 4px;
  10193. background: #fff;
  10194. font-size: 16px;
  10195. resize: none;
  10196. font-family: 'Microsoft YaHei';
  10197. min-height: 48px;
  10198. border: 1.5px solid #CAD1DC;
  10199. }
  10200. .binfo_textarea {
  10201. border: 1.5px solid #CAD1DC;
  10202. font-size: 16px;
  10203. resize: none;
  10204. background: #f6f6f6;
  10205. font-family: 'Microsoft YaHei';
  10206. }
  10207. .binfo_input:focus-visible {
  10208. border: 1.5px solid #3681FC !important;
  10209. }
  10210. .time {
  10211. display: flex;
  10212. margin: 35px 0 80px 0;
  10213. }
  10214. .chapter_btnbox {
  10215. width: 160px;
  10216. border-radius: 5px;
  10217. border: 2px dashed gray;
  10218. display: flex;
  10219. padding: 8px 50px;
  10220. align-items: center;
  10221. justify-content: center;
  10222. margin: 30px auto 0;
  10223. cursor: pointer;
  10224. }
  10225. .icon_add {
  10226. position: relative;
  10227. width: 24px;
  10228. padding-top: 20px;
  10229. border-radius: 100%;
  10230. border-width: 2px;
  10231. border-style: solid;
  10232. border-color: gray;
  10233. }
  10234. .icon_add i:nth-child(1) {
  10235. position: absolute;
  10236. left: 50%;
  10237. top: 50%;
  10238. height: 60%;
  10239. transform: translate(-50%, -50%);
  10240. border-width: 1px;
  10241. border-style: solid;
  10242. border-color: inherit;
  10243. }
  10244. .icon_add i:nth-child(2) {
  10245. position: absolute;
  10246. top: 50%;
  10247. left: 50%;
  10248. width: 60%;
  10249. transform: translate(-50%, -50%);
  10250. border-width: 1px;
  10251. border-style: solid;
  10252. border-color: inherit;
  10253. }
  10254. .chapter_btn_w {
  10255. font-size: 0.9375rem;
  10256. font-weight: bold;
  10257. color: gray;
  10258. margin-left: 20px;
  10259. }
  10260. .disUoloadSty>>>.el-icon-plus {
  10261. display: none !important;
  10262. /* 上传按钮隐藏 */
  10263. }
  10264. .imgLeft {
  10265. margin: 15px 0;
  10266. }
  10267. .add_info_box {
  10268. margin: 0 0 0 auto;
  10269. display: flex;
  10270. flex-wrap: wrap;
  10271. }
  10272. .add_info_box button {
  10273. margin: 0 5px 10px 0;
  10274. }
  10275. .add_info_box2 {
  10276. display: flex;
  10277. align-items: center;
  10278. flex-wrap: wrap;
  10279. }
  10280. .add_info_box2::after {
  10281. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10282. color: red;
  10283. font-size: 14px;
  10284. margin-bottom: 10px;
  10285. }
  10286. .add_chapters_box {
  10287. text-align: left;
  10288. background-color: #fff;
  10289. width: 100%;
  10290. border-radius: 4px;
  10291. font-size: 16px;
  10292. box-sizing: border-box;
  10293. position: relative;
  10294. padding: 0 15px;
  10295. height: auto;
  10296. overflow-y: auto;
  10297. overflow-x: hidden;
  10298. border: 1px solid #CAD1DC;
  10299. }
  10300. .add_chapters_box.add_c_none {
  10301. display: flex;
  10302. justify-content: center;
  10303. align-items: center;
  10304. padding: 15px;
  10305. }
  10306. .add_c_none>img {
  10307. width: 25px;
  10308. }
  10309. .add_chapters_box.add_c_none>span {
  10310. font-size: 14px;
  10311. font-weight: 400;
  10312. margin: 0 0 5px 5px;
  10313. }
  10314. .homework_box {
  10315. display: flex;
  10316. align-items: flex-start;
  10317. flex-wrap: wrap;
  10318. margin: 15px 0 0 0;
  10319. flex-direction: column;
  10320. align-content: flex-start;
  10321. }
  10322. .course_homework {
  10323. display: flex;
  10324. justify-content: center;
  10325. flex-direction: row;
  10326. align-items: center;
  10327. margin: 0 10px 0 0;
  10328. }
  10329. .course_homework>>>.el-input__inner {
  10330. width: 140px;
  10331. margin-left: 15px;
  10332. }
  10333. .chapter_upload_move {
  10334. position: relative;
  10335. background-color: #fff;
  10336. position: absolute;
  10337. width: 100%;
  10338. top: 0px;
  10339. left: 0px;
  10340. border: 1px solid #eee;
  10341. border-radius: 5px;
  10342. transition: width 2s;
  10343. -moz-transition: width 2s;
  10344. -webkit-transition: width 2s;
  10345. -o-transition: width 2s;
  10346. }
  10347. .chapter_upload_l_i {
  10348. background-image: url("../../../assets/icon.png");
  10349. background-position: 3px -165px;
  10350. width: 30px;
  10351. height: 30px;
  10352. margin: 10px auto 0 auto;
  10353. }
  10354. .course_input_box {
  10355. display: flex;
  10356. margin-right: 20px;
  10357. width: 100%;
  10358. align-items: center;
  10359. position: relative;
  10360. }
  10361. .course_input_box>.binfo_input {
  10362. width: calc(100% - 0 - 200px - 20px);
  10363. margin: 0 10px;
  10364. }
  10365. .bb_courseIcon {
  10366. width: 57px;
  10367. height: 45px;
  10368. background: #F0F4FA;
  10369. border-radius: 5px 0px 0px 5px;
  10370. display: flex;
  10371. align-items: center;
  10372. justify-content: center;
  10373. border-right: 1.5px solid rgb(202, 209, 220);
  10374. box-sizing: border-box;
  10375. position: absolute;
  10376. left: 1.5px
  10377. }
  10378. .bb_courseIcon>img {
  10379. width: 25px;
  10380. height: auto
  10381. }
  10382. .big_box {
  10383. /* margin-top: 20px; */
  10384. display: flex;
  10385. justify-content: space-between;
  10386. /* border-bottom: 1px solid #E0E2ED; */
  10387. }
  10388. .left_first {
  10389. display: flex;
  10390. flex-direction: column;
  10391. flex-wrap: nowrap;
  10392. width: calc(100% - 310px);
  10393. padding: 20px;
  10394. box-sizing: border-box;
  10395. background: #fff;
  10396. border-radius: 5px;
  10397. }
  10398. .right_first {
  10399. width: 300px;
  10400. display: flex;
  10401. align-items: center;
  10402. justify-content: center;
  10403. /* border-left: 1px solid #E0E2ED; */
  10404. box-sizing: border-box;
  10405. padding: 20px;
  10406. flex-direction: column;
  10407. background: #fff;
  10408. border-radius: 5px;
  10409. }
  10410. .ai_box {
  10411. width: 204px;
  10412. display: flex;
  10413. justify-content: flex-end;
  10414. margin-bottom: 15px;
  10415. }
  10416. .ai_content {
  10417. display: flex;
  10418. align-items: center;
  10419. font-size: 14px;
  10420. padding: 7px 20px;
  10421. box-sizing: border-box;
  10422. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10423. border-radius: 12px;
  10424. font-weight: 700;
  10425. cursor: pointer;
  10426. }
  10427. .ai_content>img {
  10428. width: 40px;
  10429. margin-right: 5px;
  10430. }
  10431. .c_info_title {
  10432. padding: 15px 0 15px 0;
  10433. font-size: 16px;
  10434. font-weight: bold;
  10435. margin: 0 0 0 20px;
  10436. box-sizing: border-box;
  10437. display: flex;
  10438. align-items: center;
  10439. line-height: 20px;
  10440. }
  10441. .c_info_title::before {
  10442. content: '';
  10443. display: block;
  10444. width: 3px;
  10445. height: 20px;
  10446. background: #0061FF;
  10447. border-radius: 3px;
  10448. margin: 0 5px 0 0;
  10449. }
  10450. .right_title {
  10451. /* height: 30px; */
  10452. padding: 0 20px;
  10453. font-size: 18px;
  10454. font-weight: bold;
  10455. /* color: #0f7eff; */
  10456. margin: 20px auto 0;
  10457. display: flex;
  10458. /* justify-content: space-between; */
  10459. align-items: center;
  10460. }
  10461. .people {
  10462. border: 1px solid rgb(229 229 229);
  10463. height: 495px;
  10464. border-radius: 5px;
  10465. width: 100%;
  10466. overflow: auto;
  10467. }
  10468. .people_top {
  10469. display: flex;
  10470. width: 100%;
  10471. /* justify-content: space-between; */
  10472. /* align-items: center; */
  10473. flex-direction: column;
  10474. padding: 10px 10px 0;
  10475. box-sizing: border-box;
  10476. }
  10477. .people_nav,
  10478. .people_top_right {
  10479. /* padding: 20px 0 0 20px; */
  10480. }
  10481. .people_top_right {
  10482. height: 40px;
  10483. margin-bottom: 10px;
  10484. }
  10485. .people_search {
  10486. display: flex;
  10487. position: relative;
  10488. }
  10489. .people_search>>>.el-input__inner {
  10490. /* height: 25px; */
  10491. width: 95%;
  10492. }
  10493. .search_img {
  10494. width: 20px;
  10495. height: 20px;
  10496. position: absolute;
  10497. right: 30px;
  10498. top: 50%;
  10499. transform: translateY(-50%);
  10500. }
  10501. .search_img>img {
  10502. width: 100%;
  10503. height: 100%;
  10504. }
  10505. .people_name {
  10506. display: flex;
  10507. justify-content: flex-start;
  10508. padding: 20px 10px;
  10509. flex-direction: column;
  10510. flex-wrap: wrap;
  10511. }
  10512. .p_box {
  10513. position: relative;
  10514. }
  10515. .people_name>>>.el-checkbox {
  10516. width: 100%;
  10517. display: flex;
  10518. align-items: center;
  10519. margin-bottom: 10px;
  10520. }
  10521. .people_name>>>.el-checkbox__label {
  10522. text-overflow: ellipsis;
  10523. overflow: hidden;
  10524. width: calc(100%);
  10525. }
  10526. .people_name2>>>.el-checkbox__label {
  10527. width: calc(100% - 130px);
  10528. }
  10529. .inviteCode {
  10530. position: absolute;
  10531. right: 30px;
  10532. color: #237ade;
  10533. top: 0;
  10534. cursor: pointer;
  10535. font-size: 13px;
  10536. }
  10537. .noneInvite {
  10538. color: #a8a8a8;
  10539. }
  10540. .inviteImg {
  10541. position: absolute;
  10542. right: 5px;
  10543. top: 0;
  10544. width: 20px;
  10545. }
  10546. .right_img {
  10547. width: 150px;
  10548. height: 150px;
  10549. margin: 20px auto;
  10550. }
  10551. .right_img>img {
  10552. width: 100%;
  10553. height: 100%;
  10554. }
  10555. .number {
  10556. margin-top: 20px;
  10557. color: #4aa6ff;
  10558. text-decoration: underline;
  10559. }
  10560. .success_button {
  10561. display: flex;
  10562. text-align: center;
  10563. margin: 5% 0 auto;
  10564. flex-direction: row;
  10565. justify-content: center;
  10566. }
  10567. .look_course {
  10568. margin-right: 40px;
  10569. background: #3d67bc;
  10570. width: 200px;
  10571. height: 35px;
  10572. line-height: 35px;
  10573. color: #fff;
  10574. text-align: center;
  10575. font-size: 14px;
  10576. border-radius: 5px;
  10577. cursor: pointer;
  10578. }
  10579. .attend_others {
  10580. width: 250px;
  10581. background: #4fb13c;
  10582. height: 35px;
  10583. line-height: 35px;
  10584. color: #fff;
  10585. text-align: center;
  10586. font-size: 14px;
  10587. border-radius: 5px;
  10588. cursor: pointer;
  10589. }
  10590. .dialog_diy2>>>.el-dialog__body {
  10591. text-align: center;
  10592. }
  10593. .write_togother {
  10594. position: absolute;
  10595. right: 45px;
  10596. display: flex;
  10597. top: 5%;
  10598. }
  10599. .write_people {
  10600. font-size: 14px;
  10601. line-height: 50px;
  10602. padding-right: 10px;
  10603. }
  10604. .end_write {
  10605. background: #3d67bc;
  10606. color: #fff;
  10607. width: 100px;
  10608. height: 35px;
  10609. line-height: 35px;
  10610. text-align: center;
  10611. font-size: 14px;
  10612. border-radius: 5px;
  10613. cursor: pointer;
  10614. }
  10615. .chapter_upload+.chapter_upload {
  10616. /* margin-top: 15px; */
  10617. border-top: 1px solid #E7EBF1;
  10618. }
  10619. .chapter_upload {
  10620. height: 45px;
  10621. position: relative;
  10622. display: flex;
  10623. align-items: center;
  10624. width: 100%;
  10625. min-height: 45px;
  10626. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  10627. /* border-radius: 4px; */
  10628. /* overflow: hidden; */
  10629. box-sizing: border-box;
  10630. }
  10631. .chapter_upload_drag {
  10632. position: absolute;
  10633. cursor: pointer;
  10634. width: 16px;
  10635. height: 16px;
  10636. left: -9px;
  10637. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  10638. background-size: 100% 100%;
  10639. z-index: 10;
  10640. }
  10641. .chapter_upload_t {
  10642. background-color: #fff;
  10643. position: absolute;
  10644. height: 100%;
  10645. top: 0px;
  10646. left: 0px;
  10647. box-sizing: border-box;
  10648. }
  10649. .chapter_upload_o {
  10650. width: 100%;
  10651. height: 100%;
  10652. position: relative;
  10653. z-index: 1;
  10654. }
  10655. .chapter_upload_ic {
  10656. margin: 0 15px 0px auto;
  10657. display: flex;
  10658. align-items: center;
  10659. }
  10660. .chapter_upload_ic_l {
  10661. width: 50px;
  10662. height: 50px;
  10663. float: left;
  10664. }
  10665. .chapter_upload_ic_l div {
  10666. width: 30px;
  10667. height: 35px;
  10668. background: url("../../../assets/icon/icon.png");
  10669. }
  10670. .chapter_upload_ic_edit {
  10671. height: 100%;
  10672. display: flex;
  10673. align-items: center;
  10674. cursor: pointer;
  10675. margin: 0 10px 0 0;
  10676. }
  10677. .chapter_upload_ic_edit div {
  10678. width: 18px;
  10679. height: 18px;
  10680. background-image: url("../../../assets/icon/new/edit_u.png");
  10681. background-size: 100% 100%;
  10682. }
  10683. .chapter_upload_ic_r {
  10684. height: 100%;
  10685. display: flex;
  10686. align-items: center;
  10687. cursor: pointer;
  10688. }
  10689. .chapter_upload_ic_r div {
  10690. width: 18px;
  10691. height: 18px;
  10692. background-image: url("../../../assets/icon/new/delete_u.png");
  10693. background-size: 100% 100%;
  10694. }
  10695. .chapter_upload_n {
  10696. display: flex;
  10697. text-indent: 10px;
  10698. text-decoration: none;
  10699. text-overflow: ellipsis;
  10700. white-space: nowrap;
  10701. overflow: hidden;
  10702. width: 55%;
  10703. margin-left: 10px;
  10704. cursor: pointer;
  10705. margin-top: 2px;
  10706. align-items: center;
  10707. }
  10708. .chapter_upload_l_i2,
  10709. .chapter_upload_l_i3,
  10710. .chapter_upload_l_i8,
  10711. .chapter_upload_l_i6,
  10712. .chapter_upload_l_i12,
  10713. .chapter_upload_l_i14,
  10714. .chapter_upload_l_i13 {
  10715. width: 15px;
  10716. height: 15px;
  10717. background-size: 100% 100%;
  10718. }
  10719. .chapter_upload_l_i2 {
  10720. background-image: url("../../../assets/icon/new/u_word.png");
  10721. }
  10722. .chapter_upload_l_i3 {
  10723. background-image: url("../../../assets/icon/new/u_video.png");
  10724. }
  10725. .chapter_upload_l_i8 {
  10726. background-image: url("../../../assets/icon/new/u_url.png");
  10727. }
  10728. .chapter_upload_l_i14 {
  10729. background-image: url("../../../assets/icon/new/u_source.png");
  10730. }
  10731. .chapter_upload_l_i6 {
  10732. background-image: url("../../../assets/icon/new/u_picture.png");
  10733. }
  10734. .chapter_upload_l_i12 {
  10735. background-image: url("../../../assets/icon/new/u_word.png");
  10736. }
  10737. .chapter_upload_l_i13 {
  10738. background-image: url("../../../assets/icon/new/u_img.png");
  10739. }
  10740. .chapter_upload_noSee {
  10741. background-image: url("../../../assets/icon/new/u_noUpload.png");
  10742. width: 18px;
  10743. height: 18px;
  10744. background-size: 100% 100%;
  10745. display: block;
  10746. margin-right: 10px;
  10747. }
  10748. .chapter_upload_ud {
  10749. display: flex;
  10750. flex-direction: row;
  10751. justify-content: center;
  10752. margin: 0 10px 0 0;
  10753. }
  10754. .chapter_upload_ud>.chapter_upload_up {
  10755. margin-bottom: 0;
  10756. margin-right: 10px;
  10757. }
  10758. .chapter_upload_down,
  10759. .chapter_upload_up {
  10760. width: 20px;
  10761. height: 20px;
  10762. background: #e4eaf2;
  10763. cursor: pointer;
  10764. margin: 0 auto;
  10765. border-radius: 5px;
  10766. display: flex;
  10767. justify-content: center;
  10768. align-items: center;
  10769. }
  10770. .chapter_upload_up::after,
  10771. .chapter_upload_down::after {
  10772. content: '';
  10773. background-image: url('../../../assets/icon/new/downBtn.png');
  10774. width: 13px;
  10775. height: 13px;
  10776. background-size: 100% 100%;
  10777. display: block;
  10778. }
  10779. .chapter_upload_up::after {
  10780. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  10781. }
  10782. .chapter_upload_up {
  10783. margin-bottom: 5px;
  10784. }
  10785. .addWordStyle {
  10786. display: flex;
  10787. flex-direction: row;
  10788. justify-content: flex-start;
  10789. overflow-x: auto;
  10790. white-space: nowrap;
  10791. flex-wrap: wrap;
  10792. }
  10793. /* table 样式 */
  10794. .cont>>>table {
  10795. border-top: 1px solid #ccc;
  10796. border-left: 1px solid #ccc;
  10797. }
  10798. .cont>>>table td,
  10799. .cont>>>table th {
  10800. border-bottom: 1px solid #ccc;
  10801. border-right: 1px solid #ccc;
  10802. /* padding: 20px 5px; */
  10803. padding: 5px 10px;
  10804. max-width: 0px;
  10805. height: 30px;
  10806. vertical-align: baseline;
  10807. }
  10808. .cont>>>table th {
  10809. border-bottom: 2px solid #ccc;
  10810. text-align: center;
  10811. }
  10812. /* blockquote 样式 */
  10813. .cont>>>blockquote {
  10814. display: block;
  10815. border-left: 8px solid #d0e5f2;
  10816. padding: 5px 10px;
  10817. margin: 10px 0;
  10818. line-height: 1.4;
  10819. font-size: 100%;
  10820. background-color: #f1f1f1;
  10821. }
  10822. /* code 样式 */
  10823. .cont>>>code {
  10824. display: inline-block;
  10825. /* *display: inline; */
  10826. zoom: 1;
  10827. background-color: #f1f1f1;
  10828. border-radius: 3px;
  10829. padding: 3px 5px;
  10830. margin: 0 3px;
  10831. }
  10832. .cont>>>pre code {
  10833. display: block;
  10834. }
  10835. /* ul ol 样式 */
  10836. .cont>>>ul,
  10837. ol {
  10838. margin: 10px 0 10px 20px;
  10839. }
  10840. .wordbox {
  10841. display: flex;
  10842. flex-wrap: wrap;
  10843. cursor: pointer;
  10844. width: 100%;
  10845. }
  10846. .checkword {
  10847. width: 22px;
  10848. height: 22px;
  10849. margin: 10px auto 0;
  10850. cursor: pointer;
  10851. }
  10852. .checkword img {
  10853. width: 100%;
  10854. }
  10855. .stepBg {
  10856. display: flex;
  10857. flex-direction: column;
  10858. justify-content: space-between;
  10859. align-items: center;
  10860. background: #fff;
  10861. width: 300px;
  10862. margin: 0 25px 0 0;
  10863. }
  10864. .stepTop {
  10865. min-width: 300px;
  10866. width: 300px;
  10867. /* border-radius: 10px; */
  10868. display: flex;
  10869. flex-direction: column;
  10870. justify-content: flex-start;
  10871. align-items: center;
  10872. flex-wrap: nowrap;
  10873. background: #fff;
  10874. /* top: 18%; */
  10875. }
  10876. .stepTop>div {
  10877. height: 80px;
  10878. width: 85%;
  10879. cursor: pointer;
  10880. margin: 10px 0;
  10881. border-radius: 10px;
  10882. }
  10883. .first,
  10884. .second,
  10885. .third,
  10886. .four {
  10887. background: #4a83d0;
  10888. height: 90px;
  10889. color: #fff;
  10890. display: flex;
  10891. flex-direction: row;
  10892. align-items: center;
  10893. justify-content: center;
  10894. }
  10895. .first>div:nth-child(1),
  10896. .second>div:nth-child(1),
  10897. .third>div:nth-child(1),
  10898. .four>div:nth-child(1) {
  10899. margin: 5px 10px 0 0;
  10900. width: 2rem;
  10901. }
  10902. .firstNo,
  10903. .secondNo,
  10904. .thirdNo,
  10905. .fourNo {
  10906. background: #e7e7e7;
  10907. color: #adadad;
  10908. display: flex;
  10909. flex-direction: row;
  10910. align-items: center;
  10911. justify-content: center;
  10912. }
  10913. .firstNo>div:nth-child(1),
  10914. .secondNo>div:nth-child(1),
  10915. .thirdNo>div:nth-child(1),
  10916. .fourNo>div:nth-child(1) {
  10917. margin: 5px 10px 0 0;
  10918. width: 2rem;
  10919. }
  10920. .uploadWidth>>>.el-upload {
  10921. width: 60px;
  10922. height: 60px;
  10923. position: relative;
  10924. }
  10925. .addPeople {
  10926. background: #fa6060;
  10927. width: 150px;
  10928. height: 40px;
  10929. color: #fff;
  10930. border-radius: 5px;
  10931. text-align: center;
  10932. line-height: 40px;
  10933. font-size: 14px;
  10934. cursor: pointer;
  10935. }
  10936. .kcImg {
  10937. width: 60px;
  10938. margin-left: 10px;
  10939. }
  10940. .zyImg {
  10941. width: 55px;
  10942. margin: 0 10px;
  10943. }
  10944. .deleteZy {
  10945. width: 20px;
  10946. position: absolute;
  10947. top: 5px;
  10948. right: 5px;
  10949. cursor: pointer;
  10950. }
  10951. .kcImg>img,
  10952. .zyImg>img,
  10953. .deleteZy>img {
  10954. width: 100%;
  10955. height: 100%;
  10956. }
  10957. .zyBox {
  10958. display: flex;
  10959. flex-direction: row;
  10960. align-items: center;
  10961. background: #67d37d;
  10962. color: #fff;
  10963. width: 210px;
  10964. margin: 20px 20px 0 0;
  10965. border-radius: 10px;
  10966. height: 70px;
  10967. position: relative;
  10968. }
  10969. .upCss {
  10970. display: flex;
  10971. flex-direction: row;
  10972. justify-content: flex-start;
  10973. }
  10974. .upCss>>>.el-icon-plus {
  10975. position: none !important;
  10976. width: 200px;
  10977. height: 100px;
  10978. display: flex;
  10979. flex-wrap: nowrap;
  10980. flex-direction: column;
  10981. align-items: center;
  10982. justify-content: center;
  10983. border: 1px dashed #ccc;
  10984. min-width: 78px;
  10985. min-height: 100px;
  10986. z-index: 999;
  10987. }
  10988. .upCss>>>.el-upload-list__item-name {
  10989. width: 100px;
  10990. white-space: nowrap;
  10991. overflow: hidden;
  10992. text-overflow: ellipsis;
  10993. }
  10994. .upCss>>>.el-upload-list__item .el-icon-close {
  10995. font-size: 20px;
  10996. z-index: 9999;
  10997. }
  10998. .addStageImg {
  10999. min-width: 25px;
  11000. min-height: 25px;
  11001. width: 25px;
  11002. height: 25px;
  11003. cursor: pointer;
  11004. }
  11005. .addHW {
  11006. width: 28px;
  11007. height: 28px;
  11008. cursor: pointer;
  11009. }
  11010. .addStageImg>img,
  11011. .addHW>img {
  11012. width: 100%;
  11013. height: 100%;
  11014. }
  11015. .addNewPP>>>.el-dialog__body {
  11016. padding: 5px 20px;
  11017. }
  11018. .addNewPP>>>.el-dialog {
  11019. margin-top: 5vh !important;
  11020. }
  11021. .addNewPP2>>>.el-dialog__body {
  11022. padding: 5px 0;
  11023. }
  11024. .addNewPP2>>>.el-dialog {
  11025. margin-top: 5vh !important;
  11026. }
  11027. .isHeight {
  11028. height: 680px;
  11029. }
  11030. .toolChoose {
  11031. display: flex;
  11032. /* width: 100%; */
  11033. flex-direction: row;
  11034. flex-wrap: wrap;
  11035. }
  11036. .tool,
  11037. .isToolChoose {
  11038. display: flex;
  11039. flex-direction: column;
  11040. flex-wrap: nowrap;
  11041. width: fit-content;
  11042. margin: 10px 0 10px 0;
  11043. align-items: center;
  11044. border: 2px solid #dbdbdb00;
  11045. padding: 10px 20px;
  11046. border-radius: 5px;
  11047. cursor: pointer;
  11048. /* box-shadow: 0 0 2px 0px #dedede; */
  11049. position: relative;
  11050. box-sizing: border-box;
  11051. }
  11052. .tool:hover {
  11053. border: 2px solid #a5c7ff;
  11054. }
  11055. .tool:hover>.noCTool {
  11056. display: block;
  11057. opacity: 0.5;
  11058. }
  11059. .isToolChoose {
  11060. border: 2px solid #438aff !important;
  11061. box-shadow: 0 0 2px 0px #438aff;
  11062. opacity: 1 !important;
  11063. }
  11064. .isCTool,
  11065. .noCTool {
  11066. width: 30px;
  11067. height: 30px;
  11068. position: absolute;
  11069. top: -4px;
  11070. right: -4px;
  11071. }
  11072. .noCTool {
  11073. display: none;
  11074. }
  11075. .isCTool>img,
  11076. .noCTool>img {
  11077. width: 100%;
  11078. height: 100%;
  11079. }
  11080. .tool+.tool {
  11081. margin-right: 45px;
  11082. }
  11083. .whiteBIcon {
  11084. width: 80px;
  11085. cursor: pointer;
  11086. display: flex;
  11087. flex-direction: column;
  11088. flex-wrap: nowrap;
  11089. align-items: center;
  11090. font-size: 14px;
  11091. }
  11092. .whiteBIcon>img,
  11093. .toolIcon>img,
  11094. .arrow>img {
  11095. width: 100%;
  11096. height: 100%;
  11097. }
  11098. .check img {
  11099. width: 20px;
  11100. height: 20px;
  11101. }
  11102. .whiteBIcon>img {
  11103. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11104. border-radius: 15px;
  11105. }
  11106. .whiteBIcon>div:nth-child(2) {
  11107. height: 20px;
  11108. line-height: 20px;
  11109. }
  11110. .check {
  11111. /* width: 20px;
  11112. height: 20px; */
  11113. cursor: pointer;
  11114. margin: 10px 0 0;
  11115. }
  11116. .checkDiv {
  11117. display: flex;
  11118. align-items: center;
  11119. }
  11120. .checkDiv span {
  11121. margin-left: 5px;
  11122. color: #858585;
  11123. }
  11124. .customWidth>>>.el-dialog {
  11125. min-width: 500px !important;
  11126. }
  11127. .a_addBox {
  11128. margin: 10px 0;
  11129. background: #fff;
  11130. padding: 15px;
  11131. /* max-height: 600px; */
  11132. overflow: auto;
  11133. }
  11134. .a_add_box {
  11135. border-bottom: 2px solid #eee;
  11136. padding-bottom: 25px;
  11137. }
  11138. .a_add_head {
  11139. display: flex;
  11140. align-items: center;
  11141. justify-content: space-between;
  11142. margin: 10px 0 0 0;
  11143. font-size: 18px;
  11144. }
  11145. .a_add_checkType {
  11146. margin-top: 10px;
  11147. display: flex;
  11148. font-size: 14px;
  11149. align-items: center;
  11150. }
  11151. .a_add_checkType span {
  11152. box-sizing: border-box;
  11153. padding: 0 0 5px 0;
  11154. cursor: pointer;
  11155. }
  11156. .a_add_checkType span+span {
  11157. margin-left: 10px;
  11158. }
  11159. .a_add_checkType .active {
  11160. border-bottom: 2px solid #409eff;
  11161. color: #409eff;
  11162. }
  11163. .a_add_head .a_add_head_input {
  11164. width: 100%;
  11165. }
  11166. .a_add_head .a_add_head_div {
  11167. display: flex;
  11168. align-items: center;
  11169. justify-content: space-between;
  11170. }
  11171. .a_add_body {
  11172. display: flex;
  11173. /* align-items: center; */
  11174. align-items: flex-end;
  11175. }
  11176. .a_add_input {
  11177. display: flex;
  11178. align-items: center;
  11179. flex-wrap: wrap;
  11180. }
  11181. .a_add_input_choice {
  11182. flex-direction: column;
  11183. margin-right: 10px;
  11184. }
  11185. .a_add_input_choice>>>.el-radio {
  11186. display: flex;
  11187. align-items: center;
  11188. flex-direction: row-reverse;
  11189. margin: 30px 0 0 0;
  11190. position: relative;
  11191. }
  11192. .a_add_input_choice>>>.el-checkbox {
  11193. display: flex;
  11194. align-items: center;
  11195. flex-direction: row-reverse;
  11196. margin: 30px 0 0 0;
  11197. position: relative;
  11198. }
  11199. .width100 {
  11200. width: 100%;
  11201. }
  11202. .a_add_input .a_add_persent {
  11203. width: 100%;
  11204. }
  11205. .a_add_persent_div {
  11206. width: 100%;
  11207. display: flex;
  11208. align-items: center;
  11209. }
  11210. .a_add_persent_div span {
  11211. margin: 5px 0;
  11212. }
  11213. .a_add_persent_div span:nth-child(1) {
  11214. width: 30%;
  11215. }
  11216. .a_add_persent_div span:nth-child(2) {
  11217. width: 7%;
  11218. }
  11219. .a_add_persent_div span:nth-child(3) {
  11220. width: 40%;
  11221. }
  11222. .a_add_body_div {
  11223. display: flex;
  11224. align-items: center;
  11225. justify-content: center;
  11226. /* flex-direction: column; */
  11227. position: absolute;
  11228. right: -20px;
  11229. transform: translateX(100%);
  11230. }
  11231. .a_add_body_div>>>.el-button--primary {
  11232. background: #466b99;
  11233. border: none;
  11234. }
  11235. .all_choose {
  11236. display: flex;
  11237. flex-direction: row;
  11238. align-items: flex-start;
  11239. width: 100%;
  11240. }
  11241. .all_choose>span {
  11242. min-width: fit-content;
  11243. display: block;
  11244. white-space: nowrap;
  11245. overflow: hidden;
  11246. text-overflow: ellipsis;
  11247. margin-right: 20px;
  11248. font-weight: bold;
  11249. font-size: 14px;
  11250. }
  11251. .all_choose>>>.el-checkbox-group {
  11252. display: flex;
  11253. flex-direction: row;
  11254. width: 100%;
  11255. flex-wrap: wrap;
  11256. align-content: center;
  11257. justify-content: flex-start;
  11258. align-items: center;
  11259. margin-top: 3px;
  11260. }
  11261. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11262. margin-bottom: 10px;
  11263. display: flex;
  11264. flex-direction: row;
  11265. align-items: center;
  11266. margin-right: 10px;
  11267. }
  11268. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11269. min-width: 80px;
  11270. overflow: hidden;
  11271. width: 80px;
  11272. text-overflow: ellipsis;
  11273. white-space: nowrap;
  11274. }
  11275. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11276. width: auto;
  11277. }
  11278. .choose>div:nth-child(3)>span {
  11279. /* letter-spacing: 0 !important; */
  11280. }
  11281. .choose {
  11282. display: flex;
  11283. flex-direction: column;
  11284. flex-wrap: nowrap;
  11285. height: 100%;
  11286. justify-content: space-evenly;
  11287. align-items: flex-start;
  11288. }
  11289. .both {
  11290. display: flex;
  11291. flex-direction: row;
  11292. flex-wrap: wrap;
  11293. width: 100%;
  11294. align-items: center;
  11295. justify-content: flex-start;
  11296. margin: 15px 0;
  11297. }
  11298. .notice>>>.el-dialog {
  11299. width: 500px !important;
  11300. text-align: center;
  11301. }
  11302. .notice>>>.el-button {
  11303. margin-top: 20px;
  11304. }
  11305. .whiteBg {
  11306. background: #fff;
  11307. border-radius: 10px;
  11308. }
  11309. .wb_j_box {
  11310. display: flex;
  11311. width: 100%;
  11312. padding: 10px 20px;
  11313. box-sizing: border-box;
  11314. }
  11315. .wb_j_box_content {
  11316. width: calc(100% - 55% - 100px);
  11317. display: flex;
  11318. align-items: center;
  11319. }
  11320. .wb_j_box_p_box {
  11321. max-width: calc(100% - 200px);
  11322. word-break: break-all;
  11323. overflow: hidden;
  11324. margin: 0 0 0 10px;
  11325. font-size: 14px;
  11326. color: #6e6e6e;
  11327. }
  11328. .chooseWho {
  11329. display: flex;
  11330. width: 410px;
  11331. flex-direction: row;
  11332. flex-wrap: nowrap;
  11333. justify-content: space-between;
  11334. padding-bottom: 10px;
  11335. }
  11336. .chooseWho>div {
  11337. cursor: pointer;
  11338. padding-bottom: 10px;
  11339. font-weight: bold;
  11340. }
  11341. .isChooseActive {
  11342. color: #3e88f4;
  11343. border-bottom: 2px solid #2f80f3;
  11344. }
  11345. .toolSort {
  11346. display: flex;
  11347. flex-direction: row;
  11348. flex-wrap: wrap;
  11349. justify-content: flex-start;
  11350. align-items: flex-start;
  11351. }
  11352. .toolSort>div {
  11353. margin-right: 45px;
  11354. }
  11355. .tools {
  11356. width: 100%;
  11357. display: flex;
  11358. flex-direction: column;
  11359. flex-wrap: nowrap;
  11360. align-items: flex-start;
  11361. }
  11362. .leftTools,
  11363. .rightTools {
  11364. width: 50%;
  11365. }
  11366. .leftTools+.leftTools {
  11367. border-top: 1px solid #dbdbdb;
  11368. padding-top: 30px;
  11369. }
  11370. .rightTools {
  11371. display: flex;
  11372. flex-direction: row;
  11373. flex-wrap: nowrap;
  11374. justify-content: space-around;
  11375. }
  11376. .firstToolList {
  11377. display: flex;
  11378. flex-direction: column;
  11379. flex-wrap: nowrap;
  11380. align-items: center;
  11381. }
  11382. .iconList {
  11383. display: flex;
  11384. flex-direction: row;
  11385. flex-wrap: wrap;
  11386. justify-content: flex-start;
  11387. align-items: center;
  11388. margin: 20px 0 5px 0;
  11389. width: 240px;
  11390. min-width: 240px;
  11391. }
  11392. .iconTool {
  11393. display: flex;
  11394. flex-direction: column;
  11395. flex-wrap: nowrap;
  11396. align-items: center;
  11397. justify-content: flex-start;
  11398. margin: 15px 10px;
  11399. }
  11400. .toolIcon {
  11401. width: 50px;
  11402. }
  11403. .taskBorder {
  11404. /*border: 1px solid #e1e1e1; */
  11405. border-radius: 8px;
  11406. margin-top: 10px;
  11407. /* min-height: 1160px; */
  11408. position: relative;
  11409. background: #fff;
  11410. padding: 20px 20px 0;
  11411. overflow: hidden;
  11412. box-sizing: border-box;
  11413. }
  11414. .smallTaskBorder {
  11415. height: 170px;
  11416. min-height: 170px !important;
  11417. overflow: hidden;
  11418. }
  11419. .taskBorder>div {
  11420. /* padding: 30px 0 10px 30px; */
  11421. }
  11422. .addTaskBorder {
  11423. /* border: 2px solid #5E9AFC; */
  11424. border-radius: 8px;
  11425. margin-top: 10px;
  11426. cursor: pointer;
  11427. /* height: 50px;
  11428. line-height: 50px; */
  11429. background: #fff;
  11430. padding: 15px 0;
  11431. display: flex;
  11432. align-items: center;
  11433. justify-content: center;
  11434. }
  11435. /* .addTaskBorder>div {
  11436. margin: 0 auto;
  11437. display: flex;
  11438. align-items: center;
  11439. justify-content: center;
  11440. }
  11441. .addTaskBorder>div>img {
  11442. width: 20px;
  11443. }
  11444. .addTaskBorder>div>span {
  11445. font-size: 16px;
  11446. margin-left: 10px;
  11447. color: #5E9AFC;
  11448. } */
  11449. .funBlock {
  11450. display: flex;
  11451. padding: 15px 0;
  11452. flex-direction: row;
  11453. justify-content: flex-end;
  11454. align-items: center;
  11455. position: absolute;
  11456. right: 15px;
  11457. bottom: 35px;
  11458. z-index: 9999;
  11459. }
  11460. .fold {
  11461. display: flex;
  11462. margin: 0 10px;
  11463. flex-direction: row;
  11464. align-items: center;
  11465. cursor: pointer;
  11466. }
  11467. .arrow {
  11468. width: 15px;
  11469. height: 15px;
  11470. margin-left: 10px;
  11471. }
  11472. .addToolFun {
  11473. display: flex;
  11474. width: 150px;
  11475. flex-direction: row;
  11476. align-items: center;
  11477. justify-content: center;
  11478. border: 1px dashed;
  11479. border-radius: 5px;
  11480. height: 50px;
  11481. margin: 20px auto 35px;
  11482. cursor: pointer;
  11483. }
  11484. .addToolFun2 {
  11485. display: flex;
  11486. width: 150px;
  11487. border: 2px dashed #CAD1DC;
  11488. flex-direction: row;
  11489. align-items: center;
  11490. justify-content: center;
  11491. border-radius: 5px;
  11492. height: 50px;
  11493. margin: 0 auto 0;
  11494. cursor: pointer;
  11495. }
  11496. .addToolImg {
  11497. width: 20px;
  11498. height: 20px;
  11499. margin-right: 10px;
  11500. }
  11501. .addToolsDia>>>.el-dialog__body {
  11502. padding: 20px;
  11503. }
  11504. .addToolsDia>>>.el-dialog__body>.toolChoose {
  11505. padding: 0;
  11506. }
  11507. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  11508. padding: 0;
  11509. border-bottom: none;
  11510. margin-bottom: 0;
  11511. }
  11512. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  11513. width: 100%;
  11514. }
  11515. .lineCss>>>.el-form-item__label {
  11516. width: auto !important;
  11517. }
  11518. .lineCss>>>.el-form-item__content {
  11519. margin-left: 50px !important;
  11520. }
  11521. .newSteps {
  11522. display: flex;
  11523. width: 100% !important;
  11524. height: 80px;
  11525. cursor: pointer;
  11526. margin: 10px 0;
  11527. border-radius: 10px;
  11528. flex-direction: row;
  11529. align-content: center;
  11530. justify-content: center;
  11531. align-items: center;
  11532. margin: 0 !important;
  11533. }
  11534. /* 评价样式 */
  11535. .elist_css {
  11536. padding-bottom: 60px !important;
  11537. }
  11538. .elist_title {
  11539. margin-bottom: 10px;
  11540. }
  11541. .elist_input {}
  11542. .elist_input_box {
  11543. display: flex;
  11544. align-items: center;
  11545. flex-wrap: wrap;
  11546. }
  11547. .elist_input_box+.elist_input_box {
  11548. margin-top: 30px;
  11549. }
  11550. .elist_input .elist_input_box input {
  11551. font: inherit;
  11552. color: currentColor;
  11553. /* width: 200px; */
  11554. max-width: 200px;
  11555. padding: 8px 14px;
  11556. display: block;
  11557. min-width: 0;
  11558. outline: none;
  11559. border: 1px solid rgba(0, 0, 0, 0.23);
  11560. border-radius: 4px;
  11561. box-sizing: border-box;
  11562. background: #fff;
  11563. margin: 0 5px 0 0;
  11564. }
  11565. .elist_input .elist_input_box span {
  11566. height: 36px;
  11567. line-height: 36px;
  11568. color: rgb(82, 82, 82);
  11569. min-width: 80px;
  11570. }
  11571. .elist_input .elist_input_box .remove {
  11572. height: 20px;
  11573. width: 20px;
  11574. min-width: 20px;
  11575. background-size: 100% 100%;
  11576. background-position: unset;
  11577. margin-left: 5px;
  11578. }
  11579. .elist_input_box>>>.el-rate {
  11580. display: flex;
  11581. height: 36px;
  11582. align-items: center;
  11583. }
  11584. .elist_input_box .elist_inptu_text {
  11585. width: 100%;
  11586. display: flex;
  11587. align-items: center;
  11588. margin-top: 10px;
  11589. }
  11590. .elist_input_box .elist_inptu_text input {
  11591. /* width: 500px; */
  11592. width: 100%;
  11593. max-width: unset;
  11594. }
  11595. .elist_input_box>>>.el-rate__icon {
  11596. font-size: 24px;
  11597. }
  11598. .elist_btn {
  11599. margin-top: 10px;
  11600. }
  11601. .lineTitle {
  11602. /* margin-top: 15px; */
  11603. width: 110px;
  11604. font-size: 16px;
  11605. display: flex;
  11606. align-items: center;
  11607. line-height: 20px;
  11608. }
  11609. .lineTitle::before {
  11610. content: '';
  11611. display: block;
  11612. width: 3px;
  11613. height: 20px;
  11614. background: #0061FF;
  11615. border-radius: 3px;
  11616. margin: 0 5px 0 0;
  11617. }
  11618. .courseTop {
  11619. display: flex;
  11620. flex-direction: row;
  11621. justify-content: space-between;
  11622. align-items: center;
  11623. width: calc(100%);
  11624. padding: 10px 0;
  11625. margin: 0 auto;
  11626. }
  11627. .stepsNav {
  11628. display: flex;
  11629. flex-direction: row;
  11630. justify-content: flex-start;
  11631. align-items: center;
  11632. }
  11633. .stepsWord {
  11634. font-size: 18px;
  11635. color: #fff;
  11636. font-weight: bold;
  11637. margin-left: auto;
  11638. background: rgb(15, 126, 255);
  11639. border-radius: 5px;
  11640. padding: 3px 25px;
  11641. box-sizing: border-box;
  11642. }
  11643. .rightBox {
  11644. width: calc(100%);
  11645. background: #F0F2F5;
  11646. /* border-radius: 10px; */
  11647. overflow: auto;
  11648. height: calc(100% - 120px);
  11649. margin: 0 auto;
  11650. position: relative;
  11651. box-sizing: border-box;
  11652. border-radius: 5px;
  11653. }
  11654. .e_add_top {
  11655. display: flex;
  11656. justify-content: space-between;
  11657. padding: 20px 20px 0 20px;
  11658. border-radius: 3px;
  11659. background: #fff;
  11660. }
  11661. .e_add_title2 {
  11662. display: flex;
  11663. align-items: center;
  11664. }
  11665. .e_add_title2 span {
  11666. width: 40px;
  11667. }
  11668. .e_add_title {
  11669. display: flex;
  11670. align-items: center;
  11671. color: #b8b8b8;
  11672. font-size: 18px;
  11673. position: relative;
  11674. height: 40px;
  11675. }
  11676. .e_add_title span {
  11677. margin-right: 10px;
  11678. }
  11679. .e_add_title .el_input {
  11680. width: 300px;
  11681. }
  11682. .e_add_title>>>.el-input__inner {
  11683. width: 400px;
  11684. }
  11685. .e_add_btn {}
  11686. .e_add_content {
  11687. display: flex;
  11688. width: 100%;
  11689. }
  11690. .e_add_list {
  11691. background: #fff;
  11692. height: 500px;
  11693. width: 210px;
  11694. position: relative;
  11695. margin: 15px 5px 0 0;
  11696. flex-shrink: 0;
  11697. display: flex;
  11698. flex-direction: column;
  11699. }
  11700. .e_add_list_title {
  11701. font-size: 20px;
  11702. width: 100%;
  11703. box-sizing: border-box;
  11704. padding: 15px 40px;
  11705. text-align: center;
  11706. border-bottom: 1px solid #eaeaea;
  11707. position: relative;
  11708. display: flex;
  11709. align-items: center;
  11710. justify-content: center;
  11711. height: 57px;
  11712. background: #f6f6f6;
  11713. }
  11714. .e_add_list_title span {
  11715. overflow: hidden;
  11716. white-space: nowrap;
  11717. text-overflow: ellipsis;
  11718. }
  11719. .e_add_list_title img {
  11720. position: absolute;
  11721. right: 15px;
  11722. width: 25px;
  11723. cursor: pointer;
  11724. top: 50%;
  11725. transform: translateY(-50%);
  11726. }
  11727. .e_add_list_body {
  11728. height: calc(100% - 187px);
  11729. overflow: auto;
  11730. }
  11731. .e_add_list_child {
  11732. width: 100%;
  11733. display: flex;
  11734. align-items: center;
  11735. justify-content: center;
  11736. position: relative;
  11737. box-sizing: border-box;
  11738. padding: 15px 40px;
  11739. text-align: center;
  11740. }
  11741. .e_add_list_child span {
  11742. overflow: hidden;
  11743. white-space: nowrap;
  11744. text-overflow: ellipsis;
  11745. cursor: pointer;
  11746. }
  11747. .e_add_list_child img {
  11748. position: absolute;
  11749. right: 10px;
  11750. width: 21px;
  11751. cursor: pointer;
  11752. top: 50%;
  11753. transform: translateY(-50%);
  11754. }
  11755. .e_add_list_child+.e_add_list_child {
  11756. border-top: 1px solid #eaeaea;
  11757. }
  11758. .e_add_list_child .active {
  11759. color: #409eff;
  11760. }
  11761. .e_add_list_btn {
  11762. position: absolute;
  11763. bottom: 0;
  11764. height: 50px;
  11765. background: rgb(120, 120, 254);
  11766. width: 100%;
  11767. color: #fff;
  11768. font-size: 16px;
  11769. text-align: center;
  11770. line-height: 50px;
  11771. cursor: pointer;
  11772. }
  11773. .e_add_list_detail {
  11774. position: absolute;
  11775. bottom: 0;
  11776. height: 130px;
  11777. background: rgb(120, 120, 254);
  11778. width: 100%;
  11779. color: #fff;
  11780. font-size: 16px;
  11781. display: flex;
  11782. align-items: center;
  11783. justify-content: center;
  11784. }
  11785. .e_add_list_detail textarea {
  11786. height: 90%;
  11787. width: 95%;
  11788. border: none;
  11789. resize: none;
  11790. outline: none;
  11791. padding: 5px;
  11792. box-sizing: border-box;
  11793. }
  11794. .e_add_list_pbox {
  11795. width: 100%;
  11796. }
  11797. .e_add_list_pbox_title {
  11798. height: 50px;
  11799. background: #fff;
  11800. display: flex;
  11801. align-items: center;
  11802. width: 100%;
  11803. box-sizing: border-box;
  11804. padding: 0 20px;
  11805. flex-direction: row;
  11806. flex-wrap: wrap;
  11807. }
  11808. .type_title {
  11809. font-size: 18px;
  11810. font-weight: 700;
  11811. }
  11812. .type_content {
  11813. font-size: 16px;
  11814. margin-left: 30px;
  11815. }
  11816. .type_content span+span {
  11817. margin-left: 20px;
  11818. }
  11819. .type_content span {
  11820. cursor: pointer;
  11821. padding-bottom: 5px;
  11822. box-sizing: border-box;
  11823. }
  11824. .type_content .active {
  11825. color: #409eff;
  11826. border-bottom: 2px solid #409eff;
  11827. }
  11828. .e_add_list_pbox_content {
  11829. height: calc(100% - 50px);
  11830. display: flex;
  11831. align-items: center;
  11832. width: 100%;
  11833. background: #fff;
  11834. }
  11835. .mbCss {
  11836. width: 100%;
  11837. display: flex;
  11838. flex-direction: row;
  11839. flex-wrap: nowrap;
  11840. align-content: center;
  11841. align-items: flex-start;
  11842. justify-content: flex-start;
  11843. }
  11844. .pjCss {
  11845. /* width: 42%; */
  11846. width: calc(100% - 55%);
  11847. display: flex;
  11848. flex-direction: column;
  11849. flex-wrap: nowrap;
  11850. align-items: flex-start;
  11851. margin-top: 1.5%;
  11852. }
  11853. .e_box {
  11854. display: flex;
  11855. flex-wrap: wrap;
  11856. max-height: 500px;
  11857. align-items: flex-start;
  11858. overflow: auto;
  11859. }
  11860. .e_card {
  11861. border: 1px solid #ccc;
  11862. background: #fff;
  11863. margin-right: 20px;
  11864. width: 270px;
  11865. display: flex;
  11866. flex-direction: column;
  11867. align-items: center;
  11868. border-radius: 5px;
  11869. margin-top: 10px;
  11870. text-align: center;
  11871. }
  11872. .e_card_picture {
  11873. margin: 10px 0;
  11874. }
  11875. .e_card_picture>img {
  11876. width: 50px;
  11877. }
  11878. .e_card_name {
  11879. width: 100%;
  11880. padding: 0 10px;
  11881. box-sizing: border-box;
  11882. margin-bottom: 10px;
  11883. overflow: hidden;
  11884. text-overflow: ellipsis;
  11885. white-space: nowrap;
  11886. }
  11887. .e_card_time {
  11888. width: 100%;
  11889. padding: 0 10px;
  11890. box-sizing: border-box;
  11891. font-size: 15px;
  11892. color: #c3c3c3;
  11893. margin-bottom: 10px;
  11894. }
  11895. .e_card_btn {
  11896. height: 40px;
  11897. display: flex;
  11898. align-items: center;
  11899. width: 100%;
  11900. background: rgb(244, 244, 244);
  11901. }
  11902. .e_card_btn:hover {
  11903. background: rgb(221 221 221);
  11904. }
  11905. .e_card_btn span {
  11906. flex: 1 1 auto;
  11907. text-align: center;
  11908. cursor: pointer;
  11909. }
  11910. .addEva {
  11911. border: 1px solid #ccc;
  11912. background: #fff;
  11913. margin-right: 20px;
  11914. width: 270px;
  11915. height: 149px;
  11916. display: flex;
  11917. flex-direction: column;
  11918. align-items: center;
  11919. border-radius: 5px;
  11920. margin-top: 10px;
  11921. text-align: center;
  11922. cursor: pointer;
  11923. justify-content: center;
  11924. }
  11925. .addEva>img {
  11926. width: 50px;
  11927. object-fit: cover;
  11928. }
  11929. .uploadFm {
  11930. border: 1px dashed #ccc;
  11931. width: 100%;
  11932. height: 140px;
  11933. position: relative;
  11934. cursor: pointer;
  11935. display: flex;
  11936. flex-direction: column;
  11937. justify-content: center;
  11938. align-items: center;
  11939. font-size: 14px;
  11940. color: #6e6e6e;
  11941. }
  11942. .uploadFm>img {
  11943. width: 50px;
  11944. }
  11945. .fileCss {
  11946. width: 100%;
  11947. display: flex;
  11948. flex-direction: row;
  11949. flex-wrap: nowrap;
  11950. justify-content: space-around;
  11951. align-items: center;
  11952. padding-top: 15px;
  11953. }
  11954. .fileCss>div {
  11955. display: flex;
  11956. flex-direction: column;
  11957. align-items: center;
  11958. }
  11959. .fileCss .spanName {
  11960. margin-top: 10px
  11961. }
  11962. .sysPicBox {
  11963. display: flex;
  11964. flex-direction: row;
  11965. flex-wrap: wrap;
  11966. align-content: flex-start;
  11967. height: 435px;
  11968. overflow: auto;
  11969. position: relative;
  11970. }
  11971. .picNone {
  11972. position: absolute;
  11973. left: 50%;
  11974. top: 45%;
  11975. transform: translate(-50%, -50%);
  11976. width: fit-content;
  11977. color: #9c9c9c;
  11978. }
  11979. .sysPic {
  11980. width: 200px;
  11981. height: 115px;
  11982. margin: 0 20px 20px 0;
  11983. cursor: pointer;
  11984. }
  11985. .sysPic>img,
  11986. .isSysPic>img,
  11987. .deletePic>img {
  11988. width: 100%;
  11989. height: 100%;
  11990. object-fit: cover;
  11991. }
  11992. .isSysPic {
  11993. width: 200px;
  11994. height: 115px;
  11995. position: relative;
  11996. }
  11997. .deletePic {
  11998. width: 20px;
  11999. height: 20px;
  12000. position: absolute;
  12001. top: 0;
  12002. right: 0;
  12003. cursor: pointer;
  12004. }
  12005. .select_box1 {
  12006. height: 100%;
  12007. }
  12008. .select_box1_img {
  12009. background: #fff;
  12010. border-radius: 5px;
  12011. padding: 15px;
  12012. box-sizing: border-box;
  12013. margin-bottom: 20px;
  12014. }
  12015. .select_box1_title {
  12016. padding: 0 0 15px 0;
  12017. border-bottom: 1px solid #eee;
  12018. margin-bottom: 15px;
  12019. }
  12020. .select_box1_title span:nth-child(1) {
  12021. font-size: 16px;
  12022. margin-right: 20px;
  12023. color: #000;
  12024. }
  12025. .select_box1_title span:nth-child(2) {
  12026. font-size: 14px;
  12027. color: rgb(112, 112, 112);
  12028. }
  12029. .select_box1_add_img {}
  12030. .select_box1_select {
  12031. background: #fff;
  12032. border-radius: 5px;
  12033. padding: 15px;
  12034. box-sizing: border-box;
  12035. height: calc(100% - 200px);
  12036. overflow: auto;
  12037. }
  12038. .select_box2 {
  12039. height: 100%;
  12040. }
  12041. .select_box2_title {
  12042. background: #fff;
  12043. border-radius: 5px;
  12044. padding: 5px 10px;
  12045. box-sizing: border-box;
  12046. margin-bottom: 10px;
  12047. }
  12048. .select_box2_box {
  12049. display: flex;
  12050. height: calc(100% - 30px);
  12051. }
  12052. .select_box2_img {
  12053. width: calc(100% - 310px);
  12054. height: 100%;
  12055. overflow: auto;
  12056. background: #fff;
  12057. border-radius: 5px;
  12058. }
  12059. .select_box2_img img {
  12060. width: 100%;
  12061. }
  12062. .select_box2_answer {
  12063. background: #fff;
  12064. margin-left: 10px;
  12065. border-radius: 5px;
  12066. width: 300px;
  12067. overflow: auto;
  12068. height: 100%;
  12069. display: flex;
  12070. flex-direction: column;
  12071. align-items: center;
  12072. padding-top: 10px;
  12073. box-sizing: border-box;
  12074. }
  12075. .select_box2_answer_box {
  12076. margin: 0 0 10px 0;
  12077. width: 85%;
  12078. }
  12079. .rate_textarea {
  12080. font: inherit;
  12081. color: currentColor;
  12082. width: 100%;
  12083. padding: 8px 14px;
  12084. display: block;
  12085. min-width: 0;
  12086. outline: none;
  12087. border: 1px solid rgba(0, 0, 0, 0.23);
  12088. border-radius: 4px;
  12089. box-sizing: border-box;
  12090. background: #fff;
  12091. margin: 0 20px 0 0;
  12092. resize: none;
  12093. }
  12094. .select_answer_title {
  12095. text-align: left;
  12096. width: 85%;
  12097. margin-bottom: 10px;
  12098. font-size: 18px;
  12099. color: #8e8e8e;
  12100. }
  12101. .mask {
  12102. background-color: rgb(0 0 0 / 30%);
  12103. /* position: fixed; */
  12104. position: absolute;
  12105. top: 0;
  12106. left: 0;
  12107. width: 100%;
  12108. height: 100%;
  12109. z-index: 90;
  12110. display: flex;
  12111. align-items: center;
  12112. justify-content: center;
  12113. }
  12114. .progressBox {
  12115. width: 300px;
  12116. height: 150px;
  12117. background: #fff;
  12118. border-radius: 10px;
  12119. box-shadow: 0 0 6px 1px #bfbfbf;
  12120. display: flex;
  12121. align-items: center;
  12122. justify-content: center;
  12123. flex-direction: column;
  12124. position: relative;
  12125. color: #6c6c6c;
  12126. }
  12127. .progressBox>>>.el-progress-bar__outer {
  12128. background-color: #d1dfff !important;
  12129. }
  12130. .progressBox .lbox {
  12131. height: 50px;
  12132. font-size: 19px;
  12133. display: flex;
  12134. align-items: center;
  12135. color: #747474;
  12136. }
  12137. .progressBox .lbox img {
  12138. width: 40px;
  12139. margin-right: 20px;
  12140. }
  12141. .closeCss {
  12142. position: absolute;
  12143. top: 8px;
  12144. right: 8px;
  12145. cursor: pointer;
  12146. width: 20px;
  12147. height: 20px;
  12148. }
  12149. .closeCss>img {
  12150. width: 100%;
  12151. height: 100%;
  12152. }
  12153. .updateTips::after {
  12154. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  12155. font-size: 14px;
  12156. margin-left: 20px;
  12157. font-weight: 400;
  12158. color: #ff3a3a;
  12159. }
  12160. .updateMask {
  12161. width: 100%;
  12162. z-index: 3;
  12163. top: 0;
  12164. position: absolute;
  12165. /* background-color: rgba(0,0,0,.3); */
  12166. }
  12167. .t_j_box {
  12168. display: flex;
  12169. }
  12170. .t_j_box span:nth-child(1) {
  12171. width: 15%;
  12172. overflow: hidden;
  12173. margin-right: 10px;
  12174. text-overflow: ellipsis;
  12175. white-space: nowrap;
  12176. }
  12177. .t_j_box span:nth-child(2) {
  12178. width: 30%;
  12179. overflow: hidden;
  12180. text-overflow: ellipsis;
  12181. margin-right: 10px;
  12182. }
  12183. .t_j_box span:nth-child(3) {
  12184. max-width: calc(55% - 20px);
  12185. overflow: hidden;
  12186. text-overflow: ellipsis;
  12187. }
  12188. .sentenBox {
  12189. background: #fff;
  12190. height: 600px;
  12191. overflow: auto;
  12192. background-image: url("../../../assets/icon/conSentences/csBg.png");
  12193. background-position: 102%;
  12194. background-repeat: no-repeat;
  12195. background-size: 60%;
  12196. }
  12197. .sentenBox>.sentenContent {
  12198. padding-bottom: 10px;
  12199. width: 97%;
  12200. margin: 0 auto;
  12201. }
  12202. .sentenBox>.sentenContent+.sentenContent {
  12203. border-top: 1px solid #cbcbcb;
  12204. }
  12205. .addSen {
  12206. background: #409efe;
  12207. width: 90px;
  12208. color: #fff;
  12209. height: 35px;
  12210. text-align: center;
  12211. line-height: 35px;
  12212. border-radius: 5px;
  12213. float: right;
  12214. margin: 10px 20px 0 0;
  12215. cursor: pointer;
  12216. }
  12217. .sentenTop {
  12218. display: flex;
  12219. flex-direction: row;
  12220. flex-wrap: nowrap;
  12221. align-items: center;
  12222. }
  12223. .sentenTop::before {
  12224. content: attr(index);
  12225. background: #3681fc;
  12226. border-radius: 50%;
  12227. color: #fff;
  12228. width: 25px;
  12229. height: 25px;
  12230. min-width: 25px;
  12231. min-height: 25px;
  12232. text-align: center;
  12233. line-height: 25px;
  12234. margin-right: 5px;
  12235. }
  12236. .sentenTop>div:nth-child(2) {
  12237. width: 300px;
  12238. margin: 0 15px;
  12239. }
  12240. .sentenTop>div:nth-child(3) {
  12241. background: #409efe;
  12242. color: #fff;
  12243. width: 65px;
  12244. height: 35px;
  12245. text-align: center;
  12246. line-height: 35px;
  12247. border-radius: 5px;
  12248. cursor: pointer;
  12249. }
  12250. .cardList {
  12251. padding: 20px 0 20px 0;
  12252. display: flex;
  12253. flex-direction: row;
  12254. flex-wrap: wrap;
  12255. align-items: center;
  12256. box-sizing: border-box;
  12257. border-bottom: 1px solid #f4f4f4;
  12258. width: 98%;
  12259. margin: 0 auto;
  12260. }
  12261. .rightCardList {
  12262. display: flex;
  12263. flex-wrap: wrap;
  12264. }
  12265. .cardBox {
  12266. display: flex;
  12267. flex-direction: row;
  12268. flex-wrap: wrap;
  12269. align-items: center;
  12270. align-content: center;
  12271. }
  12272. .isCard,
  12273. .isCard1 {
  12274. width: auto;
  12275. padding: 0 20px;
  12276. height: 65px;
  12277. text-align: center;
  12278. line-height: 65px;
  12279. font-size: 14px;
  12280. cursor: pointer;
  12281. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  12282. background-size: 100% 100%;
  12283. position: relative;
  12284. z-index: 99;
  12285. }
  12286. .isCard1 {
  12287. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  12288. }
  12289. .isCard:hover .deleteWord {
  12290. display: block;
  12291. }
  12292. .isCard>div:nth-child(1),
  12293. .isCard1>div:nth-child(1) {
  12294. white-space: nowrap;
  12295. overflow: hidden;
  12296. text-overflow: ellipsis;
  12297. width: 100%;
  12298. margin: 0 auto;
  12299. }
  12300. .card {
  12301. width: 140px;
  12302. height: 65px;
  12303. }
  12304. .card>img {
  12305. width: 100%;
  12306. height: 100%;
  12307. }
  12308. .rightCardBox {
  12309. width: 98%;
  12310. margin: 10px auto 0;
  12311. }
  12312. .rightCardBox>div:nth-child(1) {
  12313. margin-bottom: 10px;
  12314. }
  12315. .cardCss {
  12316. display: flex;
  12317. flex-direction: column;
  12318. flex-wrap: nowrap;
  12319. align-items: center;
  12320. border-bottom: 3px solid #b4c3d3;
  12321. padding: 0 0 5px 0;
  12322. /* margin-right: 10px; */
  12323. }
  12324. .cardCss>div:nth-child(2) {
  12325. background: #5b7b9d;
  12326. color: #fff;
  12327. width: 20px;
  12328. height: 20px;
  12329. border-radius: 50%;
  12330. text-align: center;
  12331. line-height: 20px;
  12332. }
  12333. .sentenTopBox {
  12334. display: flex;
  12335. flex-direction: row;
  12336. flex-wrap: nowrap;
  12337. align-items: center;
  12338. justify-content: space-between;
  12339. padding: 55px 0 0 20px;
  12340. box-sizing: border-box;
  12341. width: 85%;
  12342. }
  12343. .stepsBottom {
  12344. width: 85%;
  12345. margin-bottom: 20px;
  12346. box-shadow: 0 0 10px 10px #f7f7f7;
  12347. background: #f7f7f7;
  12348. border-radius: 10px;
  12349. overflow: hidden;
  12350. }
  12351. .course_left {
  12352. width: 300px;
  12353. height: auto;
  12354. position: relative;
  12355. }
  12356. .stepsBottom2 {
  12357. width: 300px;
  12358. margin: 10px 0;
  12359. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  12360. /* background: #f7f7f7; */
  12361. border-radius: 8px;
  12362. overflow: hidden;
  12363. height: fit-content;
  12364. position: relative;
  12365. /* transition: all .5s; */
  12366. }
  12367. .navTop {
  12368. background: #53749b;
  12369. color: #fff;
  12370. height: 40px;
  12371. line-height: 40px;
  12372. padding-left: 15px;
  12373. font-size: 18px;
  12374. }
  12375. .navBottom {
  12376. background: #fff;
  12377. height: calc(100vh - 210px);
  12378. overflow: auto;
  12379. }
  12380. .navTask {
  12381. display: flex;
  12382. flex-direction: row;
  12383. flex-wrap: nowrap;
  12384. align-items: center;
  12385. padding: 10px 10px 10px 0;
  12386. cursor: pointer;
  12387. background: #ffffff;
  12388. width: 95%;
  12389. margin: 10px auto 0;
  12390. box-sizing: border-box;
  12391. border-radius: 5px;
  12392. flex-wrap: wrap;
  12393. position: relative;
  12394. }
  12395. .navTask::before {
  12396. content: '';
  12397. display: block;
  12398. width: 16px;
  12399. height: 16px;
  12400. background-image: url(../../../assets/icon/new/icon_arrow.png);
  12401. background-size: 100%;
  12402. margin-left: 23px;
  12403. }
  12404. .isNavOpen::before {
  12405. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  12406. }
  12407. .dragOver {
  12408. background: red !important;
  12409. }
  12410. .isNavTask {
  12411. /* background: #3681FC; */
  12412. background: #EEF3FB;
  12413. }
  12414. .isNavTask>.chapter_upload_drag {
  12415. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  12416. }
  12417. .isNavTask .nt_taskName {
  12418. /* color: #fff !important; */
  12419. font-weight: bold !important;
  12420. color: #0061FF !important;
  12421. }
  12422. .isNavTask .nt_taskTitle {
  12423. /* color: #AECCFE !important; */
  12424. font-weight: bold !important;
  12425. color: #0061FF !important;
  12426. }
  12427. .navTask .nt_taskBox {
  12428. width: calc(100% - 40px);
  12429. padding: 0 0 0 5px;
  12430. box-sizing: border-box;
  12431. box-sizing: border-box;
  12432. display: flex;
  12433. flex-direction: row;
  12434. flex-wrap: nowrap;
  12435. align-items: baseline;
  12436. }
  12437. .navTask .nt_taskTitle {
  12438. /* color: #717C8D; */
  12439. color: #060E17;
  12440. line-height: 25px;
  12441. font-size: 16px;
  12442. min-width: 50px;
  12443. }
  12444. .navTask .nt_taskName {
  12445. /* color: #fff; */
  12446. /* max-width: 130px; */
  12447. /* width: 100%; */
  12448. max-width: calc(100% - 50px);
  12449. white-space: nowrap;
  12450. overflow: hidden;
  12451. text-overflow: ellipsis;
  12452. font-size: 16px;
  12453. color: #060E17;
  12454. /* color: #0E1E33; */
  12455. }
  12456. .gjBox {
  12457. width: calc(100% - 25px);
  12458. padding: 0 0 0 0;
  12459. box-sizing: border-box;
  12460. border-left: 1px solid #CAD1DC;
  12461. margin-left: 25px;
  12462. }
  12463. .gjBox>div {
  12464. display: flex;
  12465. align-items: center;
  12466. }
  12467. .gjBox>div::before {
  12468. content: '';
  12469. height: 1px;
  12470. width: 10px;
  12471. background: #CAD1DC;
  12472. display: block;
  12473. margin-right: 5px;
  12474. }
  12475. .gjCss {
  12476. display: flex;
  12477. flex-direction: row;
  12478. flex-wrap: nowrap;
  12479. align-items: center;
  12480. padding: 15px 0;
  12481. box-sizing: border-box;
  12482. font-size: 14px;
  12483. cursor: pointer;
  12484. }
  12485. .isGjCss {
  12486. color: #0061ff;
  12487. }
  12488. .groupBox {}
  12489. .groupContent+.groupContent {
  12490. margin-top: 30px;
  12491. }
  12492. .groupTitle {
  12493. font-size: 24px;
  12494. color: rgb(80, 80, 80);
  12495. margin-bottom: 20px;
  12496. }
  12497. .groupName {
  12498. display: flex;
  12499. align-items: center;
  12500. }
  12501. .groupn {
  12502. font-size: 15px;
  12503. margin-right: 10px;
  12504. }
  12505. .groupName+.groupName {
  12506. margin-top: 15px;
  12507. }
  12508. .groupBtn {
  12509. margin-left: 10px;
  12510. }
  12511. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  12512. text-align: left;
  12513. }
  12514. .radioBox>div {
  12515. margin: 10px 0 0 10px;
  12516. }
  12517. .radioBox>>>.el-radio__input,
  12518. .radioBox>>>.el-checkbox__inner {
  12519. margin-left: 10px;
  12520. }
  12521. .radioBox>>>.el-radio__label,
  12522. .radioBox>>>.el-checkbox__label {
  12523. display: flex;
  12524. align-items: center;
  12525. }
  12526. .inImg {
  12527. width: 50px;
  12528. }
  12529. .inImg>img {
  12530. width: 100%;
  12531. height: 100%;
  12532. object-fit: cover;
  12533. }
  12534. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  12535. height: auto;
  12536. padding: 10px;
  12537. margin: 0;
  12538. }
  12539. .upCss>>>.el-upload-list {
  12540. width: 100%;
  12541. }
  12542. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  12543. width: 100%;
  12544. height: 120px;
  12545. object-fit: contain;
  12546. background: unset;
  12547. margin-left: 0;
  12548. }
  12549. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  12550. display: none;
  12551. }
  12552. .tcMember+.tcMember::before {
  12553. content: "、";
  12554. }
  12555. .xzUpImg {
  12556. width: 25px;
  12557. height: 25px;
  12558. min-width: 25px;
  12559. min-height: 25px;
  12560. cursor: pointer;
  12561. margin: 0 10px;
  12562. }
  12563. .xzUpImg>img {
  12564. width: 100%;
  12565. height: 100%;
  12566. }
  12567. .closeCss {
  12568. position: absolute;
  12569. top: 8px;
  12570. right: 8px;
  12571. cursor: pointer;
  12572. width: 20px;
  12573. height: 20px;
  12574. }
  12575. .closeCss>img {
  12576. width: 100%;
  12577. height: 100%;
  12578. }
  12579. .moveBtn {
  12580. display: flex;
  12581. flex-direction: row;
  12582. flex-wrap: nowrap;
  12583. align-items: center;
  12584. width: 55px;
  12585. }
  12586. .timuUpImg {
  12587. display: flex;
  12588. flex-direction: row;
  12589. align-items: center;
  12590. width: 100%;
  12591. margin-right: 10px;
  12592. }
  12593. .timuUpImg>div:nth-child(1) {
  12594. margin-right: 10px;
  12595. display: flex;
  12596. align-items: center;
  12597. width: 100%;
  12598. }
  12599. .timuImgBox {
  12600. margin: 10px 0;
  12601. display: flex;
  12602. flex-direction: column;
  12603. flex-wrap: wrap;
  12604. align-items: flex-start;
  12605. }
  12606. .timuImg {
  12607. width: 100px;
  12608. margin: 5px 0;
  12609. cursor: pointer;
  12610. position: relative;
  12611. }
  12612. .timuImg:hover .deleteWord {
  12613. display: block;
  12614. }
  12615. .deleteWord {
  12616. width: 25px;
  12617. height: 25px;
  12618. position: absolute;
  12619. right: -5px;
  12620. top: -5px;
  12621. cursor: pointer;
  12622. display: none;
  12623. }
  12624. .timuImg>img,
  12625. .deleteWord>img {
  12626. width: 100%;
  12627. height: 100%;
  12628. object-fit: cover;
  12629. }
  12630. .e_add_delete {
  12631. cursor: pointer;
  12632. margin-left: 10px;
  12633. }
  12634. .pType_box {
  12635. margin-top: 30px;
  12636. align-items: flex-end;
  12637. }
  12638. .noneBox {
  12639. height: 100%;
  12640. width: 100%;
  12641. display: flex;
  12642. align-items: center;
  12643. justify-content: center;
  12644. margin-top: 150px;
  12645. }
  12646. .noneBox>img {
  12647. width: 300px;
  12648. }
  12649. .textarea_css {
  12650. display: block;
  12651. resize: none;
  12652. padding: 10px 15px;
  12653. line-height: 1.5;
  12654. box-sizing: border-box;
  12655. width: 100%;
  12656. font-size: 14px;
  12657. color: #606266;
  12658. background-color: #FFF;
  12659. background-image: none;
  12660. border: 1px solid #DCDFE6;
  12661. border-radius: 4px;
  12662. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  12663. outline: none;
  12664. overflow: hidden;
  12665. height: 46px;
  12666. font-family: 'Microsoft YaHei';
  12667. }
  12668. .textarea_css::-webkit-input-placeholder {
  12669. color: #C0C4CC
  12670. }
  12671. .textarea_css:focus {
  12672. border-color: #409EFF;
  12673. outline: 0;
  12674. }
  12675. .moveBtn2 {
  12676. flex-direction: column;
  12677. width: fit-content;
  12678. margin: 0 10px 0 10px;
  12679. }
  12680. .moveBtn2 .chapter_upload_down,
  12681. .moveBtn2 .chapter_upload_up {
  12682. width: 16px;
  12683. height: 16px;
  12684. }
  12685. .moveBtn2 .chapter_upload_up::after,
  12686. .moveBtn2 .chapter_upload_down::after {
  12687. width: 10px;
  12688. height: 10px;
  12689. }
  12690. .fullStyle>>>.el-dialog__body {
  12691. height: calc(100% - 125px) !important;
  12692. box-sizing: border-box;
  12693. }
  12694. .fullStyle>>>.el-dialog {
  12695. width: 100% !important;
  12696. max-width: 100% !important;
  12697. height: 100% !important;
  12698. margin: 0 !important;
  12699. }
  12700. .fullStyle {
  12701. width: 100% !important;
  12702. max-width: 100% !important;
  12703. height: 100% !important;
  12704. margin: 0 auto !important;
  12705. }
  12706. .wb_j_box_btn {
  12707. width: calc(100% - 30px);
  12708. display: flex;
  12709. height: 40px;
  12710. border: 1.5px solid #CAD1DC;
  12711. border-radius: 4px;
  12712. box-sizing: border-box;
  12713. align-items: center;
  12714. font-size: 14px;
  12715. cursor: pointer;
  12716. overflow: hidden;
  12717. }
  12718. .wb_j_box_btn:hover {
  12719. border: 1.5px solid #0061FF;
  12720. }
  12721. .wb_j_box_title {
  12722. background: #F0F4FA;
  12723. height: 100%;
  12724. line-height: 40px;
  12725. width: 90px;
  12726. text-align: center;
  12727. color: #060E17;
  12728. border-right: 1.5px solid #CAD1DC;
  12729. box-sizing: border-box;
  12730. }
  12731. .wb_j_box_btn_c {
  12732. width: calc(100% - 90px);
  12733. padding: 0 35px 0 10px;
  12734. box-sizing: border-box;
  12735. position: relative;
  12736. }
  12737. .wb_j_box_span {
  12738. width: 100%;
  12739. overflow: hidden;
  12740. white-space: nowrap;
  12741. text-overflow: ellipsis;
  12742. word-wrap: break-word;
  12743. color: #717C8D;
  12744. }
  12745. .wb_j_box_arrow {
  12746. content: '';
  12747. width: 14px;
  12748. height: 14px;
  12749. background: url(../../../assets/icon/new/u_arrow.png);
  12750. background-size: 100% 100%;
  12751. position: absolute;
  12752. right: 12px;
  12753. top: 50%;
  12754. transform: translateY(-50%);
  12755. }
  12756. .check_classBox {
  12757. height: 400px;
  12758. display: flex;
  12759. border-top: 1.5px solid #E7EBF1;
  12760. border-bottom: 1.5px solid #E7EBF1;
  12761. }
  12762. .check_class_right {
  12763. width: 130px;
  12764. border-right: 1px solid #E7EBF1;
  12765. display: flex;
  12766. align-items: center;
  12767. flex-direction: column;
  12768. height: 100%;
  12769. overflow: auto;
  12770. padding: 15px 0;
  12771. box-sizing: border-box;
  12772. }
  12773. .check_class {
  12774. width: 85%;
  12775. border-radius: 5px;
  12776. height: 30px;
  12777. line-height: 30px;
  12778. text-align: center;
  12779. padding: 0 10px;
  12780. box-sizing: border-box;
  12781. cursor: pointer;
  12782. white-space: nowrap;
  12783. overflow: hidden;
  12784. text-overflow: ellipsis;
  12785. }
  12786. .check_class.activeX {
  12787. background: #E0EAFB;
  12788. color: #3681FC;
  12789. font-weight: 700;
  12790. }
  12791. .check_class+.check_class {
  12792. margin-top: 15px;
  12793. }
  12794. .check_class_left {
  12795. background: #FAFAFA;
  12796. width: calc(100% - 130px);
  12797. padding: 15px;
  12798. box-sizing: border-box;
  12799. }
  12800. .check_class_all_box {
  12801. display: flex;
  12802. margin-bottom: 10px;
  12803. }
  12804. .all_check {
  12805. display: flex;
  12806. align-items: center;
  12807. padding: 2px 0 0;
  12808. margin-left: 10px;
  12809. }
  12810. .all_check>>>.el-checkbox__label {
  12811. line-height: unset;
  12812. }
  12813. .check_class_left_title {
  12814. font-size: 16px;
  12815. font-weight: 700;
  12816. }
  12817. .check_class_item {
  12818. display: flex;
  12819. flex-wrap: wrap;
  12820. height: calc(100% - 45px);
  12821. overflow: auto;
  12822. justify-content: flex-start;
  12823. align-items: flex-start;
  12824. align-content: flex-start;
  12825. }
  12826. .class_item {
  12827. margin: 0 15px 15px 0;
  12828. }
  12829. .class_item:hover>>>.el-checkbox__label {
  12830. color: #409EFF;
  12831. }
  12832. .class_item>>>.el-checkbox__label {
  12833. color: #0E1E33;
  12834. }
  12835. .class_item:hover>>>.el-checkbox__inner {
  12836. border-color: #409EFF;
  12837. }
  12838. .class_item>>>.el-checkbox,
  12839. .class_item>>>.el-checkbox__input {
  12840. display: flex;
  12841. align-items: center;
  12842. }</style>