addCourse.vue 365 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item :to="{
  9. path:
  10. '/course?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">课程管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加课程</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. </div>
  25. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  26. <div ref="stepBox" class="stepBox">
  27. <div class="stepBg">
  28. <div class="stepTop">
  29. <div v-if="steps > 0" class="first" @click="navSteps(1)">
  30. <div>
  31. <img src="../../assets/icon/first.png" alt />
  32. </div>
  33. <div>填写基本信息</div>
  34. </div>
  35. <div v-else class="firstNo" @click="navSteps(1)">
  36. <div>
  37. <img src="../../assets/icon/firstNo.png" alt />
  38. </div>
  39. <div>填写基本信息</div>
  40. </div>
  41. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0"></div>
  42. <div v-if="steps > 1 && cidType === 0" class="second" @click="navSteps(2)">
  43. <div style="margin: 5px 10px 0 0; width: 2rem">
  44. <img src="../../assets/icon/second.png" alt />
  45. </div>
  46. <div>选择课程模式</div>
  47. </div>
  48. <div v-else-if="cidType === 0" class="secondNo" @click="navSteps(2)">
  49. <div>
  50. <img src="../../assets/icon/secondNo.png" alt />
  51. </div>
  52. <div>选择课程模式</div>
  53. </div>
  54. <div class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  55. <div v-if="steps > 2" class="third" @click="navSteps(3)">
  56. <div>
  57. <img src="../../assets/icon/third.png" alt />
  58. </div>
  59. <div>上传课程内容</div>
  60. </div>
  61. <div v-else class="thirdNo" @click="navSteps(3)">
  62. <div>
  63. <img src="../../assets/icon/thirdNo.png" alt />
  64. </div>
  65. <div>上传课程内容</div>
  66. </div>
  67. <div class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  68. <div v-if="steps > 3" class="four">
  69. <div>
  70. <img src="../../assets/icon/four.png" alt />
  71. </div>
  72. <div>上传完成</div>
  73. </div>
  74. <div v-else class="fourNo">
  75. <div>
  76. <img src="../../assets/icon/fourNo.png" alt />
  77. </div>
  78. <div>上传完成</div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:30px 10px">
  83. <div class="updateMask" :style="{
  84. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  85. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  86. <div class="whiteBg" :class="{
  87. updateTips: cid && userid != courseUserid && role != '1',
  88. }">
  89. <div class="basic_box">
  90. <div class="course_input_box">
  91. <div class="bb_courseIcon"><img src="../../assets/icon/new/course_icon.png" /></div>
  92. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  93. style="border: 1px solid #CAD1DC;background: #fcfcfc;" />
  94. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"></el-switch>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="whiteBg">
  99. <div class="basic_box">
  100. <div class="big_box">
  101. <div class="left_first">
  102. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  103. <span>类型</span>
  104. <!-- 学科+ 主题+ 未来+ -->
  105. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  106. style="display: flex; align-items: center">
  107. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  108. <el-radio :label="item.name">{{
  109. item.name
  110. }}</el-radio>
  111. </div>
  112. </el-radio-group>
  113. </div>
  114. <div class="both">
  115. <div class="choose">
  116. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  117. <span v-if="CourseTypeJson[item.id].length > 0 &&
  118. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  119. ? pTypeCheck.indexOf(item.id) != -1
  120. : true)
  121. ">{{ item.name }}:</span>
  122. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  123. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  124. ? pTypeCheck.indexOf(item.id) != -1
  125. : true)
  126. ">
  127. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  128. item1.name }}</el-checkbox>
  129. </el-checkbox-group>
  130. <!-- <div
  131. v-else
  132. style="font-size: 14px; margin-left: -8px"
  133. >
  134. 暂无
  135. </div> -->
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="right_first">
  141. <!-- <div class="ai_box">
  142. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  143. </div> -->
  144. <div style="margin: auto;">
  145. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  146. <img src="../../assets/icon/addPoster.png" alt="" />
  147. <div>点击添加封面</div>
  148. </div>
  149. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  150. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  151. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  152. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  153. <i class="el-icon-plus"></i>
  154. </el-upload>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. <div class="whiteBg" style="border-radius: 0">
  161. <div class="wb_j_box">
  162. <div class="wb_j_box_content">
  163. <button class="c_pub_button_add pub_btn_add_img" @click="
  164. (dialogVisibleClass = true),
  165. (classSearch = ''),
  166. (gradeId = ''),
  167. getClass()
  168. ">添加班级</button>
  169. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  170. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  171. getClassC(tc) }}</span>
  172. </div>
  173. </div>
  174. <div class="wb_j_box_content" v-if="courseUserid != ''
  175. ? courseUserid == userid || role == '1'
  176. : true
  177. ">
  178. <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  179. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  180. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  181. checkBoolean
  182. ? checkboxList3
  183. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  184. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  190. <div class="c_info_title">课程简要描述</div>
  191. <div style="width: 95%; padding: 0 0px 0 20px">
  192. <div style="width: 55%">
  193. <textarea rows="6" class="binfo_input binfo_textarea" cols v-model="courseText"></textarea>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  198. <div class="c_info_title">目标管理</div>
  199. <div style="margin: 0 auto;padding:0 20px">
  200. <div style="
  201. width: 95%;
  202. min-height: 600px;
  203. border: 1px solid #CAD1DC;
  204. border-radius: 4px;
  205. position: relative;
  206. ">
  207. <div class="e_add_top">
  208. <div class="e_add_title">
  209. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()">清除</button>
  210. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">添加</button>
  211. <!-- <span>当前使用目标管理</span>
  212. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  213. <img
  214. src="../../assets/line.png"
  215. class="cru_line"
  216. style="
  217. width: 125px;
  218. height: 20px;
  219. bottom: -10px;
  220. left: 155px;
  221. "
  222. /> -->
  223. </div>
  224. <div style="
  225. display: flex;
  226. flex-direction: row;
  227. align-items: center;
  228. ">
  229. <!-- <el-button
  230. type="primary"
  231. size="small"
  232. @click="dialogVisiblemb = true"
  233. >添加目标管理</el-button
  234. >
  235. <el-button
  236. type="primary"
  237. size="small"
  238. @click="deleteEva()"
  239. >清除内容</el-button
  240. > -->
  241. <!-- <div class="e_add_delete" @click="deleteEva()">
  242. <img src="../../assets/icon/delete.png" alt="" />
  243. </div> -->
  244. </div>
  245. </div>
  246. <div v-if="evalua == ''">
  247. <div class="noneBox">
  248. <img src="../../assets/icon/isNoMessage.png" />
  249. </div>
  250. </div>
  251. <div class="e_add_content" v-else>
  252. <div class="e_add_list_pbox">
  253. <div class="e_add_list_pbox_title">
  254. <span class="type_title">切换模式</span>
  255. <div class="type_content">
  256. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  257. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  258. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  259. </div>
  260. </div>
  261. <div class="e_add_list_pbox_content">
  262. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  263. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  264. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  265. </SeeBoard>
  266. </div>
  267. </div>
  268. </div>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. <div class="rightBox" v-if="this.steps == 2">
  274. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  275. <!-- <div
  276. style="
  277. color: #b8b8b8;
  278. background: #fff;
  279. width: 26%;
  280. height: 40px;
  281. border-radius: 15px;
  282. padding-left: 20px;
  283. line-height: 40px;
  284. font-size: 17px;
  285. box-shadow: 0px 1px 2px 2px #e0e0e0;
  286. "
  287. >-->
  288. <div class="right_title" style="border: none; margin: 0; padding: 0">
  289. 请选择合适的课程模板
  290. </div>
  291. <div class="wordbox">
  292. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  293. <div class="wordPic">
  294. <img src="../../assets/icon/wordMub.png" alt />
  295. </div>
  296. <div style="
  297. margin-top: 10px;
  298. line-height: 19px;
  299. overflow: hidden;
  300. text-overflow: ellipsis;
  301. white-space: nowrap;
  302. padding: 0 20px;
  303. ">
  304. {{ aa.title }}
  305. </div>
  306. </div>
  307. <div class="wordTeacher" @click="checkTemplate2()">
  308. <div class="wordPic">
  309. <img src="../../assets/icon/wordMub.png" alt />
  310. </div>
  311. <div style="
  312. margin-top: 10px;
  313. line-height: 19px;
  314. overflow: hidden;
  315. text-overflow: ellipsis;
  316. white-space: nowrap;
  317. padding: 0 20px;
  318. ">
  319. 任务模式
  320. </div>
  321. </div>
  322. <div class="wordTeacher" @click="checkTemplate3()">
  323. <div class="wordPic">
  324. <img src="../../assets/icon/wordMub.png" alt />
  325. </div>
  326. <div style="
  327. margin-top: 10px;
  328. line-height: 19px;
  329. overflow: hidden;
  330. text-overflow: ellipsis;
  331. white-space: nowrap;
  332. padding: 0 20px;
  333. ">
  334. 简易模式
  335. </div>
  336. </div>
  337. <div class="wordTeacher" @click="pasteStage()">
  338. <div class="wordPic">
  339. <img src="../../assets/icon/wordMub.png" alt />
  340. </div>
  341. <div style="
  342. margin-top: 10px;
  343. line-height: 19px;
  344. overflow: hidden;
  345. text-overflow: ellipsis;
  346. white-space: nowrap;
  347. padding: 0 20px;
  348. ">
  349. 智能粘贴模式
  350. </div>
  351. </div>
  352. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  353. <div class="wordPic">
  354. <img src="../../assets/icon/wordMub.png" alt />
  355. </div>
  356. <div style="
  357. margin-top: 10px;
  358. line-height: 19px;
  359. overflow: hidden;
  360. text-overflow: ellipsis;
  361. white-space: nowrap;
  362. padding: 0 20px;
  363. ">
  364. 未来小学课程设计
  365. </div>
  366. </div> -->
  367. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  368. <div class="wordPic">
  369. <img src="../../assets/icon/wordMub.png" alt />
  370. </div>
  371. <div style="
  372. margin-top: 10px;
  373. line-height: 19px;
  374. overflow: hidden;
  375. text-overflow: ellipsis;
  376. white-space: nowrap;
  377. padding: 0 20px;
  378. ">
  379. 我的课程
  380. </div>
  381. </div> -->
  382. </div>
  383. </div>
  384. </div>
  385. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  386. <div class="rb_c_box">
  387. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  388. <div class="stepsBottom">
  389. <!-- <div class="navTop">辅助导航</div> -->
  390. <div class="navBottom">
  391. <div class="navTask" :class="{
  392. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  393. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  394. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  395. <div class="nt_taskBox">
  396. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  397. <div class="nt_taskName">
  398. <el-tooltip effect="light" :content="t.task" placement="top">
  399. <span>{{ t.task }}</span>
  400. </el-tooltip>
  401. </div>
  402. </div>
  403. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1">
  404. <div class="chapter_upload_up" @click.stop="taskMove(1, tIndex)">
  405. </div>
  406. <div class="chapter_upload_down" @click.stop="taskMove(2, tIndex)"></div>
  407. </div>
  408. </div>
  409. </div>
  410. </div>
  411. </div>
  412. <div class="rb_c_box_right">
  413. <!-- <div class="rb_c_box_btn">
  414. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  415. </div> -->
  416. <div class="basic_box">
  417. <div style="
  418. display: flex;
  419. flex-direction: row;
  420. align-items: center;
  421. position: sticky;
  422. top: 0;
  423. z-index: 99;
  424. width: 100%;
  425. padding: 0 20px 0 20px;
  426. box-sizing: border-box;
  427. background: #f0f4fa
  428. ">
  429. <div class="cru_selectBox"
  430. :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }">
  431. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  432. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  433. <!-- item.dyName ? item.dyName : -->
  434. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  435. unitJson[unitJson.length - 1].easy == 6
  436. ">{{
  437. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  438. }}</span>
  439. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  440. </div>
  441. <div class="cru_line" :style="{
  442. left: offsetLetfPx + 'px',
  443. }"></div>
  444. </div>
  445. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  446. !(unitJson[unitJson.length - 1].easy == 6)
  447. ">
  448. <img src="../../assets/icon/new/addStage.png" alt />
  449. </div>
  450. <button class="c_pub_button_add" @click="openStageBox"
  451. v-if="steps == 3 && (userid == courseUserid || role == '1')"
  452. style="margin: 0 0 0 auto;">阶段顺序</button>
  453. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  454. </div>
  455. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  456. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  457. <div>
  458. <div class="chapter_contentbox">
  459. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  460. <div class="cc_input">
  461. <input type="text" placeholder="阶段标题" class="binfo_input"
  462. v-model="unitJson[unitIndex].dyName" />
  463. </div>
  464. <div class="remove" v-if="unitJson.length > 1 &&
  465. !(unitJson[unitJson.length - 1].easy == 4) &&
  466. !(unitJson[unitJson.length - 1].easy == 6)
  467. " @click="deleteUnit(unitIndex)"></div>
  468. </div>
  469. </div>
  470. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  471. margin: 50px 0px 10px;
  472. font-size: 1.5em;
  473. font-weight: 700;
  474. color: #0f7eff;
  475. ">
  476. 添加任务
  477. </div> -->
  478. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  479. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  480. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  481. <div v-if="unitJson[unitIndex].easy != 1">
  482. <div :style="{
  483. marginBottom:
  484. unitJson[unitIndex].easy == 3 ||
  485. (unitJson[unitIndex].easy == 5 &&
  486. itemTask.taskType == 1)
  487. ? '75px'
  488. : '0',
  489. }">
  490. <div class="chapter_contentbox" style="
  491. flex-direction: row;
  492. justify-content: flex-start;
  493. align-items: center;
  494. margin:0;
  495. ">
  496. <div class="cc_title" :id="'task' + itemTaskIndex">
  497. 任务{{ itemTaskIndex + 1 }}
  498. </div>
  499. <div class="cc_input">
  500. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  501. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  502. itemTaskIndex
  503. ].task
  504. " />
  505. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  506. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  507. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  508. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  509. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  510. </div>
  511. </div>
  512. <div class="remove" v-if="item.taskJson.length > 1 &&
  513. (!unitJson[unitIndex].easy ||
  514. unitJson[unitIndex].easy == 6)
  515. " @click="deleteTask(itemTaskIndex)" style="margin-right: 10px;"></div>
  516. </div>
  517. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2" style="
  518. display: flex;
  519. margin: 20px 0;
  520. flex-direction: row;
  521. justify-content: flex-start;
  522. align-items: center;
  523. ">
  524. <div class="lineTitle">任务描述</div>
  525. <!-- <div class="line"></div> -->
  526. </div>
  527. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2">
  528. <editor-bar style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  529. itemTaskIndex
  530. ].taskDetail
  531. " @change="change"></editor-bar>
  532. <!-- <textarea
  533. rows="6"
  534. class="binfo_input"
  535. placeholder="请输入任务描述"
  536. cols
  537. style="width: 70.5% !important; height: 120px"
  538. v-model="
  539. unitJson[unitIndex].chapterInfo[0].taskJson[
  540. itemTaskIndex
  541. ].taskDetail
  542. "
  543. ></textarea>-->
  544. </div>
  545. </div>
  546. </div>
  547. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  548. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  549. ">
  550. <div style="
  551. display: flex;
  552. margin: 20px 0 20px 0;
  553. flex-direction: row;
  554. justify-content: flex-start;
  555. align-items: center;
  556. ">
  557. <div class="lineTitle">学习内容</div>
  558. <!-- <div class="line"></div> -->
  559. </div>
  560. <div>
  561. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  562. itemTask.chapterData.length == 0
  563. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  564. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  565. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  566. @click="
  567. getChapterData(
  568. $event,
  569. unitIndex,
  570. index,
  571. index1,
  572. item1.type
  573. )
  574. ">
  575. <div class="chapter_upload_o" style="
  576. position: relative;
  577. display: flex;
  578. align-items: center;
  579. ">
  580. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  581. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  582. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  583. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  584. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  585. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  586. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  587. </div>
  588. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  589. </div>
  590. </div>
  591. <div class="chapter_upload_n">
  592. <input v-if="item1.type == 2 ||
  593. item1.type == 3 ||
  594. item1.type == 12 ||
  595. item1.type == 13 ||
  596. item1.type == 7
  597. " v-model="item1.name" :placeholder="item1.name" @change="
  598. updataVideoT(
  599. $event,
  600. unitIndex,
  601. itemTaskIndex,
  602. index1
  603. )
  604. " style="
  605. border: none;
  606. outline: none;
  607. width: 80%;
  608. minwidth: 215px;
  609. z-index: 99;
  610. font-size: 14px;
  611. white-space: nowrap;
  612. overflow: hidden;
  613. text-overflow: ellipsis;
  614. " />
  615. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  616. border: none;
  617. outline: none;
  618. width: 80%;
  619. white-space: nowrap;
  620. overflow: hidden;
  621. text-overflow: ellipsis;
  622. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  623. <input :placeholder="item1.title ? item1.title : '链接'
  624. " v-if="item1.type == 8" style="
  625. border: none;
  626. outline: none;
  627. width: 80%;
  628. white-space: nowrap;
  629. overflow: hidden;
  630. text-overflow: ellipsis;
  631. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  632. </div>
  633. <div class="chapter_upload_ic">
  634. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  635. </div>
  636. <div class="chapter_upload_ud" style="z-index: 99">
  637. <div class="chapter_upload_up" @click="
  638. upCd(
  639. $event,
  640. unitIndex,
  641. index,
  642. itemTaskIndex,
  643. index1
  644. )
  645. "></div>
  646. <div class="chapter_upload_down" @click="
  647. downCd(
  648. $event,
  649. unitIndex,
  650. index,
  651. itemTaskIndex,
  652. index1
  653. )
  654. "></div>
  655. </div>
  656. <div class="chapter_upload_ic_r" @click.stop="
  657. deleteChapterData(
  658. $event,
  659. unitIndex,
  660. index,
  661. index1,
  662. itemTaskIndex
  663. )
  664. ">
  665. <div></div>
  666. </div>
  667. </div>
  668. </div>
  669. </div>
  670. </div>
  671. </div>
  672. <div class="add_info_box">
  673. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  674. 添加文件
  675. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  676. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  677. " />
  678. </button>
  679. <!-- <button class="info_btn" @click="addImg($event)">
  680. 添加视频
  681. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  682. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  683. " />
  684. </button>
  685. <button class="info_btn" @click="addImg($event)">
  686. 添加文档
  687. <input type="file"
  688. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  689. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  690. " />
  691. </button> -->
  692. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  693. 添加图文
  694. </button>
  695. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  696. 添加链接
  697. </button>
  698. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  699. 嵌入代码
  700. </button>
  701. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  702. 添加资源
  703. </button>
  704. <!-- <button class="info_btn" @click="addImg($event)">
  705. 其他附件
  706. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  707. " />
  708. </button> -->
  709. </div>
  710. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  711. itemTaskIndex
  712. ].proVisible
  713. " class="mask">
  714. <div class="progressBox">
  715. <!-- <div id="closePro" class="closeCss">
  716. <img src="../../../assets/icon/close.png" alt />
  717. </div> -->
  718. <div class="lbox">
  719. <img src="../../assets/loading.gif" />上传中,请稍后
  720. </div>
  721. <div style="margin-bottom: 10px">
  722. <span>{{
  723. unitJson[unitIndex].chapterInfo[0].taskJson[
  724. itemTaskIndex
  725. ].isFinishSize
  726. }}M</span>
  727. /
  728. <span>{{
  729. unitJson[unitIndex].chapterInfo[0].taskJson[
  730. itemTaskIndex
  731. ].isAllSize
  732. }}M</span>
  733. </div>
  734. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  735. itemTaskIndex
  736. ].progress
  737. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  738. itemTaskIndex
  739. ].progress
  740. : 0
  741. " style="width: 80%"></el-progress>
  742. </div>
  743. </div>
  744. </div>
  745. <div v-if="unitJson[unitIndex].easy == 1 ||
  746. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  747. ">
  748. <div>
  749. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  750. itemTask.chapterData.length == 0
  751. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  752. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  753. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  754. <div class="chapter_upload" @click="
  755. getChapterData(
  756. $event,
  757. unitIndex,
  758. index,
  759. index1,
  760. item1.type
  761. )
  762. ">
  763. <div class="chapter_upload_t" style="width: 100%"></div>
  764. <div class="chapter_upload_o" style="
  765. position: relative;
  766. display: flex;
  767. align-items: center;
  768. ">
  769. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  770. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  771. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  772. </div>
  773. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  774. </div>
  775. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  776. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  777. </div>
  778. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  779. </div>
  780. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  781. </div>
  782. </div>
  783. <div class="chapter_upload_n">
  784. <span style="
  785. font-size: 14px;
  786. color: rgb(109, 109, 109);
  787. height: 14px;
  788. line-height: 12px;
  789. " v-if="item1.type == 2 ||
  790. item1.type == 3 ||
  791. item1.type == 7
  792. ">{{ item1.text }}-</span>
  793. <input v-if="item1.type == 2 ||
  794. item1.type == 3 ||
  795. item1.type == 7
  796. " v-model="item1.name" :placeholder="item1.name" @change="
  797. updataVideoT(
  798. $event,
  799. unitIndex,
  800. itemTaskIndex,
  801. index1
  802. )
  803. " style="
  804. border: none;
  805. outline: none;
  806. width: 80%;
  807. minwidth: 215px;
  808. z-index: 99;
  809. font-size: 14px;
  810. white-space: nowrap;
  811. overflow: hidden;
  812. text-overflow: ellipsis;
  813. " />
  814. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  815. border: none;
  816. outline: none;
  817. width: 80%;
  818. white-space: nowrap;
  819. overflow: hidden;
  820. text-overflow: ellipsis;
  821. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  822. <input :placeholder="item1.title ? item1.title : '链接'
  823. " v-if="item1.type == 8" style="
  824. border: none;
  825. outline: none;
  826. width: 80%;
  827. white-space: nowrap;
  828. overflow: hidden;
  829. text-overflow: ellipsis;
  830. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  831. </div>
  832. <div class="chapter_upload_ic">
  833. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  834. </div>
  835. <div class="chapter_upload_ud" style="z-index: 99">
  836. <div class="chapter_upload_up" @click="
  837. upCd(
  838. $event,
  839. unitIndex,
  840. index,
  841. itemTaskIndex,
  842. index1
  843. )
  844. "></div>
  845. <div class="chapter_upload_down" @click="
  846. downCd(
  847. $event,
  848. unitIndex,
  849. index,
  850. itemTaskIndex,
  851. index1
  852. )
  853. "></div>
  854. </div>
  855. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  856. deleteChapterData(
  857. $event,
  858. unitIndex,
  859. index,
  860. index1,
  861. itemTaskIndex
  862. )
  863. ">
  864. <div></div>
  865. </div>
  866. </div>
  867. </div>
  868. </div>
  869. </div>
  870. </div>
  871. </div>
  872. <div class="add_info_box" style="margin: 10px 0 0">
  873. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  874. <span style="color: red">*</span>
  875. 教学设计
  876. <input type="file"
  877. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  878. style="display: none" v-if="inputShow" @change="
  879. beforeUpload3(
  880. $event,
  881. unitIndex,
  882. 3,
  883. itemTaskIndex,
  884. '教学设计'
  885. )
  886. " />
  887. </button>
  888. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  889. <span style="color: red">*</span>
  890. 教学课件
  891. <input type="file"
  892. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  893. style="display: none" v-if="inputShow" @change="
  894. beforeUpload3(
  895. $event,
  896. unitIndex,
  897. 3,
  898. itemTaskIndex,
  899. '教学课件'
  900. )
  901. " />
  902. </button>
  903. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  904. 教学视频
  905. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  906. v-if="inputShow" @change="
  907. beforeUpload3(
  908. $event,
  909. unitIndex,
  910. 2,
  911. itemTaskIndex,
  912. '教学视频'
  913. )
  914. " />
  915. </button>
  916. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  917. 教学音频
  918. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  919. beforeUpload3(
  920. $event,
  921. unitIndex,
  922. 2,
  923. itemTaskIndex,
  924. '教学音频'
  925. )
  926. " />
  927. </button>
  928. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  929. 学习单
  930. <input type="file"
  931. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  932. style="display: none" v-if="inputShow" @change="
  933. beforeUpload3(
  934. $event,
  935. unitIndex,
  936. 3,
  937. itemTaskIndex,
  938. '学习单'
  939. )
  940. " />
  941. </button>
  942. </div>
  943. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  944. itemTaskIndex
  945. ].proVisible
  946. " class="mask">
  947. <div class="progressBox">
  948. <!-- <div id="closePro" class="closeCss">
  949. <img src="../../../assets/icon/close.png" alt />
  950. </div> -->
  951. <div class="lbox">
  952. <img src="../../assets/loading.gif" />上传中,请稍后
  953. </div>
  954. <div style="margin-bottom: 10px">
  955. <span>{{
  956. unitJson[unitIndex].chapterInfo[0].taskJson[
  957. itemTaskIndex
  958. ].isFinishSize
  959. }}M</span>
  960. /
  961. <span>{{
  962. unitJson[unitIndex].chapterInfo[0].taskJson[
  963. itemTaskIndex
  964. ].isAllSize
  965. }}M</span>
  966. </div>
  967. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  968. itemTaskIndex
  969. ].progress
  970. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  971. itemTaskIndex
  972. ].progress
  973. : 0
  974. " style="width: 80%"></el-progress>
  975. </div>
  976. </div>
  977. </div>
  978. <div v-if="unitJson[unitIndex].easy != 3 &&
  979. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  980. " style="
  981. flex-direction: row;
  982. justify-content: flex-start;
  983. align-items: center;
  984. ">
  985. <div style="
  986. display: flex;
  987. flex-direction: row;
  988. align-items: center;
  989. margin: 20px 0;
  990. ">
  991. <div class="lineTitle">
  992. {{
  993. !unitJson[unitIndex].easy ||
  994. unitJson[unitIndex].easy == 6 ||
  995. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  996. ? "练习内容"
  997. : "评价内容"
  998. }}
  999. </div>
  1000. <!-- <div class="line" style="width: 90%"></div> -->
  1001. </div>
  1002. </div>
  1003. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1004. " class="toolChoose">
  1005. <div class="tools">
  1006. <div class="leftTools" style="
  1007. width: 100%;
  1008. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1009. <div>
  1010. <textarea rows="2" type="text" placeholder="添加工具描述" class="binfo_input"
  1011. style="margin: 0 0 20px 0; width: 100% !important"
  1012. v-model="itemTool.toolDetail"></textarea>
  1013. </div>
  1014. <div style="
  1015. display: flex;
  1016. flex-direction: row;
  1017. align-items: baseline;
  1018. flex-wrap: nowrap;
  1019. justify-content: flex-start;
  1020. position: relative;
  1021. ">
  1022. <div style="margin-right: 20px; font-weight: bold">
  1023. 步骤 {{ toolIndex + 1 }} :
  1024. </div>
  1025. <div class="chooseWho">
  1026. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1027. " @click="(itemTool.toolType = 0), $forceUpdate()">
  1028. 互动类
  1029. </div>
  1030. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1031. " @click="(itemTool.toolType = 1), $forceUpdate()">
  1032. 思维类
  1033. </div>
  1034. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1035. " @click="(itemTool.toolType = 6), $forceUpdate()">
  1036. 协作类
  1037. </div>
  1038. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1039. " @click="(itemTool.toolType = 2), $forceUpdate()">
  1040. 测评类
  1041. </div>
  1042. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1043. " @click="(itemTool.toolType = 7), $forceUpdate()">
  1044. 评价类
  1045. </div>
  1046. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1047. " @click="(itemTool.toolType = 3), $forceUpdate()">
  1048. 学科类
  1049. </div>
  1050. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1051. " @click="(itemTool.toolType = 5), $forceUpdate()">
  1052. 学科类
  1053. </div>
  1054. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1055. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1056. 其他
  1057. </div> -->
  1058. </div>
  1059. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1060. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
  1061. </div>
  1062. <div style="min-height: 163px">
  1063. <div class="toolSort" v-if="itemTool.toolType == 0">
  1064. <!-- <div class="tool">
  1065. <div
  1066. class="whiteBIcon"
  1067. @click="addTools(8, itemTaskIndex, toolIndex)"
  1068. >
  1069. <img src="../../assets/icon/secondToolList/library.png" alt />
  1070. <div style="margin: 5px 0">素材库</div>
  1071. </div>
  1072. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1073. <img
  1074. src="../../assets/icon/checkNo.png"
  1075. alt
  1076. v-if="itemTool.tool.indexOf(8) == -1"
  1077. />
  1078. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1079. alt /><span>已选择</span></div>
  1080. </div>
  1081. </div>-->
  1082. <!-- <div class="tool">
  1083. <div
  1084. class="whiteBIcon"
  1085. @click="addTools(17, itemTaskIndex, toolIndex)"
  1086. >
  1087. <img
  1088. src="../../assets/icon/secondToolList/library.png"
  1089. alt
  1090. />
  1091. <div style="margin: 5px 0">学习资料</div>
  1092. </div>
  1093. <div
  1094. class="check"
  1095. @click="addTools(17, itemTaskIndex, toolIndex)"
  1096. >
  1097. <img
  1098. src="../../assets/icon/checkNo.png"
  1099. alt
  1100. v-if="itemTool.tool.indexOf(17) == -1"
  1101. />
  1102. <img
  1103. src="../../assets/icon/checkedIs.png"
  1104. alt
  1105. v-else
  1106. />
  1107. </div>10
  1108. </div> -->
  1109. <div class="tool">
  1110. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  1111. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1112. <div style="margin: 5px 0">倒计时</div>
  1113. </div>
  1114. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1115. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  1116. <div class="checkDiv" v-else>
  1117. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1118. </div>
  1119. </div>
  1120. </div>
  1121. <div class="tool">
  1122. <div class="whiteBIcon" @click="addTools(65, itemTaskIndex, toolIndex)">
  1123. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  1124. <div style="margin: 5px 0">挑人</div>
  1125. </div>
  1126. <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1127. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(65) == -1" />
  1128. <div class="checkDiv" v-else>
  1129. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1130. </div>
  1131. </div>
  1132. </div>
  1133. <!-- <div class="tool">
  1134. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1135. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1136. <div style="margin: 5px 0">学生分组</div>
  1137. </div>
  1138. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1139. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -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">
  1146. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1147. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1148. <div style="margin: 5px 0">交互视频</div>
  1149. </div>
  1150. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1151. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1152. <div class="checkDiv" v-else>
  1153. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1154. </div>
  1155. </div>
  1156. </div>
  1157. </div>
  1158. <div class="toolSort" v-if="itemTool.toolType == 1">
  1159. <div class="tool">
  1160. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  1161. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1162. <div style="margin: 5px 0">思维网格</div>
  1163. </div>
  1164. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1165. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  1166. <div class="checkDiv" v-else>
  1167. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1168. </div>
  1169. </div>
  1170. </div>
  1171. <div class="tool">
  1172. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1173. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1174. <div style="margin: 5px 0">电子白板</div>
  1175. </div>
  1176. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1177. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -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">
  1184. <div
  1185. class="whiteBIcon"
  1186. @click="addTools(2, itemTaskIndex, toolIndex)"
  1187. >
  1188. <img
  1189. src="../../assets/icon/secondToolList/note.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">便签</div>
  1193. </div>
  1194. <div
  1195. class="check"
  1196. @click="addTools(2, itemTaskIndex, toolIndex)"
  1197. >
  1198. <img
  1199. src="../../assets/icon/checkNo.png"
  1200. alt
  1201. v-if="itemTool.tool.indexOf(2) == -1"
  1202. />
  1203. <div class="checkDiv" v-else>
  1204. <img
  1205. src="../../assets/icon/checkedIs.png"
  1206. alt
  1207. /><span>已选择</span>
  1208. </div>
  1209. </div>
  1210. </div> -->
  1211. <!-- <div class="tool">
  1212. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1213. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1214. <div style="margin: 5px 0">协同文档</div>
  1215. </div>
  1216. <div
  1217. class="check"
  1218. @click="addTools(6, itemTaskIndex, toolIndex)"
  1219. >
  1220. <img
  1221. src="../../assets/icon/checkNo.png"
  1222. alt
  1223. v-if="itemTool.tool.indexOf(6) == -1"
  1224. />
  1225. <div class="checkDiv" v-else>
  1226. <img
  1227. src="../../assets/icon/checkedIs.png"
  1228. alt
  1229. /><span>已选择</span>
  1230. </div>
  1231. </div>
  1232. </div> -->
  1233. <div class="tool">
  1234. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1235. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1236. <div style="margin: 5px 0">文档</div>
  1237. </div>
  1238. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1239. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1240. <div class="checkDiv" v-else>
  1241. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1242. </div>
  1243. </div>
  1244. </div>
  1245. <div class="tool">
  1246. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1247. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1248. <div style="margin: 5px 0">思维导图</div>
  1249. </div>
  1250. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1251. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1252. <div class="checkDiv" v-else>
  1253. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1254. </div>
  1255. </div>
  1256. </div>
  1257. <div class="tool">
  1258. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1259. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1260. <div style="margin: 5px 0">表格</div>
  1261. </div>
  1262. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1263. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1264. <div class="checkDiv" v-else>
  1265. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1266. </div>
  1267. </div>
  1268. </div>
  1269. </div>
  1270. <div class="toolSort" v-if="itemTool.toolType == 6">
  1271. <div class="tool">
  1272. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1273. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1274. <div style="margin: 5px 0">学生分组</div>
  1275. </div>
  1276. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1277. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1278. <div class="checkDiv" v-else>
  1279. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1280. </div>
  1281. </div>
  1282. </div>
  1283. </div>
  1284. <div class="toolSort" v-if="itemTool.toolType == 2">
  1285. <!-- <div class="tool">
  1286. <div
  1287. class="whiteBIcon"
  1288. @click="addTools(5, itemTaskIndex, toolIndex)"
  1289. >
  1290. <img
  1291. src="../../assets/icon/thirdToolList/score.png"
  1292. alt
  1293. />
  1294. <div style="margin: 5px 0">量规评分</div>
  1295. </div>
  1296. <div
  1297. class="check"
  1298. @click="addTools(5, itemTaskIndex, toolIndex)"
  1299. >
  1300. <img
  1301. src="../../assets/icon/checkNo.png"
  1302. alt
  1303. v-if="itemTool.tool.indexOf(5) == -1"
  1304. />
  1305. <img
  1306. src="../../assets/icon/checkedIs.png"
  1307. alt
  1308. v-else
  1309. />
  1310. </div>
  1311. </div>-->
  1312. <div class="tool">
  1313. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1314. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1315. <div style="margin: 5px 0">问卷调查</div>
  1316. </div>
  1317. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1318. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1319. <div class="checkDiv" v-else>
  1320. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1321. </div>
  1322. </div>
  1323. </div>
  1324. <div class="tool">
  1325. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1326. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1327. <div style="margin: 5px 0">选择题</div>
  1328. </div>
  1329. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1330. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1331. <div class="checkDiv" v-else>
  1332. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1333. </div>
  1334. </div>
  1335. </div>
  1336. <div class="tool">
  1337. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1338. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1339. <div style="margin: 5px 0">问答工具</div>
  1340. </div>
  1341. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1342. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1343. <div class="checkDiv" v-else>
  1344. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1345. </div>
  1346. </div>
  1347. </div>
  1348. <div class="tool">
  1349. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1350. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1351. <div style="margin: 5px 0">作业提交</div>
  1352. </div>
  1353. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1354. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1355. <div class="checkDiv" v-else>
  1356. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1357. </div>
  1358. </div>
  1359. </div>
  1360. <div class="tool">
  1361. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  1362. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1363. <div style="margin: 5px 0">批量上传</div>
  1364. </div>
  1365. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1366. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -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="openTools(itemTaskIndex, 40, toolIndex)">
  1374. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1375. <div style="margin: 5px 0">个人评价</div>
  1376. </div>
  1377. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1378. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1379. <div class="checkDiv" v-else>
  1380. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1381. </div>
  1382. </div>
  1383. </div> -->
  1384. <div class="tool">
  1385. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1386. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1387. <div style="margin: 5px 0">选择填空</div>
  1388. </div>
  1389. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1390. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1391. <div class="checkDiv" v-else>
  1392. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1393. </div>
  1394. </div>
  1395. </div>
  1396. <div class="tool">
  1397. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1398. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1399. <div style="margin: 5px 0">连词成句</div>
  1400. </div>
  1401. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1402. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1403. <div class="checkDiv" v-else>
  1404. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1405. </div>
  1406. </div>
  1407. </div>
  1408. <!-- <div class="tool">
  1409. <div
  1410. class="whiteBIcon"
  1411. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1412. >
  1413. <img
  1414. src="../../assets/icon/thirdToolList/mp3.png"
  1415. alt
  1416. />
  1417. <div style="margin: 5px 0">上传音频</div>
  1418. </div>
  1419. <div
  1420. class="check"
  1421. @click="addTools(42, itemTaskIndex, toolIndex)"
  1422. >
  1423. <img
  1424. src="../../assets/icon/checkNo.png"
  1425. alt
  1426. v-if="itemTool.tool.indexOf(42) == -1"
  1427. />
  1428. <img
  1429. src="../../assets/icon/checkedIs.png"
  1430. alt
  1431. v-else
  1432. />
  1433. </div>
  1434. </div> -->
  1435. </div>
  1436. <div class="toolSort" v-if="itemTool.toolType == 3">
  1437. <div class="tool">
  1438. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1439. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1440. <div style="margin: 5px 0">训练平台</div>
  1441. </div>
  1442. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1443. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  1444. <div class="checkDiv" v-else>
  1445. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1446. </div>
  1447. </div>
  1448. </div>
  1449. <div class="tool">
  1450. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1451. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1452. <div style="margin: 5px 0">编程平台</div>
  1453. </div>
  1454. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1455. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -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="addTools(22, itemTaskIndex, toolIndex)">
  1463. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1464. <div style="margin: 5px 0">AI体验</div>
  1465. </div>
  1466. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1467. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1468. <div class="checkDiv" v-else>
  1469. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1470. </div>
  1471. </div>
  1472. </div>
  1473. <div class="tool">
  1474. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1475. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1476. <div style="margin: 5px 0">Python</div>
  1477. </div>
  1478. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1479. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  1480. <div class="checkDiv" v-else>
  1481. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1482. </div>
  1483. </div>
  1484. </div>
  1485. <div class="tool">
  1486. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1487. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1488. <div style="margin: 5px 0">AI平台</div>
  1489. </div>
  1490. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1491. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  1492. <div class="checkDiv" v-else>
  1493. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1494. </div>
  1495. </div>
  1496. </div>
  1497. <div class="tool">
  1498. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1499. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1500. <div style="margin: 5px 0">源码编辑</div>
  1501. </div>
  1502. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1503. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  1504. <div class="checkDiv" v-else>
  1505. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1506. </div>
  1507. </div>
  1508. </div>
  1509. <div class="tool">
  1510. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  1511. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1512. <div style="margin: 5px 0">CocoPi</div>
  1513. </div>
  1514. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1515. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  1516. <div class="checkDiv" v-else>
  1517. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1518. </div>
  1519. </div>
  1520. </div>
  1521. <div class="tool">
  1522. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  1523. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1524. <div style="margin: 5px 0">海龟编程</div>
  1525. </div>
  1526. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1527. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  1528. <div class="checkDiv" v-else>
  1529. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1530. </div>
  1531. </div>
  1532. </div>
  1533. </div>
  1534. <div class="toolSort" v-if="itemTool.toolType == 7">
  1535. <div class="tool">
  1536. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1537. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1538. <div style="margin: 5px 0">个人评价</div>
  1539. </div>
  1540. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1541. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1542. <div class="checkDiv" v-else>
  1543. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1544. </div>
  1545. </div>
  1546. </div>
  1547. </div>
  1548. <div class="toolSort" v-if="itemTool.toolType == 5">
  1549. <div class="tool">
  1550. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1551. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1552. <div style="margin: 5px 0">翻译</div>
  1553. </div>
  1554. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1555. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1556. <div class="checkDiv" v-else>
  1557. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1558. </div>
  1559. </div>
  1560. </div>
  1561. <div class="tool">
  1562. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1563. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  1564. <div style="margin: 5px 0">魔盒识字</div>
  1565. </div>
  1566. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1567. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1568. <div class="checkDiv" v-else>
  1569. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1570. </div>
  1571. </div>
  1572. </div>
  1573. <div class="tool">
  1574. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1575. <img src="../../assets/icon/secondToolList/24game.png" alt />
  1576. <div style="margin: 5px 0">24点</div>
  1577. </div>
  1578. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1579. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1580. <div class="checkDiv" v-else>
  1581. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1582. </div>
  1583. </div>
  1584. </div>
  1585. <div class="tool">
  1586. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1587. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1588. <div style="margin: 5px 0">数学画板</div>
  1589. </div>
  1590. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1591. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1592. <div class="checkDiv" v-else>
  1593. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1594. </div>
  1595. </div>
  1596. </div>
  1597. <div class="tool">
  1598. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1599. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1600. <div style="margin: 5px 0">GeoGebra</div>
  1601. </div>
  1602. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1603. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1604. <div class="checkDiv" v-else>
  1605. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1606. </div>
  1607. </div>
  1608. </div>
  1609. <div class="tool">
  1610. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  1611. <img src="../../assets/icon/fourthToolList/car.png" alt />
  1612. <div style="margin: 5px 0">模拟驾驶</div>
  1613. </div>
  1614. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  1615. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  1616. <div class="checkDiv" v-else>
  1617. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1618. </div>
  1619. </div>
  1620. </div>
  1621. <div class="tool">
  1622. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  1623. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  1624. <div style="margin: 5px 0">路径搜索</div>
  1625. </div>
  1626. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  1627. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  1628. <div class="checkDiv" v-else>
  1629. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1630. </div>
  1631. </div>
  1632. </div>
  1633. <div class="tool">
  1634. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  1635. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  1636. <div style="margin: 5px 0">深度学习</div>
  1637. </div>
  1638. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  1639. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  1640. <div class="checkDiv" v-else>
  1641. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1642. </div>
  1643. </div>
  1644. </div>
  1645. <div class="tool">
  1646. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  1647. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  1648. <div style="margin: 5px 0">全历史</div>
  1649. </div>
  1650. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  1651. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  1652. <div class="checkDiv" v-else>
  1653. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1654. </div>
  1655. </div>
  1656. </div>
  1657. </div>
  1658. <div class="toolSort" v-if="itemTool.toolType == 4">
  1659. <div class="tool">
  1660. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1661. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  1662. <div style="margin: 5px 0">课程设计</div>
  1663. </div>
  1664. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1665. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1666. <div class="checkDiv" v-else>
  1667. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1668. </div>
  1669. </div>
  1670. </div>
  1671. <div class="tool">
  1672. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1673. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  1674. <div style="margin: 5px 0">目标管理</div>
  1675. </div>
  1676. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1677. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1678. <div class="checkDiv" v-else>
  1679. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1680. </div>
  1681. </div>
  1682. </div>
  1683. <!-- <div class="tool">
  1684. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1685. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  1686. <div style="margin: 5px 0">汉字宫</div>
  1687. </div>
  1688. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1689. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1690. <div class="checkDiv" v-else>
  1691. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1692. </div>
  1693. </div>
  1694. </div> -->
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1699. <div class="addToolImg">
  1700. <img src="../../assets/icon/add.png" alt />
  1701. </div>
  1702. <div>添加工具</div>
  1703. </div>
  1704. </div>
  1705. </div>
  1706. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  1707. unitJson[unitIndex].easy == 4
  1708. " class="toolChoose">
  1709. <div class="tools">
  1710. <div class="leftTools" style="width: 100%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  1711. :key="toolIndex">
  1712. <div>
  1713. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1714. style="margin: 0 0 20px 0; width: 100% !important"
  1715. v-model="itemTool.toolDetail"></textarea>
  1716. </div>
  1717. <div style="
  1718. display: flex;
  1719. flex-direction: row;
  1720. align-items: baseline;
  1721. flex-wrap: nowrap;
  1722. justify-content: flex-start;
  1723. position: relative;
  1724. ">
  1725. <div style="margin-right: 20px; font-weight: bold">
  1726. 步骤 {{ toolIndex + 1 }} :
  1727. </div>
  1728. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1729. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  1730. </div>
  1731. <div style="min-height: 163px">
  1732. <div class="toolSort">
  1733. <div class="tool">
  1734. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1735. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1736. <div style="margin: 5px 0">电子白板</div>
  1737. </div>
  1738. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1739. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1740. <div class="checkDiv" v-else>
  1741. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1742. </div>
  1743. </div>
  1744. </div>
  1745. <div class="tool">
  1746. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1747. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1748. <div style="margin: 5px 0">文档</div>
  1749. </div>
  1750. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1751. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1752. <div class="checkDiv" v-else>
  1753. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1754. </div>
  1755. </div>
  1756. </div>
  1757. <div class="tool">
  1758. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1759. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1760. <div style="margin: 5px 0">思维导图</div>
  1761. </div>
  1762. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1763. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1764. <div class="checkDiv" v-else>
  1765. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1766. </div>
  1767. </div>
  1768. </div>
  1769. <div class="tool">
  1770. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1771. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1772. <div style="margin: 5px 0">问卷调查</div>
  1773. </div>
  1774. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1775. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1776. <div class="checkDiv" v-else>
  1777. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1778. </div>
  1779. </div>
  1780. </div>
  1781. <div class="tool">
  1782. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1783. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1784. <div style="margin: 5px 0">选择题</div>
  1785. </div>
  1786. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1787. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1788. <div class="checkDiv" v-else>
  1789. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1790. </div>
  1791. </div>
  1792. </div>
  1793. <div class="tool">
  1794. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1795. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1796. <div style="margin: 5px 0">问答工具</div>
  1797. </div>
  1798. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1799. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1800. <div class="checkDiv" v-else>
  1801. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1802. </div>
  1803. </div>
  1804. </div>
  1805. <div class="tool">
  1806. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1807. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1808. <div style="margin: 5px 0">作业提交</div>
  1809. </div>
  1810. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1811. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1812. <div class="checkDiv" v-else>
  1813. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1814. </div>
  1815. </div>
  1816. </div>
  1817. <div class="tool">
  1818. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1819. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1820. <div style="margin: 5px 0">批量上传</div>
  1821. </div>
  1822. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1823. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1824. <div class="checkDiv" v-else>
  1825. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1826. </div>
  1827. </div>
  1828. </div>
  1829. <div class="tool">
  1830. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1831. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1832. <div style="margin: 5px 0">选择填空</div>
  1833. </div>
  1834. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1835. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1836. <div class="checkDiv" v-else>
  1837. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1838. </div>
  1839. </div>
  1840. </div>
  1841. <div class="tool">
  1842. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1843. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1844. <div style="margin: 5px 0">连词成句</div>
  1845. </div>
  1846. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1847. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1848. <div class="checkDiv" v-else>
  1849. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1850. </div>
  1851. </div>
  1852. </div>
  1853. <div class="tool">
  1854. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1855. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1856. <div style="margin: 5px 0">表格</div>
  1857. </div>
  1858. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1859. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1860. <div class="checkDiv" v-else>
  1861. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1862. </div>
  1863. </div>
  1864. </div>
  1865. </div>
  1866. </div>
  1867. </div>
  1868. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  1869. <div class="addToolImg">
  1870. <img src="../../assets/icon/add.png" alt />
  1871. </div>
  1872. <div>添加工具</div>
  1873. </div>
  1874. </div>
  1875. </div>
  1876. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  1877. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  1878. " class="toolChoose">
  1879. <div class="tools">
  1880. <div class="leftTools" style="
  1881. width: 100%;
  1882. padding: 0 0 15px 0;
  1883. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1884. <div style="min-height: 163px">
  1885. <div class="toolSort">
  1886. <div class="tool">
  1887. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1888. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1889. <div style="margin: 5px 0">批量上传</div>
  1890. </div>
  1891. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1892. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1893. <div class="checkDiv" v-else>
  1894. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1895. </div>
  1896. </div>
  1897. </div>
  1898. </div>
  1899. </div>
  1900. </div>
  1901. </div>
  1902. </div>
  1903. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  1904. <div class="elist_title">
  1905. <div style="
  1906. display: flex;
  1907. flex-direction: row;
  1908. align-items: center;
  1909. margin: 20px 0;
  1910. ">
  1911. <div class="lineTitle">评价设置</div>
  1912. <!-- <div class="line" style="width: 90%"></div> -->
  1913. </div>
  1914. </div>
  1915. <div class="mbCss">
  1916. <div class="pjCss">
  1917. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  1918. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  1919. <span>评价名称:</span>
  1920. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  1921. <span>评星等级:</span>
  1922. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  1923. disabled></el-rate>
  1924. <div class="remove" @click="
  1925. deletEList(unitIndex, itemTaskIndex, eIndex)
  1926. "></div>
  1927. <div class="elist_inptu_text">
  1928. <span>评价描述:</span>
  1929. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  1930. </div>
  1931. <div class="elist_inptu_text" v-if="evalua">
  1932. <span>目标:</span>
  1933. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  1934. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  1935. @change="forceUpdate()">
  1936. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  1937. :value="e.name">
  1938. </el-option>
  1939. </el-select> -->
  1940. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  1941. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  1942. </div>
  1943. </div>
  1944. </div>
  1945. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  1946. style="margin: 35px 35px 0 0">
  1947. <div class="addToolImg">
  1948. <img src="../../assets/icon/add.png" alt />
  1949. </div>
  1950. <div>添加</div>
  1951. </div>
  1952. </div>
  1953. <div v-if="evalua" style="
  1954. border: 1px solid #e5e5e5;
  1955. width: 55%;
  1956. box-shadow: 3px 1px 15px 3px #e0e0e0;
  1957. " class="evaCss">
  1958. <!-- <div class="e_add_top">
  1959. <div class="e_add_title">
  1960. <span>当前使用目标管理</span>
  1961. <span>{{ eTitle }}</span>
  1962. <img src="../../assets/line.png" class="cru_line" style="
  1963. width: 125px;
  1964. height: 20px;
  1965. bottom: -10px;
  1966. left: 155px;
  1967. " />
  1968. </div>
  1969. </div> -->
  1970. <div class="e_add_content" style="width: 100%">
  1971. <div class="e_add_list_pbox" style="width: 100%">
  1972. <div class="e_add_list_pbox_title">
  1973. <span class="type_title">切换模式</span>
  1974. <div class="type_content">
  1975. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  1976. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  1977. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  1978. </div>
  1979. </div>
  1980. <div class="e_add_list_pbox_content">
  1981. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  1982. " v-if="typeMode == 1"></Mind>
  1983. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  1984. </Sunburst>
  1985. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  1986. v-if="typeMode == 3"></SeeBoard>
  1987. </div>
  1988. </div>
  1989. </div>
  1990. </div>
  1991. </div>
  1992. </div>
  1993. <div class="funBlock" style="padding: 0">
  1994. <div class="fold" @click="fold(itemTaskIndex, $event)">
  1995. <div class="arrow" :class="{ arrowZ: itemTask.isFold === 1 }">
  1996. </div>
  1997. <div>{{ itemTask.isFold === 1 ? '展开' : '折叠' }}</div>
  1998. </div>
  1999. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2000. <div>展开</div>
  2001. <div class="arrow">
  2002. <img src="../../assets/icon/expand.png" alt />
  2003. </div>
  2004. </div> -->
  2005. </div>
  2006. </div>
  2007. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2008. <div>
  2009. <img src="../../assets/icon/new/addStage.png" alt />
  2010. <span>添加任务</span>
  2011. </div>
  2012. </div>
  2013. </div>
  2014. </div>
  2015. </div>
  2016. </div>
  2017. </div>
  2018. <div style="
  2019. width: calc(100% - 20px);
  2020. background: rgb(255, 255, 255);
  2021. border-radius: 10px;
  2022. " v-if="this.steps == 4">
  2023. <div class="basic_box_success">
  2024. <div class="right_img">
  2025. <img src="../../assets/icon/right.png" alt />
  2026. </div>
  2027. <div style="font-weight: bold">成功</div>
  2028. <!-- <div>您的课程编号</div>
  2029. <div class="number">{{ number }}</div>-->
  2030. <!-- <div class="success_button">
  2031. <div class="look_course" @click="isNoFinsh">
  2032. 邀请老师协同编辑
  2033. </div>
  2034. <div class="attend_others" @click="goCourse">预览课程</div>
  2035. </div> -->
  2036. </div>
  2037. </div>
  2038. <div class="info_btnBox">
  2039. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2040. goTo(
  2041. '/course?userid=' +
  2042. userid +
  2043. '&oid=' +
  2044. oid +
  2045. '&org=' +
  2046. org +
  2047. '&role=' +
  2048. role
  2049. )
  2050. ">
  2051. 返回课程
  2052. </button>
  2053. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  2054. {{ steps == 4 ? "返回课程" : "上一步" }}
  2055. </button>
  2056. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2057. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2058. {{ steps == 3 ? "确认上传" : "下一步" }}
  2059. </button>
  2060. </div>
  2061. </div>
  2062. </div>
  2063. </div>
  2064. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2065. class="dialog_diy2 customWidth">
  2066. <div>请复制该链接邀请协同编辑</div>
  2067. <div>http://www.boomyon.com/index-zhang.com</div>
  2068. <span slot="footer" class="dialog-footer">
  2069. <el-button type="primary">复制链接分享</el-button>
  2070. <el-button @click="dialogVisible = false">取消</el-button>
  2071. </span>
  2072. </el-dialog>
  2073. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2074. :before-close="handleClose" class="dialog_diy2 customWidth">
  2075. <el-form>
  2076. <el-form-item label="文档标题">
  2077. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2078. </el-form-item>
  2079. <div>文档简介</div>
  2080. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2081. </el-form>
  2082. <span slot="footer" class="dialog-footer">
  2083. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2084. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2085. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2086. </span>
  2087. </el-dialog>
  2088. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2089. :before-close="handleClose" class="dialog_diy">
  2090. <el-form>
  2091. <el-form-item label="文档标题">
  2092. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2093. </el-form-item>
  2094. <div>文档内容</div>
  2095. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2096. </el-form>
  2097. <span slot="footer" class="dialog-footer">
  2098. <el-button @click="clearChoose">取 消</el-button>
  2099. <el-button type="primary" @click="wordNext()">确定</el-button>
  2100. </span>
  2101. </el-dialog>
  2102. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2103. :before-close="handleClose" class="dialog_diy">
  2104. <el-form>
  2105. <el-form-item label="文本标题">
  2106. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2107. </el-form-item>
  2108. <div>富文本内容</div>
  2109. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2110. </el-form>
  2111. <span slot="footer" class="dialog-footer">
  2112. <el-button @click="clearAttText">取 消</el-button>
  2113. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2114. </span>
  2115. </el-dialog>
  2116. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2117. :before-close="handleClose" class="dialog_diy lineCss">
  2118. <el-form>
  2119. <el-form-item label="标题" :label-width="formLabelWidth">
  2120. <span>
  2121. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2122. </span>
  2123. </el-form-item>
  2124. <el-form-item label="链接" :label-width="formLabelWidth">
  2125. <span>
  2126. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2127. </span>
  2128. </el-form-item>
  2129. </el-form>
  2130. <span slot="footer" class="dialog-footer">
  2131. <el-button @click="clearLine">取 消</el-button>
  2132. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2133. </span>
  2134. </el-dialog>
  2135. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="100%"
  2136. :before-close="handleClose" class="dialog_diy source_diy">
  2137. <div>
  2138. <sourceDialog :sourceData="sourceData"></sourceDialog>
  2139. </div>
  2140. <span slot="footer" class="dialog-footer">
  2141. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2142. <el-button type="primary" @click="addSource">确定</el-button>
  2143. </span>
  2144. </el-dialog>
  2145. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2146. :before-close="handleClose" class="addNewPP customWidth">
  2147. <div class="people">
  2148. <div class="people_top">
  2149. <div class="people_nav">选择成员</div>
  2150. <div class="people_top_right">
  2151. <div class="people_search">
  2152. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2153. <div class="search_img" @click="searchStudent">
  2154. <img src="../../assets/icon/search.png" alt />
  2155. </div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. <el-checkbox-group v-model="checkboxList" class="people_name">
  2160. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2161. "暂无学生可选" }}</el-checkbox>
  2162. </el-checkbox-group>
  2163. </div>
  2164. <span slot="footer" class="dialog-footer">
  2165. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2166. <el-button type="primary" @click="isAddPP">确定</el-button>
  2167. </span>
  2168. </el-dialog>
  2169. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  2170. :before-close="handleClose" class="addNewPP">
  2171. <div class="people" style="height: 300px">
  2172. <div class="people_top">
  2173. <div class="people_top_right">
  2174. <div class="people_search">
  2175. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  2176. <el-option label="全部" value=""></el-option>
  2177. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
  2178. :value="item.id"></el-option>
  2179. </el-select>
  2180. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  2181. <!-- @click="getClass()"
  2182. @keyup.enter.native="getClass()"
  2183. -->
  2184. <div class="search_img">
  2185. <img src="../../assets/icon/search.png" alt />
  2186. </div>
  2187. </div>
  2188. </div>
  2189. <div class="people_nav">选择班级</div>
  2190. </div>
  2191. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
  2192. v-if="grade2.length">
  2193. <div v-for="item in grade2" :key="item.id" class="p_box">
  2194. <el-checkbox :label="item.id">
  2195. {{ item.name }}
  2196. </el-checkbox>
  2197. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  2198. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  2199. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  2200. @click="OpenInviteD(item.id)">随机码设置</div>
  2201. <img src="../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  2202. </div>
  2203. </el-checkbox-group>
  2204. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  2205. </div>
  2206. <span slot="footer" class="dialog-footer">
  2207. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2208. <el-button type="primary" @click="isAddClass">确定</el-button>
  2209. </span>
  2210. </el-dialog>
  2211. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2212. :before-close="handleClose" class="addNewPP customWidth">
  2213. <div class="people">
  2214. <div class="people_top">
  2215. <div class="people_top_right">
  2216. <div class="people_search">
  2217. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2218. <div class="search_img" @click="getTeacher">
  2219. <img src="../../assets/icon/search.png" alt />
  2220. </div>
  2221. </div>
  2222. </div>
  2223. <div class="people_nav">选择成员</div>
  2224. </div>
  2225. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2226. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2227. <div class="t_j_box">
  2228. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2229. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2230. </el-tooltip>
  2231. <el-tooltip placement="top" :content="item.username">
  2232. <span>{{ item.username }}</span>
  2233. </el-tooltip>
  2234. <el-tooltip placement="top" :content="item.school">
  2235. <span>{{ item.school }}</span>
  2236. </el-tooltip>
  2237. </div>
  2238. </el-checkbox>
  2239. </el-checkbox-group>
  2240. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2241. </div>
  2242. <span slot="footer" class="dialog-footer">
  2243. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2244. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2245. </span>
  2246. </el-dialog>
  2247. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2248. :before-close="handleClose" class="dialog_diy">
  2249. <div>
  2250. <div class="a_add_title" style="
  2251. display: flex;
  2252. flex-direction: row;
  2253. align-items: center;
  2254. justify-content: center;
  2255. ">
  2256. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2257. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2258. </div>
  2259. <div class="a_addBox">
  2260. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2261. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2262. <div class="a_add_checkType">
  2263. <span :class="{
  2264. active:
  2265. askJson.askJson[index1].type == '1' ||
  2266. !askJson.askJson[index1].type,
  2267. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2268. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2269. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2270. </div>
  2271. <div class="a_add_head">
  2272. <div style="display: flex;align-items: center;">
  2273. {{ index1 + 1 + "、" }}
  2274. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2275. " placeholder="请输入题目"></textarea>
  2276. </div>
  2277. <div class="a_add_head_div">
  2278. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2279. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2280. </el-button>
  2281. </div>
  2282. </div>
  2283. <div class="a_add_body">
  2284. <div class="a_add_input" style="flex-direction: column;">
  2285. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2286. style=" margin: 20px 10px 0 0;display: flex;align-items:center;">
  2287. <div style="margin-right: 10px">
  2288. 选项{{ checkIndex + 1 }}
  2289. </div>
  2290. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2291. " placeholder="请输入选项" style="width: 300px;"></textarea>
  2292. </div>
  2293. </div>
  2294. <div class="a_add_body_div">
  2295. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2296. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2297. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2298. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2299. </el-button>
  2300. </div>
  2301. </div>
  2302. </div>
  2303. </div>
  2304. </div>
  2305. <span slot="footer" class="dialog-footer">
  2306. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2307. <el-button type="primary" @click="addAsk">确 定</el-button>
  2308. </span>
  2309. </el-dialog>
  2310. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2311. :before-close="handleClose" class="dialog_diy">
  2312. <div>
  2313. <!-- <div class="a_add_title" style="
  2314. display: flex;
  2315. flex-direction: row;
  2316. align-items: center;
  2317. justify-content: center;
  2318. ">
  2319. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2320. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2321. </div> -->
  2322. <div class="a_addBox">
  2323. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2324. 请输入题目内容
  2325. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption"
  2326. style="margin-left: 10px">智能粘贴</button>
  2327. </div>
  2328. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2329. <div class="a_add_checkType">
  2330. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2331. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2332. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2333. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2334. </div>
  2335. <div class="a_add_head">
  2336. <div class="timuUpImg">
  2337. <div style="display: flex;align-items: center;">
  2338. {{ index1 + 1 + "、" }}
  2339. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2340. placeholder="请输入题目">
  2341. </el-input> -->
  2342. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2343. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"></textarea>
  2344. </div>
  2345. <div class="xzUpImg" @click.stop="addImg($event)">
  2346. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2347. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2348. </div>
  2349. </div>
  2350. <div class="a_add_head_div">
  2351. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  2352. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2353. </el-button>
  2354. </div>
  2355. </div>
  2356. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2357. testJson.testJson[index1].timuList.length
  2358. ">
  2359. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2360. @click.stop="previewImg(timg.src)">
  2361. <img :src="timg.src" alt="" />
  2362. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2363. <img src="../../assets/icon/delete.png" alt="" />
  2364. </div>
  2365. </div>
  2366. </div>
  2367. <div class="a_add_body">
  2368. <div class="a_add_input a_add_input_choice">
  2369. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  2370. <div class="radioBox">
  2371. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2372. .testItem" :key="checkIndex" :label="checkIndex">
  2373. <div style="margin-right: 10px">
  2374. 选项{{ checkIndex + 1 }}
  2375. </div>
  2376. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2377. testJson.testJson[index1].checkList[checkIndex]
  2378. .imgType &&
  2379. testJson.testJson[index1].checkList[checkIndex]
  2380. .imgType == 1
  2381. ">
  2382. <div class="inImg" @click.stop="
  2383. previewImg(
  2384. testJson.testJson[index1].checkList[checkIndex]
  2385. .src
  2386. )
  2387. ">
  2388. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2389. .src
  2390. " lazy />
  2391. <!-- <img :src="
  2392. testJson.testJson[index1].checkList[checkIndex]
  2393. .src
  2394. " alt="" /> -->
  2395. </div>
  2396. </div>
  2397. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2398. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"></textarea>
  2399. <div class="xzUpImg" @click.stop="addImg($event)">
  2400. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2401. <input type="file" accept="image/*" style="display: none"
  2402. @change="beforeUploadTi($event, index1, checkIndex)" />
  2403. </div>
  2404. </el-radio>
  2405. </div>
  2406. </el-radio-group>
  2407. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  2408. v-if="testJson.testJson[index1].type == '2'">
  2409. <div class="radioBox">
  2410. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2411. .testItem" :key="checkIndex1" :label="checkIndex1">
  2412. <div style="margin-right: 10px">
  2413. 选项{{ checkIndex1 + 1 }}
  2414. </div>
  2415. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2416. testJson.testJson[index1].checkList[checkIndex1]
  2417. .imgType &&
  2418. testJson.testJson[index1].checkList[checkIndex1]
  2419. .imgType == 1
  2420. ">
  2421. <div class="inImg" @click.stop="
  2422. previewImg(
  2423. testJson.testJson[index1].checkList[checkIndex1]
  2424. .src
  2425. )
  2426. ">
  2427. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2428. .src
  2429. " lazy />
  2430. <!-- <img :src="
  2431. testJson.testJson[index1].checkList[checkIndex1]
  2432. .src
  2433. " alt="" /> -->
  2434. </div>
  2435. </div>
  2436. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2437. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"></textarea>
  2438. <div class="xzUpImg" @click.stop="addImg($event)">
  2439. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2440. <input type="file" accept="image/*" style="display: none"
  2441. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2442. </div>
  2443. </el-checkbox>
  2444. </div>
  2445. </el-checkbox-group>
  2446. </div>
  2447. <div class="a_add_body_div" style="margin-bottom: 3px">
  2448. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2449. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2450. v-if="testJson.testJson[index1].testItem != 1">删除
  2451. </el-button>
  2452. </div>
  2453. </div>
  2454. </div>
  2455. </div>
  2456. </div>
  2457. <span slot="footer" class="dialog-footer">
  2458. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2459. <el-button type="primary" @click="addTest">确 定</el-button>
  2460. </span>
  2461. </el-dialog>
  2462. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2463. :before-close="handleClose" class="dialog_diy addToolsDia">
  2464. <div class="toolChoose">
  2465. <div class="tools">
  2466. <div class="leftTools" style="
  2467. width: 100%;
  2468. padding: 0 0 15px 0;
  2469. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2470. <div style="
  2471. display: flex;
  2472. flex-direction: row;
  2473. align-items: baseline;
  2474. flex-wrap: nowrap;
  2475. justify-content: flex-start;
  2476. position: relative;
  2477. ">
  2478. <div class="chooseWho">
  2479. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2480. 互动类
  2481. </div>
  2482. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2483. 思维类
  2484. </div>
  2485. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2486. 评价类
  2487. </div>
  2488. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2489. 其他
  2490. </div>
  2491. </div>
  2492. </div>
  2493. <div style="min-height: 163px">
  2494. <div class="toolSort" v-if="chapToolsType == 0">
  2495. <div class="tool">
  2496. <div class="whiteBIcon" @click="chapAddTools(8)">
  2497. <img src="../../assets/icon/secondToolList/library.png" alt />
  2498. <div style="margin: 5px 0">素材库</div>
  2499. </div>
  2500. <div class="check" @click="chapAddTools(8)">
  2501. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2502. <div class="checkDiv" v-else>
  2503. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. </div>
  2508. <div class="toolSort" v-if="chapToolsType == 1">
  2509. <div class="tool">
  2510. <div class="whiteBIcon" @click="chapAddTools(7)">
  2511. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  2512. <div style="margin: 5px 0">思维网格</div>
  2513. </div>
  2514. <div class="check" @click="chapAddTools(7)">
  2515. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2516. <div class="checkDiv" v-else>
  2517. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2518. </div>
  2519. </div>
  2520. </div>
  2521. <div class="tool">
  2522. <div class="whiteBIcon" @click="chapAddTools(1)">
  2523. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2524. <div style="margin: 5px 0">电子白板</div>
  2525. </div>
  2526. <div class="check" @click="chapAddTools(1)">
  2527. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2528. <div class="checkDiv" v-else>
  2529. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2530. </div>
  2531. </div>
  2532. </div>
  2533. <div class="tool">
  2534. <div class="whiteBIcon" @click="chapAddTools(2)">
  2535. <img src="../../assets/icon/secondToolList/note.png" alt />
  2536. <div style="margin: 5px 0">便签</div>
  2537. </div>
  2538. <div class="check" @click="chapAddTools(2)">
  2539. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2540. <div class="checkDiv" v-else>
  2541. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2542. </div>
  2543. </div>
  2544. </div>
  2545. <div class="tool">
  2546. <div class="whiteBIcon" @click="chapAddTools(6)">
  2547. <img src="../../assets/icon/secondToolList/doc.png" alt />
  2548. <div style="margin: 5px 0">协同文档</div>
  2549. </div>
  2550. <div class="check" @click="chapAddTools(6)">
  2551. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2552. <div class="checkDiv" v-else>
  2553. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2554. </div>
  2555. </div>
  2556. </div>
  2557. <div class="tool">
  2558. <div class="whiteBIcon" @click="chapAddTools(3)">
  2559. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2560. <div style="margin: 5px 0">思维导图</div>
  2561. </div>
  2562. <div class="check" @click="chapAddTools(3)">
  2563. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2564. <div class="checkDiv" v-else>
  2565. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2566. </div>
  2567. </div>
  2568. </div>
  2569. <div class="tool">
  2570. <div class="whiteBIcon" @click="chapAddTools(31)">
  2571. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2572. <div style="margin: 5px 0">数学画板</div>
  2573. </div>
  2574. <div class="check" @click="chapAddTools(31)">
  2575. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2576. <div class="checkDiv" v-else>
  2577. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. <div class="toolSort" v-if="chapToolsType == 2">
  2583. <div class="tool">
  2584. <div class="whiteBIcon" @click="chapAddTools(5)">
  2585. <img src="../../assets/icon/thirdToolList/score.png" alt />
  2586. <div style="margin: 5px 0">量规评分</div>
  2587. </div>
  2588. <div class="check" @click="chapAddTools(5)">
  2589. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2590. <div class="checkDiv" v-else>
  2591. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2592. </div>
  2593. </div>
  2594. </div>
  2595. <div class="tool">
  2596. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2597. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2598. <div style="margin: 5px 0">问卷调查</div>
  2599. </div>
  2600. <div class="check" @click="chapAddTools(4)">
  2601. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2602. <div class="checkDiv" v-else>
  2603. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2604. </div>
  2605. </div>
  2606. </div>
  2607. </div>
  2608. </div>
  2609. <div>
  2610. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  2611. v-model="itemTools.toolDetail" />
  2612. </div>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. <span slot="footer" class="dialog-footer">
  2617. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2618. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2619. </span>
  2620. </el-dialog>
  2621. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2622. :before-close="handleClose" class="dialog_diy">
  2623. <div>
  2624. <div class="a_add_title" style="
  2625. display: flex;
  2626. flex-direction: column;
  2627. align-items: flex-start;
  2628. justify-content: center;
  2629. ">
  2630. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2631. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  2632. </div>
  2633. </div>
  2634. <span slot="footer" class="dialog-footer">
  2635. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2636. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2637. </span>
  2638. </el-dialog>
  2639. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2640. :before-close="handleClose" class="dialog_diy">
  2641. <div>
  2642. <div class="a_add_title" style="
  2643. display: flex;
  2644. flex-direction: column;
  2645. align-items: flex-start;
  2646. justify-content: center;
  2647. ">
  2648. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2649. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2650. </div>
  2651. </div>
  2652. <span slot="footer" class="dialog-footer">
  2653. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2654. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2655. </span>
  2656. </el-dialog>
  2657. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  2658. :before-close="handleClose" class="dialog_diy">
  2659. <div>
  2660. <div class="fileCss" style="padding-top: 20px">
  2661. <div>
  2662. <button class="info_btn" @click="addImg($event)">
  2663. 选择本地文件
  2664. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2665. </button>
  2666. </div>
  2667. <div>
  2668. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  2669. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2670. <img :src="cover[0].url" alt="" />
  2671. <div class="deletePic" @click="deleteSysPic">
  2672. <img src="../../assets/icon/delete.png" alt="" />
  2673. </div>
  2674. </div>
  2675. </div>
  2676. </div>
  2677. <div class="fileCss">
  2678. <div>选择本地文件</div>
  2679. <div>选择系统文件</div>
  2680. </div>
  2681. </div>
  2682. <span slot="footer" class="dialog-footer">
  2683. <el-button @click="choosePicVisible = false">取 消</el-button>
  2684. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  2685. </span>
  2686. </el-dialog>
  2687. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2688. :before-close="handleClose" class="dialog_diy">
  2689. <div class="cru_selectBox" style="margin: 0">
  2690. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2691. 绘画
  2692. </div>
  2693. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2694. 科技
  2695. </div>
  2696. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2697. 人文
  2698. </div>
  2699. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2700. 艺术
  2701. </div>
  2702. </div>
  2703. <div class="sysPicBox">
  2704. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2705. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2706. </div>
  2707. </div>
  2708. <span slot="footer" class="dialog-footer">
  2709. <el-button @click="sysPicVisible = false">取 消</el-button>
  2710. <el-button type="primary">确 定</el-button>
  2711. </span>
  2712. </el-dialog>
  2713. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2714. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2715. <div v-if="selectJson">
  2716. <div class="select_box1" v-if="selectSteps == 1">
  2717. <div class="select_box1_img">
  2718. <div class="select_box1_title">
  2719. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  2720. </div>
  2721. <div class="select_box1_add_img">
  2722. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2723. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2724. <img src="../../assets/icon/addPoster.png" alt="" />
  2725. </div>
  2726. <div class="isSysPic" v-else>
  2727. <img :src="selectJson.url" alt="" />
  2728. <div class="deletePic" @click="deleteSelectPic">
  2729. <img src="../../assets/icon/delete.png" alt="" />
  2730. </div>
  2731. </div>
  2732. </div>
  2733. </div>
  2734. <div class="select_box1_select">
  2735. <div class="select_box1_title">
  2736. <span>添加选项</span><span>提示:请输入题目选项</span>
  2737. </div>
  2738. <div class="select_box1_select_box">
  2739. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2740. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  2741. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2742. <div class="select_box1_select_box_add">
  2743. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2744. 添加</el-button>
  2745. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2746. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2747. </div>
  2748. </div>
  2749. </div>
  2750. </div>
  2751. <div v-if="selectSteps == 2">
  2752. <div class="select_box2">
  2753. <div class="select_box2_title">设置答案</div>
  2754. <div class="select_box2_box">
  2755. <div class="select_box2_img">
  2756. <img :src="selectJson.url" alt="" />
  2757. </div>
  2758. <div class="select_box2_answer">
  2759. <div class="select_answer_title">根据题目选择对应答案</div>
  2760. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2761. <span>{{ checkIndex + 1 }}、</span>
  2762. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2763. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2764. </el-option>
  2765. </el-select>
  2766. </div>
  2767. </div>
  2768. </div>
  2769. </div>
  2770. </div>
  2771. </div>
  2772. <span slot="footer" class="dialog-footer">
  2773. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2774. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2775. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2776. </span>
  2777. </el-dialog>
  2778. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2779. :before-close="handleClose" class="dialog_diy">
  2780. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2781. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2782. <div class="pjCss" style="width: 100%">
  2783. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2784. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2785. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2786. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2787. <div class="remove" @click="deletRateList(eIndex)"></div>
  2788. <div style="width: 100%; display: flex">
  2789. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2790. <el-rate v-model="eItem.score" disabled></el-rate>
  2791. </div>
  2792. <div class="elist_inptu_text" style="align-items: flex-start">
  2793. <span style="min-width: 100px; text-align: right">描述:</span>
  2794. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2795. </div>
  2796. </div>
  2797. </div>
  2798. <div class="addToolFun" @click="addRateList()">
  2799. <div class="addToolImg">
  2800. <img src="../../assets/icon/add.png" alt />
  2801. </div>
  2802. <div>添加</div>
  2803. </div>
  2804. </div>
  2805. </div>
  2806. <span slot="footer" class="dialog-footer">
  2807. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2808. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2809. </span>
  2810. </el-dialog>
  2811. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2812. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2813. <div>
  2814. <div class="sentenBox">
  2815. <div class="addSen" @click="addSt">添加题目</div>
  2816. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  2817. <div class="sentenTopBox">
  2818. <div class="sentenTop">
  2819. <div>题目设置</div>
  2820. <div>
  2821. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  2822. </div>
  2823. <div @click="addSen(stIndex)">添加</div>
  2824. </div>
  2825. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2826. </div>
  2827. <div class="cardList">
  2828. <div v-if="st.addSentence.length > 0" class="cardBox">
  2829. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2830. @click="setRightAnswer(s, stIndex, sIndex)">
  2831. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2832. <div>{{ s }}</div>
  2833. </el-tooltip>
  2834. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2835. <img src="../../assets/icon/delete.png" alt="" />
  2836. </div>
  2837. </div>
  2838. </div>
  2839. <div class="card">
  2840. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  2841. </div>
  2842. </div>
  2843. <div class="rightCardBox">
  2844. <div>正确顺序</div>
  2845. <div class="rightCardList">
  2846. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2847. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2848. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2849. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2850. <div>{{ r }}</div>
  2851. </el-tooltip>
  2852. </div>
  2853. <div>{{ rIndex + 1 }}</div>
  2854. </div>
  2855. </div>
  2856. <div class="card" v-if="st.rightAnswer.length == 0">
  2857. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  2858. </div>
  2859. </div>
  2860. </div>
  2861. </div>
  2862. </div>
  2863. </div>
  2864. <span slot="footer" class="dialog-footer">
  2865. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  2866. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2867. </span>
  2868. </el-dialog>
  2869. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2870. :before-close="handleClose" class="dialog_diy">
  2871. <el-form>
  2872. <!-- <el-form-item label="文本标题">
  2873. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2874. </el-form-item> -->
  2875. <div>表格内容</div>
  2876. <Table v-model="tableJson.text" @change="change"></Table>
  2877. </el-form>
  2878. <span slot="footer" class="dialog-footer">
  2879. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2880. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2881. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2882. </span>
  2883. </el-dialog>
  2884. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2885. :before-close="handleClose" class="dialog_diy">
  2886. <el-form>
  2887. <!-- <el-form-item label="文本标题">
  2888. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2889. </el-form-item> -->
  2890. <div>文档内容</div>
  2891. <editor-bar v-model="wordJson.text"></editor-bar>
  2892. </el-form>
  2893. <span slot="footer" class="dialog-footer">
  2894. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2895. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2896. </span>
  2897. </el-dialog>
  2898. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2899. :before-close="handleClose" class="dialog_diy">
  2900. <div style="
  2901. width: 100%;
  2902. display: flex;
  2903. flex-direction: row;
  2904. flex-wrap: nowrap;
  2905. align-items: center;
  2906. justify-content: center;
  2907. ">
  2908. <div>班级:</div>
  2909. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2910. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2911. </el-option>
  2912. </el-select>
  2913. </div>
  2914. <span slot="footer" class="dialog-footer">
  2915. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2916. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2917. </span>
  2918. </el-dialog>
  2919. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2920. :before-close="handleClose" class="dialog_diy">
  2921. <div style="
  2922. width: 100%;
  2923. display: flex;
  2924. flex-direction: row;
  2925. flex-wrap: nowrap;
  2926. align-items: center;
  2927. justify-content: center;
  2928. ">
  2929. <div>随机码:</div>
  2930. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  2931. </div>
  2932. <span slot="footer" class="dialog-footer">
  2933. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  2934. <el-button type="primary" @click="addInvite">确定</el-button>
  2935. </span>
  2936. </el-dialog>
  2937. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="30%"
  2938. :before-close="handleClose" class="dialog_diy">
  2939. <div>
  2940. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  2941. </div>
  2942. <span slot="footer" class="dialog-footer">
  2943. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  2944. <el-button type="primary" @click="addPreTime">确定</el-button>
  2945. </span>
  2946. </el-dialog>
  2947. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  2948. class="dialog_diy">
  2949. <div>
  2950. <div style="
  2951. width: 100%;
  2952. display: flex;
  2953. flex-direction: row;
  2954. flex-wrap: nowrap;
  2955. align-content: center;
  2956. align-items: center;
  2957. justify-content: space-between;
  2958. ">
  2959. <div style="
  2960. display: flex;
  2961. flex-flow: row nowrap;
  2962. align-items: flex-start;
  2963. width: 100%;
  2964. flex-direction: column;
  2965. flex-wrap: nowrap;
  2966. position: relative;
  2967. ">
  2968. <div class="e_box">
  2969. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  2970. <div class="e_card_picture">
  2971. <img src="../../assets/e_picture.png" />
  2972. </div>
  2973. <div class="e_card_name">
  2974. <span>{{ item.title }}</span>
  2975. </div>
  2976. <div class="e_card_btn">
  2977. <span @click="checkEva(item.id, 2)">导入</span>
  2978. </div>
  2979. </div>
  2980. <div class="addEva" @click="openT">
  2981. <img src="../../assets/icon/addEva.png" alt="" />
  2982. </div>
  2983. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  2984. 暂无数据
  2985. </div>
  2986. </div>
  2987. </div>
  2988. </div>
  2989. </div>
  2990. <span slot="footer" class="dialog-footer">
  2991. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  2992. </span>
  2993. </el-dialog>
  2994. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  2995. :before-close="handleClose" class="dialog_diy">
  2996. <div class="groupBox">
  2997. <div v-if="groupJson.group" class="groupContent">
  2998. <div class="groupTitle">请设置小组数量</div>
  2999. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3000. <span class="groupn">组{{ index + 1 }}名称:</span>
  3001. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3002. <div class="groupBtn">
  3003. <el-button type="primary" size="small" @click="addGroup(index)">
  3004. 添加</el-button>
  3005. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3006. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3007. </div>
  3008. </div>
  3009. </div>
  3010. <div class="groupContent">
  3011. <div class="groupTitle">请设置每组人数数量</div>
  3012. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3013. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3014. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  3015. placeholder="2-10人以内"></el-input-number>
  3016. </div>
  3017. </div>
  3018. <span slot="footer" class="dialog-footer">
  3019. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3020. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3021. </span>
  3022. </el-dialog>
  3023. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3024. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3025. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3026. <div class="change_stageBox">
  3027. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3028. <div class="nt_taskBox">
  3029. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3030. <div class="nt_taskName">
  3031. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3032. <span>{{ t.dyName }}</span>
  3033. </el-tooltip>
  3034. </div>
  3035. </div>
  3036. <div class="moveBtn" v-if="unitJson3.length > 1">
  3037. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3038. </div>
  3039. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3040. </div>
  3041. </div>
  3042. </div>
  3043. <span slot="footer" class="dialog-footer">
  3044. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3045. <el-button type="primary" @click="updateChange">确定</el-button>
  3046. </span>
  3047. </el-dialog>
  3048. </div>
  3049. </template>
  3050. <script>
  3051. import "../../common/aws-sdk-2.235.1.min.js";
  3052. // import "../../common/aws-sdk-2.99.0.min.js";
  3053. import $ from "jquery";
  3054. import EditorBar from "../../components/tools/wangEnduit";
  3055. import Table from "../../components/tools/table";
  3056. import Mind from "../tools/jsmind2";
  3057. import Time from "../tools/time.vue";
  3058. import Sunburst from "../tools/sunburst";
  3059. import SeeBoard from "../tools/seeBoard";
  3060. import weilaiData from "./components/weilai.js";
  3061. import sourceDialog from "./teacherSource/dialog.vue";
  3062. import interVideo from "./interVideo/index.vue";
  3063. export default {
  3064. components: {
  3065. EditorBar,
  3066. Mind,
  3067. Time,
  3068. Sunburst,
  3069. SeeBoard,
  3070. Table,
  3071. sourceDialog,
  3072. interVideo,
  3073. },
  3074. data() {
  3075. return {
  3076. checkAll: false,
  3077. chooseType: 1,
  3078. checkedCities: [],
  3079. isIndeterminate: true,
  3080. isSysPic: false,
  3081. steps: 1,
  3082. nbOrder: 0,
  3083. courseId: "",
  3084. chapToolsType: 0,
  3085. chapTools: [
  3086. {
  3087. tools: [],
  3088. toolDetail: "",
  3089. },
  3090. ],
  3091. line: "",
  3092. lineTitle: "",
  3093. sysPic: [],
  3094. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3095. isPushTitleList: [],
  3096. lineCount: 0,
  3097. lineType: 0,
  3098. chapCount: 0,
  3099. courseName: "",
  3100. isTeacherSee: false,
  3101. courseText: "",
  3102. preTime: 0,
  3103. formLabelWidth: "100px",
  3104. choosePicVisible: false,
  3105. sysPicVisible: false,
  3106. uploadLoading1: false,
  3107. noneBtnImg: false,
  3108. updateBoolean2: false,
  3109. unitIndex: 0,
  3110. taskCount: 0,
  3111. dialogVisible: false,
  3112. dialogVisible1: false,
  3113. dialogVisible2: false,
  3114. dialogVisible3: false,
  3115. dialogVisible4: false,
  3116. dialogVisible5: false,
  3117. dialogVisible6: false,
  3118. dialogVisible7: false,
  3119. dialogVisible8: false,
  3120. dialogVisible9: false,
  3121. dialogVisibleClass: false,
  3122. dialogVisibleMember: false,
  3123. dialogVisibleMp3: false,
  3124. dialogVisibleSelect: false,
  3125. dialogVisibleSentence: false,
  3126. dialogVisibleRate: false,
  3127. dialogVisibleChoice: false,
  3128. dialogVisiblemb: false,
  3129. dialogVisibleInvite: false,
  3130. dialogVisibleSource: false,
  3131. dialogVisibleVideo: false,
  3132. dialogVisibleStageChange: false,
  3133. isClickColor: 0,
  3134. publicTool: 0,
  3135. searchPeople: "",
  3136. searchTN: "",
  3137. userid: this.$route.query.userid,
  3138. oid: this.$route.query.oid,
  3139. org: this.$route.query.org,
  3140. role: this.$route.query.role,
  3141. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3142. dialogVisibleTable: false,
  3143. dialogVisibleWord: false,
  3144. tableJson: { text: "" },
  3145. wordJson: { text: "" },
  3146. dialogVisibleMoreUpload: false,
  3147. dialogVisiblePreTime: false,
  3148. uploadJson: [],
  3149. classJuri: [],
  3150. gradeList: [],
  3151. cover: [], //课程封面
  3152. myWord: [],
  3153. evaJuri: [],
  3154. evalua: "",
  3155. targetArray: [],
  3156. eTitle: "",
  3157. eJson: {},
  3158. fid: "", //一级
  3159. sid: "", //二级
  3160. tid: "", //二级
  3161. typeMode: 1,
  3162. eJSONNum: 0,
  3163. data: {
  3164. meta: {
  3165. name: "example",
  3166. author: "dd@163.com",
  3167. version: "0.2",
  3168. },
  3169. format: "node_array",
  3170. data: [{ id: "root", isroot: true, topic: "" }],
  3171. },
  3172. askJson: {
  3173. askCount: 1,
  3174. askTitle: "",
  3175. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3176. },
  3177. testJson: {},
  3178. selectJson: {},
  3179. rateJson: [],
  3180. unitJson2: [],
  3181. unitJson3: [],
  3182. unitJson: [
  3183. {
  3184. dyName: "", //单元标题
  3185. chapterInfo: [
  3186. {
  3187. isread: false,
  3188. chapterid: this.guid(),
  3189. title: "",
  3190. courseName: "",
  3191. taskJson: [
  3192. {
  3193. task: "",
  3194. taskDetail: "",
  3195. chapterData: [],
  3196. toolText: "",
  3197. toolChoose: [
  3198. {
  3199. tool: [],
  3200. toolDetail: "",
  3201. toolType: 0,
  3202. askCount: 1,
  3203. askTitle: "",
  3204. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3205. },
  3206. ],
  3207. isShowTools: false,
  3208. askCount: 1,
  3209. isFold: 0,
  3210. askTitle: "",
  3211. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3212. checkJson: [{ checkCount: [], checkPerent: [] }],
  3213. homeworkList: [],
  3214. },
  3215. ],
  3216. itemCount: 1,
  3217. fileList1: [],
  3218. video: [],
  3219. testData: [],
  3220. pData: [],
  3221. templateArray: [],
  3222. },
  3223. ],
  3224. },
  3225. ],
  3226. studentJuri: [],
  3227. teacherJuri: [],
  3228. checkboxList: [],
  3229. checkboxList2: [],
  3230. checkboxList3: [],
  3231. classSearch: "",
  3232. gradeId: "",
  3233. number: "",
  3234. tTitle: "",
  3235. tdetail: "",
  3236. templateC: {},
  3237. AttText: {},
  3238. AttTextType: 0,
  3239. AttTextIndex: 0,
  3240. cTemplate: "",
  3241. CourseType: [],
  3242. CourseType2: [],
  3243. CourseTypeJson: {},
  3244. courseTypeId: [],
  3245. courseTypeSon: [],
  3246. clearArray: [],
  3247. pTypeCheck: [],
  3248. pTypeCheckName: [],
  3249. loading: false,
  3250. toolType: 0,
  3251. inputShow: true,
  3252. inputShow2: true,
  3253. toolIndex: 0,
  3254. cidType: 0,
  3255. answerQ: "",
  3256. grade: [],
  3257. grade2: [],
  3258. courseUserid: "",
  3259. timer: null,
  3260. timer2: null,
  3261. checkId: "",
  3262. isDelete: 1,
  3263. addindex: 0,
  3264. selectSteps: 1,
  3265. groupJson: {},
  3266. dialogVisibleGroup: false,
  3267. rightBoxHeight: 0,
  3268. ManAarray: [],
  3269. checkBoolean: false,
  3270. inviteCode: [],
  3271. inviteId: "",
  3272. icode: "",
  3273. easyArray: [2, 4],
  3274. sourceData: {},
  3275. videoJson: {},
  3276. };
  3277. },
  3278. directives: {
  3279. autoHeight: {
  3280. update(el, binding) {
  3281. const { value } = binding
  3282. if (value && typeof value === 'number') {
  3283. el.style.height = `${value}px`
  3284. } else {
  3285. el.style.height = 'auto'
  3286. }
  3287. },
  3288. componentUpdated(el) {
  3289. el.style.height = `${el.scrollHeight}px`
  3290. },
  3291. },
  3292. },
  3293. computed: {
  3294. // rightBoxHeight: function () {
  3295. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3296. // },
  3297. offsetLetfPx: function () {
  3298. //addnum可以直接在模板语法里面用,相当于data内的值
  3299. return (
  3300. $(".cru_select")[this.unitIndex] &&
  3301. $(".cru_select")[this.unitIndex].offsetLeft + 5
  3302. );
  3303. },
  3304. getMan2() {
  3305. return function (people) {
  3306. let _people = people;
  3307. let _people2 = "";
  3308. if (this.ManAarray.length) {
  3309. for (var i = 0; i < this.ManAarray.length; i++) {
  3310. if (this.ManAarray[i].userid == people) {
  3311. _people2 = this.ManAarray[i].name;
  3312. break;
  3313. }
  3314. }
  3315. }
  3316. if (people == this.courseUserid) {
  3317. return "";
  3318. }
  3319. return this.ManAarray.length ? _people2 : "";
  3320. };
  3321. },
  3322. isInvite() {
  3323. return function (cid) {
  3324. let array = [];
  3325. for (var i = 0; i < this.inviteCode.length; i++) {
  3326. array.push(this.inviteCode[i].cid);
  3327. }
  3328. return array.indexOf(cid) != -1;
  3329. };
  3330. },
  3331. getInviteCodeC() {
  3332. return function (cid) {
  3333. let array = [];
  3334. for (var i = 0; i < this.inviteCode.length; i++) {
  3335. array.push(this.inviteCode[i].cid);
  3336. }
  3337. return this.inviteCode[array.indexOf(cid)].ic;
  3338. };
  3339. },
  3340. getClassC() {
  3341. return function (c) {
  3342. let _c2 = "";
  3343. if (this.grade.length) {
  3344. for (var i = 0; i < this.grade.length; i++) {
  3345. if (this.grade[i].id == c) {
  3346. _c2 = this.grade[i].name;
  3347. break;
  3348. }
  3349. }
  3350. }
  3351. return this.grade.length ? _c2 : "";
  3352. };
  3353. },
  3354. },
  3355. watch: {
  3356. unitIndex(newValue, oldValue) {
  3357. if (this.isDelete == 2) {
  3358. this.isDelete = 1;
  3359. return;
  3360. }
  3361. if (this.cid != "") {
  3362. let _unitIndex = oldValue;
  3363. if (
  3364. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3365. JSON.stringify(this.unitJson[_unitIndex])
  3366. ) {
  3367. this.$refs.rightboxR.scrollTop = 0;
  3368. return;
  3369. }
  3370. let cPan = 1;
  3371. for (
  3372. var j = 0;
  3373. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3374. j++
  3375. ) {
  3376. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3377. j
  3378. ].proVisible = false;
  3379. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3380. j
  3381. ].proVisible2 = false;
  3382. if (
  3383. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3384. .length > 1
  3385. ) {
  3386. for (
  3387. var z = 0;
  3388. z <
  3389. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3390. .length;
  3391. z++
  3392. ) {
  3393. if (
  3394. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3395. .toolChoose[z].tool.length
  3396. ) {
  3397. this.$message.error("请把工具添加完整");
  3398. cPan = 2;
  3399. break;
  3400. }
  3401. }
  3402. }
  3403. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3404. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3405. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3406. (ele) => {
  3407. return ele.value != "";
  3408. }
  3409. );
  3410. }
  3411. }
  3412. if (cPan == 2) {
  3413. this.unitIndex = oldValue;
  3414. return;
  3415. }
  3416. for (var i = 0; i < this.unitJson.length; i++) {
  3417. if (this.addindex != i) {
  3418. delete this.unitJson[i].isUpdate;
  3419. }
  3420. }
  3421. this.$refs.rightboxR.scrollTop = 0;
  3422. this.addindex = -1;
  3423. let params = [
  3424. {
  3425. cid: this.cid,
  3426. chapters: JSON.stringify(this.unitJson),
  3427. uid: this.userid,
  3428. unitIndex: _unitIndex,
  3429. },
  3430. ];
  3431. this.ajax
  3432. .post(this.$store.state.api + "updateWorkNew4", params)
  3433. .then((res) => {
  3434. // this.$message({
  3435. // message: "修改成功",
  3436. // type: "success",
  3437. // });
  3438. // this.courseId = this.cid;
  3439. })
  3440. .catch((err) => {
  3441. this.$message.error("网络不佳");
  3442. console.error(err);
  3443. });
  3444. }
  3445. },
  3446. steps(newValue) {
  3447. if (newValue == 4) {
  3448. this.goTo(
  3449. "/course?userid=" +
  3450. this.userid +
  3451. "&oid=" +
  3452. this.oid +
  3453. "&org=" +
  3454. this.org +
  3455. "&role=" +
  3456. this.role
  3457. );
  3458. }
  3459. },
  3460. },
  3461. methods: {
  3462. openAI() {
  3463. window.parent.postMessage({ tools: "64" }, "*");
  3464. },
  3465. setMan() {
  3466. // let teacherJuri = this.teacherJuri2;
  3467. this.ManAarray = [];
  3468. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3469. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  3470. _user.push(this.courseUserid || this.userid);
  3471. }
  3472. let params = {
  3473. uid: _user.join(","),
  3474. };
  3475. this.ajax
  3476. .get(this.$store.state.api + "getAllUserById", params)
  3477. .then((res) => {
  3478. let teacherJuri = res.data[0];
  3479. this.ManAarray = teacherJuri;
  3480. })
  3481. .catch((err) => {
  3482. console.error(err);
  3483. });
  3484. },
  3485. previewImg(url) {
  3486. this.$hevueImgPreview(url);
  3487. },
  3488. scrollChange() {
  3489. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3490. },
  3491. handleCheckAllChange(val) {
  3492. this.checkedCities = val ? cityOptions : [];
  3493. this.isIndeterminate = false;
  3494. },
  3495. handleCheckedCitiesChange(value) {
  3496. let checkedCount = value.length;
  3497. this.checkAll = checkedCount === this.cities.length;
  3498. this.isIndeterminate =
  3499. checkedCount > 0 && checkedCount < this.cities.length;
  3500. },
  3501. addHw(e) {
  3502. var el = e.currentTarget;
  3503. el.getElementsByTagName("input")[0].click();
  3504. },
  3505. change(val) {
  3506. console.log(val);
  3507. },
  3508. change2(val) {
  3509. console.log(val);
  3510. this.$forceUpdate();
  3511. },
  3512. handleClose(done) {
  3513. done();
  3514. },
  3515. imgChange2(i, j) {
  3516. var _tmp = this.testJson.testJson[i].checkList[j];
  3517. this.noneBtnImg = _tmp.length >= 1;
  3518. },
  3519. imgChange3(i) {
  3520. var _tmp = this.testJson.testJson[i];
  3521. this.noneBtnImg = _tmp.length >= 1;
  3522. },
  3523. imgChange1(file, fileList, type, itemTaskIndex) {
  3524. if (type == 1) {
  3525. var _tmp = this.cover;
  3526. } else if (
  3527. type == 2 ||
  3528. type == 3 ||
  3529. type == 6 ||
  3530. type == 7 ||
  3531. type == 8
  3532. ) {
  3533. var _tmp =
  3534. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3535. .chapterData;
  3536. } else if (type == 4) {
  3537. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3538. } else {
  3539. var _tmp =
  3540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3541. .homeworkList;
  3542. }
  3543. this.noneBtnImg = _tmp.length >= 1;
  3544. },
  3545. goTo(path) {
  3546. this.$router.push(path);
  3547. },
  3548. guid() {
  3549. var _num,
  3550. i,
  3551. _guid = "";
  3552. for (i = 0; i < 32; i++) {
  3553. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3554. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3555. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3556. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3557. _guid += "-";
  3558. }
  3559. }
  3560. return _guid;
  3561. },
  3562. lastSteps() {
  3563. if (this.steps == 4) {
  3564. this.goTo(
  3565. "/course?userid=" +
  3566. this.userid +
  3567. "&oid=" +
  3568. this.oid +
  3569. "&org=" +
  3570. this.org +
  3571. "&role=" +
  3572. this.role
  3573. );
  3574. } else {
  3575. if (this.cidType == 0) {
  3576. this.steps--;
  3577. if (this.steps == 1) {
  3578. setTimeout(() => {
  3579. this.checkEva(this.checkId);
  3580. }, 0);
  3581. }
  3582. } else {
  3583. if (this.steps == 3) {
  3584. this.steps = 1;
  3585. setTimeout(() => {
  3586. this.checkEva(this.checkId);
  3587. }, 0);
  3588. }
  3589. }
  3590. }
  3591. },
  3592. navSteps(s) {
  3593. if (this.courseName == "") {
  3594. this.$message.error("请补充填写课程名称");
  3595. return;
  3596. }
  3597. if (this.cidType == 0) {
  3598. if (this.steps == 1) {
  3599. if (this.cid == "" || this.cid == undefined) {
  3600. this.addWork();
  3601. } else {
  3602. if (this.userid != this.courseUserid && this.role != "1") {
  3603. // this.updateWork2();
  3604. } else {
  3605. this.updateWork();
  3606. }
  3607. }
  3608. }
  3609. if (s == 1) {
  3610. this.steps = 1;
  3611. setTimeout(() => {
  3612. this.checkEva(this.checkId);
  3613. }, 0);
  3614. }
  3615. if (s == 2) {
  3616. this.steps = 2;
  3617. }
  3618. if (s == 3) {
  3619. this.cTemplate = this.templateC.content;
  3620. this.dialogVisible2 = false;
  3621. this.steps = 3;
  3622. setTimeout(() => {
  3623. this.checkEva(this.checkId);
  3624. }, 1000);
  3625. }
  3626. } else {
  3627. if (this.steps == 1) {
  3628. if (this.cid == "" || this.cid == undefined) {
  3629. this.addWork();
  3630. } else {
  3631. if (this.userid != this.courseUserid && this.role != "1") {
  3632. // this.updateWork2();
  3633. } else {
  3634. this.updateWork();
  3635. }
  3636. }
  3637. }
  3638. if (s == 1) {
  3639. this.steps = 1;
  3640. setTimeout(() => {
  3641. this.checkEva(this.checkId);
  3642. }, 0);
  3643. }
  3644. if (s == 3) {
  3645. this.cTemplate = this.templateC.content;
  3646. this.dialogVisible2 = false;
  3647. this.steps = 3;
  3648. setTimeout(() => {
  3649. this.checkEva(this.checkId);
  3650. }, 1000);
  3651. }
  3652. }
  3653. this.$refs.stepBox.scrollTop = 0;
  3654. },
  3655. nextSteps() {
  3656. if (this.cidType == 1) {
  3657. if (this.steps == 1) {
  3658. if (this.courseName != "") {
  3659. this.steps = 3;
  3660. setTimeout(() => {
  3661. this.checkEva(this.checkId);
  3662. }, 1000);
  3663. if (this.cid == "" || this.cid == undefined) {
  3664. this.addWork();
  3665. } else {
  3666. if (this.userid != this.courseUserid && this.role != "1") {
  3667. // this.updateWork2();
  3668. } else {
  3669. this.updateWork();
  3670. }
  3671. }
  3672. } else {
  3673. this.$message.error("请补充填写课程名称");
  3674. return;
  3675. }
  3676. } else if (this.steps == 3) {
  3677. if (this.cid == "" || this.cid == undefined) {
  3678. if (this.courseName == "") {
  3679. this.$message.error("请补充填写课程名称");
  3680. return;
  3681. } else {
  3682. this.addWork();
  3683. this.steps++;
  3684. }
  3685. } else {
  3686. if (this.courseName == "") {
  3687. this.$message.error("请补充填写课程名称");
  3688. return;
  3689. } else {
  3690. if (this.userid != this.courseUserid && this.role != "1") {
  3691. this.updateWork2();
  3692. } else {
  3693. this.updateWork();
  3694. }
  3695. this.steps++;
  3696. }
  3697. }
  3698. }
  3699. } else {
  3700. if (this.steps == 1) {
  3701. if (this.courseName != "") {
  3702. if (this.cid == "" || this.cid == undefined) {
  3703. this.addWork();
  3704. } else {
  3705. if (this.userid != this.courseUserid && this.role != "1") {
  3706. // this.updateWork2();
  3707. } else {
  3708. this.updateWork();
  3709. }
  3710. }
  3711. this.steps++;
  3712. } else {
  3713. this.$message.error("请补充填写课程名称");
  3714. return;
  3715. }
  3716. } else if (this.steps == 2) {
  3717. if (this.templateC.id != "" || this.templateC.id != undefined) {
  3718. this.cTemplate = this.templateC.content;
  3719. }
  3720. this.dialogVisible2 = false;
  3721. this.steps++;
  3722. setTimeout(() => {
  3723. this.checkEva(this.checkId);
  3724. }, 1000);
  3725. } else if (this.steps == 3) {
  3726. if (this.cid == "" || this.cid == undefined) {
  3727. if (this.courseName == "") {
  3728. this.$message.error("请补充填写课程名称");
  3729. return;
  3730. } else {
  3731. this.addWork();
  3732. this.steps++;
  3733. }
  3734. } else {
  3735. if (this.courseName == "") {
  3736. this.$message.error("请补充填写课程名称");
  3737. return;
  3738. } else {
  3739. if (this.userid != this.courseUserid && this.role != "1") {
  3740. this.updateWork2();
  3741. } else {
  3742. this.updateWork();
  3743. }
  3744. this.steps++;
  3745. }
  3746. }
  3747. }
  3748. }
  3749. this.$refs.stepBox.scrollTop = 0;
  3750. },
  3751. unitSet(i) {
  3752. this.unitIndex = i;
  3753. // this.$refs.rightboxR.scrollTop = 0;
  3754. },
  3755. time() {
  3756. if (!this.now) {
  3757. this.now = new Date().getTime();
  3758. return true;
  3759. } else {
  3760. let time = new Date().getTime();
  3761. if (time - this.now > 3000) {
  3762. this.now = time;
  3763. return true;
  3764. } else {
  3765. return false;
  3766. }
  3767. }
  3768. },
  3769. deleteUnit(i) {
  3770. var _this = this;
  3771. if (_this.time()) {
  3772. _this
  3773. .$confirm("确定删除此单元吗?", "提示", {
  3774. confirmButtonText: "确定",
  3775. cancelButtonText: "取消",
  3776. type: "warning",
  3777. })
  3778. .then(() => {
  3779. _this.isDelete = 2;
  3780. // _this.unitIndex = _this.unitIndex - 1;
  3781. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3782. // _this.$message.success("删除成功");
  3783. })
  3784. .catch(() => {
  3785. return;
  3786. });
  3787. }
  3788. },
  3789. deleteWork(chapid) {
  3790. let params = [
  3791. {
  3792. cid: this.cid,
  3793. chapters: JSON.stringify(this.unitJson),
  3794. uid: this.userid,
  3795. chapid: chapid,
  3796. },
  3797. ];
  3798. this.ajax
  3799. .post(this.$store.state.api + "deleteWork", params)
  3800. .then((res) => {
  3801. this.$message({
  3802. message: "删除成功",
  3803. type: "success",
  3804. });
  3805. this.unitJson.splice(this.unitIndex, 1);
  3806. this.unitIndex = this.unitIndex - 1;
  3807. })
  3808. .catch((err) => {
  3809. this.$message.error("网络不佳");
  3810. console.error(err);
  3811. });
  3812. },
  3813. deleteTool(itemTaskIndex, i) {
  3814. var _this = this;
  3815. if (_this.time()) {
  3816. _this
  3817. .$confirm("确定删除此工具吗?", "提示", {
  3818. confirmButtonText: "确定",
  3819. cancelButtonText: "取消",
  3820. type: "warning",
  3821. })
  3822. .then(() => {
  3823. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3824. itemTaskIndex
  3825. ].toolChoose.splice(i, 1);
  3826. _this.$message.success("删除成功");
  3827. })
  3828. .catch(() => {
  3829. return;
  3830. });
  3831. }
  3832. },
  3833. deleteSentence(i) {
  3834. var _this = this;
  3835. if (_this.time()) {
  3836. _this
  3837. .$confirm("确定删除此题目吗?", "提示", {
  3838. confirmButtonText: "确定",
  3839. cancelButtonText: "取消",
  3840. type: "warning",
  3841. })
  3842. .then(() => {
  3843. _this.sentenceList.splice(i, 1);
  3844. _this.$message.success("删除成功");
  3845. })
  3846. .catch(() => {
  3847. return;
  3848. });
  3849. }
  3850. },
  3851. deleteS(s, i, j) {
  3852. this.sentenceList[i].addSentence.splice(j, 1);
  3853. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3854. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3855. this.sentenceList[i].rightAnswer.splice(a, 1);
  3856. }
  3857. },
  3858. openT() {
  3859. window.parent.postMessage({ tools: "25" }, "*");
  3860. },
  3861. deleteTask(i) {
  3862. var _this = this;
  3863. if (_this.time()) {
  3864. _this
  3865. .$confirm(
  3866. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  3867. 1 ==
  3868. i
  3869. ? "确定删除此任务吗?"
  3870. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  3871. "提示",
  3872. {
  3873. confirmButtonText: "确定",
  3874. cancelButtonText: "取消",
  3875. type: "warning",
  3876. }
  3877. )
  3878. .then(() => {
  3879. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3880. i,
  3881. 1
  3882. );
  3883. _this.$message.success("删除成功");
  3884. })
  3885. .catch(() => {
  3886. return;
  3887. });
  3888. }
  3889. },
  3890. handlePictureCardPreview(file) {
  3891. this.dialogImageUrl = file.url;
  3892. },
  3893. clean(i, c) {
  3894. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3895. },
  3896. handle_remove1(file, fileList, type) {
  3897. var _tmp = this.cover;
  3898. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3899. // if (_tmp[i].uid == file.uid) {
  3900. // _tmp.splice(i, 1);
  3901. // break;
  3902. // }
  3903. // this.cover = _tmp;
  3904. // }
  3905. this.cover = [];
  3906. this.noneBtnImg = this.cover.length >= 1;
  3907. this.isSysPic = false;
  3908. this.$forceUpdate();
  3909. },
  3910. addImg(e) {
  3911. var el = e.currentTarget;
  3912. el.getElementsByTagName("input")[0].click();
  3913. e.target.value = "";
  3914. },
  3915. addChaptersTools(i) {
  3916. this.chapTools = [
  3917. {
  3918. tools: [],
  3919. toolDetail: "",
  3920. },
  3921. ];
  3922. this.chapCount = i;
  3923. this.dialogVisible4 = true;
  3924. },
  3925. isNoFinsh() {
  3926. this.$message.warning("功能正在开发中");
  3927. },
  3928. addAttText(i) {
  3929. this.AttText = {
  3930. title: "",
  3931. text: "",
  3932. };
  3933. this.taskCount = i;
  3934. this.AttTextType = 0;
  3935. this.$forceUpdate();
  3936. this.dialogVisible6 = true;
  3937. },
  3938. openLine(i) {
  3939. this.line = "";
  3940. this.lineCount = i;
  3941. this.lineType = 0;
  3942. this.$forceUpdate();
  3943. this.dialogVisible7 = true;
  3944. },
  3945. pasteLine(i) {
  3946. navigator.clipboard
  3947. .readText()
  3948. .then((v) => {
  3949. console.log("获取剪贴板成功:", v);
  3950. const html = v;
  3951. const regex = /src="(.*?)"/g;
  3952. const match = regex.exec(html);
  3953. if (match && match[1]) {
  3954. console.log(match[1]);
  3955. this.$message.success("粘贴成功");
  3956. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3957. i
  3958. ].chapterData.push({
  3959. name: "链接",
  3960. title: "嵌入代码",
  3961. url: match[1],
  3962. type: 8,
  3963. });
  3964. } else {
  3965. // console.log("未找到包含 src 属性的 iframe");
  3966. this.$message.error("没有找到粘贴的链接");
  3967. }
  3968. })
  3969. .catch((v) => {
  3970. console.log("获取剪贴板失败: ", v);
  3971. });
  3972. },
  3973. openSource(i) {
  3974. this.lineCount = i;
  3975. this.sourceData = {};
  3976. this.dialogVisibleSource = true;
  3977. },
  3978. addSource() {
  3979. if (!Object.keys(this.sourceData).length) {
  3980. this.$message.error("请选择要上传的资源");
  3981. return;
  3982. }
  3983. let keys = Object.keys(this.sourceData);
  3984. for (var i = 0; i < keys.length; i++) {
  3985. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3986. this.lineCount
  3987. ].chapterData.push({
  3988. name: "链接",
  3989. title: this.sourceData[keys[i]].name,
  3990. url: this.sourceData[keys[i]].url,
  3991. type: 8,
  3992. });
  3993. }
  3994. this.$forceUpdate();
  3995. this.dialogVisibleSource = false;
  3996. },
  3997. deleteM(i, j) {
  3998. this.testJson.testJson[i].timuList.splice(j, 1);
  3999. },
  4000. beforeUploadTiMu(event, i) {
  4001. const loading = this.openLoading();
  4002. var file = event.target.files[0];
  4003. var credentials = {
  4004. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4005. secretAccessKey: "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",
  4006. }; //秘钥形式的登录上传
  4007. window.AWS.config.update(credentials);
  4008. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4009. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4010. var _this = this;
  4011. if (file) {
  4012. var params = {
  4013. Key:
  4014. file.name.split(".")[0] +
  4015. new Date().getTime() +
  4016. "." +
  4017. file.name.split(".")[file.name.split(".").length - 1],
  4018. ContentType: file.type,
  4019. Body: file,
  4020. "Access-Control-Allow-Credentials": "*",
  4021. ACL: "public-read",
  4022. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4023. var options = {
  4024. partSize: 2048 * 1024 * 1024,
  4025. queueSize: 2,
  4026. leavePartsOnError: true,
  4027. };
  4028. bucket
  4029. .upload(params, options)
  4030. .on("httpUploadProgress", function (evt) {
  4031. //这里可以写进度条
  4032. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4033. })
  4034. .send(function (err, data) {
  4035. loading.close();
  4036. if (err) {
  4037. _this.$message.error("上传失败");
  4038. } else {
  4039. if (_this.testJson.testJson[i].timuList) {
  4040. _this.testJson.testJson[i].timuList.push({
  4041. src: data.Location,
  4042. });
  4043. } else {
  4044. _this.testJson.testJson[i].timuList = [];
  4045. _this.testJson.testJson[i].timuList.push({
  4046. src: data.Location,
  4047. });
  4048. }
  4049. _this.imgChange3(i);
  4050. _this.$forceUpdate();
  4051. }
  4052. });
  4053. }
  4054. },
  4055. beforeUploadTi(event, i, j) {
  4056. const loading = this.openLoading();
  4057. var file = event.target.files[0];
  4058. var credentials = {
  4059. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4060. secretAccessKey: "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",
  4061. }; //秘钥形式的登录上传
  4062. window.AWS.config.update(credentials);
  4063. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4064. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4065. var _this = this;
  4066. if (file) {
  4067. var params = {
  4068. Key:
  4069. file.name.split(".")[0] +
  4070. new Date().getTime() +
  4071. "." +
  4072. file.name.split(".")[file.name.split(".").length - 1],
  4073. ContentType: file.type,
  4074. Body: file,
  4075. "Access-Control-Allow-Credentials": "*",
  4076. ACL: "public-read",
  4077. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4078. var options = {
  4079. partSize: 2048 * 1024 * 1024,
  4080. queueSize: 2,
  4081. leavePartsOnError: true,
  4082. };
  4083. bucket
  4084. .upload(params, options)
  4085. .on("httpUploadProgress", function (evt) {
  4086. //这里可以写进度条
  4087. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4088. })
  4089. .send(function (err, data) {
  4090. loading.close();
  4091. if (err) {
  4092. _this.$message.error("上传失败");
  4093. } else {
  4094. _this.testJson.testJson[i].checkList[j] = {};
  4095. _this.testJson.testJson[i].checkList[j].src = data.Location;
  4096. _this.testJson.testJson[i].checkList[j].imgType = 1;
  4097. _this.imgChange2(i, j);
  4098. _this.$forceUpdate();
  4099. }
  4100. });
  4101. }
  4102. },
  4103. beforeUpload1(event, type) {
  4104. // const loading = this.openLoading();
  4105. var file = event.target.files[0];
  4106. var credentials = {
  4107. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4108. secretAccessKey: "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",
  4109. }; //秘钥形式的登录上传
  4110. window.AWS.config.update(credentials);
  4111. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4112. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4113. var _this = this;
  4114. if (file) {
  4115. var params = {
  4116. Key:
  4117. file.name.split(".")[0] +
  4118. new Date().getTime() +
  4119. "." +
  4120. file.name.split(".")[file.name.split(".").length - 1],
  4121. ContentType: file.type,
  4122. Body: file,
  4123. "Access-Control-Allow-Credentials": "*",
  4124. ACL: "public-read",
  4125. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4126. var options = {
  4127. partSize: 2048 * 1024 * 1024,
  4128. queueSize: 2,
  4129. leavePartsOnError: true,
  4130. };
  4131. bucket
  4132. .upload(params, options)
  4133. .on("httpUploadProgress", function (evt) {
  4134. //这里可以写进度条
  4135. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4136. })
  4137. .send(function (err, data) {
  4138. // loading.close();
  4139. if (err) {
  4140. // var a = _this.$refs.upload1.uploadFiles;
  4141. // a.splice(a.length - 1, a.length);
  4142. _this.$message.error("上传失败");
  4143. } else {
  4144. _this.cover.push({
  4145. name: file.name,
  4146. url: data.Location,
  4147. uid: file.uid,
  4148. });
  4149. _this.imgChange1(null, null, 1, null);
  4150. _this.choosePicVisible = false;
  4151. console.log(data.Location);
  4152. }
  4153. });
  4154. }
  4155. },
  4156. beforeUploadSelect(event, type) {
  4157. // const loading = this.openLoading();
  4158. var file = event.target.files[0];
  4159. var credentials = {
  4160. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4161. secretAccessKey: "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",
  4162. }; //秘钥形式的登录上传
  4163. window.AWS.config.update(credentials);
  4164. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4165. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4166. var _this = this;
  4167. if (file) {
  4168. var params = {
  4169. Key:
  4170. file.name.split(".")[0] +
  4171. new Date().getTime() +
  4172. "." +
  4173. file.name.split(".")[file.name.split(".").length - 1],
  4174. ContentType: file.type,
  4175. Body: file,
  4176. "Access-Control-Allow-Credentials": "*",
  4177. ACL: "public-read",
  4178. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4179. var options = {
  4180. partSize: 2048 * 1024 * 1024,
  4181. queueSize: 2,
  4182. leavePartsOnError: true,
  4183. };
  4184. bucket
  4185. .upload(params, options)
  4186. .on("httpUploadProgress", function (evt) {
  4187. //这里可以写进度条
  4188. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4189. })
  4190. .send(function (err, data) {
  4191. // loading.close();
  4192. if (err) {
  4193. _this.$message.error("上传失败");
  4194. } else {
  4195. _this.selectJson.url = data.Location;
  4196. console.log(data.Location);
  4197. }
  4198. });
  4199. }
  4200. },
  4201. chooseSysPic(p) {
  4202. this.cover.push({
  4203. name: "系统图片.png",
  4204. url: p,
  4205. });
  4206. this.imgChange1(null, null, 1, null);
  4207. this.isSysPic = true;
  4208. this.sysPicVisible = false;
  4209. },
  4210. beforeUpload(data) {
  4211. this.$refs.upload1.uploadFiles;
  4212. this.uploadLoading1 = true;
  4213. var file = data.file;
  4214. var credentials = {
  4215. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4216. secretAccessKey: "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",
  4217. }; //秘钥形式的登录上传
  4218. window.AWS.config.update(credentials);
  4219. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4220. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4221. var _this = this;
  4222. if (file) {
  4223. var params = {
  4224. Key:
  4225. file.name.split(".")[0] +
  4226. new Date().getTime() +
  4227. "." +
  4228. file.name.split(".")[file.name.split(".").length - 1],
  4229. ContentType: file.type,
  4230. Body: file,
  4231. "Access-Control-Allow-Credentials": "*",
  4232. ACL: "public-read",
  4233. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4234. var options = {
  4235. partSize: 2048 * 1024 * 1024,
  4236. queueSize: 2,
  4237. leavePartsOnError: true,
  4238. };
  4239. bucket
  4240. .upload(params, options)
  4241. .on("httpUploadProgress", function (evt) {
  4242. //这里可以写进度条
  4243. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4244. })
  4245. .send(function (err, data) {
  4246. _this.uploadLoading1 = false;
  4247. if (err) {
  4248. // var a = _this.$refs.upload1.uploadFiles;
  4249. // a.splice(a.length - 1, a.length);
  4250. _this.$message.error("上传失败");
  4251. } else {
  4252. //上传成功处理
  4253. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4254. name: file.name,
  4255. url: data.Location,
  4256. uid: file.uid,
  4257. });
  4258. _this.imgChange();
  4259. console.log(data.Location);
  4260. }
  4261. });
  4262. }
  4263. },
  4264. onExceed() {
  4265. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4266. },
  4267. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4268. // const loading = this.openLoading();
  4269. var file = event.target.files[0];
  4270. var credentials = {
  4271. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4272. secretAccessKey: "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",
  4273. }; //秘钥形式的登录上传
  4274. window.AWS.config.update(credentials);
  4275. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4276. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4277. var _this = this;
  4278. if (type == 3) {
  4279. var b = [
  4280. "DOC",
  4281. "DOCX",
  4282. "DOCM",
  4283. "DOTM",
  4284. "DOTX",
  4285. "PPTX",
  4286. "PPSX",
  4287. "PPT",
  4288. "PPS",
  4289. "PPTM",
  4290. "POTM",
  4291. "PPAM",
  4292. "POTX",
  4293. "PPSM",
  4294. ];
  4295. if (
  4296. b.indexOf(
  4297. file.name
  4298. .split(".")
  4299. [file.name.split(".").length - 1].toLocaleUpperCase()
  4300. ) != -1
  4301. ) {
  4302. if (file.size / 1024 / 1024 > 80) {
  4303. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4304. this.inputShow = true;
  4305. // var a = _this.$refs.upload1.uploadFiles;
  4306. // a.splice(a.length - 1, a.length);
  4307. // loading.close();
  4308. return;
  4309. }
  4310. } else if (
  4311. file.name
  4312. .split(".")
  4313. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4314. ) {
  4315. if (file.size / 1024 / 1024 > 80) {
  4316. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4317. this.inputShow = true;
  4318. // var a = _this.$refs.upload1.uploadFiles;
  4319. // a.splice(a.length - 1, a.length);
  4320. // loading.close();
  4321. return;
  4322. }
  4323. }
  4324. }
  4325. this.inputShow = false;
  4326. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4327. itemTaskIndex
  4328. ].progress = 0;
  4329. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4330. itemTaskIndex
  4331. ].proVisible = true;
  4332. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4333. itemTaskIndex
  4334. ].isFinishSize = 0;
  4335. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4336. itemTaskIndex
  4337. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4338. _this.$forceUpdate();
  4339. if (file) {
  4340. var params = {
  4341. Key:
  4342. file.name.split(".")[0] +
  4343. new Date().getTime() +
  4344. "." +
  4345. file.name.split(".")[file.name.split(".").length - 1],
  4346. ContentType: file.type,
  4347. Body: file,
  4348. "Access-Control-Allow-Credentials": "*",
  4349. ACL: "public-read",
  4350. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4351. var options = {
  4352. partSize: 2048 * 1024 * 1024,
  4353. queueSize: 2,
  4354. leavePartsOnError: true,
  4355. };
  4356. bucket
  4357. .upload(params, options)
  4358. .on("httpUploadProgress", function (evt) {
  4359. //这里可以写进度条
  4360. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4361. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4362. itemTaskIndex
  4363. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4364. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4365. itemTaskIndex
  4366. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4367. _this.$forceUpdate();
  4368. })
  4369. .send(function (err, data) {
  4370. // loading.close();
  4371. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4372. itemTaskIndex
  4373. ].progress = 100;
  4374. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4375. itemTaskIndex
  4376. ].isFinishSize =
  4377. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4378. itemTaskIndex
  4379. ].isAllSize;
  4380. _this.$forceUpdate();
  4381. setTimeout(() => {
  4382. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4383. itemTaskIndex
  4384. ].proVisible = false;
  4385. _this.$forceUpdate();
  4386. }, 1000);
  4387. _this.inputShow = true;
  4388. if (err) {
  4389. // var a = _this.$refs.upload1.uploadFiles;
  4390. // a.splice(a.length - 1, a.length);
  4391. _this.$message.error("上传失败");
  4392. } else {
  4393. if (type == 13) {
  4394. let _type = 2;
  4395. var imgA = [
  4396. "png",
  4397. "jpg",
  4398. "jpeg",
  4399. "bmp",
  4400. "gif",
  4401. "webp",
  4402. "psd",
  4403. "svg",
  4404. "tiff",
  4405. ];
  4406. var fileA = [
  4407. "PDF",
  4408. "DOC",
  4409. "DOCX",
  4410. "DOCM",
  4411. "DOTM",
  4412. "DOTX",
  4413. "PPTX",
  4414. "PPSX",
  4415. "PPT",
  4416. "PPS",
  4417. "PPTM",
  4418. "POTM",
  4419. "PPAM",
  4420. "POTX",
  4421. "PPSM",
  4422. "XLSX",
  4423. "XLS",
  4424. ];
  4425. var videoA = [
  4426. "AVI",
  4427. "NAVI",
  4428. "MPEG",
  4429. "ASF",
  4430. "MOV",
  4431. "WMV",
  4432. "3GP",
  4433. "RM",
  4434. "RMVB",
  4435. "FLV",
  4436. "F4V",
  4437. "H.264",
  4438. "H.265",
  4439. "REAL VIDEO",
  4440. "MKV",
  4441. "WebM",
  4442. "HDDVD",
  4443. "MP4",
  4444. "MPG",
  4445. "M4V",
  4446. "MGV",
  4447. "OGV",
  4448. "QTM",
  4449. "STR",
  4450. "AMC",
  4451. "DVX",
  4452. "EVO",
  4453. "DAT",
  4454. "OGG",
  4455. "OGM",
  4456. ];
  4457. if (
  4458. fileA.indexOf(
  4459. data.Location.split(".")[
  4460. data.Location.split(".").length - 1
  4461. ].toLocaleUpperCase()
  4462. ) != -1
  4463. ) {
  4464. _type = 3;
  4465. } else if (
  4466. videoA.indexOf(
  4467. data.Location.split(".")[
  4468. data.Location.split(".").length - 1
  4469. ].toLocaleUpperCase()
  4470. ) != -1
  4471. ) {
  4472. _type = 2;
  4473. } else if (
  4474. imgA.indexOf(
  4475. data.Location.split(".")[
  4476. data.Location.split(".").length - 1
  4477. ].toLocaleLowerCase()
  4478. ) != -1
  4479. ) {
  4480. _type = 13;
  4481. } else {
  4482. _type = 12;
  4483. }
  4484. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4485. itemTaskIndex
  4486. ].chapterData.push({
  4487. name: file.name,
  4488. url: data.Location,
  4489. uid: file.uid,
  4490. type: _type,
  4491. });
  4492. _this.imgChange1(null, null, _type, itemTaskIndex);
  4493. } else if (type == 2 || type == 3 || type == 12) {
  4494. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4495. itemTaskIndex
  4496. ].chapterData.push({
  4497. name: file.name,
  4498. url: data.Location,
  4499. uid: file.uid,
  4500. type: type,
  4501. });
  4502. _this.imgChange1(null, null, type, itemTaskIndex);
  4503. } else if (type == 4) {
  4504. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4505. itemTaskIndex
  4506. ].fileList1.push({
  4507. name: file.name,
  4508. url: data.Location,
  4509. uid: file.uid,
  4510. });
  4511. _this.imgChange1(null, null, type, itemTaskIndex);
  4512. } else if (type == 5) {
  4513. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4514. itemTaskIndex
  4515. ].homeworkList.push({
  4516. name: file.name,
  4517. url: data.Location,
  4518. uid: file.uid,
  4519. });
  4520. _this.imgChange1(null, null, type, itemTaskIndex);
  4521. }
  4522. console.log(data.Location);
  4523. }
  4524. });
  4525. }
  4526. },
  4527. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4528. // const loading = this.openLoading();
  4529. var file = event.target.files[0];
  4530. var credentials = {
  4531. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4532. secretAccessKey: "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",
  4533. }; //秘钥形式的登录上传
  4534. window.AWS.config.update(credentials);
  4535. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4536. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4537. var _this = this;
  4538. if (type == 3) {
  4539. var b = [
  4540. "DOC",
  4541. "DOCX",
  4542. "DOCM",
  4543. "DOTM",
  4544. "DOTX",
  4545. "PPTX",
  4546. "PPSX",
  4547. "PPT",
  4548. "PPS",
  4549. "PPTM",
  4550. "POTM",
  4551. "PPAM",
  4552. "POTX",
  4553. "PPSM",
  4554. ];
  4555. if (
  4556. b.indexOf(
  4557. file.name
  4558. .split(".")
  4559. [file.name.split(".").length - 1].toLocaleUpperCase()
  4560. ) != -1
  4561. ) {
  4562. if (file.size / 1024 / 1024 > 80) {
  4563. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4564. this.inputShow = true;
  4565. // var a = _this.$refs.upload1.uploadFiles;
  4566. // a.splice(a.length - 1, a.length);
  4567. // loading.close();
  4568. return;
  4569. }
  4570. } else if (
  4571. file.name
  4572. .split(".")
  4573. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4574. ) {
  4575. if (file.size / 1024 / 1024 > 80) {
  4576. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4577. this.inputShow = true;
  4578. // var a = _this.$refs.upload1.uploadFiles;
  4579. // a.splice(a.length - 1, a.length);
  4580. // loading.close();
  4581. return;
  4582. }
  4583. }
  4584. }
  4585. this.inputShow = false;
  4586. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4587. itemTaskIndex
  4588. ].progress = 0;
  4589. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4590. itemTaskIndex
  4591. ].proVisible = true;
  4592. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4593. itemTaskIndex
  4594. ].isFinishSize = 0;
  4595. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4596. itemTaskIndex
  4597. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4598. _this.$forceUpdate();
  4599. if (file) {
  4600. var params = {
  4601. Key:
  4602. file.name.split(".")[0] +
  4603. new Date().getTime() +
  4604. "." +
  4605. file.name.split(".")[file.name.split(".").length - 1],
  4606. ContentType: file.type,
  4607. Body: file,
  4608. "Access-Control-Allow-Credentials": "*",
  4609. ACL: "public-read",
  4610. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4611. var options = {
  4612. partSize: 2048 * 1024 * 1024,
  4613. queueSize: 2,
  4614. leavePartsOnError: true,
  4615. };
  4616. bucket
  4617. .upload(params, options)
  4618. .on("httpUploadProgress", function (evt) {
  4619. //这里可以写进度条
  4620. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4621. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4622. itemTaskIndex
  4623. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4624. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4625. itemTaskIndex
  4626. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4627. _this.$forceUpdate();
  4628. })
  4629. .send(function (err, data) {
  4630. // loading.close();
  4631. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4632. itemTaskIndex
  4633. ].progress = 100;
  4634. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4635. itemTaskIndex
  4636. ].isFinishSize =
  4637. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4638. itemTaskIndex
  4639. ].isAllSize;
  4640. _this.$forceUpdate();
  4641. setTimeout(() => {
  4642. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4643. itemTaskIndex
  4644. ].proVisible = false;
  4645. _this.$forceUpdate();
  4646. }, 1000);
  4647. _this.inputShow = true;
  4648. if (err) {
  4649. // var a = _this.$refs.upload1.uploadFiles;
  4650. // a.splice(a.length - 1, a.length);
  4651. _this.$message.error("上传失败");
  4652. } else {
  4653. if (type == 2 || type == 3) {
  4654. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4655. itemTaskIndex
  4656. ].chapterData.push({
  4657. name: file.name,
  4658. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4659. // itemTaskIndex
  4660. // ].chapterData.length+1),
  4661. url: data.Location,
  4662. uid: file.uid,
  4663. type: type,
  4664. text: string,
  4665. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4666. // itemTaskIndex
  4667. // ].chapterData.length + 1),
  4668. });
  4669. _this.imgChange1(null, null, type, itemTaskIndex);
  4670. } else if (type == 4) {
  4671. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4672. itemTaskIndex
  4673. ].fileList1.push({
  4674. name: file.name,
  4675. url: data.Location,
  4676. uid: file.uid,
  4677. });
  4678. _this.imgChange1(null, null, type, itemTaskIndex);
  4679. } else if (type == 5) {
  4680. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4681. itemTaskIndex
  4682. ].homeworkList.push({
  4683. name: file.name,
  4684. url: data.Location,
  4685. uid: file.uid,
  4686. });
  4687. _this.imgChange1(null, null, type, itemTaskIndex);
  4688. }
  4689. console.log(data.Location);
  4690. }
  4691. });
  4692. }
  4693. },
  4694. addunit() {
  4695. this.unitJson.push({
  4696. dyName: "", //单元标题
  4697. isUpdate: 1,
  4698. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4699. chapterInfo: [
  4700. {
  4701. isread: false,
  4702. chapterid: this.guid(),
  4703. title: "",
  4704. courseName: "",
  4705. taskJson: [
  4706. {
  4707. task: "",
  4708. taskDetail: "",
  4709. chapterData: [],
  4710. toolText: "",
  4711. toolChoose: [
  4712. {
  4713. tool: [],
  4714. toolDetail: "",
  4715. toolType: 0,
  4716. askCount: 1,
  4717. askTitle: "",
  4718. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4719. },
  4720. ],
  4721. isShowTools: false,
  4722. askCount: 1,
  4723. isFold: 0,
  4724. askTitle: "",
  4725. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4726. checkJson: [{ checkCount: [], checkPerent: [] }],
  4727. homeworkList: [],
  4728. },
  4729. ],
  4730. itemCount: 1,
  4731. fileList1: [],
  4732. video: [],
  4733. testData: [],
  4734. pData: [],
  4735. templateArray: [],
  4736. },
  4737. ],
  4738. });
  4739. this.addindex = this.unitJson.length - 1;
  4740. setTimeout(() => {
  4741. this.unitIndex = this.unitJson.length - 1;
  4742. this.unitSet(this.unitIndex);
  4743. }, 0);
  4744. },
  4745. addToolFun(itemTaskIndex) {
  4746. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4747. itemTaskIndex
  4748. ].toolChoose.push({
  4749. tool: [],
  4750. toolDetail: "",
  4751. toolType: 0,
  4752. askCount: 1,
  4753. askTitle: "",
  4754. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4755. });
  4756. },
  4757. addTaskBorder() {
  4758. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4759. task: "",
  4760. taskDetail: "",
  4761. chapterData: [],
  4762. toolText: "",
  4763. toolChoose: [
  4764. {
  4765. tool: [],
  4766. toolDetail: "",
  4767. toolType: 0,
  4768. askCount: 1,
  4769. askTitle: "",
  4770. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4771. },
  4772. ],
  4773. isShowTools: false,
  4774. askCount: 1,
  4775. isFold: 0,
  4776. askTitle: "",
  4777. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4778. checkJson: [{ checkCount: [], checkPerent: [] }],
  4779. homeworkList: [],
  4780. });
  4781. },
  4782. add(e, i) {
  4783. var el = e.currentTarget;
  4784. el.getElementsByTagName("input")[0].click();
  4785. },
  4786. fold(i, e) {
  4787. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  4788. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4789. } else {
  4790. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4791. }
  4792. },
  4793. fold2(i) {
  4794. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  4795. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  4796. } else {
  4797. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  4798. }
  4799. this.$forceUpdate();
  4800. },
  4801. deleteHomeworkBox(unitIndex, index, i) {
  4802. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4803. this.taskCount
  4804. ].homeworkList.splice(i, 1);
  4805. },
  4806. getStudent() {
  4807. let params = {
  4808. oid: this.oid,
  4809. cu: "",
  4810. cn: this.searchPeople,
  4811. };
  4812. this.ajax
  4813. .get(this.$store.state.api + "selectStudentAdd", params)
  4814. .then((res) => {
  4815. this.studentJuri = res.data[0];
  4816. })
  4817. .catch((err) => {
  4818. this.isLoading = false;
  4819. console.error(err);
  4820. });
  4821. },
  4822. getTeacher() {
  4823. let params = {
  4824. oid:
  4825. this.org && this.org != "undefined" && this.org != "null"
  4826. ? this.org
  4827. : this.oid,
  4828. cu: "",
  4829. cn: this.searchTN,
  4830. };
  4831. this.ajax
  4832. .get(
  4833. this.$store.state.api +
  4834. (this.org && this.org != "undefined" && this.org != "null"
  4835. ? "selectTeacherAddOrg"
  4836. : "selectTeacherAdd"),
  4837. params
  4838. )
  4839. .then((res) => {
  4840. let teacherJuri = res.data[0];
  4841. for (var i = 0; i < teacherJuri.length; i++) {
  4842. if (teacherJuri[i].userid == this.userid) {
  4843. teacherJuri.splice(i, 1);
  4844. break;
  4845. }
  4846. }
  4847. this.teacherJuri = teacherJuri;
  4848. })
  4849. .catch((err) => {
  4850. console.error(err);
  4851. });
  4852. },
  4853. searchStudent() {
  4854. this.getStudent();
  4855. },
  4856. selectGrage() {
  4857. let params = {
  4858. oid: this.oid,
  4859. };
  4860. this.ajax
  4861. .get(this.$store.state.api + "selectGrageBySchool", params)
  4862. .then((res) => {
  4863. this.gradeList = res.data[0];
  4864. })
  4865. .catch((err) => {
  4866. this.isLoading = false;
  4867. console.error(err);
  4868. });
  4869. },
  4870. //获取班级列表
  4871. getClass() {
  4872. let params = {
  4873. oid: this.oid,
  4874. gid: this.gradeId,
  4875. cn: this.classSearch,
  4876. };
  4877. this.ajax
  4878. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  4879. .then((res) => {
  4880. if (!this.grade.length) {
  4881. this.grade = res.data[0];
  4882. }
  4883. this.grade2 = res.data[0];
  4884. this.classJuri = res.data[0];
  4885. })
  4886. .catch((err) => {
  4887. this.isLoading = false;
  4888. console.error(err);
  4889. });
  4890. },
  4891. CourseType2Change(val) {
  4892. this.pTypeCheck = [];
  4893. for (var i = 0; i < this.CourseType2.length; i++) {
  4894. let typeA = this.CourseType2[i];
  4895. if (val.indexOf(typeA.name) != -1) {
  4896. this.pTypeCheck.push(...typeA.id);
  4897. }
  4898. }
  4899. },
  4900. getChapterData(e, i, j, ic, type) {
  4901. e.stopPropagation();
  4902. this.updataC = true;
  4903. this.icc = ic;
  4904. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4905. console.log("还不能下载图片喔");
  4906. }
  4907. },
  4908. deleteChapterData(e, i, j, ic, taskI) {
  4909. e.stopPropagation();
  4910. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4911. },
  4912. updataVideoT(e, i, j, ic) {
  4913. e.stopPropagation();
  4914. this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  4915. ic
  4916. ].name = JSON.parse(JSON.stringify(e.target.value));
  4917. this.$forceUpdate();
  4918. },
  4919. upCd(e, i, j, taskCount, ic) {
  4920. e.stopPropagation();
  4921. if (ic == 0) {
  4922. return;
  4923. }
  4924. var a =
  4925. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  4926. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4927. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4928. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4929. this.$forceUpdate();
  4930. },
  4931. downCd(e, i, j, taskCount, ic) {
  4932. e.stopPropagation();
  4933. if (
  4934. ic ==
  4935. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4936. 1
  4937. ) {
  4938. return;
  4939. }
  4940. var a =
  4941. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  4942. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4943. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4944. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4945. this.$forceUpdate();
  4946. },
  4947. addWork() {
  4948. let cPan = 1;
  4949. for (var i = 0; i < this.unitJson.length; i++) {
  4950. for (
  4951. var j = 0;
  4952. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4953. j++
  4954. ) {
  4955. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4956. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4957. if (
  4958. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4959. ) {
  4960. for (
  4961. var z = 0;
  4962. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4963. z++
  4964. ) {
  4965. if (
  4966. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4967. .length
  4968. ) {
  4969. this.$message.error("请把工具添加完整");
  4970. cPan = 2;
  4971. break;
  4972. }
  4973. }
  4974. }
  4975. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4976. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4977. i
  4978. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4979. return ele.value != "";
  4980. });
  4981. }
  4982. }
  4983. }
  4984. this.inputShow = true;
  4985. if (cPan == 2) {
  4986. this.steps--;
  4987. return;
  4988. }
  4989. for (var i = 0; i < this.unitJson.length; i++) {
  4990. delete this.unitJson[i].isUpdate;
  4991. }
  4992. let params = [
  4993. {
  4994. uid: this.userid,
  4995. title: this.courseName.replace(/%/g, "%25"),
  4996. brief: this.courseText.replace(/%/g, "%25"),
  4997. cover:
  4998. this.cover.length > 0
  4999. ? JSON.stringify(this.cover)
  5000. : JSON.stringify([
  5001. {
  5002. name: "noBanner.jpg",
  5003. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5004. uid: 1656409780264,
  5005. status: "success",
  5006. },
  5007. ]),
  5008. evaId: this.evalua,
  5009. astudent:
  5010. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5011. see: this.isTeacherSee == true ? 1 : 0,
  5012. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5013. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  5014. courseType: JSON.stringify(this.courseTypeId),
  5015. ateacher:
  5016. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5017. inviteCode: JSON.stringify(this.inviteCode),
  5018. },
  5019. ];
  5020. this.ajax
  5021. .post(this.$store.state.api + "addWorkNew2", params)
  5022. .then((res) => {
  5023. console.log(this.steps);
  5024. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5025. this.$message({
  5026. message: "新增成功",
  5027. type: "success",
  5028. });
  5029. }
  5030. this.number = res.data.ordernumber;
  5031. this.courseId = res.data.courseId;
  5032. this.cid = res.data.courseId;
  5033. this.courseUserid = this.userid;
  5034. this.islogin = true;
  5035. })
  5036. .catch((err) => {
  5037. this.$message.error("网络不佳");
  5038. console.error(err);
  5039. });
  5040. },
  5041. goCourse() {
  5042. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  5043. },
  5044. updateWork2() {
  5045. let _unitIndex = this.unitIndex;
  5046. let cPan = 1;
  5047. for (
  5048. var j = 0;
  5049. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5050. j++
  5051. ) {
  5052. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  5053. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5054. j
  5055. ].proVisible2 = false;
  5056. if (
  5057. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5058. .length > 1
  5059. ) {
  5060. for (
  5061. var z = 0;
  5062. z <
  5063. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5064. .length;
  5065. z++
  5066. ) {
  5067. if (
  5068. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  5069. z
  5070. ].tool.length
  5071. ) {
  5072. this.$message.error("请把工具添加完整");
  5073. cPan = 2;
  5074. break;
  5075. }
  5076. }
  5077. }
  5078. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5079. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5080. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5081. (ele) => {
  5082. return ele.value != "";
  5083. }
  5084. );
  5085. }
  5086. }
  5087. this.inputShow = true;
  5088. if (cPan == 2) {
  5089. this.steps--;
  5090. return;
  5091. }
  5092. let params = [
  5093. {
  5094. cid: this.cid,
  5095. chapters: JSON.stringify(this.unitJson),
  5096. uid: this.userid,
  5097. unitIndex: _unitIndex,
  5098. },
  5099. ];
  5100. this.ajax
  5101. .post(this.$store.state.api + "updateWorkNew4", params)
  5102. .then((res) => {
  5103. this.$message({
  5104. message: "修改成功",
  5105. type: "success",
  5106. });
  5107. this.courseId = this.cid;
  5108. })
  5109. .catch((err) => {
  5110. this.$message.error("网络不佳");
  5111. console.error(err);
  5112. });
  5113. },
  5114. updateWork() {
  5115. let cPan = 1;
  5116. for (var i = 0; i < this.unitJson.length; i++) {
  5117. for (
  5118. var j = 0;
  5119. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5120. j++
  5121. ) {
  5122. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5123. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5124. if (
  5125. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5126. ) {
  5127. for (
  5128. var z = 0;
  5129. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5130. z++
  5131. ) {
  5132. if (
  5133. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5134. .length
  5135. ) {
  5136. this.$message.error("请把工具添加完整");
  5137. cPan = 2;
  5138. break;
  5139. }
  5140. }
  5141. }
  5142. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5143. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5144. i
  5145. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5146. return ele.value != "";
  5147. });
  5148. }
  5149. }
  5150. }
  5151. this.inputShow = true;
  5152. if (cPan == 2) {
  5153. this.steps--;
  5154. return;
  5155. }
  5156. for (var i = 0; i < this.unitJson.length; i++) {
  5157. delete this.unitJson[i].isUpdate;
  5158. }
  5159. let params = [
  5160. {
  5161. cid: this.cid,
  5162. title: this.courseName.replace(/%/g, "%25"),
  5163. brief: this.courseText.replace(/%/g, "%25"),
  5164. cover:
  5165. this.cover.length > 0
  5166. ? JSON.stringify(this.cover)
  5167. : JSON.stringify([
  5168. {
  5169. name: "noBanner.jpg",
  5170. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5171. uid: 1656409780264,
  5172. status: "success",
  5173. },
  5174. ]),
  5175. evaId: this.evalua,
  5176. astudent:
  5177. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5178. see: this.isTeacherSee == true ? 1 : 0,
  5179. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5180. template: this.myWord != "undefined" ? this.myWord : [],
  5181. uid: this.userid,
  5182. courseType: JSON.stringify(this.courseTypeId),
  5183. ateacher:
  5184. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5185. inviteCode: JSON.stringify(this.inviteCode),
  5186. },
  5187. ];
  5188. this.ajax
  5189. .post(this.$store.state.api + "updateWorkNew2", params)
  5190. .then((res) => {
  5191. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5192. if (this.cidType == 1) {
  5193. this.$message({
  5194. message: "修改成功",
  5195. type: "success",
  5196. });
  5197. } else {
  5198. this.$message({
  5199. message: "新增成功",
  5200. type: "success",
  5201. });
  5202. }
  5203. }
  5204. this.number = this.nbOrder;
  5205. this.courseId = this.cid;
  5206. })
  5207. .catch((err) => {
  5208. this.$message.error("网络不佳");
  5209. console.error(err);
  5210. });
  5211. },
  5212. guid() {
  5213. var _num,
  5214. i,
  5215. _guid = "";
  5216. for (i = 0; i < 32; i++) {
  5217. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5218. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5219. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5220. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5221. _guid += "-";
  5222. }
  5223. }
  5224. return _guid;
  5225. },
  5226. insertWord() {
  5227. this.dialogVisible1 = true;
  5228. this.updateBoolean2 = false;
  5229. this.tTitle = "";
  5230. this.tdetail = "";
  5231. },
  5232. addWord() {
  5233. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5234. name: this.tTitle,
  5235. content: this.tdetail,
  5236. uid: this.guid(),
  5237. });
  5238. this.dialogVisible1 = false;
  5239. },
  5240. upWord() { },
  5241. selectWord(uid, i, c) {
  5242. this.dialogVisible1 = true;
  5243. this.updateBoolean2 = true;
  5244. if (
  5245. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5246. ) {
  5247. this.tTitle =
  5248. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5249. this.tdetail =
  5250. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  5251. }
  5252. },
  5253. isAddPP() {
  5254. if (this.checkboxList.length > 0) {
  5255. this.$message({
  5256. message: "添加成功",
  5257. type: "success",
  5258. });
  5259. this.dialogVisible3 = false;
  5260. } else {
  5261. this.$message({
  5262. message: "请添加课程成员",
  5263. type: "error",
  5264. });
  5265. }
  5266. },
  5267. isAddClass() {
  5268. this.dialogVisibleClass = false;
  5269. },
  5270. isAddPPTeacher() {
  5271. this.dialogVisibleMember = false;
  5272. this.setMan();
  5273. },
  5274. getTemplate() {
  5275. this.ajax
  5276. .get(this.$store.state.api + "getCourseTemplateT", "")
  5277. .then((res) => {
  5278. this.templateArray = res.data[0];
  5279. this.getTemplateOid();
  5280. this.$forceUpdate();
  5281. })
  5282. .catch((err) => { });
  5283. },
  5284. getTemplateOid() {
  5285. let params = {
  5286. oid: this.oid,
  5287. };
  5288. this.ajax
  5289. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5290. .then((res) => {
  5291. if (res.data[0].length) {
  5292. this.templateArray = [...res.data[0], ...this.templateArray];
  5293. }
  5294. this.getTemplateOrg();
  5295. this.$forceUpdate();
  5296. })
  5297. .catch((err) => { });
  5298. },
  5299. getTemplateOrg() {
  5300. let params = {
  5301. oid: this.org,
  5302. };
  5303. this.ajax
  5304. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5305. .then((res) => {
  5306. if (res.data[0].length) {
  5307. this.templateArray = [...res.data[0], ...this.templateArray];
  5308. }
  5309. this.$forceUpdate();
  5310. })
  5311. .catch((err) => { });
  5312. },
  5313. clearChoose() {
  5314. this.clearArray.splice(this.templateC.id, 1);
  5315. this.dialogVisible2 = false;
  5316. },
  5317. clearAttText() {
  5318. this.AttText = {
  5319. title: "",
  5320. text: "",
  5321. };
  5322. this.dialogVisible6 = false;
  5323. },
  5324. clearLine() {
  5325. this.line = "";
  5326. this.dialogVisible7 = false;
  5327. },
  5328. checkTemplate(res) {
  5329. let _this = this;
  5330. _this
  5331. .$confirm("确定选择此模板吗?", "提示", {
  5332. confirmButtonText: "确定",
  5333. cancelButtonText: "取消",
  5334. type: "warning",
  5335. })
  5336. .then(() => {
  5337. _this.unitJson = JSON.parse(res.chapters);
  5338. _this.steps++;
  5339. setTimeout(() => {
  5340. this.checkEva(this.checkId);
  5341. }, 1000);
  5342. })
  5343. .catch(() => {
  5344. return;
  5345. });
  5346. },
  5347. checkTemplate1(w) {
  5348. this.steps++;
  5349. },
  5350. checkTemplate2() {
  5351. let _this = this;
  5352. _this
  5353. .$confirm("确定选择空模板吗?", "提示", {
  5354. confirmButtonText: "确定",
  5355. cancelButtonText: "取消",
  5356. type: "warning",
  5357. })
  5358. .then(() => {
  5359. _this.unitIndex = 0;
  5360. _this.unitJson = [
  5361. {
  5362. dyName: "", //单元标题
  5363. chapterInfo: [
  5364. {
  5365. isread: false,
  5366. chapterid: this.guid(),
  5367. title: "",
  5368. courseName: "",
  5369. taskJson: [
  5370. {
  5371. task: "",
  5372. taskDetail: "",
  5373. chapterData: [],
  5374. toolText: "",
  5375. toolChoose: [
  5376. {
  5377. tool: [],
  5378. toolDetail: "",
  5379. toolType: 0,
  5380. askCount: 1,
  5381. askTitle: "",
  5382. askJson: [
  5383. { askstitle: "", askItem: 1, checkList: [] },
  5384. ],
  5385. },
  5386. ],
  5387. isShowTools: false,
  5388. askCount: 1,
  5389. isFold: 0,
  5390. askTitle: "",
  5391. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5392. checkJson: [{ checkCount: [], checkPerent: [] }],
  5393. homeworkList: [],
  5394. },
  5395. ],
  5396. itemCount: 1,
  5397. fileList1: [],
  5398. video: [],
  5399. testData: [],
  5400. pData: [],
  5401. templateArray: [],
  5402. },
  5403. ],
  5404. },
  5405. ];
  5406. this.steps++;
  5407. this.updateWork();
  5408. })
  5409. .catch(() => {
  5410. return;
  5411. });
  5412. },
  5413. checkTemplate3() {
  5414. let _this = this;
  5415. _this
  5416. .$confirm("确定选择简易模式吗?", "提示", {
  5417. confirmButtonText: "确定",
  5418. cancelButtonText: "取消",
  5419. type: "warning",
  5420. })
  5421. .then(() => {
  5422. _this.unitIndex = 0;
  5423. _this.unitJson = [
  5424. {
  5425. dyName: "", //单元标题
  5426. easy: 1,
  5427. chapterInfo: [
  5428. {
  5429. isread: false,
  5430. chapterid: this.guid(),
  5431. title: "",
  5432. courseName: "",
  5433. taskJson: [
  5434. {
  5435. task: "",
  5436. taskDetail: "",
  5437. chapterData: [],
  5438. toolText: "",
  5439. toolChoose: [
  5440. {
  5441. tool: [],
  5442. toolDetail: "",
  5443. toolType: 0,
  5444. askCount: 1,
  5445. askTitle: "",
  5446. askJson: [
  5447. { askstitle: "", askItem: 1, checkList: [] },
  5448. ],
  5449. },
  5450. ],
  5451. isShowTools: false,
  5452. askCount: 1,
  5453. isFold: 0,
  5454. askTitle: "",
  5455. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5456. checkJson: [{ checkCount: [], checkPerent: [] }],
  5457. homeworkList: [],
  5458. },
  5459. ],
  5460. itemCount: 1,
  5461. fileList1: [],
  5462. video: [],
  5463. testData: [],
  5464. pData: [],
  5465. templateArray: [],
  5466. },
  5467. ],
  5468. },
  5469. ];
  5470. this.steps++;
  5471. this.updateWork();
  5472. })
  5473. .catch(() => {
  5474. return;
  5475. });
  5476. },
  5477. checkTemplate4() {
  5478. let _this = this;
  5479. _this
  5480. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5481. confirmButtonText: "确定",
  5482. cancelButtonText: "取消",
  5483. type: "warning",
  5484. })
  5485. .then(() => {
  5486. _this.unitIndex = 0;
  5487. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5488. this.steps++;
  5489. this.updateWork();
  5490. })
  5491. .catch(() => {
  5492. return;
  5493. });
  5494. },
  5495. wordNext() {
  5496. this.dialogVisible2 = false;
  5497. },
  5498. isAddOrUpdateAttText() {
  5499. if (this.AttTextType == 0) {
  5500. this.addAttTextMessage();
  5501. } else {
  5502. this.updateAttText();
  5503. }
  5504. },
  5505. isAddOrUpdateLine() {
  5506. if (!this.lineTitle) {
  5507. this.$message.error("请填写链接标题");
  5508. return;
  5509. }
  5510. if (this.lineType == 0) {
  5511. this.addLine();
  5512. } else {
  5513. this.updateLine();
  5514. }
  5515. },
  5516. addAttTextMessage() {
  5517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5518. this.taskCount
  5519. ].chapterData.push({
  5520. name: this.AttText.title,
  5521. url: this.AttText.text,
  5522. type: 6,
  5523. });
  5524. this.imgChange1(null, null, 6, this.taskCount);
  5525. this.dialogVisible6 = false;
  5526. },
  5527. selectAttText(itemTaskIndex, i) {
  5528. this.AttText.title =
  5529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5530. itemTaskIndex
  5531. ].chapterData[i].name;
  5532. this.AttText.text =
  5533. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5534. itemTaskIndex
  5535. ].chapterData[i].url;
  5536. this.taskCount = itemTaskIndex;
  5537. this.AttTextIndex = i;
  5538. this.AttTextType = 1;
  5539. this.dialogVisible6 = true;
  5540. },
  5541. updateAttText() {
  5542. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5543. this.taskCount
  5544. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5545. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5546. this.taskCount
  5547. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5548. this.dialogVisible6 = false;
  5549. },
  5550. addLine() {
  5551. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5552. this.lineCount
  5553. ].chapterData.push({
  5554. name: "链接",
  5555. title: this.lineTitle,
  5556. url: this.line,
  5557. type: 8,
  5558. });
  5559. this.imgChange1(null, null, 8, this.lineCount);
  5560. this.dialogVisible7 = false;
  5561. },
  5562. selectLine(itemTaskIndex, i) {
  5563. this.line =
  5564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5565. itemTaskIndex
  5566. ].chapterData[i].url;
  5567. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5568. itemTaskIndex
  5569. ].chapterData[i].title
  5570. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5571. .chapterData[i].title
  5572. : "";
  5573. this.taskCount = itemTaskIndex;
  5574. this.lineCount = i;
  5575. this.lineType = 1;
  5576. this.dialogVisible7 = true;
  5577. },
  5578. updateLine() {
  5579. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5580. this.taskCount
  5581. ].chapterData[this.lineCount].url = this.line;
  5582. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5583. this.taskCount
  5584. ].chapterData[this.lineCount].title = this.lineTitle;
  5585. this.dialogVisible7 = false;
  5586. },
  5587. addPP() {
  5588. this.dialogVisible3 = true;
  5589. },
  5590. goTo(path) {
  5591. this.$router.push(path);
  5592. },
  5593. openTools(itemTaskIndex, i, toolIndex) {
  5594. this.toolIndex = toolIndex;
  5595. this.taskCount = itemTaskIndex;
  5596. if (i == 4) {
  5597. if (toolIndex == null) {
  5598. var a =
  5599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5600. .chapterData;
  5601. for (var i = 0; i < a.length; i++) {
  5602. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5603. this.askJson =
  5604. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5605. itemTaskIndex
  5606. ].chapterData[i].askJson;
  5607. }
  5608. }
  5609. } else {
  5610. this.askJson = JSON.parse(
  5611. JSON.stringify(
  5612. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5613. itemTaskIndex
  5614. ].toolChoose[toolIndex]
  5615. )
  5616. );
  5617. }
  5618. this.dialogVisible5 = true;
  5619. } else if (i == 45) {
  5620. if (
  5621. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5622. .toolChoose[toolIndex].testJson
  5623. ) {
  5624. this.testJson = JSON.parse(
  5625. JSON.stringify(
  5626. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5627. itemTaskIndex
  5628. ].toolChoose[toolIndex].testJson
  5629. )
  5630. );
  5631. } else {
  5632. var testJson = {
  5633. testCount: 1,
  5634. testTitle: "",
  5635. testJson: [
  5636. {
  5637. teststitle: "",
  5638. testItem: 1,
  5639. checkList: [],
  5640. timuList: [],
  5641. answer: [],
  5642. type: "1",
  5643. },
  5644. ],
  5645. };
  5646. this.testJson = testJson;
  5647. }
  5648. this.dialogVisibleChoice = true;
  5649. } else if (i == 47) {
  5650. if (
  5651. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5652. .toolChoose[toolIndex].sentenceList
  5653. ) {
  5654. this.sentenceList = JSON.parse(
  5655. JSON.stringify(
  5656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5657. itemTaskIndex
  5658. ].toolChoose[toolIndex].sentenceList
  5659. )
  5660. );
  5661. } else {
  5662. var sentenceList = [
  5663. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5664. ];
  5665. this.sentenceList = sentenceList;
  5666. }
  5667. this.dialogVisibleSentence = true;
  5668. } else if (i == 48) {
  5669. if (
  5670. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5671. .toolChoose[toolIndex].tableJson
  5672. ) {
  5673. this.tableJson = JSON.parse(
  5674. JSON.stringify(
  5675. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5676. itemTaskIndex
  5677. ].toolChoose[toolIndex].tableJson
  5678. )
  5679. );
  5680. } else {
  5681. var tableJson = { text: "" };
  5682. this.tableJson = tableJson;
  5683. }
  5684. this.dialogVisibleTable = true;
  5685. } else if (i == 52) {
  5686. if (
  5687. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5688. .toolChoose[toolIndex].wordJson
  5689. ) {
  5690. this.wordJson = JSON.parse(
  5691. JSON.stringify(
  5692. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5693. itemTaskIndex
  5694. ].toolChoose[toolIndex].wordJson
  5695. )
  5696. );
  5697. } else {
  5698. var wordJson = { text: "" };
  5699. this.wordJson = wordJson;
  5700. }
  5701. this.dialogVisibleWord = true;
  5702. // else if (i == 50) {
  5703. // if (
  5704. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5705. // .toolChoose[toolIndex].uploadJson
  5706. // ) {
  5707. // this.uploadJson = JSON.parse(
  5708. // JSON.stringify(
  5709. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5710. // itemTaskIndex
  5711. // ].toolChoose[toolIndex].uploadJson
  5712. // )
  5713. // );
  5714. // } else {
  5715. // var uploadJson = [];
  5716. // this.uploadJson = uploadJson;
  5717. // }
  5718. // this.dialogVisibleMoreUpload = true;
  5719. // }
  5720. } else if (i == 10) {
  5721. if (
  5722. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5723. .toolChoose[toolIndex].preTime
  5724. ) {
  5725. this.preTime = JSON.parse(
  5726. JSON.stringify(
  5727. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5728. itemTaskIndex
  5729. ].toolChoose[toolIndex].preTime
  5730. )
  5731. );
  5732. } else {
  5733. var preTime = 0;
  5734. this.preTime = preTime;
  5735. }
  5736. this.dialogVisiblePreTime = true;
  5737. } else if (i == 49) {
  5738. if (
  5739. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5740. .toolChoose[toolIndex].groupJson
  5741. ) {
  5742. this.groupJson = JSON.parse(
  5743. JSON.stringify(
  5744. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5745. itemTaskIndex
  5746. ].toolChoose[toolIndex].groupJson
  5747. )
  5748. );
  5749. } else {
  5750. var groupJson = {
  5751. group: [{ name: "第1组" }],
  5752. number: undefined,
  5753. islock: 1,
  5754. };
  5755. this.groupJson = groupJson;
  5756. }
  5757. this.dialogVisibleGroup = true;
  5758. } else if (i == 62) {
  5759. if (
  5760. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5761. .toolChoose[toolIndex].videoJson
  5762. ) {
  5763. this.videoJson = JSON.parse(
  5764. JSON.stringify(
  5765. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5766. itemTaskIndex
  5767. ].toolChoose[toolIndex].videoJson
  5768. )
  5769. );
  5770. } else {
  5771. var videoJson = {
  5772. video: "",
  5773. setting: [],
  5774. };
  5775. this.videoJson = videoJson;
  5776. }
  5777. this.dialogVisibleVideo = true;
  5778. } else if (i == 15) {
  5779. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5780. itemTaskIndex
  5781. ].toolChoose[toolIndex].answerQ
  5782. ? JSON.parse(
  5783. JSON.stringify(
  5784. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5785. itemTaskIndex
  5786. ].toolChoose[toolIndex].answerQ
  5787. )
  5788. )
  5789. : "";
  5790. this.dialogVisible8 = true;
  5791. } else if (i == 40) {
  5792. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5793. itemTaskIndex
  5794. ].toolChoose[toolIndex].rateJson
  5795. ? JSON.parse(
  5796. JSON.stringify(
  5797. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5798. itemTaskIndex
  5799. ].toolChoose[toolIndex].rateJson
  5800. )
  5801. )
  5802. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5803. this.selectSteps = 1;
  5804. this.dialogVisibleRate = true;
  5805. } else if (i == 42) {
  5806. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5807. itemTaskIndex
  5808. ].toolChoose[toolIndex].answerQ
  5809. ? JSON.parse(
  5810. JSON.stringify(
  5811. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5812. itemTaskIndex
  5813. ].toolChoose[toolIndex].answerQ
  5814. )
  5815. )
  5816. : "";
  5817. this.dialogVisibleMp3 = true;
  5818. } else if (i == 41) {
  5819. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5820. itemTaskIndex
  5821. ].toolChoose[toolIndex].selectJson
  5822. ? JSON.parse(
  5823. JSON.stringify(
  5824. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5825. itemTaskIndex
  5826. ].toolChoose[toolIndex].selectJson
  5827. )
  5828. )
  5829. : { url: "", select: [], answer: [] };
  5830. this.selectSteps = 1;
  5831. this.dialogVisibleSelect = true;
  5832. } else if (i == 3) {
  5833. window.parent.postMessage(
  5834. {
  5835. tools: "3y",
  5836. cid: this.cid,
  5837. stage: this.unitIndex,
  5838. task: itemTaskIndex,
  5839. tool: toolIndex,
  5840. },
  5841. "*"
  5842. );
  5843. } else if (i == 1) {
  5844. window.parent.postMessage(
  5845. {
  5846. tools: "1y",
  5847. cid: this.cid,
  5848. stage: this.unitIndex,
  5849. task: itemTaskIndex,
  5850. tool: toolIndex,
  5851. },
  5852. "*"
  5853. );
  5854. } else if (i == 57) {
  5855. window.parent.postMessage(
  5856. {
  5857. tools: "57y",
  5858. cid: this.cid,
  5859. stage: this.unitIndex,
  5860. task: itemTaskIndex,
  5861. tool: toolIndex,
  5862. },
  5863. "*"
  5864. );
  5865. }
  5866. },
  5867. chapAddTools(i) {
  5868. if (this.chapTools[0].tools.length == 0) {
  5869. this.chapTools[0].tools.push(i);
  5870. } else {
  5871. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5872. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5873. } else {
  5874. this.chapTools[0].tools.push(i);
  5875. }
  5876. }
  5877. this.$forceUpdate();
  5878. },
  5879. addChaptersDataTools() {
  5880. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5881. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5882. this.chapCount
  5883. ].chapterData.push({
  5884. name: this.chapTools[0].toolDetail,
  5885. url: this.chapTools[0].tools,
  5886. type: 7,
  5887. askJson: this.askJson,
  5888. });
  5889. } else {
  5890. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5891. this.chapCount
  5892. ].chapterData.push({
  5893. name: this.chapTools[0].toolDetail,
  5894. url: this.chapTools[0].tools,
  5895. type: 7,
  5896. });
  5897. }
  5898. this.imgChange1(null, null, 7, this.chapCount);
  5899. this.dialogVisible4 = false;
  5900. },
  5901. addTools(i, itemTaskIndex, toolIndex) {
  5902. // if (
  5903. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5904. // .toolChoose[toolIndex].tool.length == 0
  5905. // ) {
  5906. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5907. // itemTaskIndex
  5908. // ].toolChoose[toolIndex].tool.push(i);
  5909. // } else {
  5910. // if (
  5911. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5912. // itemTaskIndex
  5913. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5914. // ) {
  5915. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5916. // itemTaskIndex
  5917. // ].toolChoose[toolIndex].tool.splice(
  5918. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5919. // itemTaskIndex
  5920. // ].toolChoose[toolIndex].tool.indexOf(i),
  5921. // 1
  5922. // );
  5923. // } else {
  5924. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5925. // itemTaskIndex
  5926. // ].toolChoose[toolIndex].tool.push(i);
  5927. // }
  5928. // console.log(
  5929. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5930. // .toolChoose[toolIndex].tool
  5931. // );
  5932. // }
  5933. if (i == 4) {
  5934. if (
  5935. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5936. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5937. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5938. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5939. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5940. .toolChoose[toolIndex].askJson[0].checkList < 2
  5941. ) {
  5942. this.openTools(itemTaskIndex, 4, toolIndex);
  5943. // this.$message({
  5944. // message: "请填写完整问卷内容",
  5945. // type: "error",
  5946. // });
  5947. return;
  5948. }
  5949. }
  5950. if (i == 45) {
  5951. if (
  5952. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5953. .toolChoose[toolIndex].testJson ||
  5954. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5955. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5956. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5957. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5958. ) {
  5959. this.openTools(itemTaskIndex, 45, toolIndex);
  5960. // this.$message({
  5961. // message: "请填写完整问卷内容",
  5962. // type: "error",
  5963. // });
  5964. return;
  5965. }
  5966. }
  5967. if (i == 47) {
  5968. if (
  5969. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5970. .toolChoose[toolIndex].sentenceList ||
  5971. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5972. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5973. ) {
  5974. this.openTools(itemTaskIndex, 47, toolIndex);
  5975. return;
  5976. }
  5977. }
  5978. // if (i == 48) {
  5979. // if (
  5980. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5981. // .toolChoose[toolIndex].tableJson
  5982. // ) {
  5983. // this.openTools(itemTaskIndex, 48, toolIndex);
  5984. // return;
  5985. // }
  5986. // }
  5987. // if (i == 50) {
  5988. // if (
  5989. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5990. // .toolChoose[toolIndex].uploadJson
  5991. // ) {
  5992. // this.openTools(itemTaskIndex, 50, toolIndex);
  5993. // return;
  5994. // }
  5995. // }
  5996. if (i == 49) {
  5997. if (
  5998. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5999. .toolChoose[toolIndex].groupJson
  6000. ) {
  6001. this.openTools(itemTaskIndex, 49, toolIndex);
  6002. return;
  6003. }
  6004. }
  6005. if (i == 62) {
  6006. if (
  6007. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6008. .toolChoose[toolIndex].videoJson
  6009. ) {
  6010. this.openTools(itemTaskIndex, 62, toolIndex);
  6011. return;
  6012. }
  6013. }
  6014. if (i == 15) {
  6015. if (
  6016. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6017. .toolChoose[toolIndex].answerQ ||
  6018. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6019. .toolChoose[toolIndex].answerQ == ""
  6020. ) {
  6021. this.openTools(itemTaskIndex, 15, toolIndex);
  6022. // this.$message({
  6023. // message: "请填写问答内容",
  6024. // type: "error",
  6025. // });
  6026. return;
  6027. }
  6028. }
  6029. if (i == 40) {
  6030. if (
  6031. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6032. .toolChoose[toolIndex].rateJson ||
  6033. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6034. .toolChoose[toolIndex].rateJson.length
  6035. ) {
  6036. this.openTools(itemTaskIndex, 40, toolIndex);
  6037. return;
  6038. }
  6039. }
  6040. if (i == 41) {
  6041. if (
  6042. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6043. .toolChoose[toolIndex].selectJson ||
  6044. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6045. .toolChoose[toolIndex].selectJson.url == "" ||
  6046. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6047. .toolChoose[toolIndex].selectJson.select.length ||
  6048. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6049. .toolChoose[toolIndex].selectJson.answer.length
  6050. ) {
  6051. this.openTools(itemTaskIndex, 41, toolIndex);
  6052. return;
  6053. }
  6054. }
  6055. if (i == 42) {
  6056. if (
  6057. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6058. .toolChoose[toolIndex].answerQ ||
  6059. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6060. .toolChoose[toolIndex].answerQ == ""
  6061. ) {
  6062. this.openTools(itemTaskIndex, 42, toolIndex);
  6063. return;
  6064. }
  6065. }
  6066. if (
  6067. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6068. .toolChoose[toolIndex].tool.length > 0
  6069. ) {
  6070. if (
  6071. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6072. itemTaskIndex
  6073. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6074. ) {
  6075. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6076. itemTaskIndex
  6077. ].toolChoose[toolIndex].tool.splice(
  6078. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6079. itemTaskIndex
  6080. ].toolChoose[toolIndex].tool.indexOf(i),
  6081. 1
  6082. );
  6083. } else {
  6084. // this.$message({
  6085. // message: "每个工具只能添加一个",
  6086. // type: "error",
  6087. // });
  6088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6089. itemTaskIndex
  6090. ].toolChoose[toolIndex].tool = [];
  6091. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6092. itemTaskIndex
  6093. ].toolChoose[toolIndex].tool.push(i);
  6094. }
  6095. } else {
  6096. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6097. itemTaskIndex
  6098. ].toolChoose[toolIndex].tool.push(i);
  6099. }
  6100. this.$forceUpdate();
  6101. },
  6102. addAskList() {
  6103. this.askJson.askJson.push({
  6104. askstitle: "",
  6105. askItem: 1,
  6106. checkList: [],
  6107. });
  6108. this.askJson.askCount++;
  6109. },
  6110. addTestList() {
  6111. this.testJson.testJson.push({
  6112. teststitle: "",
  6113. testItem: 1,
  6114. checkList: [],
  6115. timuList: [],
  6116. answer: [],
  6117. type: "1",
  6118. });
  6119. this.testJson.testCount++;
  6120. },
  6121. deleteAskList(index) {
  6122. this.askJson.askJson.splice(index, 1);
  6123. this.askJson.askCount--;
  6124. },
  6125. deleteTestList(index) {
  6126. this.testJson.testJson.splice(index, 1);
  6127. this.testJson.testCount--;
  6128. },
  6129. addcheckList(json) {
  6130. json.checkList.length++;
  6131. json.askItem++;
  6132. },
  6133. deletecheckList(json) {
  6134. json.checkList.length--;
  6135. json.askItem--;
  6136. },
  6137. addTcheckList(json) {
  6138. json.checkList.length++;
  6139. json.testItem++;
  6140. },
  6141. deleteTcheckList(json) {
  6142. json.checkList.length--;
  6143. json.testItem--;
  6144. },
  6145. checkTestType(type, json) {
  6146. json.type = type;
  6147. setTimeout(() => {
  6148. json.answer = [];
  6149. }, 100)
  6150. },
  6151. checkAskType(type, json) {
  6152. json.type = type;
  6153. json.checkList = [];
  6154. },
  6155. addSelectList(json) {
  6156. json.select.push("");
  6157. json.answer.push("");
  6158. },
  6159. deleteSelectList(json) {
  6160. // json.select.length--;
  6161. // json.answer.length--;
  6162. json.select.splice(json.select.length - 1, 1);
  6163. json.answer.splice(json.answer.length - 1, 1);
  6164. },
  6165. addAsk() {
  6166. if (this.askJson.askTitle === "") {
  6167. this.$message.error("标题不能为空!");
  6168. return;
  6169. }
  6170. var aj = this.askJson.askJson;
  6171. var b = 1;
  6172. for (var i = 0; i < aj.length; i++) {
  6173. if (aj[i].askstitle === "") {
  6174. var a = 1;
  6175. for (let index = 0; index < aj[i].askItem; index++) {
  6176. const element = aj[i].checkList[index]
  6177. ? aj[i].checkList[index]
  6178. : "";
  6179. if (element != "") {
  6180. b++;
  6181. this.$message.error("填写了选项,题目不能为空!");
  6182. return;
  6183. } else {
  6184. a++;
  6185. }
  6186. }
  6187. if (b == 1) {
  6188. this.$message.error("至少填写一个问题");
  6189. return;
  6190. }
  6191. } else if (aj[i].askstitle != "") {
  6192. for (let index = 0; index < aj[i].askItem; index++) {
  6193. const element = aj[i].checkList[index]
  6194. ? aj[i].checkList[index]
  6195. : "";
  6196. var index = 0;
  6197. for (var z = 0; z < aj[i].checkList.length; z++) {
  6198. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6199. if (checkC != "") {
  6200. index++;
  6201. } else {
  6202. this.$message.error("选项不能为空!");
  6203. return;
  6204. }
  6205. }
  6206. b++;
  6207. if (index < 2) {
  6208. this.$message.error("填写了的题目,选项至少要有两项!");
  6209. return;
  6210. }
  6211. }
  6212. }
  6213. }
  6214. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6215. var elc = el.checkList.filter((element) => {
  6216. return element != "";
  6217. });
  6218. return el.askstitle != "" && elc.length != 0;
  6219. });
  6220. if (!this.dialogVisible4) {
  6221. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6222. this.taskCount
  6223. ].toolChoose[this.toolIndex] = this.askJson;
  6224. }
  6225. this.dialogVisible5 = false;
  6226. if (
  6227. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6228. .toolChoose[this.toolIndex].tool != 4
  6229. ) {
  6230. this.addTools(4, this.taskCount, this.toolIndex);
  6231. }
  6232. },
  6233. addTest() {
  6234. // if (this.testJson.testTitle === "") {
  6235. // this.$message.error("标题不能为空!");
  6236. // return;
  6237. // }
  6238. var aj = this.testJson.testJson;
  6239. var b = 1;
  6240. for (var i = 0; i < aj.length; i++) {
  6241. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  6242. var a = 1;
  6243. for (let index = 0; index < aj[i].testItem; index++) {
  6244. const element = aj[i].checkList[index]
  6245. ? aj[i].checkList[index]
  6246. : "";
  6247. if (element != "") {
  6248. b++;
  6249. this.$message.error("填写了选项,题目不能为空!");
  6250. return;
  6251. } else {
  6252. a++;
  6253. }
  6254. }
  6255. if (b == 1) {
  6256. this.$message.error("至少填写一个问题");
  6257. return;
  6258. }
  6259. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  6260. for (let index = 0; index < aj[i].testItem; index++) {
  6261. const element = aj[i].checkList[index]
  6262. ? aj[i].checkList[index]
  6263. : "";
  6264. var index = 0;
  6265. for (var z = 0; z < aj[i].checkList.length; z++) {
  6266. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6267. if (checkC != "") {
  6268. index++;
  6269. } else {
  6270. this.$message.error("选项不能为空!");
  6271. return;
  6272. }
  6273. }
  6274. b++;
  6275. if (index < 2) {
  6276. this.$message.error("填写了的题目,选项至少要有两项!");
  6277. return;
  6278. }
  6279. if (
  6280. (aj[i].type == "2" && !aj[i].answer.length) ||
  6281. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  6282. ) {
  6283. this.$message.error("有题目未选择答案请选择答案");
  6284. return;
  6285. }
  6286. }
  6287. }
  6288. }
  6289. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6290. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6291. var elc = el.checkList.filter((element) => {
  6292. return element != "";
  6293. });
  6294. return (
  6295. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6296. );
  6297. });
  6298. isTestJson.testCount = isTestJson.testJson.length;
  6299. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6300. this.taskCount
  6301. ].toolChoose[this.toolIndex].testJson = isTestJson;
  6302. this.dialogVisibleChoice = false;
  6303. if (
  6304. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6305. .toolChoose[this.toolIndex].tool != 45
  6306. ) {
  6307. this.addTools(45, this.taskCount, this.toolIndex);
  6308. }
  6309. },
  6310. addVideoJson(videoJson) {
  6311. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6312. this.taskCount
  6313. ].toolChoose[this.toolIndex].videoJson = videoJson;
  6314. this.dialogVisibleVideo = false;
  6315. if (
  6316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6317. .toolChoose[this.toolIndex].tool != 62
  6318. ) {
  6319. this.addTools(62, this.taskCount, this.toolIndex);
  6320. }
  6321. },
  6322. //自动获取剪贴板
  6323. pasteOption() {
  6324. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6325. if (!iframe) {
  6326. this.$message.error("请使用AI共创生成题目");
  6327. return;
  6328. }
  6329. let copyData = iframe.contentWindow.copyData;
  6330. if (!copyData || !copyData.selectData.length) {
  6331. this.$message.error("请使用AI共创生成题目");
  6332. return;
  6333. }
  6334. let selectData = copyData.selectData;
  6335. for (var i = 0; i < selectData.length; i++) {
  6336. let answer = 0;
  6337. switch (selectData[i].answer[0]) {
  6338. case "A":
  6339. answer = 0;
  6340. break;
  6341. case "B":
  6342. answer = 1;
  6343. break;
  6344. case "C":
  6345. answer = 2;
  6346. break;
  6347. case "D":
  6348. answer = 3;
  6349. break;
  6350. case "E":
  6351. answer = 4;
  6352. break;
  6353. default:
  6354. break;
  6355. }
  6356. this.testJson.testJson.push({
  6357. teststitle: selectData[i].subject,
  6358. testItem: selectData[i].options.length,
  6359. checkList: selectData[i].options,
  6360. timuList: [],
  6361. answer: answer,
  6362. type: "1",
  6363. });
  6364. this.testJson.testCount++;
  6365. }
  6366. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6367. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6368. var elc = el.checkList.filter((element) => {
  6369. return element != "";
  6370. });
  6371. return (
  6372. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6373. );
  6374. });
  6375. isTestJson.testCount = isTestJson.testJson.length;
  6376. this.testJson = isTestJson;
  6377. this.$forceUpdate();
  6378. },
  6379. pasteTask() {
  6380. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6381. if (!iframe) {
  6382. this.$message.error("请使用AI共创生成");
  6383. return;
  6384. }
  6385. let copyData = iframe.contentWindow.copyData;
  6386. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6387. this.$message.error("请使用AI共创生成");
  6388. return;
  6389. }
  6390. let stageTasksData = copyData.tasksData;
  6391. let taskA = [];
  6392. let tasks = stageTasksData;
  6393. for (var j = 0; j < tasks.length; j++) {
  6394. taskA.push({
  6395. task: tasks[j].taskName,
  6396. taskDetail: tasks[j].taskDecs,
  6397. chapterData: [],
  6398. toolText: "",
  6399. toolChoose: [
  6400. {
  6401. tool: [],
  6402. toolDetail: "",
  6403. toolType: 0,
  6404. askCount: 1,
  6405. askTitle: "",
  6406. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6407. },
  6408. ],
  6409. isShowTools: false,
  6410. askCount: 1,
  6411. isFold: 0,
  6412. askTitle: "",
  6413. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6414. checkJson: [{ checkCount: [], checkPerent: [] }],
  6415. homeworkList: [],
  6416. });
  6417. }
  6418. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  6419. this.$forceUpdate();
  6420. },
  6421. pasteStage() {
  6422. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6423. if (!iframe) {
  6424. this.$message.error("请使用AI共创生成");
  6425. return;
  6426. }
  6427. let copyData = iframe.contentWindow.copyData;
  6428. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6429. this.$message.error("请使用AI共创生成");
  6430. return;
  6431. }
  6432. let stageData = copyData.stageData;
  6433. let stage = [];
  6434. for (var i = 0; i < stageData.length; i++) {
  6435. stage.push({
  6436. dyName: stageData[i], //单元标题
  6437. chapterInfo: [
  6438. {
  6439. isread: false,
  6440. chapterid: this.guid(),
  6441. title: "",
  6442. courseName: "",
  6443. taskJson: [
  6444. {
  6445. task: "",
  6446. taskDetail: "",
  6447. chapterData: [],
  6448. toolText: "",
  6449. toolChoose: [
  6450. {
  6451. tool: [],
  6452. toolDetail: "",
  6453. toolType: 0,
  6454. askCount: 1,
  6455. askTitle: "",
  6456. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6457. },
  6458. ],
  6459. isShowTools: false,
  6460. askCount: 1,
  6461. isFold: 0,
  6462. askTitle: "",
  6463. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6464. checkJson: [{ checkCount: [], checkPerent: [] }],
  6465. homeworkList: [],
  6466. },
  6467. ],
  6468. itemCount: 1,
  6469. fileList1: [],
  6470. video: [],
  6471. testData: [],
  6472. pData: [],
  6473. templateArray: [],
  6474. },
  6475. ],
  6476. });
  6477. }
  6478. let _this = this;
  6479. _this
  6480. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6481. confirmButtonText: "确定",
  6482. cancelButtonText: "取消",
  6483. type: "warning",
  6484. })
  6485. .then(() => {
  6486. _this.unitIndex = 0;
  6487. _this.unitJson = stage;
  6488. _this.steps++;
  6489. _this.updateWork();
  6490. })
  6491. .catch(() => {
  6492. return;
  6493. });
  6494. },
  6495. openStageBox() {
  6496. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  6497. this.dialogVisibleStageChange = true;
  6498. },
  6499. updateChange() {
  6500. this.$confirm(
  6501. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  6502. "提示",
  6503. {
  6504. confirmButtonText: "确定",
  6505. cancelButtonText: "取消",
  6506. type: "warning",
  6507. }
  6508. )
  6509. .then(() => {
  6510. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  6511. this.updateWork()
  6512. this.dialogVisibleStageChange = false;
  6513. })
  6514. .catch(() => {
  6515. return;
  6516. });
  6517. },
  6518. addAnswer() {
  6519. if (this.answerQ == "") {
  6520. this.$message.error("请输入您想要问的问题");
  6521. return;
  6522. }
  6523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6524. this.taskCount
  6525. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6526. this.dialogVisible8 = false;
  6527. if (
  6528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6529. .toolChoose[this.toolIndex].tool != 15
  6530. ) {
  6531. this.addTools(15, this.taskCount, this.toolIndex);
  6532. }
  6533. },
  6534. addMp3Answer() {
  6535. if (this.answerQ == "") {
  6536. this.$message.error("请输入您想要回答的问题");
  6537. return;
  6538. }
  6539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6540. this.taskCount
  6541. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6542. this.dialogVisibleMp3 = false;
  6543. },
  6544. addRateAnswer() {
  6545. var a = 1;
  6546. for (var i = 0; i < this.rateJson.length; i++) {
  6547. if (this.rateJson[i].value == "") {
  6548. a = 2;
  6549. break;
  6550. }
  6551. }
  6552. if (a == 2) {
  6553. this.$message.error("请把评价信息填写完整");
  6554. return;
  6555. }
  6556. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6557. this.taskCount
  6558. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6559. this.dialogVisibleRate = false;
  6560. if (
  6561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6562. .toolChoose[this.toolIndex].tool != 40
  6563. ) {
  6564. this.addTools(40, this.taskCount, this.toolIndex);
  6565. }
  6566. },
  6567. addSelectAnswer() {
  6568. if (this.selectJson.url == "") {
  6569. this.$message.error("请上传题目");
  6570. return;
  6571. }
  6572. if (!this.selectJson.select.length) {
  6573. this.$message.error("请添加选项");
  6574. return;
  6575. }
  6576. if (!this.selectJson.answer.length) {
  6577. this.$message.error("请设置答案");
  6578. return;
  6579. }
  6580. var a = 1;
  6581. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6582. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6583. a = 2;
  6584. }
  6585. }
  6586. if (a == 2) {
  6587. this.$message.error("请设置答案");
  6588. return;
  6589. }
  6590. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6591. this.taskCount
  6592. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6593. this.dialogVisibleSelect = false;
  6594. if (
  6595. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6596. .toolChoose[this.toolIndex].tool != 41
  6597. ) {
  6598. this.addTools(41, this.taskCount, this.toolIndex);
  6599. }
  6600. },
  6601. nextSelectSteps() {
  6602. if (this.selectJson.url == "") {
  6603. this.$message.error("请上传题目");
  6604. return;
  6605. }
  6606. if (!this.selectJson.select.length) {
  6607. this.$message.error("请添加选项");
  6608. return;
  6609. }
  6610. var a = 1;
  6611. for (var i = 0; i < this.selectJson.select.length; i++) {
  6612. if (!this.selectJson.select[i]) {
  6613. a = 2;
  6614. }
  6615. }
  6616. if (a == 2) {
  6617. this.$message.error("添加的选项不能为空");
  6618. return;
  6619. }
  6620. this.selectSteps++;
  6621. },
  6622. selectCourseDetail() {
  6623. if (this.cid == "" || this.cid == undefined) {
  6624. console.log("这是新增课程");
  6625. this.selectAllType();
  6626. } else {
  6627. this.cidType = 1;
  6628. let params = {
  6629. cid: this.cid,
  6630. };
  6631. this.ajax
  6632. .get(this.$store.state.api + "select_course_detail", params)
  6633. .then((res) => {
  6634. this.loading = true;
  6635. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6636. for (var j = 0; j < this.unitJson.length; j++) {
  6637. for (
  6638. var k = 0;
  6639. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6640. k++
  6641. ) {
  6642. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6643. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6644. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6645. : [];
  6646. let _chapterData = [];
  6647. for (
  6648. var c = 0;
  6649. c <
  6650. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6651. .length;
  6652. c++
  6653. ) {
  6654. if (
  6655. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6656. ) {
  6657. _chapterData.push(
  6658. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6659. );
  6660. }
  6661. }
  6662. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6663. _chapterData;
  6664. }
  6665. }
  6666. this.$forceUpdate();
  6667. this.courseName = res.data[0][0].title;
  6668. this.courseText = res.data[0][0].brief;
  6669. this.evalua = res.data[0][0].evaId;
  6670. this.cover = JSON.parse(res.data[0][0].cover);
  6671. this.noneBtnImg = this.cover.length >= 1;
  6672. // this.checkboxList =
  6673. // res.data[0][0].course_student.length > 0
  6674. // ? JSON.parse(res.data[0][0].course_student)
  6675. // : [];
  6676. this.checkboxList2 = res.data[0][0].juri
  6677. ? res.data[0][0].juri.split(",")
  6678. : [];
  6679. this.inviteCode = [];
  6680. for (var i = 0; i < res.data[2].length; i++) {
  6681. this.inviteCode.push({
  6682. cid: res.data[2][i].classid,
  6683. ic: res.data[2][i].code,
  6684. });
  6685. }
  6686. this.checkboxList3 = res.data[0][0].course_teacher
  6687. ? res.data[0][0].course_teacher.split(",")
  6688. : [];
  6689. // this.isTeacherSee =
  6690. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6691. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6692. this.myWord = res.data[0][0].template;
  6693. this.templateC.id = "123";
  6694. this.courseUserid = res.data[0][0].userid;
  6695. // if(this.courseUserid == this.userid){
  6696. // this.InviteChange(this.checkboxList2)
  6697. // }
  6698. this.nbOrder = res.data[0][0].ordernumber;
  6699. this.courseTypeId = [];
  6700. for (var i = 0; i < res.data[1].length; i++) {
  6701. this.courseTypeId.push(res.data[1][i].typeid);
  6702. }
  6703. console.log(this.courseTypeId);
  6704. // if (this.timer) clearInterval(this.timer);
  6705. if (this.timer) clearTimeout(this.timer);
  6706. this.timer = null;
  6707. // this.timer = setInterval(() => {
  6708. this.seleteCourseUpdate();
  6709. this.setMan();
  6710. this.selectAllType();
  6711. // }, 5000);
  6712. this.$forceUpdate();
  6713. setTimeout(() => {
  6714. this.checkEva(this.evalua);
  6715. }, 0);
  6716. })
  6717. .catch((err) => {
  6718. console.error(err);
  6719. });
  6720. }
  6721. },
  6722. seleteCourseUpdate() {
  6723. let params = {
  6724. cid: this.cid,
  6725. };
  6726. this.ajax
  6727. .get(this.$store.state.api + "select_course_detail", params)
  6728. .then((res) => {
  6729. // console.log(this.unitJson);
  6730. let unitJson = JSON.parse(res.data[0][0].chapters);
  6731. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6732. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6733. let _unitJson = [];
  6734. let _chapAarry = [];
  6735. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6736. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6737. let index = 1;
  6738. let chapindex;
  6739. if (_unitJson2.length > unitJson.length) {
  6740. for (let c = 0; c < _unitJson2.length; c++) {
  6741. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6742. }
  6743. for (let j = 0; j < unitJson.length; j++) {
  6744. let count = 0;
  6745. for (let k = 0; k < _unitJson2.length; k++) {
  6746. if (
  6747. unitJson[j].chapterInfo[0].chapterid ==
  6748. _unitJson2[k].chapterInfo[0].chapterid
  6749. ) {
  6750. count++;
  6751. _chapAarry.splice(
  6752. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6753. 1
  6754. );
  6755. _unitJson.push(unitJson[j]);
  6756. break;
  6757. }
  6758. }
  6759. // if(count === 0){
  6760. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6761. // }
  6762. }
  6763. for (let k = 0; k < _unitJson2.length; k++) {
  6764. if (_unitJson2[k].isUpdate == 1) {
  6765. _chapAarry.splice(
  6766. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6767. 1
  6768. );
  6769. _unitJson.push(_unitJson2[k]);
  6770. }
  6771. }
  6772. console.log(_chapAarry);
  6773. for (let d = 0; d < _unitJson2.length; d++) {
  6774. if (
  6775. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6776. ) {
  6777. if (_unitIndex == d) {
  6778. index = 2;
  6779. }
  6780. chapindex = d;
  6781. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6782. }
  6783. }
  6784. } else {
  6785. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6786. }
  6787. for (let i = 0; i < unitJson.length; i++) {
  6788. if (
  6789. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6790. _unitJson[i].chapterInfo[0].chapterid !=
  6791. unitJson[i].chapterInfo[0].chapterid
  6792. ) {
  6793. if (i == _unitJson.length - 1) {
  6794. // this.unitIndex++
  6795. _unitIndex2++;
  6796. }
  6797. _unitJson.splice(i, 0, unitJson[i]);
  6798. } else if (i > _unitJson.length - 1) {
  6799. _unitJson.push(unitJson[i]);
  6800. } else if (
  6801. _unitJson[i].chapterInfo[0].chapterid ==
  6802. unitJson[i].chapterInfo[0].chapterid
  6803. ) {
  6804. _unitJson[i] = unitJson[i];
  6805. }
  6806. // if (i == _unitIndex) {
  6807. // continue;
  6808. // } else
  6809. }
  6810. if (_chapAarry.length && index != 2) {
  6811. if (chapindex < _unitIndex) {
  6812. this.isDelete = 2;
  6813. // this.unitIndex--;
  6814. _unitIndex2--;
  6815. } else if (
  6816. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6817. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6818. ) {
  6819. this.isDelete = 2;
  6820. for (let n = 0; n < _unitJson.length; n++) {
  6821. if (
  6822. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6823. _unitJson[n].chapterInfo[0].chapterid
  6824. ) {
  6825. // this.unitIndex = n;
  6826. _unitIndex2 = n;
  6827. _unitJson[n] = _unitJson2[_unitIndex];
  6828. break;
  6829. }
  6830. }
  6831. }
  6832. } else if (index != 2) {
  6833. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6834. _unitJson2[_unitIndex];
  6835. for (
  6836. var ci = 0;
  6837. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6838. ci++
  6839. ) {
  6840. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6841. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6842. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6843. .toolChoose
  6844. : [];
  6845. let _chapterData = [];
  6846. for (
  6847. var c = 0;
  6848. c <
  6849. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6850. .length;
  6851. c++
  6852. ) {
  6853. if (
  6854. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6855. .chapterData[c]
  6856. ) {
  6857. _chapterData.push(
  6858. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6859. .chapterData[c]
  6860. );
  6861. }
  6862. }
  6863. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6864. _chapterData;
  6865. }
  6866. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6867. }
  6868. if (index == 1) {
  6869. this.unitJson = _unitJson;
  6870. this.$forceUpdate();
  6871. setTimeout(() => {
  6872. if (this.unitIndex != _unitIndex2) {
  6873. this.isDelete = 2;
  6874. this.unitIndex = _unitIndex2;
  6875. }
  6876. }, 0);
  6877. this.timer = setTimeout(() => {
  6878. this.seleteCourseUpdate();
  6879. }, 1000);
  6880. } else if (index == 2) {
  6881. let _this = this;
  6882. _this
  6883. .$confirm(
  6884. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6885. "提示",
  6886. {
  6887. confirmButtonText: "需要",
  6888. cancelButtonText: "取消",
  6889. type: "warning",
  6890. }
  6891. )
  6892. .then(() => {
  6893. if (_this.time()) {
  6894. _this.restoreWork(
  6895. _chapAarry[0],
  6896. _unitJson,
  6897. chapindex,
  6898. _unitJson2,
  6899. _unitIndex2
  6900. );
  6901. }
  6902. })
  6903. .catch(() => {
  6904. _this.unitJson = _unitJson;
  6905. _this.$forceUpdate();
  6906. setTimeout(() => {
  6907. if (this.unitIndex != _unitIndex2) {
  6908. this.isDelete = 2;
  6909. this.unitIndex = _unitIndex2;
  6910. }
  6911. }, 0);
  6912. _this.timer = setTimeout(() => {
  6913. _this.seleteCourseUpdate();
  6914. }, 1000);
  6915. });
  6916. }
  6917. })
  6918. .catch((err) => {
  6919. console.error(err);
  6920. });
  6921. },
  6922. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  6923. let params = [
  6924. {
  6925. cid: this.cid,
  6926. chapters: JSON.stringify(this.unitJson),
  6927. uid: this.userid,
  6928. chapid: chapid,
  6929. },
  6930. ];
  6931. this.ajax
  6932. .post(this.$store.state.api + "restoreWork", params)
  6933. .then((res) => {
  6934. this.$message({
  6935. message: "恢复成功",
  6936. type: "success",
  6937. });
  6938. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  6939. this.unitJson = unitJson;
  6940. this.$forceUpdate();
  6941. setTimeout(() => {
  6942. if (this.unitIndex != unitIndex2) {
  6943. this.isDelete = 2;
  6944. this.unitIndex = unitIndex2;
  6945. }
  6946. }, 0);
  6947. this.timer = setTimeout(() => {
  6948. this.seleteCourseUpdate();
  6949. }, 1000);
  6950. })
  6951. .catch((err) => {
  6952. this.$message.error("网络不佳");
  6953. console.error(err);
  6954. });
  6955. },
  6956. getTypeName() {
  6957. console.log(this.courseTypeId);
  6958. this.$forceUpdate();
  6959. },
  6960. selectAllType() {
  6961. let params = {
  6962. org: this.org && this.org != "" ? this.org : "",
  6963. oid: this.oid && this.oid != "" ? this.oid : "",
  6964. };
  6965. this.ajax
  6966. .get(this.$store.state.api + "selectAllType", params)
  6967. .then((res) => {
  6968. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6969. res.data[0] = [...res.data[0], ...res.data[4]]
  6970. }
  6971. this.CourseType = res.data;
  6972. this.CourseType2 = [
  6973. { name: "智见课程", id: [] },
  6974. { name: "智行课程", id: [] },
  6975. { name: "智创课程", id: [] },
  6976. ];
  6977. for (var cti = 0; cti < res.data[0].length; cti++) {
  6978. if (
  6979. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  6980. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  6981. ) {
  6982. this.CourseType2[0].id.push(res.data[0][cti].id);
  6983. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  6984. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  6985. this.CourseType2[1].id.push(res.data[0][cti].id);
  6986. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  6987. this.CourseType2[2].id.push(res.data[0][cti].id);
  6988. }
  6989. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  6990. res.data[0][cti].name = "年级";
  6991. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  6992. res.data[0][cti].name = "学科";
  6993. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  6994. res.data[0][cti].name = "主题";
  6995. }
  6996. }
  6997. let _courseTypeId = [];
  6998. for (var i = 0; i < res.data[0].length; i++) {
  6999. if (!this.cid) {
  7000. this.courseTypeId[res.data[0][i].id] = [];
  7001. }
  7002. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  7003. // }
  7004. this.CourseTypeJson[res.data[0][i].id] = [];
  7005. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7006. if (res.data[0][i].name == "栏目") {
  7007. this.CourseType[0][i].name = "主题";
  7008. }
  7009. }
  7010. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7011. for (var j = 0; j < res.data[1].length; j++) {
  7012. if (
  7013. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7014. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7015. ) {
  7016. _courseTypeId.push(res.data[1][j].id);
  7017. }
  7018. if (res.data[0][i].id == res.data[1][j].pid) {
  7019. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7020. }
  7021. }
  7022. } else {
  7023. if (res.data[2].length > 0) {
  7024. for (var j = 0; j < res.data[2].length; j++) {
  7025. if (
  7026. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7027. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7028. ) {
  7029. _courseTypeId.push(res.data[2][j].id);
  7030. }
  7031. if (res.data[0][i].id == res.data[2][j].pid) {
  7032. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7033. }
  7034. }
  7035. }
  7036. if (res.data[3].length > 0) {
  7037. for (var j = 0; j < res.data[3].length; j++) {
  7038. if (
  7039. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7040. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7041. ) {
  7042. _courseTypeId.push(res.data[3][j].id);
  7043. }
  7044. if (res.data[0][i].id == res.data[3][j].pid) {
  7045. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7046. }
  7047. }
  7048. }
  7049. }
  7050. }
  7051. this.courseTypeId = _courseTypeId;
  7052. })
  7053. .catch((err) => {
  7054. console.error(err);
  7055. });
  7056. },
  7057. selectType() {
  7058. this.ajax
  7059. .get(this.$store.state.api + "selectType")
  7060. .then((res) => {
  7061. this.CourseType = res.data;
  7062. for (var i = 0; i < res.data[0].length; i++) {
  7063. if (!this.cid) {
  7064. this.courseTypeId[res.data[0][i].id] = "";
  7065. }
  7066. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7067. if (res.data[0][i].name == "栏目") {
  7068. this.CourseType[0][i].name = "主题";
  7069. }
  7070. }
  7071. for (var j = 0; j < res.data[1].length; j++) {
  7072. if (res.data[0][i].id == res.data[1][j].pid) {
  7073. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7074. this.CourseTypeJson[res.data[0][i].id] = [];
  7075. }
  7076. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7077. }
  7078. }
  7079. }
  7080. this.selectTypeByOid();
  7081. this.selectTypeByOrg();
  7082. })
  7083. .catch((err) => {
  7084. console.error(err);
  7085. });
  7086. },
  7087. selectTypeByOid() {
  7088. let params = {
  7089. oid: this.oid,
  7090. };
  7091. this.ajax
  7092. .get(this.$store.state.api + "selectTypeByOid", params)
  7093. .then((res) => {
  7094. for (var i = 0; i < res.data[0].length; i++) {
  7095. for (var j = 0; j < res.data[1].length; j++) {
  7096. if (res.data[0][i].id == res.data[1][j].pid) {
  7097. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7098. this.CourseTypeJson[res.data[0][i].id] = [];
  7099. }
  7100. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7101. }
  7102. }
  7103. }
  7104. })
  7105. .catch((err) => {
  7106. console.error(err);
  7107. });
  7108. },
  7109. selectTypeByOrg() {
  7110. let params = {
  7111. oid: this.org,
  7112. };
  7113. this.ajax
  7114. .get(this.$store.state.api + "selectTypeByOrg", params)
  7115. .then((res) => {
  7116. for (var i = 0; i < res.data[0].length; i++) {
  7117. for (var j = 0; j < res.data[1].length; j++) {
  7118. if (res.data[0][i].id == res.data[1][j].pid) {
  7119. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7120. this.CourseTypeJson[res.data[0][i].id] = [];
  7121. }
  7122. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7123. }
  7124. }
  7125. }
  7126. this.$forceUpdate();
  7127. })
  7128. .catch((err) => {
  7129. console.error(err);
  7130. });
  7131. },
  7132. OtherMb(type) {
  7133. this.typeMode = type;
  7134. setTimeout(() => {
  7135. this.checkEva(this.checkId);
  7136. }, 0);
  7137. },
  7138. openMember() {
  7139. this.searchTN = "";
  7140. this.getTeacher();
  7141. this.dialogVisibleMember = true;
  7142. },
  7143. checkEva(id, type) {
  7144. this.dialogVisiblemb = false;
  7145. this.selectEva();
  7146. if (this.evalua != id && type == 2) {
  7147. this.$message.success("导入成功");
  7148. }
  7149. this.evalua = id;
  7150. this.checkId = id;
  7151. if (this.evalua != "") {
  7152. for (var i = 0; i < this.evaJuri.length; i++) {
  7153. if (this.evalua == this.evaJuri[i].id) {
  7154. this.eTitle = this.evaJuri[i].title;
  7155. this.eJson = JSON.parse(this.evaJuri[i].content);
  7156. }
  7157. }
  7158. this.data.data = [];
  7159. this.$forceUpdate();
  7160. setTimeout(() => {
  7161. this.setMindData();
  7162. }, 500);
  7163. }
  7164. },
  7165. deleteEva() {
  7166. let _this = this;
  7167. if (_this.evalua == "") {
  7168. this.$message.warning("内容已经清空了,请勿重复清空");
  7169. return;
  7170. }
  7171. _this
  7172. .$confirm("确定删除此目标吗?", "提示", {
  7173. confirmButtonText: "确定",
  7174. cancelButtonText: "取消",
  7175. type: "warning",
  7176. })
  7177. .then(() => {
  7178. _this.evalua = "";
  7179. _this.checkId = "";
  7180. _this.eTitle = "";
  7181. let _unitJson = _this.unitJson;
  7182. for (var i = 0; i < _unitJson.length; i++) {
  7183. let _task = _unitJson[i].chapterInfo[0].taskJson;
  7184. for (var j = 0; j < _task.length; j++) {
  7185. let _eList = _task[j].eList;
  7186. for (var k = 0; k < _eList.length; k++) {
  7187. delete _eList[k].target;
  7188. }
  7189. }
  7190. }
  7191. _this.$forceUpdate();
  7192. if (_this.cid) {
  7193. _this.updateWork();
  7194. }
  7195. })
  7196. .catch(() => {
  7197. return;
  7198. });
  7199. },
  7200. selectEva() {
  7201. let params = {
  7202. oid: this.oid,
  7203. };
  7204. this.ajax
  7205. .get(this.$store.state.api + "selectAllEvaluation", params)
  7206. .then((res) => {
  7207. this.evaJuri = res.data[0];
  7208. })
  7209. .catch((err) => {
  7210. console.error(err);
  7211. });
  7212. },
  7213. setMindData() {
  7214. let targetArray = [];
  7215. this.data.data = [];
  7216. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  7217. let _eJson = Object.keys(this.eJson);
  7218. let _e = this.eJson;
  7219. for (let i = 0; i < _eJson.length; i++) {
  7220. let element = _e[_eJson[i]];
  7221. this.data.data.push({
  7222. id: element.id,
  7223. parentid: "root",
  7224. topic: element.name,
  7225. });
  7226. // targetArray.push({
  7227. // id: element.id,
  7228. // parentid: "root",
  7229. // name: element.name,
  7230. // });
  7231. targetArray.push({
  7232. value: element.name,
  7233. label: element.name,
  7234. children: [],
  7235. });
  7236. let _eJsonc = Object.keys(element.child);
  7237. let _e2 = element.child;
  7238. for (let j = 0; j < _eJsonc.length; j++) {
  7239. let _ec = _e2[_eJsonc[j]];
  7240. this.data.data.push({
  7241. id: _ec.id,
  7242. parentid: element.id,
  7243. topic: _ec.name,
  7244. });
  7245. // targetArray.push({
  7246. // id: _ec.id,
  7247. // parentid: element.id,
  7248. // name: _ec.name,
  7249. // });
  7250. targetArray[i].children.push({
  7251. value: _ec.name,
  7252. label: _ec.name,
  7253. children: [],
  7254. });
  7255. let _eJsonz = Object.keys(_ec.child);
  7256. let _e3 = _ec.child;
  7257. for (let z = 0; z < _eJsonz.length; z++) {
  7258. let _ez = _e3[_eJsonz[z]];
  7259. this.data.data.push({
  7260. id: _ez.id,
  7261. parentid: _ec.id,
  7262. topic: _ez.name,
  7263. });
  7264. // targetArray.push({
  7265. // id: _ez.id,
  7266. // parentid: _ec.id,
  7267. // name: _ez.name,
  7268. // });
  7269. targetArray[i].children[j].children.push({
  7270. value: _ez.name,
  7271. label: _ez.name,
  7272. });
  7273. }
  7274. }
  7275. }
  7276. this.targetArray = targetArray;
  7277. this.$forceUpdate();
  7278. },
  7279. /*添加评价 */
  7280. addEList(index, tIndex) {
  7281. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7282. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7283. value: "",
  7284. detail: "",
  7285. score: 5,
  7286. })
  7287. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7288. { value: "", detail: "", score: 5 },
  7289. ]);
  7290. this.$forceUpdate();
  7291. },
  7292. forceUpdate() {
  7293. this.$forceUpdate();
  7294. },
  7295. deletEList(index, tIndex, eIndex) {
  7296. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7297. eIndex,
  7298. 1
  7299. );
  7300. this.$forceUpdate();
  7301. },
  7302. getChoosePic(t) {
  7303. this.chooseType = t;
  7304. this.getAllBanner();
  7305. },
  7306. getAllBanner() {
  7307. this.sysPicVisible = true;
  7308. let params = {
  7309. t: this.chooseType,
  7310. };
  7311. this.ajax
  7312. .get(this.$store.state.api + "selectAllBanner", params)
  7313. .then((res) => {
  7314. this.sysPic = res.data[0];
  7315. })
  7316. .catch((err) => {
  7317. console.error(err);
  7318. });
  7319. },
  7320. // getClass() {
  7321. // let params = {
  7322. // oid: this.oid,
  7323. // };
  7324. // this.ajax
  7325. // .get(this.$store.state.api + "selectClassBySchool", params)
  7326. // .then((res) => {
  7327. // this.classJuri = res.data[0];
  7328. // })
  7329. // .catch((err) => {
  7330. // console.error(err);
  7331. // });
  7332. // },
  7333. deleteSysPic() {
  7334. this.cover = [];
  7335. this.isSysPic = false;
  7336. },
  7337. deleteSelectPic() {
  7338. this.selectJson.url = "";
  7339. },
  7340. setEListStar() {
  7341. this.$forceUpdate();
  7342. },
  7343. deletRateList(i) {
  7344. this.rateJson.splice(i, 1);
  7345. },
  7346. addRateList() {
  7347. this.rateJson.push({ detail: "", score: 5, value: "" });
  7348. },
  7349. addSt() {
  7350. this.sentenceList.push({
  7351. sentenceTitle: "",
  7352. addSentence: [],
  7353. rightAnswer: [],
  7354. });
  7355. },
  7356. addSen(i) {
  7357. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7358. // this.isPushTitleList.push(this.sentenceTitle);
  7359. this.sentenceList[i].sentenceTitle = "";
  7360. },
  7361. setRightAnswer(s, i, j) {
  7362. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7363. this.sentenceList[i].rightAnswer.push(s);
  7364. }
  7365. },
  7366. returnCard(r, i, j) {
  7367. this.sentenceList[i].rightAnswer.splice(j, 1);
  7368. },
  7369. addSentenceTool() {
  7370. for (var i = 0; i < this.sentenceList.length; i++) {
  7371. if (this.sentenceList[i].rightAnswer.length == 0) {
  7372. this.$message.error("请将信息填写完整!");
  7373. return;
  7374. }
  7375. if (
  7376. this.sentenceList[i].addSentence.length !=
  7377. this.sentenceList[i].rightAnswer.length
  7378. ) {
  7379. this.$message.error("请将信息填写完整!");
  7380. return;
  7381. }
  7382. }
  7383. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7384. this.taskCount
  7385. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7386. this.sentenceList = [
  7387. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7388. ];
  7389. this.dialogVisibleSentence = false;
  7390. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7391. // itemTaskIndex
  7392. // ].toolChoose[toolIndex].tool = [];
  7393. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7394. // itemTaskIndex
  7395. // ].toolChoose[toolIndex].tool.push(i);
  7396. if (
  7397. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7398. .toolChoose[this.toolIndex].tool != 47
  7399. ) {
  7400. this.addTools(47, this.taskCount, this.toolIndex);
  7401. }
  7402. },
  7403. addTableJson() {
  7404. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7405. // this.$message.error("请将信息填写完整!");
  7406. // return;
  7407. // }
  7408. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7409. this.taskCount
  7410. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7411. // this.tableJson = [{ text: "" }];
  7412. // this.dialogVisibleTable = false;
  7413. this.$message.success("上传成功");
  7414. if (
  7415. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7416. .toolChoose[this.toolIndex].tool != 48
  7417. ) {
  7418. this.addTools(48, this.taskCount, this.toolIndex);
  7419. }
  7420. },
  7421. addWordJson() {
  7422. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7423. this.taskCount
  7424. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7425. // this.wordJson = [{ text: "" }];
  7426. // this.dialogVisibleWord = false;
  7427. this.$message.success("上传成功");
  7428. if (
  7429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7430. .toolChoose[this.toolIndex].tool != 52
  7431. ) {
  7432. this.addTools(52, this.taskCount, this.toolIndex);
  7433. }
  7434. },
  7435. addMoreUpload() {
  7436. if (this.uploadJson.length == 0) {
  7437. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7438. this.taskCount
  7439. ].toolChoose[this.toolIndex].uploadJson = [];
  7440. } else {
  7441. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7442. this.taskCount
  7443. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7444. }
  7445. this.uploadJson = [];
  7446. this.dialogVisibleMoreUpload = false;
  7447. if (
  7448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7449. .toolChoose[this.toolIndex].tool != 50
  7450. ) {
  7451. this.addTools(50, this.taskCount, this.toolIndex);
  7452. }
  7453. },
  7454. addPreTime() {
  7455. if (this.preTime == 0) {
  7456. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7457. this.taskCount
  7458. ].toolChoose[this.toolIndex].preTime = 0;
  7459. } else {
  7460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7461. this.taskCount
  7462. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7463. }
  7464. this.preTime = 0;
  7465. this.dialogVisiblePreTime = false;
  7466. if (
  7467. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7468. .toolChoose[this.toolIndex].tool != 10
  7469. ) {
  7470. this.addTools(10, this.taskCount, this.toolIndex);
  7471. }
  7472. },
  7473. goToTask(i) {
  7474. document.querySelector(".rb_c_box_right > .basic_box").scrollTop =
  7475. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  7476. this.isClickColor = i + 1;
  7477. },
  7478. taskMove(type, index) {
  7479. this.$confirm(
  7480. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  7481. "提示",
  7482. {
  7483. confirmButtonText: "确定",
  7484. cancelButtonText: "取消",
  7485. type: "warning",
  7486. }
  7487. )
  7488. .then(() => {
  7489. if (type == 1) {
  7490. if (index > 0) {
  7491. let a = JSON.parse(
  7492. JSON.stringify(
  7493. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7494. index - 1
  7495. ]
  7496. )
  7497. );
  7498. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7499. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7501. }
  7502. } else {
  7503. if (
  7504. index <
  7505. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7506. ) {
  7507. let a = JSON.parse(
  7508. JSON.stringify(
  7509. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7510. index + 1
  7511. ]
  7512. )
  7513. );
  7514. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7516. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7517. }
  7518. }
  7519. this.$forceUpdate();
  7520. })
  7521. .catch(() => {
  7522. return;
  7523. });
  7524. },
  7525. stageMove(type, index) {
  7526. if (type == 1) {
  7527. if (index > 0) {
  7528. let a = JSON.parse(
  7529. JSON.stringify(
  7530. this.unitJson3[index - 1]
  7531. )
  7532. );
  7533. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  7534. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  7535. this.unitJson3[index - 1] = this.unitJson3[index];
  7536. this.unitJson3[index] = a;
  7537. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  7538. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  7539. }
  7540. } else {
  7541. if (
  7542. index <
  7543. this.unitJson3.length - 1
  7544. ) {
  7545. let a = JSON.parse(
  7546. JSON.stringify(
  7547. this.unitJson3[
  7548. index + 1
  7549. ]
  7550. )
  7551. );
  7552. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  7553. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  7554. this.unitJson3[index + 1] =
  7555. this.unitJson3[index];
  7556. this.unitJson3[index] = a;
  7557. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  7558. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  7559. }
  7560. }
  7561. this.$forceUpdate();
  7562. },
  7563. addGroup(i) {
  7564. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7565. this.groupJson.group.push({
  7566. name: "第" + (this.groupJson.group.length + 1) + "组",
  7567. });
  7568. },
  7569. deleteGroup(i) {
  7570. this.groupJson.group.splice(i, 1);
  7571. },
  7572. addGroupJson() {
  7573. for (var i = 0; i < this.groupJson.group.length; i++) {
  7574. if (!this.groupJson.group[i].name) {
  7575. this.$message.error("请将信息填写完整!");
  7576. return;
  7577. }
  7578. }
  7579. if (!this.groupJson.number) {
  7580. this.$message.error("请将信息填写完整!");
  7581. return;
  7582. }
  7583. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7584. this.taskCount
  7585. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7586. JSON.stringify(this.groupJson)
  7587. );
  7588. this.dialogVisibleGroup = false;
  7589. this.groupJson = {};
  7590. if (
  7591. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7592. .toolChoose[this.toolIndex].tool != 49
  7593. ) {
  7594. this.addTools(49, this.taskCount, this.toolIndex);
  7595. }
  7596. },
  7597. updateTime(preTime) {
  7598. this.preTime = preTime;
  7599. },
  7600. InviteChange(val) {
  7601. console.log(val);
  7602. return;
  7603. let array = JSON.parse(JSON.stringify(val));
  7604. this.inviteCode = this.inviteCode.filter((el) => {
  7605. if (val.indexOf(el.cid) != -1) {
  7606. array.splice(array.indexOf(el.cid), 1);
  7607. return el;
  7608. }
  7609. });
  7610. for (var i = 0; i < array.length; i++) {
  7611. this.getInviteCode(array[i]);
  7612. }
  7613. },
  7614. async getInviteCode(cid) {
  7615. let code = this.randomNumber();
  7616. let params = {
  7617. code: code,
  7618. oid: this.oid,
  7619. };
  7620. let type = 1;
  7621. for (var i = 0; i < this.inviteCode.length; i++) {
  7622. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7623. type = 2;
  7624. }
  7625. }
  7626. if (type == 2) {
  7627. this.getInviteCode(cid);
  7628. return;
  7629. }
  7630. const res = await this.ajax.get(
  7631. this.$store.state.api + "selectInviteCode2",
  7632. params
  7633. );
  7634. if (
  7635. res.data.length &&
  7636. res.data[0].length &&
  7637. res.data[0][0].courseId != this.cid
  7638. ) {
  7639. this.getInviteCode(cid);
  7640. return;
  7641. }
  7642. let array = [];
  7643. for (var i = 0; i < this.inviteCode.length; i++) {
  7644. array.push(this.inviteCode[i].cid);
  7645. }
  7646. if (array.indexOf(cid) != -1) {
  7647. this.inviteCode[array.indexOf(cid)].ic = code;
  7648. } else {
  7649. this.inviteCode.push({ cid: cid, ic: code });
  7650. }
  7651. },
  7652. OpenInviteD(cid) {
  7653. let array = [];
  7654. this.icode = "";
  7655. for (var i = 0; i < this.inviteCode.length; i++) {
  7656. array.push(this.inviteCode[i].cid);
  7657. }
  7658. if (array.indexOf(cid) != -1) {
  7659. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7660. }
  7661. this.inviteId = cid;
  7662. this.dialogVisibleInvite = true;
  7663. },
  7664. addInvite() {
  7665. let reg = /^[A-Za-z0-9]{4,}$/;
  7666. if (!reg.test(this.icode)) {
  7667. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7668. return;
  7669. }
  7670. let type = 1;
  7671. for (var i = 0; i < this.inviteCode.length; i++) {
  7672. if (
  7673. this.inviteCode[i].cid != this.inviteId &&
  7674. this.icode == this.inviteCode[i].ic
  7675. ) {
  7676. type = 2;
  7677. }
  7678. }
  7679. if (type == 2) {
  7680. this.$message.error("已有此随机码,不能重复");
  7681. return;
  7682. }
  7683. let params = {
  7684. code: this.icode,
  7685. oid: this.oid,
  7686. };
  7687. this.ajax
  7688. .get(this.$store.state.api + "selectInviteCode", params)
  7689. .then((res) => {
  7690. if (
  7691. res.data.length &&
  7692. res.data[0].length &&
  7693. res.data[0][0].courseId != this.cid
  7694. ) {
  7695. this.$message.error("已有此随机码,不能重复");
  7696. return;
  7697. }
  7698. let array = [];
  7699. for (var i = 0; i < this.inviteCode.length; i++) {
  7700. array.push(this.inviteCode[i].cid);
  7701. }
  7702. if (array.indexOf(this.inviteId) != -1) {
  7703. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7704. } else {
  7705. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7706. }
  7707. this.icode = "";
  7708. this.dialogVisibleInvite = false;
  7709. })
  7710. .catch((err) => {
  7711. console.error(err);
  7712. });
  7713. },
  7714. randomNumber() {
  7715. // 随机生成两位数
  7716. // let num = Math.floor(Math.random() * 900) + 100;
  7717. // 生成 0 到 99 之间的随机整数
  7718. const randomNumber = Math.floor(Math.random() * 100);
  7719. // 如果随机数小于 10,补上前导零
  7720. const num =
  7721. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7722. // 随机生成两个大写字母
  7723. let letters = "";
  7724. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7725. for (let i = 0; i < 3; i++) {
  7726. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7727. }
  7728. // 随机生成两位数字和字母的组合
  7729. let mix = "";
  7730. let chars =
  7731. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7732. for (let i = 0; i < 3; i++) {
  7733. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7734. mix += char;
  7735. }
  7736. // 随机选择一种类型
  7737. let type = Math.floor(Math.random() * 3);
  7738. return num;
  7739. // 根据类型输出结果
  7740. switch (type) {
  7741. case 0:
  7742. console.log(num); // 输出两位数
  7743. return num;
  7744. case 1:
  7745. console.log(letters); // 输出两个大写字母
  7746. return letters;
  7747. case 2:
  7748. console.log(mix); // 输出两位数字和字母的组合
  7749. return mix;
  7750. }
  7751. },
  7752. },
  7753. beforeDestroy() {
  7754. clearTimeout(this.timer);
  7755. this.timer = null;
  7756. clearInterval(this.timer2);
  7757. this.timer2 = null;
  7758. },
  7759. beforeRouteLeave(to, from, next) {
  7760. clearTimeout(this.timer);
  7761. this.timer = null;
  7762. clearInterval(this.timer2);
  7763. this.timer2 = null;
  7764. next();
  7765. },
  7766. created() {
  7767. this.getStudent();
  7768. this.getTeacher();
  7769. this.getClass();
  7770. this.selectGrage();
  7771. this.getTemplate();
  7772. // this.selectType();
  7773. this.selectEva();
  7774. this.loading = false;
  7775. this.timer2 = setInterval(() => {
  7776. this.selectEva();
  7777. }, 5000);
  7778. setTimeout(() => {
  7779. this.selectCourseDetail();
  7780. }, 500);
  7781. },
  7782. };
  7783. </script>
  7784. <style scoped>
  7785. @media screen and (max-width: 1280px) {
  7786. .mbCss {
  7787. flex-direction: column !important;
  7788. }
  7789. .pjCss {
  7790. width: 100% !important;
  7791. }
  7792. .evaCss {
  7793. width: 100% !important;
  7794. }
  7795. }
  7796. .dialog_diy>>>.el-dialog__header {
  7797. background: #3c3c3c !important;
  7798. padding: 15px 20px;
  7799. }
  7800. .dialog_diy>>>.el-dialog__title {
  7801. color: #fff;
  7802. }
  7803. .dialog_diy>>>.el-dialog__headerbtn {
  7804. top: 19px;
  7805. }
  7806. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  7807. color: #fff;
  7808. }
  7809. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  7810. color: #fff;
  7811. }
  7812. .dialog_diy>>>.el-dialog__body,
  7813. .dialog_diy>>>.el-dialog__footer {
  7814. background: #fafafa;
  7815. }
  7816. .dialog_diy3>>>.el-dialog__body,
  7817. .dialog_diy3>>>.el-dialog__footer {
  7818. background: #eee !important;
  7819. }
  7820. .dialog_diy3>>>.el-dialog__body {
  7821. padding: 20px 20px;
  7822. }
  7823. .dialog_diyStage>>>.el-dialog__body {
  7824. padding: 10px;
  7825. }
  7826. .source_diy>>>.el-dialog {
  7827. height: 100% !important;
  7828. margin: 0 auto !important;
  7829. }
  7830. .source_diy>>>.el-dialog__body {
  7831. height: calc(100% - 185px);
  7832. overflow: auto;
  7833. background: #e6eaf0;
  7834. }
  7835. .source_diy>>>.el-dialog__footer {
  7836. background: #e6eaf0 !important;
  7837. }
  7838. .left {
  7839. border-right: 1px solid rgb(60, 94, 143);
  7840. display: flex;
  7841. flex-direction: column;
  7842. align-items: center;
  7843. min-height: 600px;
  7844. width: 385px;
  7845. height: 80%;
  7846. }
  7847. .tips {
  7848. color: rgb(128, 128, 128);
  7849. font-size: 12px;
  7850. width: 270px;
  7851. margin: 40px;
  7852. }
  7853. .pb_content {
  7854. height: 100% !important;
  7855. /* margin: 0 20px 0 20px; */
  7856. }
  7857. .pb_content_body {
  7858. width: 100% !important;
  7859. height: 100%;
  7860. }
  7861. .info_solid {
  7862. width: 270px;
  7863. height: 30px;
  7864. border-left: 1px solid #bdbdbd;
  7865. margin: 10px 0px 10px 30px;
  7866. }
  7867. .info_steps {
  7868. width: 270px;
  7869. font-size: 0.875rem;
  7870. display: flex;
  7871. align-items: center;
  7872. }
  7873. .info_steps span:nth-child(1) {
  7874. width: 30px;
  7875. height: 30px;
  7876. background: rgba(0, 0, 0, 0.38);
  7877. display: block;
  7878. color: #fff;
  7879. border-radius: 40px;
  7880. text-align: center;
  7881. line-height: 30px;
  7882. }
  7883. .steps_active {
  7884. background: #3d67bc !important;
  7885. }
  7886. .info_steps span:nth-child(2) {
  7887. margin-left: 5px;
  7888. }
  7889. .right {
  7890. height: 100%;
  7891. width: 100%;
  7892. display: flex;
  7893. overflow: hidden;
  7894. flex-direction: column;
  7895. }
  7896. .basic_box {
  7897. margin: 0 auto;
  7898. position: relative;
  7899. padding: 0 20px 0 20px;
  7900. }
  7901. .basic_box_success {
  7902. width: 100%;
  7903. min-height: 455px;
  7904. padding: 50px 0;
  7905. position: relative;
  7906. text-align: center;
  7907. border-bottom: 1px solid #bfbfbf;
  7908. box-sizing: border-box;
  7909. display: flex;
  7910. align-items: center;
  7911. flex-direction: column;
  7912. justify-content: center;
  7913. }
  7914. .info_title {
  7915. font-size: 1.5em;
  7916. margin-right: 25px;
  7917. /* margin: 20px 30px 20px 30px; */
  7918. }
  7919. .bInfo_title {
  7920. text-align: left;
  7921. margin: 10px 0;
  7922. }
  7923. .small_title {
  7924. font-size: 14px;
  7925. line-height: 40px;
  7926. }
  7927. .chapter_beizhu {
  7928. font-size: 12px;
  7929. font-weight: bold;
  7930. float: right;
  7931. color: rgb(128, 128, 128);
  7932. margin-top: 5px;
  7933. }
  7934. .chapter_uploadBox1 {
  7935. text-align: left;
  7936. background-color: rgb(242, 242, 242);
  7937. width: 100%;
  7938. height: 67px;
  7939. padding: 0px 15px;
  7940. border-radius: 8px;
  7941. overflow: hidden;
  7942. font-size: 16px;
  7943. box-sizing: border-box;
  7944. position: relative;
  7945. }
  7946. .chapter_add {
  7947. width: 100%;
  7948. height: 32px;
  7949. margin-top: 15px;
  7950. cursor: pointer;
  7951. }
  7952. .chapter_add_l {
  7953. margin-left: 5px;
  7954. width: 30px;
  7955. height: 30px;
  7956. float: left;
  7957. border: 1px solid #aaa;
  7958. color: #aaa;
  7959. border-radius: 50%;
  7960. font-size: 25px;
  7961. text-align: center;
  7962. }
  7963. .chapter_add_r {
  7964. font-size: 18px;
  7965. height: 40px;
  7966. line-height: 30px;
  7967. text-indent: 10px;
  7968. color: #aaa;
  7969. }
  7970. .chapter_add_r span {
  7971. font-size: 12px;
  7972. color: rgb(204, 204, 204);
  7973. }
  7974. .chapter_add_input {
  7975. display: none;
  7976. }
  7977. .line {
  7978. width: 85%;
  7979. margin: 0 auto;
  7980. border-top: 1px solid #e5e5e5;
  7981. margin-top: 20px;
  7982. }
  7983. .info_btnBox {
  7984. width: calc(100%);
  7985. display: flex;
  7986. justify-content: center;
  7987. height: 70px;
  7988. align-items: center;
  7989. background: #fff;
  7990. margin: 0 auto;
  7991. border-top: 2px solid rgb(228, 232, 237);
  7992. box-sizing: border-box;
  7993. }
  7994. .info_btn+.info_btn {
  7995. margin-left: 15px;
  7996. }
  7997. .info_btn,
  7998. .teacherWord {
  7999. color: #fff;
  8000. background-color: #0f7eff;
  8001. padding: 8px 24px;
  8002. font-size: 0.9375rem;
  8003. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  8004. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  8005. min-width: 64px;
  8006. font-weight: 500;
  8007. border-radius: 4px;
  8008. box-sizing: border-box;
  8009. border: none;
  8010. cursor: pointer;
  8011. }
  8012. .teacherWord {
  8013. width: 105px !important;
  8014. text-align: center !important;
  8015. line-height: 36px !important;
  8016. padding: 0 !important;
  8017. font-size: 14px !important;
  8018. margin: 10px 0 !important;
  8019. }
  8020. .wordTeacher {
  8021. display: flex;
  8022. flex-direction: column;
  8023. width: 20%;
  8024. text-align: center;
  8025. font-size: 14px;
  8026. margin: 30px 30px 0 10px;
  8027. background: #fff;
  8028. position: relative;
  8029. border-radius: 5px;
  8030. padding: 25px 0px;
  8031. }
  8032. .wordPic {
  8033. margin: 0 auto;
  8034. width: 60px;
  8035. height: 60px;
  8036. cursor: pointer;
  8037. }
  8038. .deleteWord {
  8039. width: 22px;
  8040. height: 22px;
  8041. position: absolute;
  8042. right: 5px;
  8043. top: -15px;
  8044. cursor: pointer;
  8045. display: none;
  8046. z-index: 999;
  8047. }
  8048. .wordPic>img,
  8049. .deleteWord>img,
  8050. .addToolImg>img {
  8051. width: 100%;
  8052. height: 100%;
  8053. }
  8054. .info_btn:hover {
  8055. background-color: #4f7cd5 !important;
  8056. }
  8057. .cru_selectBox {
  8058. display: flex;
  8059. margin: 24px 0 10px;
  8060. flex-wrap: nowrap;
  8061. white-space: nowrap;
  8062. overflow: auto;
  8063. position: relative;
  8064. height: 40px;
  8065. max-width: calc(100% - 175px);
  8066. }
  8067. .cru_selectBox::-webkit-scrollbar {
  8068. /*滚动条整体样式*/
  8069. width: 6px;
  8070. /*高宽分别对应横竖滚动条的尺寸*/
  8071. height: 6px;
  8072. }
  8073. /*定义滚动条轨道 内阴影+圆角*/
  8074. .cru_selectBox::-webkit-scrollbar-track {
  8075. border-radius: 10px;
  8076. background-color: #eee;
  8077. }
  8078. /*定义滑块 内阴影+圆角*/
  8079. .cru_selectBox::-webkit-scrollbar-thumb {
  8080. border-radius: 10px;
  8081. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  8082. background-color: rgba(0, 0, 0, 0.1);
  8083. }
  8084. .cru_line {
  8085. position: absolute;
  8086. bottom: 0px;
  8087. transition: all 0.5s;
  8088. left: 0px;
  8089. width: 50px;
  8090. height: 4px;
  8091. left: 10px;
  8092. border-radius: 2px;
  8093. background: #3681FC;
  8094. }
  8095. .cru_select {
  8096. font-size: 18px;
  8097. margin-right: 20px;
  8098. margin-left: 5px;
  8099. cursor: pointer;
  8100. color: #0E1E33;
  8101. }
  8102. .cru_selected {
  8103. color: #3681FC !important;
  8104. font-weight: bold;
  8105. }
  8106. .chapter_contentbox {
  8107. display: flex;
  8108. align-items: center;
  8109. margin-top: 15px;
  8110. }
  8111. .chapter_contentbox .cc_title {
  8112. margin: 0px;
  8113. color: black;
  8114. display: block;
  8115. white-space: nowrap;
  8116. overflow: hidden;
  8117. text-overflow: ellipsis;
  8118. margin-right: 20px;
  8119. font-size: 18px;
  8120. height: 20px;
  8121. line-height: 22px;
  8122. min-width: fit-content;
  8123. display: flex;
  8124. }
  8125. .chapter_contentbox .cc_title::before {
  8126. content: '';
  8127. height: 100%;
  8128. width: 3px;
  8129. background: #3681FC;
  8130. border-radius: 3px;
  8131. opacity: 1;
  8132. display: block;
  8133. margin-right: 10px;
  8134. }
  8135. .chapter_contentbox .cc_input {
  8136. width: 100%;
  8137. display: flex;
  8138. }
  8139. .show_taskD {
  8140. min-width: fit-content;
  8141. margin-left: 10px;
  8142. display: flex;
  8143. align-items: center;
  8144. font-size: 14px;
  8145. cursor: pointer;
  8146. color: #717C8D;
  8147. }
  8148. .show_taskD>img {
  8149. width: 15px;
  8150. margin-right: 5px;
  8151. }
  8152. .show_taskD.show>img {
  8153. transform: rotate(180deg);
  8154. }
  8155. .remove {
  8156. background-image: url("../../assets/icon/new/delete_u.png");
  8157. cursor: pointer;
  8158. opacity: 0.5;
  8159. width: 30px;
  8160. min-width: 30px;
  8161. height: 30px;
  8162. background-size: 100% 100%;
  8163. background-repeat: no-repeat;
  8164. margin-left: 10px;
  8165. }
  8166. .remove1 {
  8167. background-image: url("../../assets/remove1.png");
  8168. background-repeat: no-repeat;
  8169. background-position: 5px 10px;
  8170. width: 40px;
  8171. height: 50px;
  8172. cursor: pointer;
  8173. }
  8174. .binfo_input {
  8175. width: 100%;
  8176. margin: 0;
  8177. padding: 12px 14px;
  8178. display: block;
  8179. min-width: 0;
  8180. outline: none;
  8181. box-sizing: border-box;
  8182. background: none;
  8183. border: none;
  8184. border-radius: 4px;
  8185. background: #fff;
  8186. font-size: 16px;
  8187. resize: none;
  8188. font-family: 'Microsoft YaHei';
  8189. min-height: 48px;
  8190. border: 1px solid #3682fc00;
  8191. }
  8192. .binfo_textarea {
  8193. border: 1px solid #CAD1DC;
  8194. font-size: 16px;
  8195. resize: none;
  8196. background: #fcfcfc;
  8197. font-family: 'Microsoft YaHei';
  8198. }
  8199. .binfo_input:focus-visible {
  8200. border: 1px solid #3681FC !important;
  8201. }
  8202. .time {
  8203. display: flex;
  8204. margin: 35px 0 80px 0;
  8205. }
  8206. .chapter_btnbox {
  8207. width: 160px;
  8208. border-radius: 5px;
  8209. border: 2px dashed gray;
  8210. display: flex;
  8211. padding: 8px 50px;
  8212. align-items: center;
  8213. justify-content: center;
  8214. margin: 30px auto 0;
  8215. cursor: pointer;
  8216. }
  8217. .icon_add {
  8218. position: relative;
  8219. width: 24px;
  8220. padding-top: 20px;
  8221. border-radius: 100%;
  8222. border-width: 2px;
  8223. border-style: solid;
  8224. border-color: gray;
  8225. }
  8226. .icon_add i:nth-child(1) {
  8227. position: absolute;
  8228. left: 50%;
  8229. top: 50%;
  8230. height: 60%;
  8231. transform: translate(-50%, -50%);
  8232. border-width: 1px;
  8233. border-style: solid;
  8234. border-color: inherit;
  8235. }
  8236. .icon_add i:nth-child(2) {
  8237. position: absolute;
  8238. top: 50%;
  8239. left: 50%;
  8240. width: 60%;
  8241. transform: translate(-50%, -50%);
  8242. border-width: 1px;
  8243. border-style: solid;
  8244. border-color: inherit;
  8245. }
  8246. .chapter_btn_w {
  8247. font-size: 0.9375rem;
  8248. font-weight: bold;
  8249. color: gray;
  8250. margin-left: 20px;
  8251. }
  8252. .disUoloadSty>>>.el-icon-plus {
  8253. display: none !important;
  8254. /* 上传按钮隐藏 */
  8255. }
  8256. .imgLeft {
  8257. margin: 15px 0;
  8258. }
  8259. .add_info_box {
  8260. margin: 20px 0 0;
  8261. display: flex;
  8262. flex-wrap: wrap;
  8263. }
  8264. .add_info_box button {
  8265. /* margin: 0 10px 10px 0; */
  8266. }
  8267. .add_info_box2 {
  8268. display: flex;
  8269. align-items: center;
  8270. flex-wrap: wrap;
  8271. }
  8272. .add_info_box2::after {
  8273. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  8274. color: red;
  8275. font-size: 14px;
  8276. margin-bottom: 10px;
  8277. }
  8278. .add_chapters_box {
  8279. text-align: left;
  8280. background-color: #fff;
  8281. width: 100%;
  8282. border-radius: 4px;
  8283. font-size: 16px;
  8284. box-sizing: border-box;
  8285. position: relative;
  8286. padding: 20px 15px;
  8287. height: auto;
  8288. overflow-y: auto;
  8289. overflow-x: hidden;
  8290. }
  8291. .add_chapters_box.add_c_none {
  8292. display: flex;
  8293. justify-content: center;
  8294. align-items: center;
  8295. }
  8296. .add_c_none>img {
  8297. width: 135px;
  8298. }
  8299. .homework_box {
  8300. display: flex;
  8301. align-items: flex-start;
  8302. flex-wrap: wrap;
  8303. margin: 15px 0 0 0;
  8304. flex-direction: column;
  8305. align-content: flex-start;
  8306. }
  8307. .course_homework {
  8308. display: flex;
  8309. justify-content: center;
  8310. flex-direction: row;
  8311. align-items: center;
  8312. margin: 0 10px 0 0;
  8313. }
  8314. .course_homework>>>.el-input__inner {
  8315. width: 140px;
  8316. margin-left: 15px;
  8317. }
  8318. .chapter_upload_move {
  8319. position: relative;
  8320. background-color: #fff;
  8321. position: absolute;
  8322. width: 100%;
  8323. top: 0px;
  8324. left: 0px;
  8325. border: 1px solid #eee;
  8326. border-radius: 5px;
  8327. transition: width 2s;
  8328. -moz-transition: width 2s;
  8329. -webkit-transition: width 2s;
  8330. -o-transition: width 2s;
  8331. }
  8332. .chapter_upload_l_i {
  8333. background-image: url("../../assets/icon.png");
  8334. background-position: 3px -165px;
  8335. width: 30px;
  8336. height: 30px;
  8337. margin: 10px auto 0 auto;
  8338. }
  8339. .course_input_box {
  8340. display: flex;
  8341. margin-right: 20px;
  8342. width: 800px;
  8343. align-items: center;
  8344. }
  8345. .course_input_box>.binfo_input {
  8346. width: calc(100% - 48px - 200px - 20px);
  8347. margin: 0 10px;
  8348. }
  8349. .bb_courseIcon {
  8350. width: 48px;
  8351. height: 48px;
  8352. background: #3681FC;
  8353. border-radius: 6px;
  8354. display: flex;
  8355. align-items: center;
  8356. justify-content: center;
  8357. }
  8358. .bb_courseIcon>img {
  8359. width: 25px;
  8360. height: auto
  8361. }
  8362. .big_box {
  8363. margin-top: 20px;
  8364. display: flex;
  8365. border-bottom: 1px solid #E0E2ED;
  8366. }
  8367. .left_first {
  8368. display: flex;
  8369. flex-direction: column;
  8370. flex-wrap: nowrap;
  8371. width: calc(100% - 250px);
  8372. padding: 0 0 0 0;
  8373. box-sizing: border-box;
  8374. }
  8375. .right_first {
  8376. width: 250px;
  8377. display: flex;
  8378. align-items: center;
  8379. justify-content: center;
  8380. border-left: 1px solid #E0E2ED;
  8381. box-sizing: border-box;
  8382. padding-bottom: 20px;
  8383. flex-direction: column;
  8384. }
  8385. .ai_box {
  8386. width: 204px;
  8387. display: flex;
  8388. justify-content: flex-end;
  8389. margin-bottom: 15px;
  8390. }
  8391. .ai_content {
  8392. display: flex;
  8393. align-items: center;
  8394. font-size: 14px;
  8395. padding: 7px 20px;
  8396. box-sizing: border-box;
  8397. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  8398. border-radius: 12px;
  8399. font-weight: 700;
  8400. cursor: pointer;
  8401. }
  8402. .ai_content>img {
  8403. width: 40px;
  8404. margin-right: 5px;
  8405. }
  8406. .c_info_title {
  8407. padding: 15px 0 15px 20px;
  8408. font-size: 18px;
  8409. font-weight: bold;
  8410. margin: 0 auto;
  8411. }
  8412. .right_title {
  8413. height: 30px;
  8414. padding: 15px 0 15px 20px;
  8415. border-bottom: 1px solid #f2f2f2;
  8416. font-size: 1.5em;
  8417. font-weight: bold;
  8418. color: #0f7eff;
  8419. margin: 0 auto;
  8420. }
  8421. .people {
  8422. border: 1px solid rgb(229 229 229);
  8423. /* height: 495px; */
  8424. height: 350px;
  8425. border-radius: 5px;
  8426. width: 100%;
  8427. overflow: auto;
  8428. }
  8429. .people_top {
  8430. display: flex;
  8431. width: 100%;
  8432. /* justify-content: space-between; */
  8433. /* align-items: center; */
  8434. flex-direction: column;
  8435. padding: 10px 10px 0;
  8436. box-sizing: border-box;
  8437. }
  8438. .people_nav,
  8439. .people_top_right {
  8440. /* padding: 20px 0 0 20px; */
  8441. }
  8442. .people_top_right {
  8443. height: 40px;
  8444. margin-bottom: 10px;
  8445. }
  8446. .people_search {
  8447. display: flex;
  8448. position: relative;
  8449. }
  8450. .people_search>>>.el-input__inner {
  8451. /* height: 25px; */
  8452. width: 95%;
  8453. }
  8454. .search_img {
  8455. width: 20px;
  8456. height: 20px;
  8457. position: absolute;
  8458. right: 30px;
  8459. top: 50%;
  8460. transform: translateY(-50%);
  8461. }
  8462. .search_img>img {
  8463. width: 100%;
  8464. height: 100%;
  8465. }
  8466. .people_name {
  8467. display: flex;
  8468. justify-content: flex-start;
  8469. padding: 20px 10px;
  8470. flex-direction: column;
  8471. flex-wrap: wrap;
  8472. }
  8473. .p_box {
  8474. position: relative;
  8475. }
  8476. .people_name>>>.el-checkbox {
  8477. width: 100%;
  8478. display: flex;
  8479. align-items: center;
  8480. margin-bottom: 10px;
  8481. }
  8482. .people_name>>>.el-checkbox__label {
  8483. text-overflow: ellipsis;
  8484. overflow: hidden;
  8485. width: calc(100%);
  8486. }
  8487. .people_name2>>>.el-checkbox__label {
  8488. width: calc(100% - 130px);
  8489. }
  8490. .inviteCode {
  8491. position: absolute;
  8492. right: 30px;
  8493. color: #237ade;
  8494. top: 0;
  8495. cursor: pointer;
  8496. font-size: 13px;
  8497. }
  8498. .noneInvite {
  8499. color: #a8a8a8;
  8500. }
  8501. .inviteImg {
  8502. position: absolute;
  8503. right: 5px;
  8504. top: 0;
  8505. width: 20px;
  8506. }
  8507. .right_img {
  8508. width: 150px;
  8509. height: 150px;
  8510. margin: 0 auto;
  8511. }
  8512. .right_img>img {
  8513. width: 100%;
  8514. height: 100%;
  8515. }
  8516. .number {
  8517. margin-top: 20px;
  8518. color: #4aa6ff;
  8519. text-decoration: underline;
  8520. }
  8521. .success_button {
  8522. display: flex;
  8523. text-align: center;
  8524. margin: 5% 0 auto;
  8525. flex-direction: row;
  8526. justify-content: center;
  8527. }
  8528. .look_course {
  8529. margin-right: 40px;
  8530. background: #3d67bc;
  8531. width: 200px;
  8532. height: 35px;
  8533. line-height: 35px;
  8534. color: #fff;
  8535. text-align: center;
  8536. font-size: 14px;
  8537. border-radius: 5px;
  8538. cursor: pointer;
  8539. }
  8540. .attend_others {
  8541. width: 250px;
  8542. background: #4fb13c;
  8543. height: 35px;
  8544. line-height: 35px;
  8545. color: #fff;
  8546. text-align: center;
  8547. font-size: 14px;
  8548. border-radius: 5px;
  8549. cursor: pointer;
  8550. }
  8551. .dialog_diy2>>>.el-dialog__body {
  8552. text-align: center;
  8553. }
  8554. .write_togother {
  8555. position: absolute;
  8556. right: 45px;
  8557. display: flex;
  8558. top: 5%;
  8559. }
  8560. .write_people {
  8561. font-size: 14px;
  8562. line-height: 50px;
  8563. padding-right: 10px;
  8564. }
  8565. .end_write {
  8566. background: #3d67bc;
  8567. color: #fff;
  8568. width: 100px;
  8569. height: 35px;
  8570. line-height: 35px;
  8571. text-align: center;
  8572. font-size: 14px;
  8573. border-radius: 5px;
  8574. cursor: pointer;
  8575. }
  8576. .chapter_upload+.chapter_upload {
  8577. margin-top: 15px;
  8578. }
  8579. .chapter_upload {
  8580. height: 35px;
  8581. position: relative;
  8582. display: flex;
  8583. align-items: center;
  8584. width: 100%;
  8585. min-height: 35px;
  8586. box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16);
  8587. border-radius: 4px;
  8588. overflow: hidden;
  8589. }
  8590. .chapter_upload_t {
  8591. background-color: #fff;
  8592. position: absolute;
  8593. height: 100%;
  8594. top: 0px;
  8595. left: 0px;
  8596. box-sizing: border-box;
  8597. }
  8598. .chapter_upload_o {
  8599. width: 100%;
  8600. height: 100%;
  8601. position: relative;
  8602. z-index: 1;
  8603. }
  8604. .chapter_upload_ic {
  8605. margin: 0 15px 0px auto;
  8606. display: flex;
  8607. align-items: center;
  8608. }
  8609. .chapter_upload_ic_l {
  8610. width: 50px;
  8611. height: 50px;
  8612. float: left;
  8613. }
  8614. .chapter_upload_ic_l div {
  8615. width: 30px;
  8616. height: 35px;
  8617. background: url("../../assets/icon/icon.png");
  8618. }
  8619. .chapter_upload_ic_r {
  8620. height: 100%;
  8621. display: flex;
  8622. align-items: center;
  8623. cursor: pointer;
  8624. }
  8625. .chapter_upload_ic_r div {
  8626. width: 18px;
  8627. height: 18px;
  8628. background-image: url("../../assets/icon/new/delete_u.png");
  8629. background-size: 100% 100%;
  8630. }
  8631. .chapter_upload_n {
  8632. display: flex;
  8633. text-indent: 10px;
  8634. text-decoration: none;
  8635. text-overflow: ellipsis;
  8636. white-space: nowrap;
  8637. overflow: hidden;
  8638. width: 55%;
  8639. margin-left: 10px;
  8640. cursor: pointer;
  8641. margin-top: 2px;
  8642. align-items: center;
  8643. }
  8644. .chapter_upload_l_i2,
  8645. .chapter_upload_l_i3,
  8646. .chapter_upload_l_i8,
  8647. .chapter_upload_l_i6,
  8648. .chapter_upload_l_i12,
  8649. .chapter_upload_l_i13 {
  8650. width: 15px;
  8651. height: 15px;
  8652. background-size: 100% 100%;
  8653. }
  8654. .chapter_upload_l_i2 {
  8655. background-image: url("../../assets/icon/new/u_word.png");
  8656. }
  8657. .chapter_upload_l_i3 {
  8658. background-image: url("../../assets/icon/new/u_video.png");
  8659. }
  8660. .chapter_upload_l_i8 {
  8661. background-image: url("../../assets/icon/new/u_url.png");
  8662. }
  8663. .chapter_upload_l_i6 {
  8664. background-image: url("../../assets/icon/new/u_url.png");
  8665. }
  8666. .chapter_upload_l_i12 {
  8667. background-image: url("../../assets/icon/new/u_word.png");
  8668. }
  8669. .chapter_upload_l_i13 {
  8670. background-image: url("../../assets/icon/new/u_img.png");
  8671. }
  8672. .chapter_upload_noSee {
  8673. background-image: url("../../assets/icon/new/u_noUpload.png");
  8674. width: 18px;
  8675. height: 18px;
  8676. background-size: 100% 100%;
  8677. display: block;
  8678. margin-right: 20px;
  8679. }
  8680. .chapter_upload_ud {
  8681. display: flex;
  8682. flex-direction: row;
  8683. justify-content: center;
  8684. margin: 0 20px 0 0;
  8685. }
  8686. .chapter_upload_ud>.chapter_upload_up {
  8687. margin-bottom: 0;
  8688. margin-right: 5px;
  8689. }
  8690. .chapter_upload_down,
  8691. .chapter_upload_up {
  8692. width: 20px;
  8693. height: 20px;
  8694. background: #F0F4FA;
  8695. cursor: pointer;
  8696. margin: 0 auto;
  8697. border-radius: 5px;
  8698. display: flex;
  8699. justify-content: center;
  8700. align-items: center;
  8701. }
  8702. .chapter_upload_up::after,
  8703. .chapter_upload_down::after {
  8704. content: '';
  8705. background-image: url('../../assets/icon/new/downBtn.png');
  8706. width: 13px;
  8707. height: 13px;
  8708. background-size: 100% 100%;
  8709. display: block;
  8710. }
  8711. .chapter_upload_up::after {
  8712. background-image: url('../../assets/icon/new/upBtn.png') !important;
  8713. }
  8714. .chapter_upload_up {
  8715. margin-bottom: 5px;
  8716. }
  8717. .addWordStyle {
  8718. display: flex;
  8719. flex-direction: row;
  8720. justify-content: flex-start;
  8721. overflow-x: auto;
  8722. white-space: nowrap;
  8723. flex-wrap: wrap;
  8724. }
  8725. /* table 样式 */
  8726. .cont>>>table {
  8727. border-top: 1px solid #ccc;
  8728. border-left: 1px solid #ccc;
  8729. }
  8730. .cont>>>table td,
  8731. .cont>>>table th {
  8732. border-bottom: 1px solid #ccc;
  8733. border-right: 1px solid #ccc;
  8734. /* padding: 20px 5px; */
  8735. padding: 5px 10px;
  8736. max-width: 0px;
  8737. height: 30px;
  8738. vertical-align: baseline;
  8739. }
  8740. .cont>>>table th {
  8741. border-bottom: 2px solid #ccc;
  8742. text-align: center;
  8743. }
  8744. /* blockquote 样式 */
  8745. .cont>>>blockquote {
  8746. display: block;
  8747. border-left: 8px solid #d0e5f2;
  8748. padding: 5px 10px;
  8749. margin: 10px 0;
  8750. line-height: 1.4;
  8751. font-size: 100%;
  8752. background-color: #f1f1f1;
  8753. }
  8754. /* code 样式 */
  8755. .cont>>>code {
  8756. display: inline-block;
  8757. /* *display: inline; */
  8758. zoom: 1;
  8759. background-color: #f1f1f1;
  8760. border-radius: 3px;
  8761. padding: 3px 5px;
  8762. margin: 0 3px;
  8763. }
  8764. .cont>>>pre code {
  8765. display: block;
  8766. }
  8767. /* ul ol 样式 */
  8768. .cont>>>ul,
  8769. ol {
  8770. margin: 10px 0 10px 20px;
  8771. }
  8772. .wordbox {
  8773. display: flex;
  8774. flex-wrap: wrap;
  8775. cursor: pointer;
  8776. width: 100%;
  8777. }
  8778. .checkword {
  8779. width: 22px;
  8780. height: 22px;
  8781. margin: 10px auto 0;
  8782. cursor: pointer;
  8783. }
  8784. .checkword img {
  8785. width: 100%;
  8786. }
  8787. .stepBg {
  8788. display: flex;
  8789. justify-content: space-between;
  8790. align-items: center;
  8791. background: #fff;
  8792. width: calc(100%);
  8793. margin: 0 auto;
  8794. }
  8795. .stepBorder {
  8796. height: 3px !important;
  8797. background: #CAD1DC;
  8798. width: 100px !important;
  8799. margin: 0 15px !important;
  8800. position: relative;
  8801. }
  8802. .border-active {
  8803. background: #3681FC !important
  8804. }
  8805. .border-active::before,
  8806. .border-active::after {
  8807. border-color: #3681FC !important
  8808. }
  8809. .stepBorder::before,
  8810. .stepBorder::after {
  8811. content: '';
  8812. width: 9px;
  8813. height: 9px;
  8814. background: #FFFFFF;
  8815. opacity: 1;
  8816. border: 2px solid #ACB4BF;
  8817. display: block;
  8818. box-sizing: border-box;
  8819. border-radius: 50%;
  8820. position: absolute;
  8821. top: 50%;
  8822. transform: translateY(-50%);
  8823. }
  8824. .stepBorder::after {
  8825. right: -9px;
  8826. }
  8827. .stepTop {
  8828. width: 100%;
  8829. /* border-radius: 10px; */
  8830. display: flex;
  8831. justify-content: center;
  8832. align-items: center;
  8833. flex-wrap: nowrap;
  8834. background: #fff;
  8835. /* top: 18%; */
  8836. height: 80px;
  8837. border-bottom: 2px solid rgb(228, 232, 237);
  8838. box-sizing: border-box;
  8839. }
  8840. .stepTop>div img {
  8841. width: 100%;
  8842. }
  8843. .stepTop>div {
  8844. height: 50px;
  8845. width: 180px;
  8846. cursor: pointer;
  8847. margin: 10px 0;
  8848. border-radius: 10px;
  8849. }
  8850. .first,
  8851. .second,
  8852. .third,
  8853. .four {
  8854. background: #3681FC;
  8855. height: 90px;
  8856. color: #fff;
  8857. display: flex;
  8858. flex-direction: row;
  8859. align-items: center;
  8860. justify-content: center;
  8861. }
  8862. .first>div:nth-child(1),
  8863. .second>div:nth-child(1),
  8864. .third>div:nth-child(1),
  8865. .four>div:nth-child(1) {
  8866. margin: 5px 10px 0 0;
  8867. width: 2rem;
  8868. }
  8869. .firstNo,
  8870. .secondNo,
  8871. .thirdNo,
  8872. .fourNo {
  8873. background: #e7e7e7;
  8874. color: #adadad;
  8875. display: flex;
  8876. flex-direction: row;
  8877. align-items: center;
  8878. justify-content: center;
  8879. }
  8880. .firstNo>div:nth-child(1),
  8881. .secondNo>div:nth-child(1),
  8882. .thirdNo>div:nth-child(1),
  8883. .fourNo>div:nth-child(1) {
  8884. margin: 5px 10px 0 0;
  8885. width: 2rem;
  8886. }
  8887. .uploadWidth>>>.el-upload {
  8888. width: 60px;
  8889. height: 60px;
  8890. position: relative;
  8891. }
  8892. .addPeople {
  8893. background: #fa6060;
  8894. width: 150px;
  8895. height: 40px;
  8896. color: #fff;
  8897. border-radius: 5px;
  8898. text-align: center;
  8899. line-height: 40px;
  8900. font-size: 14px;
  8901. cursor: pointer;
  8902. }
  8903. .kcImg {
  8904. width: 60px;
  8905. margin-left: 10px;
  8906. }
  8907. .zyImg {
  8908. width: 55px;
  8909. margin: 0 10px;
  8910. }
  8911. .deleteZy {
  8912. width: 20px;
  8913. position: absolute;
  8914. top: 5px;
  8915. right: 5px;
  8916. cursor: pointer;
  8917. }
  8918. .kcImg>img,
  8919. .zyImg>img,
  8920. .deleteZy>img {
  8921. width: 100%;
  8922. height: 100%;
  8923. }
  8924. .zyBox {
  8925. display: flex;
  8926. flex-direction: row;
  8927. align-items: center;
  8928. background: #67d37d;
  8929. color: #fff;
  8930. width: 210px;
  8931. margin: 20px 20px 0 0;
  8932. border-radius: 10px;
  8933. height: 70px;
  8934. position: relative;
  8935. }
  8936. .upCss {
  8937. display: flex;
  8938. flex-direction: row;
  8939. justify-content: flex-start;
  8940. }
  8941. .upCss>>>.el-icon-plus {
  8942. position: none !important;
  8943. width: 200px;
  8944. height: 100px;
  8945. display: flex;
  8946. flex-wrap: nowrap;
  8947. flex-direction: column;
  8948. align-items: center;
  8949. justify-content: center;
  8950. border: 1px dashed #ccc;
  8951. min-width: 78px;
  8952. min-height: 100px;
  8953. z-index: 999;
  8954. }
  8955. .upCss>>>.el-upload-list__item-name {
  8956. width: 100px;
  8957. white-space: nowrap;
  8958. overflow: hidden;
  8959. text-overflow: ellipsis;
  8960. }
  8961. .addStageImg {
  8962. min-width: 20px;
  8963. min-height: 20px;
  8964. width: 20px;
  8965. height: 20px;
  8966. cursor: pointer;
  8967. }
  8968. .addHW {
  8969. width: 28px;
  8970. height: 28px;
  8971. cursor: pointer;
  8972. }
  8973. .addStageImg>img,
  8974. .addHW>img {
  8975. width: 100%;
  8976. height: 100%;
  8977. }
  8978. .addNewPP>>>.el-dialog__body {
  8979. padding: 5px 20px;
  8980. }
  8981. .addNewPP>>>.el-dialog {
  8982. margin-top: 5vh !important;
  8983. }
  8984. .isHeight {
  8985. height: 680px;
  8986. }
  8987. .toolChoose {
  8988. display: flex;
  8989. /* width: 100%; */
  8990. flex-direction: row;
  8991. flex-wrap: wrap;
  8992. }
  8993. .tool {
  8994. display: flex;
  8995. flex-direction: column;
  8996. flex-wrap: nowrap;
  8997. width: fit-content;
  8998. margin: 10px 0 10px 0;
  8999. align-items: center;
  9000. }
  9001. .tool+.tool {
  9002. margin-right: 45px;
  9003. }
  9004. .whiteBIcon {
  9005. width: 80px;
  9006. cursor: pointer;
  9007. display: flex;
  9008. flex-direction: column;
  9009. flex-wrap: nowrap;
  9010. align-items: center;
  9011. font-size: 14px;
  9012. }
  9013. .whiteBIcon>img,
  9014. .toolIcon>img,
  9015. .arrow>img {
  9016. width: 100%;
  9017. height: 100%;
  9018. }
  9019. .check img {
  9020. width: 20px;
  9021. height: 20px;
  9022. }
  9023. .whiteBIcon>img {
  9024. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  9025. border-radius: 15px;
  9026. }
  9027. .check {
  9028. /* width: 20px;
  9029. height: 20px; */
  9030. cursor: pointer;
  9031. margin: 10px 0 0;
  9032. }
  9033. .checkDiv {
  9034. display: flex;
  9035. align-items: center;
  9036. }
  9037. .checkDiv span {
  9038. margin-left: 5px;
  9039. color: #858585;
  9040. }
  9041. .customWidth>>>.el-dialog {
  9042. min-width: 500px !important;
  9043. }
  9044. .a_addBox {
  9045. margin: 10px 0;
  9046. background: #fff;
  9047. padding: 15px;
  9048. max-height: 600px;
  9049. overflow: auto;
  9050. }
  9051. .a_add_box {
  9052. border-bottom: 2px solid #eee;
  9053. padding-bottom: 25px;
  9054. }
  9055. .a_add_head {
  9056. display: flex;
  9057. align-items: center;
  9058. justify-content: space-between;
  9059. margin: 10px 0 0 0;
  9060. font-size: 18px;
  9061. }
  9062. .a_add_checkType {
  9063. margin-top: 10px;
  9064. display: flex;
  9065. font-size: 16px;
  9066. align-items: center;
  9067. }
  9068. .a_add_checkType span {
  9069. box-sizing: border-box;
  9070. padding: 0 0 5px 0;
  9071. cursor: pointer;
  9072. }
  9073. .a_add_checkType span+span {
  9074. margin-left: 10px;
  9075. }
  9076. .a_add_checkType .active {
  9077. border-bottom: 2px solid #409eff;
  9078. color: #409eff;
  9079. }
  9080. .a_add_head .a_add_head_input {
  9081. width: 550px;
  9082. }
  9083. .a_add_head .a_add_head_div {
  9084. display: flex;
  9085. align-items: center;
  9086. justify-content: space-between;
  9087. }
  9088. .a_add_body {
  9089. display: flex;
  9090. /* align-items: center; */
  9091. align-items: flex-end;
  9092. }
  9093. .a_add_input {
  9094. display: flex;
  9095. align-items: center;
  9096. flex-wrap: wrap;
  9097. }
  9098. .a_add_input_choice {
  9099. flex-direction: column;
  9100. margin-right: 10px;
  9101. }
  9102. .a_add_input_choice>>>.el-radio {
  9103. display: flex;
  9104. align-items: center;
  9105. flex-direction: row-reverse;
  9106. margin: 30px 0 0 0;
  9107. }
  9108. .a_add_input_choice>>>.el-checkbox {
  9109. display: flex;
  9110. align-items: center;
  9111. flex-direction: row-reverse;
  9112. margin: 30px 0 0 0;
  9113. }
  9114. .width100 {
  9115. width: 100%;
  9116. }
  9117. .a_add_input .a_add_persent {
  9118. width: 100%;
  9119. }
  9120. .a_add_persent_div {
  9121. width: 100%;
  9122. display: flex;
  9123. align-items: center;
  9124. }
  9125. .a_add_persent_div span {
  9126. margin: 5px 0;
  9127. }
  9128. .a_add_persent_div span:nth-child(1) {
  9129. width: 30%;
  9130. }
  9131. .a_add_persent_div span:nth-child(2) {
  9132. width: 7%;
  9133. }
  9134. .a_add_persent_div span:nth-child(3) {
  9135. width: 40%;
  9136. }
  9137. .a_add_body_div {
  9138. display: flex;
  9139. align-items: center;
  9140. justify-content: center;
  9141. /* flex-direction: column; */
  9142. }
  9143. .all_choose {
  9144. display: flex;
  9145. flex-direction: row;
  9146. align-items: flex-start;
  9147. width: 100%;
  9148. }
  9149. .all_choose+.all_choose {
  9150. /* margin-top: 10px */
  9151. }
  9152. .all_choose>span {
  9153. min-width: fit-content;
  9154. display: block;
  9155. white-space: nowrap;
  9156. overflow: hidden;
  9157. text-overflow: ellipsis;
  9158. margin-right: 20px;
  9159. font-weight: bold;
  9160. font-size: 14px;
  9161. }
  9162. .all_choose>>>.el-checkbox-group {
  9163. display: flex;
  9164. flex-direction: row;
  9165. width: 100%;
  9166. flex-wrap: wrap;
  9167. align-content: center;
  9168. justify-content: flex-start;
  9169. align-items: center;
  9170. margin-top: 3px;
  9171. }
  9172. .all_choose>.el-checkbox-group>>>.el-checkbox {
  9173. margin-bottom: 10px;
  9174. display: flex;
  9175. flex-direction: row;
  9176. align-items: center;
  9177. margin-right: 10px;
  9178. }
  9179. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  9180. min-width: 80px;
  9181. overflow: hidden;
  9182. width: 80px;
  9183. text-overflow: ellipsis;
  9184. white-space: nowrap;
  9185. }
  9186. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  9187. width: auto;
  9188. }
  9189. .choose>div:nth-child(3)>span {
  9190. /* letter-spacing: 0 !important; */
  9191. }
  9192. .choose {
  9193. display: flex;
  9194. flex-direction: column;
  9195. flex-wrap: nowrap;
  9196. height: 100%;
  9197. justify-content: space-evenly;
  9198. align-items: flex-start;
  9199. }
  9200. .both {
  9201. display: flex;
  9202. flex-direction: row;
  9203. flex-wrap: wrap;
  9204. width: 100%;
  9205. align-items: center;
  9206. justify-content: flex-start;
  9207. margin: 15px 0;
  9208. }
  9209. .notice>>>.el-dialog {
  9210. width: 500px !important;
  9211. text-align: center;
  9212. }
  9213. .notice>>>.el-button {
  9214. margin-top: 20px;
  9215. }
  9216. .whiteBg {
  9217. /* background: #fff; */
  9218. border-radius: 10px;
  9219. }
  9220. .wb_j_box {
  9221. display: flex;
  9222. width: 100%;
  9223. padding: 20px 20px 0;
  9224. box-sizing: border-box;
  9225. }
  9226. .wb_j_box_content {
  9227. width: calc(100% - 55% - 100px);
  9228. display: flex;
  9229. align-items: center;
  9230. }
  9231. .wb_j_box_p_box {
  9232. max-width: calc(100% - 200px);
  9233. word-break: break-all;
  9234. overflow: hidden;
  9235. margin: 0 0 0 10px;
  9236. font-size: 14px;
  9237. color: #6e6e6e;
  9238. }
  9239. .chooseWho {
  9240. display: flex;
  9241. width: 380px;
  9242. flex-direction: row;
  9243. flex-wrap: nowrap;
  9244. justify-content: space-between;
  9245. padding-bottom: 10px;
  9246. }
  9247. .chooseWho>div {
  9248. cursor: pointer;
  9249. padding-bottom: 10px;
  9250. font-weight: bold;
  9251. }
  9252. .isChooseActive {
  9253. color: #3e88f4;
  9254. border-bottom: 2px solid #2f80f3;
  9255. }
  9256. .toolSort {
  9257. display: flex;
  9258. flex-direction: row;
  9259. flex-wrap: wrap;
  9260. justify-content: flex-start;
  9261. align-items: flex-start;
  9262. }
  9263. .toolSort>div {
  9264. margin-right: 45px;
  9265. }
  9266. .tools {
  9267. width: 100%;
  9268. display: flex;
  9269. flex-direction: column;
  9270. flex-wrap: nowrap;
  9271. align-items: flex-start;
  9272. }
  9273. .leftTools,
  9274. .rightTools {
  9275. width: 50%;
  9276. }
  9277. .leftTools+.leftTools {
  9278. border-top: 1px solid #dbdbdb;
  9279. padding-top: 30px;
  9280. }
  9281. .rightTools {
  9282. display: flex;
  9283. flex-direction: row;
  9284. flex-wrap: nowrap;
  9285. justify-content: space-around;
  9286. }
  9287. .firstToolList {
  9288. display: flex;
  9289. flex-direction: column;
  9290. flex-wrap: nowrap;
  9291. align-items: center;
  9292. }
  9293. .iconList {
  9294. display: flex;
  9295. flex-direction: row;
  9296. flex-wrap: wrap;
  9297. justify-content: flex-start;
  9298. align-items: center;
  9299. margin: 20px 0 5px 0;
  9300. width: 240px;
  9301. min-width: 240px;
  9302. }
  9303. .iconTool {
  9304. display: flex;
  9305. flex-direction: column;
  9306. flex-wrap: nowrap;
  9307. align-items: center;
  9308. justify-content: flex-start;
  9309. margin: 15px 10px;
  9310. }
  9311. .toolIcon {
  9312. width: 50px;
  9313. }
  9314. .taskBorder {
  9315. border: 1px solid #CAD1DC;
  9316. border-radius: 10px;
  9317. margin-top: 20px;
  9318. min-height: 1160px;
  9319. position: relative;
  9320. background: #F0F4FA;
  9321. padding: 20px 20px 0;
  9322. overflow: hidden;
  9323. box-sizing: border-box;
  9324. }
  9325. .smallTaskBorder {
  9326. height: 170px;
  9327. min-height: 170px !important;
  9328. overflow: hidden;
  9329. }
  9330. /* .taskBorder>div {
  9331. padding: 30px 30px 10px;
  9332. } */
  9333. .addTaskBorder {
  9334. border: 2px solid #5E9AFC;
  9335. border-radius: 8px;
  9336. margin-top: 25px;
  9337. cursor: pointer;
  9338. height: 50px;
  9339. line-height: 50px;
  9340. }
  9341. .addTaskBorder>div {
  9342. margin: 0 auto;
  9343. display: flex;
  9344. align-items: center;
  9345. justify-content: center;
  9346. }
  9347. .addTaskBorder>div>img {
  9348. width: 20px;
  9349. }
  9350. .addTaskBorder>div>span {
  9351. font-size: 16px;
  9352. margin-left: 10px;
  9353. color: #5E9AFC;
  9354. }
  9355. .funBlock {
  9356. display: flex;
  9357. padding: 15px 0;
  9358. flex-direction: row;
  9359. justify-content: flex-end;
  9360. align-items: center;
  9361. position: absolute;
  9362. right: 15px;
  9363. bottom: 35px;
  9364. }
  9365. .fold {
  9366. display: flex;
  9367. margin: 0 10px;
  9368. flex-direction: row;
  9369. align-items: center;
  9370. cursor: pointer;
  9371. color: #717C8D;
  9372. }
  9373. .arrow {
  9374. margin-right: 8px;
  9375. border-left: 7px solid transparent;
  9376. border-bottom: 7px solid #717C8D;
  9377. border-top: 0px solid transparent;
  9378. border-right: 7px solid transparent;
  9379. box-sizing: border-box;
  9380. transition: all .3s;
  9381. }
  9382. .arrowZ {
  9383. transform: rotate(180deg);
  9384. }
  9385. .addToolFun {
  9386. display: flex;
  9387. width: 150px;
  9388. flex-direction: row;
  9389. align-items: center;
  9390. justify-content: center;
  9391. border: 1px dashed;
  9392. border-radius: 5px;
  9393. height: 50px;
  9394. margin: 35px auto 0;
  9395. cursor: pointer;
  9396. }
  9397. .addToolFun2 {
  9398. display: flex;
  9399. width: 100%;
  9400. border: 2px dashed #CAD1DC;
  9401. flex-direction: row;
  9402. align-items: center;
  9403. justify-content: center;
  9404. border-radius: 5px;
  9405. height: 50px;
  9406. margin: 0 auto 0;
  9407. cursor: pointer;
  9408. }
  9409. .addToolImg {
  9410. width: 20px;
  9411. height: 20px;
  9412. margin-right: 10px;
  9413. }
  9414. .addToolsDia>>>.el-dialog__body {
  9415. padding: 20px;
  9416. }
  9417. .addToolsDia>>>.el-dialog__body>.toolChoose {
  9418. padding: 0;
  9419. }
  9420. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  9421. padding: 0;
  9422. border-bottom: none;
  9423. margin-bottom: 0;
  9424. }
  9425. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  9426. width: 100%;
  9427. }
  9428. .lineCss>>>.el-form-item__label {
  9429. width: auto !important;
  9430. }
  9431. .lineCss>>>.el-form-item__content {
  9432. margin-left: 50px !important;
  9433. }
  9434. .newSteps {
  9435. display: flex;
  9436. width: 100% !important;
  9437. /* height: 80px; */
  9438. cursor: pointer;
  9439. margin: 10px 0;
  9440. border-radius: 10px;
  9441. flex-direction: row;
  9442. align-content: center;
  9443. justify-content: center;
  9444. align-items: center;
  9445. margin: 0 !important;
  9446. }
  9447. /* 评价样式 */
  9448. .elist_css {
  9449. padding-bottom: 60px !important;
  9450. }
  9451. .elist_title {
  9452. margin-bottom: 10px;
  9453. }
  9454. .elist_input {}
  9455. .elist_input_box {
  9456. display: flex;
  9457. align-items: center;
  9458. flex-wrap: wrap;
  9459. }
  9460. .elist_input_box+.elist_input_box {
  9461. margin-top: 30px;
  9462. }
  9463. .elist_input .elist_input_box input {
  9464. font: inherit;
  9465. color: currentColor;
  9466. /* width: 200px; */
  9467. max-width: 200px;
  9468. padding: 8px 14px;
  9469. display: block;
  9470. min-width: 0;
  9471. outline: none;
  9472. border: 1px solid rgba(0, 0, 0, 0.23);
  9473. border-radius: 4px;
  9474. box-sizing: border-box;
  9475. background: #fff;
  9476. margin: 0 20px 0 0;
  9477. }
  9478. .elist_input .elist_input_box span {
  9479. height: 36px;
  9480. line-height: 36px;
  9481. color: rgb(82, 82, 82);
  9482. min-width: 80px;
  9483. }
  9484. .elist_input .elist_input_box .remove {
  9485. height: 20px;
  9486. width: 20px;
  9487. background-size: 100% 100%;
  9488. background-position: unset;
  9489. margin-left: 5px;
  9490. }
  9491. .elist_input_box>>>.el-rate {
  9492. display: flex;
  9493. height: 36px;
  9494. align-items: center;
  9495. }
  9496. .elist_input_box .elist_inptu_text {
  9497. width: 100%;
  9498. display: flex;
  9499. align-items: center;
  9500. margin-top: 10px;
  9501. }
  9502. .elist_input_box .elist_inptu_text input {
  9503. /* width: 500px; */
  9504. width: 100%;
  9505. max-width: unset;
  9506. }
  9507. .elist_input_box>>>.el-rate__icon {
  9508. font-size: 24px;
  9509. }
  9510. .elist_btn {
  9511. margin-top: 10px;
  9512. }
  9513. .lineTitle {
  9514. /* margin-top: 15px; */
  9515. width: 110px;
  9516. font-size: 18px;
  9517. }
  9518. .courseTop {
  9519. display: flex;
  9520. flex-direction: row;
  9521. justify-content: flex-start;
  9522. align-items: center;
  9523. width: calc(100% - 40px);
  9524. margin: 0 auto;
  9525. padding: 10px 0;
  9526. }
  9527. .stepsNav {
  9528. display: flex;
  9529. flex-direction: row;
  9530. justify-content: flex-start;
  9531. align-items: center;
  9532. }
  9533. .stepsWord {
  9534. font-size: 18px;
  9535. color: #fff;
  9536. font-weight: bold;
  9537. margin-left: auto;
  9538. background: rgb(15, 126, 255);
  9539. border-radius: 5px;
  9540. padding: 3px 25px;
  9541. box-sizing: border-box;
  9542. }
  9543. .stepBox {
  9544. width: calc(100% - 40px);
  9545. height: calc(100% - 50px);
  9546. overflow: hidden;
  9547. border-radius: 5px;
  9548. margin: 0 auto;
  9549. }
  9550. .rightBox {
  9551. width: calc(100%);
  9552. background: rgb(255, 255, 255);
  9553. /* border-radius: 10px; */
  9554. overflow: auto;
  9555. height: calc(100% - 150px);
  9556. margin: 0 auto;
  9557. position: relative;
  9558. box-sizing: border-box;
  9559. }
  9560. .e_add_top {
  9561. display: flex;
  9562. justify-content: space-between;
  9563. background: #fff;
  9564. position: absolute;
  9565. right: 20px;
  9566. height: 50px;
  9567. align-items: center;
  9568. }
  9569. .e_add_title2 {
  9570. display: flex;
  9571. align-items: center;
  9572. }
  9573. .e_add_title2 span {
  9574. width: 40px;
  9575. }
  9576. .e_add_title {
  9577. display: flex;
  9578. align-items: center;
  9579. color: #b8b8b8;
  9580. font-size: 18px;
  9581. position: relative;
  9582. height: 40px;
  9583. }
  9584. .e_add_title span {
  9585. margin-right: 10px;
  9586. }
  9587. .e_add_title .el_input {
  9588. width: 300px;
  9589. }
  9590. .e_add_title>>>.el-input__inner {
  9591. width: 400px;
  9592. }
  9593. .e_add_btn {}
  9594. .e_add_content {
  9595. display: flex;
  9596. width: 100%;
  9597. }
  9598. .e_add_list {
  9599. background: #fff;
  9600. height: 500px;
  9601. width: 210px;
  9602. position: relative;
  9603. margin: 15px 5px 0 0;
  9604. flex-shrink: 0;
  9605. display: flex;
  9606. flex-direction: column;
  9607. }
  9608. .e_add_list_title {
  9609. font-size: 20px;
  9610. width: 100%;
  9611. box-sizing: border-box;
  9612. padding: 15px 40px;
  9613. text-align: center;
  9614. border-bottom: 1px solid #eaeaea;
  9615. position: relative;
  9616. display: flex;
  9617. align-items: center;
  9618. justify-content: center;
  9619. height: 57px;
  9620. background: #f6f6f6;
  9621. }
  9622. .e_add_list_title span {
  9623. overflow: hidden;
  9624. white-space: nowrap;
  9625. text-overflow: ellipsis;
  9626. }
  9627. .e_add_list_title img {
  9628. position: absolute;
  9629. right: 15px;
  9630. width: 25px;
  9631. cursor: pointer;
  9632. top: 50%;
  9633. transform: translateY(-50%);
  9634. }
  9635. .e_add_list_body {
  9636. height: calc(100% - 187px);
  9637. overflow: auto;
  9638. }
  9639. .e_add_list_child {
  9640. width: 100%;
  9641. display: flex;
  9642. align-items: center;
  9643. justify-content: center;
  9644. position: relative;
  9645. box-sizing: border-box;
  9646. padding: 15px 40px;
  9647. text-align: center;
  9648. }
  9649. .e_add_list_child span {
  9650. overflow: hidden;
  9651. white-space: nowrap;
  9652. text-overflow: ellipsis;
  9653. cursor: pointer;
  9654. }
  9655. .e_add_list_child img {
  9656. position: absolute;
  9657. right: 10px;
  9658. width: 21px;
  9659. cursor: pointer;
  9660. top: 50%;
  9661. transform: translateY(-50%);
  9662. }
  9663. .e_add_list_child+.e_add_list_child {
  9664. border-top: 1px solid #eaeaea;
  9665. }
  9666. .e_add_list_child .active {
  9667. color: #409eff;
  9668. }
  9669. .e_add_list_btn {
  9670. position: absolute;
  9671. bottom: 0;
  9672. height: 50px;
  9673. background: rgb(120, 120, 254);
  9674. width: 100%;
  9675. color: #fff;
  9676. font-size: 16px;
  9677. text-align: center;
  9678. line-height: 50px;
  9679. cursor: pointer;
  9680. }
  9681. .e_add_list_detail {
  9682. position: absolute;
  9683. bottom: 0;
  9684. height: 130px;
  9685. background: rgb(120, 120, 254);
  9686. width: 100%;
  9687. color: #fff;
  9688. font-size: 16px;
  9689. display: flex;
  9690. align-items: center;
  9691. justify-content: center;
  9692. }
  9693. .e_add_list_detail textarea {
  9694. height: 90%;
  9695. width: 95%;
  9696. border: none;
  9697. resize: none;
  9698. outline: none;
  9699. padding: 5px;
  9700. box-sizing: border-box;
  9701. }
  9702. .e_add_list_pbox {
  9703. width: 100%;
  9704. }
  9705. .e_add_list_pbox_title {
  9706. height: 50px;
  9707. background: #fff;
  9708. display: flex;
  9709. align-items: center;
  9710. width: 100%;
  9711. box-sizing: border-box;
  9712. padding: 0 20px;
  9713. flex-direction: row;
  9714. flex-wrap: wrap;
  9715. }
  9716. .type_title {
  9717. font-size: 18px;
  9718. font-weight: 700;
  9719. }
  9720. .type_content {
  9721. font-size: 16px;
  9722. margin-left: 30px;
  9723. }
  9724. .type_content span+span {
  9725. margin-left: 20px;
  9726. }
  9727. .type_content span {
  9728. cursor: pointer;
  9729. padding-bottom: 5px;
  9730. box-sizing: border-box;
  9731. }
  9732. .type_content .active {
  9733. color: #409eff;
  9734. border-bottom: 2px solid #409eff;
  9735. }
  9736. .e_add_list_pbox_content {
  9737. height: calc(100% - 50px);
  9738. display: flex;
  9739. align-items: center;
  9740. width: 100%;
  9741. background: #fff;
  9742. }
  9743. .mbCss {
  9744. width: 100%;
  9745. display: flex;
  9746. flex-direction: row;
  9747. flex-wrap: nowrap;
  9748. align-content: center;
  9749. align-items: flex-start;
  9750. justify-content: flex-start;
  9751. }
  9752. .pjCss {
  9753. /* width: 42%; */
  9754. width: calc(100% - 55%);
  9755. display: flex;
  9756. flex-direction: column;
  9757. flex-wrap: nowrap;
  9758. align-items: flex-start;
  9759. }
  9760. .e_box {
  9761. display: flex;
  9762. flex-wrap: wrap;
  9763. max-height: 500px;
  9764. align-items: flex-start;
  9765. overflow: auto;
  9766. }
  9767. .e_card {
  9768. border: 1px solid #ccc;
  9769. background: #fff;
  9770. margin-right: 20px;
  9771. width: 270px;
  9772. display: flex;
  9773. flex-direction: column;
  9774. align-items: center;
  9775. border-radius: 5px;
  9776. margin-top: 10px;
  9777. text-align: center;
  9778. }
  9779. .e_card_picture {
  9780. margin: 10px 0;
  9781. }
  9782. .e_card_picture>img {
  9783. width: 50px;
  9784. }
  9785. .e_card_name {
  9786. width: 100%;
  9787. padding: 0 10px;
  9788. box-sizing: border-box;
  9789. margin-bottom: 10px;
  9790. overflow: hidden;
  9791. text-overflow: ellipsis;
  9792. white-space: nowrap;
  9793. }
  9794. .e_card_time {
  9795. width: 100%;
  9796. padding: 0 10px;
  9797. box-sizing: border-box;
  9798. font-size: 15px;
  9799. color: #c3c3c3;
  9800. margin-bottom: 10px;
  9801. }
  9802. .e_card_btn {
  9803. height: 40px;
  9804. display: flex;
  9805. align-items: center;
  9806. width: 100%;
  9807. background: rgb(244, 244, 244);
  9808. }
  9809. .e_card_btn:hover {
  9810. background: rgb(221 221 221);
  9811. }
  9812. .e_card_btn span {
  9813. flex: 1 1 auto;
  9814. text-align: center;
  9815. cursor: pointer;
  9816. }
  9817. .addEva {
  9818. border: 1px solid #ccc;
  9819. background: #fff;
  9820. margin-right: 20px;
  9821. width: 270px;
  9822. height: 149px;
  9823. display: flex;
  9824. flex-direction: column;
  9825. align-items: center;
  9826. border-radius: 5px;
  9827. margin-top: 10px;
  9828. text-align: center;
  9829. cursor: pointer;
  9830. justify-content: center;
  9831. }
  9832. .addEva>img {
  9833. width: 50px;
  9834. object-fit: cover;
  9835. }
  9836. .uploadFm {
  9837. border: 1px dashed #ccc;
  9838. width: 202px;
  9839. height: 130px;
  9840. position: relative;
  9841. cursor: pointer;
  9842. display: flex;
  9843. flex-direction: column;
  9844. justify-content: center;
  9845. align-items: center;
  9846. font-size: 14px;
  9847. color: #6e6e6e;
  9848. }
  9849. .uploadFm>img {
  9850. width: 50px;
  9851. }
  9852. .fileCss {
  9853. width: 100%;
  9854. display: flex;
  9855. flex-direction: row;
  9856. flex-wrap: nowrap;
  9857. justify-content: space-around;
  9858. align-items: center;
  9859. padding-top: 15px;
  9860. }
  9861. .sysPicBox {
  9862. display: flex;
  9863. flex-direction: row;
  9864. flex-wrap: wrap;
  9865. align-content: flex-start;
  9866. height: 435px;
  9867. overflow: auto;
  9868. }
  9869. .sysPic {
  9870. width: 200px;
  9871. height: 115px;
  9872. margin: 0 20px 20px 0;
  9873. cursor: pointer;
  9874. }
  9875. .sysPic>img,
  9876. .isSysPic>img,
  9877. .deletePic>img {
  9878. width: 100%;
  9879. height: 100%;
  9880. object-fit: cover;
  9881. }
  9882. .isSysPic {
  9883. width: 200px;
  9884. height: 115px;
  9885. position: relative;
  9886. }
  9887. .deletePic {
  9888. width: 20px;
  9889. height: 20px;
  9890. position: absolute;
  9891. top: 0;
  9892. right: 0;
  9893. cursor: pointer;
  9894. }
  9895. .select_box1 {}
  9896. .select_box1_img {
  9897. background: #fff;
  9898. border-radius: 5px;
  9899. padding: 15px;
  9900. box-sizing: border-box;
  9901. margin-bottom: 20px;
  9902. }
  9903. .select_box1_title {
  9904. padding: 0 0 15px 0;
  9905. border-bottom: 1px solid #eee;
  9906. margin-bottom: 15px;
  9907. }
  9908. .select_box1_title span:nth-child(1) {
  9909. font-size: 16px;
  9910. margin-right: 20px;
  9911. color: #000;
  9912. }
  9913. .select_box1_title span:nth-child(2) {
  9914. font-size: 14px;
  9915. color: rgb(112, 112, 112);
  9916. }
  9917. .select_box1_add_img {}
  9918. .select_box1_select {
  9919. background: #fff;
  9920. border-radius: 5px;
  9921. padding: 15px;
  9922. box-sizing: border-box;
  9923. }
  9924. .select_box2 {}
  9925. .select_box2_title {
  9926. background: #fff;
  9927. border-radius: 5px;
  9928. padding: 5px 10px;
  9929. box-sizing: border-box;
  9930. margin-bottom: 10px;
  9931. }
  9932. .select_box2_box {
  9933. display: flex;
  9934. height: 500px;
  9935. }
  9936. .select_box2_img {
  9937. width: calc(100% - 310px);
  9938. height: 100%;
  9939. overflow: auto;
  9940. background: #fff;
  9941. border-radius: 5px;
  9942. }
  9943. .select_box2_img img {
  9944. width: 100%;
  9945. }
  9946. .select_box2_answer {
  9947. background: #fff;
  9948. margin-left: 10px;
  9949. border-radius: 5px;
  9950. width: 300px;
  9951. overflow: auto;
  9952. height: 100%;
  9953. display: flex;
  9954. flex-direction: column;
  9955. align-items: center;
  9956. padding-top: 10px;
  9957. box-sizing: border-box;
  9958. }
  9959. .select_box2_answer_box {
  9960. margin: 0 0 10px 0;
  9961. width: 85%;
  9962. }
  9963. .rate_textarea {
  9964. font: inherit;
  9965. color: currentColor;
  9966. width: 100%;
  9967. padding: 8px 14px;
  9968. display: block;
  9969. min-width: 0;
  9970. outline: none;
  9971. border: 1px solid rgba(0, 0, 0, 0.23);
  9972. border-radius: 4px;
  9973. box-sizing: border-box;
  9974. background: #fff;
  9975. margin: 0 20px 0 0;
  9976. resize: none;
  9977. }
  9978. .select_answer_title {
  9979. text-align: left;
  9980. width: 85%;
  9981. margin-bottom: 10px;
  9982. font-size: 18px;
  9983. color: #8e8e8e;
  9984. }
  9985. .mask {
  9986. background-color: rgb(0 0 0 / 30%);
  9987. /* position: fixed; */
  9988. position: absolute;
  9989. top: 0;
  9990. left: 0;
  9991. width: 100%;
  9992. height: 100%;
  9993. z-index: 90;
  9994. display: flex;
  9995. align-items: center;
  9996. justify-content: center;
  9997. }
  9998. .progressBox {
  9999. width: 300px;
  10000. height: 150px;
  10001. background: #fff;
  10002. border-radius: 10px;
  10003. box-shadow: 0 0 6px 1px #bfbfbf;
  10004. display: flex;
  10005. align-items: center;
  10006. justify-content: center;
  10007. flex-direction: column;
  10008. position: relative;
  10009. color: #6c6c6c;
  10010. }
  10011. .progressBox>>>.el-progress-bar__outer {
  10012. background-color: #d1dfff !important;
  10013. }
  10014. .progressBox .lbox {
  10015. height: 50px;
  10016. font-size: 19px;
  10017. display: flex;
  10018. align-items: center;
  10019. color: #747474;
  10020. }
  10021. .progressBox .lbox img {
  10022. width: 40px;
  10023. margin-right: 20px;
  10024. }
  10025. .closeCss {
  10026. position: absolute;
  10027. top: 8px;
  10028. right: 8px;
  10029. cursor: pointer;
  10030. width: 20px;
  10031. height: 20px;
  10032. }
  10033. .closeCss>img {
  10034. width: 100%;
  10035. height: 100%;
  10036. }
  10037. .updateTips::before {
  10038. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  10039. font-size: 14px;
  10040. margin-left: 20px;
  10041. font-weight: 400;
  10042. color: #ff3a3a;
  10043. margin-bottom: 10px;
  10044. display: block;
  10045. }
  10046. .updateMask {
  10047. width: 100%;
  10048. z-index: 3;
  10049. top: 0;
  10050. position: absolute;
  10051. /* background-color: rgba(0,0,0,.3); */
  10052. }
  10053. .t_j_box {
  10054. display: flex;
  10055. }
  10056. .t_j_box span:nth-child(1) {
  10057. width: 15%;
  10058. overflow: hidden;
  10059. margin-right: 10px;
  10060. text-overflow: ellipsis;
  10061. white-space: nowrap;
  10062. }
  10063. .t_j_box span:nth-child(2) {
  10064. width: 30%;
  10065. overflow: hidden;
  10066. text-overflow: ellipsis;
  10067. margin-right: 10px;
  10068. }
  10069. .t_j_box span:nth-child(3) {
  10070. max-width: calc(55% - 20px);
  10071. overflow: hidden;
  10072. text-overflow: ellipsis;
  10073. }
  10074. .sentenBox {
  10075. background: #fff;
  10076. height: 600px;
  10077. overflow: auto;
  10078. background-image: url("../../assets/icon/conSentences/csBg.png");
  10079. background-position: 102%;
  10080. background-repeat: no-repeat;
  10081. background-size: 60%;
  10082. }
  10083. .addSen {
  10084. background: #409efe;
  10085. width: 90px;
  10086. color: #fff;
  10087. height: 35px;
  10088. text-align: center;
  10089. line-height: 35px;
  10090. border-radius: 5px;
  10091. float: right;
  10092. margin: 10px 20px 0 0;
  10093. cursor: pointer;
  10094. }
  10095. .sentenTop {
  10096. display: flex;
  10097. flex-direction: row;
  10098. flex-wrap: nowrap;
  10099. align-items: center;
  10100. }
  10101. .sentenTop>div:nth-child(2) {
  10102. width: 300px;
  10103. margin: 0 15px;
  10104. }
  10105. .sentenTop>div:nth-child(3) {
  10106. background: #409efe;
  10107. color: #fff;
  10108. width: 65px;
  10109. height: 35px;
  10110. text-align: center;
  10111. line-height: 35px;
  10112. border-radius: 5px;
  10113. cursor: pointer;
  10114. }
  10115. .cardList {
  10116. padding: 30px 0 20px 0;
  10117. display: flex;
  10118. flex-direction: row;
  10119. flex-wrap: wrap;
  10120. align-items: center;
  10121. box-sizing: border-box;
  10122. border-bottom: 1px solid #f4f4f4;
  10123. width: 98%;
  10124. margin: 0 auto;
  10125. }
  10126. .cardBox {
  10127. display: flex;
  10128. flex-direction: row;
  10129. flex-wrap: wrap;
  10130. align-items: center;
  10131. align-content: center;
  10132. }
  10133. .isCard,
  10134. .isCard1 {
  10135. width: 140px;
  10136. height: 65px;
  10137. text-align: center;
  10138. line-height: 65px;
  10139. font-size: 20px;
  10140. cursor: pointer;
  10141. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  10142. background-size: cover;
  10143. position: relative;
  10144. z-index: 99;
  10145. }
  10146. .isCard1 {
  10147. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  10148. }
  10149. .isCard:hover .deleteWord {
  10150. display: block;
  10151. }
  10152. .isCard>div:nth-child(1),
  10153. .isCard1>div:nth-child(1) {
  10154. white-space: nowrap;
  10155. overflow: hidden;
  10156. text-overflow: ellipsis;
  10157. width: 80%;
  10158. margin: 0 auto;
  10159. }
  10160. .card {
  10161. width: 140px;
  10162. height: 65px;
  10163. }
  10164. .card>img {
  10165. width: 100%;
  10166. height: 100%;
  10167. }
  10168. .rightCardBox {
  10169. margin: 10px 0 0 10px;
  10170. }
  10171. .rightCardBox>div:nth-child(1) {
  10172. margin-bottom: 10px;
  10173. }
  10174. .cardCss {
  10175. display: flex;
  10176. flex-direction: column;
  10177. flex-wrap: nowrap;
  10178. align-items: center;
  10179. border-bottom: 3px solid #b4c3d3;
  10180. padding: 0 0 5px 0;
  10181. margin-right: 10px;
  10182. }
  10183. .cardCss>div:nth-child(2) {
  10184. background: #5b7b9d;
  10185. color: #fff;
  10186. width: 20px;
  10187. height: 20px;
  10188. border-radius: 50%;
  10189. text-align: center;
  10190. line-height: 20px;
  10191. }
  10192. .sentenTopBox {
  10193. display: flex;
  10194. flex-direction: row;
  10195. flex-wrap: nowrap;
  10196. align-items: center;
  10197. justify-content: space-between;
  10198. padding: 55px 0 0 20px;
  10199. box-sizing: border-box;
  10200. width: 85%;
  10201. }
  10202. .stepsBottom {
  10203. width: 100%;
  10204. box-shadow: 0 0 10px 10px #f7f7f7;
  10205. /* background: #f7f7f7; */
  10206. border-radius: 10px;
  10207. overflow: hidden;
  10208. height: 100%
  10209. }
  10210. .navTop {
  10211. background: #53749b;
  10212. color: #fff;
  10213. height: 40px;
  10214. line-height: 40px;
  10215. padding-left: 15px;
  10216. font-size: 18px;
  10217. }
  10218. .navBottom {
  10219. /* background: #6b91b7; */
  10220. height: 100%;
  10221. overflow: auto;
  10222. }
  10223. .navTask {
  10224. display: flex;
  10225. flex-direction: row;
  10226. flex-wrap: nowrap;
  10227. align-items: center;
  10228. padding: 10px 10px 10px 0;
  10229. cursor: pointer;
  10230. background: #ffffff;
  10231. width: 95%;
  10232. margin: 10px auto;
  10233. box-sizing: border-box;
  10234. border-radius: 5px;
  10235. }
  10236. .isNavTask {
  10237. background: #3681FC;
  10238. }
  10239. .isNavTask .nt_taskName {
  10240. color: #fff !important;
  10241. }
  10242. .isNavTask .nt_taskTitle {
  10243. color: #AECCFE !important;
  10244. }
  10245. .navTask .nt_taskBox {
  10246. width: calc(100% - 40px);
  10247. padding: 0 10px 0 20px;
  10248. box-sizing: border-box;
  10249. }
  10250. .navTask .nt_taskTitle {
  10251. color: #717C8D;
  10252. line-height: 25px;
  10253. font-size: 14px;
  10254. }
  10255. .navTask .nt_taskName {
  10256. /* color: #fff; */
  10257. /* max-width: 130px; */
  10258. width: 100%;
  10259. white-space: nowrap;
  10260. overflow: hidden;
  10261. text-overflow: ellipsis;
  10262. font-size: 15px;
  10263. color: #0E1E33;
  10264. }
  10265. .groupBox {}
  10266. .groupContent+.groupContent {
  10267. margin-top: 30px;
  10268. }
  10269. .groupTitle {
  10270. font-size: 24px;
  10271. color: rgb(80, 80, 80);
  10272. margin-bottom: 20px;
  10273. }
  10274. .groupName {
  10275. display: flex;
  10276. align-items: center;
  10277. }
  10278. .groupn {
  10279. font-size: 15px;
  10280. margin-right: 10px;
  10281. }
  10282. .groupName+.groupName {
  10283. margin-top: 15px;
  10284. }
  10285. .groupBtn {
  10286. margin-left: 10px;
  10287. }
  10288. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10289. text-align: left;
  10290. }
  10291. .radioBox>div {
  10292. margin: 10px 0 0 10px;
  10293. }
  10294. .radioBox>>>.el-radio__input,
  10295. .radioBox>>>.el-checkbox__inner {
  10296. margin-left: 10px;
  10297. }
  10298. .radioBox>>>.el-radio__label,
  10299. .radioBox>>>.el-checkbox__label {
  10300. display: flex;
  10301. align-items: center;
  10302. }
  10303. .inImg {
  10304. width: 50px;
  10305. }
  10306. .inImg>img {
  10307. width: 100%;
  10308. height: 100%;
  10309. object-fit: cover;
  10310. }
  10311. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  10312. height: auto;
  10313. }
  10314. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  10315. width: 200px;
  10316. height: 100px;
  10317. object-fit: contain;
  10318. background: unset;
  10319. }
  10320. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  10321. display: none;
  10322. }
  10323. .tcMember+.tcMember::before {
  10324. content: "、";
  10325. }
  10326. .xzUpImg {
  10327. width: 25px;
  10328. height: 25px;
  10329. cursor: pointer;
  10330. }
  10331. .xzUpImg>img {
  10332. width: 100%;
  10333. height: 100%;
  10334. }
  10335. .closeCss {
  10336. position: absolute;
  10337. top: 8px;
  10338. right: 8px;
  10339. cursor: pointer;
  10340. width: 20px;
  10341. height: 20px;
  10342. }
  10343. .closeCss>img {
  10344. width: 100%;
  10345. height: 100%;
  10346. }
  10347. .moveBtn {
  10348. display: flex;
  10349. flex-direction: column;
  10350. align-items: flex-end;
  10351. width: 40px;
  10352. }
  10353. .timuUpImg {
  10354. display: flex;
  10355. flex-direction: row;
  10356. align-items: center;
  10357. }
  10358. .timuUpImg>div:nth-child(1) {
  10359. margin-right: 10px;
  10360. }
  10361. .timuImgBox {
  10362. margin: 10px 0;
  10363. display: flex;
  10364. flex-direction: column;
  10365. flex-wrap: wrap;
  10366. align-items: flex-start;
  10367. }
  10368. .timuImg {
  10369. width: 100px;
  10370. margin: 5px 0;
  10371. cursor: pointer;
  10372. position: relative;
  10373. }
  10374. .timuImg:hover .deleteWord {
  10375. display: block;
  10376. }
  10377. .deleteWord {
  10378. width: 25px;
  10379. height: 25px;
  10380. position: absolute;
  10381. right: -5px;
  10382. top: -5px;
  10383. cursor: pointer;
  10384. display: none;
  10385. }
  10386. .timuImg>img,
  10387. .deleteWord>img {
  10388. width: 100%;
  10389. height: 100%;
  10390. object-fit: cover;
  10391. }
  10392. .e_add_delete {
  10393. cursor: pointer;
  10394. margin-left: 10px;
  10395. }
  10396. .pType_box {
  10397. margin-top: 30px;
  10398. align-items: flex-end;
  10399. }
  10400. .noneBox {
  10401. height: 100%;
  10402. width: 100%;
  10403. display: flex;
  10404. align-items: center;
  10405. justify-content: center;
  10406. margin-top: 150px;
  10407. }
  10408. .noneBox>img {
  10409. width: 300px;
  10410. }
  10411. .rb_c_box {
  10412. width: 100%;
  10413. height: 100%;
  10414. display: flex;
  10415. padding: 20px;
  10416. box-sizing: border-box;
  10417. justify-content: space-between;
  10418. }
  10419. .rb_c_box_left {
  10420. height: 100%;
  10421. background: #F0F4FA;
  10422. width: 270px;
  10423. min-width: 270px;
  10424. border-radius: 8px;
  10425. margin-right: 10px;
  10426. }
  10427. .rb_c_box_right {
  10428. height: 100%;
  10429. width: calc(100%);
  10430. overflow: hidden;
  10431. }
  10432. .rb_c_box_btn {
  10433. display: flex;
  10434. justify-content: flex-start;
  10435. height: 50px;
  10436. align-items: center;
  10437. }
  10438. .rb_c_box_right>.basic_box {
  10439. background: #F0F4FA;
  10440. border-radius: 8px;
  10441. height: calc(100% - 0px);
  10442. overflow: auto;
  10443. }
  10444. .textarea_css {
  10445. display: block;
  10446. resize: none;
  10447. padding: 10px 15px;
  10448. line-height: 1.5;
  10449. box-sizing: border-box;
  10450. width: 100%;
  10451. font-size: 14px;
  10452. color: #606266;
  10453. background-color: #FFF;
  10454. background-image: none;
  10455. border: 1px solid #DCDFE6;
  10456. border-radius: 4px;
  10457. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  10458. outline: none;
  10459. overflow: hidden;
  10460. height: 40px;
  10461. }
  10462. .textarea_css:focus {
  10463. border-color: #409EFF;
  10464. outline: 0;
  10465. }
  10466. </style>