addCourse.vue 428 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item :to="{
  9. path:
  10. '/course?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">课程管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加课程</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  25. </div>
  26. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  27. <div ref="stepBox" class="stepBox">
  28. <div class="stepBg" v-if="false">
  29. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }" @mouseenter="stepDisplay(true)"
  30. @mouseleave="stepDisplay(false)">
  31. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  32. <div>
  33. <img src="../../assets/icon/first.png" alt />
  34. </div>
  35. <div>填写基本信息</div>
  36. </div>
  37. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  38. <div>
  39. <img src="../../assets/icon/firstNo.png" alt />
  40. </div>
  41. <div>填写基本信息</div>
  42. </div>
  43. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay"></div>
  44. <div v-if="steps > 1 && cidType === 0 && isStepDisplay" class="second" @click="navSteps(2)">
  45. <div style="margin: 5px 10px 0 0; width: 2rem">
  46. <img src="../../assets/icon/second.png" alt />
  47. </div>
  48. <div>选择课程模版</div>
  49. </div>
  50. <div v-else-if="cidType === 0 && isStepDisplay" class="secondNo" @click="navSteps(2)">
  51. <div>
  52. <img src="../../assets/icon/secondNo.png" alt />
  53. </div>
  54. <div>选择课程模版</div>
  55. </div>
  56. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  57. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  58. <div>
  59. <img src="../../assets/icon/third.png" alt />
  60. </div>
  61. <div>上传课程内容</div>
  62. </div>
  63. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  64. <div>
  65. <img src="../../assets/icon/thirdNo.png" alt />
  66. </div>
  67. <div>上传课程内容</div>
  68. </div>
  69. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  70. <div v-if="steps > 3 && isStepDisplay" class="four">
  71. <div>
  72. <img src="../../assets/icon/four.png" alt />
  73. </div>
  74. <div>上传完成</div>
  75. </div>
  76. <div v-else-if="isStepDisplay" class="fourNo">
  77. <div>
  78. <img src="../../assets/icon/fourNo.png" alt />
  79. </div>
  80. <div>上传完成</div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:0;"
  85. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 20px)' : 'calc(100% - 100px)' }">
  86. <div class="updateMask" :style="{
  87. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  88. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  89. <div class="whiteBg" style="background:unset;padding: 0;">
  90. <div>
  91. <div class="basic_box" style="padding: 0;">
  92. <div class="big_box">
  93. <div class="left_first">
  94. <div :class="{
  95. updateTips: cid && userid != courseUserid && role != '1',
  96. }">
  97. <div style="width: 100%;">
  98. <div class="course_input_box">
  99. <div class="bb_courseIcon"><img src="../../assets/icon/new/course.png" /></div>
  100. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  101. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  102. <el-switch v-model="isTeacherSee" active-text="是否公开此课程" style="justify-content: center;width: 200px;"></el-switch>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  107. <span>类型</span>
  108. <!-- 学科+ 主题+ 未来+ -->
  109. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  110. style="display: flex; align-items: center">
  111. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  112. <el-radio :label="item.name">{{
  113. item.name
  114. }}</el-radio>
  115. </div>
  116. </el-radio-group>
  117. </div>
  118. <div class="both">
  119. <div class="choose">
  120. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  121. <span v-if="CourseTypeJson[item.id].length > 0 &&
  122. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  123. ? pTypeCheck.indexOf(item.id) != -1
  124. : true)
  125. ">{{ item.name }}:</span>
  126. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  127. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  128. ? pTypeCheck.indexOf(item.id) != -1
  129. : true)
  130. ">
  131. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  132. item1.name }}</el-checkbox>
  133. </el-checkbox-group>
  134. <!-- <div
  135. v-else
  136. style="font-size: 14px; margin-left: -8px"
  137. >
  138. 暂无
  139. </div> -->
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. <div class="right_first">
  145. <!-- <div class="ai_box">
  146. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  147. </div> -->
  148. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  149. <div style="width: 100%;">
  150. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  151. <img src="../../assets/icon/addPoster.png" alt="" />
  152. <div>点击添加封面</div>
  153. </div>
  154. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  155. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  156. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  157. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  158. <i class="el-icon-plus"></i>
  159. </el-upload>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="whiteBg" style="background:#fff;margin: 10px 0;">
  167. <div class="whiteBg" style="border-radius: 0">
  168. <div class="c_info_title">课程权限设置</div>
  169. <div class="wb_j_box">
  170. <div class="wb_j_box_content">
  171. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  172. (dialogVisibleClass = true),
  173. (classSearch = ''),
  174. (gradeId = ''),
  175. getClass()
  176. ">添加班级</button>
  177. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  178. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  179. getClassC(tc) }}</span>
  180. </div> -->
  181. <div class="wb_j_box_btn" @click="
  182. (dialogVisibleClass = true),
  183. (classSearch = ''),
  184. (gradeId = ''),
  185. getClass()
  186. ">
  187. <div class="wb_j_box_title">授课班级</div>
  188. <div class="wb_j_box_btn_c">
  189. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top" v-if="checkboxList2.length" popper-class="text_tooltip2">
  190. <div class="wb_j_box_span">{{getListClassC(checkboxList2)}}</div>
  191. </el-tooltip>
  192. <div v-else class="wb_j_box_span">请选择授课班级</div>
  193. <div class="wb_j_box_arrow"></div>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="wb_j_box_content">
  198. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  199. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  200. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  201. checkBoolean
  202. ? checkboxList3
  203. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  204. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  205. </div> -->
  206. <div class="wb_j_box_btn" @click="openMember">
  207. <div class="wb_j_box_title">协同人员</div>
  208. <div class="wb_j_box_btn_c">
  209. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top" v-if="checkboxList3.length" popper-class="text_tooltip2">
  210. <div class="wb_j_box_span">{{getListMan2(checkboxList3)}}</div>
  211. </el-tooltip>
  212. <div v-else class="wb_j_box_span">请选择协同人员</div>
  213. <div class="wb_j_box_arrow"></div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  220. <div class="c_info_title">课程简要描述</div>
  221. <div style="width: 95%; padding: 0 0px 0 20px">
  222. <div style="width: 55%">
  223. <textarea rows="6" class="binfo_input binfo_textarea" cols v-model="courseText"></textarea>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  228. <div class="c_info_title">目标管理</div>
  229. <div style="margin: 0 auto;padding:0 20px">
  230. <div style="
  231. width: 95%;
  232. min-height: 200px;
  233. border: 1px solid #CAD1DC;
  234. border-radius: 4px;
  235. position: relative;
  236. ">
  237. <div class="e_add_top">
  238. <div class="e_add_title">
  239. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()"
  240. v-if="evalua">清除</button>
  241. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">添加</button>
  242. <!-- <span>当前使用目标管理</span>
  243. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  244. <img
  245. src="../../assets/line.png"
  246. class="cru_line"
  247. style="
  248. width: 125px;
  249. height: 20px;
  250. bottom: -10px;
  251. left: 155px;
  252. "
  253. /> -->
  254. </div>
  255. <div style="
  256. display: flex;
  257. flex-direction: row;
  258. align-items: center;
  259. ">
  260. <!-- <el-button
  261. type="primary"
  262. size="small"
  263. @click="dialogVisiblemb = true"
  264. >添加目标管理</el-button
  265. >
  266. <el-button
  267. type="primary"
  268. size="small"
  269. @click="deleteEva()"
  270. >清除内容</el-button
  271. > -->
  272. <!-- <div class="e_add_delete" @click="deleteEva()">
  273. <img src="../../assets/icon/delete.png" alt="" />
  274. </div> -->
  275. </div>
  276. </div>
  277. <div v-if="evalua == ''">
  278. <div class="noneBox">
  279. <img src="../../assets/icon/new/eva_none.png" />
  280. <span>请添加目标管理</span>
  281. </div>
  282. </div>
  283. <div class="e_add_content" v-else>
  284. <div class="e_add_list_pbox">
  285. <div class="e_add_list_pbox_title">
  286. <span class="type_title">切换模式</span>
  287. <div class="type_content">
  288. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  289. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  290. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  291. </div>
  292. </div>
  293. <div class="e_add_list_pbox_content">
  294. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  295. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  296. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  297. v-if="typeMode == 3">
  298. </SeeBoard>
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. </div>
  304. </div>
  305. </div>
  306. <div class="info_btnBox3">
  307. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  308. goTo(
  309. '/course?userid=' +
  310. userid +
  311. '&oid=' +
  312. oid +
  313. '&org=' +
  314. org +
  315. '&role=' +
  316. role
  317. )
  318. ">
  319. 返回课程
  320. </button>
  321. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  322. {{ steps == 4 ? "返回课程" : "上一步" }}
  323. </button>
  324. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  325. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  326. {{ steps == 3 ? "确认上传" : "下一步" }}
  327. </button>
  328. </div>
  329. </div>
  330. <div class="rightBox" v-if="this.steps == 2"
  331. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  332. <div class="basic_box"
  333. style="padding: 20px 30px 0px !important; box-sizing: border-box;height: calc(100% - 80px);overflow: auto;background:#fff">
  334. <!-- <div
  335. style="
  336. color: #b8b8b8;
  337. background: #fff;
  338. width: 26%;
  339. height: 40px;
  340. border-radius: 15px;
  341. padding-left: 20px;
  342. line-height: 40px;
  343. font-size: 17px;
  344. box-shadow: 0px 1px 2px 2px #e0e0e0;
  345. "
  346. >-->
  347. <div class="right_title" style="border: none; margin: 0; padding: 0">
  348. 请选择合适的课程模板
  349. </div>
  350. <div class="wordbox">
  351. <div class="wordTeacher" @click="checkTemplate2()">
  352. <div class="wordPic">
  353. <img src="../../assets/icon/new/template_none.png" alt />
  354. </div>
  355. <div style="
  356. margin-top: 10px;
  357. line-height: 19px;
  358. overflow: hidden;
  359. text-overflow: ellipsis;
  360. white-space: nowrap;
  361. padding: 0 20px;
  362. ">
  363. 空白模板
  364. </div>
  365. </div>
  366. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  367. <div class="wordPic">
  368. <img src="../../assets/icon/new/template.png" alt />
  369. </div>
  370. <div style="
  371. margin-top: 10px;
  372. line-height: 19px;
  373. overflow: hidden;
  374. text-overflow: ellipsis;
  375. white-space: nowrap;
  376. padding: 0 20px;
  377. ">
  378. {{ aa.title }}
  379. </div>
  380. </div>
  381. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  382. <div class="wordPic">
  383. <img src="../../assets/icon/new/template.png" alt />
  384. </div>
  385. <div style="
  386. margin-top: 10px;
  387. line-height: 19px;
  388. overflow: hidden;
  389. text-overflow: ellipsis;
  390. white-space: nowrap;
  391. padding: 0 20px;
  392. ">
  393. 简易模板
  394. </div>
  395. </div>
  396. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  397. <div class="wordPic">
  398. <img src="../../assets/icon/new/template.png" alt />
  399. </div>
  400. <div style="
  401. margin-top: 10px;
  402. line-height: 19px;
  403. overflow: hidden;
  404. text-overflow: ellipsis;
  405. white-space: nowrap;
  406. padding: 0 20px;
  407. ">
  408. 智能粘贴模式
  409. </div>
  410. </div>
  411. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  412. <div class="wordPic">
  413. <img src="../../assets/icon/wordMub.png" alt />
  414. </div>
  415. <div style="
  416. margin-top: 10px;
  417. line-height: 19px;
  418. overflow: hidden;
  419. text-overflow: ellipsis;
  420. white-space: nowrap;
  421. padding: 0 20px;
  422. ">
  423. 未来小学课程设计
  424. </div>
  425. </div> -->
  426. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  427. <div class="wordPic">
  428. <img src="../../assets/icon/wordMub.png" alt />
  429. </div>
  430. <div style="
  431. margin-top: 10px;
  432. line-height: 19px;
  433. overflow: hidden;
  434. text-overflow: ellipsis;
  435. white-space: nowrap;
  436. padding: 0 20px;
  437. ">
  438. 我的课程
  439. </div>
  440. </div> -->
  441. </div>
  442. </div>
  443. <div class="info_btnBox3" style="position: absolute;bottom: 0;">
  444. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  445. goTo(
  446. '/course?userid=' +
  447. userid +
  448. '&oid=' +
  449. oid +
  450. '&org=' +
  451. org +
  452. '&role=' +
  453. role
  454. )
  455. ">
  456. 返回课程
  457. </button>
  458. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  459. {{ steps == 4 ? "返回课程" : "上一步" }}
  460. </button>
  461. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  462. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  463. {{ steps == 3 ? "确认上传" : "下一步" }}
  464. </button>
  465. </div>
  466. </div>
  467. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR"
  468. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  469. <div class="rb_c_box">
  470. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  471. <div class="stepsBottom">
  472. <!-- <div class="navTop">辅助导航</div> -->
  473. <div class="navBottom">
  474. <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  475. <div class="nt_taskBox" style="width: 100%;">
  476. <div class="nt_taskTitle"
  477. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  478. unitIndex + 1 }}</div>
  479. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  480. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  481. <span>{{ unitJson[unitIndex].dyName }}</span>
  482. </el-tooltip>
  483. </div>
  484. </div>
  485. </div>
  486. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  487. .taskJson" :key="tIndex">
  488. <div @click="goToTask(tIndex)" class="navTask" :class="{
  489. isNavTask:
  490. isClickColor > 0 && isClickColor == tIndex + 1,
  491. isNavOpen:t.toolOpen
  492. }">
  493. <div class="nt_taskBox">
  494. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  495. <div class="nt_taskName">
  496. <el-tooltip effect="light" :content="t.task" placement="top">
  497. <span>{{ t.task }}</span>
  498. </el-tooltip>
  499. </div>
  500. </div>
  501. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  502. 1
  503. ">
  504. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  505. @click.stop="taskMove(1, tIndex)"></div>
  506. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  507. @click.stop="taskMove(2, tIndex)"></div>
  508. </div>
  509. </div>
  510. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  511. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2" @click="jumpGj(tIndex,toolIndex2)">
  512. <div
  513. class="gjCss"
  514. :class="{isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}`}"
  515. >
  516. <div>工具{{ toolIndex2 + 1 }}:</div>
  517. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  518. </div>
  519. </div>
  520. </div>
  521. </div>
  522. </div>
  523. </div>
  524. </div>
  525. <div class="rb_c_box_right">
  526. <!-- <div class="rb_c_box_btn">
  527. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  528. </div> -->
  529. <div class="basic_box" ref="unitBox">
  530. <div style="
  531. display: flex;
  532. flex-direction: row;
  533. align-items: center;
  534. position: sticky;
  535. top: 0;
  536. z-index: 99;
  537. width: 100%;
  538. padding: 0 20px 0 20px;
  539. box-sizing: border-box;
  540. background: #fff;
  541. border-radius: 8px;
  542. ">
  543. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  544. <div class="cru_selectBox"
  545. :style="{ maxWidth: isPasteTask ? 'calc(100% - 175px)' : 'calc(100% - 40px)' }">
  546. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  547. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  548. <!-- item.dyName ? item.dyName : -->
  549. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  550. unitJson[unitJson.length - 1].easy == 6
  551. ">{{
  552. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  553. }}</span>
  554. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  555. </div>
  556. <div class="cru_line" :style="{
  557. left: offsetLetfPx + 'px',
  558. }"></div>
  559. </div>
  560. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  561. !(unitJson[unitJson.length - 1].easy == 6)
  562. ">
  563. <img src="../../assets/icon/new/addStage.png" alt />
  564. </div>
  565. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  566. <button class="c_pub_button_add" @click="openStageBox" v-show="false"
  567. style="margin: 0 0 0 auto;">阶段顺序</button>
  568. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3 && isPasteTask"
  569. style="margin: 0 0 0 auto;">智能粘贴</button>
  570. </div>
  571. <div style="margin: 0 0 10px 0; padding: 0;"
  572. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  573. <div class="chapter_box">
  574. <div class="chapter_contentbox">
  575. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  576. <div class="cc_input">
  577. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  578. v-model="unitJson[unitIndex].dyName" />
  579. </div>
  580. <div class="remove" v-if="unitJson.length > 1 &&
  581. !(unitJson[unitJson.length - 1].easy == 4) &&
  582. !(unitJson[unitJson.length - 1].easy == 6)
  583. " @click="deleteUnit(unitIndex)"></div>
  584. </div>
  585. </div>
  586. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  587. margin: 50px 0px 10px;
  588. font-size: 1.5em;
  589. font-weight: 700;
  590. color: #0f7eff;
  591. ">
  592. 添加任务
  593. </div> -->
  594. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  595. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  596. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  597. <div style="background: #fff;border-radius: 5px;">
  598. <!-- padding: 20px; -->
  599. <div v-if="unitJson[unitIndex].easy != 1">
  600. <div :style="{
  601. marginBottom:
  602. unitJson[unitIndex].easy == 3 ||
  603. (unitJson[unitIndex].easy == 5 &&
  604. itemTask.taskType == 1)
  605. ? '75px'
  606. : '0',
  607. }">
  608. <div style="
  609. display: flex;
  610. margin: 0px 0 20px;
  611. flex-direction: row;
  612. justify-content: flex-start;
  613. align-items: center;
  614. ">
  615. <div class="lineTitle">任务{{itemTaskIndex+1}}概述</div>
  616. </div>
  617. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  618. flex-direction: row;
  619. justify-content: flex-start;
  620. align-items: center;
  621. margin:0;
  622. ">
  623. <!-- <div class="cc_title">
  624. 任务{{ itemTaskIndex + 1 }}
  625. </div> -->
  626. <div class="cc_input">
  627. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  628. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  629. itemTaskIndex
  630. ].task
  631. " />
  632. </div>
  633. <div class="remove" v-if="item.taskJson.length > 1 &&
  634. (!unitJson[unitIndex].easy ||
  635. unitJson[unitIndex].easy == 6)
  636. " @click="deleteTask(itemTaskIndex)"></div>
  637. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2"
  638. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  639. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  640. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  641. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  642. </div>
  643. </div>
  644. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  645. display: flex;
  646. margin: 20px 0;
  647. flex-direction: row;
  648. justify-content: flex-start;
  649. align-items: center;
  650. ">
  651. <div class="lineTitle">任务描述</div>
  652. </div> -->
  653. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="margin-top: 20px;">
  654. <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  655. itemTaskIndex
  656. ].taskDetail
  657. " @change="change"></editor-bar>
  658. <!-- <textarea
  659. rows="6"
  660. class="binfo_input"
  661. placeholder="请输入任务描述"
  662. cols
  663. style="width: 70.5% !important; height: 120px"
  664. v-model="
  665. unitJson[unitIndex].chapterInfo[0].taskJson[
  666. itemTaskIndex
  667. ].taskDetail
  668. "
  669. ></textarea>-->
  670. </div>
  671. </div>
  672. </div>
  673. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  674. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  675. ">
  676. <div style="
  677. display: flex;
  678. flex-direction: row;
  679. justify-content: space-between;
  680. align-items: center;
  681. " :style="{ margin: !itemTask.isFoldchapter ? '20px 0' : '20px 0 10px' }">
  682. <div class="lineTitle">学习内容</div>
  683. <div v-if="!itemTask.isFoldchapter" class="show_taskD show" @click="foldC(itemTaskIndex)"><img
  684. src="../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  685. <div v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  686. src="../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  687. <!-- <div class="line"></div> -->
  688. </div>
  689. <div v-if="!itemTask.isFoldchapter">
  690. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  691. itemTask.chapterData.length == 0
  692. "><img src="../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  693. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  694. <div @dragstart="dragStart(item1, index1,index)"
  695. @dragover.prevent="dragOver(index1)"
  696. @dragend="dragEnd()"
  697. draggable class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  698. @click="
  699. getChapterData(
  700. $event,
  701. unitIndex,
  702. index,
  703. index1,
  704. item1.type
  705. )
  706. ">
  707. <div
  708. class="chapter_upload_drag"
  709. ></div>
  710. <div class="chapter_upload_o" style="
  711. position: relative;
  712. display: flex;
  713. align-items: center;
  714. ">
  715. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  716. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  717. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  718. </div>
  719. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  720. </div>
  721. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  722. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  723. </div>
  724. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  725. </div>
  726. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  727. </div>
  728. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  729. </div>
  730. </div>
  731. <div class="chapter_upload_n">
  732. <input readonly="true" v-if="item1.type == 2 ||
  733. item1.type == 3 ||
  734. item1.type == 12 ||
  735. item1.type == 13 ||
  736. item1.type == 7
  737. " :placeholder="item1.name" @click="
  738. updataVideoT(
  739. $event,
  740. unitIndex,
  741. itemTaskIndex,
  742. index1
  743. )
  744. " style="
  745. border: none;
  746. outline: none;
  747. width: 80%;
  748. minwidth: 215px;
  749. z-index: 99;
  750. font-size: 14px;
  751. white-space: nowrap;
  752. overflow: hidden;
  753. text-overflow: ellipsis;
  754. " />
  755. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  756. border: none;
  757. outline: none;
  758. width: 80%;
  759. white-space: nowrap;
  760. overflow: hidden;
  761. text-overflow: ellipsis;
  762. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  763. <input :placeholder="item1.title ? item1.title : '链接'
  764. " v-if="item1.type == 8" style="
  765. border: none;
  766. outline: none;
  767. width: 80%;
  768. white-space: nowrap;
  769. overflow: hidden;
  770. text-overflow: ellipsis;
  771. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  772. <input :placeholder="item1.title ? item1.title : '链接'
  773. " v-if="item1.type == 14" style="
  774. border: none;
  775. outline: none;
  776. width: 80%;
  777. white-space: nowrap;
  778. overflow: hidden;
  779. text-overflow: ellipsis;
  780. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  781. </div>
  782. <div class="chapter_upload_ic">
  783. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  784. </div>
  785. <div class="chapter_upload_ud" style="z-index: 99">
  786. <div class="chapter_upload_up" @click="
  787. upCd(
  788. $event,
  789. unitIndex,
  790. index,
  791. itemTaskIndex,
  792. index1
  793. )
  794. "></div>
  795. <div class="chapter_upload_down" @click="
  796. downCd(
  797. $event,
  798. unitIndex,
  799. index,
  800. itemTaskIndex,
  801. index1
  802. )
  803. "></div>
  804. </div>
  805. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  806. item1.type == 3 ||
  807. item1.type == 12 ||
  808. item1.type == 13 ||
  809. item1.type == 7
  810. " @click.stop="
  811. updataVideoT(
  812. $event,
  813. unitIndex,
  814. itemTaskIndex,
  815. index1
  816. )
  817. ">
  818. <div></div>
  819. </div>
  820. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  821. @click="selectAttText(itemTaskIndex, index1)">
  822. <div></div>
  823. </div>
  824. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  825. @click="selectLine(itemTaskIndex, index1)">
  826. <div></div>
  827. </div>
  828. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  829. @click="openUpdateSource(itemTaskIndex, index1)">
  830. <div></div>
  831. </div>
  832. <div class="chapter_upload_ic_r" @click.stop="
  833. deleteChapterData(
  834. $event,
  835. unitIndex,
  836. index,
  837. index1,
  838. itemTaskIndex
  839. )
  840. ">
  841. <div></div>
  842. </div>
  843. </div>
  844. </div>
  845. </div>
  846. </div>
  847. </div>
  848. <div class="add_info_box" v-if="!itemTask.isFoldchapter">
  849. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  850. 添加文件
  851. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  852. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  853. " />
  854. </button>
  855. <!-- <button class="info_btn" @click="addImg($event)">
  856. 添加视频
  857. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  858. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  859. " />
  860. </button>
  861. <button class="info_btn" @click="addImg($event)">
  862. 添加文档
  863. <input type="file"
  864. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  865. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  866. " />
  867. </button> -->
  868. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  869. 添加图文
  870. </button>
  871. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  872. 添加链接
  873. </button>
  874. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  875. 嵌入代码
  876. </button>
  877. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  878. 添加资源
  879. </button>
  880. <!-- <button class="info_btn" @click="addImg($event)">
  881. 其他附件
  882. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  883. " />
  884. </button> -->
  885. </div>
  886. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  887. itemTaskIndex
  888. ].proVisible
  889. " class="mask">
  890. <div class="progressBox">
  891. <!-- <div id="closePro" class="closeCss">
  892. <img src="../../../assets/icon/close.png" alt />
  893. </div> -->
  894. <div class="lbox">
  895. <img src="../../assets/loading.gif" />上传中,请稍后
  896. </div>
  897. <div style="margin-bottom: 10px">
  898. <span>{{
  899. unitJson[unitIndex].chapterInfo[0].taskJson[
  900. itemTaskIndex
  901. ].isFinishSize
  902. }}M</span>
  903. /
  904. <span>{{
  905. unitJson[unitIndex].chapterInfo[0].taskJson[
  906. itemTaskIndex
  907. ].isAllSize
  908. }}M</span>
  909. </div>
  910. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  911. itemTaskIndex
  912. ].progress
  913. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  914. itemTaskIndex
  915. ].progress
  916. : 0
  917. " style="width: 80%"></el-progress>
  918. </div>
  919. </div>
  920. </div>
  921. <div v-if="unitJson[unitIndex].easy == 1 ||
  922. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  923. ">
  924. <div>
  925. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  926. itemTask.chapterData.length == 0
  927. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  928. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  929. <div @dragstart="dragStart(item1, index1,index)"
  930. @dragover.prevent="dragOver(index1)"
  931. @dragend="dragEnd()"
  932. draggable class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  933. @click="
  934. getChapterData(
  935. $event,
  936. unitIndex,
  937. index,
  938. index1,
  939. item1.type
  940. )
  941. ">
  942. <div
  943. class="chapter_upload_drag"
  944. ></div>
  945. <div class="chapter_upload_t" style="width: 100%"></div>
  946. <div class="chapter_upload_o" style="
  947. position: relative;
  948. display: flex;
  949. align-items: center;
  950. ">
  951. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  952. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  953. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  954. </div>
  955. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  956. </div>
  957. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  958. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  959. </div>
  960. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  961. </div>
  962. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  963. </div>
  964. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  965. </div>
  966. </div>
  967. <div class="chapter_upload_n">
  968. <span style="
  969. font-size: 14px;
  970. color: rgb(109, 109, 109);
  971. height: 14px;
  972. line-height: 14px;
  973. " v-if="item1.type == 2 ||
  974. item1.type == 3 ||
  975. item1.type == 7
  976. ">{{ item1.text }}-</span>
  977. <input readonly="true" v-if="item1.type == 2 ||
  978. item1.type == 3 ||
  979. item1.type == 7
  980. " :placeholder="item1.name" @click="
  981. updataVideoT(
  982. $event,
  983. unitIndex,
  984. itemTaskIndex,
  985. index1
  986. )
  987. " style="
  988. border: none;
  989. outline: none;
  990. width: 80%;
  991. minwidth: 215px;
  992. z-index: 99;
  993. font-size: 14px;
  994. white-space: nowrap;
  995. overflow: hidden;
  996. text-overflow: ellipsis;
  997. " />
  998. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  999. border: none;
  1000. outline: none;
  1001. width: 80%;
  1002. white-space: nowrap;
  1003. overflow: hidden;
  1004. text-overflow: ellipsis;
  1005. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1006. <input :placeholder="item1.title ? item1.title : '链接'
  1007. " v-if="item1.type == 8 || item1.type == 14" style="
  1008. border: none;
  1009. outline: none;
  1010. width: 80%;
  1011. white-space: nowrap;
  1012. overflow: hidden;
  1013. text-overflow: ellipsis;
  1014. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1015. </div>
  1016. <div class="chapter_upload_ic">
  1017. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  1018. </div>
  1019. <div class="chapter_upload_ud" style="z-index: 99">
  1020. <div class="chapter_upload_up" @click="
  1021. upCd(
  1022. $event,
  1023. unitIndex,
  1024. index,
  1025. itemTaskIndex,
  1026. index1
  1027. )
  1028. "></div>
  1029. <div class="chapter_upload_down" @click="
  1030. downCd(
  1031. $event,
  1032. unitIndex,
  1033. index,
  1034. itemTaskIndex,
  1035. index1
  1036. )
  1037. "></div>
  1038. </div>
  1039. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  1040. item1.type == 3 ||
  1041. item1.type == 12 ||
  1042. item1.type == 13 ||
  1043. item1.type == 7
  1044. " @click.stop="
  1045. updataVideoT(
  1046. $event,
  1047. unitIndex,
  1048. itemTaskIndex,
  1049. index1
  1050. )
  1051. ">
  1052. <div></div>
  1053. </div>
  1054. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  1055. @click="selectAttText(itemTaskIndex, index1)">
  1056. <div></div>
  1057. </div>
  1058. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1059. @click="selectLine(itemTaskIndex, index1)">
  1060. <div></div>
  1061. </div>
  1062. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  1063. @click="openUpdateSource(itemTaskIndex, index1)">
  1064. <div></div>
  1065. </div>
  1066. <div class="chapter_upload_ic_r" @click.stop="
  1067. deleteChapterData(
  1068. $event,
  1069. unitIndex,
  1070. index,
  1071. index1,
  1072. itemTaskIndex
  1073. )
  1074. ">
  1075. <div></div>
  1076. </div>
  1077. </div>
  1078. </div>
  1079. </div>
  1080. </div>
  1081. </div>
  1082. <div class="add_info_box" style="margin: 10px 0 0">
  1083. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1084. <span style="color: red">*</span>
  1085. 教学设计
  1086. <input type="file"
  1087. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1088. style="display: none" v-if="inputShow" @change="
  1089. beforeUpload3(
  1090. $event,
  1091. unitIndex,
  1092. 3,
  1093. itemTaskIndex,
  1094. '教学设计'
  1095. )
  1096. " />
  1097. </button>
  1098. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1099. <span style="color: red">*</span>
  1100. 教学课件
  1101. <input type="file"
  1102. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1103. style="display: none" v-if="inputShow" @change="
  1104. beforeUpload3(
  1105. $event,
  1106. unitIndex,
  1107. 3,
  1108. itemTaskIndex,
  1109. '教学课件'
  1110. )
  1111. " />
  1112. </button>
  1113. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1114. 教学视频
  1115. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1116. style="display: none" v-if="inputShow" @change="
  1117. beforeUpload3(
  1118. $event,
  1119. unitIndex,
  1120. 2,
  1121. itemTaskIndex,
  1122. '教学视频'
  1123. )
  1124. " />
  1125. </button>
  1126. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1127. 教学音频
  1128. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1129. beforeUpload3(
  1130. $event,
  1131. unitIndex,
  1132. 2,
  1133. itemTaskIndex,
  1134. '教学音频'
  1135. )
  1136. " />
  1137. </button>
  1138. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1139. 学习单
  1140. <input type="file"
  1141. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1142. style="display: none" v-if="inputShow" @change="
  1143. beforeUpload3(
  1144. $event,
  1145. unitIndex,
  1146. 3,
  1147. itemTaskIndex,
  1148. '学习单'
  1149. )
  1150. " />
  1151. </button>
  1152. </div>
  1153. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1154. itemTaskIndex
  1155. ].proVisible
  1156. " class="mask">
  1157. <div class="progressBox">
  1158. <!-- <div id="closePro" class="closeCss">
  1159. <img src="../../../assets/icon/close.png" alt />
  1160. </div> -->
  1161. <div class="lbox">
  1162. <img src="../../assets/loading.gif" />上传中,请稍后
  1163. </div>
  1164. <div style="margin-bottom: 10px">
  1165. <span>{{
  1166. unitJson[unitIndex].chapterInfo[0].taskJson[
  1167. itemTaskIndex
  1168. ].isFinishSize
  1169. }}M</span>
  1170. /
  1171. <span>{{
  1172. unitJson[unitIndex].chapterInfo[0].taskJson[
  1173. itemTaskIndex
  1174. ].isAllSize
  1175. }}M</span>
  1176. </div>
  1177. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1178. itemTaskIndex
  1179. ].progress
  1180. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1181. itemTaskIndex
  1182. ].progress
  1183. : 0
  1184. " style="width: 80%"></el-progress>
  1185. </div>
  1186. </div>
  1187. </div>
  1188. </div>
  1189. <!-- padding: 20px; -->
  1190. <div style="background: #fff;border-radius: 5px;margin-top: 15px;">
  1191. <div v-if="unitJson[unitIndex].easy != 3 &&
  1192. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1193. " style="
  1194. flex-direction: row;
  1195. justify-content: flex-start;
  1196. align-items: center;
  1197. ">
  1198. <div style="
  1199. display: flex;
  1200. flex-direction: row;
  1201. align-items: center;
  1202. margin: 5px 0 20px;
  1203. ">
  1204. <div class="lineTitle">
  1205. {{
  1206. !unitJson[unitIndex].easy ||
  1207. unitJson[unitIndex].easy == 6 ||
  1208. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1209. ? "练习内容"
  1210. : "评价内容"
  1211. }}
  1212. </div>
  1213. <!-- <div class="line" style="width: 90%"></div> -->
  1214. </div>
  1215. </div>
  1216. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1217. " class="toolChoose">
  1218. <div class="tools">
  1219. <div class="leftTools" style="
  1220. width: 100%;
  1221. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1222. <div style="
  1223. display: flex;
  1224. flex-direction: row;
  1225. align-items: baseline;
  1226. flex-wrap: nowrap;
  1227. justify-content: flex-start;
  1228. position: relative;
  1229. ">
  1230. <div style="margin-right: 20px; font-weight: bold" :id="'gj'+itemTaskIndex + '' + toolIndex">
  1231. 步骤 {{ toolIndex + 1 }} :
  1232. </div>
  1233. <div class="chooseWho">
  1234. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1235. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = true), $forceUpdate()">
  1236. 互动类
  1237. </div>
  1238. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1239. " @click="(itemTool.toolType = 1), (itemTool.isFold3 = true), $forceUpdate()">
  1240. 思维类
  1241. </div>
  1242. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1243. " @click="(itemTool.toolType = 6), (itemTool.isFold3 = true), $forceUpdate()">
  1244. 协作类
  1245. </div>
  1246. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1247. " @click="(itemTool.toolType = 2), (itemTool.isFold3 = true), $forceUpdate()">
  1248. 测评类
  1249. </div>
  1250. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1251. " @click="(itemTool.toolType = 7), (itemTool.isFold3 = true), $forceUpdate()">
  1252. 评价类
  1253. </div>
  1254. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1255. " @click="(itemTool.toolType = 3), (itemTool.isFold3 = true), $forceUpdate()">
  1256. 编程类
  1257. </div>
  1258. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1259. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = true), $forceUpdate()">
  1260. 学科类
  1261. </div>
  1262. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1263. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1264. 其他
  1265. </div> -->
  1266. </div>
  1267. <div v-if="itemTool.isFold3" class="show_toolD show"
  1268. @click="fold3(itemTaskIndex, toolIndex)"
  1269. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  1270. src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1271. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1272. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  1273. src="../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  1274. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1275. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
  1276. </div>
  1277. <div style="min-height: 163px" v-show="itemTool.isFold3">
  1278. <div class="toolSort" v-if="itemTool.toolType == 0">
  1279. <!-- <div class="tool">
  1280. <div
  1281. class="whiteBIcon"
  1282. @click="addTools(8, itemTaskIndex, toolIndex)"
  1283. >
  1284. <img src="../../assets/icon/secondToolList/library.png" alt />
  1285. <div style="margin: 5px 0">素材库</div>
  1286. </div>
  1287. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1288. <img
  1289. src="../../assets/icon/checkNo.png"
  1290. alt
  1291. v-if="itemTool.tool.indexOf(8) == -1"
  1292. />
  1293. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1294. alt /><span>已选择</span></div>
  1295. </div>
  1296. </div>-->
  1297. <!-- <div class="tool">
  1298. <div
  1299. class="whiteBIcon"
  1300. @click="addTools(17, itemTaskIndex, toolIndex)"
  1301. >
  1302. <img
  1303. src="../../assets/icon/secondToolList/library.png"
  1304. alt
  1305. />
  1306. <div style="margin: 5px 0">学习资料</div>
  1307. </div>
  1308. <div
  1309. class="check"
  1310. @click="addTools(17, itemTaskIndex, toolIndex)"
  1311. >
  1312. <img
  1313. src="../../assets/icon/checkNo.png"
  1314. alt
  1315. v-if="itemTool.tool.indexOf(17) == -1"
  1316. />
  1317. <img
  1318. src="../../assets/icon/checkedIs.png"
  1319. alt
  1320. v-else
  1321. />
  1322. </div>10
  1323. </div> -->
  1324. <div class="tool">
  1325. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  1326. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1327. <div style="margin: 5px 0">倒计时</div>
  1328. </div>
  1329. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1330. <img src="../../assets/icon/checkNo.png" alt
  1331. v-if="itemTool.tool.indexOf(10) == -1" />
  1332. <div class="checkDiv" v-else>
  1333. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1334. </div>
  1335. </div>
  1336. </div>
  1337. <div class="tool">
  1338. <div class="whiteBIcon" @click="addTools(65, itemTaskIndex, toolIndex)">
  1339. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  1340. <div style="margin: 5px 0">挑人</div>
  1341. </div>
  1342. <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1343. <img src="../../assets/icon/checkNo.png" alt
  1344. v-if="itemTool.tool.indexOf(65) == -1" />
  1345. <div class="checkDiv" v-else>
  1346. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1347. </div>
  1348. </div>
  1349. </div>
  1350. <!-- <div class="tool">
  1351. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1352. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1353. <div style="margin: 5px 0">学生分组</div>
  1354. </div>
  1355. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1356. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1357. <div class="checkDiv" v-else>
  1358. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1359. </div>
  1360. </div>
  1361. </div> -->
  1362. <!-- <div class="tool">
  1363. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1364. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1365. <div style="margin: 5px 0">交互视频</div>
  1366. </div>
  1367. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1368. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1369. <div class="checkDiv" v-else>
  1370. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1371. </div>
  1372. </div>
  1373. </div> -->
  1374. </div>
  1375. <div class="toolSort" v-if="itemTool.toolType == 1">
  1376. <div class="tool">
  1377. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  1378. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1379. <div style="margin: 5px 0">思维网格</div>
  1380. </div>
  1381. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1382. <img src="../../assets/icon/checkNo.png" alt
  1383. v-if="itemTool.tool.indexOf(7) == -1" />
  1384. <div class="checkDiv" v-else>
  1385. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1386. </div>
  1387. </div>
  1388. </div>
  1389. <div class="tool">
  1390. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1391. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1392. <div style="margin: 5px 0">电子白板</div>
  1393. </div>
  1394. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1395. <img src="../../assets/icon/checkNo.png" alt
  1396. v-if="itemTool.tool.indexOf(1) == -1" />
  1397. <div class="checkDiv" v-else>
  1398. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1399. </div>
  1400. </div>
  1401. </div>
  1402. <!-- <div class="tool">
  1403. <div
  1404. class="whiteBIcon"
  1405. @click="addTools(2, itemTaskIndex, toolIndex)"
  1406. >
  1407. <img
  1408. src="../../assets/icon/secondToolList/note.png"
  1409. alt
  1410. />
  1411. <div style="margin: 5px 0">便签</div>
  1412. </div>
  1413. <div
  1414. class="check"
  1415. @click="addTools(2, itemTaskIndex, toolIndex)"
  1416. >
  1417. <img
  1418. src="../../assets/icon/checkNo.png"
  1419. alt
  1420. v-if="itemTool.tool.indexOf(2) == -1"
  1421. />
  1422. <div class="checkDiv" v-else>
  1423. <img
  1424. src="../../assets/icon/checkedIs.png"
  1425. alt
  1426. /><span>已选择</span>
  1427. </div>
  1428. </div>
  1429. </div> -->
  1430. <!-- <div class="tool">
  1431. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1432. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1433. <div style="margin: 5px 0">协同文档</div>
  1434. </div>
  1435. <div
  1436. class="check"
  1437. @click="addTools(6, itemTaskIndex, toolIndex)"
  1438. >
  1439. <img
  1440. src="../../assets/icon/checkNo.png"
  1441. alt
  1442. v-if="itemTool.tool.indexOf(6) == -1"
  1443. />
  1444. <div class="checkDiv" v-else>
  1445. <img
  1446. src="../../assets/icon/checkedIs.png"
  1447. alt
  1448. /><span>已选择</span>
  1449. </div>
  1450. </div>
  1451. </div> -->
  1452. <div class="tool">
  1453. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1454. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1455. <div style="margin: 5px 0">文档</div>
  1456. </div>
  1457. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1458. <img src="../../assets/icon/checkNo.png" alt
  1459. v-if="itemTool.tool.indexOf(52) == -1" />
  1460. <div class="checkDiv" v-else>
  1461. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1462. </div>
  1463. </div>
  1464. </div>
  1465. <div class="tool">
  1466. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1467. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1468. <div style="margin: 5px 0">思维导图</div>
  1469. </div>
  1470. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1471. <img src="../../assets/icon/checkNo.png" alt
  1472. v-if="itemTool.tool.indexOf(3) == -1" />
  1473. <div class="checkDiv" v-else>
  1474. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1475. </div>
  1476. </div>
  1477. </div>
  1478. <div class="tool">
  1479. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1480. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1481. <div style="margin: 5px 0">表格</div>
  1482. </div>
  1483. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1484. <img src="../../assets/icon/checkNo.png" alt
  1485. v-if="itemTool.tool.indexOf(48) == -1" />
  1486. <div class="checkDiv" v-else>
  1487. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1488. </div>
  1489. </div>
  1490. </div>
  1491. </div>
  1492. <div class="toolSort" v-if="itemTool.toolType == 6">
  1493. <div class="tool">
  1494. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1495. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1496. <div style="margin: 5px 0">学生分组</div>
  1497. </div>
  1498. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1499. <img src="../../assets/icon/checkNo.png" alt
  1500. v-if="itemTool.tool.indexOf(49) == -1" />
  1501. <div class="checkDiv" v-else>
  1502. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1503. </div>
  1504. </div>
  1505. </div>
  1506. </div>
  1507. <div class="toolSort" v-if="itemTool.toolType == 2">
  1508. <!-- <div class="tool">
  1509. <div
  1510. class="whiteBIcon"
  1511. @click="addTools(5, itemTaskIndex, toolIndex)"
  1512. >
  1513. <img
  1514. src="../../assets/icon/thirdToolList/score.png"
  1515. alt
  1516. />
  1517. <div style="margin: 5px 0">量规评分</div>
  1518. </div>
  1519. <div
  1520. class="check"
  1521. @click="addTools(5, itemTaskIndex, toolIndex)"
  1522. >
  1523. <img
  1524. src="../../assets/icon/checkNo.png"
  1525. alt
  1526. v-if="itemTool.tool.indexOf(5) == -1"
  1527. />
  1528. <img
  1529. src="../../assets/icon/checkedIs.png"
  1530. alt
  1531. v-else
  1532. />
  1533. </div>
  1534. </div>-->
  1535. <div class="tool">
  1536. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1537. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1538. <div style="margin: 5px 0">问卷调查</div>
  1539. </div>
  1540. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1541. <img src="../../assets/icon/checkNo.png" alt
  1542. v-if="itemTool.tool.indexOf(4) == -1" />
  1543. <div class="checkDiv" v-else>
  1544. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1545. </div>
  1546. </div>
  1547. </div>
  1548. <div class="tool">
  1549. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1550. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1551. <div style="margin: 5px 0">选择题</div>
  1552. </div>
  1553. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1554. <img src="../../assets/icon/checkNo.png" alt
  1555. v-if="itemTool.tool.indexOf(45) == -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="openTools(itemTaskIndex, 15, toolIndex)">
  1563. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1564. <div style="margin: 5px 0">问答</div>
  1565. </div>
  1566. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1567. <img src="../../assets/icon/checkNo.png" alt
  1568. v-if="itemTool.tool.indexOf(15) == -1" />
  1569. <div class="checkDiv" v-else>
  1570. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1571. </div>
  1572. </div>
  1573. </div>
  1574. <div class="tool">
  1575. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1576. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1577. <div style="margin: 5px 0">作业提交</div>
  1578. </div>
  1579. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1580. <img src="../../assets/icon/checkNo.png" alt
  1581. v-if="itemTool.tool.indexOf(16) == -1" />
  1582. <div class="checkDiv" v-else>
  1583. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1584. </div>
  1585. </div>
  1586. </div>
  1587. <div class="tool">
  1588. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  1589. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1590. <div style="margin: 5px 0">批量上传</div>
  1591. </div>
  1592. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1593. <img src="../../assets/icon/checkNo.png" alt
  1594. v-if="itemTool.tool.indexOf(50) == -1" />
  1595. <div class="checkDiv" v-else>
  1596. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1597. </div>
  1598. </div>
  1599. </div>
  1600. <!-- <div class="tool">
  1601. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1602. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1603. <div style="margin: 5px 0">个人评价</div>
  1604. </div>
  1605. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1606. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1607. <div class="checkDiv" v-else>
  1608. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1609. </div>
  1610. </div>
  1611. </div> -->
  1612. <div class="tool">
  1613. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1614. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1615. <div style="margin: 5px 0">选择匹配</div>
  1616. </div>
  1617. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1618. <img src="../../assets/icon/checkNo.png" alt
  1619. v-if="itemTool.tool.indexOf(41) == -1" />
  1620. <div class="checkDiv" v-else>
  1621. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1622. </div>
  1623. </div>
  1624. </div>
  1625. <div class="tool">
  1626. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1627. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1628. <div style="margin: 5px 0">排序</div>
  1629. </div>
  1630. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1631. <img src="../../assets/icon/checkNo.png" alt
  1632. v-if="itemTool.tool.indexOf(47) == -1" />
  1633. <div class="checkDiv" v-else>
  1634. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1635. </div>
  1636. </div>
  1637. </div>
  1638. <!-- <div class="tool">
  1639. <div
  1640. class="whiteBIcon"
  1641. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1642. >
  1643. <img
  1644. src="../../assets/icon/thirdToolList/mp3.png"
  1645. alt
  1646. />
  1647. <div style="margin: 5px 0">上传音频</div>
  1648. </div>
  1649. <div
  1650. class="check"
  1651. @click="addTools(42, itemTaskIndex, toolIndex)"
  1652. >
  1653. <img
  1654. src="../../assets/icon/checkNo.png"
  1655. alt
  1656. v-if="itemTool.tool.indexOf(42) == -1"
  1657. />
  1658. <img
  1659. src="../../assets/icon/checkedIs.png"
  1660. alt
  1661. v-else
  1662. />
  1663. </div>
  1664. </div> -->
  1665. </div>
  1666. <div class="toolSort" v-if="itemTool.toolType == 3">
  1667. <div class="tool">
  1668. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1669. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1670. <div style="margin: 5px 0">训练平台</div>
  1671. </div>
  1672. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1673. <img src="../../assets/icon/checkNo.png" alt
  1674. v-if="itemTool.tool.indexOf(18) == -1" />
  1675. <div class="checkDiv" v-else>
  1676. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1677. </div>
  1678. </div>
  1679. </div>
  1680. <div class="tool">
  1681. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1682. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1683. <div style="margin: 5px 0">AIoT Blockly</div>
  1684. </div>
  1685. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1686. <img src="../../assets/icon/checkNo.png" alt
  1687. v-if="itemTool.tool.indexOf(21) == -1" />
  1688. <div class="checkDiv" v-else>
  1689. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1690. </div>
  1691. </div>
  1692. </div>
  1693. <!-- <div class="tool">
  1694. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1695. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1696. <div style="margin: 5px 0">AI体验</div>
  1697. </div>
  1698. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1699. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1700. <div class="checkDiv" v-else>
  1701. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1702. </div>
  1703. </div>
  1704. </div> -->
  1705. <div class="tool">
  1706. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1707. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1708. <div style="margin: 5px 0">AI Python</div>
  1709. </div>
  1710. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1711. <img src="../../assets/icon/checkNo.png" alt
  1712. v-if="itemTool.tool.indexOf(23) == -1" />
  1713. <div class="checkDiv" v-else>
  1714. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1715. </div>
  1716. </div>
  1717. </div>
  1718. <div class="tool">
  1719. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1720. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1721. <div style="margin: 5px 0">AI Blockly</div>
  1722. </div>
  1723. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1724. <img src="../../assets/icon/checkNo.png" alt
  1725. v-if="itemTool.tool.indexOf(24) == -1" />
  1726. <div class="checkDiv" v-else>
  1727. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1728. </div>
  1729. </div>
  1730. </div>
  1731. <div class="tool">
  1732. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1733. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1734. <div style="margin: 5px 0">源码编辑</div>
  1735. </div>
  1736. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1737. <img src="../../assets/icon/checkNo.png" alt
  1738. v-if="itemTool.tool.indexOf(32) == -1" />
  1739. <div class="checkDiv" v-else>
  1740. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1741. </div>
  1742. </div>
  1743. </div>
  1744. <div class="tool">
  1745. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  1746. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1747. <div style="margin: 5px 0">CocoPi</div>
  1748. </div>
  1749. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1750. <img src="../../assets/icon/checkNo.png" alt
  1751. v-if="itemTool.tool.indexOf(57) == -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="addTools(63, itemTaskIndex, toolIndex)">
  1759. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1760. <div style="margin: 5px 0">海龟编程</div>
  1761. </div>
  1762. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1763. <img src="../../assets/icon/checkNo.png" alt
  1764. v-if="itemTool.tool.indexOf(63) == -1" />
  1765. <div class="checkDiv" v-else>
  1766. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1767. </div>
  1768. </div>
  1769. </div>
  1770. </div>
  1771. <div class="toolSort" v-if="itemTool.toolType == 7">
  1772. <div class="tool">
  1773. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1774. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1775. <div style="margin: 5px 0">个人评价</div>
  1776. </div>
  1777. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1778. <img src="../../assets/icon/checkNo.png" alt
  1779. v-if="itemTool.tool.indexOf(40) == -1" />
  1780. <div class="checkDiv" v-else>
  1781. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1782. </div>
  1783. </div>
  1784. </div>
  1785. </div>
  1786. <div class="toolSort" v-if="itemTool.toolType == 5">
  1787. <div class="tool">
  1788. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1789. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1790. <div style="margin: 5px 0">翻译</div>
  1791. </div>
  1792. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1793. <img src="../../assets/icon/checkNo.png" alt
  1794. v-if="itemTool.tool.indexOf(28) == -1" />
  1795. <div class="checkDiv" v-else>
  1796. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1797. </div>
  1798. </div>
  1799. </div>
  1800. <div class="tool">
  1801. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1802. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1803. <div style="margin: 5px 0">数字画板</div>
  1804. </div>
  1805. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1806. <img src="../../assets/icon/checkNo.png" alt
  1807. v-if="itemTool.tool.indexOf(31) == -1" />
  1808. <div class="checkDiv" v-else>
  1809. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1810. </div>
  1811. </div>
  1812. </div>
  1813. <div class="tool">
  1814. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1815. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1816. <div style="margin: 5px 0">GeoGebra</div>
  1817. </div>
  1818. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1819. <img src="../../assets/icon/checkNo.png" alt
  1820. v-if="itemTool.tool.indexOf(39) == -1" />
  1821. <div class="checkDiv" v-else>
  1822. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. <div class="tool">
  1827. <div class="whiteBIcon" @click="addTools(66, itemTaskIndex, toolIndex)">
  1828. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  1829. <div style="margin: 5px 0">公式编辑</div>
  1830. </div>
  1831. <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  1832. <img src="../../assets/icon/checkNo.png" alt
  1833. v-if="itemTool.tool.indexOf(66) == -1" />
  1834. <div class="checkDiv" v-else>
  1835. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1836. </div>
  1837. </div>
  1838. </div>
  1839. <!-- <div class="tool">
  1840. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  1841. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  1842. <div style="margin: 5px 0">分子结构</div>
  1843. </div>
  1844. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  1845. <img src="../../assets/icon/checkNo.png" alt
  1846. v-if="itemTool.tool.indexOf(67) == -1" />
  1847. <div class="checkDiv" v-else>
  1848. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1849. </div>
  1850. </div>
  1851. </div> -->
  1852. <div class="tool">
  1853. <div class="whiteBIcon" @click="addTools(68, itemTaskIndex, toolIndex)">
  1854. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  1855. <div style="margin: 5px 0">时间轴</div>
  1856. </div>
  1857. <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  1858. <img src="../../assets/icon/checkNo.png" alt
  1859. v-if="itemTool.tool.indexOf(68) == -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 class="tool">
  1866. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1867. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1868. <div style="margin: 5px 0">翻译</div>
  1869. </div>
  1870. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1871. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1872. <div class="checkDiv" v-else>
  1873. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1874. </div>
  1875. </div>
  1876. </div>
  1877. <div class="tool">
  1878. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1879. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  1880. <div style="margin: 5px 0">魔盒识字</div>
  1881. </div>
  1882. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1883. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1884. <div class="checkDiv" v-else>
  1885. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1886. </div>
  1887. </div>
  1888. </div>
  1889. <div class="tool">
  1890. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1891. <img src="../../assets/icon/secondToolList/24game.png" alt />
  1892. <div style="margin: 5px 0">24点</div>
  1893. </div>
  1894. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1895. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1896. <div class="checkDiv" v-else>
  1897. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1898. </div>
  1899. </div>
  1900. </div>
  1901. <div class="tool">
  1902. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1903. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1904. <div style="margin: 5px 0">数学画板</div>
  1905. </div>
  1906. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1907. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1908. <div class="checkDiv" v-else>
  1909. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1910. </div>
  1911. </div>
  1912. </div>
  1913. <div class="tool">
  1914. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1915. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1916. <div style="margin: 5px 0">GeoGebra</div>
  1917. </div>
  1918. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1919. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1920. <div class="checkDiv" v-else>
  1921. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1922. </div>
  1923. </div>
  1924. </div>
  1925. <div class="tool">
  1926. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  1927. <img src="../../assets/icon/fourthToolList/car.png" alt />
  1928. <div style="margin: 5px 0">模拟驾驶</div>
  1929. </div>
  1930. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  1931. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  1932. <div class="checkDiv" v-else>
  1933. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1934. </div>
  1935. </div>
  1936. </div>
  1937. <div class="tool">
  1938. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  1939. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  1940. <div style="margin: 5px 0">路径搜索</div>
  1941. </div>
  1942. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  1943. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  1944. <div class="checkDiv" v-else>
  1945. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1946. </div>
  1947. </div>
  1948. </div>
  1949. <div class="tool">
  1950. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  1951. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  1952. <div style="margin: 5px 0">深度学习</div>
  1953. </div>
  1954. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  1955. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  1956. <div class="checkDiv" v-else>
  1957. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1958. </div>
  1959. </div>
  1960. </div>
  1961. <div class="tool">
  1962. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  1963. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  1964. <div style="margin: 5px 0">全历史</div>
  1965. </div>
  1966. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  1967. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  1968. <div class="checkDiv" v-else>
  1969. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1970. </div>
  1971. </div>
  1972. </div>
  1973. </div>
  1974. <div class="toolSort" v-if="itemTool.toolType == 4">
  1975. <div class="tool">
  1976. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1977. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  1978. <div style="margin: 5px 0">课程设计</div>
  1979. </div>
  1980. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1981. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1982. <div class="checkDiv" v-else>
  1983. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1984. </div>
  1985. </div>
  1986. </div>
  1987. <div class="tool">
  1988. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1989. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  1990. <div style="margin: 5px 0">目标管理</div>
  1991. </div>
  1992. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1993. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1994. <div class="checkDiv" v-else>
  1995. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1996. </div>
  1997. </div>
  1998. </div> -->
  1999. <!-- <div class="tool">
  2000. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2001. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  2002. <div style="margin: 5px 0">汉字宫</div>
  2003. </div>
  2004. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2005. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2006. <div class="checkDiv" v-else>
  2007. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2008. </div>
  2009. </div>
  2010. </div> -->
  2011. </div>
  2012. </div>
  2013. <div v-show="itemTool.isFold3">
  2014. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  2015. style="margin: 0 0 20px 0; width: 100% !important"
  2016. v-model="itemTool.toolDetail"></textarea>
  2017. </div>
  2018. </div>
  2019. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2020. <div class="addToolImg">
  2021. <img src="../../assets/icon/add.png" alt />
  2022. </div>
  2023. <div>添加工具</div>
  2024. </div>
  2025. </div>
  2026. </div>
  2027. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2028. unitJson[unitIndex].easy == 4
  2029. " class="toolChoose" style="padding: 0 0 40px;">
  2030. <div class="tools">
  2031. <div class="leftTools" style="width: 100%"
  2032. v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2033. <div>
  2034. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2035. style="margin: 0 0 20px 0; width: 100% !important"
  2036. v-model="itemTool.toolDetail"></textarea>
  2037. </div>
  2038. <div style="
  2039. display: flex;
  2040. flex-direction: row;
  2041. align-items: baseline;
  2042. flex-wrap: nowrap;
  2043. justify-content: flex-start;
  2044. position: relative;
  2045. ">
  2046. <div style="margin-right: 20px; font-weight: bold" :id="'gj'+itemTaskIndex + '' + toolIndex">
  2047. 步骤 {{ toolIndex + 1 }} :
  2048. </div>
  2049. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2050. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  2051. </div>
  2052. <div style="min-height: 163px">
  2053. <div class="toolSort">
  2054. <div class="tool">
  2055. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2056. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2057. <div style="margin: 5px 0">电子白板</div>
  2058. </div>
  2059. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2060. <img src="../../assets/icon/checkNo.png" alt
  2061. v-if="itemTool.tool.indexOf(1) == -1" />
  2062. <div class="checkDiv" v-else>
  2063. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2064. </div>
  2065. </div>
  2066. </div>
  2067. <div class="tool">
  2068. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2069. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2070. <div style="margin: 5px 0">文档</div>
  2071. </div>
  2072. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2073. <img src="../../assets/icon/checkNo.png" alt
  2074. v-if="itemTool.tool.indexOf(52) == -1" />
  2075. <div class="checkDiv" v-else>
  2076. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2077. </div>
  2078. </div>
  2079. </div>
  2080. <div class="tool">
  2081. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2082. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2083. <div style="margin: 5px 0">思维导图</div>
  2084. </div>
  2085. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2086. <img src="../../assets/icon/checkNo.png" alt
  2087. v-if="itemTool.tool.indexOf(3) == -1" />
  2088. <div class="checkDiv" v-else>
  2089. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2090. </div>
  2091. </div>
  2092. </div>
  2093. <div class="tool">
  2094. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2095. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2096. <div style="margin: 5px 0">问卷调查</div>
  2097. </div>
  2098. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2099. <img src="../../assets/icon/checkNo.png" alt
  2100. v-if="itemTool.tool.indexOf(4) == -1" />
  2101. <div class="checkDiv" v-else>
  2102. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2103. </div>
  2104. </div>
  2105. </div>
  2106. <div class="tool">
  2107. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2108. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  2109. <div style="margin: 5px 0">选择题</div>
  2110. </div>
  2111. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2112. <img src="../../assets/icon/checkNo.png" alt
  2113. v-if="itemTool.tool.indexOf(45) == -1" />
  2114. <div class="checkDiv" v-else>
  2115. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. <div class="tool">
  2120. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2121. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  2122. <div style="margin: 5px 0">问答</div>
  2123. </div>
  2124. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2125. <img src="../../assets/icon/checkNo.png" alt
  2126. v-if="itemTool.tool.indexOf(15) == -1" />
  2127. <div class="checkDiv" v-else>
  2128. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2129. </div>
  2130. </div>
  2131. </div>
  2132. <div class="tool">
  2133. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2134. <img src="../../assets/icon/thirdToolList/work.png" alt />
  2135. <div style="margin: 5px 0">作业提交</div>
  2136. </div>
  2137. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2138. <img src="../../assets/icon/checkNo.png" alt
  2139. v-if="itemTool.tool.indexOf(16) == -1" />
  2140. <div class="checkDiv" v-else>
  2141. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2142. </div>
  2143. </div>
  2144. </div>
  2145. <div class="tool">
  2146. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2147. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2148. <div style="margin: 5px 0">批量上传</div>
  2149. </div>
  2150. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2151. <img src="../../assets/icon/checkNo.png" alt
  2152. v-if="itemTool.tool.indexOf(50) == -1" />
  2153. <div class="checkDiv" v-else>
  2154. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2155. </div>
  2156. </div>
  2157. </div>
  2158. <div class="tool">
  2159. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2160. <img src="../../assets/icon/thirdToolList/select.png" alt />
  2161. <div style="margin: 5px 0">选择匹配</div>
  2162. </div>
  2163. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2164. <img src="../../assets/icon/checkNo.png" alt
  2165. v-if="itemTool.tool.indexOf(41) == -1" />
  2166. <div class="checkDiv" v-else>
  2167. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2168. </div>
  2169. </div>
  2170. </div>
  2171. <div class="tool">
  2172. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2173. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  2174. <div style="margin: 5px 0">排序</div>
  2175. </div>
  2176. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2177. <img src="../../assets/icon/checkNo.png" alt
  2178. v-if="itemTool.tool.indexOf(47) == -1" />
  2179. <div class="checkDiv" v-else>
  2180. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2181. </div>
  2182. </div>
  2183. </div>
  2184. <div class="tool">
  2185. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2186. <img src="../../assets/icon/fourthToolList/table.png" alt />
  2187. <div style="margin: 5px 0">表格</div>
  2188. </div>
  2189. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2190. <img src="../../assets/icon/checkNo.png" alt
  2191. v-if="itemTool.tool.indexOf(48) == -1" />
  2192. <div class="checkDiv" v-else>
  2193. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2194. </div>
  2195. </div>
  2196. </div>
  2197. </div>
  2198. </div>
  2199. </div>
  2200. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2201. <div class="addToolImg">
  2202. <img src="../../assets/icon/add.png" alt />
  2203. </div>
  2204. <div>添加工具</div>
  2205. </div>
  2206. </div>
  2207. </div>
  2208. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2209. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2210. " class="toolChoose" style="padding: 0 0 40px;">
  2211. <div class="tools">
  2212. <div class="leftTools" style="
  2213. width: 100%;
  2214. padding: 0 0 15px 0;
  2215. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2216. <div style="min-height: 163px">
  2217. <div class="toolSort">
  2218. <div class="tool">
  2219. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2220. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2221. <div style="margin: 5px 0">批量上传</div>
  2222. </div>
  2223. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2224. <img src="../../assets/icon/checkNo.png" alt
  2225. v-if="itemTool.tool.indexOf(50) == -1" />
  2226. <div class="checkDiv" v-else>
  2227. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2228. </div>
  2229. </div>
  2230. </div>
  2231. </div>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. </div>
  2236. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2237. <div class="elist_title">
  2238. <div style="
  2239. display: flex;
  2240. flex-direction: row;
  2241. align-items: center;
  2242. margin: 20px 0;
  2243. ">
  2244. <div class="lineTitle">评价设置</div>
  2245. <!-- <div class="line" style="width: 90%"></div> -->
  2246. </div>
  2247. </div>
  2248. <div class="mbCss">
  2249. <div class="pjCss">
  2250. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2251. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2252. <span>评价名称:</span>
  2253. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2254. <span>评星等级:</span>
  2255. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  2256. disabled></el-rate>
  2257. <div class="remove" @click="
  2258. deletEList(unitIndex, itemTaskIndex, eIndex)
  2259. "></div>
  2260. <div class="elist_inptu_text">
  2261. <span>评价描述:</span>
  2262. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2263. </div>
  2264. <div class="elist_inptu_text" v-if="evalua">
  2265. <span>目标:</span>
  2266. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2267. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2268. @change="forceUpdate()">
  2269. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2270. :value="e.name">
  2271. </el-option>
  2272. </el-select> -->
  2273. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2274. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2275. </div>
  2276. </div>
  2277. </div>
  2278. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  2279. style="margin: 35px 35px 0 0">
  2280. <div class="addToolImg">
  2281. <img src="../../assets/icon/add.png" alt />
  2282. </div>
  2283. <div>添加</div>
  2284. </div>
  2285. </div>
  2286. <div v-if="evalua" style="
  2287. border: 1px solid #e5e5e5;
  2288. width: 55%;
  2289. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2290. " class="evaCss">
  2291. <!-- <div class="e_add_top">
  2292. <div class="e_add_title">
  2293. <span>当前使用目标管理</span>
  2294. <span>{{ eTitle }}</span>
  2295. <img src="../../assets/line.png" class="cru_line" style="
  2296. width: 125px;
  2297. height: 20px;
  2298. bottom: -10px;
  2299. left: 155px;
  2300. " />
  2301. </div>
  2302. </div> -->
  2303. <div class="e_add_content" style="width: 100%">
  2304. <div class="e_add_list_pbox" style="width: 100%">
  2305. <div class="e_add_list_pbox_title">
  2306. <span class="type_title">切换模式</span>
  2307. <div class="type_content">
  2308. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  2309. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  2310. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  2311. </div>
  2312. </div>
  2313. <div class="e_add_list_pbox_content">
  2314. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2315. " v-if="typeMode == 1"></Mind>
  2316. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2317. </Sunburst>
  2318. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2319. v-if="typeMode == 3"></SeeBoard>
  2320. </div>
  2321. </div>
  2322. </div>
  2323. </div>
  2324. </div>
  2325. </div>
  2326. <div class="funBlock" style="padding: 0">
  2327. <div class="fold" @click="fold(itemTaskIndex, $event)">
  2328. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  2329. </div>
  2330. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  2331. </div>
  2332. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2333. <div>展开</div>
  2334. <div class="arrow">
  2335. <img src="../../assets/icon/expand.png" alt />
  2336. </div>
  2337. </div> -->
  2338. </div>
  2339. </div>
  2340. </div>
  2341. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2342. <!-- <div>
  2343. <img src="../../../assets/icon/new/addStage.png" alt />
  2344. <span>添加任务</span>
  2345. </div> -->
  2346. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2347. 添加任务
  2348. </button>
  2349. </div>
  2350. </div>
  2351. <div class="info_btnBox3">
  2352. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2353. goTo(
  2354. '/course?userid=' +
  2355. userid +
  2356. '&oid=' +
  2357. oid +
  2358. '&org=' +
  2359. org +
  2360. '&role=' +
  2361. role
  2362. )
  2363. ">
  2364. 返回课程
  2365. </button>
  2366. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps"
  2367. style="background:#dbdbdb">
  2368. {{ steps == 4 ? "返回课程" : "上一步" }}
  2369. </button>
  2370. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2371. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2372. {{ steps == 3 ? "确认上传" : "下一步" }}
  2373. </button>
  2374. </div>
  2375. </div>
  2376. </div>
  2377. </div>
  2378. </div>
  2379. <div style="
  2380. width: calc(100% - 20px);
  2381. background: rgb(255, 255, 255);
  2382. border-radius: 10px;
  2383. " v-if="this.steps == 4">
  2384. <div class="basic_box_success">
  2385. <div class="right_img">
  2386. <img src="../../assets/icon/right.png" alt />
  2387. </div>
  2388. <div style="font-weight: bold">成功</div>
  2389. <!-- <div>您的课程编号</div>
  2390. <div class="number">{{ number }}</div>-->
  2391. <!-- <div class="success_button">
  2392. <div class="look_course" @click="isNoFinsh">
  2393. 邀请老师协同编辑
  2394. </div>
  2395. <div class="attend_others" @click="goCourse">预览课程</div>
  2396. </div> -->
  2397. </div>
  2398. </div>
  2399. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  2400. @mouseleave="btnDisplay(false)" v-if="false">
  2401. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  2402. goTo(
  2403. '/course?userid=' +
  2404. userid +
  2405. '&oid=' +
  2406. oid +
  2407. '&org=' +
  2408. org +
  2409. '&role=' +
  2410. role
  2411. )
  2412. ">
  2413. 返回课程
  2414. </button>
  2415. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  2416. @click="lastSteps">
  2417. {{ steps == 4 ? "返回课程" : "上一步" }}
  2418. </button>
  2419. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
  2420. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2421. {{ steps == 3 ? "确认上传" : "下一步" }}
  2422. </button>
  2423. </div>
  2424. </div>
  2425. </div>
  2426. </div>
  2427. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2428. class="dialog_diy2 customWidth">
  2429. <div>请复制该链接邀请协同编辑</div>
  2430. <div>http://www.boomyon.com/index-zhang.com</div>
  2431. <span slot="footer" class="dialog-footer">
  2432. <el-button type="primary">复制链接分享</el-button>
  2433. <el-button @click="dialogVisible = false">取消</el-button>
  2434. </span>
  2435. </el-dialog>
  2436. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2437. :before-close="handleClose" class="dialog_diy2 customWidth">
  2438. <el-form>
  2439. <el-form-item label="文档标题">
  2440. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2441. </el-form-item>
  2442. <div>文档简介</div>
  2443. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2444. </el-form>
  2445. <span slot="footer" class="dialog-footer">
  2446. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2447. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2448. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2449. </span>
  2450. </el-dialog>
  2451. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2452. :before-close="handleClose" class="dialog_diy">
  2453. <el-form>
  2454. <el-form-item label="文档标题">
  2455. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2456. </el-form-item>
  2457. <div>文档内容</div>
  2458. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2459. </el-form>
  2460. <span slot="footer" class="dialog-footer">
  2461. <el-button @click="clearChoose">取 消</el-button>
  2462. <el-button type="primary" @click="wordNext()">确定</el-button>
  2463. </span>
  2464. </el-dialog>
  2465. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2466. :before-close="handleClose" class="dialog_diy">
  2467. <el-form>
  2468. <el-form-item label="文本标题">
  2469. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  2470. placeholder="请输入文本标题..."></el-input>
  2471. </el-form-item>
  2472. <!-- <div>富文本内容</div> -->
  2473. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2474. </el-form>
  2475. <span slot="footer" class="dialog-footer">
  2476. <el-button @click="clearAttText">取 消</el-button>
  2477. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2478. </span>
  2479. </el-dialog>
  2480. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2481. :before-close="handleClose" class="dialog_diy lineCss">
  2482. <el-form>
  2483. <el-form-item label="标题" :label-width="formLabelWidth">
  2484. <span>
  2485. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2486. </span>
  2487. </el-form-item>
  2488. <el-form-item label="链接" :label-width="formLabelWidth">
  2489. <span>
  2490. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2491. </span>
  2492. </el-form-item>
  2493. </el-form>
  2494. <span slot="footer" class="dialog-footer">
  2495. <el-button @click="clearLine">取 消</el-button>
  2496. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2497. </span>
  2498. </el-dialog>
  2499. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  2500. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  2501. <div>
  2502. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  2503. </div>
  2504. <span slot="footer" class="dialog-footer">
  2505. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2506. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  2507. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  2508. </span>
  2509. </el-dialog>
  2510. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2511. :before-close="handleClose" class="addNewPP customWidth">
  2512. <div class="people">
  2513. <div class="people_top">
  2514. <div class="people_nav">选择成员</div>
  2515. <div class="people_top_right">
  2516. <div class="people_search">
  2517. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2518. <div class="search_img" @click="searchStudent">
  2519. <img src="../../assets/icon/search.png" alt />
  2520. </div>
  2521. </div>
  2522. </div>
  2523. </div>
  2524. <el-checkbox-group v-model="checkboxList" class="people_name">
  2525. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2526. "暂无学生可选" }}</el-checkbox>
  2527. </el-checkbox-group>
  2528. </div>
  2529. <span slot="footer" class="dialog-footer">
  2530. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2531. <el-button type="primary" @click="isAddPP">确定</el-button>
  2532. </span>
  2533. </el-dialog>
  2534. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  2535. :before-close="handleClose" class="addNewPP2">
  2536. <div class="check_classBox">
  2537. <div class="check_class_right">
  2538. <div class="check_class" :class="{activeX:gradeId == ''}" @click="gradeId = '',getClass()">
  2539. 全部
  2540. </div>
  2541. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  2542. <div class="check_class" :class="{activeX:gradeId == item.id}" @click="gradeId = item.id,getClass()">
  2543. {{ item.name }}
  2544. </div>
  2545. </el-tooltip>
  2546. </div>
  2547. <div class="check_class_left">
  2548. <div class="check_class_left_title">选择班级</div>
  2549. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange"
  2550. v-if="grade2.length">
  2551. <div v-for="item in grade2" :key="item.id" class="class_item">
  2552. <el-checkbox :label="item.id">
  2553. {{ item.name }}
  2554. </el-checkbox>
  2555. </div>
  2556. </el-checkbox-group>
  2557. <div v-if="!grade2.length">暂无数据</div>
  2558. </div>
  2559. </div>
  2560. <span slot="footer" class="dialog-footer">
  2561. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2562. <el-button type="primary" @click="isAddClass">确定</el-button>
  2563. </span>
  2564. </el-dialog>
  2565. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2566. :before-close="handleClose" class="addNewPP customWidth">
  2567. <div class="people">
  2568. <div class="people_top">
  2569. <div class="people_top_right">
  2570. <div class="people_search">
  2571. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2572. <div class="search_img" @click="getTeacher">
  2573. <img src="../../assets/icon/search.png" alt />
  2574. </div>
  2575. </div>
  2576. </div>
  2577. <div class="people_nav">选择成员</div>
  2578. </div>
  2579. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2580. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2581. <div class="t_j_box">
  2582. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2583. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2584. </el-tooltip>
  2585. <el-tooltip placement="top" :content="item.username">
  2586. <span>{{ item.username }}</span>
  2587. </el-tooltip>
  2588. <el-tooltip placement="top" :content="item.school">
  2589. <span>{{ item.school }}</span>
  2590. </el-tooltip>
  2591. </div>
  2592. </el-checkbox>
  2593. </el-checkbox-group>
  2594. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2595. </div>
  2596. <span slot="footer" class="dialog-footer">
  2597. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2598. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2599. </span>
  2600. </el-dialog>
  2601. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2602. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  2603. <div style="height:100%">
  2604. <div class="a_add_title" style="
  2605. display: flex;
  2606. flex-direction: row;
  2607. align-items: center;
  2608. justify-content: center;
  2609. ">
  2610. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  2611. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2612. </div>
  2613. <div class="a_addBox" style="height:calc(100% - 50px)">
  2614. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  2615. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2616. <div class="a_add_checkType">
  2617. <span :class="{
  2618. active:
  2619. askJson.askJson[index1].type == '1' ||
  2620. !askJson.askJson[index1].type,
  2621. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2622. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2623. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2624. </div>
  2625. <div class="a_add_head">
  2626. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  2627. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2628. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2629. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  2630. </div>
  2631. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  2632. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  2633. </div>
  2634. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  2635. </div>
  2636. <div class="a_add_head_div">
  2637. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2638. </el-button>
  2639. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  2640. </div>
  2641. </div>
  2642. <div class="a_add_body">
  2643. <div class="a_add_input" style="flex-direction: column;">
  2644. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2645. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  2646. <div style="margin-right: 10px">
  2647. 选项{{ checkIndex + 1 }}
  2648. </div>
  2649. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2650. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  2651. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  2652. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  2653. </div>
  2654. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  2655. </div>
  2656. <div class="a_add_body_div">
  2657. <el-button type="primary" size="small"
  2658. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  2659. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  2660. v-if="askJson.askJson[index1].askItem != 1">删除
  2661. </el-button>
  2662. </div>
  2663. </div>
  2664. </div>
  2665. <!-- <div class="a_add_body_div">
  2666. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2667. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2668. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2669. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2670. </el-button>
  2671. </div> -->
  2672. </div>
  2673. </div>
  2674. </div>
  2675. </div>
  2676. <span slot="footer" class="dialog-footer">
  2677. <el-button @click="closePan(4)">取 消</el-button>
  2678. <el-button type="primary" @click="addAsk">确 定</el-button>
  2679. </span>
  2680. </el-dialog>
  2681. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2682. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  2683. <div style="height:100%">
  2684. <!-- <div class="a_add_title" style="
  2685. display: flex;
  2686. flex-direction: row;
  2687. align-items: center;
  2688. justify-content: center;
  2689. ">
  2690. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2691. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2692. </div> -->
  2693. <div class="a_addBox" style="height:100%">
  2694. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2695. <!-- 请输入题目内容 -->
  2696. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  2697. v-if="isPasteChoice">智能粘贴</button>
  2698. </div>
  2699. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2700. <div class="a_add_checkType">
  2701. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2702. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2703. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2704. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2705. </div>
  2706. <div class="a_add_head">
  2707. <div class="timuUpImg">
  2708. <div style="display: flex;align-items: center;">
  2709. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2710. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2711. placeholder="请输入题目">
  2712. </el-input> -->
  2713. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2714. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  2715. @change="() => { $forceUpdate() }"></textarea>
  2716. </div>
  2717. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  2718. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  2719. </div>
  2720. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  2721. </div>
  2722. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  2723. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2724. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2725. </div>
  2726. </div>
  2727. <div class="a_add_head_div">
  2728. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2729. </el-button>
  2730. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  2731. </div>
  2732. </div>
  2733. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2734. testJson.testJson[index1].timuList.length
  2735. ">
  2736. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2737. @click.stop="previewImg(timg.src)">
  2738. <img :src="timg.src" alt="" />
  2739. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2740. <img src="../../assets/icon/delete.png" alt="" />
  2741. </div>
  2742. </div>
  2743. </div>
  2744. <div class="a_add_body">
  2745. <div class="a_add_input a_add_input_choice">
  2746. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  2747. @change="() => { $forceUpdate() }">
  2748. <div class="radioBox">
  2749. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2750. .testItem" :key="checkIndex" :label="checkIndex">
  2751. <div style="margin-right: 10px">
  2752. 选项{{ checkIndex + 1 }}
  2753. </div>
  2754. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2755. testJson.testJson[index1].checkList[checkIndex]
  2756. .imgType &&
  2757. testJson.testJson[index1].checkList[checkIndex]
  2758. .imgType == 1
  2759. ">
  2760. <div class="inImg" @click.stop="
  2761. previewImg(
  2762. testJson.testJson[index1].checkList[checkIndex]
  2763. .src
  2764. )
  2765. ">
  2766. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2767. .src
  2768. " lazy />
  2769. <!-- <img :src="
  2770. testJson.testJson[index1].checkList[checkIndex]
  2771. .src
  2772. " alt="" /> -->
  2773. </div>
  2774. </div>
  2775. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2776. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2777. @change="() => { $forceUpdate() }"></textarea>
  2778. <div class="xzUpImg" @click.stop="addImg($event)">
  2779. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2780. <input type="file" accept="image/*" style="display: none"
  2781. @change="beforeUploadTi($event, index1, checkIndex)" />
  2782. </div>
  2783. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2784. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  2785. </div>
  2786. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  2787. </div>
  2788. <div class="a_add_body_div">
  2789. <el-button type="primary" size="small"
  2790. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  2791. <el-button type="primary" size="small"
  2792. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  2793. v-if="testJson.testJson[index1].testItem != 1">删除
  2794. </el-button>
  2795. </div>
  2796. </el-radio>
  2797. </div>
  2798. </el-radio-group>
  2799. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  2800. @change="() => { $forceUpdate() }">
  2801. <div class="radioBox">
  2802. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2803. .testItem" :key="checkIndex1" :label="checkIndex1">
  2804. <div style="margin-right: 10px">
  2805. 选项{{ checkIndex1 + 1 }}
  2806. </div>
  2807. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2808. testJson.testJson[index1].checkList[checkIndex1]
  2809. .imgType &&
  2810. testJson.testJson[index1].checkList[checkIndex1]
  2811. .imgType == 1
  2812. ">
  2813. <div class="inImg" @click.stop="
  2814. previewImg(
  2815. testJson.testJson[index1].checkList[checkIndex1]
  2816. .src
  2817. )
  2818. ">
  2819. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2820. .src
  2821. " lazy />
  2822. <!-- <img :src="
  2823. testJson.testJson[index1].checkList[checkIndex1]
  2824. .src
  2825. " alt="" /> -->
  2826. </div>
  2827. </div>
  2828. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2829. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2830. @change="() => { $forceUpdate() }"></textarea>
  2831. <div class="xzUpImg" @click.stop="addImg($event)">
  2832. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2833. <input type="file" accept="image/*" style="display: none"
  2834. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2835. </div>
  2836. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2837. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  2838. </div>
  2839. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  2840. </div>
  2841. <div class="a_add_body_div">
  2842. <el-button type="primary" size="small"
  2843. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  2844. <el-button type="primary" size="small"
  2845. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  2846. v-if="testJson.testJson[index1].testItem != 1">删除
  2847. </el-button>
  2848. </div>
  2849. </el-checkbox>
  2850. </div>
  2851. </el-checkbox-group>
  2852. </div>
  2853. <!-- <div class="a_add_body_div">
  2854. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2855. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2856. v-if="testJson.testJson[index1].testItem != 1">删除
  2857. </el-button>
  2858. </div> -->
  2859. </div>
  2860. </div>
  2861. </div>
  2862. </div>
  2863. <span slot="footer" class="dialog-footer">
  2864. <el-button @click="closePan(45)">取 消</el-button>
  2865. <el-button type="primary" @click="addTest">确 定</el-button>
  2866. </span>
  2867. </el-dialog>
  2868. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2869. :before-close="handleClose" class="dialog_diy addToolsDia">
  2870. <div class="toolChoose">
  2871. <div class="tools">
  2872. <div class="leftTools" style="
  2873. width: 100%;
  2874. padding: 0 0 15px 0;
  2875. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2876. <div style="
  2877. display: flex;
  2878. flex-direction: row;
  2879. align-items: baseline;
  2880. flex-wrap: nowrap;
  2881. justify-content: flex-start;
  2882. position: relative;
  2883. ">
  2884. <div class="chooseWho">
  2885. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2886. 互动类
  2887. </div>
  2888. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2889. 思维类
  2890. </div>
  2891. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2892. 评价类
  2893. </div>
  2894. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2895. 其他
  2896. </div>
  2897. </div>
  2898. </div>
  2899. <div style="min-height: 163px">
  2900. <div class="toolSort" v-if="chapToolsType == 0">
  2901. <div class="tool">
  2902. <div class="whiteBIcon" @click="chapAddTools(8)">
  2903. <img src="../../assets/icon/secondToolList/library.png" alt />
  2904. <div style="margin: 5px 0">素材库</div>
  2905. </div>
  2906. <div class="check" @click="chapAddTools(8)">
  2907. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2908. <div class="checkDiv" v-else>
  2909. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2910. </div>
  2911. </div>
  2912. </div>
  2913. </div>
  2914. <div class="toolSort" v-if="chapToolsType == 1">
  2915. <div class="tool">
  2916. <div class="whiteBIcon" @click="chapAddTools(7)">
  2917. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  2918. <div style="margin: 5px 0">思维网格</div>
  2919. </div>
  2920. <div class="check" @click="chapAddTools(7)">
  2921. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2922. <div class="checkDiv" v-else>
  2923. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2924. </div>
  2925. </div>
  2926. </div>
  2927. <div class="tool">
  2928. <div class="whiteBIcon" @click="chapAddTools(1)">
  2929. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2930. <div style="margin: 5px 0">电子白板</div>
  2931. </div>
  2932. <div class="check" @click="chapAddTools(1)">
  2933. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2934. <div class="checkDiv" v-else>
  2935. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2936. </div>
  2937. </div>
  2938. </div>
  2939. <div class="tool">
  2940. <div class="whiteBIcon" @click="chapAddTools(2)">
  2941. <img src="../../assets/icon/secondToolList/note.png" alt />
  2942. <div style="margin: 5px 0">便签</div>
  2943. </div>
  2944. <div class="check" @click="chapAddTools(2)">
  2945. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2946. <div class="checkDiv" v-else>
  2947. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2948. </div>
  2949. </div>
  2950. </div>
  2951. <div class="tool">
  2952. <div class="whiteBIcon" @click="chapAddTools(6)">
  2953. <img src="../../assets/icon/secondToolList/doc.png" alt />
  2954. <div style="margin: 5px 0">协同文档</div>
  2955. </div>
  2956. <div class="check" @click="chapAddTools(6)">
  2957. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2958. <div class="checkDiv" v-else>
  2959. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2960. </div>
  2961. </div>
  2962. </div>
  2963. <div class="tool">
  2964. <div class="whiteBIcon" @click="chapAddTools(3)">
  2965. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2966. <div style="margin: 5px 0">思维导图</div>
  2967. </div>
  2968. <div class="check" @click="chapAddTools(3)">
  2969. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2970. <div class="checkDiv" v-else>
  2971. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2972. </div>
  2973. </div>
  2974. </div>
  2975. <div class="tool">
  2976. <div class="whiteBIcon" @click="chapAddTools(31)">
  2977. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2978. <div style="margin: 5px 0">数学画板</div>
  2979. </div>
  2980. <div class="check" @click="chapAddTools(31)">
  2981. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2982. <div class="checkDiv" v-else>
  2983. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2984. </div>
  2985. </div>
  2986. </div>
  2987. </div>
  2988. <div class="toolSort" v-if="chapToolsType == 2">
  2989. <div class="tool">
  2990. <div class="whiteBIcon" @click="chapAddTools(5)">
  2991. <img src="../../assets/icon/thirdToolList/score.png" alt />
  2992. <div style="margin: 5px 0">量规评分</div>
  2993. </div>
  2994. <div class="check" @click="chapAddTools(5)">
  2995. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2996. <div class="checkDiv" v-else>
  2997. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div class="tool">
  3002. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  3003. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  3004. <div style="margin: 5px 0">问卷调查</div>
  3005. </div>
  3006. <div class="check" @click="chapAddTools(4)">
  3007. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  3008. <div class="checkDiv" v-else>
  3009. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3010. </div>
  3011. </div>
  3012. </div>
  3013. </div>
  3014. </div>
  3015. <div>
  3016. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  3017. v-model="itemTools.toolDetail" />
  3018. </div>
  3019. </div>
  3020. </div>
  3021. </div>
  3022. <span slot="footer" class="dialog-footer">
  3023. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3024. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3025. </span>
  3026. </el-dialog>
  3027. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3028. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  3029. <div>
  3030. <div class="a_add_title" style="
  3031. display: flex;
  3032. flex-direction: column;
  3033. align-items: flex-start;
  3034. justify-content: center;
  3035. ">
  3036. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3037. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  3038. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  3039. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  3040. </div>
  3041. </div>
  3042. <span slot="footer" class="dialog-footer">
  3043. <el-button @click="closePan(15)">取 消</el-button>
  3044. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3045. </span>
  3046. </el-dialog>
  3047. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3048. :before-close="handleClose" class="dialog_diy">
  3049. <div>
  3050. <div class="a_add_title" style="
  3051. display: flex;
  3052. flex-direction: column;
  3053. align-items: flex-start;
  3054. justify-content: center;
  3055. ">
  3056. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3057. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3058. </div>
  3059. </div>
  3060. <span slot="footer" class="dialog-footer">
  3061. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3062. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3063. </span>
  3064. </el-dialog>
  3065. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  3066. :before-close="handleClose" class="dialog_diy">
  3067. <div>
  3068. <div class="fileCss" style="padding-top: 20px">
  3069. <div>
  3070. <button class="info_btn" @click="addImg($event)">
  3071. 选择本地文件
  3072. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3073. </button>
  3074. <div class="spanName">选择本地文件</div>
  3075. </div>
  3076. <div>
  3077. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  3078. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3079. <img :src="cover[0].url" alt="" />
  3080. <div class="deletePic" @click="deleteSysPic">
  3081. <img src="../../assets/icon/delete.png" alt="" />
  3082. </div>
  3083. </div>
  3084. <div class="spanName">选择系统文件</div>
  3085. </div>
  3086. <div>
  3087. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  3088. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  3089. <img :src="cover[0].url" alt="" />
  3090. <div class="deletePic" @click="deleteSysPic">
  3091. <img src="../../assets/icon/delete.png" alt="" />
  3092. </div>
  3093. </div>
  3094. <div class="spanName">选择网络文件</div>
  3095. </div>
  3096. </div>
  3097. <!-- <div class="fileCss">
  3098. </div> -->
  3099. </div>
  3100. <span slot="footer" class="dialog-footer">
  3101. <el-button @click="choosePicVisible = false">取 消</el-button>
  3102. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3103. </span>
  3104. </el-dialog>
  3105. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3106. :before-close="handleClose" class="dialog_diy">
  3107. <div class="cru_selectBox" style="margin: 0">
  3108. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3109. 绘画
  3110. </div>
  3111. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3112. 科技
  3113. </div>
  3114. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3115. 人文
  3116. </div>
  3117. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3118. 艺术
  3119. </div>
  3120. </div>
  3121. <div class="sysPicBox">
  3122. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3123. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3124. </div>
  3125. </div>
  3126. </el-dialog>
  3127. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  3128. :before-close="handleClose" class="dialog_diy">
  3129. <div>
  3130. <div class="people_top_right" style="display: flex;align-items: center;">
  3131. <div style="position: relative; width: 100%;">
  3132. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  3133. @keyup.enter.native="resetImage()"></el-input>
  3134. <div class="search_img" @click="resetImage" style="right: 10px;">
  3135. <img src="../../assets/icon/search.png" alt />
  3136. </div>
  3137. </div>
  3138. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  3139. </div>
  3140. <div class="sysPicBox" v-loading="imageloading">
  3141. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  3142. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  3143. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  3144. </div>
  3145. </div>
  3146. </div>
  3147. </el-dialog>
  3148. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3149. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  3150. <div v-if="selectJson" style="height:100%">
  3151. <div class="select_box1" v-if="selectSteps == 1">
  3152. <div class="select_box1_img">
  3153. <div class="select_box1_title">
  3154. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  3155. </div>
  3156. <div class="select_box1_add_img">
  3157. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3158. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3159. <img src="../../assets/icon/addPoster.png" alt="" />
  3160. </div>
  3161. <div class="isSysPic" v-else>
  3162. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3163. <div class="deletePic" @click="deleteSelectPic">
  3164. <img src="../../assets/icon/delete.png" alt="" />
  3165. </div>
  3166. </div>
  3167. </div>
  3168. </div>
  3169. <div class="select_box1_select">
  3170. <div class="select_box1_title">
  3171. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  3172. </div>
  3173. <div class="select_box1_select_box">
  3174. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3175. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  3176. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3177. <div class="select_box1_select_box_add">
  3178. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3179. 添加</el-button>
  3180. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3181. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3182. </div>
  3183. </div>
  3184. </div>
  3185. </div>
  3186. <div v-if="selectSteps == 2" style="height:100%">
  3187. <div class="select_box2">
  3188. <div class="select_box2_title">设置每道题目的正确选项</div>
  3189. <div class="select_box2_box">
  3190. <div class="select_box2_img">
  3191. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3192. </div>
  3193. <div class="select_box2_answer">
  3194. <div class="select_answer_title">根据题目选择对应答案</div>
  3195. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3196. <span>{{ checkIndex + 1 }}、</span>
  3197. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3198. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3199. </el-option>
  3200. </el-select>
  3201. </div>
  3202. </div>
  3203. </div>
  3204. </div>
  3205. </div>
  3206. </div>
  3207. <span slot="footer" class="dialog-footer">
  3208. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3209. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3210. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3211. </span>
  3212. </el-dialog>
  3213. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3214. :before-close="handleClose" class="dialog_diy">
  3215. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3216. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3217. <div class="pjCss" style="width: 100%">
  3218. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3219. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3220. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3221. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  3222. <div class="remove" @click="deletRateList(eIndex)"></div>
  3223. <div style="width: 100%; display: flex">
  3224. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3225. <el-rate v-model="eItem.score" disabled></el-rate>
  3226. </div>
  3227. <div class="elist_inptu_text" style="align-items: flex-start">
  3228. <span style="min-width: 100px; text-align: right">描述:</span>
  3229. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  3230. </div>
  3231. </div>
  3232. </div>
  3233. <div class="addToolFun" @click="addRateList()">
  3234. <div class="addToolImg">
  3235. <img src="../../assets/icon/add.png" alt />
  3236. </div>
  3237. <div>添加</div>
  3238. </div>
  3239. </div>
  3240. </div>
  3241. <span slot="footer" class="dialog-footer">
  3242. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3243. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3244. </span>
  3245. </el-dialog>
  3246. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3247. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  3248. <div style="height: 100%;">
  3249. <div class="sentenBox" style="height: 100%;">
  3250. <div class="addSen" @click="addSt">添加题目</div>
  3251. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  3252. <div class="sentenTopBox">
  3253. <div class="sentenTop" :index="stIndex + 1">
  3254. <div>题目设置</div>
  3255. <div>
  3256. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  3257. </div>
  3258. <div @click="addSen(stIndex)">添加</div>
  3259. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3260. </div>
  3261. </div>
  3262. <div class="cardList">
  3263. <div v-if="st.addSentence.length > 0" class="cardBox">
  3264. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3265. @click="setRightAnswer(s, stIndex, sIndex)">
  3266. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3267. <div>{{ s }}</div>
  3268. </el-tooltip>
  3269. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3270. <img src="../../assets/icon/delete.png" alt="" />
  3271. </div>
  3272. </div>
  3273. </div>
  3274. <div class="card">
  3275. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  3276. </div>
  3277. </div>
  3278. <div class="rightCardBox">
  3279. <div>正确顺序</div>
  3280. <div class="rightCardList">
  3281. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3282. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3283. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3284. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3285. <div>{{ r }}</div>
  3286. </el-tooltip>
  3287. </div>
  3288. <div>{{ rIndex + 1 }}</div>
  3289. </div>
  3290. </div>
  3291. <div class="card" v-if="st.rightAnswer.length == 0">
  3292. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  3293. </div>
  3294. <div class="card" v-else>
  3295. <img src="../../assets/icon/conSentences/clickNo.png" alt="" />
  3296. </div>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. </div>
  3301. </div>
  3302. <span slot="footer" class="dialog-footer">
  3303. <el-button @click="closePan(47)">取 消</el-button>
  3304. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3305. </span>
  3306. </el-dialog>
  3307. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3308. :before-close="handleClose" class="dialog_diy">
  3309. <el-form>
  3310. <!-- <el-form-item label="文本标题">
  3311. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3312. </el-form-item> -->
  3313. <div>表格内容</div>
  3314. <Table v-model="tableJson.text" @change="change"></Table>
  3315. </el-form>
  3316. <span slot="footer" class="dialog-footer">
  3317. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3318. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3319. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3320. </span>
  3321. </el-dialog>
  3322. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3323. :before-close="handleClose" class="dialog_diy">
  3324. <el-form>
  3325. <!-- <el-form-item label="文本标题">
  3326. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3327. </el-form-item> -->
  3328. <div>文档内容</div>
  3329. <editor-bar v-model="wordJson.text"></editor-bar>
  3330. </el-form>
  3331. <span slot="footer" class="dialog-footer">
  3332. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3333. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3334. </span>
  3335. </el-dialog>
  3336. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3337. :before-close="handleClose" class="dialog_diy">
  3338. <div style="
  3339. width: 100%;
  3340. display: flex;
  3341. flex-direction: row;
  3342. flex-wrap: nowrap;
  3343. align-items: center;
  3344. justify-content: center;
  3345. ">
  3346. <div>班级:</div>
  3347. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3348. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3349. </el-option>
  3350. </el-select>
  3351. </div>
  3352. <span slot="footer" class="dialog-footer">
  3353. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3354. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3355. </span>
  3356. </el-dialog>
  3357. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3358. :before-close="handleClose" class="dialog_diy">
  3359. <div style="
  3360. width: 100%;
  3361. display: flex;
  3362. flex-direction: row;
  3363. flex-wrap: nowrap;
  3364. align-items: center;
  3365. justify-content: center;
  3366. ">
  3367. <div>随机码:</div>
  3368. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3369. </div>
  3370. <span slot="footer" class="dialog-footer">
  3371. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3372. <el-button type="primary" @click="addInvite">确定</el-button>
  3373. </span>
  3374. </el-dialog>
  3375. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  3376. :before-close="handleClose" class="dialog_diy">
  3377. <div>
  3378. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  3379. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3380. </div>
  3381. <span slot="footer" class="dialog-footer">
  3382. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3383. <el-button type="primary" @click="addPreTime">确定</el-button>
  3384. </span>
  3385. </el-dialog>
  3386. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3387. class="dialog_diy">
  3388. <div>
  3389. <div style="
  3390. width: 100%;
  3391. display: flex;
  3392. flex-direction: row;
  3393. flex-wrap: nowrap;
  3394. align-content: center;
  3395. align-items: center;
  3396. justify-content: space-between;
  3397. ">
  3398. <div style="
  3399. display: flex;
  3400. flex-flow: row nowrap;
  3401. align-items: flex-start;
  3402. width: 100%;
  3403. flex-direction: column;
  3404. flex-wrap: nowrap;
  3405. position: relative;
  3406. ">
  3407. <div class="e_box">
  3408. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3409. <div class="e_card_picture">
  3410. <img src="../../assets/e_picture.png" />
  3411. </div>
  3412. <div class="e_card_name">
  3413. <span>{{ item.title }}</span>
  3414. </div>
  3415. <div class="e_card_btn">
  3416. <span @click="checkEva(item.id, 2)">导入</span>
  3417. </div>
  3418. </div>
  3419. <div class="addEva" @click="openT">
  3420. <img src="../../assets/icon/addEva.png" alt="" />
  3421. </div>
  3422. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3423. 暂无数据
  3424. </div>
  3425. </div>
  3426. </div>
  3427. </div>
  3428. </div>
  3429. <span slot="footer" class="dialog-footer">
  3430. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3431. </span>
  3432. </el-dialog>
  3433. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3434. :before-close="handleClose" class="dialog_diy">
  3435. <div class="groupBox">
  3436. <div v-if="groupJson.group" class="groupContent">
  3437. <div class="groupTitle">请设置小组数量及名称</div>
  3438. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3439. <span class="groupn">第{{ index + 1 }}组名称:</span>
  3440. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3441. <div class="groupBtn">
  3442. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  3443. 添加</el-button>
  3444. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3445. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3446. </div>
  3447. </div>
  3448. </div>
  3449. <div class="groupContent">
  3450. <div class="groupTitle">请设置每组人数</div>
  3451. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3452. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3453. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  3454. @change="numberPan"></el-input>
  3455. </div>
  3456. </div>
  3457. <span slot="footer" class="dialog-footer">
  3458. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3459. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3460. </span>
  3461. </el-dialog>
  3462. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  3463. :before-close="handleClose" class="dialog_diy">
  3464. <div style="
  3465. width: 100%;
  3466. display: flex;
  3467. flex-direction: row;
  3468. flex-wrap: nowrap;
  3469. align-items: center;
  3470. justify-content: center;
  3471. ">
  3472. <div style="min-width: fit-content;">文件名称:</div>
  3473. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  3474. </div>
  3475. <span slot="footer" class="dialog-footer">
  3476. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  3477. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  3478. </span>
  3479. </el-dialog>
  3480. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3481. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3482. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3483. <div class="change_stageBox">
  3484. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3485. <div class="nt_taskBox">
  3486. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3487. <div class="nt_taskName">
  3488. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3489. <span>{{ t.dyName }}</span>
  3490. </el-tooltip>
  3491. </div>
  3492. </div>
  3493. <div class="moveBtn" v-if="unitJson3.length > 1">
  3494. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3495. </div>
  3496. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3497. </div>
  3498. </div>
  3499. </div>
  3500. <span slot="footer" class="dialog-footer">
  3501. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3502. <el-button type="primary" @click="updateChange">确定</el-button>
  3503. </span>
  3504. </el-dialog>
  3505. </div>
  3506. </template>
  3507. <script>
  3508. import "../../common/aws-sdk-2.235.1.min.js";
  3509. import { tools as toolsData } from "../../common/tools.js";
  3510. // import "../../common/aws-sdk-2.99.0.min.js";
  3511. import $ from "jquery";
  3512. import EditorBar from "../../components/tools/wangEnduit";
  3513. import Table from "../../components/tools/table";
  3514. import Mind from "../tools/jsmind2";
  3515. import Time from "../tools/time.vue";
  3516. import Sunburst from "../tools/sunburst";
  3517. import SeeBoard from "../tools/seeBoard";
  3518. import weilaiData from "./components/weilai.js";
  3519. import sourceDialog from "./teacherSource/dialog.vue";
  3520. import interVideo from "./interVideo/index.vue";
  3521. export default {
  3522. components: {
  3523. EditorBar,
  3524. Mind,
  3525. Time,
  3526. Sunburst,
  3527. SeeBoard,
  3528. Table,
  3529. sourceDialog,
  3530. interVideo,
  3531. },
  3532. data() {
  3533. return {
  3534. checkAll: false,
  3535. chooseType: 1,
  3536. checkedCities: [],
  3537. isIndeterminate: true,
  3538. isSysPic: false,
  3539. isSysPic2: false,
  3540. steps: 1,
  3541. nbOrder: 0,
  3542. courseId: "",
  3543. chapToolsType: 0,
  3544. chapTools: [
  3545. {
  3546. tools: [],
  3547. toolDetail: "",
  3548. },
  3549. ],
  3550. line: "",
  3551. lineTitle: "",
  3552. sysPic: [],
  3553. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3554. sentenceList2: [],
  3555. isPushTitleList: [],
  3556. lineCount: 0,
  3557. lineType: 0,
  3558. chapCount: 0,
  3559. courseName: "",
  3560. isTeacherSee: false,
  3561. courseText: "",
  3562. preTime: 0,
  3563. formLabelWidth: "100px",
  3564. choosePicVisible: false,
  3565. sysPicVisible: false,
  3566. sysPicVisible2: false,
  3567. uploadLoading1: false,
  3568. noneBtnImg: false,
  3569. updateBoolean2: false,
  3570. unitIndex: 0,
  3571. taskCount: 0,
  3572. dialogVisible: false,
  3573. dialogVisible1: false,
  3574. dialogVisible2: false,
  3575. dialogVisible3: false,
  3576. dialogVisible4: false,
  3577. dialogVisible5: false,
  3578. dialogVisible6: false,
  3579. dialogVisible7: false,
  3580. dialogVisible8: false,
  3581. dialogVisible9: false,
  3582. dialogVisibleClass: false,
  3583. dialogVisibleMember: false,
  3584. dialogVisibleMp3: false,
  3585. dialogVisibleSelect: false,
  3586. dialogVisibleSentence: false,
  3587. dialogVisibleRate: false,
  3588. dialogVisibleChoice: false,
  3589. dialogVisiblemb: false,
  3590. dialogVisibleInvite: false,
  3591. dialogVisibleSource: false,
  3592. dialogVisibleVideo: false,
  3593. dialogVisibleStageChange: false,
  3594. dialogVisibleupdataVideoT: false,
  3595. isClickColor: 1,
  3596. toolIndexType:"",
  3597. publicTool: 0,
  3598. searchPeople: "",
  3599. searchTN: "",
  3600. userid: this.$route.query.userid,
  3601. oid: this.$route.query.oid,
  3602. org: this.$route.query.org,
  3603. role: this.$route.query.role,
  3604. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3605. dialogVisibleTable: false,
  3606. dialogVisibleWord: false,
  3607. tableJson: { text: "" },
  3608. wordJson: { text: "" },
  3609. dialogVisibleMoreUpload: false,
  3610. dialogVisiblePreTime: false,
  3611. uploadJson: [],
  3612. classJuri: [],
  3613. gradeList: [],
  3614. cover: [], //课程封面
  3615. myWord: [],
  3616. evaJuri: [],
  3617. evalua: "",
  3618. targetArray: [],
  3619. eTitle: "",
  3620. eJson: {},
  3621. fid: "", //一级
  3622. sid: "", //二级
  3623. tid: "", //二级
  3624. typeMode: 1,
  3625. eJSONNum: 0,
  3626. data: {
  3627. meta: {
  3628. name: "example",
  3629. author: "dd@163.com",
  3630. version: "0.2",
  3631. },
  3632. format: "node_array",
  3633. data: [{ id: "root", isroot: true, topic: "" }],
  3634. },
  3635. askJson: {
  3636. askCount: 1,
  3637. askTitle: "",
  3638. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3639. },
  3640. askJson2: {},
  3641. testJson: {},
  3642. testJson2: {},
  3643. selectJson: {},
  3644. selectJson2: {},
  3645. rateJson: [],
  3646. unitJson2: [],
  3647. unitJson3: [],
  3648. unitJson: [
  3649. {
  3650. dyName: "", //单元标题
  3651. chapterInfo: [
  3652. {
  3653. isread: false,
  3654. chapterid: this.guid(),
  3655. title: "",
  3656. courseName: "",
  3657. taskJson: [
  3658. {
  3659. task: "",
  3660. taskDetail: "",
  3661. chapterData: [],
  3662. toolText: "",
  3663. toolChoose: [
  3664. {
  3665. tool: [],
  3666. toolDetail: "",
  3667. toolType: 0,
  3668. askCount: 1,
  3669. askTitle: "",
  3670. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3671. },
  3672. ],
  3673. isShowTools: false,
  3674. askCount: 1,
  3675. isFold: 0,
  3676. askTitle: "",
  3677. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3678. checkJson: [{ checkCount: [], checkPerent: [] }],
  3679. homeworkList: [],
  3680. },
  3681. ],
  3682. itemCount: 1,
  3683. fileList1: [],
  3684. video: [],
  3685. testData: [],
  3686. pData: [],
  3687. templateArray: [],
  3688. },
  3689. ],
  3690. },
  3691. ],
  3692. studentJuri: [],
  3693. teacherJuri: [],
  3694. checkboxList: [],
  3695. checkboxList2: [],
  3696. checkboxList3: [],
  3697. classSearch: "",
  3698. gradeId: "",
  3699. number: "",
  3700. tTitle: "",
  3701. tdetail: "",
  3702. templateC: {},
  3703. AttText: {},
  3704. AttTextType: 0,
  3705. AttTextIndex: 0,
  3706. cTemplate: "",
  3707. CourseType: [],
  3708. CourseType2: [],
  3709. CourseTypeJson: {},
  3710. courseTypeId: [],
  3711. courseTypeSon: [],
  3712. clearArray: [],
  3713. pTypeCheck: [],
  3714. pTypeCheckName: [],
  3715. loading: false,
  3716. toolType: 0,
  3717. inputShow: true,
  3718. inputShow2: true,
  3719. toolIndex: 0,
  3720. cidType: 0,
  3721. answerQ: "",
  3722. answerQ2: "",
  3723. grade: [],
  3724. grade2: [],
  3725. courseUserid: "",
  3726. timer: null,
  3727. timer2: null,
  3728. pasteTimer: null,
  3729. checkId: "",
  3730. isDelete: 1,
  3731. addindex: 0,
  3732. selectSteps: 1,
  3733. groupJson: {},
  3734. dialogVisibleGroup: false,
  3735. rightBoxHeight: 0,
  3736. ManAarray: [],
  3737. checkBoolean: false,
  3738. inviteCode: [],
  3739. inviteId: "",
  3740. icode: "",
  3741. easyArray: [2, 4],
  3742. sourceData: {},
  3743. updateSourcePan: false,
  3744. videoJson: {},
  3745. isBtnDisplay: false,
  3746. isStepDisplay: false,
  3747. isPasteStage: false,
  3748. isPasteTask: false,
  3749. isPasteChoice: false,
  3750. imageList: [],
  3751. imageloading: false,
  3752. searchImageValue: "",
  3753. ppage: 1,
  3754. toolsData: toolsData,
  3755. oldIndex:0,
  3756. oldData:null,
  3757. newIndex:0,
  3758. };
  3759. },
  3760. directives: {
  3761. autoHeight: {
  3762. update(el, binding) {
  3763. const { value } = binding
  3764. if (value && typeof value === 'number') {
  3765. el.style.height = `${value}px`
  3766. } else {
  3767. el.style.height = 'auto'
  3768. }
  3769. },
  3770. componentUpdated(el) {
  3771. el.style.height = `${el.scrollHeight + 5}px`
  3772. },
  3773. },
  3774. },
  3775. computed: {
  3776. // rightBoxHeight: function () {
  3777. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3778. // },
  3779. offsetLetfPx: function () {
  3780. //addnum可以直接在模板语法里面用,相当于data内的值
  3781. return (
  3782. $(".cru_select")[this.unitIndex] &&
  3783. $(".cru_select")[this.unitIndex].offsetLeft + 5
  3784. );
  3785. },
  3786. getMan2() {
  3787. return function (people) {
  3788. let _people = people;
  3789. let _people2 = "";
  3790. if (this.ManAarray.length) {
  3791. for (var i = 0; i < this.ManAarray.length; i++) {
  3792. if (this.ManAarray[i].userid == people) {
  3793. _people2 = this.ManAarray[i].name;
  3794. break;
  3795. }
  3796. }
  3797. }
  3798. if (people == this.courseUserid) {
  3799. return "";
  3800. }
  3801. return this.ManAarray.length ? _people2 : "";
  3802. };
  3803. },
  3804. getListMan2() {
  3805. return function (list) {
  3806. let _people2 = [];
  3807. if (this.ManAarray.length) {
  3808. for(var j = 0;j < list.length; j++){
  3809. let people = list[j];
  3810. for (var i = 0; i < this.ManAarray.length; i++) {
  3811. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  3812. _people2.push(this.ManAarray[i].name);
  3813. break;
  3814. }
  3815. }
  3816. }
  3817. }
  3818. return this.ManAarray.length ? _people2.join("、") : "";
  3819. };
  3820. },
  3821. isInvite() {
  3822. return function (cid) {
  3823. let array = [];
  3824. for (var i = 0; i < this.inviteCode.length; i++) {
  3825. array.push(this.inviteCode[i].cid);
  3826. }
  3827. return array.indexOf(cid) != -1;
  3828. };
  3829. },
  3830. getInviteCodeC() {
  3831. return function (cid) {
  3832. let array = [];
  3833. for (var i = 0; i < this.inviteCode.length; i++) {
  3834. array.push(this.inviteCode[i].cid);
  3835. }
  3836. return this.inviteCode[array.indexOf(cid)].ic;
  3837. };
  3838. },
  3839. getClassC() {
  3840. return function (c) {
  3841. let _c2 = "";
  3842. if (this.grade.length) {
  3843. for (var i = 0; i < this.grade.length; i++) {
  3844. if (this.grade[i].id == c) {
  3845. _c2 = this.grade[i].name;
  3846. break;
  3847. }
  3848. }
  3849. }
  3850. return this.grade.length ? _c2 : "";
  3851. };
  3852. },
  3853. getListClassC() {
  3854. return function (list) {
  3855. let _c2 = [];
  3856. if (this.grade.length) {
  3857. for(var j = 0; j < list.length; j++){
  3858. let c = list[j]
  3859. for (var i = 0; i < this.grade.length; i++) {
  3860. if (this.grade[i].id == c) {
  3861. _c2.push(this.grade[i].name);
  3862. break;
  3863. }
  3864. }
  3865. }
  3866. }
  3867. return this.grade.length ? _c2.join('、') : "";
  3868. };
  3869. },
  3870. },
  3871. watch: {
  3872. unitIndex(newValue, oldValue) {
  3873. if (this.isDelete == 2) {
  3874. this.isDelete = 1;
  3875. return;
  3876. }
  3877. if (this.cid != "") {
  3878. let _unitIndex = oldValue;
  3879. if (
  3880. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3881. JSON.stringify(this.unitJson[_unitIndex])
  3882. ) {
  3883. this.$refs.rightboxR.scrollTop = 0;
  3884. return;
  3885. }
  3886. let cPan = 1;
  3887. for (
  3888. var j = 0;
  3889. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3890. j++
  3891. ) {
  3892. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3893. j
  3894. ].proVisible = false;
  3895. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3896. j
  3897. ].proVisible2 = false;
  3898. if (
  3899. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3900. .length > 1
  3901. ) {
  3902. for (
  3903. var z = 0;
  3904. z <
  3905. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3906. .length;
  3907. z++
  3908. ) {
  3909. if (
  3910. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3911. .toolChoose[z].tool.length
  3912. ) {
  3913. this.$message.error("请把工具添加完整");
  3914. cPan = 2;
  3915. break;
  3916. }
  3917. }
  3918. }
  3919. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3920. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3921. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3922. (ele) => {
  3923. return ele.value != "";
  3924. }
  3925. );
  3926. }
  3927. }
  3928. if (cPan == 2) {
  3929. this.unitIndex = oldValue;
  3930. return;
  3931. }
  3932. for (var i = 0; i < this.unitJson.length; i++) {
  3933. if (this.addindex != i) {
  3934. delete this.unitJson[i].isUpdate;
  3935. }
  3936. }
  3937. this.$refs.rightboxR.scrollTop = 0;
  3938. this.addindex = -1;
  3939. let params = [
  3940. {
  3941. cid: this.cid,
  3942. chapters: JSON.stringify(this.unitJson),
  3943. uid: this.userid,
  3944. unitIndex: _unitIndex,
  3945. },
  3946. ];
  3947. this.ajax
  3948. .post(this.$store.state.api + "updateWorkNew4", params)
  3949. .then((res) => {
  3950. // this.$message({
  3951. // message: "修改成功",
  3952. // type: "success",
  3953. // });
  3954. // this.courseId = this.cid;
  3955. })
  3956. .catch((err) => {
  3957. this.$message.error("网络不佳");
  3958. console.error(err);
  3959. });
  3960. }
  3961. },
  3962. steps(newValue, old) {
  3963. if (newValue == 4) {
  3964. let cPan = 1;
  3965. for (var i = 0; i < this.unitJson.length; i++) {
  3966. for (
  3967. var j = 0;
  3968. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3969. j++
  3970. ) {
  3971. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  3972. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  3973. if (
  3974. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  3975. ) {
  3976. for (
  3977. var z = 0;
  3978. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  3979. z++
  3980. ) {
  3981. if (
  3982. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  3983. .length
  3984. ) {
  3985. this.$message.error("请把工具添加完整");
  3986. cPan = 2;
  3987. break;
  3988. }
  3989. }
  3990. }
  3991. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3992. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  3993. i
  3994. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  3995. return ele.value != "";
  3996. });
  3997. }
  3998. }
  3999. }
  4000. this.inputShow = true;
  4001. if (cPan == 2) {
  4002. this.steps = old;
  4003. return;
  4004. }
  4005. this.goTo(
  4006. "/course?userid=" +
  4007. this.userid +
  4008. "&oid=" +
  4009. this.oid +
  4010. "&org=" +
  4011. this.org +
  4012. "&role=" +
  4013. this.role
  4014. );
  4015. }
  4016. },
  4017. },
  4018. methods: {
  4019. openAI() {
  4020. window.parent.postMessage({ tools: "64" }, "*");
  4021. },
  4022. setMan() {
  4023. // let teacherJuri = this.teacherJuri2;
  4024. this.ManAarray = [];
  4025. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4026. if (_user.indexOf(this.userid) == -1) {
  4027. _user.push(this.userid);
  4028. }
  4029. if (_user.indexOf(this.courseUserid) == -1) {
  4030. _user.push(this.courseUserid);
  4031. }
  4032. let params = {
  4033. uid: _user.join(","),
  4034. };
  4035. this.ajax
  4036. .get(this.$store.state.api + "getAllUserById", params)
  4037. .then((res) => {
  4038. let teacherJuri = res.data[0];
  4039. this.ManAarray = teacherJuri;
  4040. })
  4041. .catch((err) => {
  4042. console.error(err);
  4043. });
  4044. },
  4045. previewImg(url) {
  4046. this.$hevueImgPreview(url);
  4047. },
  4048. btnDisplay(bool) {
  4049. this.isBtnDisplay = bool
  4050. },
  4051. stepDisplay(bool) {
  4052. this.isStepDisplay = bool
  4053. },
  4054. scrollChange() {
  4055. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  4056. },
  4057. handleCheckAllChange(val) {
  4058. this.checkedCities = val ? cityOptions : [];
  4059. this.isIndeterminate = false;
  4060. },
  4061. handleCheckedCitiesChange(value) {
  4062. let checkedCount = value.length;
  4063. this.checkAll = checkedCount === this.cities.length;
  4064. this.isIndeterminate =
  4065. checkedCount > 0 && checkedCount < this.cities.length;
  4066. },
  4067. addHw(e) {
  4068. var el = e.currentTarget;
  4069. el.getElementsByTagName("input")[0].click();
  4070. },
  4071. change(val) {
  4072. if (this.dialogVisible1) {
  4073. this.tdetail = val
  4074. } else if (this.dialogVisible6) {
  4075. this.AttText.text = val
  4076. } else if (this.dialogVisible2) {
  4077. this.cTemplate = val
  4078. } else if (this.dialogVisibleTable) {
  4079. this.tableJson.text = val
  4080. }
  4081. this.$forceUpdate();
  4082. console.log(val);
  4083. },
  4084. change2(val) {
  4085. console.log(val);
  4086. this.$forceUpdate();
  4087. },
  4088. handleClose(done) {
  4089. done();
  4090. },
  4091. closePan(tool) {
  4092. if (tool == 15) {
  4093. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  4094. this.dialogVisible8 = false
  4095. } else {
  4096. this.closeConfirm(tool);
  4097. }
  4098. } else if (tool == 4) {
  4099. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  4100. this.dialogVisible5 = false
  4101. } else {
  4102. this.closeConfirm(tool);
  4103. }
  4104. } else if (tool == 45) {
  4105. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  4106. this.dialogVisibleChoice = false
  4107. } else {
  4108. this.closeConfirm(tool);
  4109. }
  4110. } else if (tool == 41) {
  4111. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  4112. this.dialogVisibleSelect = false
  4113. } else {
  4114. this.closeConfirm(tool);
  4115. }
  4116. } else if (tool == 47) {
  4117. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  4118. this.dialogVisibleSentence = false
  4119. } else {
  4120. this.closeConfirm(tool);
  4121. }
  4122. }
  4123. },
  4124. closeConfirm(tool) {
  4125. this
  4126. .$confirm("是否保存已编辑内容?", "提示", {
  4127. confirmButtonText: "保存",
  4128. cancelButtonText: "不保存",
  4129. type: "warning",
  4130. })
  4131. .then(() => {
  4132. if (tool == 15) {
  4133. this.addAnswer();
  4134. } else if (tool == 4) {
  4135. this.addAsk();
  4136. } else if (tool == 45) {
  4137. this.addTest();
  4138. } else if (tool == 41) {
  4139. this.addSelectAnswer();
  4140. } else if (tool == 47) {
  4141. this.addSentenceTool();
  4142. }
  4143. })
  4144. .catch(() => {
  4145. if (tool == 15) {
  4146. this.dialogVisible8 = false;
  4147. } else if (tool == 4) {
  4148. this.dialogVisible5 = false;
  4149. } else if (tool == 45) {
  4150. this.dialogVisibleChoice = false;
  4151. } else if (tool == 41) {
  4152. this.dialogVisibleSelect = false;
  4153. } else if (tool == 47) {
  4154. this.dialogVisibleSentence = false;
  4155. }
  4156. });
  4157. },
  4158. imgChange2(i, j) {
  4159. var _tmp = this.testJson.testJson[i].checkList[j];
  4160. this.noneBtnImg = _tmp.length >= 1;
  4161. },
  4162. imgChange3(i) {
  4163. var _tmp = this.testJson.testJson[i];
  4164. this.noneBtnImg = _tmp.length >= 1;
  4165. },
  4166. imgChange1(file, fileList, type, itemTaskIndex) {
  4167. if (type == 1) {
  4168. var _tmp = this.cover;
  4169. } else if (
  4170. type == 2 ||
  4171. type == 3 ||
  4172. type == 6 ||
  4173. type == 7 ||
  4174. type == 8
  4175. ) {
  4176. var _tmp =
  4177. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4178. .chapterData;
  4179. } else if (type == 4) {
  4180. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4181. } else {
  4182. var _tmp =
  4183. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4184. .homeworkList;
  4185. }
  4186. this.noneBtnImg = _tmp.length >= 1;
  4187. },
  4188. goTo(path) {
  4189. this.$router.push(path);
  4190. },
  4191. guid() {
  4192. var _num,
  4193. i,
  4194. _guid = "";
  4195. for (i = 0; i < 32; i++) {
  4196. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4197. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4198. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4199. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4200. _guid += "-";
  4201. }
  4202. }
  4203. return _guid;
  4204. },
  4205. retrunCourse() {
  4206. this
  4207. .$confirm("是否保存已编辑内容?", "提示", {
  4208. confirmButtonText: "保存",
  4209. cancelButtonText: "不保存",
  4210. type: "warning",
  4211. })
  4212. .then(() => {
  4213. if (this.cid == "" || this.cid == undefined) {
  4214. if (this.courseName == "") {
  4215. this.$message.error("请补充填写课程名称");
  4216. return;
  4217. } else {
  4218. this.addWork();
  4219. }
  4220. this.steps = 4
  4221. } else {
  4222. if (this.courseName == "") {
  4223. this.$message.error("请补充填写课程名称");
  4224. return;
  4225. } else {
  4226. if (this.userid != this.courseUserid && this.role != "1") {
  4227. this.updateWork2();
  4228. } else {
  4229. this.updateWork();
  4230. }
  4231. this.steps = 4
  4232. }
  4233. }
  4234. })
  4235. .catch(() => {
  4236. this.goTo(
  4237. "/course?userid=" +
  4238. this.userid +
  4239. "&oid=" +
  4240. this.oid +
  4241. "&org=" +
  4242. this.org +
  4243. "&role=" +
  4244. this.role
  4245. );
  4246. });
  4247. },
  4248. lastSteps() {
  4249. if (this.steps == 4) {
  4250. this.goTo(
  4251. "/course?userid=" +
  4252. this.userid +
  4253. "&oid=" +
  4254. this.oid +
  4255. "&org=" +
  4256. this.org +
  4257. "&role=" +
  4258. this.role
  4259. );
  4260. } else {
  4261. if (this.cidType == 0) {
  4262. this.steps--;
  4263. if (this.steps == 1) {
  4264. setTimeout(() => {
  4265. this.checkEva(this.checkId);
  4266. setTimeout(() => {
  4267. this.checkEva(this.checkId);
  4268. }, 100);
  4269. }, 100);
  4270. }
  4271. } else {
  4272. if (this.steps == 3) {
  4273. this.steps = 1;
  4274. setTimeout(() => {
  4275. this.checkEva(this.checkId);
  4276. setTimeout(() => {
  4277. this.checkEva(this.checkId);
  4278. }, 100);
  4279. }, 100);
  4280. }
  4281. }
  4282. }
  4283. },
  4284. navSteps(s) {
  4285. if (this.courseName == "") {
  4286. this.$message.error("请补充填写课程名称");
  4287. return;
  4288. }
  4289. if (this.cidType == 0) {
  4290. if (this.steps == 1) {
  4291. if (this.cid == "" || this.cid == undefined) {
  4292. this.addWork();
  4293. } else {
  4294. if (this.userid != this.courseUserid && this.role != "1") {
  4295. // this.updateWork2();
  4296. } else {
  4297. this.updateWork();
  4298. }
  4299. }
  4300. }
  4301. if (s == 1) {
  4302. this.steps = 1;
  4303. setTimeout(() => {
  4304. this.checkEva(this.checkId);
  4305. setTimeout(() => {
  4306. this.checkEva(this.checkId);
  4307. }, 100);
  4308. }, 100);
  4309. }
  4310. if (s == 2) {
  4311. this.steps = 2;
  4312. }
  4313. if (s == 3) {
  4314. this.cTemplate = this.templateC.content;
  4315. this.dialogVisible2 = false;
  4316. this.steps = 3;
  4317. this.isClickColor = 1
  4318. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4319. this.$forceUpdate();
  4320. setTimeout(() => {
  4321. this.checkEva(this.checkId);
  4322. setTimeout(() => {
  4323. this.checkEva(this.checkId);
  4324. }, 100);
  4325. }, 1000);
  4326. }
  4327. } else {
  4328. if (this.steps == 1) {
  4329. if (this.cid == "" || this.cid == undefined) {
  4330. this.addWork();
  4331. } else {
  4332. if (this.userid != this.courseUserid && this.role != "1") {
  4333. // this.updateWork2();
  4334. } else {
  4335. this.updateWork();
  4336. }
  4337. }
  4338. }
  4339. if (s == 1) {
  4340. this.steps = 1;
  4341. setTimeout(() => {
  4342. this.checkEva(this.checkId);
  4343. setTimeout(() => {
  4344. this.checkEva(this.checkId);
  4345. }, 100);
  4346. }, 100);
  4347. }
  4348. if (s == 3) {
  4349. this.cTemplate = this.templateC.content;
  4350. this.dialogVisible2 = false;
  4351. this.steps = 3;
  4352. this.isClickColor = 1
  4353. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4354. this.$forceUpdate();
  4355. setTimeout(() => {
  4356. this.checkEva(this.checkId);
  4357. setTimeout(() => {
  4358. this.checkEva(this.checkId);
  4359. }, 100);
  4360. }, 1000);
  4361. }
  4362. }
  4363. this.$refs.stepBox.scrollTop = 0;
  4364. },
  4365. nextSteps() {
  4366. if (this.cidType == 1) {
  4367. if (this.steps == 1) {
  4368. if (this.courseName != "") {
  4369. this.steps = 3;
  4370. this.isClickColor = 1
  4371. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4372. this.$forceUpdate();
  4373. setTimeout(() => {
  4374. this.checkEva(this.checkId);
  4375. setTimeout(() => {
  4376. this.checkEva(this.checkId);
  4377. }, 100);
  4378. }, 1000);
  4379. if (this.cid == "" || this.cid == undefined) {
  4380. this.addWork();
  4381. } else {
  4382. if (this.userid != this.courseUserid && this.role != "1") {
  4383. // this.updateWork2();
  4384. } else {
  4385. this.updateWork();
  4386. }
  4387. }
  4388. } else {
  4389. this.$message.error("请补充填写课程名称");
  4390. return;
  4391. }
  4392. } else if (this.steps == 3) {
  4393. if (this.cid == "" || this.cid == undefined) {
  4394. if (this.courseName == "") {
  4395. this.$message.error("请补充填写课程名称");
  4396. return;
  4397. } else {
  4398. this.addWork();
  4399. this.steps++;
  4400. }
  4401. } else {
  4402. if (this.courseName == "") {
  4403. this.$message.error("请补充填写课程名称");
  4404. return;
  4405. } else {
  4406. if (this.userid != this.courseUserid && this.role != "1") {
  4407. this.updateWork2();
  4408. } else {
  4409. this.updateWork();
  4410. }
  4411. this.steps++;
  4412. }
  4413. }
  4414. }
  4415. } else {
  4416. if (this.steps == 1) {
  4417. if (this.courseName != "") {
  4418. if (this.cid == "" || this.cid == undefined) {
  4419. this.addWork();
  4420. } else {
  4421. if (this.userid != this.courseUserid && this.role != "1") {
  4422. // this.updateWork2();
  4423. } else {
  4424. this.updateWork();
  4425. }
  4426. }
  4427. this.steps++;
  4428. } else {
  4429. this.$message.error("请补充填写课程名称");
  4430. return;
  4431. }
  4432. } else if (this.steps == 2) {
  4433. if (this.templateC.id != "" || this.templateC.id != undefined) {
  4434. this.cTemplate = this.templateC.content;
  4435. }
  4436. this.dialogVisible2 = false;
  4437. this.steps++;
  4438. setTimeout(() => {
  4439. this.checkEva(this.checkId);
  4440. setTimeout(() => {
  4441. this.checkEva(this.checkId);
  4442. }, 100);
  4443. }, 1000);
  4444. } else if (this.steps == 3) {
  4445. if (this.cid == "" || this.cid == undefined) {
  4446. if (this.courseName == "") {
  4447. this.$message.error("请补充填写课程名称");
  4448. return;
  4449. } else {
  4450. this.addWork();
  4451. this.steps++;
  4452. }
  4453. } else {
  4454. if (this.courseName == "") {
  4455. this.$message.error("请补充填写课程名称");
  4456. return;
  4457. } else {
  4458. if (this.userid != this.courseUserid && this.role != "1") {
  4459. this.updateWork2();
  4460. } else {
  4461. this.updateWork();
  4462. }
  4463. this.steps++;
  4464. }
  4465. }
  4466. }
  4467. }
  4468. this.$refs.stepBox.scrollTop = 0;
  4469. },
  4470. unitSet(i) {
  4471. this.unitIndex = i;
  4472. this.isClickColor = 1
  4473. // this.$refs.rightboxR.scrollTop = 0;
  4474. this.$refs.unitBox.scrollTop = 0
  4475. },
  4476. time() {
  4477. if (!this.now) {
  4478. this.now = new Date().getTime();
  4479. return true;
  4480. } else {
  4481. let time = new Date().getTime();
  4482. if (time - this.now > 3000) {
  4483. this.now = time;
  4484. return true;
  4485. } else {
  4486. return false;
  4487. }
  4488. }
  4489. },
  4490. deleteUnit(i) {
  4491. var _this = this;
  4492. if (_this.time()) {
  4493. _this
  4494. .$confirm("确定删除此单元吗?", "提示", {
  4495. confirmButtonText: "确定",
  4496. cancelButtonText: "取消",
  4497. type: "warning",
  4498. })
  4499. .then(() => {
  4500. _this.isDelete = 2;
  4501. // _this.unitIndex = _this.unitIndex - 1;
  4502. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  4503. // _this.$message.success("删除成功");
  4504. })
  4505. .catch(() => {
  4506. return;
  4507. });
  4508. }
  4509. },
  4510. deleteWork(chapid) {
  4511. let params = [
  4512. {
  4513. cid: this.cid,
  4514. chapters: JSON.stringify(this.unitJson),
  4515. uid: this.userid,
  4516. chapid: chapid,
  4517. },
  4518. ];
  4519. this.ajax
  4520. .post(this.$store.state.api + "deleteWork", params)
  4521. .then((res) => {
  4522. this.$message({
  4523. message: "删除成功",
  4524. type: "success",
  4525. });
  4526. this.unitJson.splice(this.unitIndex, 1);
  4527. this.unitIndex = this.unitIndex - 1;
  4528. })
  4529. .catch((err) => {
  4530. this.$message.error("网络不佳");
  4531. console.error(err);
  4532. });
  4533. },
  4534. deleteTool(itemTaskIndex, i) {
  4535. var _this = this;
  4536. if (_this.time()) {
  4537. _this
  4538. .$confirm("确定删除此工具吗?", "提示", {
  4539. confirmButtonText: "确定",
  4540. cancelButtonText: "取消",
  4541. type: "warning",
  4542. })
  4543. .then(() => {
  4544. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4545. itemTaskIndex
  4546. ].toolChoose.splice(i, 1);
  4547. _this.$message.success("删除成功");
  4548. })
  4549. .catch(() => {
  4550. return;
  4551. });
  4552. }
  4553. },
  4554. deleteSentence(i) {
  4555. var _this = this;
  4556. _this
  4557. .$confirm("确定删除此题目吗?", "提示", {
  4558. confirmButtonText: "确定",
  4559. cancelButtonText: "取消",
  4560. type: "warning",
  4561. })
  4562. .then(() => {
  4563. _this.sentenceList.splice(i, 1);
  4564. _this.$message.success("删除成功");
  4565. })
  4566. .catch(() => {
  4567. return;
  4568. });
  4569. },
  4570. deleteS(s, i, j) {
  4571. this.sentenceList[i].addSentence.splice(j, 1);
  4572. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  4573. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  4574. this.sentenceList[i].rightAnswer.splice(a, 1);
  4575. }
  4576. },
  4577. openT() {
  4578. window.parent.postMessage({ tools: "25" }, "*");
  4579. },
  4580. deleteTask(i) {
  4581. var _this = this;
  4582. if (_this.time()) {
  4583. _this
  4584. .$confirm(
  4585. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  4586. 1 ==
  4587. i
  4588. ? "确定删除此任务吗?"
  4589. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  4590. "提示",
  4591. {
  4592. confirmButtonText: "确定",
  4593. cancelButtonText: "取消",
  4594. type: "warning",
  4595. }
  4596. )
  4597. .then(() => {
  4598. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  4599. i,
  4600. 1
  4601. );
  4602. _this.$message.success("删除成功");
  4603. })
  4604. .catch(() => {
  4605. return;
  4606. });
  4607. }
  4608. },
  4609. handlePictureCardPreview(file) {
  4610. this.dialogImageUrl = file.url;
  4611. },
  4612. clean(i, c) {
  4613. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  4614. },
  4615. handle_remove1(file, fileList, type) {
  4616. var _tmp = this.cover;
  4617. // for (var i = 0, len = _tmp.length; i < len; i++) {
  4618. // if (_tmp[i].uid == file.uid) {
  4619. // _tmp.splice(i, 1);
  4620. // break;
  4621. // }
  4622. // this.cover = _tmp;
  4623. // }
  4624. this.cover = [];
  4625. this.noneBtnImg = this.cover.length >= 1;
  4626. this.isSysPic = false;
  4627. this.isSysPic2 = false;
  4628. this.$forceUpdate();
  4629. },
  4630. addImg(e) {
  4631. var el = e.currentTarget;
  4632. el.getElementsByTagName("input")[0].click();
  4633. e.target.value = "";
  4634. },
  4635. addChaptersTools(i) {
  4636. this.chapTools = [
  4637. {
  4638. tools: [],
  4639. toolDetail: "",
  4640. },
  4641. ];
  4642. this.chapCount = i;
  4643. this.dialogVisible4 = true;
  4644. },
  4645. isNoFinsh() {
  4646. this.$message.warning("功能正在开发中");
  4647. },
  4648. addAttText(i) {
  4649. this.AttText = {
  4650. title: "",
  4651. text: "",
  4652. };
  4653. this.taskCount = i;
  4654. this.AttTextType = 0;
  4655. this.$forceUpdate();
  4656. this.dialogVisible6 = true;
  4657. setTimeout(() => {
  4658. this.$refs['fuInput'].focus();
  4659. }, 100);
  4660. },
  4661. openLine(i) {
  4662. this.line = "";
  4663. this.lineCount = i;
  4664. this.lineType = 0;
  4665. this.$forceUpdate();
  4666. this.dialogVisible7 = true;
  4667. },
  4668. pasteLine(i) {
  4669. navigator.clipboard
  4670. .readText()
  4671. .then((v) => {
  4672. console.log("获取剪贴板成功:", v);
  4673. const html = v;
  4674. const regex = /src="(.*?)"/g;
  4675. const match = regex.exec(html);
  4676. if (match && match[1]) {
  4677. console.log(match[1]);
  4678. this.$message.success("粘贴成功");
  4679. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4680. i
  4681. ].chapterData.push({
  4682. name: "链接",
  4683. title: "嵌入代码",
  4684. url: match[1],
  4685. type: 8,
  4686. });
  4687. } else {
  4688. // console.log("未找到包含 src 属性的 iframe");
  4689. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  4690. }
  4691. })
  4692. .catch((v) => {
  4693. console.log("获取剪贴板失败: ", v);
  4694. });
  4695. },
  4696. openSource(i) {
  4697. this.lineCount = i;
  4698. this.sourceData = {};
  4699. this.dialogVisibleSource = true;
  4700. this.updateSourcePan = false;
  4701. },
  4702. addSource() {
  4703. if (!Object.keys(this.sourceData).length) {
  4704. this.$message.error("请选择要上传的资源");
  4705. return;
  4706. }
  4707. let keys = Object.keys(this.sourceData);
  4708. for (var i = 0; i < keys.length; i++) {
  4709. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4710. this.lineCount
  4711. ].chapterData.push({
  4712. name: "链接",
  4713. title: this.sourceData[keys[i]].name,
  4714. url: this.sourceData[keys[i]].url,
  4715. type: 14,
  4716. id: keys[i]
  4717. });
  4718. }
  4719. this.$forceUpdate();
  4720. this.dialogVisibleSource = false;
  4721. },
  4722. updateSource() {
  4723. if (!Object.keys(this.sourceData).length) {
  4724. this.$message.error("请选择要上传的资源");
  4725. return;
  4726. }
  4727. let keys = Object.keys(this.sourceData);
  4728. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4729. this.taskCount
  4730. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  4731. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4732. this.taskCount
  4733. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  4734. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4735. this.taskCount
  4736. ].chapterData[this.lineCount].id = keys[0];
  4737. this.updateSourcePan = false;
  4738. this.$forceUpdate();
  4739. this.dialogVisibleSource = false;
  4740. },
  4741. deleteM(i, j) {
  4742. this.testJson.testJson[i].timuList.splice(j, 1);
  4743. },
  4744. beforeUploadTiMu(event, i) {
  4745. const loading = this.openLoading();
  4746. var file = event.target.files[0];
  4747. var credentials = {
  4748. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4749. secretAccessKey: "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",
  4750. }; //秘钥形式的登录上传
  4751. window.AWS.config.update(credentials);
  4752. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4753. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4754. var _this = this;
  4755. if (file) {
  4756. var params = {
  4757. Key:
  4758. file.name.split(".")[0] +
  4759. new Date().getTime() +
  4760. "." +
  4761. file.name.split(".")[file.name.split(".").length - 1],
  4762. ContentType: file.type,
  4763. Body: file,
  4764. "Access-Control-Allow-Credentials": "*",
  4765. ACL: "public-read",
  4766. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4767. var options = {
  4768. partSize: 2048 * 1024 * 1024,
  4769. queueSize: 2,
  4770. leavePartsOnError: true,
  4771. };
  4772. bucket
  4773. .upload(params, options)
  4774. .on("httpUploadProgress", function (evt) {
  4775. //这里可以写进度条
  4776. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4777. })
  4778. .send(function (err, data) {
  4779. loading.close();
  4780. if (err) {
  4781. _this.$message.error("上传失败");
  4782. } else {
  4783. if (_this.testJson.testJson[i].timuList) {
  4784. _this.testJson.testJson[i].timuList.push({
  4785. src: data.Location,
  4786. });
  4787. } else {
  4788. _this.testJson.testJson[i].timuList = [];
  4789. _this.testJson.testJson[i].timuList.push({
  4790. src: data.Location,
  4791. });
  4792. }
  4793. _this.imgChange3(i);
  4794. _this.$forceUpdate();
  4795. }
  4796. });
  4797. }
  4798. },
  4799. beforeUploadTi(event, i, j) {
  4800. const loading = this.openLoading();
  4801. var file = event.target.files[0];
  4802. var credentials = {
  4803. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4804. secretAccessKey: "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",
  4805. }; //秘钥形式的登录上传
  4806. window.AWS.config.update(credentials);
  4807. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4808. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4809. var _this = this;
  4810. if (file) {
  4811. var params = {
  4812. Key:
  4813. file.name.split(".")[0] +
  4814. new Date().getTime() +
  4815. "." +
  4816. file.name.split(".")[file.name.split(".").length - 1],
  4817. ContentType: file.type,
  4818. Body: file,
  4819. "Access-Control-Allow-Credentials": "*",
  4820. ACL: "public-read",
  4821. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4822. var options = {
  4823. partSize: 2048 * 1024 * 1024,
  4824. queueSize: 2,
  4825. leavePartsOnError: true,
  4826. };
  4827. bucket
  4828. .upload(params, options)
  4829. .on("httpUploadProgress", function (evt) {
  4830. //这里可以写进度条
  4831. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4832. })
  4833. .send(function (err, data) {
  4834. loading.close();
  4835. if (err) {
  4836. _this.$message.error("上传失败");
  4837. } else {
  4838. _this.testJson.testJson[i].checkList[j] = {};
  4839. _this.testJson.testJson[i].checkList[j].src = data.Location;
  4840. _this.testJson.testJson[i].checkList[j].imgType = 1;
  4841. _this.imgChange2(i, j);
  4842. _this.$forceUpdate();
  4843. }
  4844. });
  4845. }
  4846. },
  4847. beforeUpload1(event, type) {
  4848. // const loading = this.openLoading();
  4849. var file = event.target.files[0];
  4850. var credentials = {
  4851. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4852. secretAccessKey: "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",
  4853. }; //秘钥形式的登录上传
  4854. window.AWS.config.update(credentials);
  4855. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4856. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4857. var _this = this;
  4858. if (file) {
  4859. var params = {
  4860. Key:
  4861. file.name.split(".")[0] +
  4862. new Date().getTime() +
  4863. "." +
  4864. file.name.split(".")[file.name.split(".").length - 1],
  4865. ContentType: file.type,
  4866. Body: file,
  4867. "Access-Control-Allow-Credentials": "*",
  4868. ACL: "public-read",
  4869. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4870. var options = {
  4871. partSize: 2048 * 1024 * 1024,
  4872. queueSize: 2,
  4873. leavePartsOnError: true,
  4874. };
  4875. bucket
  4876. .upload(params, options)
  4877. .on("httpUploadProgress", function (evt) {
  4878. //这里可以写进度条
  4879. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4880. })
  4881. .send(function (err, data) {
  4882. // loading.close();
  4883. if (err) {
  4884. // var a = _this.$refs.upload1.uploadFiles;
  4885. // a.splice(a.length - 1, a.length);
  4886. _this.$message.error("上传失败");
  4887. } else {
  4888. _this.cover.push({
  4889. name: file.name,
  4890. url: data.Location,
  4891. uid: file.uid,
  4892. });
  4893. _this.imgChange1(null, null, 1, null);
  4894. _this.choosePicVisible = false;
  4895. console.log(data.Location);
  4896. }
  4897. });
  4898. }
  4899. },
  4900. beforeUploadSelect(event, type) {
  4901. // const loading = this.openLoading();
  4902. var file = event.target.files[0];
  4903. var credentials = {
  4904. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4905. secretAccessKey: "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",
  4906. }; //秘钥形式的登录上传
  4907. window.AWS.config.update(credentials);
  4908. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4909. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4910. var _this = this;
  4911. if (file) {
  4912. var params = {
  4913. Key:
  4914. file.name.split(".")[0] +
  4915. new Date().getTime() +
  4916. "." +
  4917. file.name.split(".")[file.name.split(".").length - 1],
  4918. ContentType: file.type,
  4919. Body: file,
  4920. "Access-Control-Allow-Credentials": "*",
  4921. ACL: "public-read",
  4922. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4923. var options = {
  4924. partSize: 2048 * 1024 * 1024,
  4925. queueSize: 2,
  4926. leavePartsOnError: true,
  4927. };
  4928. bucket
  4929. .upload(params, options)
  4930. .on("httpUploadProgress", function (evt) {
  4931. //这里可以写进度条
  4932. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4933. })
  4934. .send(function (err, data) {
  4935. // loading.close();
  4936. if (err) {
  4937. _this.$message.error("上传失败");
  4938. } else {
  4939. _this.selectJson.url = data.Location;
  4940. console.log(data.Location);
  4941. }
  4942. });
  4943. }
  4944. },
  4945. chooseSysPic(p) {
  4946. this.cover = []
  4947. setTimeout(() => {
  4948. this.cover[0] = {
  4949. name: "系统图片.png",
  4950. url: p,
  4951. };
  4952. this.imgChange1(null, null, 1, null);
  4953. this.$forceUpdate();
  4954. }, 0);
  4955. this.isSysPic = true;
  4956. this.isSysPic2 = false;
  4957. this.sysPicVisible = false;
  4958. this.$forceUpdate();
  4959. },
  4960. chooseSysPic2(p) {
  4961. this.cover = []
  4962. setTimeout(() => {
  4963. this.cover[0] = {
  4964. name: "网络图片.png",
  4965. url: p,
  4966. };
  4967. this.imgChange1(null, null, 1, null);
  4968. this.$forceUpdate();
  4969. }, 0);
  4970. this.isSysPic2 = true;
  4971. this.isSysPic = false;
  4972. this.sysPicVisible2 = false;
  4973. this.$forceUpdate();
  4974. },
  4975. beforeUpload(data) {
  4976. this.$refs.upload1.uploadFiles;
  4977. this.uploadLoading1 = true;
  4978. var file = data.file;
  4979. var credentials = {
  4980. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4981. secretAccessKey: "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",
  4982. }; //秘钥形式的登录上传
  4983. window.AWS.config.update(credentials);
  4984. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4985. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4986. var _this = this;
  4987. if (file) {
  4988. var params = {
  4989. Key:
  4990. file.name.split(".")[0] +
  4991. new Date().getTime() +
  4992. "." +
  4993. file.name.split(".")[file.name.split(".").length - 1],
  4994. ContentType: file.type,
  4995. Body: file,
  4996. "Access-Control-Allow-Credentials": "*",
  4997. ACL: "public-read",
  4998. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4999. var options = {
  5000. partSize: 2048 * 1024 * 1024,
  5001. queueSize: 2,
  5002. leavePartsOnError: true,
  5003. };
  5004. bucket
  5005. .upload(params, options)
  5006. .on("httpUploadProgress", function (evt) {
  5007. //这里可以写进度条
  5008. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5009. })
  5010. .send(function (err, data) {
  5011. _this.uploadLoading1 = false;
  5012. if (err) {
  5013. // var a = _this.$refs.upload1.uploadFiles;
  5014. // a.splice(a.length - 1, a.length);
  5015. _this.$message.error("上传失败");
  5016. } else {
  5017. //上传成功处理
  5018. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5019. name: file.name,
  5020. url: data.Location,
  5021. uid: file.uid,
  5022. });
  5023. _this.imgChange();
  5024. console.log(data.Location);
  5025. }
  5026. });
  5027. }
  5028. },
  5029. onExceed() {
  5030. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5031. },
  5032. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5033. // const loading = this.openLoading();
  5034. var file = event.target.files[0];
  5035. var credentials = {
  5036. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5037. secretAccessKey: "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",
  5038. }; //秘钥形式的登录上传
  5039. window.AWS.config.update(credentials);
  5040. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5041. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5042. var _this = this;
  5043. if (type == 3) {
  5044. var b = [
  5045. "DOC",
  5046. "DOCX",
  5047. "DOCM",
  5048. "DOTM",
  5049. "DOTX",
  5050. "PPTX",
  5051. "PPSX",
  5052. "PPT",
  5053. "PPS",
  5054. "PPTM",
  5055. "POTM",
  5056. "PPAM",
  5057. "POTX",
  5058. "PPSM",
  5059. ];
  5060. if (
  5061. b.indexOf(
  5062. file.name
  5063. .split(".")
  5064. [file.name.split(".").length - 1].toLocaleUpperCase()
  5065. ) != -1
  5066. ) {
  5067. if (file.size / 1024 / 1024 > 80) {
  5068. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5069. this.inputShow = true;
  5070. // var a = _this.$refs.upload1.uploadFiles;
  5071. // a.splice(a.length - 1, a.length);
  5072. // loading.close();
  5073. return;
  5074. }
  5075. } else if (
  5076. file.name
  5077. .split(".")
  5078. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5079. ) {
  5080. if (file.size / 1024 / 1024 > 80) {
  5081. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5082. this.inputShow = true;
  5083. // var a = _this.$refs.upload1.uploadFiles;
  5084. // a.splice(a.length - 1, a.length);
  5085. // loading.close();
  5086. return;
  5087. }
  5088. }
  5089. }
  5090. this.inputShow = false;
  5091. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5092. itemTaskIndex
  5093. ].progress = 0;
  5094. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5095. itemTaskIndex
  5096. ].proVisible = true;
  5097. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5098. itemTaskIndex
  5099. ].isFinishSize = 0;
  5100. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5101. itemTaskIndex
  5102. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5103. _this.$forceUpdate();
  5104. if (file) {
  5105. var params = {
  5106. Key:
  5107. file.name.split(".")[0] +
  5108. new Date().getTime() +
  5109. "." +
  5110. file.name.split(".")[file.name.split(".").length - 1],
  5111. ContentType: file.type,
  5112. Body: file,
  5113. "Access-Control-Allow-Credentials": "*",
  5114. ACL: "public-read",
  5115. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5116. var options = {
  5117. partSize: 2048 * 1024 * 1024,
  5118. queueSize: 2,
  5119. leavePartsOnError: true,
  5120. };
  5121. bucket
  5122. .upload(params, options)
  5123. .on("httpUploadProgress", function (evt) {
  5124. //这里可以写进度条
  5125. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5126. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5127. itemTaskIndex
  5128. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5129. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5130. itemTaskIndex
  5131. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5132. _this.$forceUpdate();
  5133. })
  5134. .send(function (err, data) {
  5135. // loading.close();
  5136. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5137. itemTaskIndex
  5138. ].progress = 100;
  5139. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5140. itemTaskIndex
  5141. ].isFinishSize =
  5142. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5143. itemTaskIndex
  5144. ].isAllSize;
  5145. _this.$forceUpdate();
  5146. setTimeout(() => {
  5147. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5148. itemTaskIndex
  5149. ].proVisible = false;
  5150. _this.$forceUpdate();
  5151. }, 1000);
  5152. _this.inputShow = true;
  5153. if (err) {
  5154. // var a = _this.$refs.upload1.uploadFiles;
  5155. // a.splice(a.length - 1, a.length);
  5156. _this.$message.error("上传失败");
  5157. } else {
  5158. if (type == 13) {
  5159. let _type = 2;
  5160. var imgA = [
  5161. "png",
  5162. "jpg",
  5163. "jpeg",
  5164. "bmp",
  5165. "gif",
  5166. "webp",
  5167. "psd",
  5168. "svg",
  5169. "tiff",
  5170. ];
  5171. var fileA = [
  5172. "PDF",
  5173. "DOC",
  5174. "DOCX",
  5175. "DOCM",
  5176. "DOTM",
  5177. "DOTX",
  5178. "PPTX",
  5179. "PPSX",
  5180. "PPT",
  5181. "PPS",
  5182. "PPTM",
  5183. "POTM",
  5184. "PPAM",
  5185. "POTX",
  5186. "PPSM",
  5187. "XLSX",
  5188. "XLS",
  5189. ];
  5190. var videoA = [
  5191. "AVI",
  5192. "NAVI",
  5193. "MPEG",
  5194. "ASF",
  5195. "MOV",
  5196. "WMV",
  5197. "3GP",
  5198. "RM",
  5199. "RMVB",
  5200. "FLV",
  5201. "F4V",
  5202. "H.264",
  5203. "H.265",
  5204. "REAL VIDEO",
  5205. "MKV",
  5206. "WebM",
  5207. "HDDVD",
  5208. "MP4",
  5209. "MPG",
  5210. "M4V",
  5211. "MGV",
  5212. "OGV",
  5213. "QTM",
  5214. "STR",
  5215. "AMC",
  5216. "DVX",
  5217. "EVO",
  5218. "DAT",
  5219. "OGG",
  5220. "OGM",
  5221. ];
  5222. if (
  5223. fileA.indexOf(
  5224. data.Location.split(".")[
  5225. data.Location.split(".").length - 1
  5226. ].toLocaleUpperCase()
  5227. ) != -1
  5228. ) {
  5229. _type = 3;
  5230. } else if (
  5231. videoA.indexOf(
  5232. data.Location.split(".")[
  5233. data.Location.split(".").length - 1
  5234. ].toLocaleUpperCase()
  5235. ) != -1
  5236. ) {
  5237. _type = 2;
  5238. } else if (
  5239. imgA.indexOf(
  5240. data.Location.split(".")[
  5241. data.Location.split(".").length - 1
  5242. ].toLocaleLowerCase()
  5243. ) != -1
  5244. ) {
  5245. _type = 13;
  5246. } else {
  5247. _type = 12;
  5248. }
  5249. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5250. itemTaskIndex
  5251. ].chapterData.push({
  5252. name: file.name,
  5253. url: data.Location,
  5254. uid: file.uid,
  5255. type: _type,
  5256. });
  5257. _this.imgChange1(null, null, _type, itemTaskIndex);
  5258. } else if (type == 2 || type == 3 || type == 12) {
  5259. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5260. itemTaskIndex
  5261. ].chapterData.push({
  5262. name: file.name,
  5263. url: data.Location,
  5264. uid: file.uid,
  5265. type: type,
  5266. });
  5267. _this.imgChange1(null, null, type, itemTaskIndex);
  5268. } else if (type == 4) {
  5269. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5270. itemTaskIndex
  5271. ].fileList1.push({
  5272. name: file.name,
  5273. url: data.Location,
  5274. uid: file.uid,
  5275. });
  5276. _this.imgChange1(null, null, type, itemTaskIndex);
  5277. } else if (type == 5) {
  5278. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5279. itemTaskIndex
  5280. ].homeworkList.push({
  5281. name: file.name,
  5282. url: data.Location,
  5283. uid: file.uid,
  5284. });
  5285. _this.imgChange1(null, null, type, itemTaskIndex);
  5286. }
  5287. console.log(data.Location);
  5288. }
  5289. });
  5290. }
  5291. },
  5292. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5293. // const loading = this.openLoading();
  5294. var file = event.target.files[0];
  5295. var credentials = {
  5296. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5297. secretAccessKey: "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",
  5298. }; //秘钥形式的登录上传
  5299. window.AWS.config.update(credentials);
  5300. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5301. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5302. var _this = this;
  5303. if (type == 3) {
  5304. var b = [
  5305. "DOC",
  5306. "DOCX",
  5307. "DOCM",
  5308. "DOTM",
  5309. "DOTX",
  5310. "PPTX",
  5311. "PPSX",
  5312. "PPT",
  5313. "PPS",
  5314. "PPTM",
  5315. "POTM",
  5316. "PPAM",
  5317. "POTX",
  5318. "PPSM",
  5319. ];
  5320. if (
  5321. b.indexOf(
  5322. file.name
  5323. .split(".")
  5324. [file.name.split(".").length - 1].toLocaleUpperCase()
  5325. ) != -1
  5326. ) {
  5327. if (file.size / 1024 / 1024 > 80) {
  5328. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5329. this.inputShow = true;
  5330. // var a = _this.$refs.upload1.uploadFiles;
  5331. // a.splice(a.length - 1, a.length);
  5332. // loading.close();
  5333. return;
  5334. }
  5335. } else if (
  5336. file.name
  5337. .split(".")
  5338. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5339. ) {
  5340. if (file.size / 1024 / 1024 > 80) {
  5341. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5342. this.inputShow = true;
  5343. // var a = _this.$refs.upload1.uploadFiles;
  5344. // a.splice(a.length - 1, a.length);
  5345. // loading.close();
  5346. return;
  5347. }
  5348. }
  5349. }
  5350. this.inputShow = false;
  5351. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5352. itemTaskIndex
  5353. ].progress = 0;
  5354. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5355. itemTaskIndex
  5356. ].proVisible = true;
  5357. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5358. itemTaskIndex
  5359. ].isFinishSize = 0;
  5360. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5361. itemTaskIndex
  5362. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5363. _this.$forceUpdate();
  5364. if (file) {
  5365. var params = {
  5366. Key:
  5367. file.name.split(".")[0] +
  5368. new Date().getTime() +
  5369. "." +
  5370. file.name.split(".")[file.name.split(".").length - 1],
  5371. ContentType: file.type,
  5372. Body: file,
  5373. "Access-Control-Allow-Credentials": "*",
  5374. ACL: "public-read",
  5375. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5376. var options = {
  5377. partSize: 2048 * 1024 * 1024,
  5378. queueSize: 2,
  5379. leavePartsOnError: true,
  5380. };
  5381. bucket
  5382. .upload(params, options)
  5383. .on("httpUploadProgress", function (evt) {
  5384. //这里可以写进度条
  5385. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5386. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5387. itemTaskIndex
  5388. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5389. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5390. itemTaskIndex
  5391. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5392. _this.$forceUpdate();
  5393. })
  5394. .send(function (err, data) {
  5395. // loading.close();
  5396. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5397. itemTaskIndex
  5398. ].progress = 100;
  5399. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5400. itemTaskIndex
  5401. ].isFinishSize =
  5402. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5403. itemTaskIndex
  5404. ].isAllSize;
  5405. _this.$forceUpdate();
  5406. setTimeout(() => {
  5407. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5408. itemTaskIndex
  5409. ].proVisible = false;
  5410. _this.$forceUpdate();
  5411. }, 1000);
  5412. _this.inputShow = true;
  5413. if (err) {
  5414. // var a = _this.$refs.upload1.uploadFiles;
  5415. // a.splice(a.length - 1, a.length);
  5416. _this.$message.error("上传失败");
  5417. } else {
  5418. if (type == 2 || type == 3) {
  5419. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5420. itemTaskIndex
  5421. ].chapterData.push({
  5422. name: file.name,
  5423. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5424. // itemTaskIndex
  5425. // ].chapterData.length+1),
  5426. url: data.Location,
  5427. uid: file.uid,
  5428. type: type,
  5429. text: string,
  5430. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5431. // itemTaskIndex
  5432. // ].chapterData.length + 1),
  5433. });
  5434. _this.imgChange1(null, null, type, itemTaskIndex);
  5435. } else if (type == 4) {
  5436. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5437. itemTaskIndex
  5438. ].fileList1.push({
  5439. name: file.name,
  5440. url: data.Location,
  5441. uid: file.uid,
  5442. });
  5443. _this.imgChange1(null, null, type, itemTaskIndex);
  5444. } else if (type == 5) {
  5445. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5446. itemTaskIndex
  5447. ].homeworkList.push({
  5448. name: file.name,
  5449. url: data.Location,
  5450. uid: file.uid,
  5451. });
  5452. _this.imgChange1(null, null, type, itemTaskIndex);
  5453. }
  5454. console.log(data.Location);
  5455. }
  5456. });
  5457. }
  5458. },
  5459. addunit() {
  5460. this.unitJson.push({
  5461. dyName: "", //单元标题
  5462. isUpdate: 1,
  5463. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  5464. chapterInfo: [
  5465. {
  5466. isread: false,
  5467. chapterid: this.guid(),
  5468. title: "",
  5469. courseName: "",
  5470. taskJson: [
  5471. {
  5472. task: "",
  5473. taskDetail: "",
  5474. chapterData: [],
  5475. toolText: "",
  5476. toolChoose: [
  5477. {
  5478. tool: [],
  5479. toolDetail: "",
  5480. toolType: 0,
  5481. askCount: 1,
  5482. askTitle: "",
  5483. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5484. },
  5485. ],
  5486. isShowTools: false,
  5487. askCount: 1,
  5488. isFold: 0,
  5489. askTitle: "",
  5490. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5491. checkJson: [{ checkCount: [], checkPerent: [] }],
  5492. homeworkList: [],
  5493. },
  5494. ],
  5495. itemCount: 1,
  5496. fileList1: [],
  5497. video: [],
  5498. testData: [],
  5499. pData: [],
  5500. templateArray: [],
  5501. },
  5502. ],
  5503. });
  5504. this.addindex = this.unitJson.length - 1;
  5505. setTimeout(() => {
  5506. this.unitIndex = this.unitJson.length - 1;
  5507. setTimeout(() => {
  5508. console.log(this.$refs.dyInput)
  5509. this.$refs.dyInput[0].focus()
  5510. }, 100);
  5511. this.unitSet(this.unitIndex);
  5512. }, 0);
  5513. },
  5514. addToolFun(itemTaskIndex) {
  5515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5516. itemTaskIndex
  5517. ].toolChoose.push({
  5518. tool: [],
  5519. toolDetail: "",
  5520. toolType: 0,
  5521. askCount: 1,
  5522. askTitle: "",
  5523. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5524. });
  5525. },
  5526. addTaskBorder() {
  5527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5528. task: "",
  5529. taskDetail: "",
  5530. chapterData: [],
  5531. toolText: "",
  5532. toolChoose: [
  5533. {
  5534. tool: [],
  5535. toolDetail: "",
  5536. toolType: 0,
  5537. askCount: 1,
  5538. askTitle: "",
  5539. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5540. },
  5541. ],
  5542. isShowTools: false,
  5543. askCount: 1,
  5544. isFold: 0,
  5545. askTitle: "",
  5546. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5547. checkJson: [{ checkCount: [], checkPerent: [] }],
  5548. homeworkList: [],
  5549. });
  5550. setTimeout(() => {
  5551. this.checkEva(this.checkId);
  5552. setTimeout(() => {
  5553. this.checkEva(this.checkId);
  5554. }, 100);
  5555. }, 100);
  5556. },
  5557. add(e, i) {
  5558. var el = e.currentTarget;
  5559. el.getElementsByTagName("input")[0].click();
  5560. },
  5561. fold(i, e) {
  5562. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  5563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5564. } else {
  5565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5566. }
  5567. },
  5568. fold2(i) {
  5569. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  5570. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  5571. } else {
  5572. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  5573. }
  5574. this.$forceUpdate();
  5575. },
  5576. foldC(i) {
  5577. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  5578. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  5579. } else {
  5580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  5581. }
  5582. this.$forceUpdate();
  5583. },
  5584. fold3(i, ti) {
  5585. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  5586. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  5587. } else {
  5588. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  5589. }
  5590. this.$forceUpdate();
  5591. },
  5592. deleteHomeworkBox(unitIndex, index, i) {
  5593. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5594. this.taskCount
  5595. ].homeworkList.splice(i, 1);
  5596. },
  5597. getStudent() {
  5598. let params = {
  5599. oid: this.oid,
  5600. cu: "",
  5601. cn: this.searchPeople,
  5602. };
  5603. this.ajax
  5604. .get(this.$store.state.api + "selectStudentAdd", params)
  5605. .then((res) => {
  5606. this.studentJuri = res.data[0];
  5607. })
  5608. .catch((err) => {
  5609. this.isLoading = false;
  5610. console.error(err);
  5611. });
  5612. },
  5613. getTeacher() {
  5614. let params = {
  5615. oid:
  5616. this.org && this.org != "undefined" && this.org != "null"
  5617. ? this.org
  5618. : this.oid,
  5619. cu: "",
  5620. cn: this.searchTN,
  5621. };
  5622. this.ajax
  5623. .get(
  5624. this.$store.state.api +
  5625. (this.org && this.org != "undefined" && this.org != "null"
  5626. ? "selectTeacherAddOrg"
  5627. : "selectTeacherAdd"),
  5628. params
  5629. )
  5630. .then((res) => {
  5631. let teacherJuri = res.data[0];
  5632. for (var i = 0; i < teacherJuri.length; i++) {
  5633. if (teacherJuri[i].userid == this.userid) {
  5634. teacherJuri.splice(i, 1);
  5635. break;
  5636. }
  5637. }
  5638. this.teacherJuri = teacherJuri;
  5639. })
  5640. .catch((err) => {
  5641. console.error(err);
  5642. });
  5643. },
  5644. searchStudent() {
  5645. this.getStudent();
  5646. },
  5647. selectGrage() {
  5648. let params = {
  5649. oid: this.oid,
  5650. };
  5651. this.ajax
  5652. .get(this.$store.state.api + "selectGrageBySchool", params)
  5653. .then((res) => {
  5654. this.gradeList = res.data[0];
  5655. })
  5656. .catch((err) => {
  5657. this.isLoading = false;
  5658. console.error(err);
  5659. });
  5660. },
  5661. //获取班级列表
  5662. getClass() {
  5663. let params = {
  5664. oid: this.oid,
  5665. gid: this.gradeId,
  5666. cn: this.classSearch,
  5667. };
  5668. this.ajax
  5669. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  5670. .then((res) => {
  5671. if (!this.grade.length) {
  5672. this.grade = res.data[0];
  5673. }
  5674. this.grade2 = res.data[0];
  5675. this.classJuri = res.data[0];
  5676. })
  5677. .catch((err) => {
  5678. this.isLoading = false;
  5679. console.error(err);
  5680. });
  5681. },
  5682. CourseType2Change(val) {
  5683. this.pTypeCheck = [];
  5684. for (var i = 0; i < this.CourseType2.length; i++) {
  5685. let typeA = this.CourseType2[i];
  5686. if (val.indexOf(typeA.name) != -1) {
  5687. this.pTypeCheck.push(...typeA.id);
  5688. }
  5689. }
  5690. },
  5691. getChapterData(e, i, j, ic, type) {
  5692. e.stopPropagation();
  5693. this.updataC = true;
  5694. this.icc = ic;
  5695. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5696. console.log("还不能下载图片喔");
  5697. }
  5698. },
  5699. deleteChapterData(e, i, j, ic, taskI) {
  5700. e.stopPropagation();
  5701. let _this = this;
  5702. _this
  5703. .$confirm("确定删除此项?", "提示", {
  5704. confirmButtonText: "确定",
  5705. cancelButtonText: "取消",
  5706. type: "warning",
  5707. })
  5708. .then(() => {
  5709. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  5710. })
  5711. .catch(() => {
  5712. return;
  5713. });
  5714. },
  5715. updataVideoT(e, i, j, ic) {
  5716. // e.stopPropagation();
  5717. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  5718. // ic
  5719. // ].name = JSON.parse(JSON.stringify(e.target.value));
  5720. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  5721. ic
  5722. ].name;
  5723. this.taskCount = j;
  5724. this.lineCount = ic;
  5725. this.dialogVisibleupdataVideoT = true;
  5726. this.$forceUpdate();
  5727. },
  5728. updataVideoC() {
  5729. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  5730. this.dialogVisibleupdataVideoT = false;
  5731. this.$forceUpdate();
  5732. },
  5733. upCd(e, i, j, taskCount, ic) {
  5734. e.stopPropagation();
  5735. if (ic == 0) {
  5736. return;
  5737. }
  5738. var a =
  5739. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  5740. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  5741. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5742. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5743. this.$forceUpdate();
  5744. },
  5745. downCd(e, i, j, taskCount, ic) {
  5746. e.stopPropagation();
  5747. if (
  5748. ic ==
  5749. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  5750. 1
  5751. ) {
  5752. return;
  5753. }
  5754. var a =
  5755. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  5756. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  5757. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5758. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5759. this.$forceUpdate();
  5760. },
  5761. addWork() {
  5762. let cPan = 1;
  5763. for (var i = 0; i < this.unitJson.length; i++) {
  5764. for (
  5765. var j = 0;
  5766. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5767. j++
  5768. ) {
  5769. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5770. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5771. if (
  5772. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5773. ) {
  5774. for (
  5775. var z = 0;
  5776. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5777. z++
  5778. ) {
  5779. if (
  5780. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5781. .length
  5782. ) {
  5783. this.$message.error("请把工具添加完整");
  5784. cPan = 2;
  5785. break;
  5786. }
  5787. }
  5788. }
  5789. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5790. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5791. i
  5792. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5793. return ele.value != "";
  5794. });
  5795. }
  5796. }
  5797. }
  5798. this.inputShow = true;
  5799. if (cPan == 2) {
  5800. this.steps--;
  5801. return;
  5802. }
  5803. for (var i = 0; i < this.unitJson.length; i++) {
  5804. delete this.unitJson[i].isUpdate;
  5805. }
  5806. let params = [
  5807. {
  5808. uid: this.userid,
  5809. title: this.courseName.replace(/%/g, "%25"),
  5810. brief: this.courseText.replace(/%/g, "%25"),
  5811. cover:
  5812. this.cover.length > 0
  5813. ? JSON.stringify(this.cover)
  5814. : JSON.stringify([
  5815. {
  5816. name: "noBanner.jpg",
  5817. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5818. uid: 1656409780264,
  5819. status: "success",
  5820. },
  5821. ]),
  5822. evaId: this.evalua,
  5823. astudent:
  5824. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5825. see: this.isTeacherSee == true ? 1 : 0,
  5826. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5827. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  5828. courseType: JSON.stringify(this.courseTypeId),
  5829. ateacher:
  5830. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5831. inviteCode: JSON.stringify(this.inviteCode),
  5832. },
  5833. ];
  5834. this.ajax
  5835. .post(this.$store.state.api + "addWorkNew2", params)
  5836. .then((res) => {
  5837. console.log(this.steps);
  5838. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5839. this.$message({
  5840. message: "新增成功",
  5841. type: "success",
  5842. });
  5843. }
  5844. this.number = res.data.ordernumber;
  5845. this.courseId = res.data.courseId;
  5846. this.cid = res.data.courseId;
  5847. this.courseUserid = this.userid;
  5848. this.islogin = true;
  5849. })
  5850. .catch((err) => {
  5851. this.$message.error("网络不佳");
  5852. console.error(err);
  5853. });
  5854. },
  5855. goCourse() {
  5856. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  5857. },
  5858. updateWork2() {
  5859. let _unitIndex = this.unitIndex;
  5860. let cPan = 1;
  5861. for (
  5862. var j = 0;
  5863. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5864. j++
  5865. ) {
  5866. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  5867. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5868. j
  5869. ].proVisible2 = false;
  5870. if (
  5871. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5872. .length > 1
  5873. ) {
  5874. for (
  5875. var z = 0;
  5876. z <
  5877. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5878. .length;
  5879. z++
  5880. ) {
  5881. if (
  5882. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  5883. z
  5884. ].tool.length
  5885. ) {
  5886. this.$message.error("请把工具添加完整");
  5887. cPan = 2;
  5888. break;
  5889. }
  5890. }
  5891. }
  5892. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5893. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5894. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5895. (ele) => {
  5896. return ele.value != "";
  5897. }
  5898. );
  5899. }
  5900. }
  5901. this.inputShow = true;
  5902. if (cPan == 2) {
  5903. this.steps--;
  5904. return;
  5905. }
  5906. let params = [
  5907. {
  5908. cid: this.cid,
  5909. chapters: JSON.stringify(this.unitJson),
  5910. uid: this.userid,
  5911. unitIndex: _unitIndex,
  5912. },
  5913. ];
  5914. this.ajax
  5915. .post(this.$store.state.api + "updateWorkNew4", params)
  5916. .then((res) => {
  5917. this.$message({
  5918. message: "修改成功",
  5919. type: "success",
  5920. });
  5921. this.courseId = this.cid;
  5922. })
  5923. .catch((err) => {
  5924. this.$message.error("网络不佳");
  5925. console.error(err);
  5926. });
  5927. },
  5928. updateWork() {
  5929. let cPan = 1;
  5930. for (var i = 0; i < this.unitJson.length; i++) {
  5931. for (
  5932. var j = 0;
  5933. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5934. j++
  5935. ) {
  5936. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5937. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5938. if (
  5939. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5940. ) {
  5941. for (
  5942. var z = 0;
  5943. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5944. z++
  5945. ) {
  5946. if (
  5947. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5948. .length
  5949. ) {
  5950. this.$message.error("请把工具添加完整");
  5951. cPan = 2;
  5952. break;
  5953. }
  5954. }
  5955. }
  5956. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5957. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5958. i
  5959. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5960. return ele.value != "";
  5961. });
  5962. }
  5963. }
  5964. }
  5965. this.inputShow = true;
  5966. if (cPan == 2) {
  5967. this.steps--;
  5968. return;
  5969. }
  5970. for (var i = 0; i < this.unitJson.length; i++) {
  5971. delete this.unitJson[i].isUpdate;
  5972. }
  5973. let params = [
  5974. {
  5975. cid: this.cid,
  5976. title: this.courseName.replace(/%/g, "%25"),
  5977. brief: this.courseText.replace(/%/g, "%25"),
  5978. cover:
  5979. this.cover.length > 0
  5980. ? JSON.stringify(this.cover)
  5981. : JSON.stringify([
  5982. {
  5983. name: "noBanner.jpg",
  5984. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5985. uid: 1656409780264,
  5986. status: "success",
  5987. },
  5988. ]),
  5989. evaId: this.evalua,
  5990. astudent:
  5991. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5992. see: this.isTeacherSee == true ? 1 : 0,
  5993. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5994. template: this.myWord != "undefined" ? this.myWord : [],
  5995. uid: this.userid,
  5996. courseType: JSON.stringify(this.courseTypeId),
  5997. ateacher:
  5998. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5999. inviteCode: JSON.stringify(this.inviteCode),
  6000. },
  6001. ];
  6002. this.ajax
  6003. .post(this.$store.state.api + "updateWorkNew2", params)
  6004. .then((res) => {
  6005. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6006. if (this.cidType == 1) {
  6007. this.$message({
  6008. message: "修改成功",
  6009. type: "success",
  6010. });
  6011. } else {
  6012. this.$message({
  6013. message: "新增成功",
  6014. type: "success",
  6015. });
  6016. }
  6017. }
  6018. this.number = this.nbOrder;
  6019. this.courseId = this.cid;
  6020. })
  6021. .catch((err) => {
  6022. this.$message.error("网络不佳");
  6023. console.error(err);
  6024. });
  6025. },
  6026. guid() {
  6027. var _num,
  6028. i,
  6029. _guid = "";
  6030. for (i = 0; i < 32; i++) {
  6031. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6032. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6033. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6034. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6035. _guid += "-";
  6036. }
  6037. }
  6038. return _guid;
  6039. },
  6040. insertWord() {
  6041. this.dialogVisible1 = true;
  6042. this.updateBoolean2 = false;
  6043. this.tTitle = "";
  6044. this.tdetail = "";
  6045. },
  6046. addWord() {
  6047. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6048. name: this.tTitle,
  6049. content: this.tdetail,
  6050. uid: this.guid(),
  6051. });
  6052. this.dialogVisible1 = false;
  6053. },
  6054. upWord() { },
  6055. selectWord(uid, i, c) {
  6056. this.dialogVisible1 = true;
  6057. this.updateBoolean2 = true;
  6058. if (
  6059. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6060. ) {
  6061. this.tTitle =
  6062. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6063. this.tdetail =
  6064. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6065. }
  6066. },
  6067. isAddPP() {
  6068. if (this.checkboxList.length > 0) {
  6069. this.$message({
  6070. message: "添加成功",
  6071. type: "success",
  6072. });
  6073. this.dialogVisible3 = false;
  6074. } else {
  6075. this.$message({
  6076. message: "请添加课程成员",
  6077. type: "error",
  6078. });
  6079. }
  6080. },
  6081. isAddClass() {
  6082. this.dialogVisibleClass = false;
  6083. },
  6084. isAddPPTeacher() {
  6085. this.dialogVisibleMember = false;
  6086. this.setMan();
  6087. },
  6088. getTemplate() {
  6089. this.ajax
  6090. .get(this.$store.state.api + "getCourseTemplateT", "")
  6091. .then((res) => {
  6092. this.templateArray = res.data[0];
  6093. this.getTemplateOid();
  6094. this.$forceUpdate();
  6095. })
  6096. .catch((err) => { });
  6097. },
  6098. getTemplateOid() {
  6099. let params = {
  6100. oid: this.oid,
  6101. };
  6102. this.ajax
  6103. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6104. .then((res) => {
  6105. if (res.data[0].length) {
  6106. this.templateArray = [...res.data[0], ...this.templateArray];
  6107. }
  6108. this.getTemplateOrg();
  6109. this.$forceUpdate();
  6110. })
  6111. .catch((err) => { });
  6112. },
  6113. getTemplateOrg() {
  6114. let params = {
  6115. oid: this.org,
  6116. };
  6117. this.ajax
  6118. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6119. .then((res) => {
  6120. if (res.data[0].length) {
  6121. this.templateArray = [...res.data[0], ...this.templateArray];
  6122. }
  6123. this.$forceUpdate();
  6124. })
  6125. .catch((err) => { });
  6126. },
  6127. clearChoose() {
  6128. this.clearArray.splice(this.templateC.id, 1);
  6129. this.dialogVisible2 = false;
  6130. },
  6131. clearAttText() {
  6132. this.AttText = {
  6133. title: "",
  6134. text: "",
  6135. };
  6136. this.dialogVisible6 = false;
  6137. },
  6138. clearLine() {
  6139. this.line = "";
  6140. this.dialogVisible7 = false;
  6141. },
  6142. checkTemplate(res) {
  6143. let _this = this;
  6144. _this
  6145. .$confirm("确定选择此模板吗?修改课程时无法重置课程模板。", "提示", {
  6146. confirmButtonText: "确定",
  6147. cancelButtonText: "取消",
  6148. type: "warning",
  6149. })
  6150. .then(() => {
  6151. _this.unitJson = JSON.parse(res.chapters);
  6152. _this.steps++;
  6153. setTimeout(() => {
  6154. this.checkEva(this.checkId);
  6155. setTimeout(() => {
  6156. this.checkEva(this.checkId);
  6157. }, 100);
  6158. }, 1000);
  6159. })
  6160. .catch(() => {
  6161. return;
  6162. });
  6163. },
  6164. checkTemplate1(w) {
  6165. this.steps++;
  6166. },
  6167. checkTemplate2() {
  6168. let _this = this;
  6169. _this
  6170. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  6171. confirmButtonText: "确定",
  6172. cancelButtonText: "取消",
  6173. type: "warning",
  6174. })
  6175. .then(() => {
  6176. _this.unitIndex = 0;
  6177. _this.unitJson = [
  6178. {
  6179. dyName: "", //单元标题
  6180. chapterInfo: [
  6181. {
  6182. isread: false,
  6183. chapterid: this.guid(),
  6184. title: "",
  6185. courseName: "",
  6186. taskJson: [
  6187. {
  6188. task: "",
  6189. taskDetail: "",
  6190. chapterData: [],
  6191. toolText: "",
  6192. toolChoose: [
  6193. {
  6194. tool: [],
  6195. toolDetail: "",
  6196. toolType: 0,
  6197. askCount: 1,
  6198. askTitle: "",
  6199. askJson: [
  6200. { askstitle: "", askItem: 1, checkList: [] },
  6201. ],
  6202. },
  6203. ],
  6204. isShowTools: false,
  6205. askCount: 1,
  6206. isFold: 0,
  6207. askTitle: "",
  6208. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6209. checkJson: [{ checkCount: [], checkPerent: [] }],
  6210. homeworkList: [],
  6211. },
  6212. ],
  6213. itemCount: 1,
  6214. fileList1: [],
  6215. video: [],
  6216. testData: [],
  6217. pData: [],
  6218. templateArray: [],
  6219. },
  6220. ],
  6221. },
  6222. ];
  6223. this.steps++;
  6224. setTimeout(() => {
  6225. this.checkEva(this.checkId);
  6226. setTimeout(() => {
  6227. this.checkEva(this.checkId);
  6228. }, 100);
  6229. }, 1000);
  6230. this.updateWork();
  6231. })
  6232. .catch(() => {
  6233. return;
  6234. });
  6235. },
  6236. checkTemplate3() {
  6237. let _this = this;
  6238. _this
  6239. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  6240. confirmButtonText: "确定",
  6241. cancelButtonText: "取消",
  6242. type: "warning",
  6243. })
  6244. .then(() => {
  6245. _this.unitIndex = 0;
  6246. _this.unitJson = [
  6247. {
  6248. dyName: "", //单元标题
  6249. easy: 1,
  6250. chapterInfo: [
  6251. {
  6252. isread: false,
  6253. chapterid: this.guid(),
  6254. title: "",
  6255. courseName: "",
  6256. taskJson: [
  6257. {
  6258. task: "",
  6259. taskDetail: "",
  6260. chapterData: [],
  6261. toolText: "",
  6262. toolChoose: [
  6263. {
  6264. tool: [],
  6265. toolDetail: "",
  6266. toolType: 0,
  6267. askCount: 1,
  6268. askTitle: "",
  6269. askJson: [
  6270. { askstitle: "", askItem: 1, checkList: [] },
  6271. ],
  6272. },
  6273. ],
  6274. isShowTools: false,
  6275. askCount: 1,
  6276. isFold: 0,
  6277. askTitle: "",
  6278. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6279. checkJson: [{ checkCount: [], checkPerent: [] }],
  6280. homeworkList: [],
  6281. },
  6282. ],
  6283. itemCount: 1,
  6284. fileList1: [],
  6285. video: [],
  6286. testData: [],
  6287. pData: [],
  6288. templateArray: [],
  6289. },
  6290. ],
  6291. },
  6292. ];
  6293. this.steps++;
  6294. this.updateWork();
  6295. })
  6296. .catch(() => {
  6297. return;
  6298. });
  6299. },
  6300. checkTemplate4() {
  6301. let _this = this;
  6302. _this
  6303. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  6304. confirmButtonText: "确定",
  6305. cancelButtonText: "取消",
  6306. type: "warning",
  6307. })
  6308. .then(() => {
  6309. _this.unitIndex = 0;
  6310. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  6311. this.steps++;
  6312. this.updateWork();
  6313. })
  6314. .catch(() => {
  6315. return;
  6316. });
  6317. },
  6318. wordNext() {
  6319. this.dialogVisible2 = false;
  6320. },
  6321. isAddOrUpdateAttText() {
  6322. if (this.AttTextType == 0) {
  6323. this.addAttTextMessage();
  6324. } else {
  6325. this.updateAttText();
  6326. }
  6327. },
  6328. isAddOrUpdateLine() {
  6329. if (!this.lineTitle) {
  6330. this.$message.error("请填写链接标题");
  6331. return;
  6332. }
  6333. if (this.lineType == 0) {
  6334. this.addLine();
  6335. } else {
  6336. this.updateLine();
  6337. }
  6338. },
  6339. addAttTextMessage() {
  6340. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6341. this.taskCount
  6342. ].chapterData.push({
  6343. name: this.AttText.title,
  6344. url: this.AttText.text,
  6345. type: 6,
  6346. });
  6347. this.imgChange1(null, null, 6, this.taskCount);
  6348. this.dialogVisible6 = false;
  6349. },
  6350. selectAttText(itemTaskIndex, i) {
  6351. this.AttText.title =
  6352. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6353. itemTaskIndex
  6354. ].chapterData[i].name;
  6355. this.AttText.text =
  6356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6357. itemTaskIndex
  6358. ].chapterData[i].url;
  6359. this.taskCount = itemTaskIndex;
  6360. this.AttTextIndex = i;
  6361. this.AttTextType = 1;
  6362. this.dialogVisible6 = true;
  6363. },
  6364. updateAttText() {
  6365. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6366. this.taskCount
  6367. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6368. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6369. this.taskCount
  6370. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6371. this.dialogVisible6 = false;
  6372. },
  6373. addLine() {
  6374. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6375. this.lineCount
  6376. ].chapterData.push({
  6377. name: "链接",
  6378. title: this.lineTitle,
  6379. url: this.line,
  6380. type: 8,
  6381. });
  6382. this.imgChange1(null, null, 8, this.lineCount);
  6383. this.dialogVisible7 = false;
  6384. },
  6385. selectLine(itemTaskIndex, i) {
  6386. this.line =
  6387. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6388. itemTaskIndex
  6389. ].chapterData[i].url;
  6390. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6391. itemTaskIndex
  6392. ].chapterData[i].title
  6393. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6394. .chapterData[i].title
  6395. : "";
  6396. this.taskCount = itemTaskIndex;
  6397. this.lineCount = i;
  6398. this.lineType = 1;
  6399. this.dialogVisible7 = true;
  6400. },
  6401. openUpdateSource(itemTaskIndex, i) {
  6402. this.sourceData = {}
  6403. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  6404. this.sourceData[source.id] = {}
  6405. this.sourceData[source.id].name = source.title
  6406. this.sourceData[source.id].url = source.url
  6407. this.dialogVisibleSource = true;
  6408. this.updateSourcePan = true;
  6409. this.taskCount = itemTaskIndex;
  6410. this.lineCount = i;
  6411. },
  6412. updateLine() {
  6413. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6414. this.taskCount
  6415. ].chapterData[this.lineCount].url = this.line;
  6416. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6417. this.taskCount
  6418. ].chapterData[this.lineCount].title = this.lineTitle;
  6419. this.dialogVisible7 = false;
  6420. },
  6421. addPP() {
  6422. this.dialogVisible3 = true;
  6423. },
  6424. goTo(path) {
  6425. this.$router.push(path);
  6426. },
  6427. openTools(itemTaskIndex, i, toolIndex) {
  6428. this.toolIndex = toolIndex;
  6429. this.taskCount = itemTaskIndex;
  6430. if (i == 4) {
  6431. if (toolIndex == null) {
  6432. var a =
  6433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6434. .chapterData;
  6435. for (var i = 0; i < a.length; i++) {
  6436. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6437. this.askJson =
  6438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6439. itemTaskIndex
  6440. ].chapterData[i].askJson;
  6441. }
  6442. }
  6443. } else {
  6444. this.askJson = JSON.parse(
  6445. JSON.stringify(
  6446. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6447. itemTaskIndex
  6448. ].toolChoose[toolIndex]
  6449. )
  6450. );
  6451. }
  6452. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  6453. this.dialogVisible5 = true;
  6454. } else if (i == 45) {
  6455. if (
  6456. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6457. .toolChoose[toolIndex].testJson
  6458. ) {
  6459. this.testJson = JSON.parse(
  6460. JSON.stringify(
  6461. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6462. itemTaskIndex
  6463. ].toolChoose[toolIndex].testJson
  6464. )
  6465. );
  6466. } else {
  6467. var testJson = {
  6468. testCount: 1,
  6469. testTitle: "",
  6470. testJson: [
  6471. {
  6472. teststitle: "",
  6473. testItem: 1,
  6474. checkList: [],
  6475. timuList: [],
  6476. answer: [],
  6477. type: "1",
  6478. },
  6479. ],
  6480. };
  6481. this.testJson = testJson;
  6482. }
  6483. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  6484. this.dialogVisibleChoice = true;
  6485. } else if (i == 47) {
  6486. if (
  6487. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6488. .toolChoose[toolIndex].sentenceList
  6489. ) {
  6490. this.sentenceList = JSON.parse(
  6491. JSON.stringify(
  6492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6493. itemTaskIndex
  6494. ].toolChoose[toolIndex].sentenceList
  6495. )
  6496. );
  6497. } else {
  6498. var sentenceList = [
  6499. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6500. ];
  6501. this.sentenceList = sentenceList;
  6502. }
  6503. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  6504. this.dialogVisibleSentence = true;
  6505. } else if (i == 48) {
  6506. if (
  6507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6508. .toolChoose[toolIndex].tableJson
  6509. ) {
  6510. this.tableJson = JSON.parse(
  6511. JSON.stringify(
  6512. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6513. itemTaskIndex
  6514. ].toolChoose[toolIndex].tableJson
  6515. )
  6516. );
  6517. } else {
  6518. var tableJson = { text: "" };
  6519. this.tableJson = tableJson;
  6520. }
  6521. this.dialogVisibleTable = true;
  6522. } else if (i == 52) {
  6523. if (
  6524. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6525. .toolChoose[toolIndex].wordJson
  6526. ) {
  6527. this.wordJson = JSON.parse(
  6528. JSON.stringify(
  6529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6530. itemTaskIndex
  6531. ].toolChoose[toolIndex].wordJson
  6532. )
  6533. );
  6534. } else {
  6535. var wordJson = { text: "" };
  6536. this.wordJson = wordJson;
  6537. }
  6538. this.dialogVisibleWord = true;
  6539. // else if (i == 50) {
  6540. // if (
  6541. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6542. // .toolChoose[toolIndex].uploadJson
  6543. // ) {
  6544. // this.uploadJson = JSON.parse(
  6545. // JSON.stringify(
  6546. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6547. // itemTaskIndex
  6548. // ].toolChoose[toolIndex].uploadJson
  6549. // )
  6550. // );
  6551. // } else {
  6552. // var uploadJson = [];
  6553. // this.uploadJson = uploadJson;
  6554. // }
  6555. // this.dialogVisibleMoreUpload = true;
  6556. // }
  6557. } else if (i == 10) {
  6558. if (
  6559. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6560. .toolChoose[toolIndex].preTime
  6561. ) {
  6562. this.preTime = JSON.parse(
  6563. JSON.stringify(
  6564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6565. itemTaskIndex
  6566. ].toolChoose[toolIndex].preTime
  6567. )
  6568. );
  6569. } else {
  6570. var preTime = 0;
  6571. this.preTime = preTime;
  6572. }
  6573. this.dialogVisiblePreTime = true;
  6574. } else if (i == 49) {
  6575. if (
  6576. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6577. .toolChoose[toolIndex].groupJson
  6578. ) {
  6579. this.groupJson = JSON.parse(
  6580. JSON.stringify(
  6581. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6582. itemTaskIndex
  6583. ].toolChoose[toolIndex].groupJson
  6584. )
  6585. );
  6586. } else {
  6587. var groupJson = {
  6588. group: [{ name: "第1组" }],
  6589. number: undefined,
  6590. islock: 1,
  6591. };
  6592. this.groupJson = groupJson;
  6593. }
  6594. this.dialogVisibleGroup = true;
  6595. } else if (i == 62) {
  6596. if (
  6597. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6598. .toolChoose[toolIndex].videoJson
  6599. ) {
  6600. this.videoJson = JSON.parse(
  6601. JSON.stringify(
  6602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6603. itemTaskIndex
  6604. ].toolChoose[toolIndex].videoJson
  6605. )
  6606. );
  6607. } else {
  6608. var videoJson = {
  6609. video: "",
  6610. setting: [],
  6611. };
  6612. this.videoJson = videoJson;
  6613. }
  6614. this.dialogVisibleVideo = true;
  6615. } else if (i == 15) {
  6616. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6617. itemTaskIndex
  6618. ].toolChoose[toolIndex].answerQ
  6619. ? JSON.parse(
  6620. JSON.stringify(
  6621. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6622. itemTaskIndex
  6623. ].toolChoose[toolIndex].answerQ
  6624. )
  6625. )
  6626. : "";
  6627. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  6628. this.dialogVisible8 = true;
  6629. } else if (i == 40) {
  6630. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6631. itemTaskIndex
  6632. ].toolChoose[toolIndex].rateJson
  6633. ? JSON.parse(
  6634. JSON.stringify(
  6635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6636. itemTaskIndex
  6637. ].toolChoose[toolIndex].rateJson
  6638. )
  6639. )
  6640. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  6641. this.selectSteps = 1;
  6642. this.dialogVisibleRate = true;
  6643. } else if (i == 42) {
  6644. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6645. itemTaskIndex
  6646. ].toolChoose[toolIndex].answerQ
  6647. ? JSON.parse(
  6648. JSON.stringify(
  6649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6650. itemTaskIndex
  6651. ].toolChoose[toolIndex].answerQ
  6652. )
  6653. )
  6654. : "";
  6655. this.dialogVisibleMp3 = true;
  6656. } else if (i == 41) {
  6657. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6658. itemTaskIndex
  6659. ].toolChoose[toolIndex].selectJson
  6660. ? JSON.parse(
  6661. JSON.stringify(
  6662. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6663. itemTaskIndex
  6664. ].toolChoose[toolIndex].selectJson
  6665. )
  6666. )
  6667. : { url: "", select: [], answer: [] };
  6668. this.selectSteps = 1;
  6669. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  6670. this.dialogVisibleSelect = true;
  6671. } else if (i == 3) {
  6672. window.parent.postMessage(
  6673. {
  6674. tools: "3y",
  6675. cid: this.cid,
  6676. stage: this.unitIndex,
  6677. task: itemTaskIndex,
  6678. tool: toolIndex,
  6679. },
  6680. "*"
  6681. );
  6682. } else if (i == 1) {
  6683. window.parent.postMessage(
  6684. {
  6685. tools: "1y",
  6686. cid: this.cid,
  6687. stage: this.unitIndex,
  6688. task: itemTaskIndex,
  6689. tool: toolIndex,
  6690. },
  6691. "*"
  6692. );
  6693. } else if (i == 57) {
  6694. window.parent.postMessage(
  6695. {
  6696. tools: "57y",
  6697. cid: this.cid,
  6698. stage: this.unitIndex,
  6699. task: itemTaskIndex,
  6700. tool: toolIndex,
  6701. },
  6702. "*"
  6703. );
  6704. }
  6705. },
  6706. chapAddTools(i) {
  6707. if (this.chapTools[0].tools.length == 0) {
  6708. this.chapTools[0].tools.push(i);
  6709. } else {
  6710. if (this.chapTools[0].tools.indexOf(i) != -1) {
  6711. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  6712. } else {
  6713. this.chapTools[0].tools.push(i);
  6714. }
  6715. }
  6716. this.$forceUpdate();
  6717. },
  6718. addChaptersDataTools() {
  6719. if (this.chapTools[0].tools.indexOf(4) != -1) {
  6720. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6721. this.chapCount
  6722. ].chapterData.push({
  6723. name: this.chapTools[0].toolDetail,
  6724. url: this.chapTools[0].tools,
  6725. type: 7,
  6726. askJson: this.askJson,
  6727. });
  6728. } else {
  6729. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6730. this.chapCount
  6731. ].chapterData.push({
  6732. name: this.chapTools[0].toolDetail,
  6733. url: this.chapTools[0].tools,
  6734. type: 7,
  6735. });
  6736. }
  6737. this.imgChange1(null, null, 7, this.chapCount);
  6738. this.dialogVisible4 = false;
  6739. },
  6740. addTools(i, itemTaskIndex, toolIndex) {
  6741. // if (
  6742. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6743. // .toolChoose[toolIndex].tool.length == 0
  6744. // ) {
  6745. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6746. // itemTaskIndex
  6747. // ].toolChoose[toolIndex].tool.push(i);
  6748. // } else {
  6749. // if (
  6750. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6751. // itemTaskIndex
  6752. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6753. // ) {
  6754. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6755. // itemTaskIndex
  6756. // ].toolChoose[toolIndex].tool.splice(
  6757. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6758. // itemTaskIndex
  6759. // ].toolChoose[toolIndex].tool.indexOf(i),
  6760. // 1
  6761. // );
  6762. // } else {
  6763. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6764. // itemTaskIndex
  6765. // ].toolChoose[toolIndex].tool.push(i);
  6766. // }
  6767. // console.log(
  6768. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6769. // .toolChoose[toolIndex].tool
  6770. // );
  6771. // }
  6772. if (i == 4) {
  6773. if (
  6774. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6775. .toolChoose[toolIndex].askJson.askTitle == "" ||
  6776. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6777. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  6778. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6779. .toolChoose[toolIndex].askJson[0].checkList < 2
  6780. ) {
  6781. this.openTools(itemTaskIndex, 4, toolIndex);
  6782. // this.$message({
  6783. // message: "请填写完整问卷内容",
  6784. // type: "error",
  6785. // });
  6786. return;
  6787. }
  6788. }
  6789. if (i == 45) {
  6790. if (
  6791. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6792. .toolChoose[toolIndex].testJson ||
  6793. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6794. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  6795. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6796. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  6797. ) {
  6798. this.openTools(itemTaskIndex, 45, toolIndex);
  6799. // this.$message({
  6800. // message: "请填写完整问卷内容",
  6801. // type: "error",
  6802. // });
  6803. return;
  6804. }
  6805. }
  6806. if (i == 47) {
  6807. if (
  6808. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6809. .toolChoose[toolIndex].sentenceList ||
  6810. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6811. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  6812. ) {
  6813. this.openTools(itemTaskIndex, 47, toolIndex);
  6814. return;
  6815. }
  6816. }
  6817. // if (i == 48) {
  6818. // if (
  6819. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6820. // .toolChoose[toolIndex].tableJson
  6821. // ) {
  6822. // this.openTools(itemTaskIndex, 48, toolIndex);
  6823. // return;
  6824. // }
  6825. // }
  6826. // if (i == 50) {
  6827. // if (
  6828. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6829. // .toolChoose[toolIndex].uploadJson
  6830. // ) {
  6831. // this.openTools(itemTaskIndex, 50, toolIndex);
  6832. // return;
  6833. // }
  6834. // }
  6835. if (i == 49) {
  6836. if (
  6837. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6838. .toolChoose[toolIndex].groupJson
  6839. ) {
  6840. this.openTools(itemTaskIndex, 49, toolIndex);
  6841. return;
  6842. }
  6843. }
  6844. if (i == 62) {
  6845. if (
  6846. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6847. .toolChoose[toolIndex].videoJson
  6848. ) {
  6849. this.openTools(itemTaskIndex, 62, toolIndex);
  6850. return;
  6851. }
  6852. }
  6853. if (i == 15) {
  6854. if (
  6855. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6856. .toolChoose[toolIndex].answerQ ||
  6857. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6858. .toolChoose[toolIndex].answerQ == ""
  6859. ) {
  6860. this.openTools(itemTaskIndex, 15, toolIndex);
  6861. // this.$message({
  6862. // message: "请填写问答内容",
  6863. // type: "error",
  6864. // });
  6865. return;
  6866. }
  6867. }
  6868. if (i == 40) {
  6869. if (
  6870. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6871. .toolChoose[toolIndex].rateJson ||
  6872. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6873. .toolChoose[toolIndex].rateJson.length
  6874. ) {
  6875. this.openTools(itemTaskIndex, 40, toolIndex);
  6876. return;
  6877. }
  6878. }
  6879. if (i == 41) {
  6880. if (
  6881. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6882. .toolChoose[toolIndex].selectJson ||
  6883. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6884. .toolChoose[toolIndex].selectJson.url == "" ||
  6885. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6886. .toolChoose[toolIndex].selectJson.select.length ||
  6887. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6888. .toolChoose[toolIndex].selectJson.answer.length
  6889. ) {
  6890. this.openTools(itemTaskIndex, 41, toolIndex);
  6891. return;
  6892. }
  6893. }
  6894. if (i == 42) {
  6895. if (
  6896. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6897. .toolChoose[toolIndex].answerQ ||
  6898. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6899. .toolChoose[toolIndex].answerQ == ""
  6900. ) {
  6901. this.openTools(itemTaskIndex, 42, toolIndex);
  6902. return;
  6903. }
  6904. }
  6905. if (
  6906. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6907. .toolChoose[toolIndex].tool.length > 0
  6908. ) {
  6909. if (
  6910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6911. itemTaskIndex
  6912. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6913. ) {
  6914. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6915. itemTaskIndex
  6916. ].toolChoose[toolIndex].tool.splice(
  6917. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6918. itemTaskIndex
  6919. ].toolChoose[toolIndex].tool.indexOf(i),
  6920. 1
  6921. );
  6922. } else {
  6923. // this.$message({
  6924. // message: "每个工具只能添加一个",
  6925. // type: "error",
  6926. // });
  6927. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6928. itemTaskIndex
  6929. ].toolChoose[toolIndex].tool = [];
  6930. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6931. itemTaskIndex
  6932. ].toolChoose[toolIndex].tool.push(i);
  6933. }
  6934. } else {
  6935. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6936. itemTaskIndex
  6937. ].toolChoose[toolIndex].tool.push(i);
  6938. }
  6939. this.$forceUpdate();
  6940. },
  6941. addAskList(index) {
  6942. this.askJson.askJson.splice(index + 1, 0, {
  6943. askstitle: "",
  6944. askItem: 1,
  6945. checkList: [],
  6946. })
  6947. this.askJson.askCount++;
  6948. },
  6949. addTestList(index) {
  6950. this.testJson.testJson.splice(index + 1, 0, {
  6951. teststitle: "",
  6952. testItem: 1,
  6953. checkList: [],
  6954. timuList: [],
  6955. answer: [],
  6956. type: "1",
  6957. })
  6958. this.testJson.testCount++;
  6959. },
  6960. deleteAskList(index) {
  6961. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  6962. this.askJson.askJson.splice(index, 1);
  6963. this.askJson.askCount--;
  6964. } else {
  6965. let _this = this;
  6966. _this
  6967. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6968. confirmButtonText: "确定",
  6969. cancelButtonText: "取消",
  6970. type: "warning",
  6971. })
  6972. .then(() => {
  6973. _this.askJson.askJson.splice(index, 1);
  6974. _this.askJson.askCount--;
  6975. })
  6976. .catch(() => {
  6977. return;
  6978. });
  6979. }
  6980. },
  6981. deleteTestList(index) {
  6982. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  6983. this.testJson.testJson.splice(index, 1);
  6984. this.testJson.testCount--;
  6985. } else {
  6986. let _this = this;
  6987. _this
  6988. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6989. confirmButtonText: "确定",
  6990. cancelButtonText: "取消",
  6991. type: "warning",
  6992. })
  6993. .then(() => {
  6994. _this.testJson.testJson.splice(index, 1);
  6995. _this.testJson.testCount--;
  6996. })
  6997. .catch(() => {
  6998. return;
  6999. });
  7000. }
  7001. },
  7002. askMove(type, index) {
  7003. if (type == 1) {
  7004. if (index > 0) {
  7005. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  7006. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7007. this.askJson.askJson[index - 1] = b;
  7008. this.askJson.askJson[index] = a;
  7009. }
  7010. } else {
  7011. if (
  7012. index < this.askJson.askJson.length - 1
  7013. ) {
  7014. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  7015. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7016. this.askJson.askJson[index + 1] = b;
  7017. this.askJson.askJson[index] = a;
  7018. }
  7019. }
  7020. this.$forceUpdate();
  7021. },
  7022. checkMove(type, index, checkIndex) {
  7023. if (type == 1) {
  7024. if (checkIndex > 0) {
  7025. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  7026. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7027. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  7028. this.askJson.askJson[index].checkList[checkIndex] = a;
  7029. }
  7030. } else {
  7031. if (
  7032. checkIndex < this.askJson.askJson[index].checkList.length - 1
  7033. ) {
  7034. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  7035. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7036. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  7037. this.askJson.askJson[index].checkList[checkIndex] = a;
  7038. }
  7039. }
  7040. this.$forceUpdate();
  7041. },
  7042. testMove(type, index) {
  7043. if (type == 1) {
  7044. if (index > 0) {
  7045. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  7046. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7047. this.testJson.testJson[index - 1] = b;
  7048. this.testJson.testJson[index] = a;
  7049. }
  7050. } else {
  7051. if (
  7052. index < this.testJson.testJson.length - 1
  7053. ) {
  7054. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  7055. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7056. this.testJson.testJson[index + 1] = b;
  7057. this.testJson.testJson[index] = a;
  7058. }
  7059. }
  7060. this.$forceUpdate();
  7061. },
  7062. tcheckMove(type, index, checkIndex) {
  7063. if (type == 1) {
  7064. if (checkIndex > 0) {
  7065. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  7066. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7067. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  7068. this.testJson.testJson[index].checkList[checkIndex] = a;
  7069. }
  7070. } else {
  7071. if (
  7072. checkIndex < this.testJson.testJson[index].checkList.length - 1
  7073. ) {
  7074. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  7075. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7076. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  7077. this.testJson.testJson[index].checkList[checkIndex] = a;
  7078. }
  7079. }
  7080. this.$forceUpdate();
  7081. },
  7082. addcheckList(json, index) {
  7083. // json.checkList.length++;
  7084. json.checkList.splice(index + 1, 0, '')
  7085. json.askItem++;
  7086. this.$forceUpdate();
  7087. },
  7088. deletecheckList(json, index) {
  7089. // json.checkList.length--;
  7090. json.checkList.splice(index, 1)
  7091. json.askItem--;
  7092. this.$forceUpdate();
  7093. },
  7094. addTcheckList(json, index) {
  7095. // json.checkList.length++;
  7096. json.checkList.splice(index + 1, 0, '')
  7097. json.testItem++;
  7098. this.$forceUpdate();
  7099. },
  7100. deleteTcheckList(json, index) {
  7101. // json.checkList.length--;
  7102. json.checkList.splice(index, 1)
  7103. json.testItem--;
  7104. this.$forceUpdate();
  7105. },
  7106. checkTestType(type, json) {
  7107. json.type = type;
  7108. setTimeout(() => {
  7109. json.answer = [];
  7110. }, 100)
  7111. },
  7112. checkAskType(type, json) {
  7113. json.type = type;
  7114. // json.checkList = [];
  7115. this.$forceUpdate();
  7116. },
  7117. addSelectList(json) {
  7118. json.select.push("");
  7119. json.answer.push("");
  7120. },
  7121. deleteSelectList(json) {
  7122. // json.select.length--;
  7123. // json.answer.length--;
  7124. json.select.splice(json.select.length - 1, 1);
  7125. json.answer.splice(json.answer.length - 1, 1);
  7126. },
  7127. addAsk() {
  7128. if (this.askJson.askTitle === "") {
  7129. this.$message.error("标题不能为空!");
  7130. return;
  7131. }
  7132. var aj = this.askJson.askJson;
  7133. var b = 1;
  7134. for (var i = 0; i < aj.length; i++) {
  7135. if (aj[i].askstitle === "") {
  7136. var a = 1;
  7137. for (let index = 0; index < aj[i].askItem; index++) {
  7138. const element = aj[i].checkList[index]
  7139. ? aj[i].checkList[index]
  7140. : "";
  7141. if (element != "") {
  7142. b++;
  7143. this.$message.error(`请将题目${i + 1}填写完整。`);
  7144. return;
  7145. } else {
  7146. a++;
  7147. }
  7148. }
  7149. if (b == 1) {
  7150. this.$message.error("至少填写一个问题");
  7151. return;
  7152. }
  7153. } else if (aj[i].askstitle != "") {
  7154. for (let index = 0; index < aj[i].askItem; index++) {
  7155. const element = aj[i].checkList[index]
  7156. ? aj[i].checkList[index]
  7157. : "";
  7158. var index = 0;
  7159. for (var z = 0; z < aj[i].checkList.length; z++) {
  7160. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7161. if (checkC != "") {
  7162. index++;
  7163. } else {
  7164. this.$message.error(`题目${i + 1}选项不能为空!`);
  7165. return;
  7166. }
  7167. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7168. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7169. if (checkC == checkC2) {
  7170. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7171. return;
  7172. }
  7173. }
  7174. }
  7175. b++;
  7176. if (index < 2) {
  7177. this.$message.error("每道题目至少需要设置2个选项。");
  7178. return;
  7179. }
  7180. }
  7181. }
  7182. }
  7183. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7184. var elc = el.checkList.filter((element) => {
  7185. return element != "";
  7186. });
  7187. return el.askstitle != "" && elc.length != 0;
  7188. });
  7189. if (!this.dialogVisible4) {
  7190. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7191. this.taskCount
  7192. ].toolChoose[this.toolIndex] = this.askJson;
  7193. }
  7194. this.dialogVisible5 = false;
  7195. if (
  7196. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7197. .toolChoose[this.toolIndex].tool != 4
  7198. ) {
  7199. this.addTools(4, this.taskCount, this.toolIndex);
  7200. }
  7201. },
  7202. addTest() {
  7203. // if (this.testJson.testTitle === "") {
  7204. // this.$message.error("标题不能为空!");
  7205. // return;
  7206. // }
  7207. var aj = this.testJson.testJson;
  7208. var b = 1;
  7209. for (var i = 0; i < aj.length; i++) {
  7210. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  7211. var a = 1;
  7212. for (let index = 0; index < aj[i].testItem; index++) {
  7213. const element = aj[i].checkList[index]
  7214. ? aj[i].checkList[index]
  7215. : "";
  7216. if (element != "") {
  7217. b++;
  7218. this.$message.error(`请将题目${i + 1}填写完整。`);
  7219. return;
  7220. } else {
  7221. a++;
  7222. }
  7223. }
  7224. if (b == 1) {
  7225. this.$message.error("至少填写一个问题");
  7226. return;
  7227. }
  7228. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  7229. for (let index = 0; index < aj[i].testItem; index++) {
  7230. const element = aj[i].checkList[index]
  7231. ? aj[i].checkList[index]
  7232. : "";
  7233. var index = 0;
  7234. for (var z = 0; z < aj[i].checkList.length; z++) {
  7235. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7236. if (checkC != "") {
  7237. index++;
  7238. } else {
  7239. this.$message.error(`题目${i + 1}选项不能为空!`);
  7240. return;
  7241. }
  7242. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7243. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7244. if (checkC == checkC2) {
  7245. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7246. return;
  7247. }
  7248. }
  7249. }
  7250. b++;
  7251. if (index < 2) {
  7252. this.$message.error("每道题目至少需要设置2个选项。");
  7253. return;
  7254. }
  7255. if (
  7256. (aj[i].type == "2" && !aj[i].answer.length) ||
  7257. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  7258. ) {
  7259. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  7260. return;
  7261. }
  7262. }
  7263. }
  7264. }
  7265. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7266. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7267. var elc = el.checkList.filter((element) => {
  7268. return element != "";
  7269. });
  7270. return (
  7271. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7272. );
  7273. });
  7274. isTestJson.testCount = isTestJson.testJson.length;
  7275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7276. this.taskCount
  7277. ].toolChoose[this.toolIndex].testJson = isTestJson;
  7278. this.dialogVisibleChoice = false;
  7279. if (
  7280. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7281. .toolChoose[this.toolIndex].tool != 45
  7282. ) {
  7283. this.addTools(45, this.taskCount, this.toolIndex);
  7284. }
  7285. },
  7286. addVideoJson(videoJson) {
  7287. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7288. this.taskCount
  7289. ].toolChoose[this.toolIndex].videoJson = videoJson;
  7290. this.dialogVisibleVideo = false;
  7291. if (
  7292. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7293. .toolChoose[this.toolIndex].tool != 62
  7294. ) {
  7295. this.addTools(62, this.taskCount, this.toolIndex);
  7296. }
  7297. },
  7298. //自动获取剪贴板
  7299. pasteOption() {
  7300. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7301. if (!iframe) {
  7302. this.$message.error("请使用AI共创生成题目");
  7303. return;
  7304. }
  7305. let copyData = iframe.contentWindow.copyData;
  7306. if (!copyData || !copyData.selectData.length) {
  7307. this.$message.error("请使用AI共创生成题目");
  7308. return;
  7309. }
  7310. let selectData = copyData.selectData;
  7311. for (var i = 0; i < selectData.length; i++) {
  7312. let answer = 0;
  7313. switch (selectData[i].answer[0]) {
  7314. case "A":
  7315. answer = 0;
  7316. break;
  7317. case "B":
  7318. answer = 1;
  7319. break;
  7320. case "C":
  7321. answer = 2;
  7322. break;
  7323. case "D":
  7324. answer = 3;
  7325. break;
  7326. case "E":
  7327. answer = 4;
  7328. break;
  7329. default:
  7330. break;
  7331. }
  7332. this.testJson.testJson.push({
  7333. teststitle: selectData[i].subject,
  7334. testItem: selectData[i].options.length,
  7335. checkList: selectData[i].options,
  7336. timuList: [],
  7337. answer: answer,
  7338. type: "1",
  7339. });
  7340. this.testJson.testCount++;
  7341. }
  7342. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7343. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7344. var elc = el.checkList.filter((element) => {
  7345. return element != "";
  7346. });
  7347. return (
  7348. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7349. );
  7350. });
  7351. isTestJson.testCount = isTestJson.testJson.length;
  7352. this.testJson = isTestJson;
  7353. this.$forceUpdate();
  7354. },
  7355. pasteTask() {
  7356. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7357. if (!iframe) {
  7358. this.$message.error("请使用AI共创生成");
  7359. return;
  7360. }
  7361. let copyData = iframe.contentWindow.copyData;
  7362. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  7363. this.$message.error("请使用AI共创生成");
  7364. return;
  7365. }
  7366. let stageTasksData = copyData.tasksData;
  7367. let taskA = [];
  7368. let tasks = stageTasksData;
  7369. for (var j = 0; j < tasks.length; j++) {
  7370. taskA.push({
  7371. task: tasks[j].taskName,
  7372. taskDetail: tasks[j].taskDecs,
  7373. chapterData: [],
  7374. toolText: "",
  7375. toolChoose: [
  7376. {
  7377. tool: [],
  7378. toolDetail: "",
  7379. toolType: 0,
  7380. askCount: 1,
  7381. askTitle: "",
  7382. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7383. },
  7384. ],
  7385. isShowTools: false,
  7386. askCount: 1,
  7387. isFold: 0,
  7388. askTitle: "",
  7389. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7390. checkJson: [{ checkCount: [], checkPerent: [] }],
  7391. homeworkList: [],
  7392. });
  7393. }
  7394. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  7395. this.$forceUpdate();
  7396. },
  7397. pasteStage() {
  7398. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7399. if (!iframe) {
  7400. this.$message.error("请使用AI共创生成");
  7401. return;
  7402. }
  7403. let copyData = iframe.contentWindow.copyData;
  7404. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  7405. this.$message.error("请使用AI共创生成");
  7406. return;
  7407. }
  7408. let stageData = copyData.stageData;
  7409. let stage = [];
  7410. for (var i = 0; i < stageData.length; i++) {
  7411. stage.push({
  7412. dyName: stageData[i], //单元标题
  7413. chapterInfo: [
  7414. {
  7415. isread: false,
  7416. chapterid: this.guid(),
  7417. title: "",
  7418. courseName: "",
  7419. taskJson: [
  7420. {
  7421. task: "",
  7422. taskDetail: "",
  7423. chapterData: [],
  7424. toolText: "",
  7425. toolChoose: [
  7426. {
  7427. tool: [],
  7428. toolDetail: "",
  7429. toolType: 0,
  7430. askCount: 1,
  7431. askTitle: "",
  7432. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7433. },
  7434. ],
  7435. isShowTools: false,
  7436. askCount: 1,
  7437. isFold: 0,
  7438. askTitle: "",
  7439. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7440. checkJson: [{ checkCount: [], checkPerent: [] }],
  7441. homeworkList: [],
  7442. },
  7443. ],
  7444. itemCount: 1,
  7445. fileList1: [],
  7446. video: [],
  7447. testData: [],
  7448. pData: [],
  7449. templateArray: [],
  7450. },
  7451. ],
  7452. });
  7453. }
  7454. let _this = this;
  7455. _this
  7456. .$confirm("确定选择智能粘贴模板吗?修改课程时无法重置课程模板。", "提示", {
  7457. confirmButtonText: "确定",
  7458. cancelButtonText: "取消",
  7459. type: "warning",
  7460. })
  7461. .then(() => {
  7462. _this.unitIndex = 0;
  7463. _this.unitJson = stage;
  7464. _this.steps++;
  7465. _this.updateWork();
  7466. })
  7467. .catch(() => {
  7468. return;
  7469. });
  7470. },
  7471. openStageBox() {
  7472. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  7473. this.dialogVisibleStageChange = true;
  7474. },
  7475. updateChange() {
  7476. this.$confirm(
  7477. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  7478. "提示",
  7479. {
  7480. confirmButtonText: "确定",
  7481. cancelButtonText: "取消",
  7482. type: "warning",
  7483. }
  7484. )
  7485. .then(() => {
  7486. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  7487. this.updateWork()
  7488. this.dialogVisibleStageChange = false;
  7489. })
  7490. .catch(() => {
  7491. return;
  7492. });
  7493. },
  7494. addAnswer() {
  7495. if (this.answerQ == "") {
  7496. this.$message.error("请输入您想要问的问题");
  7497. return;
  7498. }
  7499. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7500. this.taskCount
  7501. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7502. this.dialogVisible8 = false;
  7503. if (
  7504. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7505. .toolChoose[this.toolIndex].tool != 15
  7506. ) {
  7507. this.addTools(15, this.taskCount, this.toolIndex);
  7508. }
  7509. },
  7510. addMp3Answer() {
  7511. if (this.answerQ == "") {
  7512. this.$message.error("请输入您想要回答的问题");
  7513. return;
  7514. }
  7515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7516. this.taskCount
  7517. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7518. this.dialogVisibleMp3 = false;
  7519. },
  7520. addRateAnswer() {
  7521. var a = 1;
  7522. for (var i = 0; i < this.rateJson.length; i++) {
  7523. if (this.rateJson[i].value == "") {
  7524. a = 2;
  7525. break;
  7526. }
  7527. }
  7528. if (a == 2) {
  7529. this.$message.error("请把评价信息填写完整");
  7530. return;
  7531. }
  7532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7533. this.taskCount
  7534. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7535. this.dialogVisibleRate = false;
  7536. if (
  7537. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7538. .toolChoose[this.toolIndex].tool != 40
  7539. ) {
  7540. this.addTools(40, this.taskCount, this.toolIndex);
  7541. }
  7542. },
  7543. addSelectAnswer() {
  7544. if (this.selectJson.url == "") {
  7545. this.$message.error("请上传题目");
  7546. return;
  7547. }
  7548. if (!this.selectJson.select.length) {
  7549. this.$message.error("请添加选项");
  7550. return;
  7551. }
  7552. if (!this.selectJson.answer.length) {
  7553. this.$message.error("请设置答案");
  7554. return;
  7555. }
  7556. var a = 1;
  7557. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7558. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7559. a = 2;
  7560. }
  7561. }
  7562. if (a == 2) {
  7563. this.$message.error("请设置答案");
  7564. return;
  7565. }
  7566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7567. this.taskCount
  7568. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7569. this.dialogVisibleSelect = false;
  7570. if (
  7571. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7572. .toolChoose[this.toolIndex].tool != 41
  7573. ) {
  7574. this.addTools(41, this.taskCount, this.toolIndex);
  7575. }
  7576. },
  7577. nextSelectSteps() {
  7578. if (this.selectJson.url == "") {
  7579. this.$message.error("请上传题目");
  7580. return;
  7581. }
  7582. if (!this.selectJson.select.length) {
  7583. this.$message.error("请添加选项");
  7584. return;
  7585. } else {
  7586. for (var z = 0; z < this.selectJson.select.length; z++) {
  7587. let checkC = this.selectJson.select[z];
  7588. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  7589. let checkC2 = this.selectJson.select[z2];
  7590. if (checkC == checkC2) {
  7591. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7592. return;
  7593. }
  7594. }
  7595. }
  7596. }
  7597. var a = 1;
  7598. for (var i = 0; i < this.selectJson.select.length; i++) {
  7599. if (!this.selectJson.select[i]) {
  7600. a = 2;
  7601. }
  7602. }
  7603. if (a == 2) {
  7604. this.$message.error("添加的选项不能为空");
  7605. return;
  7606. }
  7607. this.selectSteps++;
  7608. },
  7609. selectCourseDetail() {
  7610. if (this.cid == "" || this.cid == undefined) {
  7611. console.log("这是新增课程");
  7612. this.selectAllType();
  7613. } else {
  7614. this.cidType = 1;
  7615. let params = {
  7616. cid: this.cid,
  7617. };
  7618. this.ajax
  7619. .get(this.$store.state.api + "select_course_detail", params)
  7620. .then((res) => {
  7621. this.loading = true;
  7622. this.unitJson = JSON.parse(res.data[0][0].chapters);
  7623. for (var j = 0; j < this.unitJson.length; j++) {
  7624. for (
  7625. var k = 0;
  7626. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  7627. k++
  7628. ) {
  7629. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  7630. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7631. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7632. : [];
  7633. let _chapterData = [];
  7634. for (
  7635. var c = 0;
  7636. c <
  7637. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  7638. .length;
  7639. c++
  7640. ) {
  7641. if (
  7642. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7643. ) {
  7644. _chapterData.push(
  7645. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7646. );
  7647. }
  7648. }
  7649. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  7650. _chapterData;
  7651. }
  7652. }
  7653. this.$forceUpdate();
  7654. this.courseName = res.data[0][0].title;
  7655. this.courseText = res.data[0][0].brief;
  7656. this.evalua = res.data[0][0].evaId;
  7657. this.cover = JSON.parse(res.data[0][0].cover);
  7658. this.noneBtnImg = this.cover.length >= 1;
  7659. // this.checkboxList =
  7660. // res.data[0][0].course_student.length > 0
  7661. // ? JSON.parse(res.data[0][0].course_student)
  7662. // : [];
  7663. this.checkboxList2 = res.data[0][0].juri
  7664. ? res.data[0][0].juri.split(",")
  7665. : [];
  7666. this.inviteCode = [];
  7667. for (var i = 0; i < res.data[2].length; i++) {
  7668. this.inviteCode.push({
  7669. cid: res.data[2][i].classid,
  7670. ic: res.data[2][i].code,
  7671. });
  7672. }
  7673. this.checkboxList3 = res.data[0][0].course_teacher
  7674. ? res.data[0][0].course_teacher.split(",")
  7675. : [];
  7676. // this.isTeacherSee =
  7677. // res.data[0][0].is_teacher_look == 0 ? true : false;
  7678. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  7679. this.myWord = res.data[0][0].template;
  7680. this.templateC.id = "123";
  7681. this.courseUserid = res.data[0][0].userid;
  7682. // if(this.courseUserid == this.userid){
  7683. // this.InviteChange(this.checkboxList2)
  7684. // }
  7685. this.nbOrder = res.data[0][0].ordernumber;
  7686. this.courseTypeId = [];
  7687. for (var i = 0; i < res.data[1].length; i++) {
  7688. this.courseTypeId.push(res.data[1][i].typeid);
  7689. }
  7690. console.log(this.courseTypeId);
  7691. // if (this.timer) clearInterval(this.timer);
  7692. if (this.timer) clearTimeout(this.timer);
  7693. this.timer = null;
  7694. // this.timer = setInterval(() => {
  7695. this.seleteCourseUpdate();
  7696. this.setMan();
  7697. this.selectAllType();
  7698. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  7699. // }, 5000);
  7700. this.$forceUpdate();
  7701. setTimeout(() => {
  7702. this.checkEva(this.evalua);
  7703. setTimeout(() => {
  7704. this.checkEva(this.evalua);
  7705. }, 100);
  7706. }, 100);
  7707. })
  7708. .catch((err) => {
  7709. console.error(err);
  7710. });
  7711. }
  7712. },
  7713. seleteCourseUpdate() {
  7714. let params = {
  7715. cid: this.cid,
  7716. };
  7717. this.ajax
  7718. .get(this.$store.state.api + "select_course_detail", params)
  7719. .then((res) => {
  7720. // console.log(this.unitJson);
  7721. let unitJson = JSON.parse(res.data[0][0].chapters);
  7722. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  7723. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  7724. let _unitJson = [];
  7725. let _chapAarry = [];
  7726. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  7727. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  7728. let index = 1;
  7729. let chapindex;
  7730. if (_unitJson2.length > unitJson.length) {
  7731. for (let c = 0; c < _unitJson2.length; c++) {
  7732. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  7733. }
  7734. for (let j = 0; j < unitJson.length; j++) {
  7735. let count = 0;
  7736. for (let k = 0; k < _unitJson2.length; k++) {
  7737. if (
  7738. unitJson[j].chapterInfo[0].chapterid ==
  7739. _unitJson2[k].chapterInfo[0].chapterid
  7740. ) {
  7741. count++;
  7742. _chapAarry.splice(
  7743. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7744. 1
  7745. );
  7746. _unitJson.push(unitJson[j]);
  7747. break;
  7748. }
  7749. }
  7750. // if(count === 0){
  7751. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  7752. // }
  7753. }
  7754. for (let k = 0; k < _unitJson2.length; k++) {
  7755. if (_unitJson2[k].isUpdate == 1) {
  7756. _chapAarry.splice(
  7757. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7758. 1
  7759. );
  7760. _unitJson.push(_unitJson2[k]);
  7761. }
  7762. }
  7763. console.log(_chapAarry);
  7764. for (let d = 0; d < _unitJson2.length; d++) {
  7765. if (
  7766. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  7767. ) {
  7768. if (_unitIndex == d) {
  7769. index = 2;
  7770. }
  7771. chapindex = d;
  7772. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  7773. }
  7774. }
  7775. } else {
  7776. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  7777. }
  7778. for (let i = 0; i < unitJson.length; i++) {
  7779. if (
  7780. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  7781. _unitJson[i].chapterInfo[0].chapterid !=
  7782. unitJson[i].chapterInfo[0].chapterid
  7783. ) {
  7784. if (i == _unitJson.length - 1) {
  7785. // this.unitIndex++
  7786. _unitIndex2++;
  7787. }
  7788. _unitJson.splice(i, 0, unitJson[i]);
  7789. } else if (i > _unitJson.length - 1) {
  7790. _unitJson.push(unitJson[i]);
  7791. } else if (
  7792. _unitJson[i].chapterInfo[0].chapterid ==
  7793. unitJson[i].chapterInfo[0].chapterid
  7794. ) {
  7795. _unitJson[i] = unitJson[i];
  7796. }
  7797. // if (i == _unitIndex) {
  7798. // continue;
  7799. // } else
  7800. }
  7801. if (_chapAarry.length && index != 2) {
  7802. if (chapindex < _unitIndex) {
  7803. this.isDelete = 2;
  7804. // this.unitIndex--;
  7805. _unitIndex2--;
  7806. } else if (
  7807. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  7808. _unitJson[_unitIndex].chapterInfo[0].chapterid
  7809. ) {
  7810. this.isDelete = 2;
  7811. for (let n = 0; n < _unitJson.length; n++) {
  7812. if (
  7813. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  7814. _unitJson[n].chapterInfo[0].chapterid
  7815. ) {
  7816. // this.unitIndex = n;
  7817. _unitIndex2 = n;
  7818. _unitJson[n] = _unitJson2[_unitIndex];
  7819. break;
  7820. }
  7821. }
  7822. }
  7823. } else if (index != 2) {
  7824. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  7825. _unitJson2[_unitIndex];
  7826. for (
  7827. var ci = 0;
  7828. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  7829. ci++
  7830. ) {
  7831. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  7832. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  7833. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7834. .toolChoose
  7835. : [];
  7836. let _chapterData = [];
  7837. for (
  7838. var c = 0;
  7839. c <
  7840. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  7841. .length;
  7842. c++
  7843. ) {
  7844. if (
  7845. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7846. .chapterData[c]
  7847. ) {
  7848. _chapterData.push(
  7849. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7850. .chapterData[c]
  7851. );
  7852. }
  7853. }
  7854. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  7855. _chapterData;
  7856. }
  7857. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  7858. }
  7859. if (index == 1) {
  7860. this.unitJson = _unitJson;
  7861. this.$forceUpdate();
  7862. setTimeout(() => {
  7863. if (this.unitIndex != _unitIndex2) {
  7864. this.isDelete = 2;
  7865. this.unitIndex = _unitIndex2;
  7866. }
  7867. }, 0);
  7868. this.timer = setTimeout(() => {
  7869. this.seleteCourseUpdate();
  7870. }, 1000);
  7871. } else if (index == 2) {
  7872. let _this = this;
  7873. _this
  7874. .$confirm(
  7875. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  7876. "提示",
  7877. {
  7878. confirmButtonText: "需要",
  7879. cancelButtonText: "取消",
  7880. type: "warning",
  7881. }
  7882. )
  7883. .then(() => {
  7884. if (_this.time()) {
  7885. _this.restoreWork(
  7886. _chapAarry[0],
  7887. _unitJson,
  7888. chapindex,
  7889. _unitJson2,
  7890. _unitIndex2
  7891. );
  7892. }
  7893. })
  7894. .catch(() => {
  7895. _this.unitJson = _unitJson;
  7896. _this.$forceUpdate();
  7897. setTimeout(() => {
  7898. if (this.unitIndex != _unitIndex2) {
  7899. this.isDelete = 2;
  7900. this.unitIndex = _unitIndex2;
  7901. }
  7902. }, 0);
  7903. _this.timer = setTimeout(() => {
  7904. _this.seleteCourseUpdate();
  7905. }, 1000);
  7906. });
  7907. }
  7908. })
  7909. .catch((err) => {
  7910. console.error(err);
  7911. });
  7912. },
  7913. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  7914. let params = [
  7915. {
  7916. cid: this.cid,
  7917. chapters: JSON.stringify(this.unitJson),
  7918. uid: this.userid,
  7919. chapid: chapid,
  7920. },
  7921. ];
  7922. this.ajax
  7923. .post(this.$store.state.api + "restoreWork", params)
  7924. .then((res) => {
  7925. this.$message({
  7926. message: "恢复成功",
  7927. type: "success",
  7928. });
  7929. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  7930. this.unitJson = unitJson;
  7931. this.$forceUpdate();
  7932. setTimeout(() => {
  7933. if (this.unitIndex != unitIndex2) {
  7934. this.isDelete = 2;
  7935. this.unitIndex = unitIndex2;
  7936. }
  7937. }, 0);
  7938. this.timer = setTimeout(() => {
  7939. this.seleteCourseUpdate();
  7940. }, 1000);
  7941. })
  7942. .catch((err) => {
  7943. this.$message.error("网络不佳");
  7944. console.error(err);
  7945. });
  7946. },
  7947. getTypeName() {
  7948. console.log(this.courseTypeId);
  7949. this.$forceUpdate();
  7950. },
  7951. selectAllType() {
  7952. let params = {
  7953. org: this.org && this.org != "" ? this.org : "",
  7954. oid: this.oid && this.oid != "" ? this.oid : "",
  7955. };
  7956. this.ajax
  7957. .get(this.$store.state.api + "selectAllType", params)
  7958. .then((res) => {
  7959. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7960. res.data[0] = [...res.data[0], ...res.data[4]]
  7961. }
  7962. this.CourseType = res.data;
  7963. this.CourseType2 = [
  7964. { name: "智见课程", id: [] },
  7965. { name: "智行课程", id: [] },
  7966. { name: "智创课程", id: [] },
  7967. ];
  7968. for (var cti = 0; cti < res.data[0].length; cti++) {
  7969. if (
  7970. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  7971. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  7972. ) {
  7973. this.CourseType2[0].id.push(res.data[0][cti].id);
  7974. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  7975. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  7976. this.CourseType2[1].id.push(res.data[0][cti].id);
  7977. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7978. this.CourseType2[2].id.push(res.data[0][cti].id);
  7979. }
  7980. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  7981. res.data[0][cti].name = "年级";
  7982. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  7983. res.data[0][cti].name = "学科";
  7984. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7985. res.data[0][cti].name = "主题";
  7986. }
  7987. }
  7988. let _courseTypeId = [];
  7989. for (var i = 0; i < res.data[0].length; i++) {
  7990. if (!this.cid) {
  7991. this.courseTypeId[res.data[0][i].id] = [];
  7992. }
  7993. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  7994. // }
  7995. this.CourseTypeJson[res.data[0][i].id] = [];
  7996. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7997. if (res.data[0][i].name == "栏目") {
  7998. this.CourseType[0][i].name = "主题";
  7999. }
  8000. }
  8001. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8002. for (var j = 0; j < res.data[1].length; j++) {
  8003. if (
  8004. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8005. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8006. ) {
  8007. _courseTypeId.push(res.data[1][j].id);
  8008. }
  8009. if (res.data[0][i].id == res.data[1][j].pid) {
  8010. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8011. }
  8012. }
  8013. } else {
  8014. if (res.data[2].length > 0) {
  8015. for (var j = 0; j < res.data[2].length; j++) {
  8016. if (
  8017. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8018. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8019. ) {
  8020. _courseTypeId.push(res.data[2][j].id);
  8021. }
  8022. if (res.data[0][i].id == res.data[2][j].pid) {
  8023. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8024. }
  8025. }
  8026. }
  8027. if (res.data[3].length > 0) {
  8028. for (var j = 0; j < res.data[3].length; j++) {
  8029. if (
  8030. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8031. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8032. ) {
  8033. _courseTypeId.push(res.data[3][j].id);
  8034. }
  8035. if (res.data[0][i].id == res.data[3][j].pid) {
  8036. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8037. }
  8038. }
  8039. }
  8040. }
  8041. }
  8042. this.courseTypeId = _courseTypeId;
  8043. })
  8044. .catch((err) => {
  8045. console.error(err);
  8046. });
  8047. },
  8048. selectType() {
  8049. this.ajax
  8050. .get(this.$store.state.api + "selectType")
  8051. .then((res) => {
  8052. this.CourseType = res.data;
  8053. for (var i = 0; i < res.data[0].length; i++) {
  8054. if (!this.cid) {
  8055. this.courseTypeId[res.data[0][i].id] = "";
  8056. }
  8057. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8058. if (res.data[0][i].name == "栏目") {
  8059. this.CourseType[0][i].name = "主题";
  8060. }
  8061. }
  8062. for (var j = 0; j < res.data[1].length; j++) {
  8063. if (res.data[0][i].id == res.data[1][j].pid) {
  8064. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8065. this.CourseTypeJson[res.data[0][i].id] = [];
  8066. }
  8067. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8068. }
  8069. }
  8070. }
  8071. this.selectTypeByOid();
  8072. this.selectTypeByOrg();
  8073. })
  8074. .catch((err) => {
  8075. console.error(err);
  8076. });
  8077. },
  8078. selectTypeByOid() {
  8079. let params = {
  8080. oid: this.oid,
  8081. };
  8082. this.ajax
  8083. .get(this.$store.state.api + "selectTypeByOid", params)
  8084. .then((res) => {
  8085. for (var i = 0; i < res.data[0].length; i++) {
  8086. for (var j = 0; j < res.data[1].length; j++) {
  8087. if (res.data[0][i].id == res.data[1][j].pid) {
  8088. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8089. this.CourseTypeJson[res.data[0][i].id] = [];
  8090. }
  8091. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8092. }
  8093. }
  8094. }
  8095. })
  8096. .catch((err) => {
  8097. console.error(err);
  8098. });
  8099. },
  8100. selectTypeByOrg() {
  8101. let params = {
  8102. oid: this.org,
  8103. };
  8104. this.ajax
  8105. .get(this.$store.state.api + "selectTypeByOrg", params)
  8106. .then((res) => {
  8107. for (var i = 0; i < res.data[0].length; i++) {
  8108. for (var j = 0; j < res.data[1].length; j++) {
  8109. if (res.data[0][i].id == res.data[1][j].pid) {
  8110. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8111. this.CourseTypeJson[res.data[0][i].id] = [];
  8112. }
  8113. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8114. }
  8115. }
  8116. }
  8117. this.$forceUpdate();
  8118. })
  8119. .catch((err) => {
  8120. console.error(err);
  8121. });
  8122. },
  8123. OtherMb(type) {
  8124. this.typeMode = type;
  8125. setTimeout(() => {
  8126. this.checkEva(this.checkId);
  8127. setTimeout(() => {
  8128. this.checkEva(this.checkId);
  8129. }, 100);
  8130. }, 100);
  8131. },
  8132. openMember() {
  8133. this.searchTN = "";
  8134. this.getTeacher();
  8135. this.dialogVisibleMember = true;
  8136. },
  8137. checkEva(id, type) {
  8138. this.dialogVisiblemb = false;
  8139. this.selectEva();
  8140. if (this.evalua != id && type == 2) {
  8141. this.$message.success("导入成功");
  8142. }
  8143. this.evalua = id;
  8144. this.checkId = id;
  8145. if (this.evalua != "") {
  8146. for (var i = 0; i < this.evaJuri.length; i++) {
  8147. if (this.evalua == this.evaJuri[i].id) {
  8148. this.eTitle = this.evaJuri[i].title;
  8149. this.eJson = JSON.parse(this.evaJuri[i].content);
  8150. }
  8151. }
  8152. this.data.data = [];
  8153. this.$forceUpdate();
  8154. setTimeout(() => {
  8155. this.setMindData();
  8156. }, 1000);
  8157. }
  8158. },
  8159. deleteEva() {
  8160. let _this = this;
  8161. if (_this.evalua == "") {
  8162. this.$message.warning("内容已经清空了,请勿重复清空");
  8163. return;
  8164. }
  8165. _this
  8166. .$confirm("确定删除此目标吗?", "提示", {
  8167. confirmButtonText: "确定",
  8168. cancelButtonText: "取消",
  8169. type: "warning",
  8170. })
  8171. .then(() => {
  8172. _this.evalua = "";
  8173. _this.checkId = "";
  8174. _this.eTitle = "";
  8175. let _unitJson = _this.unitJson;
  8176. for (var i = 0; i < _unitJson.length; i++) {
  8177. let _task = _unitJson[i].chapterInfo[0].taskJson;
  8178. for (var j = 0; j < _task.length; j++) {
  8179. let _eList = _task[j].eList;
  8180. for (var k = 0; k < _eList.length; k++) {
  8181. delete _eList[k].target;
  8182. }
  8183. }
  8184. }
  8185. _this.$forceUpdate();
  8186. if (_this.cid) {
  8187. _this.updateWork();
  8188. }
  8189. })
  8190. .catch(() => {
  8191. return;
  8192. });
  8193. },
  8194. selectEva() {
  8195. let params = {
  8196. oid: this.oid,
  8197. };
  8198. this.ajax
  8199. .get(this.$store.state.api + "selectAllEvaluation", params)
  8200. .then((res) => {
  8201. this.evaJuri = res.data[0];
  8202. })
  8203. .catch((err) => {
  8204. console.error(err);
  8205. });
  8206. },
  8207. setMindData() {
  8208. let targetArray = [];
  8209. this.data.data = [];
  8210. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8211. let _eJson = Object.keys(this.eJson);
  8212. let _e = this.eJson;
  8213. for (let i = 0; i < _eJson.length; i++) {
  8214. let element = _e[_eJson[i]];
  8215. this.data.data.push({
  8216. id: element.id,
  8217. parentid: "root",
  8218. topic: element.name,
  8219. });
  8220. // targetArray.push({
  8221. // id: element.id,
  8222. // parentid: "root",
  8223. // name: element.name,
  8224. // });
  8225. targetArray.push({
  8226. value: element.name,
  8227. label: element.name,
  8228. children: [],
  8229. });
  8230. let _eJsonc = Object.keys(element.child);
  8231. let _e2 = element.child;
  8232. for (let j = 0; j < _eJsonc.length; j++) {
  8233. let _ec = _e2[_eJsonc[j]];
  8234. this.data.data.push({
  8235. id: _ec.id,
  8236. parentid: element.id,
  8237. topic: _ec.name,
  8238. });
  8239. // targetArray.push({
  8240. // id: _ec.id,
  8241. // parentid: element.id,
  8242. // name: _ec.name,
  8243. // });
  8244. targetArray[i].children.push({
  8245. value: _ec.name,
  8246. label: _ec.name,
  8247. children: [],
  8248. });
  8249. let _eJsonz = Object.keys(_ec.child);
  8250. let _e3 = _ec.child;
  8251. for (let z = 0; z < _eJsonz.length; z++) {
  8252. let _ez = _e3[_eJsonz[z]];
  8253. this.data.data.push({
  8254. id: _ez.id,
  8255. parentid: _ec.id,
  8256. topic: _ez.name,
  8257. });
  8258. // targetArray.push({
  8259. // id: _ez.id,
  8260. // parentid: _ec.id,
  8261. // name: _ez.name,
  8262. // });
  8263. targetArray[i].children[j].children.push({
  8264. value: _ez.name,
  8265. label: _ez.name,
  8266. });
  8267. }
  8268. }
  8269. }
  8270. this.targetArray = targetArray;
  8271. this.$forceUpdate();
  8272. },
  8273. /*添加评价 */
  8274. addEList(index, tIndex) {
  8275. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8276. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8277. value: "",
  8278. detail: "",
  8279. score: 5,
  8280. })
  8281. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8282. { value: "", detail: "", score: 5 },
  8283. ]);
  8284. this.$forceUpdate();
  8285. },
  8286. forceUpdate() {
  8287. this.$forceUpdate();
  8288. },
  8289. deletEList(index, tIndex, eIndex) {
  8290. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8291. eIndex,
  8292. 1
  8293. );
  8294. this.$forceUpdate();
  8295. },
  8296. getChoosePic(t) {
  8297. this.chooseType = t;
  8298. this.getAllBanner();
  8299. },
  8300. getAllBanner() {
  8301. this.sysPicVisible = true;
  8302. let params = {
  8303. t: this.chooseType,
  8304. };
  8305. this.ajax
  8306. .get(this.$store.state.api + "selectAllBanner", params)
  8307. .then((res) => {
  8308. this.sysPic = res.data[0];
  8309. })
  8310. .catch((err) => {
  8311. console.error(err);
  8312. });
  8313. },
  8314. // getClass() {
  8315. // let params = {
  8316. // oid: this.oid,
  8317. // };
  8318. // this.ajax
  8319. // .get(this.$store.state.api + "selectClassBySchool", params)
  8320. // .then((res) => {
  8321. // this.classJuri = res.data[0];
  8322. // })
  8323. // .catch((err) => {
  8324. // console.error(err);
  8325. // });
  8326. // },
  8327. deleteSysPic() {
  8328. this.cover = [];
  8329. this.isSysPic = false;
  8330. this.isSysPic2 = false;
  8331. },
  8332. deleteSelectPic() {
  8333. this.selectJson.url = "";
  8334. },
  8335. setEListStar() {
  8336. this.$forceUpdate();
  8337. },
  8338. deletRateList(i) {
  8339. this.rateJson.splice(i, 1);
  8340. },
  8341. addRateList() {
  8342. this.rateJson.push({ detail: "", score: 5, value: "" });
  8343. },
  8344. addSt() {
  8345. this.sentenceList.push({
  8346. sentenceTitle: "",
  8347. addSentence: [],
  8348. rightAnswer: [],
  8349. });
  8350. },
  8351. addSen(i) {
  8352. if (!this.sentenceList[i].sentenceTitle) {
  8353. this.$message.error("请填写卡片内容!");
  8354. return;
  8355. }
  8356. if (this.sentenceList[i].sentenceTitle.length > 10) {
  8357. this.$message.error("卡片内容字数不能超过10位");
  8358. return;
  8359. }
  8360. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  8361. this.$message.error("不能添加重复的卡片内容!");
  8362. return;
  8363. }
  8364. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8365. // this.isPushTitleList.push(this.sentenceTitle);
  8366. this.sentenceList[i].sentenceTitle = "";
  8367. },
  8368. setRightAnswer(s, i, j) {
  8369. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8370. this.sentenceList[i].rightAnswer.push(s);
  8371. }
  8372. },
  8373. returnCard(r, i, j) {
  8374. this.sentenceList[i].rightAnswer.splice(j, 1);
  8375. },
  8376. addSentenceTool() {
  8377. for (var i = 0; i < this.sentenceList.length; i++) {
  8378. if (this.sentenceList[i].rightAnswer.length == 0) {
  8379. this.$message.error(`请将题目${i + 1}设置完整。`);
  8380. return;
  8381. }
  8382. if (
  8383. this.sentenceList[i].addSentence.length !=
  8384. this.sentenceList[i].rightAnswer.length
  8385. ) {
  8386. this.$message.error(`请将题目${i + 1}设置完整。`);
  8387. return;
  8388. }
  8389. }
  8390. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8391. this.taskCount
  8392. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8393. this.sentenceList = [
  8394. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8395. ];
  8396. this.dialogVisibleSentence = false;
  8397. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8398. // itemTaskIndex
  8399. // ].toolChoose[toolIndex].tool = [];
  8400. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8401. // itemTaskIndex
  8402. // ].toolChoose[toolIndex].tool.push(i);
  8403. if (
  8404. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8405. .toolChoose[this.toolIndex].tool != 47
  8406. ) {
  8407. this.addTools(47, this.taskCount, this.toolIndex);
  8408. }
  8409. },
  8410. addTableJson() {
  8411. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8412. // this.$message.error("请将信息填写完整!");
  8413. // return;
  8414. // }
  8415. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8416. this.taskCount
  8417. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  8418. // this.tableJson = [{ text: "" }];
  8419. // this.dialogVisibleTable = false;
  8420. this.$message.success("上传成功");
  8421. if (
  8422. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8423. .toolChoose[this.toolIndex].tool != 48
  8424. ) {
  8425. this.addTools(48, this.taskCount, this.toolIndex);
  8426. }
  8427. },
  8428. addWordJson() {
  8429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8430. this.taskCount
  8431. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  8432. // this.wordJson = [{ text: "" }];
  8433. // this.dialogVisibleWord = false;
  8434. this.$message.success("上传成功");
  8435. if (
  8436. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8437. .toolChoose[this.toolIndex].tool != 52
  8438. ) {
  8439. this.addTools(52, this.taskCount, this.toolIndex);
  8440. }
  8441. },
  8442. addMoreUpload() {
  8443. if (this.uploadJson.length == 0) {
  8444. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8445. this.taskCount
  8446. ].toolChoose[this.toolIndex].uploadJson = [];
  8447. } else {
  8448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8449. this.taskCount
  8450. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  8451. }
  8452. this.uploadJson = [];
  8453. this.dialogVisibleMoreUpload = false;
  8454. if (
  8455. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8456. .toolChoose[this.toolIndex].tool != 50
  8457. ) {
  8458. this.addTools(50, this.taskCount, this.toolIndex);
  8459. }
  8460. },
  8461. addPreTime() {
  8462. if (this.preTime == 0) {
  8463. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8464. this.taskCount
  8465. ].toolChoose[this.toolIndex].preTime = 0;
  8466. } else {
  8467. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8468. this.taskCount
  8469. ].toolChoose[this.toolIndex].preTime = this.preTime;
  8470. }
  8471. this.preTime = 0;
  8472. this.dialogVisiblePreTime = false;
  8473. if (
  8474. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8475. .toolChoose[this.toolIndex].tool != 10
  8476. ) {
  8477. this.addTools(10, this.taskCount, this.toolIndex);
  8478. }
  8479. },
  8480. goToTask(i) {
  8481. this.toolIndexType = ''
  8482. if(this.isClickColor == (i + 1)){
  8483. if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen){
  8484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  8485. }else{
  8486. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8487. }
  8488. this.$forceUpdate();
  8489. return;
  8490. }
  8491. if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen){
  8492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  8493. }else{
  8494. document.querySelectorAll(".basic_box")[0].scrollTop =
  8495. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  8496. this.isClickColor = i + 1;
  8497. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8498. }
  8499. this.$forceUpdate();
  8500. },
  8501. taskMove(type, index) {
  8502. this.$confirm(
  8503. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8504. "提示",
  8505. {
  8506. confirmButtonText: "确定",
  8507. cancelButtonText: "取消",
  8508. type: "warning",
  8509. }
  8510. )
  8511. .then(() => {
  8512. if (type == 1) {
  8513. if (index > 0) {
  8514. let a = JSON.parse(
  8515. JSON.stringify(
  8516. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8517. index - 1
  8518. ]
  8519. )
  8520. );
  8521. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8522. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8524. }
  8525. } else {
  8526. if (
  8527. index <
  8528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8529. ) {
  8530. let a = JSON.parse(
  8531. JSON.stringify(
  8532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8533. index + 1
  8534. ]
  8535. )
  8536. );
  8537. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8538. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8540. }
  8541. }
  8542. this.$forceUpdate();
  8543. })
  8544. .catch(() => {
  8545. return;
  8546. });
  8547. },
  8548. stageMove(type, index) {
  8549. if (type == 1) {
  8550. if (index > 0) {
  8551. let a = JSON.parse(
  8552. JSON.stringify(
  8553. this.unitJson3[index - 1]
  8554. )
  8555. );
  8556. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  8557. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  8558. this.unitJson3[index - 1] = this.unitJson3[index];
  8559. this.unitJson3[index] = a;
  8560. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  8561. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  8562. }
  8563. } else {
  8564. if (
  8565. index <
  8566. this.unitJson3.length - 1
  8567. ) {
  8568. let a = JSON.parse(
  8569. JSON.stringify(
  8570. this.unitJson3[
  8571. index + 1
  8572. ]
  8573. )
  8574. );
  8575. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  8576. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  8577. this.unitJson3[index + 1] =
  8578. this.unitJson3[index];
  8579. this.unitJson3[index] = a;
  8580. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  8581. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  8582. }
  8583. }
  8584. this.$forceUpdate();
  8585. },
  8586. addGroup(i) {
  8587. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8588. this.groupJson.group.push({
  8589. name: "第" + (this.groupJson.group.length + 1) + "组",
  8590. });
  8591. },
  8592. deleteGroup(i) {
  8593. this.groupJson.group.splice(i, 1);
  8594. },
  8595. numberPan() {
  8596. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  8597. this.$message.error('请输入2-10的数字')
  8598. this.groupJson.number = ''
  8599. }
  8600. },
  8601. addGroupJson() {
  8602. for (var i = 0; i < this.groupJson.group.length; i++) {
  8603. if (!this.groupJson.group[i].name) {
  8604. this.$message.error("请将信息填写完整!");
  8605. return;
  8606. }
  8607. }
  8608. if (!this.groupJson.number) {
  8609. this.$message.error("请将信息填写完整!");
  8610. return;
  8611. }
  8612. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8613. this.taskCount
  8614. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8615. JSON.stringify(this.groupJson)
  8616. );
  8617. this.dialogVisibleGroup = false;
  8618. this.groupJson = {};
  8619. if (
  8620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8621. .toolChoose[this.toolIndex].tool != 49
  8622. ) {
  8623. this.addTools(49, this.taskCount, this.toolIndex);
  8624. }
  8625. },
  8626. updateTime(preTime) {
  8627. this.preTime = preTime;
  8628. },
  8629. InviteChange(val) {
  8630. console.log(val);
  8631. return;
  8632. let array = JSON.parse(JSON.stringify(val));
  8633. this.inviteCode = this.inviteCode.filter((el) => {
  8634. if (val.indexOf(el.cid) != -1) {
  8635. array.splice(array.indexOf(el.cid), 1);
  8636. return el;
  8637. }
  8638. });
  8639. for (var i = 0; i < array.length; i++) {
  8640. this.getInviteCode(array[i]);
  8641. }
  8642. },
  8643. async getInviteCode(cid) {
  8644. let code = this.randomNumber();
  8645. let params = {
  8646. code: code,
  8647. oid: this.oid,
  8648. };
  8649. let type = 1;
  8650. for (var i = 0; i < this.inviteCode.length; i++) {
  8651. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  8652. type = 2;
  8653. }
  8654. }
  8655. if (type == 2) {
  8656. this.getInviteCode(cid);
  8657. return;
  8658. }
  8659. const res = await this.ajax.get(
  8660. this.$store.state.api + "selectInviteCode2",
  8661. params
  8662. );
  8663. if (
  8664. res.data.length &&
  8665. res.data[0].length &&
  8666. res.data[0][0].courseId != this.cid
  8667. ) {
  8668. this.getInviteCode(cid);
  8669. return;
  8670. }
  8671. let array = [];
  8672. for (var i = 0; i < this.inviteCode.length; i++) {
  8673. array.push(this.inviteCode[i].cid);
  8674. }
  8675. if (array.indexOf(cid) != -1) {
  8676. this.inviteCode[array.indexOf(cid)].ic = code;
  8677. } else {
  8678. this.inviteCode.push({ cid: cid, ic: code });
  8679. }
  8680. },
  8681. OpenInviteD(cid) {
  8682. let array = [];
  8683. this.icode = "";
  8684. for (var i = 0; i < this.inviteCode.length; i++) {
  8685. array.push(this.inviteCode[i].cid);
  8686. }
  8687. if (array.indexOf(cid) != -1) {
  8688. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  8689. }
  8690. this.inviteId = cid;
  8691. this.dialogVisibleInvite = true;
  8692. },
  8693. addInvite() {
  8694. let reg = /^[A-Za-z0-9]{4,}$/;
  8695. if (!reg.test(this.icode)) {
  8696. this.$message.error("请输入至少四位数字或英文组合的随机码");
  8697. return;
  8698. }
  8699. let type = 1;
  8700. for (var i = 0; i < this.inviteCode.length; i++) {
  8701. if (
  8702. this.inviteCode[i].cid != this.inviteId &&
  8703. this.icode == this.inviteCode[i].ic
  8704. ) {
  8705. type = 2;
  8706. }
  8707. }
  8708. if (type == 2) {
  8709. this.$message.error("已有此随机码,不能重复");
  8710. return;
  8711. }
  8712. let params = {
  8713. code: this.icode,
  8714. oid: this.oid,
  8715. };
  8716. this.ajax
  8717. .get(this.$store.state.api + "selectInviteCode", params)
  8718. .then((res) => {
  8719. if (
  8720. res.data.length &&
  8721. res.data[0].length &&
  8722. res.data[0][0].courseId != this.cid
  8723. ) {
  8724. this.$message.error("已有此随机码,不能重复");
  8725. return;
  8726. }
  8727. let array = [];
  8728. for (var i = 0; i < this.inviteCode.length; i++) {
  8729. array.push(this.inviteCode[i].cid);
  8730. }
  8731. if (array.indexOf(this.inviteId) != -1) {
  8732. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  8733. } else {
  8734. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  8735. }
  8736. this.icode = "";
  8737. this.dialogVisibleInvite = false;
  8738. })
  8739. .catch((err) => {
  8740. console.error(err);
  8741. });
  8742. },
  8743. randomNumber() {
  8744. // 随机生成两位数
  8745. // let num = Math.floor(Math.random() * 900) + 100;
  8746. // 生成 0 到 99 之间的随机整数
  8747. const randomNumber = Math.floor(Math.random() * 100);
  8748. // 如果随机数小于 10,补上前导零
  8749. const num =
  8750. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  8751. // 随机生成两个大写字母
  8752. let letters = "";
  8753. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  8754. for (let i = 0; i < 3; i++) {
  8755. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  8756. }
  8757. // 随机生成两位数字和字母的组合
  8758. let mix = "";
  8759. let chars =
  8760. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  8761. for (let i = 0; i < 3; i++) {
  8762. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  8763. mix += char;
  8764. }
  8765. // 随机选择一种类型
  8766. let type = Math.floor(Math.random() * 3);
  8767. return num;
  8768. // 根据类型输出结果
  8769. switch (type) {
  8770. case 0:
  8771. console.log(num); // 输出两位数
  8772. return num;
  8773. case 1:
  8774. console.log(letters); // 输出两个大写字母
  8775. return letters;
  8776. case 2:
  8777. console.log(mix); // 输出两位数字和字母的组合
  8778. return mix;
  8779. }
  8780. },
  8781. getPaste() {
  8782. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8783. if (!iframe) {
  8784. return;
  8785. }
  8786. let copyData = iframe.contentWindow.copyData;
  8787. if (copyData && copyData.stageData && copyData.stageData.length) {
  8788. this.isPasteStage = true
  8789. }
  8790. if (copyData && copyData.selectData.length) {
  8791. this.isPasteChoice = true
  8792. }
  8793. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  8794. this.isPasteTask = true
  8795. }
  8796. },
  8797. searchImage() {
  8798. var _this = this;
  8799. _this.imageList = []
  8800. if (!_this.searchImageValue) {
  8801. _this.sysPicVisible2 = true
  8802. return
  8803. }
  8804. _this.imageloading = true
  8805. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  8806. page: _this.ppage,
  8807. pagesize: 9,
  8808. query: _this.searchImageValue
  8809. }).then(function (response) {
  8810. // console.log(response.data.data);
  8811. var data = response.data.FunctionResponse.result;
  8812. for (var i = 0; i < data.length; i++) {
  8813. _this.imageList.push({ url: data[i].thumbnail })
  8814. }
  8815. _this.imageloading = false
  8816. }).catch(function (error) {
  8817. console.log(error);
  8818. });
  8819. _this.sysPicVisible2 = true
  8820. },
  8821. changePicture() {
  8822. this.ppage++
  8823. this.searchImage()
  8824. },
  8825. resetImage() {
  8826. this.ppage = 1
  8827. this.searchImage()
  8828. },
  8829. jumpGj(i, j) {
  8830. if((i+1) != this.isClickColor){
  8831. this.isClickColor = (i + 1)
  8832. }
  8833. var a = document.scrollingElement;
  8834. this.toolIndexType = `gj${i}${j}`
  8835. let target = document.querySelector(`#gj${i}${j}`);
  8836. if (target) {
  8837. target.scrollIntoView(true);
  8838. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  8839. setTimeout(() => {
  8840. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  8841. }, 0);
  8842. }
  8843. },
  8844. dragStart(val, i, j) {
  8845. this.taskCount = j
  8846. this.oldIndex = i;
  8847. this.oldData = val;
  8848. },
  8849. dragOver(i) {
  8850. this.newIndex = i;
  8851. },
  8852. dragEnd() {
  8853. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  8854. // 删除老的节点
  8855. newItems.splice(this.oldIndex, 1);
  8856. // 在列表中目标位置增加新的节点
  8857. newItems.splice(this.newIndex, 0, this.oldData);
  8858. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  8859. this.newIndex = "";
  8860. this.$forceUpdate()
  8861. },
  8862. },
  8863. beforeDestroy() {
  8864. clearTimeout(this.timer);
  8865. this.timer = null;
  8866. clearInterval(this.timer2);
  8867. this.timer2 = null;
  8868. clearInterval(this.pasteTimer);
  8869. this.pasteTimer = null;
  8870. },
  8871. beforeRouteLeave(to, from, next) {
  8872. clearTimeout(this.timer);
  8873. this.timer = null;
  8874. clearInterval(this.timer2);
  8875. this.timer2 = null;
  8876. clearInterval(this.pasteTimer);
  8877. this.pasteTimer = null;
  8878. next();
  8879. },
  8880. created() {
  8881. this.getStudent();
  8882. this.getTeacher();
  8883. this.getClass();
  8884. this.selectGrage();
  8885. this.getTemplate();
  8886. // this.selectType();
  8887. this.selectEva();
  8888. this.loading = false;
  8889. this.timer2 = setInterval(() => {
  8890. this.selectEva();
  8891. }, 5000);
  8892. this.pasteTimer = setInterval(() => {
  8893. this.getPaste();
  8894. }, 1000);
  8895. setTimeout(() => {
  8896. this.selectCourseDetail();
  8897. }, 500);
  8898. },
  8899. };
  8900. </script>
  8901. <style scoped>
  8902. @media screen and (max-width: 1280px) {
  8903. .mbCss {
  8904. flex-direction: column !important;
  8905. }
  8906. .pjCss {
  8907. width: 100% !important;
  8908. }
  8909. .evaCss {
  8910. width: 100% !important;
  8911. }
  8912. }
  8913. .dialog_diy>>>.el-dialog__header {
  8914. background: #3c3c3c !important;
  8915. padding: 15px 20px;
  8916. }
  8917. .dialog_diy>>>.el-dialog__title {
  8918. color: #fff;
  8919. }
  8920. .dialog_diy>>>.el-dialog__headerbtn {
  8921. top: 19px;
  8922. }
  8923. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8924. color: #fff;
  8925. }
  8926. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8927. color: #fff;
  8928. }
  8929. .dialog_diy>>>.el-dialog__body,
  8930. .dialog_diy>>>.el-dialog__footer {
  8931. background: #fafafa;
  8932. }
  8933. .dialog_diy3>>>.el-dialog__body,
  8934. .dialog_diy3>>>.el-dialog__footer {
  8935. background: #eee !important;
  8936. }
  8937. .dialog_diy3>>>.el-dialog__body {
  8938. padding: 20px 20px;
  8939. }
  8940. .dialog_diyStage>>>.el-dialog__body {
  8941. padding: 10px;
  8942. }
  8943. .source_diy>>>.el-dialog {
  8944. height: 100% !important;
  8945. margin: 0 auto !important;
  8946. }
  8947. .source_diy>>>.el-dialog__body {
  8948. height: calc(100% - 185px);
  8949. overflow: auto;
  8950. background: #e6eaf0;
  8951. }
  8952. .source_diy>>>.el-dialog__footer {
  8953. background: #e6eaf0 !important;
  8954. }
  8955. .left {
  8956. border-right: 1px solid rgb(60, 94, 143);
  8957. display: flex;
  8958. flex-direction: column;
  8959. align-items: center;
  8960. min-height: 600px;
  8961. width: 385px;
  8962. height: 80%;
  8963. }
  8964. .tips {
  8965. color: rgb(128, 128, 128);
  8966. font-size: 12px;
  8967. width: 270px;
  8968. margin: 40px;
  8969. }
  8970. .pb_content {
  8971. height: 100% !important;
  8972. /* margin: 0 20px 0 20px; */
  8973. }
  8974. .pb_content_body {
  8975. width: 100% !important;
  8976. height: 100%;
  8977. }
  8978. .info_solid {
  8979. width: 270px;
  8980. height: 30px;
  8981. border-left: 1px solid #bdbdbd;
  8982. margin: 10px 0px 10px 30px;
  8983. }
  8984. .info_steps {
  8985. width: 270px;
  8986. font-size: 0.875rem;
  8987. display: flex;
  8988. align-items: center;
  8989. }
  8990. .info_steps span:nth-child(1) {
  8991. width: 30px;
  8992. height: 30px;
  8993. background: rgba(0, 0, 0, 0.38);
  8994. display: block;
  8995. color: #fff;
  8996. border-radius: 40px;
  8997. text-align: center;
  8998. line-height: 30px;
  8999. }
  9000. .steps_active {
  9001. background: #3d67bc !important;
  9002. }
  9003. .info_steps span:nth-child(2) {
  9004. margin-left: 5px;
  9005. }
  9006. .right {
  9007. height: 100%;
  9008. width: 100%;
  9009. display: flex;
  9010. overflow: hidden;
  9011. flex-direction: column;
  9012. }
  9013. .basic_box {
  9014. margin: 0 auto;
  9015. position: relative;
  9016. padding: 0 20px 0 20px;
  9017. }
  9018. .basic_box_success {
  9019. width: 100%;
  9020. min-height: 455px;
  9021. padding: 50px 0;
  9022. position: relative;
  9023. text-align: center;
  9024. border-bottom: 1px solid #bfbfbf;
  9025. box-sizing: border-box;
  9026. display: flex;
  9027. align-items: center;
  9028. flex-direction: column;
  9029. justify-content: center;
  9030. }
  9031. .info_title {
  9032. font-size: 1.5em;
  9033. margin-right: 25px;
  9034. /* margin: 20px 30px 20px 30px; */
  9035. }
  9036. .bInfo_title {
  9037. text-align: left;
  9038. margin: 10px 0;
  9039. }
  9040. .small_title {
  9041. font-size: 14px;
  9042. line-height: 40px;
  9043. }
  9044. .chapter_beizhu {
  9045. font-size: 12px;
  9046. font-weight: bold;
  9047. float: right;
  9048. color: rgb(128, 128, 128);
  9049. margin-top: 5px;
  9050. }
  9051. .chapter_uploadBox1 {
  9052. text-align: left;
  9053. background-color: rgb(242, 242, 242);
  9054. width: 100%;
  9055. height: 67px;
  9056. padding: 0px 15px;
  9057. border-radius: 8px;
  9058. overflow: hidden;
  9059. font-size: 16px;
  9060. box-sizing: border-box;
  9061. position: relative;
  9062. }
  9063. .chapter_add {
  9064. width: 100%;
  9065. height: 32px;
  9066. margin-top: 15px;
  9067. cursor: pointer;
  9068. }
  9069. .chapter_add_l {
  9070. margin-left: 5px;
  9071. width: 30px;
  9072. height: 30px;
  9073. float: left;
  9074. border: 1px solid #aaa;
  9075. color: #aaa;
  9076. border-radius: 50%;
  9077. font-size: 25px;
  9078. text-align: center;
  9079. }
  9080. .chapter_add_r {
  9081. font-size: 18px;
  9082. height: 40px;
  9083. line-height: 30px;
  9084. text-indent: 10px;
  9085. color: #aaa;
  9086. }
  9087. .chapter_add_r span {
  9088. font-size: 12px;
  9089. color: rgb(204, 204, 204);
  9090. }
  9091. .chapter_add_input {
  9092. display: none;
  9093. }
  9094. .line {
  9095. width: 85%;
  9096. margin: 0 auto;
  9097. border-top: 1px solid #e5e5e5;
  9098. margin-top: 20px;
  9099. }
  9100. .info_btnBox {
  9101. width: calc(100%);
  9102. display: flex;
  9103. justify-content: center;
  9104. height: 80px;
  9105. align-items: center;
  9106. background: #fff;
  9107. margin: 0 auto;
  9108. border-top: 2px solid rgb(228, 232, 237);
  9109. box-sizing: border-box;
  9110. }
  9111. .info_btnBox2 {
  9112. width: calc(100%);
  9113. display: flex;
  9114. justify-content: center;
  9115. height: 20px;
  9116. align-items: center;
  9117. background: #fff;
  9118. margin: 0 auto;
  9119. border-top: 2px solid rgb(228, 232, 237);
  9120. box-sizing: border-box;
  9121. overflow: hidden;
  9122. cursor: pointer;
  9123. }
  9124. .info_btnBox3 {
  9125. width: calc(100%);
  9126. display: flex;
  9127. justify-content: flex-end;
  9128. padding: 0 20px;
  9129. height: 60px;
  9130. align-items: center;
  9131. background: unset;
  9132. margin: 0 auto;
  9133. /* border-top: 1px solid rgb(228, 232, 237); */
  9134. box-sizing: border-box;
  9135. overflow: hidden;
  9136. cursor: pointer;
  9137. background: #fff;
  9138. border-radius: 10px;
  9139. }
  9140. .info_btn+.info_btn {
  9141. margin-left: 15px;
  9142. }
  9143. .info_btn,
  9144. .teacherWord {
  9145. color: #fff;
  9146. background-color: #0f7eff;
  9147. padding: 8px 24px;
  9148. font-size: 0.9375rem;
  9149. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9150. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9151. min-width: 64px;
  9152. font-weight: 500;
  9153. border-radius: 4px;
  9154. box-sizing: border-box;
  9155. border: none;
  9156. cursor: pointer;
  9157. }
  9158. .teacherWord {
  9159. width: 105px !important;
  9160. text-align: center !important;
  9161. line-height: 36px !important;
  9162. padding: 0 !important;
  9163. font-size: 14px !important;
  9164. margin: 10px 0 !important;
  9165. }
  9166. .wordTeacher {
  9167. display: flex;
  9168. flex-direction: column;
  9169. width: 145px;
  9170. text-align: center;
  9171. font-size: 14px;
  9172. margin: 30px 0 0 10px;
  9173. background: #fff;
  9174. position: relative;
  9175. border-radius: 5px;
  9176. padding: 25px 0px;
  9177. }
  9178. .wordPic {
  9179. margin: 0 auto;
  9180. width: 60px;
  9181. height: 60px;
  9182. cursor: pointer;
  9183. }
  9184. .deleteWord {
  9185. width: 22px;
  9186. height: 22px;
  9187. position: absolute;
  9188. right: 5px;
  9189. top: -15px;
  9190. cursor: pointer;
  9191. display: none;
  9192. z-index: 999;
  9193. }
  9194. .wordPic>img,
  9195. .deleteWord>img,
  9196. .addToolImg>img {
  9197. width: 100%;
  9198. height: 100%;
  9199. }
  9200. .info_btn:hover {
  9201. background-color: #4f7cd5 !important;
  9202. }
  9203. .cru_selectBox {
  9204. display: flex;
  9205. margin: 24px 0 10px;
  9206. flex-wrap: nowrap;
  9207. white-space: nowrap;
  9208. overflow: auto;
  9209. position: relative;
  9210. height: 40px;
  9211. max-width: calc(100% - 175px);
  9212. }
  9213. .cru_selectBox::-webkit-scrollbar {
  9214. /*滚动条整体样式*/
  9215. width: 6px;
  9216. /*高宽分别对应横竖滚动条的尺寸*/
  9217. height: 6px;
  9218. }
  9219. /*定义滚动条轨道 内阴影+圆角*/
  9220. .cru_selectBox::-webkit-scrollbar-track {
  9221. border-radius: 10px;
  9222. background-color: #eee;
  9223. }
  9224. /*定义滑块 内阴影+圆角*/
  9225. .cru_selectBox::-webkit-scrollbar-thumb {
  9226. border-radius: 10px;
  9227. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  9228. background-color: rgba(0, 0, 0, 0.1);
  9229. }
  9230. .cru_line {
  9231. position: absolute;
  9232. bottom: 0px;
  9233. transition: all 0.5s;
  9234. left: 0px;
  9235. width: 50px;
  9236. height: 4px;
  9237. left: 10px;
  9238. border-radius: 2px;
  9239. background: #3681FC;
  9240. }
  9241. .cru_select {
  9242. font-size: 18px;
  9243. margin-right: 20px;
  9244. margin-left: 5px;
  9245. cursor: pointer;
  9246. color: #0E1E33;
  9247. }
  9248. .cru_select:hover{
  9249. color: #3681FC !important;
  9250. }
  9251. .cru_selected {
  9252. color: #3681FC !important;
  9253. font-weight: bold;
  9254. }
  9255. .chapter_box{
  9256. margin-top: 15px;
  9257. width: 100%;
  9258. padding: 10px 20px;
  9259. background: #fff;
  9260. border-radius: 8px;
  9261. box-sizing: border-box;
  9262. }
  9263. .chapter_contentbox {
  9264. display: flex;
  9265. align-items: center;
  9266. /* margin-top: 15px; */
  9267. }
  9268. .chapter_contentbox .cc_title {
  9269. margin: 0px;
  9270. color: black;
  9271. display: block;
  9272. white-space: nowrap;
  9273. overflow: hidden;
  9274. text-overflow: ellipsis;
  9275. margin-right: 20px;
  9276. font-size: 18px;
  9277. height: 20px;
  9278. line-height: 22px;
  9279. min-width: fit-content;
  9280. display: flex;
  9281. }
  9282. .chapter_contentbox .cc_title::before {
  9283. content: '';
  9284. height: 100%;
  9285. width: 3px;
  9286. background: #3681FC;
  9287. border-radius: 3px;
  9288. opacity: 1;
  9289. display: block;
  9290. margin-right: 10px;
  9291. }
  9292. .chapter_contentbox .cc_input {
  9293. width: 100%;
  9294. display: flex;
  9295. }
  9296. .show_taskD {
  9297. min-width: fit-content;
  9298. margin-left: 10px;
  9299. display: flex;
  9300. align-items: center;
  9301. font-size: 14px;
  9302. cursor: pointer;
  9303. color: #717C8D;
  9304. }
  9305. .show_taskD>img {
  9306. width: 15px;
  9307. margin-right: 5px;
  9308. transition: .2s all;
  9309. transform: rotate(-90deg);
  9310. }
  9311. .show_taskD.show>img {
  9312. transform: rotate(0deg);
  9313. }
  9314. .show_toolD {
  9315. min-width: fit-content;
  9316. margin-left: 10px;
  9317. display: flex;
  9318. align-items: center;
  9319. font-size: 14px;
  9320. cursor: pointer;
  9321. color: #717C8D;
  9322. position: absolute;
  9323. right: 45px;
  9324. top: 5px;
  9325. }
  9326. .show_toolD>img {
  9327. width: 15px;
  9328. margin-right: 5px;
  9329. transition: .2s all;
  9330. transform: rotate(-90deg);
  9331. }
  9332. .show_toolD.show>img {
  9333. transform: rotate(0deg);
  9334. }
  9335. .remove {
  9336. background-image: url("../../assets/icon/new/delete_u.png");
  9337. cursor: pointer;
  9338. opacity: 0.5;
  9339. width: 30px;
  9340. min-width: 30px;
  9341. height: 30px;
  9342. background-size: 100% 100%;
  9343. background-repeat: no-repeat;
  9344. margin-left: 10px;
  9345. }
  9346. .remove1 {
  9347. background-image: url("../../assets/remove1.png");
  9348. background-repeat: no-repeat;
  9349. background-position: 5px 10px;
  9350. width: 40px;
  9351. height: 50px;
  9352. cursor: pointer;
  9353. margin-left: 10px;
  9354. }
  9355. .binfo_input {
  9356. width: 100%;
  9357. margin: 0;
  9358. padding: 12px 14px;
  9359. display: block;
  9360. min-width: 0;
  9361. outline: none;
  9362. box-sizing: border-box;
  9363. background: none;
  9364. border: none;
  9365. border-radius: 4px;
  9366. background: #fff;
  9367. font-size: 16px;
  9368. resize: none;
  9369. font-family: 'Microsoft YaHei';
  9370. min-height: 48px;
  9371. /* border: 1px solid #3682fc00; */
  9372. border: 1.5px solid #CAD1DC;
  9373. }
  9374. .binfo_textarea {
  9375. border: 1.5px solid #CAD1DC;
  9376. font-size: 16px;
  9377. resize: none;
  9378. background: #f6f6f6;
  9379. font-family: 'Microsoft YaHei';
  9380. }
  9381. .binfo_input:focus-visible {
  9382. border: 1.5px solid #3681FC !important;
  9383. }
  9384. .time {
  9385. display: flex;
  9386. margin: 35px 0 80px 0;
  9387. }
  9388. .chapter_btnbox {
  9389. width: 160px;
  9390. border-radius: 5px;
  9391. border: 2px dashed gray;
  9392. display: flex;
  9393. padding: 8px 50px;
  9394. align-items: center;
  9395. justify-content: center;
  9396. margin: 30px auto 0;
  9397. cursor: pointer;
  9398. }
  9399. .icon_add {
  9400. position: relative;
  9401. width: 24px;
  9402. padding-top: 20px;
  9403. border-radius: 100%;
  9404. border-width: 2px;
  9405. border-style: solid;
  9406. border-color: gray;
  9407. }
  9408. .icon_add i:nth-child(1) {
  9409. position: absolute;
  9410. left: 50%;
  9411. top: 50%;
  9412. height: 60%;
  9413. transform: translate(-50%, -50%);
  9414. border-width: 1px;
  9415. border-style: solid;
  9416. border-color: inherit;
  9417. }
  9418. .icon_add i:nth-child(2) {
  9419. position: absolute;
  9420. top: 50%;
  9421. left: 50%;
  9422. width: 60%;
  9423. transform: translate(-50%, -50%);
  9424. border-width: 1px;
  9425. border-style: solid;
  9426. border-color: inherit;
  9427. }
  9428. .chapter_btn_w {
  9429. font-size: 0.9375rem;
  9430. font-weight: bold;
  9431. color: gray;
  9432. margin-left: 20px;
  9433. }
  9434. .disUoloadSty>>>.el-icon-plus {
  9435. display: none !important;
  9436. /* 上传按钮隐藏 */
  9437. }
  9438. .imgLeft {
  9439. margin: 15px 0;
  9440. }
  9441. .add_info_box {
  9442. margin: 20px 0 0;
  9443. display: flex;
  9444. flex-wrap: wrap;
  9445. }
  9446. .add_info_box button {
  9447. margin: 0 20px 10px 0;
  9448. }
  9449. .add_info_box2 {
  9450. display: flex;
  9451. align-items: center;
  9452. flex-wrap: wrap;
  9453. }
  9454. .add_info_box2::after {
  9455. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  9456. color: red;
  9457. font-size: 14px;
  9458. margin-bottom: 10px;
  9459. }
  9460. .add_chapters_box {
  9461. text-align: left;
  9462. background-color: #fff;
  9463. width: 100%;
  9464. border-radius: 4px;
  9465. font-size: 16px;
  9466. box-sizing: border-box;
  9467. position: relative;
  9468. padding: 0 15px;
  9469. height: auto;
  9470. overflow-y: auto;
  9471. overflow-x: hidden;
  9472. border: 1px solid #CAD1DC;
  9473. }
  9474. .add_chapters_box.add_c_none {
  9475. display: flex;
  9476. justify-content: center;
  9477. align-items: center;
  9478. padding: 15px;
  9479. }
  9480. .add_c_none>img {
  9481. width: 25px;
  9482. }
  9483. .add_chapters_box.add_c_none>span {
  9484. font-size: 14px;
  9485. font-weight: 400;
  9486. margin: 0 0 5px 5px;
  9487. }
  9488. .homework_box {
  9489. display: flex;
  9490. align-items: flex-start;
  9491. flex-wrap: wrap;
  9492. margin: 15px 0 0 0;
  9493. flex-direction: column;
  9494. align-content: flex-start;
  9495. }
  9496. .course_homework {
  9497. display: flex;
  9498. justify-content: center;
  9499. flex-direction: row;
  9500. align-items: center;
  9501. margin: 0 10px 0 0;
  9502. }
  9503. .course_homework>>>.el-input__inner {
  9504. width: 140px;
  9505. margin-left: 15px;
  9506. }
  9507. .chapter_upload_move {
  9508. position: relative;
  9509. background-color: #fff;
  9510. position: absolute;
  9511. width: 100%;
  9512. top: 0px;
  9513. left: 0px;
  9514. border: 1px solid #eee;
  9515. border-radius: 5px;
  9516. transition: width 2s;
  9517. -moz-transition: width 2s;
  9518. -webkit-transition: width 2s;
  9519. -o-transition: width 2s;
  9520. }
  9521. .chapter_upload_l_i {
  9522. background-image: url("../../assets/icon.png");
  9523. background-position: 3px -165px;
  9524. width: 30px;
  9525. height: 30px;
  9526. margin: 10px auto 0 auto;
  9527. }
  9528. .course_input_box {
  9529. display: flex;
  9530. margin-right: 20px;
  9531. width: 100%;
  9532. align-items: center;
  9533. position: relative;
  9534. }
  9535. .course_input_box>.binfo_input {
  9536. width: calc(100% - 0 - 200px - 20px);
  9537. margin: 0 10px;
  9538. }
  9539. .bb_courseIcon {
  9540. width: 57px;
  9541. height: 45px;
  9542. background: #F0F4FA;
  9543. border-radius: 5px 0px 0px 5px;
  9544. display: flex;
  9545. align-items: center;
  9546. justify-content: center;
  9547. border-right: 1.5px solid rgb(202, 209, 220);
  9548. box-sizing: border-box;
  9549. position: absolute;
  9550. left:1.5px
  9551. }
  9552. .bb_courseIcon>img {
  9553. width: 25px;
  9554. height: auto
  9555. }
  9556. .big_box {
  9557. /* margin-top: 20px; */
  9558. display: flex;
  9559. justify-content: space-between;
  9560. /* border-bottom: 1px solid #E0E2ED; */
  9561. }
  9562. .left_first {
  9563. display: flex;
  9564. flex-direction: column;
  9565. flex-wrap: nowrap;
  9566. width: calc(100% - 310px);
  9567. padding: 20px;
  9568. box-sizing: border-box;
  9569. background: #fff;
  9570. border-radius: 5px;
  9571. }
  9572. .right_first {
  9573. width: 300px;
  9574. display: flex;
  9575. align-items: center;
  9576. justify-content: center;
  9577. /* border-left: 1px solid #E0E2ED; */
  9578. box-sizing: border-box;
  9579. padding: 20px;
  9580. flex-direction: column;
  9581. background: #fff;
  9582. border-radius: 5px;
  9583. }
  9584. .ai_box {
  9585. width: 204px;
  9586. display: flex;
  9587. justify-content: flex-end;
  9588. margin-bottom: 15px;
  9589. }
  9590. .ai_content {
  9591. display: flex;
  9592. align-items: center;
  9593. font-size: 14px;
  9594. padding: 7px 20px;
  9595. box-sizing: border-box;
  9596. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  9597. border-radius: 12px;
  9598. font-weight: 700;
  9599. cursor: pointer;
  9600. }
  9601. .ai_content>img {
  9602. width: 40px;
  9603. margin-right: 5px;
  9604. }
  9605. .c_info_title {
  9606. padding: 15px 0 15px 0;
  9607. font-size: 16px;
  9608. font-weight: bold;
  9609. margin: 0 0 0 20px;
  9610. box-sizing: border-box;
  9611. display: flex;
  9612. align-items: center;
  9613. line-height:20px;
  9614. }
  9615. .c_info_title::before {
  9616. content: '';
  9617. display: block;
  9618. width: 3px;
  9619. height: 20px;
  9620. background: #0061FF;
  9621. border-radius: 3px;
  9622. margin: 0 5px 0 0;
  9623. }
  9624. .right_title {
  9625. height: 30px;
  9626. padding: 15px 0 15px 20px;
  9627. border-bottom: 1px solid #f2f2f2;
  9628. font-size: 1.5em;
  9629. font-weight: bold;
  9630. color: #0f7eff;
  9631. margin: 0 auto;
  9632. }
  9633. .people {
  9634. border: 1px solid rgb(229 229 229);
  9635. /* height: 495px; */
  9636. height: 350px;
  9637. border-radius: 5px;
  9638. width: 100%;
  9639. overflow: auto;
  9640. }
  9641. .people_top {
  9642. display: flex;
  9643. width: 100%;
  9644. /* justify-content: space-between; */
  9645. /* align-items: center; */
  9646. flex-direction: column;
  9647. padding: 10px 10px 0;
  9648. box-sizing: border-box;
  9649. }
  9650. .people_nav,
  9651. .people_top_right {
  9652. /* padding: 20px 0 0 20px; */
  9653. }
  9654. .people_top_right {
  9655. height: 40px;
  9656. margin-bottom: 10px;
  9657. }
  9658. .people_search {
  9659. display: flex;
  9660. position: relative;
  9661. }
  9662. .people_search>>>.el-input__inner {
  9663. /* height: 25px; */
  9664. width: 95%;
  9665. }
  9666. .search_img {
  9667. width: 20px;
  9668. height: 20px;
  9669. position: absolute;
  9670. right: 30px;
  9671. top: 50%;
  9672. transform: translateY(-50%);
  9673. }
  9674. .search_img>img {
  9675. width: 100%;
  9676. height: 100%;
  9677. }
  9678. .people_name {
  9679. display: flex;
  9680. justify-content: flex-start;
  9681. padding: 20px 10px;
  9682. flex-direction: column;
  9683. flex-wrap: wrap;
  9684. }
  9685. .p_box {
  9686. position: relative;
  9687. }
  9688. .people_name>>>.el-checkbox {
  9689. width: 100%;
  9690. display: flex;
  9691. align-items: center;
  9692. margin-bottom: 10px;
  9693. }
  9694. .people_name>>>.el-checkbox__label {
  9695. text-overflow: ellipsis;
  9696. overflow: hidden;
  9697. width: calc(100%);
  9698. }
  9699. .people_name2>>>.el-checkbox__label {
  9700. width: calc(100% - 130px);
  9701. }
  9702. .inviteCode {
  9703. position: absolute;
  9704. right: 30px;
  9705. color: #237ade;
  9706. top: 0;
  9707. cursor: pointer;
  9708. font-size: 13px;
  9709. }
  9710. .noneInvite {
  9711. color: #a8a8a8;
  9712. }
  9713. .inviteImg {
  9714. position: absolute;
  9715. right: 5px;
  9716. top: 0;
  9717. width: 20px;
  9718. }
  9719. .right_img {
  9720. width: 150px;
  9721. height: 150px;
  9722. margin: 0 auto;
  9723. }
  9724. .right_img>img {
  9725. width: 100%;
  9726. height: 100%;
  9727. }
  9728. .number {
  9729. margin-top: 20px;
  9730. color: #4aa6ff;
  9731. text-decoration: underline;
  9732. }
  9733. .success_button {
  9734. display: flex;
  9735. text-align: center;
  9736. margin: 5% 0 auto;
  9737. flex-direction: row;
  9738. justify-content: center;
  9739. }
  9740. .look_course {
  9741. margin-right: 40px;
  9742. background: #3d67bc;
  9743. width: 200px;
  9744. height: 35px;
  9745. line-height: 35px;
  9746. color: #fff;
  9747. text-align: center;
  9748. font-size: 14px;
  9749. border-radius: 5px;
  9750. cursor: pointer;
  9751. }
  9752. .attend_others {
  9753. width: 250px;
  9754. background: #4fb13c;
  9755. height: 35px;
  9756. line-height: 35px;
  9757. color: #fff;
  9758. text-align: center;
  9759. font-size: 14px;
  9760. border-radius: 5px;
  9761. cursor: pointer;
  9762. }
  9763. .dialog_diy2>>>.el-dialog__body {
  9764. text-align: center;
  9765. }
  9766. .write_togother {
  9767. position: absolute;
  9768. right: 45px;
  9769. display: flex;
  9770. top: 5%;
  9771. }
  9772. .write_people {
  9773. font-size: 14px;
  9774. line-height: 50px;
  9775. padding-right: 10px;
  9776. }
  9777. .end_write {
  9778. background: #3d67bc;
  9779. color: #fff;
  9780. width: 100px;
  9781. height: 35px;
  9782. line-height: 35px;
  9783. text-align: center;
  9784. font-size: 14px;
  9785. border-radius: 5px;
  9786. cursor: pointer;
  9787. }
  9788. .chapter_upload+.chapter_upload {
  9789. /* margin-top: 15px; */
  9790. border-top: 1px solid #E7EBF1;
  9791. }
  9792. .chapter_upload {
  9793. height: 45px;
  9794. position: relative;
  9795. display: flex;
  9796. align-items: center;
  9797. width: 100%;
  9798. min-height: 45px;
  9799. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  9800. /* border-radius: 4px; */
  9801. /* overflow: hidden; */
  9802. box-sizing: border-box;
  9803. }
  9804. .chapter_upload_drag{
  9805. position: absolute;
  9806. cursor: pointer;
  9807. width: 16px;
  9808. height: 16px;
  9809. left: -9px;
  9810. background-image: url("../../assets/icon/new/icon_course_drag.png");
  9811. background-size: 100% 100%;
  9812. z-index: 10;
  9813. }
  9814. .chapter_upload_t {
  9815. background-color: #fff;
  9816. position: absolute;
  9817. height: 100%;
  9818. top: 0px;
  9819. left: 0px;
  9820. box-sizing: border-box;
  9821. }
  9822. .chapter_upload_o {
  9823. width: 100%;
  9824. height: 100%;
  9825. position: relative;
  9826. z-index: 1;
  9827. }
  9828. .chapter_upload_ic {
  9829. margin: 0 15px 0px auto;
  9830. display: flex;
  9831. align-items: center;
  9832. }
  9833. .chapter_upload_ic_l {
  9834. width: 50px;
  9835. height: 50px;
  9836. float: left;
  9837. }
  9838. .chapter_upload_ic_l div {
  9839. width: 30px;
  9840. height: 35px;
  9841. background: url("../../assets/icon/icon.png");
  9842. }
  9843. .chapter_upload_ic_edit {
  9844. height: 100%;
  9845. display: flex;
  9846. align-items: center;
  9847. cursor: pointer;
  9848. margin: 0 10px 0 0;
  9849. }
  9850. .chapter_upload_ic_edit div {
  9851. width: 18px;
  9852. height: 18px;
  9853. background-image: url("../../assets/icon/new/edit_u.png");
  9854. background-size: 100% 100%;
  9855. }
  9856. .chapter_upload_ic_r {
  9857. height: 100%;
  9858. display: flex;
  9859. align-items: center;
  9860. cursor: pointer;
  9861. }
  9862. .chapter_upload_ic_r div {
  9863. width: 18px;
  9864. height: 18px;
  9865. background-image: url("../../assets/icon/new/delete_u.png");
  9866. background-size: 100% 100%;
  9867. }
  9868. .chapter_upload_n {
  9869. display: flex;
  9870. text-indent: 10px;
  9871. text-decoration: none;
  9872. text-overflow: ellipsis;
  9873. white-space: nowrap;
  9874. overflow: hidden;
  9875. width: 55%;
  9876. margin-left: 10px;
  9877. cursor: pointer;
  9878. margin-top: 2px;
  9879. align-items: center;
  9880. }
  9881. .chapter_upload_l_i2,
  9882. .chapter_upload_l_i3,
  9883. .chapter_upload_l_i8,
  9884. .chapter_upload_l_i6,
  9885. .chapter_upload_l_i12,
  9886. .chapter_upload_l_i14,
  9887. .chapter_upload_l_i13 {
  9888. width: 15px;
  9889. height: 15px;
  9890. background-size: 100% 100%;
  9891. }
  9892. .chapter_upload_l_i2 {
  9893. background-image: url("../../assets/icon/new/u_word.png");
  9894. }
  9895. .chapter_upload_l_i3 {
  9896. background-image: url("../../assets/icon/new/u_video.png");
  9897. }
  9898. .chapter_upload_l_i8 {
  9899. background-image: url("../../assets/icon/new/u_url.png");
  9900. }
  9901. .chapter_upload_l_i14 {
  9902. background-image: url("../../assets/icon/new/u_source.png");
  9903. }
  9904. .chapter_upload_l_i6 {
  9905. background-image: url("../../assets/icon/new/u_picture.png");
  9906. }
  9907. .chapter_upload_l_i12 {
  9908. background-image: url("../../assets/icon/new/u_word.png");
  9909. }
  9910. .chapter_upload_l_i13 {
  9911. background-image: url("../../assets/icon/new/u_img.png");
  9912. }
  9913. .chapter_upload_noSee {
  9914. background-image: url("../../assets/icon/new/u_noUpload.png");
  9915. width: 18px;
  9916. height: 18px;
  9917. background-size: 100% 100%;
  9918. display: block;
  9919. margin-right: 10px;
  9920. }
  9921. .chapter_upload_ud {
  9922. display: flex;
  9923. flex-direction: row;
  9924. justify-content: center;
  9925. margin: 0 10px 0 0;
  9926. }
  9927. .chapter_upload_ud>.chapter_upload_up {
  9928. margin-bottom: 0;
  9929. margin-right: 10px;
  9930. }
  9931. .chapter_upload_down,
  9932. .chapter_upload_up {
  9933. width: 20px;
  9934. height: 20px;
  9935. background: #e4eaf2;
  9936. cursor: pointer;
  9937. margin: 0 auto;
  9938. border-radius: 5px;
  9939. display: flex;
  9940. justify-content: center;
  9941. align-items: center;
  9942. }
  9943. .chapter_upload_up::after,
  9944. .chapter_upload_down::after {
  9945. content: '';
  9946. background-image: url('../../assets/icon/new/downBtn.png');
  9947. width: 13px;
  9948. height: 13px;
  9949. background-size: 100% 100%;
  9950. display: block;
  9951. }
  9952. .chapter_upload_up::after {
  9953. background-image: url('../../assets/icon/new/upBtn.png') !important;
  9954. }
  9955. .chapter_upload_up {
  9956. margin-bottom: 5px;
  9957. }
  9958. .addWordStyle {
  9959. display: flex;
  9960. flex-direction: row;
  9961. justify-content: flex-start;
  9962. overflow-x: auto;
  9963. white-space: nowrap;
  9964. flex-wrap: wrap;
  9965. }
  9966. /* table 样式 */
  9967. .cont>>>table {
  9968. border-top: 1px solid #ccc;
  9969. border-left: 1px solid #ccc;
  9970. }
  9971. .cont>>>table td,
  9972. .cont>>>table th {
  9973. border-bottom: 1px solid #ccc;
  9974. border-right: 1px solid #ccc;
  9975. /* padding: 20px 5px; */
  9976. padding: 5px 10px;
  9977. max-width: 0px;
  9978. height: 30px;
  9979. vertical-align: baseline;
  9980. }
  9981. .cont>>>table th {
  9982. border-bottom: 2px solid #ccc;
  9983. text-align: center;
  9984. }
  9985. /* blockquote 样式 */
  9986. .cont>>>blockquote {
  9987. display: block;
  9988. border-left: 8px solid #d0e5f2;
  9989. padding: 5px 10px;
  9990. margin: 10px 0;
  9991. line-height: 1.4;
  9992. font-size: 100%;
  9993. background-color: #f1f1f1;
  9994. }
  9995. /* code 样式 */
  9996. .cont>>>code {
  9997. display: inline-block;
  9998. /* *display: inline; */
  9999. zoom: 1;
  10000. background-color: #f1f1f1;
  10001. border-radius: 3px;
  10002. padding: 3px 5px;
  10003. margin: 0 3px;
  10004. }
  10005. .cont>>>pre code {
  10006. display: block;
  10007. }
  10008. /* ul ol 样式 */
  10009. .cont>>>ul,
  10010. ol {
  10011. margin: 10px 0 10px 20px;
  10012. }
  10013. .wordbox {
  10014. display: flex;
  10015. flex-wrap: wrap;
  10016. cursor: pointer;
  10017. width: 100%;
  10018. }
  10019. .checkword {
  10020. width: 22px;
  10021. height: 22px;
  10022. margin: 10px auto 0;
  10023. cursor: pointer;
  10024. }
  10025. .checkword img {
  10026. width: 100%;
  10027. }
  10028. .stepBg {
  10029. display: flex;
  10030. justify-content: space-between;
  10031. align-items: center;
  10032. background: #fff;
  10033. width: calc(100%);
  10034. margin: 0 auto;
  10035. }
  10036. .stepBorder {
  10037. height: 3px !important;
  10038. background: #CAD1DC;
  10039. width: 100px !important;
  10040. margin: 0 15px !important;
  10041. position: relative;
  10042. }
  10043. .border-active {
  10044. background: #3681FC !important
  10045. }
  10046. .border-active::before,
  10047. .border-active::after {
  10048. border-color: #3681FC !important
  10049. }
  10050. .stepBorder::before,
  10051. .stepBorder::after {
  10052. content: '';
  10053. width: 9px;
  10054. height: 9px;
  10055. background: #FFFFFF;
  10056. opacity: 1;
  10057. border: 2px solid #ACB4BF;
  10058. display: block;
  10059. box-sizing: border-box;
  10060. border-radius: 50%;
  10061. position: absolute;
  10062. top: 50%;
  10063. transform: translateY(-50%);
  10064. }
  10065. .stepBorder::after {
  10066. right: -9px;
  10067. }
  10068. .stepTop {
  10069. width: 100%;
  10070. /* border-radius: 10px; */
  10071. display: flex;
  10072. justify-content: center;
  10073. align-items: center;
  10074. flex-wrap: nowrap;
  10075. background: #fff;
  10076. /* top: 18%; */
  10077. height: 80px;
  10078. border-bottom: 2px solid rgb(228, 232, 237);
  10079. box-sizing: border-box;
  10080. }
  10081. .stepTop2 {
  10082. width: 100%;
  10083. /* border-radius: 10px; */
  10084. display: flex;
  10085. justify-content: center;
  10086. align-items: center;
  10087. flex-wrap: nowrap;
  10088. background: #fff;
  10089. /* top: 18%; */
  10090. height: 20px;
  10091. border-bottom: 2px solid rgb(228, 232, 237);
  10092. box-sizing: border-box;
  10093. overflow: hidden;
  10094. cursor: pointer;
  10095. }
  10096. .stepTop>div img {
  10097. width: 100%;
  10098. }
  10099. .stepTop>div {
  10100. height: 50px;
  10101. width: 180px;
  10102. cursor: pointer;
  10103. margin: 10px 0;
  10104. border-radius: 10px;
  10105. }
  10106. .first,
  10107. .second,
  10108. .third,
  10109. .four {
  10110. background: #3681FC;
  10111. height: 90px;
  10112. color: #fff;
  10113. display: flex;
  10114. flex-direction: row;
  10115. align-items: center;
  10116. justify-content: center;
  10117. }
  10118. .first>div:nth-child(1),
  10119. .second>div:nth-child(1),
  10120. .third>div:nth-child(1),
  10121. .four>div:nth-child(1) {
  10122. margin: 5px 10px 0 0;
  10123. width: 2rem;
  10124. }
  10125. .firstNo,
  10126. .secondNo,
  10127. .thirdNo,
  10128. .fourNo {
  10129. background: #e7e7e7;
  10130. color: #adadad;
  10131. display: flex;
  10132. flex-direction: row;
  10133. align-items: center;
  10134. justify-content: center;
  10135. }
  10136. .firstNo>div:nth-child(1),
  10137. .secondNo>div:nth-child(1),
  10138. .thirdNo>div:nth-child(1),
  10139. .fourNo>div:nth-child(1) {
  10140. margin: 5px 10px 0 0;
  10141. width: 2rem;
  10142. }
  10143. .uploadWidth>>>.el-upload {
  10144. width: 60px;
  10145. height: 60px;
  10146. position: relative;
  10147. }
  10148. .addPeople {
  10149. background: #fa6060;
  10150. width: 150px;
  10151. height: 40px;
  10152. color: #fff;
  10153. border-radius: 5px;
  10154. text-align: center;
  10155. line-height: 40px;
  10156. font-size: 14px;
  10157. cursor: pointer;
  10158. }
  10159. .kcImg {
  10160. width: 60px;
  10161. margin-left: 10px;
  10162. }
  10163. .zyImg {
  10164. width: 55px;
  10165. margin: 0 10px;
  10166. }
  10167. .deleteZy {
  10168. width: 20px;
  10169. position: absolute;
  10170. top: 5px;
  10171. right: 5px;
  10172. cursor: pointer;
  10173. }
  10174. .kcImg>img,
  10175. .zyImg>img,
  10176. .deleteZy>img {
  10177. width: 100%;
  10178. height: 100%;
  10179. }
  10180. .zyBox {
  10181. display: flex;
  10182. flex-direction: row;
  10183. align-items: center;
  10184. background: #67d37d;
  10185. color: #fff;
  10186. width: 210px;
  10187. margin: 20px 20px 0 0;
  10188. border-radius: 10px;
  10189. height: 70px;
  10190. position: relative;
  10191. }
  10192. .upCss {
  10193. display: flex;
  10194. flex-direction: row;
  10195. justify-content: flex-start;
  10196. }
  10197. .upCss>>>.el-icon-plus {
  10198. position: none !important;
  10199. width: 200px;
  10200. height: 100px;
  10201. display: flex;
  10202. flex-wrap: nowrap;
  10203. flex-direction: column;
  10204. align-items: center;
  10205. justify-content: center;
  10206. border: 1px dashed #ccc;
  10207. min-width: 78px;
  10208. min-height: 100px;
  10209. z-index: 999;
  10210. }
  10211. .upCss>>>.el-upload-list__item-name {
  10212. width: 100px;
  10213. white-space: nowrap;
  10214. overflow: hidden;
  10215. text-overflow: ellipsis;
  10216. }
  10217. .upCss>>>.el-upload-list__item .el-icon-close {
  10218. font-size: 20px;
  10219. z-index: 9999;
  10220. }
  10221. .addStageImg {
  10222. min-width: 20px;
  10223. min-height: 20px;
  10224. width: 20px;
  10225. height: 20px;
  10226. cursor: pointer;
  10227. }
  10228. .addHW {
  10229. width: 28px;
  10230. height: 28px;
  10231. cursor: pointer;
  10232. }
  10233. .addStageImg>img,
  10234. .addHW>img {
  10235. width: 100%;
  10236. height: 100%;
  10237. }
  10238. .addNewPP>>>.el-dialog__body {
  10239. padding: 5px 20px;
  10240. }
  10241. .addNewPP>>>.el-dialog {
  10242. margin-top: 5vh !important;
  10243. }
  10244. .addNewPP2>>>.el-dialog__body {
  10245. padding: 5px 0;
  10246. }
  10247. .addNewPP2>>>.el-dialog {
  10248. margin-top: 5vh !important;
  10249. }
  10250. .isHeight {
  10251. height: 680px;
  10252. }
  10253. .toolChoose {
  10254. display: flex;
  10255. /* width: 100%; */
  10256. flex-direction: row;
  10257. flex-wrap: wrap;
  10258. }
  10259. .tool {
  10260. display: flex;
  10261. flex-direction: column;
  10262. flex-wrap: nowrap;
  10263. width: fit-content;
  10264. margin: 10px 0 10px 0;
  10265. align-items: center;
  10266. }
  10267. .tool+.tool {
  10268. margin-right: 45px;
  10269. }
  10270. .whiteBIcon {
  10271. width: 80px;
  10272. cursor: pointer;
  10273. display: flex;
  10274. flex-direction: column;
  10275. flex-wrap: nowrap;
  10276. align-items: center;
  10277. font-size: 14px;
  10278. }
  10279. .whiteBIcon>img,
  10280. .toolIcon>img,
  10281. .arrow>img {
  10282. width: 100%;
  10283. height: 100%;
  10284. }
  10285. .check img {
  10286. width: 20px;
  10287. height: 20px;
  10288. }
  10289. .whiteBIcon>img {
  10290. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10291. border-radius: 15px;
  10292. }
  10293. .whiteBIcon>div:nth-child(2) {
  10294. height: 20px;
  10295. line-height: 20px;
  10296. }
  10297. .check {
  10298. /* width: 20px;
  10299. height: 20px; */
  10300. cursor: pointer;
  10301. margin: 10px 0 0;
  10302. }
  10303. .checkDiv {
  10304. display: flex;
  10305. align-items: center;
  10306. }
  10307. .checkDiv span {
  10308. margin-left: 5px;
  10309. color: #858585;
  10310. }
  10311. .customWidth>>>.el-dialog {
  10312. min-width: 500px !important;
  10313. }
  10314. .a_addBox {
  10315. margin: 10px 0;
  10316. background: #fff;
  10317. padding: 15px;
  10318. /* max-height: 600px; */
  10319. overflow: auto;
  10320. }
  10321. .a_add_box {
  10322. border-bottom: 2px solid #eee;
  10323. padding-bottom: 25px;
  10324. }
  10325. .a_add_head {
  10326. display: flex;
  10327. align-items: center;
  10328. justify-content: space-between;
  10329. margin: 10px 0 0 0;
  10330. font-size: 18px;
  10331. }
  10332. .a_add_checkType {
  10333. margin-top: 10px;
  10334. display: flex;
  10335. font-size: 14px;
  10336. align-items: center;
  10337. }
  10338. .a_add_checkType span {
  10339. box-sizing: border-box;
  10340. padding: 0 0 5px 0;
  10341. cursor: pointer;
  10342. }
  10343. .a_add_checkType span+span {
  10344. margin-left: 10px;
  10345. }
  10346. .a_add_checkType .active {
  10347. border-bottom: 2px solid #409eff;
  10348. color: #409eff;
  10349. }
  10350. .a_add_head .a_add_head_input {
  10351. /* width: 540px; */
  10352. width: 100%;
  10353. }
  10354. .a_add_head .a_add_head_div {
  10355. display: flex;
  10356. align-items: center;
  10357. justify-content: space-between;
  10358. }
  10359. .a_add_body {
  10360. display: flex;
  10361. /* align-items: center; */
  10362. align-items: flex-end;
  10363. }
  10364. .a_add_input {
  10365. display: flex;
  10366. align-items: center;
  10367. flex-wrap: wrap;
  10368. }
  10369. .a_add_input_choice {
  10370. flex-direction: column;
  10371. margin-right: 10px;
  10372. }
  10373. .a_add_input_choice>>>.el-radio {
  10374. display: flex;
  10375. align-items: center;
  10376. flex-direction: row-reverse;
  10377. margin: 30px 0 0 0;
  10378. position: relative;
  10379. }
  10380. .a_add_input_choice>>>.el-checkbox {
  10381. display: flex;
  10382. align-items: center;
  10383. flex-direction: row-reverse;
  10384. margin: 30px 0 0 0;
  10385. position: relative;
  10386. }
  10387. .width100 {
  10388. width: 100%;
  10389. }
  10390. .a_add_input .a_add_persent {
  10391. width: 100%;
  10392. }
  10393. .a_add_persent_div {
  10394. width: 100%;
  10395. display: flex;
  10396. align-items: center;
  10397. }
  10398. .a_add_persent_div span {
  10399. margin: 5px 0;
  10400. }
  10401. .a_add_persent_div span:nth-child(1) {
  10402. width: 30%;
  10403. }
  10404. .a_add_persent_div span:nth-child(2) {
  10405. width: 7%;
  10406. }
  10407. .a_add_persent_div span:nth-child(3) {
  10408. width: 40%;
  10409. }
  10410. .a_add_body_div {
  10411. display: flex;
  10412. align-items: center;
  10413. justify-content: center;
  10414. /* flex-direction: column; */
  10415. position: absolute;
  10416. right: -20px;
  10417. transform: translateX(100%);
  10418. }
  10419. .a_add_body_div>>>.el-button--primary {
  10420. background: #466b99;
  10421. border: none;
  10422. }
  10423. .all_choose {
  10424. display: flex;
  10425. flex-direction: row;
  10426. align-items: flex-start;
  10427. width: 100%;
  10428. }
  10429. .all_choose+.all_choose {
  10430. /* margin-top: 10px */
  10431. }
  10432. .all_choose>span {
  10433. min-width: fit-content;
  10434. display: block;
  10435. white-space: nowrap;
  10436. overflow: hidden;
  10437. text-overflow: ellipsis;
  10438. margin-right: 20px;
  10439. font-weight: bold;
  10440. font-size: 14px;
  10441. }
  10442. .all_choose>>>.el-checkbox-group {
  10443. display: flex;
  10444. flex-direction: row;
  10445. width: 100%;
  10446. flex-wrap: wrap;
  10447. align-content: center;
  10448. justify-content: flex-start;
  10449. align-items: center;
  10450. margin-top: 3px;
  10451. }
  10452. .all_choose>.el-checkbox-group>>>.el-checkbox {
  10453. margin-bottom: 10px;
  10454. display: flex;
  10455. flex-direction: row;
  10456. align-items: center;
  10457. margin-right: 10px;
  10458. }
  10459. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  10460. min-width: 80px;
  10461. overflow: hidden;
  10462. width: 80px;
  10463. text-overflow: ellipsis;
  10464. white-space: nowrap;
  10465. }
  10466. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  10467. width: auto;
  10468. }
  10469. .choose>div:nth-child(3)>span {
  10470. /* letter-spacing: 0 !important; */
  10471. }
  10472. .choose {
  10473. display: flex;
  10474. flex-direction: column;
  10475. flex-wrap: nowrap;
  10476. height: 100%;
  10477. justify-content: space-evenly;
  10478. align-items: flex-start;
  10479. }
  10480. .both {
  10481. display: flex;
  10482. flex-direction: row;
  10483. flex-wrap: wrap;
  10484. width: 100%;
  10485. align-items: center;
  10486. justify-content: flex-start;
  10487. margin: 15px 0;
  10488. }
  10489. .notice>>>.el-dialog {
  10490. width: 500px !important;
  10491. text-align: center;
  10492. }
  10493. .notice>>>.el-button {
  10494. margin-top: 20px;
  10495. }
  10496. .whiteBg {
  10497. /* background: #fff; */
  10498. border-radius: 10px;
  10499. }
  10500. .wb_j_box {
  10501. display: flex;
  10502. width: 100%;
  10503. padding: 0 20px 0;
  10504. box-sizing: border-box;
  10505. }
  10506. .wb_j_box_content {
  10507. width: calc(100% - 55% - 100px);
  10508. display: flex;
  10509. align-items: center;
  10510. }
  10511. .wb_j_box_p_box {
  10512. max-width: calc(100% - 200px);
  10513. word-break: break-all;
  10514. overflow: hidden;
  10515. margin: 0 0 0 10px;
  10516. font-size: 14px;
  10517. color: #6e6e6e;
  10518. z-index: 999;
  10519. }
  10520. .chooseWho {
  10521. display: flex;
  10522. width: 410px;
  10523. flex-direction: row;
  10524. flex-wrap: nowrap;
  10525. justify-content: space-between;
  10526. padding-bottom: 10px;
  10527. }
  10528. .chooseWho>div {
  10529. cursor: pointer;
  10530. padding-bottom: 10px;
  10531. font-weight: bold;
  10532. }
  10533. .isChooseActive {
  10534. color: #3e88f4;
  10535. border-bottom: 2px solid #2f80f3;
  10536. }
  10537. .toolSort {
  10538. display: flex;
  10539. flex-direction: row;
  10540. flex-wrap: wrap;
  10541. justify-content: flex-start;
  10542. align-items: flex-start;
  10543. }
  10544. .toolSort>div {
  10545. margin-right: 45px;
  10546. }
  10547. .tools {
  10548. width: 100%;
  10549. display: flex;
  10550. flex-direction: column;
  10551. flex-wrap: nowrap;
  10552. align-items: flex-start;
  10553. }
  10554. .leftTools,
  10555. .rightTools {
  10556. width: 50%;
  10557. }
  10558. .leftTools+.leftTools {
  10559. border-top: 1px solid #dbdbdb;
  10560. padding-top: 30px;
  10561. }
  10562. .rightTools {
  10563. display: flex;
  10564. flex-direction: row;
  10565. flex-wrap: nowrap;
  10566. justify-content: space-around;
  10567. }
  10568. .firstToolList {
  10569. display: flex;
  10570. flex-direction: column;
  10571. flex-wrap: nowrap;
  10572. align-items: center;
  10573. }
  10574. .iconList {
  10575. display: flex;
  10576. flex-direction: row;
  10577. flex-wrap: wrap;
  10578. justify-content: flex-start;
  10579. align-items: center;
  10580. margin: 20px 0 5px 0;
  10581. width: 240px;
  10582. min-width: 240px;
  10583. }
  10584. .iconTool {
  10585. display: flex;
  10586. flex-direction: column;
  10587. flex-wrap: nowrap;
  10588. align-items: center;
  10589. justify-content: flex-start;
  10590. margin: 15px 10px;
  10591. }
  10592. .toolIcon {
  10593. width: 50px;
  10594. }
  10595. .taskBorder {
  10596. /* border: 1px solid #CAD1DC; */
  10597. border-radius: 10px;
  10598. margin-top: 20px;
  10599. min-height: 670px;
  10600. position: relative;
  10601. background: #fff;
  10602. padding: 20px;
  10603. overflow: hidden;
  10604. box-sizing: border-box;
  10605. }
  10606. .smallTaskBorder {
  10607. height: 280px;
  10608. min-height: 280px !important;
  10609. overflow: hidden;
  10610. }
  10611. /* .taskBorder>div {
  10612. padding: 30px 30px 10px;
  10613. } */
  10614. .addTaskBorder {
  10615. /* border: 2px solid #5E9AFC; */
  10616. border-radius: 8px;
  10617. margin-top: 10px;
  10618. cursor: pointer;
  10619. /* height: 50px;
  10620. line-height: 50px; */
  10621. background: #fff;
  10622. padding: 15px 0;
  10623. display: flex;
  10624. align-items: center;
  10625. justify-content: center;
  10626. }
  10627. /* .addTaskBorder>div {
  10628. margin: 0 auto;
  10629. display: flex;
  10630. align-items: center;
  10631. justify-content: center;
  10632. }
  10633. .addTaskBorder>div>img {
  10634. width: 20px;
  10635. }
  10636. .addTaskBorder>div>span {
  10637. font-size: 16px;
  10638. margin-left: 10px;
  10639. color: #5E9AFC;
  10640. } */
  10641. .funBlock {
  10642. display: flex;
  10643. padding: 15px 0;
  10644. flex-direction: row;
  10645. justify-content: center;
  10646. align-items: center;
  10647. position: absolute;
  10648. right: 0;
  10649. bottom: 0;
  10650. background: #fff;
  10651. width: 100%;
  10652. height: 60px;
  10653. }
  10654. .fold {
  10655. display: flex;
  10656. margin: 0 20px;
  10657. flex-direction: row;
  10658. align-items: center;
  10659. cursor: pointer;
  10660. color: #2b7bff;
  10661. }
  10662. .arrow {
  10663. margin-right: 8px;
  10664. width: 16px;
  10665. height: 16px;
  10666. min-width: 16px;
  10667. min-height: 16px;
  10668. background-size: 100% 100%;
  10669. display: block;
  10670. background-image: url(../../assets/icon/new/u_up.png);
  10671. /* border-left: 7px solid transparent;
  10672. border-bottom: 7px solid #717C8D;
  10673. border-top: 0px solid transparent;
  10674. border-right: 7px solid transparent; */
  10675. /* box-sizing: border-box; */
  10676. transition: all .3s;
  10677. }
  10678. .arrowZ {
  10679. transform: rotate(180deg);
  10680. }
  10681. .addToolFun {
  10682. display: flex;
  10683. width: 150px;
  10684. flex-direction: row;
  10685. align-items: center;
  10686. justify-content: center;
  10687. border: 2px dashed #CAD1DC;
  10688. border-radius: 5px;
  10689. height: 50px;
  10690. margin: 35px auto 0;
  10691. cursor: pointer;
  10692. }
  10693. .addToolFun2 {
  10694. display: flex;
  10695. width: 150px;
  10696. border: 2px dashed #CAD1DC;
  10697. flex-direction: row;
  10698. align-items: center;
  10699. justify-content: center;
  10700. border-radius: 5px;
  10701. height: 50px;
  10702. margin: 0 auto 0;
  10703. cursor: pointer;
  10704. }
  10705. .addToolFun2>div,
  10706. .addToolFun>div {
  10707. display: flex;
  10708. line-height: 50px;
  10709. }
  10710. .addToolImg {
  10711. width: 20px;
  10712. height: 20px;
  10713. margin-right: 10px;
  10714. }
  10715. .addToolsDia>>>.el-dialog__body {
  10716. padding: 20px;
  10717. }
  10718. .addToolsDia>>>.el-dialog__body>.toolChoose {
  10719. padding: 0;
  10720. }
  10721. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  10722. padding: 0;
  10723. border-bottom: none;
  10724. margin-bottom: 0;
  10725. }
  10726. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  10727. width: 100%;
  10728. }
  10729. .lineCss>>>.el-form-item__label {
  10730. width: auto !important;
  10731. }
  10732. .lineCss>>>.el-form-item__content {
  10733. margin-left: 50px !important;
  10734. }
  10735. .newSteps {
  10736. display: flex;
  10737. width: 100% !important;
  10738. /* height: 80px; */
  10739. cursor: pointer;
  10740. margin: 10px 0;
  10741. border-radius: 10px;
  10742. flex-direction: row;
  10743. align-content: center;
  10744. justify-content: center;
  10745. align-items: center;
  10746. margin: 0 !important;
  10747. }
  10748. /* 评价样式 */
  10749. .elist_css {
  10750. padding-bottom: 75px !important;
  10751. }
  10752. .elist_title {
  10753. margin-bottom: 10px;
  10754. }
  10755. .elist_input {}
  10756. .elist_input_box {
  10757. display: flex;
  10758. align-items: center;
  10759. flex-wrap: wrap;
  10760. }
  10761. .elist_input_box+.elist_input_box {
  10762. margin-top: 30px;
  10763. }
  10764. .elist_input .elist_input_box input {
  10765. font: inherit;
  10766. color: currentColor;
  10767. /* width: 200px; */
  10768. max-width: 200px;
  10769. padding: 8px 14px;
  10770. display: block;
  10771. min-width: 0;
  10772. outline: none;
  10773. border: 1px solid rgba(0, 0, 0, 0.23);
  10774. border-radius: 4px;
  10775. box-sizing: border-box;
  10776. background: #fff;
  10777. margin: 0 20px 0 0;
  10778. }
  10779. .elist_input .elist_input_box span {
  10780. height: 36px;
  10781. line-height: 36px;
  10782. color: rgb(82, 82, 82);
  10783. min-width: 80px;
  10784. }
  10785. .elist_input .elist_input_box .remove {
  10786. height: 20px;
  10787. width: 20px;
  10788. min-height: 20px;
  10789. min-width: 20px;
  10790. background-size: 100% 100%;
  10791. background-position: unset;
  10792. margin-left: 5px;
  10793. }
  10794. .elist_input_box>>>.el-rate {
  10795. display: flex;
  10796. height: 36px;
  10797. align-items: center;
  10798. }
  10799. .elist_input_box .elist_inptu_text {
  10800. width: 100%;
  10801. display: flex;
  10802. align-items: center;
  10803. margin-top: 10px;
  10804. }
  10805. .elist_input_box .elist_inptu_text input {
  10806. /* width: 500px; */
  10807. width: 100%;
  10808. max-width: unset;
  10809. }
  10810. .elist_input_box>>>.el-rate__icon {
  10811. font-size: 24px;
  10812. }
  10813. .elist_btn {
  10814. margin-top: 10px;
  10815. }
  10816. .lineTitle {
  10817. /* margin-top: 15px; */
  10818. width: 110px;
  10819. font-size: 16px;
  10820. display: flex;
  10821. align-items: center;
  10822. line-height: 20px;
  10823. }
  10824. .lineTitle::before {
  10825. content: '';
  10826. display: block;
  10827. width: 3px;
  10828. height: 20px;
  10829. background: #0061FF;
  10830. border-radius: 3px;
  10831. margin: 0 5px 0 0;
  10832. }
  10833. .courseTop {
  10834. display: flex;
  10835. flex-direction: row;
  10836. justify-content: space-between;
  10837. align-items: center;
  10838. width: calc(100% - 40px);
  10839. margin: 0 auto;
  10840. padding: 10px 0;
  10841. }
  10842. .stepsNav {
  10843. display: flex;
  10844. flex-direction: row;
  10845. justify-content: flex-start;
  10846. align-items: center;
  10847. }
  10848. .stepsWord {
  10849. font-size: 18px;
  10850. color: #fff;
  10851. font-weight: bold;
  10852. margin-left: auto;
  10853. background: rgb(15, 126, 255);
  10854. border-radius: 5px;
  10855. padding: 3px 25px;
  10856. box-sizing: border-box;
  10857. }
  10858. .stepBox {
  10859. width: calc(100% - 40px);
  10860. height: calc(100% - 50px);
  10861. overflow: hidden;
  10862. border-radius: 5px;
  10863. margin: 0 auto;
  10864. }
  10865. .rightBox {
  10866. width: calc(100%);
  10867. background: #F0F2F5;
  10868. /* border-radius: 10px; */
  10869. overflow: auto;
  10870. height: calc(100% - 150px);
  10871. margin: 0 auto;
  10872. position: relative;
  10873. box-sizing: border-box;
  10874. }
  10875. .e_add_top {
  10876. display: flex;
  10877. justify-content: space-between;
  10878. background: #fff;
  10879. position: absolute;
  10880. right: 20px;
  10881. height: 50px;
  10882. align-items: center;
  10883. }
  10884. .e_add_title2 {
  10885. display: flex;
  10886. align-items: center;
  10887. }
  10888. .e_add_title2 span {
  10889. width: 40px;
  10890. }
  10891. .e_add_title {
  10892. display: flex;
  10893. align-items: center;
  10894. color: #b8b8b8;
  10895. font-size: 18px;
  10896. position: relative;
  10897. height: 40px;
  10898. }
  10899. .e_add_title span {
  10900. margin-right: 10px;
  10901. }
  10902. .e_add_title .el_input {
  10903. width: 300px;
  10904. }
  10905. .e_add_title>>>.el-input__inner {
  10906. width: 400px;
  10907. }
  10908. .e_add_btn {}
  10909. .e_add_content {
  10910. display: flex;
  10911. width: 100%;
  10912. }
  10913. .e_add_list {
  10914. background: #fff;
  10915. height: 500px;
  10916. width: 210px;
  10917. position: relative;
  10918. margin: 15px 5px 0 0;
  10919. flex-shrink: 0;
  10920. display: flex;
  10921. flex-direction: column;
  10922. }
  10923. .e_add_list_title {
  10924. font-size: 20px;
  10925. width: 100%;
  10926. box-sizing: border-box;
  10927. padding: 15px 40px;
  10928. text-align: center;
  10929. border-bottom: 1px solid #eaeaea;
  10930. position: relative;
  10931. display: flex;
  10932. align-items: center;
  10933. justify-content: center;
  10934. height: 57px;
  10935. background: #f6f6f6;
  10936. }
  10937. .e_add_list_title span {
  10938. overflow: hidden;
  10939. white-space: nowrap;
  10940. text-overflow: ellipsis;
  10941. }
  10942. .e_add_list_title img {
  10943. position: absolute;
  10944. right: 15px;
  10945. width: 25px;
  10946. cursor: pointer;
  10947. top: 50%;
  10948. transform: translateY(-50%);
  10949. }
  10950. .e_add_list_body {
  10951. height: calc(100% - 187px);
  10952. overflow: auto;
  10953. }
  10954. .e_add_list_child {
  10955. width: 100%;
  10956. display: flex;
  10957. align-items: center;
  10958. justify-content: center;
  10959. position: relative;
  10960. box-sizing: border-box;
  10961. padding: 15px 40px;
  10962. text-align: center;
  10963. }
  10964. .e_add_list_child span {
  10965. overflow: hidden;
  10966. white-space: nowrap;
  10967. text-overflow: ellipsis;
  10968. cursor: pointer;
  10969. }
  10970. .e_add_list_child img {
  10971. position: absolute;
  10972. right: 10px;
  10973. width: 21px;
  10974. cursor: pointer;
  10975. top: 50%;
  10976. transform: translateY(-50%);
  10977. }
  10978. .e_add_list_child+.e_add_list_child {
  10979. border-top: 1px solid #eaeaea;
  10980. }
  10981. .e_add_list_child .active {
  10982. color: #409eff;
  10983. }
  10984. .e_add_list_btn {
  10985. position: absolute;
  10986. bottom: 0;
  10987. height: 50px;
  10988. background: rgb(120, 120, 254);
  10989. width: 100%;
  10990. color: #fff;
  10991. font-size: 16px;
  10992. text-align: center;
  10993. line-height: 50px;
  10994. cursor: pointer;
  10995. }
  10996. .e_add_list_detail {
  10997. position: absolute;
  10998. bottom: 0;
  10999. height: 130px;
  11000. background: rgb(120, 120, 254);
  11001. width: 100%;
  11002. color: #fff;
  11003. font-size: 16px;
  11004. display: flex;
  11005. align-items: center;
  11006. justify-content: center;
  11007. }
  11008. .e_add_list_detail textarea {
  11009. height: 90%;
  11010. width: 95%;
  11011. border: none;
  11012. resize: none;
  11013. outline: none;
  11014. padding: 5px;
  11015. box-sizing: border-box;
  11016. }
  11017. .e_add_list_pbox {
  11018. width: 100%;
  11019. }
  11020. .e_add_list_pbox_title {
  11021. height: 50px;
  11022. background: #fff;
  11023. display: flex;
  11024. align-items: center;
  11025. width: 100%;
  11026. box-sizing: border-box;
  11027. padding: 0 20px;
  11028. flex-direction: row;
  11029. flex-wrap: wrap;
  11030. }
  11031. .type_title {
  11032. font-size: 18px;
  11033. font-weight: 700;
  11034. }
  11035. .type_content {
  11036. font-size: 16px;
  11037. margin-left: 30px;
  11038. }
  11039. .type_content span+span {
  11040. margin-left: 20px;
  11041. }
  11042. .type_content span {
  11043. cursor: pointer;
  11044. padding-bottom: 5px;
  11045. box-sizing: border-box;
  11046. }
  11047. .type_content .active {
  11048. color: #409eff;
  11049. border-bottom: 2px solid #409eff;
  11050. }
  11051. .e_add_list_pbox_content {
  11052. height: calc(100% - 50px);
  11053. display: flex;
  11054. align-items: center;
  11055. width: 100%;
  11056. background: #fff;
  11057. }
  11058. .mbCss {
  11059. width: 100%;
  11060. display: flex;
  11061. flex-direction: row;
  11062. flex-wrap: nowrap;
  11063. align-content: center;
  11064. align-items: flex-start;
  11065. justify-content: flex-start;
  11066. }
  11067. .pjCss {
  11068. /* width: 42%; */
  11069. width: calc(100% - 55%);
  11070. display: flex;
  11071. flex-direction: column;
  11072. flex-wrap: nowrap;
  11073. align-items: flex-start;
  11074. }
  11075. .e_box {
  11076. display: flex;
  11077. flex-wrap: wrap;
  11078. max-height: 500px;
  11079. align-items: flex-start;
  11080. overflow: auto;
  11081. }
  11082. .e_card {
  11083. border: 1px solid #ccc;
  11084. background: #fff;
  11085. margin-right: 20px;
  11086. width: 270px;
  11087. display: flex;
  11088. flex-direction: column;
  11089. align-items: center;
  11090. border-radius: 5px;
  11091. margin-top: 10px;
  11092. text-align: center;
  11093. }
  11094. .e_card_picture {
  11095. margin: 10px 0;
  11096. }
  11097. .e_card_picture>img {
  11098. width: 50px;
  11099. }
  11100. .e_card_name {
  11101. width: 100%;
  11102. padding: 0 10px;
  11103. box-sizing: border-box;
  11104. margin-bottom: 10px;
  11105. overflow: hidden;
  11106. text-overflow: ellipsis;
  11107. white-space: nowrap;
  11108. }
  11109. .e_card_time {
  11110. width: 100%;
  11111. padding: 0 10px;
  11112. box-sizing: border-box;
  11113. font-size: 15px;
  11114. color: #c3c3c3;
  11115. margin-bottom: 10px;
  11116. }
  11117. .e_card_btn {
  11118. height: 40px;
  11119. display: flex;
  11120. align-items: center;
  11121. width: 100%;
  11122. background: rgb(244, 244, 244);
  11123. }
  11124. .e_card_btn:hover {
  11125. background: rgb(221 221 221);
  11126. }
  11127. .e_card_btn span {
  11128. flex: 1 1 auto;
  11129. text-align: center;
  11130. cursor: pointer;
  11131. }
  11132. .addEva {
  11133. border: 1px solid #ccc;
  11134. background: #fff;
  11135. margin-right: 20px;
  11136. width: 270px;
  11137. height: 149px;
  11138. display: flex;
  11139. flex-direction: column;
  11140. align-items: center;
  11141. border-radius: 5px;
  11142. margin-top: 10px;
  11143. text-align: center;
  11144. cursor: pointer;
  11145. justify-content: center;
  11146. }
  11147. .addEva>img {
  11148. width: 50px;
  11149. object-fit: cover;
  11150. }
  11151. .uploadFm {
  11152. border: 1px dashed #ccc;
  11153. width: 100%;
  11154. height: 140px;
  11155. position: relative;
  11156. cursor: pointer;
  11157. display: flex;
  11158. flex-direction: column;
  11159. justify-content: center;
  11160. align-items: center;
  11161. font-size: 14px;
  11162. color: #6e6e6e;
  11163. }
  11164. .uploadFm>img {
  11165. width: 50px;
  11166. }
  11167. .fileCss {
  11168. width: 100%;
  11169. display: flex;
  11170. flex-direction: row;
  11171. flex-wrap: nowrap;
  11172. justify-content: space-around;
  11173. align-items: center;
  11174. padding-top: 15px;
  11175. }
  11176. .fileCss>div {
  11177. display: flex;
  11178. flex-direction: column;
  11179. align-items: center;
  11180. }
  11181. .fileCss .spanName {
  11182. margin-top: 10px
  11183. }
  11184. .sysPicBox {
  11185. display: flex;
  11186. flex-direction: row;
  11187. flex-wrap: wrap;
  11188. align-content: flex-start;
  11189. height: 435px;
  11190. overflow: auto;
  11191. position: relative;
  11192. }
  11193. .picNone {
  11194. position: absolute;
  11195. left: 50%;
  11196. top: 45%;
  11197. transform: translate(-50%, -50%);
  11198. width: fit-content;
  11199. color: #9c9c9c;
  11200. }
  11201. .sysPic {
  11202. width: 200px;
  11203. height: 115px;
  11204. margin: 0 20px 20px 0;
  11205. cursor: pointer;
  11206. }
  11207. .sysPic>img,
  11208. .isSysPic>img,
  11209. .deletePic>img {
  11210. width: 100%;
  11211. height: 100%;
  11212. object-fit: cover;
  11213. }
  11214. .isSysPic {
  11215. width: 200px;
  11216. height: 115px;
  11217. position: relative;
  11218. }
  11219. .deletePic {
  11220. width: 20px;
  11221. height: 20px;
  11222. position: absolute;
  11223. top: 0;
  11224. right: 0;
  11225. cursor: pointer;
  11226. }
  11227. .select_box1 {
  11228. height: 100%;
  11229. }
  11230. .select_box1_img {
  11231. background: #fff;
  11232. border-radius: 5px;
  11233. padding: 15px;
  11234. box-sizing: border-box;
  11235. margin-bottom: 20px;
  11236. }
  11237. .select_box1_title {
  11238. padding: 0 0 15px 0;
  11239. border-bottom: 1px solid #eee;
  11240. margin-bottom: 15px;
  11241. }
  11242. .select_box1_title span:nth-child(1) {
  11243. font-size: 16px;
  11244. margin-right: 20px;
  11245. color: #000;
  11246. }
  11247. .select_box1_title span:nth-child(2) {
  11248. font-size: 14px;
  11249. color: rgb(112, 112, 112);
  11250. }
  11251. .select_box1_add_img {}
  11252. .select_box1_select {
  11253. background: #fff;
  11254. border-radius: 5px;
  11255. padding: 15px;
  11256. box-sizing: border-box;
  11257. height: calc(100% - 200px);
  11258. overflow: auto;
  11259. }
  11260. .select_box2 {
  11261. height: 100%;
  11262. }
  11263. .select_box2_title {
  11264. background: #fff;
  11265. border-radius: 5px;
  11266. padding: 5px 10px;
  11267. box-sizing: border-box;
  11268. margin-bottom: 10px;
  11269. }
  11270. .select_box2_box {
  11271. display: flex;
  11272. height: calc(100% - 30px);
  11273. }
  11274. .select_box2_img {
  11275. width: calc(100% - 310px);
  11276. height: 100%;
  11277. overflow: auto;
  11278. background: #fff;
  11279. border-radius: 5px;
  11280. }
  11281. .select_box2_img img {
  11282. width: 100%;
  11283. }
  11284. .select_box2_answer {
  11285. background: #fff;
  11286. margin-left: 10px;
  11287. border-radius: 5px;
  11288. width: 300px;
  11289. overflow: auto;
  11290. height: 100%;
  11291. display: flex;
  11292. flex-direction: column;
  11293. align-items: center;
  11294. padding-top: 10px;
  11295. box-sizing: border-box;
  11296. }
  11297. .select_box2_answer_box {
  11298. margin: 0 0 10px 0;
  11299. width: 85%;
  11300. }
  11301. .rate_textarea {
  11302. font: inherit;
  11303. color: currentColor;
  11304. width: 100%;
  11305. padding: 8px 14px;
  11306. display: block;
  11307. min-width: 0;
  11308. outline: none;
  11309. border: 1px solid rgba(0, 0, 0, 0.23);
  11310. border-radius: 4px;
  11311. box-sizing: border-box;
  11312. background: #fff;
  11313. margin: 0 20px 0 0;
  11314. resize: none;
  11315. }
  11316. .select_answer_title {
  11317. text-align: left;
  11318. width: 85%;
  11319. margin-bottom: 10px;
  11320. font-size: 18px;
  11321. color: #8e8e8e;
  11322. }
  11323. .mask {
  11324. background-color: rgb(0 0 0 / 30%);
  11325. /* position: fixed; */
  11326. position: absolute;
  11327. top: 0;
  11328. left: 0;
  11329. width: 100%;
  11330. height: 100%;
  11331. z-index: 90;
  11332. display: flex;
  11333. align-items: center;
  11334. justify-content: center;
  11335. }
  11336. .progressBox {
  11337. width: 300px;
  11338. height: 150px;
  11339. background: #fff;
  11340. border-radius: 10px;
  11341. box-shadow: 0 0 6px 1px #bfbfbf;
  11342. display: flex;
  11343. align-items: center;
  11344. justify-content: center;
  11345. flex-direction: column;
  11346. position: relative;
  11347. color: #6c6c6c;
  11348. }
  11349. .progressBox>>>.el-progress-bar__outer {
  11350. background-color: #d1dfff !important;
  11351. }
  11352. .progressBox .lbox {
  11353. height: 50px;
  11354. font-size: 19px;
  11355. display: flex;
  11356. align-items: center;
  11357. color: #747474;
  11358. }
  11359. .progressBox .lbox img {
  11360. width: 40px;
  11361. margin-right: 20px;
  11362. }
  11363. .closeCss {
  11364. position: absolute;
  11365. top: 8px;
  11366. right: 8px;
  11367. cursor: pointer;
  11368. width: 20px;
  11369. height: 20px;
  11370. }
  11371. .closeCss>img {
  11372. width: 100%;
  11373. height: 100%;
  11374. }
  11375. .updateTips::before {
  11376. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  11377. font-size: 14px;
  11378. margin-left: 20px;
  11379. font-weight: 400;
  11380. color: #ff3a3a;
  11381. margin-bottom: 10px;
  11382. display: block;
  11383. }
  11384. .updateMask {
  11385. width: 100%;
  11386. z-index: 3;
  11387. top: 0;
  11388. position: absolute;
  11389. /* background-color: rgba(0,0,0,.3); */
  11390. }
  11391. .t_j_box {
  11392. display: flex;
  11393. }
  11394. .t_j_box span:nth-child(1) {
  11395. width: 15%;
  11396. overflow: hidden;
  11397. margin-right: 10px;
  11398. text-overflow: ellipsis;
  11399. white-space: nowrap;
  11400. }
  11401. .t_j_box span:nth-child(2) {
  11402. width: 30%;
  11403. overflow: hidden;
  11404. text-overflow: ellipsis;
  11405. margin-right: 10px;
  11406. }
  11407. .t_j_box span:nth-child(3) {
  11408. max-width: calc(55% - 20px);
  11409. overflow: hidden;
  11410. text-overflow: ellipsis;
  11411. }
  11412. .sentenBox {
  11413. background: #fff;
  11414. height: 600px;
  11415. overflow: auto;
  11416. background-image: url("../../assets/icon/conSentences/csBg.png");
  11417. background-position: 102%;
  11418. background-repeat: no-repeat;
  11419. background-size: 60%;
  11420. }
  11421. .sentenBox>.sentenContent {
  11422. padding-bottom: 10px;
  11423. width: 97%;
  11424. margin: 0 auto;
  11425. }
  11426. .sentenBox>.sentenContent+.sentenContent {
  11427. border-top: 1px solid #cbcbcb;
  11428. }
  11429. .addSen {
  11430. background: #409efe;
  11431. width: 90px;
  11432. color: #fff;
  11433. height: 35px;
  11434. text-align: center;
  11435. line-height: 35px;
  11436. border-radius: 5px;
  11437. float: right;
  11438. margin: 10px 20px 0 0;
  11439. cursor: pointer;
  11440. }
  11441. .sentenTop {
  11442. display: flex;
  11443. flex-direction: row;
  11444. flex-wrap: nowrap;
  11445. align-items: center;
  11446. }
  11447. .sentenTop::before {
  11448. content: attr(index);
  11449. background: #3681fc;
  11450. border-radius: 50%;
  11451. color: #fff;
  11452. width: 25px;
  11453. height: 25px;
  11454. min-width: 25px;
  11455. min-height: 25px;
  11456. text-align: center;
  11457. line-height: 25px;
  11458. margin-right: 5px;
  11459. }
  11460. .sentenTop>div:nth-child(2) {
  11461. width: 300px;
  11462. margin: 0 15px;
  11463. }
  11464. .sentenTop>div:nth-child(3) {
  11465. background: #409efe;
  11466. color: #fff;
  11467. width: 65px;
  11468. height: 35px;
  11469. text-align: center;
  11470. line-height: 35px;
  11471. border-radius: 5px;
  11472. cursor: pointer;
  11473. }
  11474. .cardList {
  11475. padding: 30px 0 20px 0;
  11476. display: flex;
  11477. flex-direction: row;
  11478. flex-wrap: wrap;
  11479. align-items: center;
  11480. box-sizing: border-box;
  11481. border-bottom: 1px solid #f4f4f4;
  11482. width: 98%;
  11483. margin: 0 auto;
  11484. }
  11485. .rightCardList {
  11486. display: flex;
  11487. flex-wrap: wrap;
  11488. }
  11489. .cardBox {
  11490. display: flex;
  11491. flex-direction: row;
  11492. flex-wrap: wrap;
  11493. align-items: center;
  11494. align-content: center;
  11495. }
  11496. .isCard,
  11497. .isCard1 {
  11498. width: auto;
  11499. padding: 0 20px;
  11500. height: 65px;
  11501. text-align: center;
  11502. line-height: 65px;
  11503. font-size: 14px;
  11504. cursor: pointer;
  11505. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  11506. background-size: 100% 100%;
  11507. position: relative;
  11508. z-index: 99;
  11509. }
  11510. .isCard1 {
  11511. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  11512. }
  11513. .isCard:hover .deleteWord {
  11514. display: block;
  11515. }
  11516. .isCard>div:nth-child(1),
  11517. .isCard1>div:nth-child(1) {
  11518. white-space: nowrap;
  11519. overflow: hidden;
  11520. text-overflow: ellipsis;
  11521. width: 100%;
  11522. margin: 0 auto;
  11523. }
  11524. .card {
  11525. width: 140px;
  11526. height: 65px;
  11527. }
  11528. .card>img {
  11529. width: 100%;
  11530. height: 100%;
  11531. }
  11532. .rightCardBox {
  11533. width: 98%;
  11534. margin: 10px auto 0;
  11535. }
  11536. .rightCardBox>div:nth-child(1) {
  11537. margin-bottom: 10px;
  11538. }
  11539. .cardCss {
  11540. display: flex;
  11541. flex-direction: column;
  11542. flex-wrap: nowrap;
  11543. align-items: center;
  11544. border-bottom: 3px solid #b4c3d3;
  11545. padding: 0 0 5px 0;
  11546. /* margin-right: 10px; */
  11547. }
  11548. .cardCss>div:nth-child(2) {
  11549. background: #5b7b9d;
  11550. color: #fff;
  11551. width: 20px;
  11552. height: 20px;
  11553. border-radius: 50%;
  11554. text-align: center;
  11555. line-height: 20px;
  11556. }
  11557. .sentenTopBox {
  11558. display: flex;
  11559. flex-direction: row;
  11560. flex-wrap: nowrap;
  11561. align-items: center;
  11562. justify-content: space-between;
  11563. padding: 55px 0 0 20px;
  11564. box-sizing: border-box;
  11565. width: 85%;
  11566. }
  11567. .stepsBottom {
  11568. width: 100%;
  11569. box-shadow: 0 0 10px 10px #f7f7f7;
  11570. /* background: #f7f7f7; */
  11571. border-radius: 10px;
  11572. overflow: hidden;
  11573. height: 100%
  11574. }
  11575. .navTop {
  11576. background: #53749b;
  11577. color: #fff;
  11578. height: 40px;
  11579. line-height: 40px;
  11580. padding-left: 15px;
  11581. font-size: 18px;
  11582. }
  11583. .navBottom {
  11584. /* background: #6b91b7; */
  11585. height: 100%;
  11586. overflow: auto;
  11587. }
  11588. .navTask {
  11589. display: flex;
  11590. flex-direction: row;
  11591. flex-wrap: nowrap;
  11592. align-items: center;
  11593. padding: 10px 10px 10px 0;
  11594. cursor: pointer;
  11595. background: #ffffff;
  11596. width: 95%;
  11597. margin: 10px auto 0;
  11598. box-sizing: border-box;
  11599. border-radius: 5px;
  11600. flex-wrap: wrap;
  11601. }
  11602. .navTask::before{
  11603. content: '';
  11604. display:block;
  11605. width:16px;
  11606. height:16px;
  11607. background-image: url(../../assets/icon/new/icon_arrow.png);
  11608. background-size:100%;
  11609. margin-left:10px;
  11610. }
  11611. .noImage::before{
  11612. display: none;
  11613. background-image: unset !important;
  11614. }
  11615. .isNavOpen::before{
  11616. background-image: url(../../assets/icon/new/icon_arrow_a.png) !important;
  11617. }
  11618. .isNavTask {
  11619. /* background: #3681FC; */
  11620. background: #EEF3FB;
  11621. }
  11622. .isNavTask .nt_taskName {
  11623. /* color: #fff !important; */
  11624. font-weight: bold !important;
  11625. color: #0061FF !important;
  11626. }
  11627. .isNavTask .nt_taskTitle {
  11628. /* color: #AECCFE !important; */
  11629. font-weight: bold !important;
  11630. color: #0061FF !important;
  11631. }
  11632. .navTask .nt_taskBox {
  11633. width: calc(100% - 85px);
  11634. padding: 0 10px 0 5px;
  11635. box-sizing: border-box;
  11636. box-sizing: border-box;
  11637. display: flex;
  11638. flex-direction: row;
  11639. flex-wrap: nowrap;
  11640. align-items: baseline;
  11641. }
  11642. .navTask .nt_taskTitle {
  11643. /* color: #717C8D; */
  11644. color: #060E17;
  11645. line-height: 25px;
  11646. font-size: 16px;
  11647. min-width: 45px;
  11648. }
  11649. .navTask .nt_taskName {
  11650. /* color: #fff; */
  11651. /* max-width: 130px; */
  11652. /* width: 100%; */
  11653. max-width: calc(100% - 50px);
  11654. white-space: nowrap;
  11655. overflow: hidden;
  11656. text-overflow: ellipsis;
  11657. font-size: 16px;
  11658. color: #060E17;
  11659. /* color: #0E1E33; */
  11660. }
  11661. .gjBox {
  11662. width: calc(100% - 25px);
  11663. padding: 0 0 0 0;
  11664. box-sizing: border-box;
  11665. border-left: 1px solid #CAD1DC;
  11666. margin-left: 25px;
  11667. }
  11668. .gjBox > div{
  11669. display:flex;
  11670. align-items:center;
  11671. }
  11672. .gjBox > div::before{
  11673. content: '';
  11674. height:1px;
  11675. width:10px;
  11676. background: #CAD1DC;
  11677. display: block;
  11678. margin-right:5px;
  11679. }
  11680. .gjCss {
  11681. display: flex;
  11682. flex-direction: row;
  11683. flex-wrap: nowrap;
  11684. align-items: center;
  11685. padding: 15px 0;
  11686. box-sizing: border-box;
  11687. font-size: 14px;
  11688. cursor: pointer;
  11689. }
  11690. .isGjCss {
  11691. color: #0061ff;
  11692. }
  11693. .groupBox {}
  11694. .groupContent+.groupContent {
  11695. margin-top: 30px;
  11696. }
  11697. .groupTitle {
  11698. font-size: 24px;
  11699. color: rgb(80, 80, 80);
  11700. margin-bottom: 20px;
  11701. }
  11702. .groupName {
  11703. display: flex;
  11704. align-items: center;
  11705. }
  11706. .groupn {
  11707. font-size: 15px;
  11708. margin-right: 10px;
  11709. }
  11710. .groupName+.groupName {
  11711. margin-top: 15px;
  11712. }
  11713. .groupBtn {
  11714. margin-left: 10px;
  11715. }
  11716. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  11717. text-align: left;
  11718. }
  11719. .radioBox>div {
  11720. margin: 10px 0 0 10px;
  11721. }
  11722. .radioBox>>>.el-radio__input,
  11723. .radioBox>>>.el-checkbox__inner {
  11724. margin-left: 10px;
  11725. }
  11726. .radioBox>>>.el-radio__label,
  11727. .radioBox>>>.el-checkbox__label {
  11728. display: flex;
  11729. align-items: center;
  11730. }
  11731. .inImg {
  11732. width: 50px;
  11733. }
  11734. .inImg>img {
  11735. width: 100%;
  11736. height: 100%;
  11737. object-fit: cover;
  11738. }
  11739. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  11740. height: auto;
  11741. padding: 10px;
  11742. margin: 0;
  11743. }
  11744. .upCss >>> .el-upload-list{
  11745. width: 100%;
  11746. }
  11747. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  11748. width: 100%;
  11749. height: 120px;
  11750. object-fit: contain;
  11751. background: unset;
  11752. margin-left: 0;
  11753. }
  11754. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  11755. display: none;
  11756. }
  11757. .tcMember+.tcMember::before {
  11758. content: "、";
  11759. }
  11760. .xzUpImg {
  11761. width: 25px;
  11762. height: 25px;
  11763. min-width: 25px;
  11764. min-height: 25px;
  11765. cursor: pointer;
  11766. margin: 0 10px;
  11767. }
  11768. .xzUpImg>img {
  11769. width: 100%;
  11770. height: 100%;
  11771. }
  11772. .closeCss {
  11773. position: absolute;
  11774. top: 8px;
  11775. right: 8px;
  11776. cursor: pointer;
  11777. width: 20px;
  11778. height: 20px;
  11779. }
  11780. .closeCss>img {
  11781. width: 100%;
  11782. height: 100%;
  11783. }
  11784. .moveBtn {
  11785. display: flex;
  11786. flex-direction: row;
  11787. flex-wrap: nowrap;
  11788. align-items: center;
  11789. width: 55px;
  11790. }
  11791. .timuUpImg {
  11792. display: flex;
  11793. flex-direction: row;
  11794. align-items: center;
  11795. width: 100%;
  11796. margin-right: 10px;
  11797. }
  11798. .timuUpImg>div:nth-child(1) {
  11799. margin-right: 10px;
  11800. display: flex;
  11801. align-items: center;
  11802. width: 100%;
  11803. }
  11804. .timuImgBox {
  11805. margin: 10px 0;
  11806. display: flex;
  11807. flex-direction: column;
  11808. flex-wrap: wrap;
  11809. align-items: flex-start;
  11810. }
  11811. .timuImg {
  11812. width: 100px;
  11813. margin: 5px 0;
  11814. cursor: pointer;
  11815. position: relative;
  11816. }
  11817. .timuImg:hover .deleteWord {
  11818. display: block;
  11819. }
  11820. .deleteWord {
  11821. width: 25px;
  11822. height: 25px;
  11823. position: absolute;
  11824. right: -5px;
  11825. top: -5px;
  11826. cursor: pointer;
  11827. display: none;
  11828. }
  11829. .timuImg>img,
  11830. .deleteWord>img {
  11831. width: 100%;
  11832. height: 100%;
  11833. object-fit: cover;
  11834. }
  11835. .e_add_delete {
  11836. cursor: pointer;
  11837. margin-left: 10px;
  11838. }
  11839. .pType_box {
  11840. margin-top: 30px;
  11841. align-items: flex-end;
  11842. }
  11843. .noneBox {
  11844. height: 200px;
  11845. width: 100%;
  11846. display: flex;
  11847. align-items: center;
  11848. justify-content: center;
  11849. flex-direction: column;
  11850. /* margin-top: 150px; */
  11851. }
  11852. .noneBox>img {
  11853. width: 95px;
  11854. }
  11855. .noneBox>span {
  11856. margin-top: 10px;
  11857. color: #717C8D;
  11858. }
  11859. .rb_c_box {
  11860. width: 100%;
  11861. height: 100%;
  11862. display: flex;
  11863. /* padding: 20px; */
  11864. box-sizing: border-box;
  11865. justify-content: space-between;
  11866. }
  11867. .rb_c_box_left {
  11868. height: 100%;
  11869. background: #fff;
  11870. width: 270px;
  11871. min-width: 270px;
  11872. border-radius: 8px;
  11873. margin-right: 10px;
  11874. }
  11875. .rb_c_box_right {
  11876. height: 100%;
  11877. width: calc(100%);
  11878. overflow: hidden;
  11879. }
  11880. .rb_c_box_btn {
  11881. display: flex;
  11882. justify-content: flex-start;
  11883. height: 50px;
  11884. align-items: center;
  11885. }
  11886. .rb_c_box_right>.basic_box {
  11887. /* background: #fff; */
  11888. border-radius: 0;
  11889. height: calc(100% - 0px);
  11890. overflow: auto;
  11891. padding: 0;
  11892. }
  11893. .textarea_css {
  11894. display: block;
  11895. resize: none;
  11896. padding: 10px 15px;
  11897. line-height: 1.5;
  11898. box-sizing: border-box;
  11899. width: 100%;
  11900. font-size: 14px;
  11901. color: #606266;
  11902. background-color: #FFF;
  11903. background-image: none;
  11904. border: 1px solid #DCDFE6;
  11905. border-radius: 4px;
  11906. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  11907. outline: none;
  11908. overflow: hidden;
  11909. height: 46px;
  11910. font-family: 'Microsoft YaHei';
  11911. }
  11912. .textarea_css::-webkit-input-placeholder {
  11913. color: #C0C4CC
  11914. }
  11915. .textarea_css:focus {
  11916. border-color: #409EFF;
  11917. outline: 0;
  11918. }
  11919. .addEditor>>>.text {
  11920. height: auto;
  11921. min-height: 100px;
  11922. }
  11923. .addEditor>>>.w-e-text-container {
  11924. min-height: 100px;
  11925. }
  11926. .moveBtn2 {
  11927. flex-direction: column;
  11928. width: fit-content;
  11929. margin: 0 10px 0 10px;
  11930. }
  11931. .moveBtn2 .chapter_upload_down,
  11932. .moveBtn2 .chapter_upload_up {
  11933. width: 16px;
  11934. height: 16px;
  11935. }
  11936. .moveBtn2 .chapter_upload_up::after,
  11937. .moveBtn2 .chapter_upload_down::after {
  11938. width: 10px;
  11939. height: 10px;
  11940. }
  11941. .fullStyle>>>.el-dialog__body {
  11942. height: calc(100% - 125px) !important;
  11943. box-sizing: border-box;
  11944. }
  11945. .fullStyle>>>.el-dialog {
  11946. width: 100% !important;
  11947. max-width: 100% !important;
  11948. height: 100% !important;
  11949. margin: 0 !important;
  11950. }
  11951. .fullStyle {
  11952. width: 100% !important;
  11953. max-width: 100% !important;
  11954. height: 100% !important;
  11955. margin: 0 auto !important;
  11956. }
  11957. .wb_j_box_btn {
  11958. width: calc(100% - 30px);
  11959. display: flex;
  11960. height: 40px;
  11961. border: 1.5px solid #CAD1DC;
  11962. border-radius: 4px;
  11963. box-sizing: border-box;
  11964. align-items: center;
  11965. font-size: 14px;
  11966. cursor: pointer;
  11967. overflow: hidden;
  11968. }
  11969. .wb_j_box_btn:hover{
  11970. border: 1.5px solid #0061FF;
  11971. }
  11972. .wb_j_box_title {
  11973. background: #F0F4FA;
  11974. height: 100%;
  11975. line-height: 40px;
  11976. width: 90px;
  11977. text-align: center;
  11978. color: #060E17;
  11979. border-right: 1.5px solid #CAD1DC;
  11980. box-sizing: border-box;
  11981. }
  11982. .wb_j_box_btn_c {
  11983. width: calc(100% - 90px);
  11984. padding: 0 35px 0 10px;
  11985. box-sizing: border-box;
  11986. position: relative;
  11987. }
  11988. .wb_j_box_span {
  11989. width: 100%;
  11990. overflow: hidden;
  11991. white-space: nowrap;
  11992. text-overflow: ellipsis;
  11993. word-wrap: break-word;
  11994. color: #717C8D;
  11995. }
  11996. .wb_j_box_arrow {
  11997. content: '';
  11998. width: 14px;
  11999. height: 14px;
  12000. background: url(../../assets/icon/new/u_arrow.png);
  12001. background-size: 100% 100%;
  12002. position: absolute;
  12003. right: 12px;
  12004. top: 50%;
  12005. transform: translateY(-50%);
  12006. }
  12007. .check_classBox{
  12008. height: 400px;
  12009. display: flex;
  12010. border-top: 1.5px solid #E7EBF1;
  12011. border-bottom: 1.5px solid #E7EBF1;
  12012. }
  12013. .check_class_right{
  12014. width: 130px;
  12015. border-right: 1px solid #E7EBF1;
  12016. display: flex;
  12017. align-items: center;
  12018. flex-direction: column;
  12019. height: 100%;
  12020. overflow: auto;
  12021. padding: 15px 0;
  12022. box-sizing: border-box;
  12023. }
  12024. .check_class{
  12025. width: 85%;
  12026. border-radius: 5px;
  12027. height: 30px;
  12028. line-height: 30px;
  12029. text-align: center;
  12030. padding: 0 10px;
  12031. box-sizing: border-box;
  12032. cursor:pointer;
  12033. white-space: nowrap;
  12034. overflow: hidden;
  12035. text-overflow: ellipsis;
  12036. }
  12037. .check_class.activeX{
  12038. background: #E0EAFB;
  12039. color:#3681FC;
  12040. font-weight:700;
  12041. }
  12042. .check_class + .check_class{
  12043. margin-top: 15px;
  12044. }
  12045. .check_class_left{
  12046. background: #FAFAFA;
  12047. width: calc(100% - 130px);
  12048. padding: 15px;
  12049. box-sizing: border-box;
  12050. }
  12051. .check_class_left_title{
  12052. font-size: 16px;
  12053. font-weight: 700;
  12054. margin-bottom: 10px;
  12055. }
  12056. .check_class_item{
  12057. display: flex;
  12058. flex-wrap: wrap;
  12059. height: calc(100% - 45px);
  12060. overflow: auto;
  12061. justify-content: flex-start;
  12062. align-items: flex-start;
  12063. align-content: flex-start;
  12064. }
  12065. .class_item{
  12066. margin: 0 15px 15px 0;
  12067. }
  12068. .class_item:hover >>> .el-checkbox__label{
  12069. color:#409EFF;
  12070. }
  12071. .class_item >>> .el-checkbox__label{
  12072. color: #0E1E33;
  12073. }
  12074. .class_item:hover >>> .el-checkbox__inner{
  12075. border-color: #409EFF;
  12076. }
  12077. .class_item >>> .el-checkbox, .class_item >>> .el-checkbox__input{
  12078. display: flex;
  12079. align-items: center;
  12080. }</style>