addCourse.vue 300 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="stepBg">
  6. <div class="stepTop">
  7. <div v-if="steps == 1" class="first" @click="navSteps(1)">
  8. <div>
  9. <img src="../../assets/icon/first.png" alt />
  10. </div>
  11. <div>填写基本信息</div>
  12. </div>
  13. <div v-else class="firstNo" @click="navSteps(1)">
  14. <div>
  15. <img src="../../assets/icon/firstNo.png" alt />
  16. </div>
  17. <div>填写基本信息</div>
  18. </div>
  19. <div v-show="cidType === 0" class="secondNo">
  20. <div v-if="steps == 2" class="newSteps second" @click="navSteps(2)">
  21. <div style="margin: 5px 10px 0 0; width: 2rem">
  22. <img src="../../assets/icon/second.png" alt />
  23. </div>
  24. <div>选择课程框架</div>
  25. </div>
  26. <div v-else class="newSteps secondNo" @click="navSteps(2)">
  27. <div>
  28. <img src="../../assets/icon/secondNo.png" alt />
  29. </div>
  30. <div>选择课程框架</div>
  31. </div>
  32. </div>
  33. <div v-if="steps == 3" class="third" @click="navSteps(3)">
  34. <div>
  35. <img src="../../assets/icon/third.png" alt />
  36. </div>
  37. <div>上传课程内容</div>
  38. </div>
  39. <div v-else class="thirdNo" @click="navSteps(3)">
  40. <div>
  41. <img src="../../assets/icon/thirdNo.png" alt />
  42. </div>
  43. <div>上传课程内容</div>
  44. </div>
  45. <div v-if="steps == 4" class="four">
  46. <div>
  47. <img src="../../assets/icon/four.png" alt />
  48. </div>
  49. <div>上传完成</div>
  50. </div>
  51. <div v-else class="fourNo">
  52. <div>
  53. <img src="../../assets/icon/fourNo.png" alt />
  54. </div>
  55. <div>上传完成</div>
  56. </div>
  57. </div>
  58. <div class="stepsBottom" v-if="steps == 3 && !unitJson[unitIndex].easy">
  59. <div class="navTop">辅助导航</div>
  60. <div class="navBottom">
  61. <div class="navTask" :class="{
  62. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  63. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  64. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  65. <div>任务{{ tIndex + 1 }}</div>
  66. <div>
  67. <el-tooltip effect="light" :content="t.task" placement="top">
  68. <span>{{ t.task }}</span>
  69. </el-tooltip>
  70. </div>
  71. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1">
  72. <div class="chapter_upload_up" style="width: 15px; height: 15px" @click.stop="taskMove(1, tIndex)">
  73. </div>
  74. <div class="chapter_upload_down" style="width: 15px; height: 15px; margin: 2px 0 0"
  75. @click.stop="taskMove(2, tIndex)"></div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  82. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  83. <div class="courseTop">
  84. <div class="stepsNav">
  85. <h3 class="info_title" v-if="steps == 1">填写基本信息</h3>
  86. <h3 class="info_title" v-if="steps == 2">请选择课程框架</h3>
  87. <h3 class="info_title" v-if="steps == 3">上传课程内容</h3>
  88. <h3 class="info_title" v-if="steps == 4">上传课程</h3>
  89. <el-breadcrumb separator-class="el-icon-arrow-right" style="margin-top: 15px">
  90. <el-breadcrumb-item :to="{
  91. path:
  92. '/course?userid=' +
  93. userid +
  94. '&oid=' +
  95. oid +
  96. '&org=' +
  97. org,
  98. }">课程管理</el-breadcrumb-item>
  99. <el-breadcrumb-item>
  100. <span style="color: rgb(15, 126, 255)">添加课程</span>
  101. </el-breadcrumb-item>
  102. </el-breadcrumb>
  103. </div>
  104. <div v-if="steps == 1 || steps == 2 || steps == 3" class="stepsWord">
  105. {{
  106. steps == 1
  107. ? "第一步"
  108. : steps == 2
  109. ? "第二步"
  110. : steps == 3
  111. ? cidType === 0
  112. ? "第三步"
  113. : "第二步"
  114. : ""
  115. }}
  116. </div>
  117. </div>
  118. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  119. <div class="updateMask" :style="{
  120. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  121. }" v-if="cid && userid != courseUserid"></div>
  122. <div class="whiteBg">
  123. <div class="right_title" :class="{ updateTips: cid && userid != courseUserid }">
  124. 课程基本信息
  125. </div>
  126. <div class="basic_box">
  127. <div class="big_box">
  128. <div class="left_first">
  129. <div>
  130. <div>
  131. <div class="bInfo_title" style="margin-bottom: 15px">
  132. <!-- <span style="color: red">*</span> -->
  133. 课程名称
  134. </div>
  135. <div style="display: flex; margin-right: 20px">
  136. <img src="../../assets/icon/projectName.png" alt style="margin-right: 8px" />
  137. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName" />
  138. </div>
  139. </div>
  140. <div class="pType_box">
  141. <el-checkbox-group v-model="pTypeCheck" style="display: flex;align-items: center;">
  142. <div class="all_choose" style="width:100px" v-for="(item, index) in CourseType[0]" :key="index">
  143. <el-checkbox v-if="CourseTypeJson[item.id].length" :label="item.id" >{{item.name}}+</el-checkbox>
  144. </div>
  145. </el-checkbox-group>
  146. </div>
  147. <div class="both">
  148. <div class="choose">
  149. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  150. <span v-if="CourseTypeJson[item.id].length > 0 && (pTypeCheck.length > 0 ? pTypeCheck.indexOf(item.id) != -1 : true)">{{
  151. item.name
  152. }}</span>
  153. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 && (pTypeCheck.length > 0 ? pTypeCheck.indexOf(item.id) != -1 : true)">
  154. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  155. item1.name }}</el-checkbox>
  156. </el-checkbox-group>
  157. <!-- <div
  158. v-else
  159. style="font-size: 14px; margin-left: -8px"
  160. >
  161. 暂无
  162. </div> -->
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <div class="whiteBg" style="border-radius: 0">
  172. <div class="right_first">
  173. <div class="right_title">上传封面与成员</div>
  174. <div style="
  175. padding: 0 0 50px 20px;
  176. display: flex;
  177. align-items: baseline;
  178. justify-content: flex-start;
  179. margin: 0 auto;
  180. ">
  181. <div>
  182. <div class="bInfo_title" style="margin-top: 0 !important">
  183. 课程封面
  184. </div>
  185. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  186. <img src="../../assets/icon/addPoster.png" alt="" />
  187. </div>
  188. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  189. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  190. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  191. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  192. <i class="el-icon-plus"></i>
  193. </el-upload>
  194. </div>
  195. <div style="
  196. display: flex;
  197. flex-flow: row nowrap;
  198. flex-direction: row;
  199. flex-wrap: wrap;
  200. align-items: baseline;
  201. margin: 0 30px;
  202. ">
  203. <!-- <div style="margin: 0 80px">
  204. <div class="bInfo_title">
  205. 选择课程成员
  206. </div>
  207. <div
  208. class="addPeople"
  209. @click="addPP"
  210. v-if="this.checkboxList.length == 0"
  211. >添加成员</div>
  212. <div class="addPeople" @click="addPP" v-else>已添加,点击查看</div>
  213. </div>-->
  214. <div style="margin: 0 30px 0 0; width: 150px">
  215. <div class="bInfo_title">添加班级</div>
  216. <div class="addPeople" @click="
  217. (dialogVisibleClass = true),
  218. (classSearch = ''),
  219. getClass()
  220. ">
  221. 添加班级
  222. </div>
  223. <div v-if="checkboxList2.length" style="
  224. max-width: 100%;
  225. word-break: break-all;
  226. overflow: hidden;
  227. margin-top: 10px;
  228. font-size: 14px;
  229. color: #6e6e6e;
  230. ">
  231. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2"
  232. :key="tcIndex">{{ getClassC(tc) }}</span>
  233. </div>
  234. </div>
  235. <div style="flex: 0.5 1 0%; margin: 0; width: 180px"
  236. v-if="courseUserid != '' ? courseUserid == userid : true">
  237. <div class="bInfo_title">协同编辑</div>
  238. <div class="addPeople" @click="openMember" style="background: #6b92c9">
  239. 添加协同成员
  240. </div>
  241. <div v-if="checkboxList3.length" style="
  242. max-width: 100%;
  243. word-break: break-all;
  244. overflow: hidden;
  245. margin-top: 10px;
  246. font-size: 14px;
  247. color: #6e6e6e;
  248. ">
  249. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3" :key="tcIndex">{{
  250. getMan2(tc) }}</span>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  258. <div class="right_title">课程简要描述</div>
  259. <div style="width: 95%; padding: 15px 0px 15px 20px">
  260. <div style="width: 55%">
  261. <textarea rows="8" class="binfo_input" cols v-model="courseText" :placeholder="
  262. '1、课程内容说明' +
  263. '\n' +
  264. '2、课程学习知识目标' +
  265. '\n' +
  266. '3、课程学习技能目标'
  267. "></textarea>
  268. </div>
  269. </div>
  270. <!-- <div style="width: 95%; margin: 15px auto">
  271. <el-switch
  272. v-model="isTeacherSee"
  273. active-text="允许给其他老师查看"
  274. style="padding-bottom: 30px"
  275. ></el-switch>
  276. </div>-->
  277. <div style="width: 95%; padding: 15px 0px 15px 20px">
  278. <el-switch v-model="isTeacherSee" active-text="是否公开此课程" style="padding-bottom: 30px"></el-switch>
  279. </div>
  280. </div>
  281. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  282. <div class="right_title">目标管理</div>
  283. <div style="margin: 15px auto; padding: 0 0 0 20px">
  284. <div style="
  285. width: 100%;
  286. display: flex;
  287. flex-direction: row;
  288. flex-wrap: nowrap;
  289. align-content: center;
  290. align-items: center;
  291. justify-content: space-between;
  292. ">
  293. <div style="
  294. display: flex;
  295. flex-flow: row nowrap;
  296. align-items: flex-start;
  297. width: 100%;
  298. flex-direction: column;
  299. flex-wrap: nowrap;
  300. position: relative;
  301. ">
  302. <!-- <div style="margin-right: 15px; min-width: 120px">
  303. 请选择评价指标
  304. </div>
  305. <div>
  306. <el-select
  307. v-model="evalua"
  308. placeholder="请选择体系"
  309. @change="checkEva"
  310. >
  311. <el-option
  312. v-for="(e, eIndex) in evaJuri"
  313. :key="eIndex"
  314. :label="e.title"
  315. :value="e.id"
  316. ></el-option>
  317. </el-select>
  318. </div> -->
  319. <!-- <div
  320. @click="openT"
  321. class="addPeople"
  322. style="
  323. background: #6b92c9;
  324. margin: 0 0 0 15px;
  325. position: absolute;
  326. right: 23%;
  327. "
  328. >
  329. 前往设置目标管理
  330. </div> -->
  331. <div class="e_box">
  332. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  333. <div class="e_card_picture">
  334. <img src="../../assets/e_picture.png" />
  335. </div>
  336. <div class="e_card_name">
  337. <span>{{ item.title }}</span>
  338. </div>
  339. <!-- <div class="e_card_time">
  340. <span>{{ item.time }}</span>
  341. </div> -->
  342. <div class="e_card_btn">
  343. <span @click="checkEva(item.id, 2)">导入</span>
  344. <!-- <span @click="openT">前往设置</span> -->
  345. </div>
  346. </div>
  347. <div class="addEva" @click="openT">
  348. <img src="../../assets/icon/addEva.png" alt="" />
  349. </div>
  350. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  351. 暂无数据
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. <div v-if="evalua" style="
  357. border: 1px solid #e5e5e5;
  358. width: 95%;
  359. margin-top: 30px;
  360. box-shadow: 3px 1px 15px 3px #e0e0e0;
  361. ">
  362. <div class="e_add_top">
  363. <div class="e_add_title">
  364. <span>当前使用目标管理</span>
  365. <span>{{ eTitle }}</span>
  366. <img src="../../assets/line.png" class="cru_line" style="
  367. width: 125px;
  368. height: 20px;
  369. bottom: -10px;
  370. left: 155px;
  371. " />
  372. <!-- <el-input
  373. v-model="eTitle"
  374. placeholder="请输入名称"
  375. @change="setMindData"
  376. ></el-input>-->
  377. </div>
  378. <div class="e_add_delete" @click="deleteEva()">
  379. <img src="../../assets/icon/delete.png" alt="" />
  380. </div>
  381. </div>
  382. <div class="e_add_content">
  383. <div class="e_add_list_pbox">
  384. <div class="e_add_list_pbox_title">
  385. <span class="type_title">切换模式</span>
  386. <div class="type_content">
  387. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  388. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  389. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  390. </div>
  391. </div>
  392. <div class="e_add_list_pbox_content">
  393. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  394. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  395. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  396. </SeeBoard>
  397. </div>
  398. </div>
  399. </div>
  400. </div>
  401. </div>
  402. </div>
  403. </div>
  404. <div class="rightBox" v-if="this.steps == 2">
  405. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  406. <!-- <div
  407. style="
  408. color: #b8b8b8;
  409. background: #fff;
  410. width: 26%;
  411. height: 40px;
  412. border-radius: 15px;
  413. padding-left: 20px;
  414. line-height: 40px;
  415. font-size: 17px;
  416. box-shadow: 0px 1px 2px 2px #e0e0e0;
  417. "
  418. >-->
  419. <div class="right_title" style="border: none; margin: 0; padding: 0">
  420. 请选择合适的课程模板
  421. </div>
  422. <div class="wordbox">
  423. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  424. <div class="wordPic">
  425. <img src="../../assets/icon/wordMub.png" alt />
  426. </div>
  427. <div style="
  428. margin-top: 10px;
  429. line-height: 19px;
  430. overflow: hidden;
  431. text-overflow: ellipsis;
  432. white-space: nowrap;
  433. padding: 0 20px;
  434. ">
  435. {{ aa.title }}
  436. </div>
  437. </div>
  438. <div class="wordTeacher" @click="checkTemplate2()">
  439. <div class="wordPic">
  440. <img src="../../assets/icon/wordMub.png" alt />
  441. </div>
  442. <div style="
  443. margin-top: 10px;
  444. line-height: 19px;
  445. overflow: hidden;
  446. text-overflow: ellipsis;
  447. white-space: nowrap;
  448. padding: 0 20px;
  449. ">
  450. 任务模式
  451. </div>
  452. </div>
  453. <div class="wordTeacher" @click="checkTemplate3()">
  454. <div class="wordPic">
  455. <img src="../../assets/icon/wordMub.png" alt />
  456. </div>
  457. <div style="
  458. margin-top: 10px;
  459. line-height: 19px;
  460. overflow: hidden;
  461. text-overflow: ellipsis;
  462. white-space: nowrap;
  463. padding: 0 20px;
  464. ">
  465. 简易模式
  466. </div>
  467. </div>
  468. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  469. <div class="wordPic">
  470. <img src="../../assets/icon/wordMub.png" alt />
  471. </div>
  472. <div style="
  473. margin-top: 10px;
  474. line-height: 19px;
  475. overflow: hidden;
  476. text-overflow: ellipsis;
  477. white-space: nowrap;
  478. padding: 0 20px;
  479. ">
  480. 我的课程
  481. </div>
  482. </div> -->
  483. </div>
  484. </div>
  485. </div>
  486. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  487. <div class="basic_box">
  488. <div style="
  489. display: flex;
  490. flex-direction: row;
  491. align-items: center;
  492. position: sticky;
  493. top: 0;
  494. background: #fff;
  495. z-index: 99;
  496. width: 100%;
  497. padding: 0 20px 0 20px;
  498. box-sizing: border-box;
  499. ">
  500. <div class="cru_selectBox">
  501. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  502. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  503. 第{{ index + 1 }}阶段
  504. </div>
  505. <img src="../../assets/line.png" class="cru_line" :style="{
  506. left: offsetLetfPx + 'px',
  507. }" />
  508. </div>
  509. <div class="addStageImg" @click="addunit()">
  510. <img src="../../assets/icon/add.png" alt />
  511. </div>
  512. </div>
  513. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  514. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  515. <div>
  516. <div class="chapter_contentbox">
  517. <div>第{{ unitIndex + 1 }}阶段</div>
  518. <div>
  519. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  520. </div>
  521. <div v-if="unitJson.length > 1" @click="deleteUnit(unitIndex)"></div>
  522. </div>
  523. </div>
  524. <div v-if="!unitJson[unitIndex].easy" style="
  525. margin: 50px 0px 10px;
  526. font-size: 1.5em;
  527. font-weight: 700;
  528. color: #0f7eff;
  529. ">
  530. 添加任务
  531. </div>
  532. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  533. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  534. <div v-if="!unitJson[unitIndex].easy">
  535. <div>
  536. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  537. 任务{{ itemTaskIndex + 1 }}
  538. </div>
  539. <div class="chapter_contentbox" style="
  540. flex-direction: row;
  541. justify-content: flex-start;
  542. align-items: center;
  543. ">
  544. <div style="
  545. border-left: 6px solid #5699e8;
  546. height: 20px;
  547. padding-left: 10px;
  548. line-height: 22px;
  549. ">
  550. 任务名称
  551. </div>
  552. <div>
  553. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="
  554. unitJson[unitIndex].chapterInfo[0].taskJson[
  555. itemTaskIndex
  556. ].task
  557. " />
  558. </div>
  559. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"
  560. style="position: absolute; right: 55px"></div>
  561. </div>
  562. <div style="
  563. display: flex;
  564. margin: 0 0 20px 0;
  565. flex-direction: row;
  566. justify-content: flex-start;
  567. align-items: center;
  568. width: 70.5% !important;
  569. padding-top: 30px;
  570. ">
  571. <div class="lineTitle">任务描述</div>
  572. <div class="line"></div>
  573. </div>
  574. <div>
  575. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="
  576. unitJson[unitIndex].chapterInfo[0].taskJson[
  577. itemTaskIndex
  578. ].taskDetail
  579. " @change="change"></editor-bar>
  580. <!-- <textarea
  581. rows="6"
  582. class="binfo_input"
  583. placeholder="请输入任务描述"
  584. cols
  585. style="width: 70.5% !important; height: 120px"
  586. v-model="
  587. unitJson[unitIndex].chapterInfo[0].taskJson[
  588. itemTaskIndex
  589. ].taskDetail
  590. "
  591. ></textarea>-->
  592. </div>
  593. </div>
  594. </div>
  595. <div v-if="!unitJson[unitIndex].easy" class="basic_box" style="
  596. margin: 0;
  597. min-height: 0;
  598. width: 90% !important;
  599. padding-top: 10px !important;
  600. ">
  601. <div style="
  602. display: flex;
  603. margin: 0 0 20px 0;
  604. flex-direction: row;
  605. justify-content: flex-start;
  606. align-items: center;
  607. ">
  608. <div class="lineTitle">学习内容</div>
  609. <div class="line"></div>
  610. </div>
  611. <div>
  612. <div class="add_chapters_box" v-if="
  613. itemTask.chapterData &&
  614. itemTask.chapterData.length == 0
  615. " style="height: 185px"></div>
  616. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  617. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  618. @click="
  619. getChapterData(
  620. $event,
  621. unitIndex,
  622. index,
  623. index1,
  624. item1.type
  625. )
  626. ">
  627. <div class="chapter_upload_t" style="width: 100%"></div>
  628. <div class="chapter_upload_o" style="
  629. position: relative;
  630. display: flex;
  631. align-items: center;
  632. ">
  633. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  634. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  635. <div v-if="
  636. item1.type == 3 ||
  637. item1.type == 6 ||
  638. item1.type == 7
  639. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  640. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  641. </div>
  642. <div class="chapter_upload_ic" style="
  643. cursor: pointer;
  644. position: absolute;
  645. width: 45px;
  646. right: 0;
  647. top: 0;
  648. ">
  649. <div class="chapter_upload_ic_l"></div>
  650. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  651. deleteChapterData(
  652. $event,
  653. unitIndex,
  654. index,
  655. index1,
  656. itemTaskIndex
  657. )
  658. ">
  659. <div></div>
  660. </div>
  661. </div>
  662. <div class="chapter_upload_n">
  663. <input v-if="
  664. item1.type == 2 ||
  665. item1.type == 3 ||
  666. item1.type == 7
  667. " :placeholder="item1.name" @change="
  668. updataVideoT(
  669. $event,
  670. unitIndex,
  671. chapterIndex,
  672. index1
  673. )
  674. " style="
  675. border: none;
  676. outline: none;
  677. width: 80%;
  678. minwidth: 215px;
  679. z-index: 99;
  680. font-size: 14px;
  681. white-space: nowrap;
  682. overflow: hidden;
  683. text-overflow: ellipsis;
  684. " />
  685. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  686. border: none;
  687. outline: none;
  688. width: 80%;
  689. white-space: nowrap;
  690. overflow: hidden;
  691. text-overflow: ellipsis;
  692. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  693. <input :placeholder="
  694. item1.title ? item1.title : '链接'
  695. " v-if="item1.type == 8" style="
  696. border: none;
  697. outline: none;
  698. width: 80%;
  699. white-space: nowrap;
  700. overflow: hidden;
  701. text-overflow: ellipsis;
  702. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  703. <div class="chapter_upload_ud" style="z-index: 99">
  704. <div class="chapter_upload_up" @click="
  705. upCd(
  706. $event,
  707. unitIndex,
  708. index,
  709. itemTaskIndex,
  710. index1
  711. )
  712. "></div>
  713. <div class="chapter_upload_down" @click="
  714. downCd(
  715. $event,
  716. unitIndex,
  717. index,
  718. itemTaskIndex,
  719. index1
  720. )
  721. "></div>
  722. </div>
  723. </div>
  724. </div>
  725. </div>
  726. </div>
  727. </div>
  728. <div class="add_info_box">
  729. <button class="info_btn" @click="addImg($event)">
  730. 添加教学视频
  731. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  732. capture="camera" v-if="inputShow" @change="
  733. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  734. " />
  735. </button>
  736. <button class="info_btn" @click="addImg($event)">
  737. 添加教学附件
  738. <input type="file"
  739. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  740. style="display: none" v-if="inputShow" @change="
  741. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  742. " />
  743. </button>
  744. <button class="info_btn" @click="addAttText(itemTaskIndex)" v-if="!unitJson[unitIndex].easy">
  745. 添加图文
  746. </button>
  747. <button class="info_btn" @click="openLine(itemTaskIndex)" v-if="!unitJson[unitIndex].easy">
  748. 添加链接
  749. </button>
  750. </div>
  751. <div v-if="
  752. unitJson[unitIndex].chapterInfo[0].taskJson[
  753. itemTaskIndex
  754. ].proVisible
  755. " class="mask">
  756. <div class="progressBox">
  757. <!-- <div id="closePro" class="closeCss">
  758. <img src="../../../assets/icon/close.png" alt />
  759. </div> -->
  760. <div class="lbox">
  761. <img src="../../assets/loading.gif" />上传中,请稍后
  762. </div>
  763. <div style="margin-bottom: 10px">
  764. <span>{{
  765. unitJson[unitIndex].chapterInfo[0].taskJson[
  766. itemTaskIndex
  767. ].isFinishSize
  768. }}M</span>
  769. /
  770. <span>{{
  771. unitJson[unitIndex].chapterInfo[0].taskJson[
  772. itemTaskIndex
  773. ].isAllSize
  774. }}M</span>
  775. </div>
  776. <el-progress :text-inside="true" :stroke-width="20" :percentage="
  777. unitJson[unitIndex].chapterInfo[0].taskJson[
  778. itemTaskIndex
  779. ].progress
  780. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  781. itemTaskIndex
  782. ].progress
  783. : 0
  784. " style="width: 80%"></el-progress>
  785. </div>
  786. </div>
  787. </div>
  788. <div v-if="unitJson[unitIndex].easy" class="basic_box" style="
  789. margin: 0 auto;
  790. min-height: 0;
  791. width: 95% !important;
  792. padding: 20px 10px 10px;
  793. ">
  794. <div>
  795. <div class="add_chapters_box" v-if="
  796. itemTask.chapterData &&
  797. itemTask.chapterData.length == 0
  798. " style="height: 185px"></div>
  799. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  800. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  801. <div class="chapter_upload" @click="
  802. getChapterData(
  803. $event,
  804. unitIndex,
  805. index,
  806. index1,
  807. item1.type
  808. )
  809. ">
  810. <div class="chapter_upload_t" style="width: 100%"></div>
  811. <div class="chapter_upload_o" style="
  812. position: relative;
  813. display: flex;
  814. align-items: center;
  815. ">
  816. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  817. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  818. <div v-if="
  819. item1.type == 3 ||
  820. item1.type == 6 ||
  821. item1.type == 7
  822. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  823. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  824. </div>
  825. <div class="chapter_upload_ic" style="
  826. cursor: pointer;
  827. position: absolute;
  828. width: 45px;
  829. right: 0;
  830. top: 0;
  831. ">
  832. <div class="chapter_upload_ic_l"></div>
  833. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  834. deleteChapterData(
  835. $event,
  836. unitIndex,
  837. index,
  838. index1,
  839. itemTaskIndex
  840. )
  841. ">
  842. <div></div>
  843. </div>
  844. </div>
  845. <div class="chapter_upload_n">
  846. <span style="
  847. font-size: 14px;
  848. color: rgb(109, 109, 109);
  849. height: 14px;
  850. line-height: 12px;
  851. " v-if="
  852. item1.type == 2 ||
  853. item1.type == 3 ||
  854. item1.type == 7
  855. ">{{ item1.text }}-</span>
  856. <input v-if="
  857. item1.type == 2 ||
  858. item1.type == 3 ||
  859. item1.type == 7
  860. " :placeholder="item1.name" @change="
  861. updataVideoT(
  862. $event,
  863. unitIndex,
  864. chapterIndex,
  865. index1
  866. )
  867. " style="
  868. border: none;
  869. outline: none;
  870. width: 80%;
  871. minwidth: 215px;
  872. z-index: 99;
  873. font-size: 14px;
  874. white-space: nowrap;
  875. overflow: hidden;
  876. text-overflow: ellipsis;
  877. " />
  878. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  879. border: none;
  880. outline: none;
  881. width: 80%;
  882. white-space: nowrap;
  883. overflow: hidden;
  884. text-overflow: ellipsis;
  885. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  886. <input :placeholder="
  887. item1.title ? item1.title : '链接'
  888. " v-if="item1.type == 8" style="
  889. border: none;
  890. outline: none;
  891. width: 80%;
  892. white-space: nowrap;
  893. overflow: hidden;
  894. text-overflow: ellipsis;
  895. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  896. <div class="chapter_upload_ud" style="z-index: 99">
  897. <div class="chapter_upload_up" @click="
  898. upCd(
  899. $event,
  900. unitIndex,
  901. index,
  902. itemTaskIndex,
  903. index1
  904. )
  905. "></div>
  906. <div class="chapter_upload_down" @click="
  907. downCd(
  908. $event,
  909. unitIndex,
  910. index,
  911. itemTaskIndex,
  912. index1
  913. )
  914. "></div>
  915. </div>
  916. </div>
  917. </div>
  918. </div>
  919. </div>
  920. </div>
  921. </div>
  922. <div class="add_info_box" style="margin: 10px 0 0">
  923. <button class="info_btn" @click="addImg($event)">
  924. <span style="color: red">*</span>
  925. 教学设计
  926. <input type="file"
  927. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  928. style="display: none" v-if="inputShow" @change="
  929. beforeUpload3(
  930. $event,
  931. unitIndex,
  932. 3,
  933. itemTaskIndex,
  934. '教学设计'
  935. )
  936. " />
  937. </button>
  938. <button class="info_btn" @click="addImg($event)">
  939. <span style="color: red">*</span>
  940. 教学课件
  941. <input type="file"
  942. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  943. style="display: none" v-if="inputShow" @change="
  944. beforeUpload3(
  945. $event,
  946. unitIndex,
  947. 3,
  948. itemTaskIndex,
  949. '教学课件'
  950. )
  951. " />
  952. </button>
  953. <button class="info_btn" @click="addImg($event)">
  954. 教学视频
  955. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  956. v-if="inputShow" @change="
  957. beforeUpload3(
  958. $event,
  959. unitIndex,
  960. 2,
  961. itemTaskIndex,
  962. '教学视频'
  963. )
  964. " />
  965. </button>
  966. <button class="info_btn" @click="addImg($event)">
  967. 教学音频
  968. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  969. beforeUpload3(
  970. $event,
  971. unitIndex,
  972. 2,
  973. itemTaskIndex,
  974. '教学音频'
  975. )
  976. " />
  977. </button>
  978. <button class="info_btn" @click="addImg($event)">
  979. 学习单
  980. <input type="file"
  981. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  982. style="display: none" v-if="inputShow" @change="
  983. beforeUpload3(
  984. $event,
  985. unitIndex,
  986. 3,
  987. itemTaskIndex,
  988. '学习单'
  989. )
  990. " />
  991. </button>
  992. </div>
  993. <div v-if="
  994. unitJson[unitIndex].chapterInfo[0].taskJson[
  995. itemTaskIndex
  996. ].proVisible
  997. " class="mask">
  998. <div class="progressBox">
  999. <!-- <div id="closePro" class="closeCss">
  1000. <img src="../../../assets/icon/close.png" alt />
  1001. </div> -->
  1002. <div class="lbox">
  1003. <img src="../../assets/loading.gif" />上传中,请稍后
  1004. </div>
  1005. <div style="margin-bottom: 10px">
  1006. <span>{{
  1007. unitJson[unitIndex].chapterInfo[0].taskJson[
  1008. itemTaskIndex
  1009. ].isFinishSize
  1010. }}M</span>
  1011. /
  1012. <span>{{
  1013. unitJson[unitIndex].chapterInfo[0].taskJson[
  1014. itemTaskIndex
  1015. ].isAllSize
  1016. }}M</span>
  1017. </div>
  1018. <el-progress :text-inside="true" :stroke-width="20" :percentage="
  1019. unitJson[unitIndex].chapterInfo[0].taskJson[
  1020. itemTaskIndex
  1021. ].progress
  1022. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1023. itemTaskIndex
  1024. ].progress
  1025. : 0
  1026. " style="width: 80%"></el-progress>
  1027. </div>
  1028. </div>
  1029. </div>
  1030. <div style="
  1031. flex-direction: row;
  1032. justify-content: flex-start;
  1033. align-items: center;
  1034. padding: 0 0 0 30px;
  1035. paddint-top: 10px !important;
  1036. ">
  1037. <div style="
  1038. display: flex;
  1039. flex-direction: row;
  1040. align-items: center;
  1041. margin-bottom: 20px;
  1042. ">
  1043. <div class="lineTitle">
  1044. {{
  1045. !unitJson[unitIndex].easy ? "练习内容" : "评价内容"
  1046. }}
  1047. </div>
  1048. <div class="line" style="width: 90%"></div>
  1049. </div>
  1050. </div>
  1051. <div v-if="!unitJson[unitIndex].easy" class="toolChoose" style="padding: 0 0 0 30px">
  1052. <div class="tools">
  1053. <div class="leftTools" style="
  1054. width: 95%;
  1055. padding: 0 0 15px 0;
  1056. border-bottom: 1px solid #efefef;
  1057. margin-bottom: 15px;
  1058. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1059. <div>
  1060. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1061. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1062. </div>
  1063. <div style="
  1064. display: flex;
  1065. flex-direction: row;
  1066. align-items: baseline;
  1067. flex-wrap: nowrap;
  1068. justify-content: flex-start;
  1069. position: relative;
  1070. ">
  1071. <div style="margin-right: 20px; font-weight: bold">
  1072. 步骤 {{ toolIndex + 1 }} :
  1073. </div>
  1074. <div class="chooseWho">
  1075. <div :class="
  1076. itemTool.toolType == 0 ? 'isChooseActive' : ''
  1077. " @click="(itemTool.toolType = 0), $forceUpdate()">
  1078. 互动类
  1079. </div>
  1080. <div :class="
  1081. itemTool.toolType == 1 ? 'isChooseActive' : ''
  1082. " @click="(itemTool.toolType = 1), $forceUpdate()">
  1083. 思维类
  1084. </div>
  1085. <div :class="
  1086. itemTool.toolType == 2 ? 'isChooseActive' : ''
  1087. " @click="(itemTool.toolType = 2), $forceUpdate()">
  1088. 评价类
  1089. </div>
  1090. <div :class="
  1091. itemTool.toolType == 3 ? 'isChooseActive' : ''
  1092. " @click="(itemTool.toolType = 3), $forceUpdate()">
  1093. 编程类
  1094. </div>
  1095. <div :class="
  1096. itemTool.toolType == 5 ? 'isChooseActive' : ''
  1097. " @click="(itemTool.toolType = 5), $forceUpdate()">
  1098. 学科类
  1099. </div>
  1100. <div :class="
  1101. itemTool.toolType == 4 ? 'isChooseActive' : ''
  1102. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1103. 其他
  1104. </div>
  1105. </div>
  1106. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1107. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1108. </div>
  1109. <div style="min-height: 163px">
  1110. <div class="toolSort" v-if="itemTool.toolType == 0">
  1111. <!-- <div class="tool">
  1112. <div
  1113. class="whiteBIcon"
  1114. @click="addTools(8, itemTaskIndex, toolIndex)"
  1115. >
  1116. <img src="../../assets/icon/secondToolList/library.png" alt />
  1117. <div style="margin: 5px 0">素材库</div>
  1118. </div>
  1119. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1120. <img
  1121. src="../../assets/icon/checkNo.png"
  1122. alt
  1123. v-if="itemTool.tool.indexOf(8) == -1"
  1124. />
  1125. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1126. alt /><span>已选择</span></div>
  1127. </div>
  1128. </div>-->
  1129. <!-- <div class="tool">
  1130. <div
  1131. class="whiteBIcon"
  1132. @click="addTools(17, itemTaskIndex, toolIndex)"
  1133. >
  1134. <img
  1135. src="../../assets/icon/secondToolList/library.png"
  1136. alt
  1137. />
  1138. <div style="margin: 5px 0">学习资料</div>
  1139. </div>
  1140. <div
  1141. class="check"
  1142. @click="addTools(17, itemTaskIndex, toolIndex)"
  1143. >
  1144. <img
  1145. src="../../assets/icon/checkNo.png"
  1146. alt
  1147. v-if="itemTool.tool.indexOf(17) == -1"
  1148. />
  1149. <img
  1150. src="../../assets/icon/checkedIs.png"
  1151. alt
  1152. v-else
  1153. />
  1154. </div>10
  1155. </div> -->
  1156. <div class="tool">
  1157. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  1158. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1159. <div style="margin: 5px 0">倒计时</div>
  1160. </div>
  1161. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1162. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  1163. <div class="checkDiv" v-else>
  1164. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1165. </div>
  1166. </div>
  1167. </div>
  1168. <div class="tool">
  1169. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1170. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1171. <div style="margin: 5px 0">学生分组</div>
  1172. </div>
  1173. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1174. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1175. <div class="checkDiv" v-else>
  1176. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1177. </div>
  1178. </div>
  1179. </div>
  1180. </div>
  1181. <div class="toolSort" v-if="itemTool.toolType == 1">
  1182. <div class="tool">
  1183. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  1184. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1185. <div style="margin: 5px 0">思维网格</div>
  1186. </div>
  1187. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1188. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  1189. <div class="checkDiv" v-else>
  1190. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1191. </div>
  1192. </div>
  1193. </div>
  1194. <div class="tool">
  1195. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1196. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1197. <div style="margin: 5px 0">电子白板</div>
  1198. </div>
  1199. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1200. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1201. <div class="checkDiv" v-else>
  1202. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1203. </div>
  1204. </div>
  1205. </div>
  1206. <!-- <div class="tool">
  1207. <div
  1208. class="whiteBIcon"
  1209. @click="addTools(2, itemTaskIndex, toolIndex)"
  1210. >
  1211. <img
  1212. src="../../assets/icon/secondToolList/note.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">便签</div>
  1216. </div>
  1217. <div
  1218. class="check"
  1219. @click="addTools(2, itemTaskIndex, toolIndex)"
  1220. >
  1221. <img
  1222. src="../../assets/icon/checkNo.png"
  1223. alt
  1224. v-if="itemTool.tool.indexOf(2) == -1"
  1225. />
  1226. <div class="checkDiv" v-else>
  1227. <img
  1228. src="../../assets/icon/checkedIs.png"
  1229. alt
  1230. /><span>已选择</span>
  1231. </div>
  1232. </div>
  1233. </div> -->
  1234. <!-- <div class="tool">
  1235. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1236. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1237. <div style="margin: 5px 0">协同文档</div>
  1238. </div>
  1239. <div
  1240. class="check"
  1241. @click="addTools(6, itemTaskIndex, toolIndex)"
  1242. >
  1243. <img
  1244. src="../../assets/icon/checkNo.png"
  1245. alt
  1246. v-if="itemTool.tool.indexOf(6) == -1"
  1247. />
  1248. <div class="checkDiv" v-else>
  1249. <img
  1250. src="../../assets/icon/checkedIs.png"
  1251. alt
  1252. /><span>已选择</span>
  1253. </div>
  1254. </div>
  1255. </div> -->
  1256. <div class="tool">
  1257. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1258. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1259. <div style="margin: 5px 0">文档</div>
  1260. </div>
  1261. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1262. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1263. <div class="checkDiv" v-else>
  1264. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1265. </div>
  1266. </div>
  1267. </div>
  1268. <div class="tool">
  1269. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1270. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1271. <div style="margin: 5px 0">思维导图</div>
  1272. </div>
  1273. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1274. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1275. <div class="checkDiv" v-else>
  1276. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1277. </div>
  1278. </div>
  1279. </div>
  1280. </div>
  1281. <div class="toolSort" v-if="itemTool.toolType == 2">
  1282. <!-- <div class="tool">
  1283. <div
  1284. class="whiteBIcon"
  1285. @click="addTools(5, itemTaskIndex, toolIndex)"
  1286. >
  1287. <img
  1288. src="../../assets/icon/thirdToolList/score.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">量规评分</div>
  1292. </div>
  1293. <div
  1294. class="check"
  1295. @click="addTools(5, itemTaskIndex, toolIndex)"
  1296. >
  1297. <img
  1298. src="../../assets/icon/checkNo.png"
  1299. alt
  1300. v-if="itemTool.tool.indexOf(5) == -1"
  1301. />
  1302. <img
  1303. src="../../assets/icon/checkedIs.png"
  1304. alt
  1305. v-else
  1306. />
  1307. </div>
  1308. </div>-->
  1309. <div class="tool">
  1310. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1311. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1312. <div style="margin: 5px 0">问卷调查</div>
  1313. </div>
  1314. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1315. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1316. <div class="checkDiv" v-else>
  1317. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1318. </div>
  1319. </div>
  1320. </div>
  1321. <div class="tool">
  1322. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1323. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1324. <div style="margin: 5px 0">选择题</div>
  1325. </div>
  1326. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1327. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1328. <div class="checkDiv" v-else>
  1329. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1330. </div>
  1331. </div>
  1332. </div>
  1333. <div class="tool">
  1334. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1335. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1336. <div style="margin: 5px 0">问答工具</div>
  1337. </div>
  1338. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1339. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1340. <div class="checkDiv" v-else>
  1341. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1342. </div>
  1343. </div>
  1344. </div>
  1345. <div class="tool">
  1346. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1347. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1348. <div style="margin: 5px 0">作业提交</div>
  1349. </div>
  1350. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1351. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1352. <div class="checkDiv" v-else>
  1353. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1354. </div>
  1355. </div>
  1356. </div>
  1357. <div class="tool">
  1358. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1359. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1360. <div style="margin: 5px 0">批量上传</div>
  1361. </div>
  1362. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1363. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1364. <div class="checkDiv" v-else>
  1365. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1366. </div>
  1367. </div>
  1368. </div>
  1369. <div class="tool">
  1370. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1371. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1372. <div style="margin: 5px 0">个人评价</div>
  1373. </div>
  1374. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1375. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1376. <div class="checkDiv" v-else>
  1377. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1378. </div>
  1379. </div>
  1380. </div>
  1381. <div class="tool">
  1382. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1383. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1384. <div style="margin: 5px 0">选择填空</div>
  1385. </div>
  1386. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1387. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1388. <div class="checkDiv" v-else>
  1389. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1390. </div>
  1391. </div>
  1392. </div>
  1393. <div class="tool">
  1394. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1395. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1396. <div style="margin: 5px 0">连词成句</div>
  1397. </div>
  1398. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1399. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1400. <div class="checkDiv" v-else>
  1401. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1402. </div>
  1403. </div>
  1404. </div>
  1405. <div class="tool">
  1406. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1407. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1408. <div style="margin: 5px 0">表格</div>
  1409. </div>
  1410. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1411. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1412. <div class="checkDiv" v-else>
  1413. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1414. </div>
  1415. </div>
  1416. </div>
  1417. <!-- <div class="tool">
  1418. <div
  1419. class="whiteBIcon"
  1420. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1421. >
  1422. <img
  1423. src="../../assets/icon/thirdToolList/mp3.png"
  1424. alt
  1425. />
  1426. <div style="margin: 5px 0">上传音频</div>
  1427. </div>
  1428. <div
  1429. class="check"
  1430. @click="addTools(42, itemTaskIndex, toolIndex)"
  1431. >
  1432. <img
  1433. src="../../assets/icon/checkNo.png"
  1434. alt
  1435. v-if="itemTool.tool.indexOf(42) == -1"
  1436. />
  1437. <img
  1438. src="../../assets/icon/checkedIs.png"
  1439. alt
  1440. v-else
  1441. />
  1442. </div>
  1443. </div> -->
  1444. </div>
  1445. <div class="toolSort" v-if="itemTool.toolType == 3">
  1446. <div class="tool">
  1447. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1448. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1449. <div style="margin: 5px 0">训练平台</div>
  1450. </div>
  1451. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1452. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  1453. <div class="checkDiv" v-else>
  1454. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1455. </div>
  1456. </div>
  1457. </div>
  1458. <div class="tool">
  1459. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1460. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1461. <div style="margin: 5px 0">编程平台</div>
  1462. </div>
  1463. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1464. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  1465. <div class="checkDiv" v-else>
  1466. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1467. </div>
  1468. </div>
  1469. </div>
  1470. <div class="tool">
  1471. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1472. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1473. <div style="margin: 5px 0">AI体验</div>
  1474. </div>
  1475. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1476. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1477. <div class="checkDiv" v-else>
  1478. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1479. </div>
  1480. </div>
  1481. </div>
  1482. <div class="tool">
  1483. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1484. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1485. <div style="margin: 5px 0">Python</div>
  1486. </div>
  1487. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1488. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  1489. <div class="checkDiv" v-else>
  1490. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1491. </div>
  1492. </div>
  1493. </div>
  1494. <div class="tool">
  1495. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1496. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1497. <div style="margin: 5px 0">AI平台</div>
  1498. </div>
  1499. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1500. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -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 class="tool">
  1507. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1508. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1509. <div style="margin: 5px 0">源码编辑</div>
  1510. </div>
  1511. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1512. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  1513. <div class="checkDiv" v-else>
  1514. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1515. </div>
  1516. </div>
  1517. </div>
  1518. </div>
  1519. <div class="toolSort" v-if="itemTool.toolType == 5">
  1520. <div class="tool">
  1521. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1522. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1523. <div style="margin: 5px 0">翻译</div>
  1524. </div>
  1525. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1526. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1527. <div class="checkDiv" v-else>
  1528. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1529. </div>
  1530. </div>
  1531. </div>
  1532. <div class="tool">
  1533. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1534. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  1535. <div style="margin: 5px 0">魔盒识字</div>
  1536. </div>
  1537. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1538. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1539. <div class="checkDiv" v-else>
  1540. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1541. </div>
  1542. </div>
  1543. </div>
  1544. <div class="tool">
  1545. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1546. <img src="../../assets/icon/secondToolList/24game.png" alt />
  1547. <div style="margin: 5px 0">24点</div>
  1548. </div>
  1549. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1550. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1551. <div class="checkDiv" v-else>
  1552. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1553. </div>
  1554. </div>
  1555. </div>
  1556. <div class="tool">
  1557. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1558. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1559. <div style="margin: 5px 0">数学画板</div>
  1560. </div>
  1561. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1562. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1563. <div class="checkDiv" v-else>
  1564. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1565. </div>
  1566. </div>
  1567. </div>
  1568. <div class="tool">
  1569. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1570. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1571. <div style="margin: 5px 0">GeoGebra</div>
  1572. </div>
  1573. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1574. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1575. <div class="checkDiv" v-else>
  1576. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1577. </div>
  1578. </div>
  1579. </div>
  1580. </div>
  1581. <div class="toolSort" v-if="itemTool.toolType == 4">
  1582. <div class="tool">
  1583. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1584. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  1585. <div style="margin: 5px 0">课程设计</div>
  1586. </div>
  1587. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1588. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1589. <div class="checkDiv" v-else>
  1590. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1591. </div>
  1592. </div>
  1593. </div>
  1594. <div class="tool">
  1595. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1596. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  1597. <div style="margin: 5px 0">目标管理</div>
  1598. </div>
  1599. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1600. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1601. <div class="checkDiv" v-else>
  1602. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1603. </div>
  1604. </div>
  1605. </div>
  1606. <!-- <div class="tool">
  1607. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1608. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  1609. <div style="margin: 5px 0">汉字宫</div>
  1610. </div>
  1611. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1612. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1613. <div class="checkDiv" v-else>
  1614. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1615. </div>
  1616. </div>
  1617. </div> -->
  1618. </div>
  1619. </div>
  1620. </div>
  1621. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  1622. <div class="addToolImg">
  1623. <img src="../../assets/icon/add.png" alt />
  1624. </div>
  1625. <div>添加工具</div>
  1626. </div>
  1627. </div>
  1628. </div>
  1629. <div v-else class="toolChoose" style="padding: 0 0 0 30px">
  1630. <div class="tools">
  1631. <div class="leftTools" style="
  1632. width: 95%;
  1633. padding: 0 0 15px 0;
  1634. border-bottom: 1px solid #efefef;
  1635. margin-bottom: 15px;
  1636. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1637. <div style="min-height: 163px">
  1638. <div class="toolSort">
  1639. <div class="tool">
  1640. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1641. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1642. <div style="margin: 5px 0">批量上传</div>
  1643. </div>
  1644. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1645. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1646. <div class="checkDiv" v-else>
  1647. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1648. </div>
  1649. </div>
  1650. </div>
  1651. </div>
  1652. </div>
  1653. </div>
  1654. </div>
  1655. </div>
  1656. <div class="elist_css">
  1657. <div class="elist_title">
  1658. <div style="
  1659. display: flex;
  1660. flex-direction: row;
  1661. align-items: center;
  1662. margin-bottom: 20px;
  1663. ">
  1664. <div class="lineTitle">评价设置</div>
  1665. <div class="line" style="width: 90%"></div>
  1666. </div>
  1667. </div>
  1668. <div class="mbCss">
  1669. <div class="pjCss">
  1670. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  1671. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  1672. <span>评价名称:</span>
  1673. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  1674. <span>评星等级:</span>
  1675. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  1676. <div class="remove" @click="
  1677. deletEList(unitIndex, itemTaskIndex, eIndex)
  1678. "></div>
  1679. <div class="elist_inptu_text">
  1680. <span>评价描述:</span>
  1681. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  1682. </div>
  1683. <div class="elist_inptu_text" v-if="evalua">
  1684. <span>目标:</span>
  1685. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  1686. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  1687. @change="forceUpdate()">
  1688. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  1689. :value="e.name">
  1690. </el-option>
  1691. </el-select> -->
  1692. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  1693. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  1698. <div class="addToolImg">
  1699. <img src="../../assets/icon/add.png" alt />
  1700. </div>
  1701. <div>添加</div>
  1702. </div>
  1703. </div>
  1704. <div v-if="evalua" style="
  1705. border: 1px solid #e5e5e5;
  1706. width: 55%;
  1707. margin-top: 20px;
  1708. box-shadow: 3px 1px 15px 3px #e0e0e0;
  1709. " class="evaCss">
  1710. <div class="e_add_top">
  1711. <div class="e_add_title">
  1712. <span>当前使用目标管理</span>
  1713. <span>{{ eTitle }}</span>
  1714. <img src="../../assets/line.png" class="cru_line" style="
  1715. width: 125px;
  1716. height: 20px;
  1717. bottom: -10px;
  1718. left: 155px;
  1719. " />
  1720. <!-- <el-input
  1721. v-model="eTitle"
  1722. placeholder="请输入名称"
  1723. @change="setMindData"
  1724. ></el-input>-->
  1725. </div>
  1726. </div>
  1727. <div class="e_add_content" style="width: 100%">
  1728. <div class="e_add_list_pbox" style="width: 100%">
  1729. <div class="e_add_list_pbox_title">
  1730. <span class="type_title">切换模式</span>
  1731. <div class="type_content">
  1732. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  1733. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  1734. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  1735. </div>
  1736. </div>
  1737. <div class="e_add_list_pbox_content">
  1738. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="
  1739. unitIndex + '-' + itemTaskIndex + 'mind'
  1740. " v-if="typeMode == 1"></Mind>
  1741. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  1742. </Sunburst>
  1743. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  1744. v-if="typeMode == 3"></SeeBoard>
  1745. </div>
  1746. </div>
  1747. </div>
  1748. </div>
  1749. </div>
  1750. </div>
  1751. <div class="funBlock" style="padding: 0">
  1752. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  1753. <div>折叠</div>
  1754. <div class="arrow">
  1755. <img src="../../assets/icon/fold.png" alt />
  1756. </div>
  1757. </div>
  1758. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  1759. <div>展开</div>
  1760. <div class="arrow">
  1761. <img src="../../assets/icon/expand.png" alt />
  1762. </div>
  1763. </div>
  1764. </div>
  1765. </div>
  1766. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1767. <div>
  1768. <img src="../../assets/icon/addHw.png" alt />
  1769. <span>添加任务</span>
  1770. </div>
  1771. </div>
  1772. </div>
  1773. </div>
  1774. </div>
  1775. <div style="
  1776. width: calc(100% - 20px);
  1777. background: rgb(255, 255, 255);
  1778. border-radius: 10px;
  1779. " v-if="this.steps == 4">
  1780. <div class="basic_box_success">
  1781. <div class="right_img">
  1782. <img src="../../assets/icon/right.png" alt />
  1783. </div>
  1784. <div style="font-weight: bold">成功</div>
  1785. <!-- <div>您的课程编号</div>
  1786. <div class="number">{{ number }}</div>-->
  1787. <!-- <div class="success_button">
  1788. <div class="look_course" @click="isNoFinsh">
  1789. 邀请老师协同编辑
  1790. </div>
  1791. <div class="attend_others" @click="goCourse">预览课程</div>
  1792. </div> -->
  1793. </div>
  1794. </div>
  1795. <div class="info_btnBox">
  1796. <button class="info_btn" v-if="steps == 1" @click="
  1797. goTo('/course?userid=' + userid + '&oid=' + oid + '&org=' + org)
  1798. ">
  1799. 返回课程
  1800. </button>
  1801. <button class="info_btn" v-if="steps > 1 && steps != 5" @click="lastSteps">
  1802. {{ steps == 4 ? "返回首页" : "上一步" }}
  1803. </button>
  1804. <button class="info_btn" v-if="steps < 4" @click="nextSteps">
  1805. {{ steps == 3 ? "确认上传" : "下一步" }}
  1806. </button>
  1807. </div>
  1808. </div>
  1809. </div>
  1810. </div>
  1811. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  1812. class="dialog_diy2 customWidth">
  1813. <div>请复制该链接邀请协同编辑</div>
  1814. <div>http://www.boomyon.com/index-zhang.com</div>
  1815. <span slot="footer" class="dialog-footer">
  1816. <el-button type="primary">复制链接分享</el-button>
  1817. <el-button @click="dialogVisible = false">取消</el-button>
  1818. </span>
  1819. </el-dialog>
  1820. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  1821. :before-close="handleClose" class="dialog_diy2 customWidth">
  1822. <el-form>
  1823. <el-form-item label="文档标题">
  1824. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1825. </el-form-item>
  1826. <div>文档简介</div>
  1827. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  1828. </el-form>
  1829. <span slot="footer" class="dialog-footer">
  1830. <el-button @click="dialogVisible1 = false">取 消</el-button>
  1831. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  1832. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  1833. </span>
  1834. </el-dialog>
  1835. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  1836. :before-close="handleClose" class="dialog_diy">
  1837. <el-form>
  1838. <el-form-item label="文档标题">
  1839. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1840. </el-form-item>
  1841. <div>文档内容</div>
  1842. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  1843. </el-form>
  1844. <span slot="footer" class="dialog-footer">
  1845. <el-button @click="clearChoose">取 消</el-button>
  1846. <el-button type="primary" @click="wordNext()">确定</el-button>
  1847. </span>
  1848. </el-dialog>
  1849. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  1850. :before-close="handleClose" class="dialog_diy">
  1851. <el-form>
  1852. <el-form-item label="文本标题">
  1853. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1854. </el-form-item>
  1855. <div>富文本内容</div>
  1856. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  1857. </el-form>
  1858. <span slot="footer" class="dialog-footer">
  1859. <el-button @click="clearAttText">取 消</el-button>
  1860. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  1861. </span>
  1862. </el-dialog>
  1863. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  1864. :before-close="handleClose" class="dialog_diy lineCss">
  1865. <el-form>
  1866. <el-form-item label="标题" :label-width="formLabelWidth">
  1867. <span>
  1868. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  1869. </span>
  1870. </el-form-item>
  1871. <el-form-item label="链接" :label-width="formLabelWidth">
  1872. <span>
  1873. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  1874. </span>
  1875. </el-form-item>
  1876. </el-form>
  1877. <span slot="footer" class="dialog-footer">
  1878. <el-button @click="clearLine">取 消</el-button>
  1879. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  1880. </span>
  1881. </el-dialog>
  1882. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  1883. :before-close="handleClose" class="addNewPP customWidth">
  1884. <div class="people">
  1885. <div class="people_top">
  1886. <div class="people_nav">选择成员</div>
  1887. <div class="people_top_right">
  1888. <div class="people_search">
  1889. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  1890. <div class="search_img" @click="searchStudent">
  1891. <img src="../../assets/icon/search.png" alt />
  1892. </div>
  1893. </div>
  1894. </div>
  1895. </div>
  1896. <el-checkbox-group v-model="checkboxList" class="people_name">
  1897. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  1898. "暂无学生可选" }}</el-checkbox>
  1899. </el-checkbox-group>
  1900. </div>
  1901. <span slot="footer" class="dialog-footer">
  1902. <el-button @click="dialogVisible3 = false">取 消</el-button>
  1903. <el-button type="primary" @click="isAddPP">确定</el-button>
  1904. </span>
  1905. </el-dialog>
  1906. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  1907. :before-close="handleClose" class="addNewPP">
  1908. <div class="people" style="height: 300px">
  1909. <div class="people_top">
  1910. <div class="people_top_right">
  1911. <div class="people_search">
  1912. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  1913. <!-- @click="getClass()"
  1914. @keyup.enter.native="getClass()"
  1915. -->
  1916. <div class="search_img">
  1917. <img src="../../assets/icon/search.png" alt />
  1918. </div>
  1919. </div>
  1920. </div>
  1921. <div class="people_nav">选择班级</div>
  1922. </div>
  1923. <el-checkbox-group v-model="checkboxList2" class="people_name">
  1924. <div v-for="(item, index) in grade2" :key="item.id">
  1925. <el-checkbox :label="item.id">
  1926. {{ item.name ? item.name : "暂无班级可选" }}
  1927. </el-checkbox>
  1928. <div>
  1929. <span>{{ index }}</span>
  1930. </div>
  1931. </div>
  1932. </el-checkbox-group>
  1933. </div>
  1934. <span slot="footer" class="dialog-footer">
  1935. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1936. <el-button type="primary" @click="isAddClass">确定</el-button>
  1937. </span>
  1938. </el-dialog>
  1939. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1940. :before-close="handleClose" class="addNewPP customWidth">
  1941. <div class="people">
  1942. <div class="people_top">
  1943. <div class="people_top_right">
  1944. <div class="people_search">
  1945. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1946. <div class="search_img" @click="getTeacher">
  1947. <img src="../../assets/icon/search.png" alt />
  1948. </div>
  1949. </div>
  1950. </div>
  1951. <div class="people_nav">选择成员</div>
  1952. </div>
  1953. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  1954. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1955. <div class="t_j_box">
  1956. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1957. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1958. </el-tooltip>
  1959. <el-tooltip placement="top" :content="item.username">
  1960. <span>{{ item.username }}</span>
  1961. </el-tooltip>
  1962. <el-tooltip placement="top" :content="item.school">
  1963. <span>{{ item.school }}</span>
  1964. </el-tooltip>
  1965. </div>
  1966. </el-checkbox>
  1967. </el-checkbox-group>
  1968. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1969. </div>
  1970. <span slot="footer" class="dialog-footer">
  1971. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  1972. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1973. </span>
  1974. </el-dialog>
  1975. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  1976. :before-close="handleClose" class="dialog_diy">
  1977. <div>
  1978. <div class="a_add_title" style="
  1979. display: flex;
  1980. flex-direction: row;
  1981. align-items: center;
  1982. justify-content: center;
  1983. ">
  1984. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1985. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1986. </div>
  1987. <div class="a_addBox">
  1988. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1989. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1990. <div class="a_add_head">
  1991. <div>
  1992. {{ index1 + 1 + "、" }}
  1993. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  1994. </el-input>
  1995. </div>
  1996. <div class="a_add_head_div">
  1997. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  1998. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  1999. </el-button>
  2000. </div>
  2001. </div>
  2002. <div class="a_add_body">
  2003. <div class="a_add_input">
  2004. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2005. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  2006. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2007. </div>
  2008. <div class="a_add_body_div">
  2009. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2010. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2011. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2012. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2013. </el-button>
  2014. </div>
  2015. </div>
  2016. </div>
  2017. </div>
  2018. </div>
  2019. <span slot="footer" class="dialog-footer">
  2020. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2021. <el-button type="primary" @click="addAsk">确 定</el-button>
  2022. </span>
  2023. </el-dialog>
  2024. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2025. :before-close="handleClose" class="dialog_diy">
  2026. <div>
  2027. <!-- <div class="a_add_title" style="
  2028. display: flex;
  2029. flex-direction: row;
  2030. align-items: center;
  2031. justify-content: center;
  2032. ">
  2033. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2034. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2035. </div> -->
  2036. <div class="a_addBox">
  2037. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2038. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2039. <div class="a_add_checkType">
  2040. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2041. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2042. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2043. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2044. </div>
  2045. <div class="a_add_head">
  2046. <div class="timuUpImg">
  2047. <div>
  2048. {{ index1 + 1 + "、" }}
  2049. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle"
  2050. placeholder="请输入题目...">
  2051. </el-input>
  2052. </div>
  2053. <div class="xzUpImg" @click.stop="addImg($event)">
  2054. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2055. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2056. </div>
  2057. </div>
  2058. <div class="a_add_head_div">
  2059. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  2060. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2061. </el-button>
  2062. </div>
  2063. </div>
  2064. <div class="timuImgBox" v-if="
  2065. testJson.testJson[index1].timuList &&
  2066. testJson.testJson[index1].timuList.length
  2067. ">
  2068. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2069. @click.stop="previewImg(timg.src)">
  2070. <img :src="timg.src" alt="" />
  2071. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2072. <img src="../../assets/icon/delete.png" alt="" />
  2073. </div>
  2074. </div>
  2075. </div>
  2076. <div class="a_add_body">
  2077. <div class="a_add_input a_add_input_choice">
  2078. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  2079. <div class="radioBox">
  2080. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2081. .testItem" :key="checkIndex" :label="checkIndex">
  2082. <div style="margin-right: 10px">
  2083. 选项{{ checkIndex + 1 }}
  2084. </div>
  2085. <div style="margin-right: 10px; width: 300px" v-if="
  2086. testJson.testJson[index1].checkList[checkIndex] &&
  2087. testJson.testJson[index1].checkList[checkIndex]
  2088. .imgType &&
  2089. testJson.testJson[index1].checkList[checkIndex]
  2090. .imgType == 1
  2091. ">
  2092. <div class="inImg" @click.stop="
  2093. previewImg(
  2094. testJson.testJson[index1].checkList[checkIndex]
  2095. .src
  2096. )
  2097. ">
  2098. <el-image :src="
  2099. testJson.testJson[index1].checkList[checkIndex]
  2100. .src
  2101. " lazy />
  2102. <!-- <img :src="
  2103. testJson.testJson[index1].checkList[checkIndex]
  2104. .src
  2105. " alt="" /> -->
  2106. </div>
  2107. </div>
  2108. <el-input v-else v-model="
  2109. testJson.testJson[index1].checkList[checkIndex]
  2110. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2111. <div class="xzUpImg" @click.stop="addImg($event)">
  2112. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2113. <input type="file" accept="image/*" style="display: none"
  2114. @change="beforeUploadTi($event, index1, checkIndex)" />
  2115. </div>
  2116. </el-radio>
  2117. </div>
  2118. </el-radio-group>
  2119. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  2120. v-if="testJson.testJson[index1].type == '2'">
  2121. <div class="radioBox">
  2122. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2123. .testItem" :key="checkIndex1" :label="checkIndex1">
  2124. <div style="margin-right: 10px">
  2125. 选项{{ checkIndex1 + 1 }}
  2126. </div>
  2127. <div style="margin-right: 10px; width: 300px" v-if="
  2128. testJson.testJson[index1].checkList[checkIndex1] &&
  2129. testJson.testJson[index1].checkList[checkIndex1]
  2130. .imgType &&
  2131. testJson.testJson[index1].checkList[checkIndex1]
  2132. .imgType == 1
  2133. ">
  2134. <div class="inImg" @click.stop="
  2135. previewImg(
  2136. testJson.testJson[index1].checkList[checkIndex1]
  2137. .src
  2138. )
  2139. ">
  2140. <el-image :src="
  2141. testJson.testJson[index1].checkList[checkIndex1]
  2142. .src
  2143. " lazy />
  2144. <!-- <img :src="
  2145. testJson.testJson[index1].checkList[checkIndex1]
  2146. .src
  2147. " alt="" /> -->
  2148. </div>
  2149. </div>
  2150. <el-input v-else v-model="
  2151. testJson.testJson[index1].checkList[checkIndex1]
  2152. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2153. <div class="xzUpImg" @click.stop="addImg($event)">
  2154. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2155. <input type="file" accept="image/*" style="display: none"
  2156. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2157. </div>
  2158. </el-checkbox>
  2159. </div>
  2160. </el-checkbox-group>
  2161. </div>
  2162. <div class="a_add_body_div" style="margin-bottom: 3px">
  2163. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2164. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2165. v-if="testJson.testJson[index1].testItem != 1">删除
  2166. </el-button>
  2167. </div>
  2168. </div>
  2169. </div>
  2170. </div>
  2171. </div>
  2172. <span slot="footer" class="dialog-footer">
  2173. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2174. <el-button type="primary" @click="addTest">确 定</el-button>
  2175. </span>
  2176. </el-dialog>
  2177. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2178. :before-close="handleClose" class="dialog_diy addToolsDia">
  2179. <div class="toolChoose" style="padding: 0 0 0 30px">
  2180. <div class="tools">
  2181. <div class="leftTools" style="
  2182. width: 95%;
  2183. padding: 0 0 15px 0;
  2184. border-bottom: 1px solid #efefef;
  2185. margin-bottom: 15px;
  2186. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2187. <div style="
  2188. display: flex;
  2189. flex-direction: row;
  2190. align-items: baseline;
  2191. flex-wrap: nowrap;
  2192. justify-content: flex-start;
  2193. position: relative;
  2194. ">
  2195. <div class="chooseWho">
  2196. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2197. 互动类
  2198. </div>
  2199. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2200. 思维类
  2201. </div>
  2202. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2203. 评价类
  2204. </div>
  2205. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2206. 其他
  2207. </div>
  2208. </div>
  2209. </div>
  2210. <div style="min-height: 163px">
  2211. <div class="toolSort" v-if="chapToolsType == 0">
  2212. <div class="tool">
  2213. <div class="whiteBIcon" @click="chapAddTools(8)">
  2214. <img src="../../assets/icon/secondToolList/library.png" alt />
  2215. <div style="margin: 5px 0">素材库</div>
  2216. </div>
  2217. <div class="check" @click="chapAddTools(8)">
  2218. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2219. <div class="checkDiv" v-else>
  2220. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2221. </div>
  2222. </div>
  2223. </div>
  2224. </div>
  2225. <div class="toolSort" v-if="chapToolsType == 1">
  2226. <div class="tool">
  2227. <div class="whiteBIcon" @click="chapAddTools(7)">
  2228. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  2229. <div style="margin: 5px 0">思维网格</div>
  2230. </div>
  2231. <div class="check" @click="chapAddTools(7)">
  2232. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2233. <div class="checkDiv" v-else>
  2234. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. <div class="tool">
  2239. <div class="whiteBIcon" @click="chapAddTools(1)">
  2240. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2241. <div style="margin: 5px 0">电子白板</div>
  2242. </div>
  2243. <div class="check" @click="chapAddTools(1)">
  2244. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2245. <div class="checkDiv" v-else>
  2246. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2247. </div>
  2248. </div>
  2249. </div>
  2250. <div class="tool">
  2251. <div class="whiteBIcon" @click="chapAddTools(2)">
  2252. <img src="../../assets/icon/secondToolList/note.png" alt />
  2253. <div style="margin: 5px 0">便签</div>
  2254. </div>
  2255. <div class="check" @click="chapAddTools(2)">
  2256. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2257. <div class="checkDiv" v-else>
  2258. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2259. </div>
  2260. </div>
  2261. </div>
  2262. <div class="tool">
  2263. <div class="whiteBIcon" @click="chapAddTools(6)">
  2264. <img src="../../assets/icon/secondToolList/doc.png" alt />
  2265. <div style="margin: 5px 0">协同文档</div>
  2266. </div>
  2267. <div class="check" @click="chapAddTools(6)">
  2268. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2269. <div class="checkDiv" v-else>
  2270. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2271. </div>
  2272. </div>
  2273. </div>
  2274. <div class="tool">
  2275. <div class="whiteBIcon" @click="chapAddTools(3)">
  2276. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2277. <div style="margin: 5px 0">思维导图</div>
  2278. </div>
  2279. <div class="check" @click="chapAddTools(3)">
  2280. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2281. <div class="checkDiv" v-else>
  2282. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2283. </div>
  2284. </div>
  2285. </div>
  2286. <div class="tool">
  2287. <div class="whiteBIcon" @click="chapAddTools(31)">
  2288. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2289. <div style="margin: 5px 0">数学画板</div>
  2290. </div>
  2291. <div class="check" @click="chapAddTools(31)">
  2292. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2293. <div class="checkDiv" v-else>
  2294. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2295. </div>
  2296. </div>
  2297. </div>
  2298. </div>
  2299. <div class="toolSort" v-if="chapToolsType == 2">
  2300. <div class="tool">
  2301. <div class="whiteBIcon" @click="chapAddTools(5)">
  2302. <img src="../../assets/icon/thirdToolList/score.png" alt />
  2303. <div style="margin: 5px 0">量规评分</div>
  2304. </div>
  2305. <div class="check" @click="chapAddTools(5)">
  2306. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2307. <div class="checkDiv" v-else>
  2308. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2309. </div>
  2310. </div>
  2311. </div>
  2312. <div class="tool">
  2313. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2314. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2315. <div style="margin: 5px 0">问卷调查</div>
  2316. </div>
  2317. <div class="check" @click="chapAddTools(4)">
  2318. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2319. <div class="checkDiv" v-else>
  2320. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2321. </div>
  2322. </div>
  2323. </div>
  2324. </div>
  2325. </div>
  2326. <div>
  2327. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  2328. v-model="itemTools.toolDetail" />
  2329. </div>
  2330. </div>
  2331. </div>
  2332. </div>
  2333. <span slot="footer" class="dialog-footer">
  2334. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2335. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2336. </span>
  2337. </el-dialog>
  2338. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2339. :before-close="handleClose" class="dialog_diy">
  2340. <div>
  2341. <div class="a_add_title" style="
  2342. display: flex;
  2343. flex-direction: column;
  2344. align-items: flex-start;
  2345. justify-content: center;
  2346. ">
  2347. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2348. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  2349. </div>
  2350. </div>
  2351. <span slot="footer" class="dialog-footer">
  2352. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2353. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2354. </span>
  2355. </el-dialog>
  2356. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2357. :before-close="handleClose" class="dialog_diy">
  2358. <div>
  2359. <div class="a_add_title" style="
  2360. display: flex;
  2361. flex-direction: column;
  2362. align-items: flex-start;
  2363. justify-content: center;
  2364. ">
  2365. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2366. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2367. </div>
  2368. </div>
  2369. <span slot="footer" class="dialog-footer">
  2370. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2371. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2372. </span>
  2373. </el-dialog>
  2374. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  2375. :before-close="handleClose" class="dialog_diy">
  2376. <div>
  2377. <div class="fileCss" style="padding-top: 20px">
  2378. <div>
  2379. <button class="info_btn" @click="addImg($event)">
  2380. 选择本地文件
  2381. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2382. </button>
  2383. </div>
  2384. <div>
  2385. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  2386. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2387. <img :src="cover[0].url" alt="" />
  2388. <div class="deletePic" @click="deleteSysPic">
  2389. <img src="../../assets/icon/delete.png" alt="" />
  2390. </div>
  2391. </div>
  2392. </div>
  2393. </div>
  2394. <div class="fileCss">
  2395. <div>选择本地文件</div>
  2396. <div>选择系统文件</div>
  2397. </div>
  2398. </div>
  2399. <span slot="footer" class="dialog-footer">
  2400. <el-button @click="choosePicVisible = false">取 消</el-button>
  2401. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  2402. </span>
  2403. </el-dialog>
  2404. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2405. :before-close="handleClose" class="dialog_diy">
  2406. <div class="cru_selectBox" style="margin: 0">
  2407. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2408. 绘画
  2409. </div>
  2410. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2411. 科技
  2412. </div>
  2413. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2414. 人文
  2415. </div>
  2416. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2417. 艺术
  2418. </div>
  2419. </div>
  2420. <div class="sysPicBox">
  2421. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2422. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2423. </div>
  2424. </div>
  2425. <span slot="footer" class="dialog-footer">
  2426. <el-button @click="sysPicVisible = false">取 消</el-button>
  2427. <el-button type="primary">确 定</el-button>
  2428. </span>
  2429. </el-dialog>
  2430. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2431. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2432. <div v-if="selectJson">
  2433. <div class="select_box1" v-if="selectSteps == 1">
  2434. <div class="select_box1_img">
  2435. <div class="select_box1_title">
  2436. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  2437. </div>
  2438. <div class="select_box1_add_img">
  2439. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2440. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2441. <img src="../../assets/icon/addPoster.png" alt="" />
  2442. </div>
  2443. <div class="isSysPic" v-else>
  2444. <img :src="selectJson.url" alt="" />
  2445. <div class="deletePic" @click="deleteSelectPic">
  2446. <img src="../../assets/icon/delete.png" alt="" />
  2447. </div>
  2448. </div>
  2449. </div>
  2450. </div>
  2451. <div class="select_box1_select">
  2452. <div class="select_box1_title">
  2453. <span>添加选项</span><span>提示:请输入题目选项</span>
  2454. </div>
  2455. <div class="select_box1_select_box">
  2456. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2457. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  2458. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2459. <div class="select_box1_select_box_add">
  2460. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2461. 添加</el-button>
  2462. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2463. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2464. </div>
  2465. </div>
  2466. </div>
  2467. </div>
  2468. <div v-if="selectSteps == 2">
  2469. <div class="select_box2">
  2470. <div class="select_box2_title">设置答案</div>
  2471. <div class="select_box2_box">
  2472. <div class="select_box2_img">
  2473. <img :src="selectJson.url" alt="" />
  2474. </div>
  2475. <div class="select_box2_answer">
  2476. <div class="select_answer_title">根据题目选择对应答案</div>
  2477. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2478. <span>{{ checkIndex + 1 }}、</span>
  2479. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2480. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2481. </el-option>
  2482. </el-select>
  2483. </div>
  2484. </div>
  2485. </div>
  2486. </div>
  2487. </div>
  2488. </div>
  2489. <span slot="footer" class="dialog-footer">
  2490. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2491. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2492. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2493. </span>
  2494. </el-dialog>
  2495. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2496. :before-close="handleClose" class="dialog_diy">
  2497. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2498. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2499. <div class="pjCss" style="width: 100%">
  2500. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2501. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2502. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2503. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2504. <div class="remove" @click="deletRateList(eIndex)"></div>
  2505. <div style="width: 100%; display: flex">
  2506. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2507. <el-rate v-model="eItem.score" disabled></el-rate>
  2508. </div>
  2509. <div class="elist_inptu_text" style="align-items: flex-start">
  2510. <span style="min-width: 100px; text-align: right">描述:</span>
  2511. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2512. </div>
  2513. </div>
  2514. </div>
  2515. <div class="addToolFun" @click="addRateList()">
  2516. <div class="addToolImg">
  2517. <img src="../../assets/icon/add.png" alt />
  2518. </div>
  2519. <div>添加</div>
  2520. </div>
  2521. </div>
  2522. </div>
  2523. <span slot="footer" class="dialog-footer">
  2524. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2525. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2526. </span>
  2527. </el-dialog>
  2528. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2529. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2530. <div>
  2531. <div class="sentenBox">
  2532. <div class="addSen" @click="addSt">添加题目</div>
  2533. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  2534. <div class="sentenTopBox">
  2535. <div class="sentenTop">
  2536. <div>题目设置</div>
  2537. <div>
  2538. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  2539. </div>
  2540. <div @click="addSen(stIndex)">添加</div>
  2541. </div>
  2542. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2543. </div>
  2544. <div class="cardList">
  2545. <div v-if="st.addSentence.length > 0" class="cardBox">
  2546. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2547. @click="setRightAnswer(s, stIndex, sIndex)">
  2548. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2549. <div>{{ s }}</div>
  2550. </el-tooltip>
  2551. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2552. <img src="../../assets/icon/delete.png" alt="" />
  2553. </div>
  2554. </div>
  2555. </div>
  2556. <div class="card">
  2557. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  2558. </div>
  2559. </div>
  2560. <div class="rightCardBox">
  2561. <div>正确顺序</div>
  2562. <div class="rightCardList">
  2563. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2564. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2565. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2566. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2567. <div>{{ r }}</div>
  2568. </el-tooltip>
  2569. </div>
  2570. <div>{{ rIndex + 1 }}</div>
  2571. </div>
  2572. </div>
  2573. <div class="card" v-if="st.rightAnswer.length == 0">
  2574. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  2575. </div>
  2576. </div>
  2577. </div>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. <span slot="footer" class="dialog-footer">
  2582. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  2583. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2584. </span>
  2585. </el-dialog>
  2586. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2587. :before-close="handleClose" class="dialog_diy">
  2588. <el-form>
  2589. <!-- <el-form-item label="文本标题">
  2590. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2591. </el-form-item> -->
  2592. <div>表格内容</div>
  2593. <Table v-model="tableJson.text" @change="change"></Table>
  2594. </el-form>
  2595. <span slot="footer" class="dialog-footer">
  2596. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2597. <el-button type="primary" @click="addTableJson">确定</el-button>
  2598. </span>
  2599. </el-dialog>
  2600. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2601. :before-close="handleClose" class="dialog_diy">
  2602. <el-form>
  2603. <!-- <el-form-item label="文本标题">
  2604. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2605. </el-form-item> -->
  2606. <div>文档内容</div>
  2607. <editor-bar v-model="wordJson.text"></editor-bar>
  2608. </el-form>
  2609. <span slot="footer" class="dialog-footer">
  2610. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  2611. <el-button type="primary" @click="addWordJson">确定</el-button>
  2612. </span>
  2613. </el-dialog>
  2614. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2615. :before-close="handleClose" class="dialog_diy">
  2616. <div style="
  2617. width: 100%;
  2618. display: flex;
  2619. flex-direction: row;
  2620. flex-wrap: nowrap;
  2621. align-items: center;
  2622. justify-content: center;
  2623. ">
  2624. <div>班级:</div>
  2625. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2626. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2627. </el-option>
  2628. </el-select>
  2629. </div>
  2630. <span slot="footer" class="dialog-footer">
  2631. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2632. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2633. </span>
  2634. </el-dialog>
  2635. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="30%"
  2636. :before-close="handleClose" class="dialog_diy">
  2637. <div>
  2638. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  2639. </div>
  2640. <span slot="footer" class="dialog-footer">
  2641. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  2642. <el-button type="primary" @click="addPreTime">确定</el-button>
  2643. </span>
  2644. </el-dialog>
  2645. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  2646. :before-close="handleClose" class="dialog_diy">
  2647. <div class="groupBox">
  2648. <div v-if="groupJson.group" class="groupContent">
  2649. <div class="groupTitle">请设置小组数量</div>
  2650. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  2651. <span class="groupn">组{{ index + 1 }}名称:</span>
  2652. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  2653. <div class="groupBtn">
  2654. <el-button type="primary" size="small" @click="addGroup(index)">
  2655. 添加</el-button>
  2656. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2657. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  2658. </div>
  2659. </div>
  2660. </div>
  2661. <div class="groupContent">
  2662. <div class="groupTitle">请设置每组人数数量</div>
  2663. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2664. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2665. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  2666. placeholder="2-10人以内"></el-input-number>
  2667. </div>
  2668. </div>
  2669. <span slot="footer" class="dialog-footer">
  2670. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  2671. <el-button type="primary" @click="addGroupJson">确定</el-button>
  2672. </span>
  2673. </el-dialog>
  2674. </div>
  2675. </template>
  2676. <script>
  2677. import "../../common/aws-sdk-2.235.1.min.js";
  2678. // import "../../common/aws-sdk-2.99.0.min.js";
  2679. import $ from "jquery";
  2680. import EditorBar from "../../components/tools/wangEnduit";
  2681. import Table from "../../components/tools/table";
  2682. import Mind from "../tools/jsmind2";
  2683. import Time from "../tools/time.vue";
  2684. import Sunburst from "../tools/sunburst";
  2685. import SeeBoard from "../tools/seeBoard";
  2686. export default {
  2687. components: { EditorBar, Mind, Time, Sunburst, SeeBoard, Table },
  2688. data() {
  2689. return {
  2690. checkAll: false,
  2691. chooseType: 1,
  2692. checkedCities: [],
  2693. isIndeterminate: true,
  2694. isSysPic: false,
  2695. steps: 1,
  2696. nbOrder: 0,
  2697. courseId: "",
  2698. chapToolsType: 0,
  2699. chapTools: [
  2700. {
  2701. tools: [],
  2702. toolDetail: "",
  2703. },
  2704. ],
  2705. line: "",
  2706. lineTitle: "",
  2707. sysPic: [],
  2708. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  2709. isPushTitleList: [],
  2710. lineCount: 0,
  2711. lineType: 0,
  2712. chapCount: 0,
  2713. courseName: "",
  2714. isTeacherSee: true,
  2715. courseText: "",
  2716. preTime: 0,
  2717. formLabelWidth: "100px",
  2718. choosePicVisible: false,
  2719. sysPicVisible: false,
  2720. uploadLoading1: false,
  2721. noneBtnImg: false,
  2722. updateBoolean2: false,
  2723. unitIndex: 0,
  2724. taskCount: 0,
  2725. dialogVisible: false,
  2726. dialogVisible1: false,
  2727. dialogVisible2: false,
  2728. dialogVisible3: false,
  2729. dialogVisible4: false,
  2730. dialogVisible5: false,
  2731. dialogVisible6: false,
  2732. dialogVisible7: false,
  2733. dialogVisible8: false,
  2734. dialogVisible9: false,
  2735. dialogVisibleClass: false,
  2736. dialogVisibleMember: false,
  2737. dialogVisibleMp3: false,
  2738. dialogVisibleSelect: false,
  2739. dialogVisibleSentence: false,
  2740. dialogVisibleRate: false,
  2741. dialogVisibleChoice: false,
  2742. isClickColor: 0,
  2743. publicTool: 0,
  2744. searchPeople: "",
  2745. searchTN: "",
  2746. userid: this.$route.query.userid,
  2747. oid: this.$route.query.oid,
  2748. org: this.$route.query.org,
  2749. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  2750. dialogVisibleTable: false,
  2751. dialogVisibleWord: false,
  2752. tableJson: { text: "" },
  2753. wordJson: { text: "" },
  2754. dialogVisibleMoreUpload: false,
  2755. dialogVisiblePreTime: false,
  2756. uploadJson: [],
  2757. classJuri: [],
  2758. cover: [], //课程封面
  2759. myWord: [],
  2760. evaJuri: [],
  2761. evalua: "",
  2762. targetArray: [],
  2763. eTitle: "",
  2764. eJson: {},
  2765. fid: "", //一级
  2766. sid: "", //二级
  2767. tid: "", //二级
  2768. typeMode: 1,
  2769. eJSONNum: 0,
  2770. data: {
  2771. meta: {
  2772. name: "example",
  2773. author: "dd@163.com",
  2774. version: "0.2",
  2775. },
  2776. format: "node_array",
  2777. data: [{ id: "root", isroot: true, topic: "" }],
  2778. },
  2779. askJson: {
  2780. askCount: 1,
  2781. askTitle: "",
  2782. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2783. },
  2784. testJson: {},
  2785. selectJson: {},
  2786. rateJson: [],
  2787. unitJson2: [],
  2788. unitJson: [
  2789. {
  2790. dyName: "", //单元标题
  2791. chapterInfo: [
  2792. {
  2793. isread: false,
  2794. chapterid: this.guid(),
  2795. title: "",
  2796. courseName: "",
  2797. taskJson: [
  2798. {
  2799. task: "",
  2800. taskDetail: "",
  2801. chapterData: [],
  2802. toolText: "",
  2803. toolChoose: [
  2804. {
  2805. tool: [],
  2806. toolDetail: "",
  2807. toolType: 0,
  2808. askCount: 1,
  2809. askTitle: "",
  2810. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2811. },
  2812. ],
  2813. isShowTools: false,
  2814. askCount: 1,
  2815. isFold: 0,
  2816. askTitle: "",
  2817. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2818. checkJson: [{ checkCount: [], checkPerent: [] }],
  2819. homeworkList: [],
  2820. },
  2821. ],
  2822. itemCount: 1,
  2823. fileList1: [],
  2824. video: [],
  2825. testData: [],
  2826. pData: [],
  2827. templateArray: [],
  2828. },
  2829. ],
  2830. },
  2831. ],
  2832. studentJuri: [],
  2833. teacherJuri: [],
  2834. checkboxList: [],
  2835. checkboxList2: [],
  2836. checkboxList3: [],
  2837. classSearch: "",
  2838. number: "",
  2839. tTitle: "",
  2840. tdetail: "",
  2841. templateC: {},
  2842. AttText: {},
  2843. AttTextType: 0,
  2844. AttTextIndex: 0,
  2845. cTemplate: "",
  2846. CourseType: [],
  2847. CourseTypeJson: {},
  2848. courseTypeId: [],
  2849. courseTypeSon: [],
  2850. clearArray: [],
  2851. pTypeCheck:[],
  2852. loading: false,
  2853. toolType: 0,
  2854. inputShow: true,
  2855. inputShow2: true,
  2856. toolIndex: 0,
  2857. cidType: 0,
  2858. answerQ: "",
  2859. grade: [],
  2860. grade2: [],
  2861. courseUserid: "",
  2862. timer: null,
  2863. timer2: null,
  2864. checkId: "",
  2865. isDelete: 1,
  2866. addindex: 0,
  2867. selectSteps: 1,
  2868. groupJson: {},
  2869. dialogVisibleGroup: false,
  2870. rightBoxHeight: 0,
  2871. ManAarray: [],
  2872. };
  2873. },
  2874. computed: {
  2875. // rightBoxHeight: function () {
  2876. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  2877. // },
  2878. offsetLetfPx: function () {
  2879. //addnum可以直接在模板语法里面用,相当于data内的值
  2880. return (
  2881. $(".cru_select")[this.unitIndex] &&
  2882. $(".cru_select")[this.unitIndex].offsetLeft
  2883. );
  2884. },
  2885. getMan2() {
  2886. return function (people) {
  2887. let _people = people;
  2888. let _people2 = "";
  2889. if (this.ManAarray.length) {
  2890. for (var i = 0; i < this.ManAarray.length; i++) {
  2891. if (this.ManAarray[i].userid == people) {
  2892. _people2 = this.ManAarray[i].name;
  2893. break;
  2894. }
  2895. }
  2896. }
  2897. if (people == this.courseUserid) {
  2898. return "";
  2899. }
  2900. return this.ManAarray.length ? _people2 : "";
  2901. };
  2902. },
  2903. getClassC() {
  2904. return function (c) {
  2905. let _c2 = "";
  2906. if (this.grade.length) {
  2907. for (var i = 0; i < this.grade.length; i++) {
  2908. if (this.grade[i].id == c) {
  2909. _c2 = this.grade[i].name;
  2910. break;
  2911. }
  2912. }
  2913. }
  2914. return this.grade.length ? _c2 : "";
  2915. };
  2916. },
  2917. },
  2918. watch: {
  2919. unitIndex(newValue, oldValue) {
  2920. if (this.isDelete == 2) {
  2921. this.isDelete = 1;
  2922. return;
  2923. }
  2924. if (this.cid != "") {
  2925. let _unitIndex = oldValue;
  2926. if (
  2927. JSON.stringify(this.unitJson2[_unitIndex]) ==
  2928. JSON.stringify(this.unitJson[_unitIndex])
  2929. ) {
  2930. this.$refs.rightboxR.scrollTop = 0;
  2931. return;
  2932. }
  2933. let cPan = 1;
  2934. for (
  2935. var j = 0;
  2936. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  2937. j++
  2938. ) {
  2939. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  2940. j
  2941. ].proVisible = false;
  2942. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  2943. j
  2944. ].proVisible2 = false;
  2945. if (
  2946. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  2947. .length > 1
  2948. ) {
  2949. for (
  2950. var z = 0;
  2951. z <
  2952. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  2953. .length;
  2954. z++
  2955. ) {
  2956. if (
  2957. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  2958. .toolChoose[z].tool.length
  2959. ) {
  2960. this.$message.error("请把工具添加完整");
  2961. cPan = 2;
  2962. break;
  2963. }
  2964. }
  2965. }
  2966. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  2967. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  2968. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  2969. (ele) => {
  2970. return ele.value != "";
  2971. }
  2972. );
  2973. }
  2974. }
  2975. if (cPan == 2) {
  2976. this.unitIndex = oldValue;
  2977. return;
  2978. }
  2979. for (var i = 0; i < this.unitJson.length; i++) {
  2980. if (this.addindex != i) {
  2981. delete this.unitJson[i].isUpdate;
  2982. }
  2983. }
  2984. this.$refs.rightboxR.scrollTop = 0;
  2985. this.addindex = -1;
  2986. let params = [
  2987. {
  2988. cid: this.cid,
  2989. chapters: JSON.stringify(this.unitJson),
  2990. uid: this.userid,
  2991. unitIndex: _unitIndex,
  2992. },
  2993. ];
  2994. this.ajax
  2995. .post(this.$store.state.api + "updateWorkNew4", params)
  2996. .then((res) => {
  2997. // this.$message({
  2998. // message: "修改成功",
  2999. // type: "success",
  3000. // });
  3001. // this.courseId = this.cid;
  3002. })
  3003. .catch((err) => {
  3004. this.$message.error("网络不佳");
  3005. console.error(err);
  3006. });
  3007. }
  3008. },
  3009. },
  3010. methods: {
  3011. setMan() {
  3012. // let teacherJuri = this.teacherJuri2;
  3013. this.ManAarray = [];
  3014. if (this.checkboxList3.indexOf(this.courseUserid || this.userid) == -1) {
  3015. this.checkboxList3.push(this.courseUserid || this.userid);
  3016. }
  3017. let params = {
  3018. uid: this.checkboxList3.join(","),
  3019. };
  3020. this.ajax
  3021. .get(this.$store.state.api + "getAllUserById", params)
  3022. .then((res) => {
  3023. let teacherJuri = res.data[0];
  3024. this.ManAarray = teacherJuri;
  3025. })
  3026. .catch((err) => {
  3027. console.error(err);
  3028. });
  3029. },
  3030. previewImg(url) {
  3031. this.$hevueImgPreview(url);
  3032. },
  3033. scrollChange() {
  3034. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3035. },
  3036. handleCheckAllChange(val) {
  3037. this.checkedCities = val ? cityOptions : [];
  3038. this.isIndeterminate = false;
  3039. },
  3040. handleCheckedCitiesChange(value) {
  3041. let checkedCount = value.length;
  3042. this.checkAll = checkedCount === this.cities.length;
  3043. this.isIndeterminate =
  3044. checkedCount > 0 && checkedCount < this.cities.length;
  3045. },
  3046. addHw(e) {
  3047. var el = e.currentTarget;
  3048. el.getElementsByTagName("input")[0].click();
  3049. },
  3050. change(val) {
  3051. console.log(val);
  3052. },
  3053. change2(val) {
  3054. console.log(val);
  3055. this.$forceUpdate();
  3056. },
  3057. handleClose(done) {
  3058. done();
  3059. },
  3060. imgChange2(i, j) {
  3061. var _tmp = this.testJson.testJson[i].checkList[j];
  3062. this.noneBtnImg = _tmp.length >= 1;
  3063. },
  3064. imgChange3(i) {
  3065. var _tmp = this.testJson.testJson[i];
  3066. this.noneBtnImg = _tmp.length >= 1;
  3067. },
  3068. imgChange1(file, fileList, type, itemTaskIndex) {
  3069. if (type == 1) {
  3070. var _tmp = this.cover;
  3071. } else if (
  3072. type == 2 ||
  3073. type == 3 ||
  3074. type == 6 ||
  3075. type == 7 ||
  3076. type == 8
  3077. ) {
  3078. var _tmp =
  3079. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3080. .chapterData;
  3081. } else if (type == 4) {
  3082. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3083. } else {
  3084. var _tmp =
  3085. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3086. .homeworkList;
  3087. }
  3088. this.noneBtnImg = _tmp.length >= 1;
  3089. },
  3090. goTo(path) {
  3091. this.$router.push(path);
  3092. },
  3093. guid() {
  3094. var _num,
  3095. i,
  3096. _guid = "";
  3097. for (i = 0; i < 32; i++) {
  3098. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3099. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3100. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3101. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3102. _guid += "-";
  3103. }
  3104. }
  3105. return _guid;
  3106. },
  3107. lastSteps() {
  3108. if (this.steps == 4) {
  3109. this.goTo(
  3110. "/course?userid=" +
  3111. this.userid +
  3112. "&oid=" +
  3113. this.oid +
  3114. "&org=" +
  3115. this.org
  3116. );
  3117. } else {
  3118. if (this.cidType == 0) {
  3119. this.steps--;
  3120. if (this.steps == 1) {
  3121. setTimeout(() => {
  3122. this.checkEva(this.checkId);
  3123. }, 0);
  3124. }
  3125. } else {
  3126. if (this.steps == 3) {
  3127. this.steps = 1;
  3128. setTimeout(() => {
  3129. this.checkEva(this.checkId);
  3130. }, 0);
  3131. }
  3132. }
  3133. }
  3134. },
  3135. navSteps(s) {
  3136. if (this.courseName == "") {
  3137. this.$message.error("请将信息填写完整");
  3138. return;
  3139. }
  3140. if (this.cidType == 0) {
  3141. if (this.steps == 1) {
  3142. if (this.cid == "" || this.cid == undefined) {
  3143. this.addWork();
  3144. } else {
  3145. if (this.userid != this.courseUserid) {
  3146. // this.updateWork2();
  3147. } else {
  3148. this.updateWork();
  3149. }
  3150. }
  3151. }
  3152. if (s == 1) {
  3153. this.steps = 1;
  3154. setTimeout(() => {
  3155. this.checkEva(this.checkId);
  3156. }, 0);
  3157. }
  3158. if (s == 2) {
  3159. this.steps = 2;
  3160. }
  3161. if (s == 3) {
  3162. this.cTemplate = this.templateC.content;
  3163. this.dialogVisible2 = false;
  3164. this.steps = 3;
  3165. setTimeout(() => {
  3166. this.checkEva(this.checkId);
  3167. }, 1000);
  3168. }
  3169. } else {
  3170. if (this.steps == 1) {
  3171. if (this.cid == "" || this.cid == undefined) {
  3172. this.addWork();
  3173. } else {
  3174. if (this.userid != this.courseUserid) {
  3175. // this.updateWork2();
  3176. } else {
  3177. this.updateWork();
  3178. }
  3179. }
  3180. }
  3181. if (s == 1) {
  3182. this.steps = 1;
  3183. setTimeout(() => {
  3184. this.checkEva(this.checkId);
  3185. }, 0);
  3186. }
  3187. if (s == 3) {
  3188. this.cTemplate = this.templateC.content;
  3189. this.dialogVisible2 = false;
  3190. this.steps = 3;
  3191. setTimeout(() => {
  3192. this.checkEva(this.checkId);
  3193. }, 1000);
  3194. }
  3195. }
  3196. this.$refs.stepBox.scrollTop = 0;
  3197. },
  3198. nextSteps() {
  3199. if (this.cidType == 1) {
  3200. if (this.steps == 1) {
  3201. if (this.courseName != "") {
  3202. this.steps = 3;
  3203. setTimeout(() => {
  3204. this.checkEva(this.checkId);
  3205. }, 1000);
  3206. if (this.cid == "" || this.cid == undefined) {
  3207. this.addWork();
  3208. } else {
  3209. if (this.userid != this.courseUserid) {
  3210. // this.updateWork2();
  3211. } else {
  3212. this.updateWork();
  3213. }
  3214. }
  3215. } else {
  3216. this.$message.error("请将信息填写完整");
  3217. return;
  3218. }
  3219. } else if (this.steps == 3) {
  3220. if (this.cid == "" || this.cid == undefined) {
  3221. if (this.courseName == "") {
  3222. this.$message.error("请将信息填写完整");
  3223. return;
  3224. } else {
  3225. this.addWork();
  3226. this.steps++;
  3227. }
  3228. } else {
  3229. if (this.courseName == "") {
  3230. this.$message.error("请将信息填写完整");
  3231. return;
  3232. } else {
  3233. if (this.userid != this.courseUserid) {
  3234. this.updateWork2();
  3235. } else {
  3236. this.updateWork();
  3237. }
  3238. this.steps++;
  3239. }
  3240. }
  3241. }
  3242. } else {
  3243. if (this.steps == 1) {
  3244. if (this.courseName != "") {
  3245. if (this.cid == "" || this.cid == undefined) {
  3246. this.addWork();
  3247. } else {
  3248. if (this.userid != this.courseUserid) {
  3249. // this.updateWork2();
  3250. } else {
  3251. this.updateWork();
  3252. }
  3253. }
  3254. this.steps++;
  3255. } else {
  3256. this.$message.error("请将信息填写完整");
  3257. return;
  3258. }
  3259. } else if (this.steps == 2) {
  3260. if (this.templateC.id != "" || this.templateC.id != undefined) {
  3261. this.cTemplate = this.templateC.content;
  3262. }
  3263. this.dialogVisible2 = false;
  3264. this.steps++;
  3265. setTimeout(() => {
  3266. this.checkEva(this.checkId);
  3267. }, 1000);
  3268. } else if (this.steps == 3) {
  3269. if (this.cid == "" || this.cid == undefined) {
  3270. if (this.courseName == "") {
  3271. this.$message.error("请将信息填写完整");
  3272. return;
  3273. } else {
  3274. this.addWork();
  3275. this.steps++;
  3276. }
  3277. } else {
  3278. if (this.courseName == "") {
  3279. this.$message.error("请将信息填写完整");
  3280. return;
  3281. } else {
  3282. if (this.userid != this.courseUserid) {
  3283. this.updateWork2();
  3284. } else {
  3285. this.updateWork();
  3286. }
  3287. this.steps++;
  3288. }
  3289. }
  3290. }
  3291. }
  3292. this.$refs.stepBox.scrollTop = 0;
  3293. },
  3294. unitSet(i) {
  3295. this.unitIndex = i;
  3296. // this.$refs.rightboxR.scrollTop = 0;
  3297. },
  3298. time() {
  3299. if (!this.now) {
  3300. this.now = new Date().getTime();
  3301. return true;
  3302. } else {
  3303. let time = new Date().getTime();
  3304. if (time - this.now > 3000) {
  3305. this.now = time;
  3306. return true;
  3307. } else {
  3308. return false;
  3309. }
  3310. }
  3311. },
  3312. deleteUnit(i) {
  3313. var _this = this;
  3314. if (_this.time()) {
  3315. _this
  3316. .$confirm("确定删除此单元吗?", "提示", {
  3317. confirmButtonText: "确定",
  3318. cancelButtonText: "取消",
  3319. type: "warning",
  3320. })
  3321. .then(() => {
  3322. _this.isDelete = 2;
  3323. // _this.unitIndex = _this.unitIndex - 1;
  3324. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3325. // _this.$message.success("删除成功");
  3326. })
  3327. .catch(() => {
  3328. return;
  3329. });
  3330. }
  3331. },
  3332. deleteWork(chapid) {
  3333. let params = [
  3334. {
  3335. cid: this.cid,
  3336. chapters: JSON.stringify(this.unitJson),
  3337. uid: this.userid,
  3338. chapid: chapid,
  3339. },
  3340. ];
  3341. this.ajax
  3342. .post(this.$store.state.api + "deleteWork", params)
  3343. .then((res) => {
  3344. this.$message({
  3345. message: "删除成功",
  3346. type: "success",
  3347. });
  3348. this.unitJson.splice(this.unitIndex, 1);
  3349. this.unitIndex = this.unitIndex - 1;
  3350. })
  3351. .catch((err) => {
  3352. this.$message.error("网络不佳");
  3353. console.error(err);
  3354. });
  3355. },
  3356. deleteTool(itemTaskIndex, i) {
  3357. var _this = this;
  3358. if (_this.time()) {
  3359. _this
  3360. .$confirm("确定删除此工具吗?", "提示", {
  3361. confirmButtonText: "确定",
  3362. cancelButtonText: "取消",
  3363. type: "warning",
  3364. })
  3365. .then(() => {
  3366. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3367. itemTaskIndex
  3368. ].toolChoose.splice(i, 1);
  3369. _this.$message.success("删除成功");
  3370. })
  3371. .catch(() => {
  3372. return;
  3373. });
  3374. }
  3375. },
  3376. deleteSentence(i) {
  3377. var _this = this;
  3378. if (_this.time()) {
  3379. _this
  3380. .$confirm("确定删除此题目吗?", "提示", {
  3381. confirmButtonText: "确定",
  3382. cancelButtonText: "取消",
  3383. type: "warning",
  3384. })
  3385. .then(() => {
  3386. _this.sentenceList.splice(i, 1);
  3387. _this.$message.success("删除成功");
  3388. })
  3389. .catch(() => {
  3390. return;
  3391. });
  3392. }
  3393. },
  3394. deleteS(s, i, j) {
  3395. this.sentenceList[i].addSentence.splice(j, 1);
  3396. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3397. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3398. this.sentenceList[i].rightAnswer.splice(a, 1);
  3399. }
  3400. },
  3401. openT() {
  3402. window.parent.postMessage({ tools: "25" }, "*");
  3403. },
  3404. deleteTask(i) {
  3405. var _this = this;
  3406. if (_this.time()) {
  3407. _this
  3408. .$confirm("确定删除此任务吗?", "提示", {
  3409. confirmButtonText: "确定",
  3410. cancelButtonText: "取消",
  3411. type: "warning",
  3412. })
  3413. .then(() => {
  3414. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3415. i,
  3416. 1
  3417. );
  3418. _this.$message.success("删除成功");
  3419. })
  3420. .catch(() => {
  3421. return;
  3422. });
  3423. }
  3424. },
  3425. handlePictureCardPreview(file) {
  3426. this.dialogImageUrl = file.url;
  3427. },
  3428. clean(i, c) {
  3429. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3430. },
  3431. handle_remove1(file, fileList, type) {
  3432. var _tmp = this.cover;
  3433. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3434. // if (_tmp[i].uid == file.uid) {
  3435. // _tmp.splice(i, 1);
  3436. // break;
  3437. // }
  3438. // this.cover = _tmp;
  3439. // }
  3440. this.cover = [];
  3441. this.noneBtnImg = this.cover.length >= 1;
  3442. this.isSysPic = false;
  3443. this.$forceUpdate();
  3444. },
  3445. addImg(e) {
  3446. var el = e.currentTarget;
  3447. el.getElementsByTagName("input")[0].click();
  3448. e.target.value = "";
  3449. },
  3450. addChaptersTools(i) {
  3451. this.chapTools = [
  3452. {
  3453. tools: [],
  3454. toolDetail: "",
  3455. },
  3456. ];
  3457. this.chapCount = i;
  3458. this.dialogVisible4 = true;
  3459. },
  3460. isNoFinsh() {
  3461. this.$message.warning("功能正在开发中");
  3462. },
  3463. addAttText(i) {
  3464. this.AttText = {
  3465. title: "",
  3466. text: "",
  3467. };
  3468. this.taskCount = i;
  3469. this.AttTextType = 0;
  3470. this.$forceUpdate();
  3471. this.dialogVisible6 = true;
  3472. },
  3473. openLine(i) {
  3474. this.line = "";
  3475. this.lineCount = i;
  3476. this.lineType = 0;
  3477. this.$forceUpdate();
  3478. this.dialogVisible7 = true;
  3479. },
  3480. deleteM(i, j) {
  3481. this.testJson.testJson[i].timuList.splice(j, 1);
  3482. },
  3483. beforeUploadTiMu(event, i) {
  3484. const loading = this.openLoading();
  3485. var file = event.target.files[0];
  3486. var credentials = {
  3487. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3488. secretAccessKey: "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",
  3489. }; //秘钥形式的登录上传
  3490. window.AWS.config.update(credentials);
  3491. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3492. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3493. var _this = this;
  3494. if (file) {
  3495. var params = {
  3496. Key:
  3497. file.name.split(".")[0] +
  3498. new Date().getTime() +
  3499. "." +
  3500. file.name.split(".")[file.name.split(".").length - 1],
  3501. ContentType: file.type,
  3502. Body: file,
  3503. "Access-Control-Allow-Credentials": "*",
  3504. ACL: "public-read",
  3505. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3506. var options = {
  3507. partSize: 2048 * 1024 * 1024,
  3508. queueSize: 2,
  3509. leavePartsOnError: true,
  3510. };
  3511. bucket
  3512. .upload(params, options)
  3513. .on("httpUploadProgress", function (evt) {
  3514. //这里可以写进度条
  3515. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3516. })
  3517. .send(function (err, data) {
  3518. loading.close();
  3519. if (err) {
  3520. _this.$message.error("上传失败");
  3521. } else {
  3522. if (_this.testJson.testJson[i].timuList) {
  3523. _this.testJson.testJson[i].timuList.push({
  3524. src: data.Location,
  3525. });
  3526. } else {
  3527. _this.testJson.testJson[i].timuList = [];
  3528. _this.testJson.testJson[i].timuList.push({
  3529. src: data.Location,
  3530. });
  3531. }
  3532. _this.imgChange3(i);
  3533. _this.$forceUpdate();
  3534. }
  3535. });
  3536. }
  3537. },
  3538. beforeUploadTi(event, i, j) {
  3539. const loading = this.openLoading();
  3540. var file = event.target.files[0];
  3541. var credentials = {
  3542. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3543. secretAccessKey: "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",
  3544. }; //秘钥形式的登录上传
  3545. window.AWS.config.update(credentials);
  3546. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3547. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3548. var _this = this;
  3549. if (file) {
  3550. var params = {
  3551. Key:
  3552. file.name.split(".")[0] +
  3553. new Date().getTime() +
  3554. "." +
  3555. file.name.split(".")[file.name.split(".").length - 1],
  3556. ContentType: file.type,
  3557. Body: file,
  3558. "Access-Control-Allow-Credentials": "*",
  3559. ACL: "public-read",
  3560. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3561. var options = {
  3562. partSize: 2048 * 1024 * 1024,
  3563. queueSize: 2,
  3564. leavePartsOnError: true,
  3565. };
  3566. bucket
  3567. .upload(params, options)
  3568. .on("httpUploadProgress", function (evt) {
  3569. //这里可以写进度条
  3570. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3571. })
  3572. .send(function (err, data) {
  3573. loading.close();
  3574. if (err) {
  3575. _this.$message.error("上传失败");
  3576. } else {
  3577. _this.testJson.testJson[i].checkList[j] = {};
  3578. _this.testJson.testJson[i].checkList[j].src = data.Location;
  3579. _this.testJson.testJson[i].checkList[j].imgType = 1;
  3580. _this.imgChange2(i, j);
  3581. _this.$forceUpdate();
  3582. }
  3583. });
  3584. }
  3585. },
  3586. beforeUpload1(event, type) {
  3587. // const loading = this.openLoading();
  3588. var file = event.target.files[0];
  3589. var credentials = {
  3590. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3591. secretAccessKey: "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",
  3592. }; //秘钥形式的登录上传
  3593. window.AWS.config.update(credentials);
  3594. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3595. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3596. var _this = this;
  3597. if (file) {
  3598. var params = {
  3599. Key:
  3600. file.name.split(".")[0] +
  3601. new Date().getTime() +
  3602. "." +
  3603. file.name.split(".")[file.name.split(".").length - 1],
  3604. ContentType: file.type,
  3605. Body: file,
  3606. "Access-Control-Allow-Credentials": "*",
  3607. ACL: "public-read",
  3608. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3609. var options = {
  3610. partSize: 2048 * 1024 * 1024,
  3611. queueSize: 2,
  3612. leavePartsOnError: true,
  3613. };
  3614. bucket
  3615. .upload(params, options)
  3616. .on("httpUploadProgress", function (evt) {
  3617. //这里可以写进度条
  3618. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3619. })
  3620. .send(function (err, data) {
  3621. // loading.close();
  3622. if (err) {
  3623. var a = _this.$refs.upload1.uploadFiles;
  3624. a.splice(a.length - 1, a.length);
  3625. _this.$message.error("上传失败");
  3626. } else {
  3627. _this.cover.push({
  3628. name: file.name,
  3629. url: data.Location,
  3630. uid: file.uid,
  3631. });
  3632. _this.imgChange1(null, null, 1, null);
  3633. _this.choosePicVisible = false;
  3634. console.log(data.Location);
  3635. }
  3636. });
  3637. }
  3638. },
  3639. beforeUploadSelect(event, type) {
  3640. // const loading = this.openLoading();
  3641. var file = event.target.files[0];
  3642. var credentials = {
  3643. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3644. secretAccessKey: "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",
  3645. }; //秘钥形式的登录上传
  3646. window.AWS.config.update(credentials);
  3647. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3648. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3649. var _this = this;
  3650. if (file) {
  3651. var params = {
  3652. Key:
  3653. file.name.split(".")[0] +
  3654. new Date().getTime() +
  3655. "." +
  3656. file.name.split(".")[file.name.split(".").length - 1],
  3657. ContentType: file.type,
  3658. Body: file,
  3659. "Access-Control-Allow-Credentials": "*",
  3660. ACL: "public-read",
  3661. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3662. var options = {
  3663. partSize: 2048 * 1024 * 1024,
  3664. queueSize: 2,
  3665. leavePartsOnError: true,
  3666. };
  3667. bucket
  3668. .upload(params, options)
  3669. .on("httpUploadProgress", function (evt) {
  3670. //这里可以写进度条
  3671. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3672. })
  3673. .send(function (err, data) {
  3674. // loading.close();
  3675. if (err) {
  3676. _this.$message.error("上传失败");
  3677. } else {
  3678. _this.selectJson.url = data.Location;
  3679. console.log(data.Location);
  3680. }
  3681. });
  3682. }
  3683. },
  3684. chooseSysPic(p) {
  3685. this.cover.push({
  3686. name: "系统图片.png",
  3687. url: p,
  3688. });
  3689. this.imgChange1(null, null, 1, null);
  3690. this.isSysPic = true;
  3691. this.sysPicVisible = false;
  3692. },
  3693. beforeUpload(data) {
  3694. this.$refs.upload1.uploadFiles;
  3695. this.uploadLoading1 = true;
  3696. var file = data.file;
  3697. var credentials = {
  3698. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3699. secretAccessKey: "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",
  3700. }; //秘钥形式的登录上传
  3701. window.AWS.config.update(credentials);
  3702. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3703. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3704. var _this = this;
  3705. if (file) {
  3706. var params = {
  3707. Key:
  3708. file.name.split(".")[0] +
  3709. new Date().getTime() +
  3710. "." +
  3711. file.name.split(".")[file.name.split(".").length - 1],
  3712. ContentType: file.type,
  3713. Body: file,
  3714. "Access-Control-Allow-Credentials": "*",
  3715. ACL: "public-read",
  3716. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3717. var options = {
  3718. partSize: 2048 * 1024 * 1024,
  3719. queueSize: 2,
  3720. leavePartsOnError: true,
  3721. };
  3722. bucket
  3723. .upload(params, options)
  3724. .on("httpUploadProgress", function (evt) {
  3725. //这里可以写进度条
  3726. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3727. })
  3728. .send(function (err, data) {
  3729. _this.uploadLoading1 = false;
  3730. if (err) {
  3731. var a = _this.$refs.upload1.uploadFiles;
  3732. a.splice(a.length - 1, a.length);
  3733. _this.$message.error("上传失败");
  3734. } else {
  3735. //上传成功处理
  3736. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  3737. name: file.name,
  3738. url: data.Location,
  3739. uid: file.uid,
  3740. });
  3741. _this.imgChange();
  3742. console.log(data.Location);
  3743. }
  3744. });
  3745. }
  3746. },
  3747. onExceed() {
  3748. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  3749. },
  3750. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  3751. // const loading = this.openLoading();
  3752. var file = event.target.files[0];
  3753. var credentials = {
  3754. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3755. secretAccessKey: "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",
  3756. }; //秘钥形式的登录上传
  3757. window.AWS.config.update(credentials);
  3758. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3759. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3760. var _this = this;
  3761. if (type == 3) {
  3762. var b = [
  3763. "DOC",
  3764. "DOCX",
  3765. "DOCM",
  3766. "DOTM",
  3767. "DOTX",
  3768. "PPTX",
  3769. "PPSX",
  3770. "PPT",
  3771. "PPS",
  3772. "PPTM",
  3773. "POTM",
  3774. "PPAM",
  3775. "POTX",
  3776. "PPSM",
  3777. ];
  3778. if (
  3779. b.indexOf(
  3780. file.name
  3781. .split(".")
  3782. [file.name.split(".").length - 1].toLocaleUpperCase()
  3783. ) != -1
  3784. ) {
  3785. if (file.size / 1024 / 1024 > 80) {
  3786. this.$message.error("上传文件大于80兆,请重新选择文件!");
  3787. this.inputShow = true;
  3788. var a = _this.$refs.upload1.uploadFiles;
  3789. a.splice(a.length - 1, a.length);
  3790. // loading.close();
  3791. return;
  3792. }
  3793. } else if (
  3794. file.name
  3795. .split(".")
  3796. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  3797. ) {
  3798. if (file.size / 1024 / 1024 > 80) {
  3799. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  3800. this.inputShow = true;
  3801. var a = _this.$refs.upload1.uploadFiles;
  3802. a.splice(a.length - 1, a.length);
  3803. // loading.close();
  3804. return;
  3805. }
  3806. }
  3807. }
  3808. this.inputShow = false;
  3809. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3810. itemTaskIndex
  3811. ].progress = 0;
  3812. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3813. itemTaskIndex
  3814. ].proVisible = true;
  3815. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3816. itemTaskIndex
  3817. ].isFinishSize = 0;
  3818. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3819. itemTaskIndex
  3820. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  3821. _this.$forceUpdate();
  3822. if (file) {
  3823. var params = {
  3824. Key:
  3825. file.name.split(".")[0] +
  3826. new Date().getTime() +
  3827. "." +
  3828. file.name.split(".")[file.name.split(".").length - 1],
  3829. ContentType: file.type,
  3830. Body: file,
  3831. "Access-Control-Allow-Credentials": "*",
  3832. ACL: "public-read",
  3833. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3834. var options = {
  3835. partSize: 2048 * 1024 * 1024,
  3836. queueSize: 2,
  3837. leavePartsOnError: true,
  3838. };
  3839. bucket
  3840. .upload(params, options)
  3841. .on("httpUploadProgress", function (evt) {
  3842. //这里可以写进度条
  3843. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3844. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3845. itemTaskIndex
  3846. ].progress = parseInt((evt.loaded / evt.total) * 100);
  3847. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3848. itemTaskIndex
  3849. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  3850. _this.$forceUpdate();
  3851. })
  3852. .send(function (err, data) {
  3853. // loading.close();
  3854. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3855. itemTaskIndex
  3856. ].progress = 100;
  3857. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3858. itemTaskIndex
  3859. ].isFinishSize =
  3860. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3861. itemTaskIndex
  3862. ].isAllSize;
  3863. _this.$forceUpdate();
  3864. setTimeout(() => {
  3865. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3866. itemTaskIndex
  3867. ].proVisible = false;
  3868. _this.$forceUpdate();
  3869. }, 1000);
  3870. _this.inputShow = true;
  3871. if (err) {
  3872. var a = _this.$refs.upload1.uploadFiles;
  3873. a.splice(a.length - 1, a.length);
  3874. _this.$message.error("上传失败");
  3875. } else {
  3876. if (type == 2 || type == 3) {
  3877. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3878. itemTaskIndex
  3879. ].chapterData.push({
  3880. name: file.name,
  3881. url: data.Location,
  3882. uid: file.uid,
  3883. type: type,
  3884. });
  3885. _this.imgChange1(null, null, type, itemTaskIndex);
  3886. } else if (type == 4) {
  3887. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3888. itemTaskIndex
  3889. ].fileList1.push({
  3890. name: file.name,
  3891. url: data.Location,
  3892. uid: file.uid,
  3893. });
  3894. _this.imgChange1(null, null, type, itemTaskIndex);
  3895. } else if (type == 5) {
  3896. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3897. itemTaskIndex
  3898. ].homeworkList.push({
  3899. name: file.name,
  3900. url: data.Location,
  3901. uid: file.uid,
  3902. });
  3903. _this.imgChange1(null, null, type, itemTaskIndex);
  3904. }
  3905. console.log(data.Location);
  3906. }
  3907. });
  3908. }
  3909. },
  3910. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  3911. // const loading = this.openLoading();
  3912. var file = event.target.files[0];
  3913. var credentials = {
  3914. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3915. secretAccessKey: "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",
  3916. }; //秘钥形式的登录上传
  3917. window.AWS.config.update(credentials);
  3918. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3919. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3920. var _this = this;
  3921. if (type == 3) {
  3922. var b = [
  3923. "DOC",
  3924. "DOCX",
  3925. "DOCM",
  3926. "DOTM",
  3927. "DOTX",
  3928. "PPTX",
  3929. "PPSX",
  3930. "PPT",
  3931. "PPS",
  3932. "PPTM",
  3933. "POTM",
  3934. "PPAM",
  3935. "POTX",
  3936. "PPSM",
  3937. ];
  3938. if (
  3939. b.indexOf(
  3940. file.name
  3941. .split(".")
  3942. [file.name.split(".").length - 1].toLocaleUpperCase()
  3943. ) != -1
  3944. ) {
  3945. if (file.size / 1024 / 1024 > 80) {
  3946. this.$message.error("上传文件大于80兆,请重新选择文件!");
  3947. this.inputShow = true;
  3948. var a = _this.$refs.upload1.uploadFiles;
  3949. a.splice(a.length - 1, a.length);
  3950. // loading.close();
  3951. return;
  3952. }
  3953. } else if (
  3954. file.name
  3955. .split(".")
  3956. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  3957. ) {
  3958. if (file.size / 1024 / 1024 > 80) {
  3959. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  3960. this.inputShow = true;
  3961. var a = _this.$refs.upload1.uploadFiles;
  3962. a.splice(a.length - 1, a.length);
  3963. // loading.close();
  3964. return;
  3965. }
  3966. }
  3967. }
  3968. this.inputShow = false;
  3969. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3970. itemTaskIndex
  3971. ].progress = 0;
  3972. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3973. itemTaskIndex
  3974. ].proVisible = true;
  3975. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3976. itemTaskIndex
  3977. ].isFinishSize = 0;
  3978. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  3979. itemTaskIndex
  3980. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  3981. _this.$forceUpdate();
  3982. if (file) {
  3983. var params = {
  3984. Key:
  3985. file.name.split(".")[0] +
  3986. new Date().getTime() +
  3987. "." +
  3988. file.name.split(".")[file.name.split(".").length - 1],
  3989. ContentType: file.type,
  3990. Body: file,
  3991. "Access-Control-Allow-Credentials": "*",
  3992. ACL: "public-read",
  3993. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3994. var options = {
  3995. partSize: 2048 * 1024 * 1024,
  3996. queueSize: 2,
  3997. leavePartsOnError: true,
  3998. };
  3999. bucket
  4000. .upload(params, options)
  4001. .on("httpUploadProgress", function (evt) {
  4002. //这里可以写进度条
  4003. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4004. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4005. itemTaskIndex
  4006. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4007. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4008. itemTaskIndex
  4009. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4010. _this.$forceUpdate();
  4011. })
  4012. .send(function (err, data) {
  4013. // loading.close();
  4014. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4015. itemTaskIndex
  4016. ].progress = 100;
  4017. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4018. itemTaskIndex
  4019. ].isFinishSize =
  4020. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4021. itemTaskIndex
  4022. ].isAllSize;
  4023. _this.$forceUpdate();
  4024. setTimeout(() => {
  4025. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4026. itemTaskIndex
  4027. ].proVisible = false;
  4028. _this.$forceUpdate();
  4029. }, 1000);
  4030. _this.inputShow = true;
  4031. if (err) {
  4032. var a = _this.$refs.upload1.uploadFiles;
  4033. a.splice(a.length - 1, a.length);
  4034. _this.$message.error("上传失败");
  4035. } else {
  4036. if (type == 2 || type == 3) {
  4037. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4038. itemTaskIndex
  4039. ].chapterData.push({
  4040. name: file.name,
  4041. url: data.Location,
  4042. uid: file.uid,
  4043. type: type,
  4044. text: string,
  4045. });
  4046. _this.imgChange1(null, null, type, itemTaskIndex);
  4047. } else if (type == 4) {
  4048. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4049. itemTaskIndex
  4050. ].fileList1.push({
  4051. name: file.name,
  4052. url: data.Location,
  4053. uid: file.uid,
  4054. });
  4055. _this.imgChange1(null, null, type, itemTaskIndex);
  4056. } else if (type == 5) {
  4057. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4058. itemTaskIndex
  4059. ].homeworkList.push({
  4060. name: file.name,
  4061. url: data.Location,
  4062. uid: file.uid,
  4063. });
  4064. _this.imgChange1(null, null, type, itemTaskIndex);
  4065. }
  4066. console.log(data.Location);
  4067. }
  4068. });
  4069. }
  4070. },
  4071. addunit() {
  4072. this.unitJson.push({
  4073. dyName: "", //单元标题
  4074. isUpdate: 1,
  4075. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4076. chapterInfo: [
  4077. {
  4078. isread: false,
  4079. chapterid: this.guid(),
  4080. title: "",
  4081. courseName: "",
  4082. taskJson: [
  4083. {
  4084. task: "",
  4085. taskDetail: "",
  4086. chapterData: [],
  4087. toolText: "",
  4088. toolChoose: [
  4089. {
  4090. tool: [],
  4091. toolDetail: "",
  4092. toolType: 0,
  4093. askCount: 1,
  4094. askTitle: "",
  4095. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4096. },
  4097. ],
  4098. isShowTools: false,
  4099. askCount: 1,
  4100. isFold: 0,
  4101. askTitle: "",
  4102. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4103. checkJson: [{ checkCount: [], checkPerent: [] }],
  4104. homeworkList: [],
  4105. },
  4106. ],
  4107. itemCount: 1,
  4108. fileList1: [],
  4109. video: [],
  4110. testData: [],
  4111. pData: [],
  4112. templateArray: [],
  4113. },
  4114. ],
  4115. });
  4116. this.addindex = this.unitJson.length - 1;
  4117. setTimeout(() => {
  4118. this.unitIndex = this.unitJson.length - 1;
  4119. this.unitSet(this.unitIndex);
  4120. }, 0);
  4121. },
  4122. addToolFun(itemTaskIndex) {
  4123. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4124. itemTaskIndex
  4125. ].toolChoose.push({
  4126. tool: [],
  4127. toolDetail: "",
  4128. toolType: 0,
  4129. askCount: 1,
  4130. askTitle: "",
  4131. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4132. });
  4133. },
  4134. addTaskBorder() {
  4135. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4136. task: "",
  4137. taskDetail: "",
  4138. chapterData: [],
  4139. toolText: "",
  4140. toolChoose: [
  4141. {
  4142. tool: [],
  4143. toolDetail: "",
  4144. toolType: 0,
  4145. askCount: 1,
  4146. askTitle: "",
  4147. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4148. },
  4149. ],
  4150. isShowTools: false,
  4151. askCount: 1,
  4152. isFold: 0,
  4153. askTitle: "",
  4154. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4155. checkJson: [{ checkCount: [], checkPerent: [] }],
  4156. homeworkList: [],
  4157. });
  4158. },
  4159. add(e, i) {
  4160. var el = e.currentTarget;
  4161. el.getElementsByTagName("input")[0].click();
  4162. },
  4163. fold(i, e, type) {
  4164. var a = e.currentTarget.parentElement.parentElement;
  4165. var b = e.currentTarget.parentElement;
  4166. if (type == 1) {
  4167. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4168. a.className += " smallTaskBorder";
  4169. b.className += " funBlockTop";
  4170. } else {
  4171. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4172. a.className = "taskBorder";
  4173. b.className = "funBlock";
  4174. }
  4175. console.log(e);
  4176. },
  4177. deleteHomeworkBox(unitIndex, index, i) {
  4178. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4179. this.taskCount
  4180. ].homeworkList.splice(i, 1);
  4181. },
  4182. getStudent() {
  4183. let params = {
  4184. oid: this.oid,
  4185. cu: "",
  4186. cn: this.searchPeople,
  4187. };
  4188. this.ajax
  4189. .get(this.$store.state.api + "selectStudentAdd", params)
  4190. .then((res) => {
  4191. this.studentJuri = res.data[0];
  4192. })
  4193. .catch((err) => {
  4194. this.isLoading = false;
  4195. console.error(err);
  4196. });
  4197. },
  4198. getTeacher() {
  4199. let params = {
  4200. oid:
  4201. this.org && this.org != "undefined" && this.org != "null"
  4202. ? this.org
  4203. : this.oid,
  4204. cu: "",
  4205. cn: this.searchTN,
  4206. };
  4207. this.ajax
  4208. .get(
  4209. this.$store.state.api +
  4210. (this.org && this.org != "undefined" && this.org != "null"
  4211. ? "selectTeacherAddOrg"
  4212. : "selectTeacherAdd"),
  4213. params
  4214. )
  4215. .then((res) => {
  4216. let teacherJuri = res.data[0];
  4217. for (var i = 0; i < teacherJuri.length; i++) {
  4218. if (teacherJuri[i].userid == this.userid) {
  4219. teacherJuri.splice(i, 1);
  4220. break;
  4221. }
  4222. }
  4223. this.teacherJuri = teacherJuri;
  4224. })
  4225. .catch((err) => {
  4226. console.error(err);
  4227. });
  4228. },
  4229. searchStudent() {
  4230. this.getStudent();
  4231. },
  4232. //获取班级列表
  4233. getClass() {
  4234. let params = {
  4235. oid: this.oid,
  4236. cn: this.classSearch,
  4237. };
  4238. this.ajax
  4239. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  4240. .then((res) => {
  4241. if (!this.grade.length) {
  4242. this.grade = res.data[0];
  4243. }
  4244. this.grade2 = res.data[0];
  4245. this.classJuri = res.data[0];
  4246. })
  4247. .catch((err) => {
  4248. this.isLoading = false;
  4249. console.error(err);
  4250. });
  4251. },
  4252. getChapterData(e, i, j, ic, type) {
  4253. e.stopPropagation();
  4254. this.updataC = true;
  4255. this.icc = ic;
  4256. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4257. console.log("还不能下载图片喔");
  4258. }
  4259. },
  4260. deleteChapterData(e, i, j, ic, taskI) {
  4261. e.stopPropagation();
  4262. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4263. },
  4264. updataVideoT(e, i, j, ic) {
  4265. e.stopPropagation();
  4266. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4267. ic
  4268. ].name = e.target.value;
  4269. },
  4270. upCd(e, i, j, taskCount, ic) {
  4271. e.stopPropagation();
  4272. if (ic == 0) {
  4273. return;
  4274. }
  4275. var a =
  4276. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
  4277. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4278. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4279. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4280. this.$forceUpdate();
  4281. },
  4282. downCd(e, i, j, taskCount, ic) {
  4283. e.stopPropagation();
  4284. if (
  4285. ic ==
  4286. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4287. 1
  4288. ) {
  4289. return;
  4290. }
  4291. var a =
  4292. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
  4293. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4294. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4295. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4296. this.$forceUpdate();
  4297. },
  4298. addWork() {
  4299. let cPan = 1;
  4300. for (var i = 0; i < this.unitJson.length; i++) {
  4301. for (
  4302. var j = 0;
  4303. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4304. j++
  4305. ) {
  4306. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4307. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4308. if (
  4309. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4310. ) {
  4311. for (
  4312. var z = 0;
  4313. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4314. z++
  4315. ) {
  4316. if (
  4317. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4318. .length
  4319. ) {
  4320. this.$message.error("请把工具添加完整");
  4321. cPan = 2;
  4322. break;
  4323. }
  4324. }
  4325. }
  4326. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4327. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4328. i
  4329. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4330. return ele.value != "";
  4331. });
  4332. }
  4333. }
  4334. }
  4335. if (cPan == 2) {
  4336. this.steps--;
  4337. return;
  4338. }
  4339. for (var i = 0; i < this.unitJson.length; i++) {
  4340. delete this.unitJson[i].isUpdate;
  4341. }
  4342. let params = [
  4343. {
  4344. uid: this.userid,
  4345. title: this.courseName.replace(/%/g, "%25"),
  4346. brief: this.courseText.replace(/%/g, "%25"),
  4347. cover:
  4348. this.cover.length > 0
  4349. ? JSON.stringify(this.cover)
  4350. : JSON.stringify([
  4351. {
  4352. name: "noBanner.jpg",
  4353. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4354. uid: 1656409780264,
  4355. status: "success",
  4356. },
  4357. ]),
  4358. evaId: this.evalua,
  4359. astudent:
  4360. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4361. see: this.isTeacherSee == true ? 1 : 0,
  4362. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4363. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4364. courseType: JSON.stringify(this.courseTypeId),
  4365. ateacher:
  4366. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4367. },
  4368. ];
  4369. this.ajax
  4370. .post(this.$store.state.api + "addWorkNew2", params)
  4371. .then((res) => {
  4372. console.log(this.steps);
  4373. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4374. this.$message({
  4375. message: "新增成功",
  4376. type: "success",
  4377. });
  4378. }
  4379. this.number = res.data.ordernumber;
  4380. this.courseId = res.data.courseId;
  4381. this.cid = res.data.courseId;
  4382. this.courseUserid = this.userid;
  4383. this.islogin = true;
  4384. })
  4385. .catch((err) => {
  4386. this.$message.error("网络不佳");
  4387. console.error(err);
  4388. });
  4389. },
  4390. goCourse() {
  4391. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  4392. },
  4393. updateWork2() {
  4394. let _unitIndex = this.unitIndex;
  4395. let cPan = 1;
  4396. for (
  4397. var j = 0;
  4398. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4399. j++
  4400. ) {
  4401. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4402. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4403. j
  4404. ].proVisible2 = false;
  4405. if (
  4406. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4407. .length > 1
  4408. ) {
  4409. for (
  4410. var z = 0;
  4411. z <
  4412. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4413. .length;
  4414. z++
  4415. ) {
  4416. if (
  4417. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  4418. z
  4419. ].tool.length
  4420. ) {
  4421. this.$message.error("请把工具添加完整");
  4422. cPan = 2;
  4423. break;
  4424. }
  4425. }
  4426. }
  4427. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4428. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4429. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4430. (ele) => {
  4431. return ele.value != "";
  4432. }
  4433. );
  4434. }
  4435. }
  4436. if (cPan == 2) {
  4437. this.steps--;
  4438. return;
  4439. }
  4440. let params = [
  4441. {
  4442. cid: this.cid,
  4443. chapters: JSON.stringify(this.unitJson),
  4444. uid: this.userid,
  4445. unitIndex: _unitIndex,
  4446. },
  4447. ];
  4448. this.ajax
  4449. .post(this.$store.state.api + "updateWorkNew4", params)
  4450. .then((res) => {
  4451. this.$message({
  4452. message: "修改成功",
  4453. type: "success",
  4454. });
  4455. this.courseId = this.cid;
  4456. })
  4457. .catch((err) => {
  4458. this.$message.error("网络不佳");
  4459. console.error(err);
  4460. });
  4461. },
  4462. updateWork() {
  4463. let cPan = 1;
  4464. for (var i = 0; i < this.unitJson.length; i++) {
  4465. for (
  4466. var j = 0;
  4467. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4468. j++
  4469. ) {
  4470. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4471. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4472. if (
  4473. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4474. ) {
  4475. for (
  4476. var z = 0;
  4477. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4478. z++
  4479. ) {
  4480. if (
  4481. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4482. .length
  4483. ) {
  4484. this.$message.error("请把工具添加完整");
  4485. cPan = 2;
  4486. break;
  4487. }
  4488. }
  4489. }
  4490. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4491. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4492. i
  4493. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4494. return ele.value != "";
  4495. });
  4496. }
  4497. }
  4498. }
  4499. if (cPan == 2) {
  4500. this.steps--;
  4501. return;
  4502. }
  4503. for (var i = 0; i < this.unitJson.length; i++) {
  4504. delete this.unitJson[i].isUpdate;
  4505. }
  4506. let params = [
  4507. {
  4508. cid: this.cid,
  4509. title: this.courseName.replace(/%/g, "%25"),
  4510. brief: this.courseText.replace(/%/g, "%25"),
  4511. cover:
  4512. this.cover.length > 0
  4513. ? JSON.stringify(this.cover)
  4514. : JSON.stringify([
  4515. {
  4516. name: "noBanner.jpg",
  4517. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4518. uid: 1656409780264,
  4519. status: "success",
  4520. },
  4521. ]),
  4522. evaId: this.evalua,
  4523. astudent:
  4524. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4525. see: this.isTeacherSee == true ? 1 : 0,
  4526. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4527. template: this.myWord != "undefined" ? this.myWord : [],
  4528. uid: this.userid,
  4529. courseType: JSON.stringify(this.courseTypeId),
  4530. ateacher:
  4531. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4532. },
  4533. ];
  4534. this.ajax
  4535. .post(this.$store.state.api + "updateWorkNew2", params)
  4536. .then((res) => {
  4537. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4538. if (this.cidType == 1) {
  4539. this.$message({
  4540. message: "修改成功",
  4541. type: "success",
  4542. });
  4543. } else {
  4544. this.$message({
  4545. message: "新增成功",
  4546. type: "success",
  4547. });
  4548. }
  4549. }
  4550. this.number = this.nbOrder;
  4551. this.courseId = this.cid;
  4552. })
  4553. .catch((err) => {
  4554. this.$message.error("网络不佳");
  4555. console.error(err);
  4556. });
  4557. },
  4558. guid() {
  4559. var _num,
  4560. i,
  4561. _guid = "";
  4562. for (i = 0; i < 32; i++) {
  4563. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4564. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4565. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4566. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4567. _guid += "-";
  4568. }
  4569. }
  4570. return _guid;
  4571. },
  4572. insertWord() {
  4573. this.dialogVisible1 = true;
  4574. this.updateBoolean2 = false;
  4575. this.tTitle = "";
  4576. this.tdetail = "";
  4577. },
  4578. addWord() {
  4579. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  4580. name: this.tTitle,
  4581. content: this.tdetail,
  4582. uid: this.guid(),
  4583. });
  4584. this.dialogVisible1 = false;
  4585. },
  4586. upWord() { },
  4587. selectWord(uid, i, c) {
  4588. this.dialogVisible1 = true;
  4589. this.updateBoolean2 = true;
  4590. if (
  4591. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  4592. ) {
  4593. this.tTitle =
  4594. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  4595. this.tdetail =
  4596. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  4597. }
  4598. },
  4599. isAddPP() {
  4600. if (this.checkboxList.length > 0) {
  4601. this.$message({
  4602. message: "添加成功",
  4603. type: "success",
  4604. });
  4605. this.dialogVisible3 = false;
  4606. } else {
  4607. this.$message({
  4608. message: "请添加课程成员",
  4609. type: "error",
  4610. });
  4611. }
  4612. },
  4613. isAddClass() {
  4614. this.dialogVisibleClass = false;
  4615. },
  4616. isAddPPTeacher() {
  4617. this.dialogVisibleMember = false;
  4618. this.setMan();
  4619. },
  4620. getTemplate() {
  4621. this.ajax
  4622. .get(this.$store.state.api + "getCourseTemplateT", "")
  4623. .then((res) => {
  4624. this.templateArray = res.data[0];
  4625. this.$forceUpdate();
  4626. })
  4627. .catch((err) => { });
  4628. },
  4629. clearChoose() {
  4630. this.clearArray.splice(this.templateC.id, 1);
  4631. this.dialogVisible2 = false;
  4632. },
  4633. clearAttText() {
  4634. this.AttText = {
  4635. title: "",
  4636. text: "",
  4637. };
  4638. this.dialogVisible6 = false;
  4639. },
  4640. clearLine() {
  4641. this.line = "";
  4642. this.dialogVisible7 = false;
  4643. },
  4644. checkTemplate(res) {
  4645. let _this = this;
  4646. _this
  4647. .$confirm("确定选择此模板吗?", "提示", {
  4648. confirmButtonText: "确定",
  4649. cancelButtonText: "取消",
  4650. type: "warning",
  4651. })
  4652. .then(() => {
  4653. _this.unitJson = JSON.parse(res.chapters);
  4654. _this.steps++;
  4655. setTimeout(() => {
  4656. this.checkEva(this.checkId);
  4657. }, 1000);
  4658. })
  4659. .catch(() => {
  4660. return;
  4661. });
  4662. },
  4663. checkTemplate1(w) {
  4664. this.steps++;
  4665. },
  4666. checkTemplate2() {
  4667. let _this = this;
  4668. _this
  4669. .$confirm("确定选择空模板吗?", "提示", {
  4670. confirmButtonText: "确定",
  4671. cancelButtonText: "取消",
  4672. type: "warning",
  4673. })
  4674. .then(() => {
  4675. _this.unitIndex = 0;
  4676. _this.unitJson = [
  4677. {
  4678. dyName: "", //单元标题
  4679. chapterInfo: [
  4680. {
  4681. isread: false,
  4682. chapterid: this.guid(),
  4683. title: "",
  4684. courseName: "",
  4685. taskJson: [
  4686. {
  4687. task: "",
  4688. taskDetail: "",
  4689. chapterData: [],
  4690. toolText: "",
  4691. toolChoose: [
  4692. {
  4693. tool: [],
  4694. toolDetail: "",
  4695. toolType: 0,
  4696. askCount: 1,
  4697. askTitle: "",
  4698. askJson: [
  4699. { askstitle: "", askItem: 1, checkList: [] },
  4700. ],
  4701. },
  4702. ],
  4703. isShowTools: false,
  4704. askCount: 1,
  4705. isFold: 0,
  4706. askTitle: "",
  4707. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4708. checkJson: [{ checkCount: [], checkPerent: [] }],
  4709. homeworkList: [],
  4710. },
  4711. ],
  4712. itemCount: 1,
  4713. fileList1: [],
  4714. video: [],
  4715. testData: [],
  4716. pData: [],
  4717. templateArray: [],
  4718. },
  4719. ],
  4720. },
  4721. ];
  4722. this.steps++;
  4723. this.updateWork();
  4724. })
  4725. .catch(() => {
  4726. return;
  4727. });
  4728. },
  4729. checkTemplate3() {
  4730. let _this = this;
  4731. _this
  4732. .$confirm("确定选择简易模式吗?", "提示", {
  4733. confirmButtonText: "确定",
  4734. cancelButtonText: "取消",
  4735. type: "warning",
  4736. })
  4737. .then(() => {
  4738. _this.unitIndex = 0;
  4739. _this.unitJson = [
  4740. {
  4741. dyName: "", //单元标题
  4742. easy: 1,
  4743. chapterInfo: [
  4744. {
  4745. isread: false,
  4746. chapterid: this.guid(),
  4747. title: "",
  4748. courseName: "",
  4749. taskJson: [
  4750. {
  4751. task: "",
  4752. taskDetail: "",
  4753. chapterData: [],
  4754. toolText: "",
  4755. toolChoose: [
  4756. {
  4757. tool: [],
  4758. toolDetail: "",
  4759. toolType: 0,
  4760. askCount: 1,
  4761. askTitle: "",
  4762. askJson: [
  4763. { askstitle: "", askItem: 1, checkList: [] },
  4764. ],
  4765. },
  4766. ],
  4767. isShowTools: false,
  4768. askCount: 1,
  4769. isFold: 0,
  4770. askTitle: "",
  4771. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4772. checkJson: [{ checkCount: [], checkPerent: [] }],
  4773. homeworkList: [],
  4774. },
  4775. ],
  4776. itemCount: 1,
  4777. fileList1: [],
  4778. video: [],
  4779. testData: [],
  4780. pData: [],
  4781. templateArray: [],
  4782. },
  4783. ],
  4784. },
  4785. ];
  4786. this.steps++;
  4787. this.updateWork();
  4788. })
  4789. .catch(() => {
  4790. return;
  4791. });
  4792. },
  4793. wordNext() {
  4794. this.dialogVisible2 = false;
  4795. },
  4796. isAddOrUpdateAttText() {
  4797. if (this.AttTextType == 0) {
  4798. this.addAttTextMessage();
  4799. } else {
  4800. this.updateAttText();
  4801. }
  4802. },
  4803. isAddOrUpdateLine() {
  4804. if (!this.lineTitle) {
  4805. this.$message.error("请填写链接标题");
  4806. return;
  4807. }
  4808. if (this.lineType == 0) {
  4809. this.addLine();
  4810. } else {
  4811. this.updateLine();
  4812. }
  4813. },
  4814. addAttTextMessage() {
  4815. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4816. this.taskCount
  4817. ].chapterData.push({
  4818. name: this.AttText.title,
  4819. url: this.AttText.text,
  4820. type: 6,
  4821. });
  4822. this.imgChange1(null, null, 6, this.taskCount);
  4823. this.dialogVisible6 = false;
  4824. },
  4825. selectAttText(itemTaskIndex, i) {
  4826. this.AttText.title =
  4827. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4828. itemTaskIndex
  4829. ].chapterData[i].name;
  4830. this.AttText.text =
  4831. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4832. itemTaskIndex
  4833. ].chapterData[i].url;
  4834. this.taskCount = itemTaskIndex;
  4835. this.AttTextIndex = i;
  4836. this.AttTextType = 1;
  4837. this.dialogVisible6 = true;
  4838. },
  4839. updateAttText() {
  4840. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4841. this.taskCount
  4842. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  4843. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4844. this.taskCount
  4845. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  4846. this.dialogVisible6 = false;
  4847. },
  4848. addLine() {
  4849. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4850. this.lineCount
  4851. ].chapterData.push({
  4852. name: "链接",
  4853. title: this.lineTitle,
  4854. url: this.line,
  4855. type: 8,
  4856. });
  4857. this.imgChange1(null, null, 8, this.lineCount);
  4858. this.dialogVisible7 = false;
  4859. },
  4860. selectLine(itemTaskIndex, i) {
  4861. this.line =
  4862. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4863. itemTaskIndex
  4864. ].chapterData[i].url;
  4865. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4866. itemTaskIndex
  4867. ].chapterData[i].title
  4868. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4869. .chapterData[i].title
  4870. : "";
  4871. this.taskCount = itemTaskIndex;
  4872. this.lineCount = i;
  4873. this.lineType = 1;
  4874. this.dialogVisible7 = true;
  4875. },
  4876. updateLine() {
  4877. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4878. this.taskCount
  4879. ].chapterData[this.lineCount].url = this.line;
  4880. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4881. this.taskCount
  4882. ].chapterData[this.lineCount].title = this.lineTitle;
  4883. this.dialogVisible7 = false;
  4884. },
  4885. addPP() {
  4886. this.dialogVisible3 = true;
  4887. },
  4888. goTo(path) {
  4889. this.$router.push(path);
  4890. },
  4891. openTools(itemTaskIndex, i, toolIndex) {
  4892. this.toolIndex = toolIndex;
  4893. this.taskCount = itemTaskIndex;
  4894. if (i == 4) {
  4895. if (toolIndex == null) {
  4896. var a =
  4897. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4898. .chapterData;
  4899. for (var i = 0; i < a.length; i++) {
  4900. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  4901. this.askJson =
  4902. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4903. itemTaskIndex
  4904. ].chapterData[i].askJson;
  4905. }
  4906. }
  4907. } else {
  4908. this.askJson = JSON.parse(
  4909. JSON.stringify(
  4910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4911. itemTaskIndex
  4912. ].toolChoose[toolIndex]
  4913. )
  4914. );
  4915. }
  4916. this.dialogVisible5 = true;
  4917. } else if (i == 45) {
  4918. if (
  4919. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4920. .toolChoose[toolIndex].testJson
  4921. ) {
  4922. this.testJson = JSON.parse(
  4923. JSON.stringify(
  4924. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4925. itemTaskIndex
  4926. ].toolChoose[toolIndex].testJson
  4927. )
  4928. );
  4929. } else {
  4930. var testJson = {
  4931. testCount: 1,
  4932. testTitle: "",
  4933. testJson: [
  4934. {
  4935. teststitle: "",
  4936. testItem: 1,
  4937. checkList: [],
  4938. timuList: [],
  4939. answer: [],
  4940. type: "1",
  4941. },
  4942. ],
  4943. };
  4944. this.testJson = testJson;
  4945. }
  4946. this.dialogVisibleChoice = true;
  4947. } else if (i == 47) {
  4948. if (
  4949. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4950. .toolChoose[toolIndex].sentenceList
  4951. ) {
  4952. this.sentenceList = JSON.parse(
  4953. JSON.stringify(
  4954. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4955. itemTaskIndex
  4956. ].toolChoose[toolIndex].sentenceList
  4957. )
  4958. );
  4959. } else {
  4960. var sentenceList = [
  4961. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  4962. ];
  4963. this.sentenceList = sentenceList;
  4964. }
  4965. this.dialogVisibleSentence = true;
  4966. } else if (i == 48) {
  4967. if (
  4968. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4969. .toolChoose[toolIndex].tableJson
  4970. ) {
  4971. this.tableJson = JSON.parse(
  4972. JSON.stringify(
  4973. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4974. itemTaskIndex
  4975. ].toolChoose[toolIndex].tableJson
  4976. )
  4977. );
  4978. } else {
  4979. var tableJson = { text: "" };
  4980. this.tableJson = tableJson;
  4981. }
  4982. this.dialogVisibleTable = true;
  4983. } else if (i == 52) {
  4984. if (
  4985. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4986. .toolChoose[toolIndex].wordJson
  4987. ) {
  4988. this.wordJson = JSON.parse(
  4989. JSON.stringify(
  4990. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4991. itemTaskIndex
  4992. ].toolChoose[toolIndex].wordJson
  4993. )
  4994. );
  4995. } else {
  4996. var wordJson = { text: "" };
  4997. this.wordJson = wordJson;
  4998. }
  4999. this.dialogVisibleWord = true;
  5000. } else if (i == 50) {
  5001. if (
  5002. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5003. .toolChoose[toolIndex].uploadJson
  5004. ) {
  5005. this.uploadJson = JSON.parse(
  5006. JSON.stringify(
  5007. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5008. itemTaskIndex
  5009. ].toolChoose[toolIndex].uploadJson
  5010. )
  5011. );
  5012. } else {
  5013. var uploadJson = [];
  5014. this.uploadJson = uploadJson;
  5015. }
  5016. this.dialogVisibleMoreUpload = true;
  5017. } else if (i == 10) {
  5018. if (
  5019. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5020. .toolChoose[toolIndex].preTime
  5021. ) {
  5022. this.preTime = JSON.parse(
  5023. JSON.stringify(
  5024. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5025. itemTaskIndex
  5026. ].toolChoose[toolIndex].preTime
  5027. )
  5028. );
  5029. } else {
  5030. var preTime = 0;
  5031. this.preTime = preTime;
  5032. }
  5033. this.dialogVisiblePreTime = true;
  5034. } else if (i == 49) {
  5035. if (
  5036. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5037. .toolChoose[toolIndex].groupJson
  5038. ) {
  5039. this.groupJson = JSON.parse(
  5040. JSON.stringify(
  5041. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5042. itemTaskIndex
  5043. ].toolChoose[toolIndex].groupJson
  5044. )
  5045. );
  5046. } else {
  5047. var groupJson = {
  5048. group: [{ name: "第1组" }],
  5049. number: undefined,
  5050. islock: 1,
  5051. };
  5052. this.groupJson = groupJson;
  5053. }
  5054. this.dialogVisibleGroup = true;
  5055. } else if (i == 15) {
  5056. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5057. itemTaskIndex
  5058. ].toolChoose[toolIndex].answerQ
  5059. ? JSON.parse(
  5060. JSON.stringify(
  5061. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5062. itemTaskIndex
  5063. ].toolChoose[toolIndex].answerQ
  5064. )
  5065. )
  5066. : "";
  5067. this.dialogVisible8 = true;
  5068. } else if (i == 40) {
  5069. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5070. itemTaskIndex
  5071. ].toolChoose[toolIndex].rateJson
  5072. ? JSON.parse(
  5073. JSON.stringify(
  5074. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5075. itemTaskIndex
  5076. ].toolChoose[toolIndex].rateJson
  5077. )
  5078. )
  5079. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5080. this.selectSteps = 1;
  5081. this.dialogVisibleRate = true;
  5082. } else if (i == 42) {
  5083. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5084. itemTaskIndex
  5085. ].toolChoose[toolIndex].answerQ
  5086. ? JSON.parse(
  5087. JSON.stringify(
  5088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5089. itemTaskIndex
  5090. ].toolChoose[toolIndex].answerQ
  5091. )
  5092. )
  5093. : "";
  5094. this.dialogVisibleMp3 = true;
  5095. } else if (i == 41) {
  5096. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5097. itemTaskIndex
  5098. ].toolChoose[toolIndex].selectJson
  5099. ? JSON.parse(
  5100. JSON.stringify(
  5101. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5102. itemTaskIndex
  5103. ].toolChoose[toolIndex].selectJson
  5104. )
  5105. )
  5106. : { url: "", select: [], answer: [] };
  5107. this.selectSteps = 1;
  5108. this.dialogVisibleSelect = true;
  5109. } else if (i == 3) {
  5110. window.parent.postMessage(
  5111. {
  5112. tools: "3y",
  5113. cid: this.cid,
  5114. stage: this.unitIndex,
  5115. task: itemTaskIndex,
  5116. tool: toolIndex,
  5117. },
  5118. "*"
  5119. );
  5120. } else if (i == 1) {
  5121. window.parent.postMessage(
  5122. {
  5123. tools: "1y",
  5124. cid: this.cid,
  5125. stage: this.unitIndex,
  5126. task: itemTaskIndex,
  5127. tool: toolIndex,
  5128. },
  5129. "*"
  5130. );
  5131. }
  5132. },
  5133. chapAddTools(i) {
  5134. if (this.chapTools[0].tools.length == 0) {
  5135. this.chapTools[0].tools.push(i);
  5136. } else {
  5137. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5138. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5139. } else {
  5140. this.chapTools[0].tools.push(i);
  5141. }
  5142. }
  5143. this.$forceUpdate();
  5144. },
  5145. addChaptersDataTools() {
  5146. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5147. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5148. this.chapCount
  5149. ].chapterData.push({
  5150. name: this.chapTools[0].toolDetail,
  5151. url: this.chapTools[0].tools,
  5152. type: 7,
  5153. askJson: this.askJson,
  5154. });
  5155. } else {
  5156. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5157. this.chapCount
  5158. ].chapterData.push({
  5159. name: this.chapTools[0].toolDetail,
  5160. url: this.chapTools[0].tools,
  5161. type: 7,
  5162. });
  5163. }
  5164. this.imgChange1(null, null, 7, this.chapCount);
  5165. this.dialogVisible4 = false;
  5166. },
  5167. addTools(i, itemTaskIndex, toolIndex) {
  5168. // if (
  5169. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5170. // .toolChoose[toolIndex].tool.length == 0
  5171. // ) {
  5172. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5173. // itemTaskIndex
  5174. // ].toolChoose[toolIndex].tool.push(i);
  5175. // } else {
  5176. // if (
  5177. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5178. // itemTaskIndex
  5179. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5180. // ) {
  5181. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5182. // itemTaskIndex
  5183. // ].toolChoose[toolIndex].tool.splice(
  5184. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5185. // itemTaskIndex
  5186. // ].toolChoose[toolIndex].tool.indexOf(i),
  5187. // 1
  5188. // );
  5189. // } else {
  5190. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5191. // itemTaskIndex
  5192. // ].toolChoose[toolIndex].tool.push(i);
  5193. // }
  5194. // console.log(
  5195. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5196. // .toolChoose[toolIndex].tool
  5197. // );
  5198. // }
  5199. if (i == 4) {
  5200. if (
  5201. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5202. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5203. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5204. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5206. .toolChoose[toolIndex].askJson[0].checkList < 2
  5207. ) {
  5208. this.openTools(itemTaskIndex, 4, toolIndex);
  5209. // this.$message({
  5210. // message: "请填写完整问卷内容",
  5211. // type: "error",
  5212. // });
  5213. return;
  5214. }
  5215. }
  5216. if (i == 45) {
  5217. if (
  5218. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5219. .toolChoose[toolIndex].testJson ||
  5220. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5221. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5223. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5224. ) {
  5225. this.openTools(itemTaskIndex, 45, toolIndex);
  5226. // this.$message({
  5227. // message: "请填写完整问卷内容",
  5228. // type: "error",
  5229. // });
  5230. return;
  5231. }
  5232. }
  5233. if (i == 47) {
  5234. if (
  5235. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5236. .toolChoose[toolIndex].sentenceList ||
  5237. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5238. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5239. ) {
  5240. this.openTools(itemTaskIndex, 47, toolIndex);
  5241. return;
  5242. }
  5243. }
  5244. // if (i == 48) {
  5245. // if (
  5246. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5247. // .toolChoose[toolIndex].tableJson
  5248. // ) {
  5249. // this.openTools(itemTaskIndex, 48, toolIndex);
  5250. // return;
  5251. // }
  5252. // }
  5253. if (i == 50) {
  5254. if (
  5255. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5256. .toolChoose[toolIndex].uploadJson
  5257. ) {
  5258. this.openTools(itemTaskIndex, 50, toolIndex);
  5259. return;
  5260. }
  5261. }
  5262. if (i == 49) {
  5263. if (
  5264. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5265. .toolChoose[toolIndex].groupJson
  5266. ) {
  5267. this.openTools(itemTaskIndex, 49, toolIndex);
  5268. return;
  5269. }
  5270. }
  5271. if (i == 15) {
  5272. if (
  5273. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5274. .toolChoose[toolIndex].answerQ ||
  5275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5276. .toolChoose[toolIndex].answerQ == ""
  5277. ) {
  5278. this.openTools(itemTaskIndex, 15, toolIndex);
  5279. // this.$message({
  5280. // message: "请填写问答内容",
  5281. // type: "error",
  5282. // });
  5283. return;
  5284. }
  5285. }
  5286. if (i == 40) {
  5287. if (
  5288. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5289. .toolChoose[toolIndex].rateJson ||
  5290. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5291. .toolChoose[toolIndex].rateJson.length
  5292. ) {
  5293. this.openTools(itemTaskIndex, 40, toolIndex);
  5294. return;
  5295. }
  5296. }
  5297. if (i == 41) {
  5298. if (
  5299. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5300. .toolChoose[toolIndex].selectJson ||
  5301. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5302. .toolChoose[toolIndex].selectJson.url == "" ||
  5303. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5304. .toolChoose[toolIndex].selectJson.select.length ||
  5305. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5306. .toolChoose[toolIndex].selectJson.answer.length
  5307. ) {
  5308. this.openTools(itemTaskIndex, 41, toolIndex);
  5309. return;
  5310. }
  5311. }
  5312. if (i == 42) {
  5313. if (
  5314. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5315. .toolChoose[toolIndex].answerQ ||
  5316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5317. .toolChoose[toolIndex].answerQ == ""
  5318. ) {
  5319. this.openTools(itemTaskIndex, 42, toolIndex);
  5320. return;
  5321. }
  5322. }
  5323. if (
  5324. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5325. .toolChoose[toolIndex].tool.length > 0
  5326. ) {
  5327. if (
  5328. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5329. itemTaskIndex
  5330. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5331. ) {
  5332. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5333. itemTaskIndex
  5334. ].toolChoose[toolIndex].tool.splice(
  5335. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5336. itemTaskIndex
  5337. ].toolChoose[toolIndex].tool.indexOf(i),
  5338. 1
  5339. );
  5340. } else {
  5341. // this.$message({
  5342. // message: "每个工具只能添加一个",
  5343. // type: "error",
  5344. // });
  5345. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5346. itemTaskIndex
  5347. ].toolChoose[toolIndex].tool = [];
  5348. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5349. itemTaskIndex
  5350. ].toolChoose[toolIndex].tool.push(i);
  5351. }
  5352. } else {
  5353. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5354. itemTaskIndex
  5355. ].toolChoose[toolIndex].tool.push(i);
  5356. }
  5357. this.$forceUpdate();
  5358. },
  5359. addAskList() {
  5360. this.askJson.askJson.push({
  5361. askstitle: "",
  5362. askItem: 1,
  5363. checkList: [],
  5364. });
  5365. this.askJson.askCount++;
  5366. },
  5367. addTestList() {
  5368. this.testJson.testJson.push({
  5369. teststitle: "",
  5370. testItem: 1,
  5371. checkList: [],
  5372. timuList: [],
  5373. answer: [],
  5374. type: "1",
  5375. });
  5376. this.testJson.testCount++;
  5377. },
  5378. deleteAskList(index) {
  5379. this.askJson.askJson.splice(index, 1);
  5380. this.askJson.askCount--;
  5381. },
  5382. deleteTestList(index) {
  5383. this.testJson.testJson.splice(index, 1);
  5384. this.testJson.testCount--;
  5385. },
  5386. addcheckList(json) {
  5387. json.checkList.length++;
  5388. json.askItem++;
  5389. },
  5390. deletecheckList(json) {
  5391. json.checkList.length--;
  5392. json.askItem--;
  5393. },
  5394. addTcheckList(json) {
  5395. json.checkList.length++;
  5396. json.testItem++;
  5397. },
  5398. deleteTcheckList(json) {
  5399. json.checkList.length--;
  5400. json.testItem--;
  5401. },
  5402. checkTestType(type, json) {
  5403. json.type = type;
  5404. json.answer = [];
  5405. },
  5406. addSelectList(json) {
  5407. json.select.push("");
  5408. json.answer.push("");
  5409. },
  5410. deleteSelectList(json) {
  5411. // json.select.length--;
  5412. // json.answer.length--;
  5413. json.select.splice(json.select.length - 1, 1);
  5414. json.answer.splice(json.answer.length - 1, 1);
  5415. },
  5416. addAsk() {
  5417. if (this.askJson.askTitle === "") {
  5418. this.$message.error("标题不能为空!");
  5419. return;
  5420. }
  5421. var aj = this.askJson.askJson;
  5422. var b = 1;
  5423. for (var i = 0; i < aj.length; i++) {
  5424. if (aj[i].askstitle === "") {
  5425. var a = 1;
  5426. for (let index = 0; index < aj[i].askItem; index++) {
  5427. const element = aj[i].checkList[index]
  5428. ? aj[i].checkList[index]
  5429. : "";
  5430. if (element != "") {
  5431. b++;
  5432. this.$message.error("填写了选项,题目不能为空!");
  5433. return;
  5434. } else {
  5435. a++;
  5436. }
  5437. }
  5438. if (b == 1) {
  5439. this.$message.error("至少填写一个问题");
  5440. return;
  5441. }
  5442. } else if (aj[i].askstitle != "") {
  5443. for (let index = 0; index < aj[i].askItem; index++) {
  5444. const element = aj[i].checkList[index]
  5445. ? aj[i].checkList[index]
  5446. : "";
  5447. var index = 0;
  5448. for (var z = 0; z < aj[i].checkList.length; z++) {
  5449. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5450. if (checkC != "") {
  5451. index++;
  5452. } else {
  5453. this.$message.error("选项不能为空!");
  5454. return;
  5455. }
  5456. }
  5457. b++;
  5458. if (index < 2) {
  5459. this.$message.error("填写了的题目,选项至少要有两项!");
  5460. return;
  5461. }
  5462. }
  5463. }
  5464. }
  5465. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  5466. var elc = el.checkList.filter((element) => {
  5467. return element != "";
  5468. });
  5469. return el.askstitle != "" && elc.length != 0;
  5470. });
  5471. if (!this.dialogVisible4) {
  5472. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5473. this.taskCount
  5474. ].toolChoose[this.toolIndex] = this.askJson;
  5475. }
  5476. this.dialogVisible5 = false;
  5477. if (
  5478. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5479. .toolChoose[this.toolIndex].tool != 4
  5480. ) {
  5481. this.addTools(4, this.taskCount, this.toolIndex);
  5482. }
  5483. },
  5484. addTest() {
  5485. // if (this.testJson.testTitle === "") {
  5486. // this.$message.error("标题不能为空!");
  5487. // return;
  5488. // }
  5489. var aj = this.testJson.testJson;
  5490. var b = 1;
  5491. for (var i = 0; i < aj.length; i++) {
  5492. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  5493. var a = 1;
  5494. for (let index = 0; index < aj[i].testItem; index++) {
  5495. const element = aj[i].checkList[index]
  5496. ? aj[i].checkList[index]
  5497. : "";
  5498. if (element != "") {
  5499. b++;
  5500. this.$message.error("填写了选项,题目不能为空!");
  5501. return;
  5502. } else {
  5503. a++;
  5504. }
  5505. }
  5506. if (b == 1) {
  5507. this.$message.error("至少填写一个问题");
  5508. return;
  5509. }
  5510. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  5511. for (let index = 0; index < aj[i].testItem; index++) {
  5512. const element = aj[i].checkList[index]
  5513. ? aj[i].checkList[index]
  5514. : "";
  5515. var index = 0;
  5516. for (var z = 0; z < aj[i].checkList.length; z++) {
  5517. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5518. if (checkC != "") {
  5519. index++;
  5520. } else {
  5521. this.$message.error("选项不能为空!");
  5522. return;
  5523. }
  5524. }
  5525. b++;
  5526. if (index < 2) {
  5527. this.$message.error("填写了的题目,选项至少要有两项!");
  5528. return;
  5529. }
  5530. if (
  5531. (aj[i].type == "2" && !aj[i].answer.length) ||
  5532. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  5533. ) {
  5534. this.$message.error("有题目未选择答案请选择答案");
  5535. return;
  5536. }
  5537. }
  5538. }
  5539. }
  5540. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  5541. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  5542. var elc = el.checkList.filter((element) => {
  5543. return element != "";
  5544. });
  5545. return (
  5546. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  5547. );
  5548. });
  5549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5550. this.taskCount
  5551. ].toolChoose[this.toolIndex].testJson = isTestJson;
  5552. this.dialogVisibleChoice = false;
  5553. if (
  5554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5555. .toolChoose[this.toolIndex].tool != 45
  5556. ) {
  5557. this.addTools(45, this.taskCount, this.toolIndex);
  5558. }
  5559. },
  5560. addAnswer() {
  5561. if (this.answerQ == "") {
  5562. this.$message.error("请输入您想要问的问题");
  5563. return;
  5564. }
  5565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5566. this.taskCount
  5567. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  5568. this.dialogVisible8 = false;
  5569. if (
  5570. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5571. .toolChoose[this.toolIndex].tool != 15
  5572. ) {
  5573. this.addTools(15, this.taskCount, this.toolIndex);
  5574. }
  5575. },
  5576. addMp3Answer() {
  5577. if (this.answerQ == "") {
  5578. this.$message.error("请输入您想要回答的问题");
  5579. return;
  5580. }
  5581. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5582. this.taskCount
  5583. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  5584. this.dialogVisibleMp3 = false;
  5585. },
  5586. addRateAnswer() {
  5587. var a = 1;
  5588. for (var i = 0; i < this.rateJson.length; i++) {
  5589. if (this.rateJson[i].value == "") {
  5590. a = 2;
  5591. break;
  5592. }
  5593. }
  5594. if (a == 2) {
  5595. this.$message.error("请把评价信息填写完整");
  5596. return;
  5597. }
  5598. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5599. this.taskCount
  5600. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  5601. this.dialogVisibleRate = false;
  5602. if (
  5603. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5604. .toolChoose[this.toolIndex].tool != 40
  5605. ) {
  5606. this.addTools(40, this.taskCount, this.toolIndex);
  5607. }
  5608. },
  5609. addSelectAnswer() {
  5610. if (this.selectJson.url == "") {
  5611. this.$message.error("请上传题目");
  5612. return;
  5613. }
  5614. if (!this.selectJson.select.length) {
  5615. this.$message.error("请添加选项");
  5616. return;
  5617. }
  5618. if (!this.selectJson.answer.length) {
  5619. this.$message.error("请设置答案");
  5620. return;
  5621. }
  5622. var a = 1;
  5623. for (var i = 0; i < this.selectJson.answer.length; i++) {
  5624. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  5625. a = 2;
  5626. }
  5627. }
  5628. if (a == 2) {
  5629. this.$message.error("请设置答案");
  5630. return;
  5631. }
  5632. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5633. this.taskCount
  5634. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  5635. this.dialogVisibleSelect = false;
  5636. if (
  5637. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5638. .toolChoose[this.toolIndex].tool != 41
  5639. ) {
  5640. this.addTools(41, this.taskCount, this.toolIndex);
  5641. }
  5642. },
  5643. nextSelectSteps() {
  5644. if (this.selectJson.url == "") {
  5645. this.$message.error("请上传题目");
  5646. return;
  5647. }
  5648. if (!this.selectJson.select.length) {
  5649. this.$message.error("请添加选项");
  5650. return;
  5651. }
  5652. var a = 1;
  5653. for (var i = 0; i < this.selectJson.select.length; i++) {
  5654. if (!this.selectJson.select[i]) {
  5655. a = 2;
  5656. }
  5657. }
  5658. if (a == 2) {
  5659. this.$message.error("添加的选项不能为空");
  5660. return;
  5661. }
  5662. this.selectSteps++;
  5663. },
  5664. selectCourseDetail() {
  5665. if (this.cid == "" || this.cid == undefined) {
  5666. console.log("这是新增课程");
  5667. this.selectAllType();
  5668. } else {
  5669. this.cidType = 1;
  5670. let params = {
  5671. cid: this.cid,
  5672. };
  5673. this.ajax
  5674. .get(this.$store.state.api + "select_course_detail", params)
  5675. .then((res) => {
  5676. this.loading = true;
  5677. this.unitJson = JSON.parse(res.data[0][0].chapters);
  5678. for (var j = 0; j < this.unitJson.length; j++) {
  5679. for (
  5680. var k = 0;
  5681. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  5682. k++
  5683. ) {
  5684. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  5685. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  5686. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  5687. : [];
  5688. let _chapterData = [];
  5689. for (
  5690. var c = 0;
  5691. c <
  5692. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  5693. .length;
  5694. c++
  5695. ) {
  5696. if (
  5697. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  5698. ) {
  5699. _chapterData.push(
  5700. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  5701. );
  5702. }
  5703. }
  5704. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  5705. _chapterData;
  5706. }
  5707. }
  5708. this.$forceUpdate();
  5709. this.courseName = res.data[0][0].title;
  5710. this.courseText = res.data[0][0].brief;
  5711. this.evalua = res.data[0][0].evaId;
  5712. this.cover = JSON.parse(res.data[0][0].cover);
  5713. this.noneBtnImg = this.cover.length >= 1;
  5714. // this.checkboxList =
  5715. // res.data[0][0].course_student.length > 0
  5716. // ? JSON.parse(res.data[0][0].course_student)
  5717. // : [];
  5718. this.checkboxList2 = res.data[0][0].juri
  5719. ? res.data[0][0].juri.split(",")
  5720. : [];
  5721. this.checkboxList3 = res.data[0][0].course_teacher
  5722. ? res.data[0][0].course_teacher.split(",")
  5723. : [];
  5724. // this.isTeacherSee =
  5725. // res.data[0][0].is_teacher_look == 0 ? true : false;
  5726. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  5727. this.myWord = res.data[0][0].template;
  5728. this.templateC.id = "123";
  5729. this.courseUserid = res.data[0][0].userid;
  5730. this.nbOrder = res.data[0][0].ordernumber;
  5731. this.courseTypeId = [];
  5732. for (var i = 0; i < res.data[1].length; i++) {
  5733. this.courseTypeId.push(res.data[1][i].typeid);
  5734. }
  5735. console.log(this.courseTypeId);
  5736. // if (this.timer) clearInterval(this.timer);
  5737. if (this.timer) clearTimeout(this.timer);
  5738. this.timer = null;
  5739. // this.timer = setInterval(() => {
  5740. this.seleteCourseUpdate();
  5741. this.setMan();
  5742. this.selectAllType();
  5743. // }, 5000);
  5744. this.$forceUpdate();
  5745. setTimeout(() => {
  5746. this.checkEva(this.evalua);
  5747. }, 0);
  5748. })
  5749. .catch((err) => {
  5750. console.error(err);
  5751. });
  5752. }
  5753. },
  5754. seleteCourseUpdate() {
  5755. let params = {
  5756. cid: this.cid,
  5757. };
  5758. this.ajax
  5759. .get(this.$store.state.api + "select_course_detail", params)
  5760. .then((res) => {
  5761. // console.log(this.unitJson);
  5762. let unitJson = JSON.parse(res.data[0][0].chapters);
  5763. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  5764. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  5765. let _unitJson = [];
  5766. let _chapAarry = [];
  5767. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  5768. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  5769. let index = 1;
  5770. let chapindex;
  5771. if (_unitJson2.length > unitJson.length) {
  5772. for (let c = 0; c < _unitJson2.length; c++) {
  5773. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  5774. }
  5775. for (let j = 0; j < unitJson.length; j++) {
  5776. let count = 0;
  5777. for (let k = 0; k < _unitJson2.length; k++) {
  5778. if (
  5779. unitJson[j].chapterInfo[0].chapterid ==
  5780. _unitJson2[k].chapterInfo[0].chapterid
  5781. ) {
  5782. count++;
  5783. _chapAarry.splice(
  5784. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  5785. 1
  5786. );
  5787. _unitJson.push(unitJson[j]);
  5788. break;
  5789. }
  5790. }
  5791. // if(count === 0){
  5792. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  5793. // }
  5794. }
  5795. for (let k = 0; k < _unitJson2.length; k++) {
  5796. if (_unitJson2[k].isUpdate == 1) {
  5797. _chapAarry.splice(
  5798. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  5799. 1
  5800. );
  5801. _unitJson.push(_unitJson2[k]);
  5802. }
  5803. }
  5804. console.log(_chapAarry);
  5805. for (let d = 0; d < _unitJson2.length; d++) {
  5806. if (
  5807. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  5808. ) {
  5809. if (_unitIndex == d) {
  5810. index = 2;
  5811. }
  5812. chapindex = d;
  5813. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  5814. }
  5815. }
  5816. } else {
  5817. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  5818. }
  5819. for (let i = 0; i < unitJson.length; i++) {
  5820. if (
  5821. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  5822. _unitJson[i].chapterInfo[0].chapterid !=
  5823. unitJson[i].chapterInfo[0].chapterid
  5824. ) {
  5825. if (i == _unitJson.length - 1) {
  5826. // this.unitIndex++
  5827. _unitIndex2++;
  5828. }
  5829. _unitJson.splice(i, 0, unitJson[i]);
  5830. } else if (i > _unitJson.length - 1) {
  5831. _unitJson.push(unitJson[i]);
  5832. } else if (
  5833. _unitJson[i].chapterInfo[0].chapterid ==
  5834. unitJson[i].chapterInfo[0].chapterid
  5835. ) {
  5836. _unitJson[i] = unitJson[i];
  5837. }
  5838. // if (i == _unitIndex) {
  5839. // continue;
  5840. // } else
  5841. }
  5842. if (_chapAarry.length && index != 2) {
  5843. if (chapindex < _unitIndex) {
  5844. this.isDelete = 2;
  5845. // this.unitIndex--;
  5846. _unitIndex2--;
  5847. } else if (
  5848. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  5849. _unitJson[_unitIndex].chapterInfo[0].chapterid
  5850. ) {
  5851. this.isDelete = 2;
  5852. for (let n = 0; n < _unitJson.length; n++) {
  5853. if (
  5854. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  5855. _unitJson[n].chapterInfo[0].chapterid
  5856. ) {
  5857. // this.unitIndex = n;
  5858. _unitIndex2 = n;
  5859. _unitJson[n] = _unitJson2[_unitIndex];
  5860. break;
  5861. }
  5862. }
  5863. }
  5864. } else if (index != 2) {
  5865. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  5866. _unitJson2[_unitIndex];
  5867. for (
  5868. var ci = 0;
  5869. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  5870. ci++
  5871. ) {
  5872. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  5873. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  5874. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  5875. .toolChoose
  5876. : [];
  5877. let _chapterData = [];
  5878. for (
  5879. var c = 0;
  5880. c <
  5881. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  5882. .length;
  5883. c++
  5884. ) {
  5885. if (
  5886. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  5887. .chapterData[c]
  5888. ) {
  5889. _chapterData.push(
  5890. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  5891. .chapterData[c]
  5892. );
  5893. }
  5894. }
  5895. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  5896. _chapterData;
  5897. }
  5898. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  5899. }
  5900. if (index == 1) {
  5901. this.unitJson = _unitJson;
  5902. this.$forceUpdate();
  5903. setTimeout(() => {
  5904. if (this.unitIndex != _unitIndex2) {
  5905. this.isDelete = 2;
  5906. this.unitIndex = _unitIndex2;
  5907. }
  5908. }, 0);
  5909. this.timer = setTimeout(() => {
  5910. this.seleteCourseUpdate();
  5911. }, 1000);
  5912. } else if (index == 2) {
  5913. let _this = this;
  5914. _this
  5915. .$confirm(
  5916. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  5917. "提示",
  5918. {
  5919. confirmButtonText: "需要",
  5920. cancelButtonText: "取消",
  5921. type: "warning",
  5922. }
  5923. )
  5924. .then(() => {
  5925. if (_this.time()) {
  5926. _this.restoreWork(
  5927. _chapAarry[0],
  5928. _unitJson,
  5929. chapindex,
  5930. _unitJson2,
  5931. _unitIndex2
  5932. );
  5933. }
  5934. })
  5935. .catch(() => {
  5936. _this.unitJson = _unitJson;
  5937. _this.$forceUpdate();
  5938. setTimeout(() => {
  5939. if (this.unitIndex != _unitIndex2) {
  5940. this.isDelete = 2;
  5941. this.unitIndex = _unitIndex2;
  5942. }
  5943. }, 0);
  5944. _this.timer = setTimeout(() => {
  5945. _this.seleteCourseUpdate();
  5946. }, 1000);
  5947. });
  5948. }
  5949. })
  5950. .catch((err) => {
  5951. console.error(err);
  5952. });
  5953. },
  5954. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  5955. let params = [
  5956. {
  5957. cid: this.cid,
  5958. chapters: JSON.stringify(this.unitJson),
  5959. uid: this.userid,
  5960. chapid: chapid,
  5961. },
  5962. ];
  5963. this.ajax
  5964. .post(this.$store.state.api + "restoreWork", params)
  5965. .then((res) => {
  5966. this.$message({
  5967. message: "恢复成功",
  5968. type: "success",
  5969. });
  5970. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  5971. this.unitJson = unitJson;
  5972. this.$forceUpdate();
  5973. setTimeout(() => {
  5974. if (this.unitIndex != unitIndex2) {
  5975. this.isDelete = 2;
  5976. this.unitIndex = unitIndex2;
  5977. }
  5978. }, 0);
  5979. this.timer = setTimeout(() => {
  5980. this.seleteCourseUpdate();
  5981. }, 1000);
  5982. })
  5983. .catch((err) => {
  5984. this.$message.error("网络不佳");
  5985. console.error(err);
  5986. });
  5987. },
  5988. getTypeName() {
  5989. console.log(this.courseTypeId);
  5990. this.$forceUpdate();
  5991. },
  5992. selectAllType() {
  5993. let params = {
  5994. org: this.org && this.org != "" ? this.org : "",
  5995. oid: this.oid && this.oid != "" ? this.oid : "",
  5996. };
  5997. this.ajax
  5998. .get(this.$store.state.api + "selectAllType", params)
  5999. .then((res) => {
  6000. this.CourseType = res.data;
  6001. let _courseTypeId = [];
  6002. for (var i = 0; i < res.data[0].length; i++) {
  6003. if (!this.cid) {
  6004. this.courseTypeId[res.data[0][i].id] = [];
  6005. }
  6006. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  6007. // }
  6008. this.CourseTypeJson[res.data[0][i].id] = [];
  6009. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6010. if (res.data[0][i].name == "栏目") {
  6011. this.CourseType[0][i].name = "主题";
  6012. }
  6013. }
  6014. if (res.data[2].length == 0 && res.data[3].length == 0) {
  6015. for (var j = 0; j < res.data[1].length; j++) {
  6016. if (
  6017. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  6018. _courseTypeId.indexOf(res.data[1][j].id) == -1
  6019. ) {
  6020. _courseTypeId.push(res.data[1][j].id);
  6021. }
  6022. if (res.data[0][i].id == res.data[1][j].pid) {
  6023. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6024. }
  6025. }
  6026. } else {
  6027. if (res.data[2].length > 0) {
  6028. for (var j = 0; j < res.data[2].length; j++) {
  6029. if (
  6030. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  6031. _courseTypeId.indexOf(res.data[2][j].id) == -1
  6032. ) {
  6033. _courseTypeId.push(res.data[2][j].id);
  6034. }
  6035. if (res.data[0][i].id == res.data[2][j].pid) {
  6036. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  6037. }
  6038. }
  6039. }
  6040. if (res.data[3].length > 0) {
  6041. for (var j = 0; j < res.data[3].length; j++) {
  6042. if (
  6043. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  6044. _courseTypeId.indexOf(res.data[3][j].id) == -1
  6045. ) {
  6046. _courseTypeId.push(res.data[3][j].id);
  6047. }
  6048. if (res.data[0][i].id == res.data[3][j].pid) {
  6049. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  6050. }
  6051. }
  6052. }
  6053. }
  6054. }
  6055. this.courseTypeId = _courseTypeId;
  6056. })
  6057. .catch((err) => {
  6058. console.error(err);
  6059. });
  6060. },
  6061. selectType() {
  6062. this.ajax
  6063. .get(this.$store.state.api + "selectType")
  6064. .then((res) => {
  6065. this.CourseType = res.data;
  6066. for (var i = 0; i < res.data[0].length; i++) {
  6067. if (!this.cid) {
  6068. this.courseTypeId[res.data[0][i].id] = "";
  6069. }
  6070. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6071. if (res.data[0][i].name == "栏目") {
  6072. this.CourseType[0][i].name = "主题";
  6073. }
  6074. }
  6075. for (var j = 0; j < res.data[1].length; j++) {
  6076. if (res.data[0][i].id == res.data[1][j].pid) {
  6077. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6078. this.CourseTypeJson[res.data[0][i].id] = [];
  6079. }
  6080. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6081. }
  6082. }
  6083. }
  6084. this.selectTypeByOid();
  6085. this.selectTypeByOrg();
  6086. })
  6087. .catch((err) => {
  6088. console.error(err);
  6089. });
  6090. },
  6091. selectTypeByOid() {
  6092. let params = {
  6093. oid: this.oid,
  6094. };
  6095. this.ajax
  6096. .get(this.$store.state.api + "selectTypeByOid", params)
  6097. .then((res) => {
  6098. for (var i = 0; i < res.data[0].length; i++) {
  6099. for (var j = 0; j < res.data[1].length; j++) {
  6100. if (res.data[0][i].id == res.data[1][j].pid) {
  6101. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6102. this.CourseTypeJson[res.data[0][i].id] = [];
  6103. }
  6104. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6105. }
  6106. }
  6107. }
  6108. })
  6109. .catch((err) => {
  6110. console.error(err);
  6111. });
  6112. },
  6113. selectTypeByOrg() {
  6114. let params = {
  6115. oid: this.org,
  6116. };
  6117. this.ajax
  6118. .get(this.$store.state.api + "selectTypeByOrg", params)
  6119. .then((res) => {
  6120. for (var i = 0; i < res.data[0].length; i++) {
  6121. for (var j = 0; j < res.data[1].length; j++) {
  6122. if (res.data[0][i].id == res.data[1][j].pid) {
  6123. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6124. this.CourseTypeJson[res.data[0][i].id] = [];
  6125. }
  6126. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6127. }
  6128. }
  6129. }
  6130. this.$forceUpdate();
  6131. })
  6132. .catch((err) => {
  6133. console.error(err);
  6134. });
  6135. },
  6136. OtherMb(type) {
  6137. this.typeMode = type;
  6138. setTimeout(() => {
  6139. this.checkEva(this.checkId);
  6140. }, 0);
  6141. },
  6142. openMember() {
  6143. this.searchTN = "";
  6144. this.getTeacher();
  6145. this.dialogVisibleMember = true;
  6146. },
  6147. checkEva(id, type) {
  6148. this.selectEva();
  6149. if (this.evalua != id && type == 2) {
  6150. this.$message.success('导入成功')
  6151. }
  6152. this.evalua = id;
  6153. this.checkId = id;
  6154. if (this.evalua != "") {
  6155. for (var i = 0; i < this.evaJuri.length; i++) {
  6156. if (this.evalua == this.evaJuri[i].id) {
  6157. this.eTitle = this.evaJuri[i].title;
  6158. this.eJson = JSON.parse(this.evaJuri[i].content);
  6159. }
  6160. }
  6161. this.data.data = [];
  6162. this.$forceUpdate();
  6163. setTimeout(() => {
  6164. this.setMindData();
  6165. }, 500);
  6166. }
  6167. },
  6168. deleteEva() {
  6169. let _this = this;
  6170. _this
  6171. .$confirm("确定删除此目标吗?", "提示", {
  6172. confirmButtonText: "确定",
  6173. cancelButtonText: "取消",
  6174. type: "warning",
  6175. })
  6176. .then(() => {
  6177. _this.evalua = '';
  6178. _this.checkId = '';
  6179. let _unitJson = _this.unitJson
  6180. for(var i = 0;i<_unitJson.length;i++){
  6181. let _task = _unitJson[i].chapterInfo[0].taskJson
  6182. for(var j = 0;j<_task.length;j++){
  6183. let _eList = _task[j].eList
  6184. for(var k = 0;k<_eList.length;k++){
  6185. delete _eList[k].target
  6186. }
  6187. }
  6188. }
  6189. _this.$forceUpdate();
  6190. if(_this.cid){
  6191. _this.updateWork();
  6192. }
  6193. })
  6194. .catch(() => {
  6195. return;
  6196. });
  6197. },
  6198. selectEva() {
  6199. let params = {
  6200. oid: this.oid,
  6201. };
  6202. this.ajax
  6203. .get(this.$store.state.api + "selectAllEvaluation", params)
  6204. .then((res) => {
  6205. this.evaJuri = res.data[0];
  6206. })
  6207. .catch((err) => {
  6208. console.error(err);
  6209. });
  6210. },
  6211. setMindData() {
  6212. let targetArray = [];
  6213. this.data.data = [];
  6214. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  6215. let _eJson = Object.keys(this.eJson);
  6216. let _e = this.eJson;
  6217. for (let i = 0; i < _eJson.length; i++) {
  6218. let element = _e[_eJson[i]];
  6219. this.data.data.push({
  6220. id: element.id,
  6221. parentid: "root",
  6222. topic: element.name,
  6223. });
  6224. // targetArray.push({
  6225. // id: element.id,
  6226. // parentid: "root",
  6227. // name: element.name,
  6228. // });
  6229. targetArray.push({
  6230. value: element.name,
  6231. label: element.name,
  6232. children: [],
  6233. });
  6234. let _eJsonc = Object.keys(element.child);
  6235. let _e2 = element.child;
  6236. for (let j = 0; j < _eJsonc.length; j++) {
  6237. let _ec = _e2[_eJsonc[j]];
  6238. this.data.data.push({
  6239. id: _ec.id,
  6240. parentid: element.id,
  6241. topic: _ec.name,
  6242. });
  6243. // targetArray.push({
  6244. // id: _ec.id,
  6245. // parentid: element.id,
  6246. // name: _ec.name,
  6247. // });
  6248. targetArray[i].children.push({
  6249. value: _ec.name,
  6250. label: _ec.name,
  6251. children: [],
  6252. });
  6253. let _eJsonz = Object.keys(_ec.child);
  6254. let _e3 = _ec.child;
  6255. for (let z = 0; z < _eJsonz.length; z++) {
  6256. let _ez = _e3[_eJsonz[z]];
  6257. this.data.data.push({
  6258. id: _ez.id,
  6259. parentid: _ec.id,
  6260. topic: _ez.name,
  6261. });
  6262. // targetArray.push({
  6263. // id: _ez.id,
  6264. // parentid: _ec.id,
  6265. // name: _ez.name,
  6266. // });
  6267. targetArray[i].children[j].children.push({
  6268. value: _ez.name,
  6269. label: _ez.name,
  6270. });
  6271. }
  6272. }
  6273. }
  6274. this.targetArray = targetArray;
  6275. this.$forceUpdate();
  6276. },
  6277. /*添加评价 */
  6278. addEList(index, tIndex) {
  6279. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  6280. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  6281. value: "",
  6282. detail: "",
  6283. score: 5,
  6284. })
  6285. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  6286. { value: "", detail: "", score: 5 },
  6287. ]);
  6288. this.$forceUpdate();
  6289. },
  6290. forceUpdate() {
  6291. this.$forceUpdate();
  6292. },
  6293. deletEList(index, tIndex, eIndex) {
  6294. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  6295. eIndex,
  6296. 1
  6297. );
  6298. this.$forceUpdate();
  6299. },
  6300. getChoosePic(t) {
  6301. this.chooseType = t;
  6302. this.getAllBanner();
  6303. },
  6304. getAllBanner() {
  6305. this.sysPicVisible = true;
  6306. let params = {
  6307. t: this.chooseType,
  6308. };
  6309. this.ajax
  6310. .get(this.$store.state.api + "selectAllBanner", params)
  6311. .then((res) => {
  6312. this.sysPic = res.data[0];
  6313. })
  6314. .catch((err) => {
  6315. console.error(err);
  6316. });
  6317. },
  6318. // getClass() {
  6319. // let params = {
  6320. // oid: this.oid,
  6321. // };
  6322. // this.ajax
  6323. // .get(this.$store.state.api + "selectClassBySchool", params)
  6324. // .then((res) => {
  6325. // this.classJuri = res.data[0];
  6326. // })
  6327. // .catch((err) => {
  6328. // console.error(err);
  6329. // });
  6330. // },
  6331. deleteSysPic() {
  6332. this.cover = [];
  6333. this.isSysPic = false;
  6334. },
  6335. deleteSelectPic() {
  6336. this.selectJson.url = "";
  6337. },
  6338. setEListStar() {
  6339. this.$forceUpdate();
  6340. },
  6341. deletRateList(i) {
  6342. this.rateJson.splice(i, 1);
  6343. },
  6344. addRateList() {
  6345. this.rateJson.push({ detail: "", score: 5, value: "" });
  6346. },
  6347. addSt() {
  6348. this.sentenceList.push({
  6349. sentenceTitle: "",
  6350. addSentence: [],
  6351. rightAnswer: [],
  6352. });
  6353. },
  6354. addSen(i) {
  6355. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  6356. // this.isPushTitleList.push(this.sentenceTitle);
  6357. this.sentenceList[i].sentenceTitle = "";
  6358. },
  6359. setRightAnswer(s, i, j) {
  6360. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  6361. this.sentenceList[i].rightAnswer.push(s);
  6362. }
  6363. },
  6364. returnCard(r, i, j) {
  6365. this.sentenceList[i].rightAnswer.splice(j, 1);
  6366. },
  6367. addSentenceTool() {
  6368. for (var i = 0; i < this.sentenceList.length; i++) {
  6369. if (this.sentenceList[i].rightAnswer.length == 0) {
  6370. this.$message.error("请将信息填写完整!");
  6371. return;
  6372. }
  6373. if (
  6374. this.sentenceList[i].addSentence.length !=
  6375. this.sentenceList[i].rightAnswer.length
  6376. ) {
  6377. this.$message.error("请将信息填写完整!");
  6378. return;
  6379. }
  6380. }
  6381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6382. this.taskCount
  6383. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  6384. this.sentenceList = [
  6385. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6386. ];
  6387. this.dialogVisibleSentence = false;
  6388. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6389. // itemTaskIndex
  6390. // ].toolChoose[toolIndex].tool = [];
  6391. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6392. // itemTaskIndex
  6393. // ].toolChoose[toolIndex].tool.push(i);
  6394. if (
  6395. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6396. .toolChoose[this.toolIndex].tool != 47
  6397. ) {
  6398. this.addTools(47, this.taskCount, this.toolIndex);
  6399. }
  6400. },
  6401. addTableJson() {
  6402. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  6403. // this.$message.error("请将信息填写完整!");
  6404. // return;
  6405. // }
  6406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6407. this.taskCount
  6408. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  6409. this.tableJson = [{ text: "" }];
  6410. this.dialogVisibleTable = false;
  6411. if (
  6412. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6413. .toolChoose[this.toolIndex].tool != 48
  6414. ) {
  6415. this.addTools(48, this.taskCount, this.toolIndex);
  6416. }
  6417. },
  6418. addWordJson() {
  6419. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6420. this.taskCount
  6421. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  6422. this.wordJson = [{ text: "" }];
  6423. this.dialogVisibleWord = false;
  6424. if (
  6425. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6426. .toolChoose[this.toolIndex].tool != 52
  6427. ) {
  6428. this.addTools(52, this.taskCount, this.toolIndex);
  6429. }
  6430. },
  6431. addMoreUpload() {
  6432. if (this.uploadJson.length == 0) {
  6433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6434. this.taskCount
  6435. ].toolChoose[this.toolIndex].uploadJson = [];
  6436. } else {
  6437. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6438. this.taskCount
  6439. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  6440. }
  6441. this.uploadJson = [];
  6442. this.dialogVisibleMoreUpload = false;
  6443. if (
  6444. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6445. .toolChoose[this.toolIndex].tool != 50
  6446. ) {
  6447. this.addTools(50, this.taskCount, this.toolIndex);
  6448. }
  6449. },
  6450. addPreTime() {
  6451. if (this.preTime == 0) {
  6452. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6453. this.taskCount
  6454. ].toolChoose[this.toolIndex].preTime = 0;
  6455. } else {
  6456. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6457. this.taskCount
  6458. ].toolChoose[this.toolIndex].preTime = this.preTime;
  6459. }
  6460. this.preTime = 0;
  6461. this.dialogVisiblePreTime = false;
  6462. if (
  6463. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6464. .toolChoose[this.toolIndex].tool != 10
  6465. ) {
  6466. this.addTools(10, this.taskCount, this.toolIndex);
  6467. }
  6468. },
  6469. goToTask(i) {
  6470. document.getElementsByClassName("rightBox")[0].scrollTop =
  6471. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  6472. this.isClickColor = i + 1;
  6473. },
  6474. taskMove(type, index) {
  6475. if (type == 1) {
  6476. if (index > 0) {
  6477. let a = JSON.parse(
  6478. JSON.stringify(
  6479. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  6480. )
  6481. );
  6482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  6483. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  6484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  6485. }
  6486. } else {
  6487. if (
  6488. index <
  6489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  6490. ) {
  6491. let a = JSON.parse(
  6492. JSON.stringify(
  6493. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  6494. )
  6495. );
  6496. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  6497. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  6498. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  6499. }
  6500. }
  6501. this.$forceUpdate();
  6502. },
  6503. addGroup(i) {
  6504. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  6505. this.groupJson.group.push({
  6506. name: "第" + (this.groupJson.group.length + 1) + "组",
  6507. });
  6508. },
  6509. deleteGroup(i) {
  6510. this.groupJson.group.splice(i, 1);
  6511. },
  6512. addGroupJson() {
  6513. for (var i = 0; i < this.groupJson.group.length; i++) {
  6514. if (!this.groupJson.group[i].name) {
  6515. this.$message.error("请将信息填写完整!");
  6516. return;
  6517. }
  6518. }
  6519. if (!this.groupJson.number) {
  6520. this.$message.error("请将信息填写完整!");
  6521. return;
  6522. }
  6523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6524. this.taskCount
  6525. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  6526. JSON.stringify(this.groupJson)
  6527. );
  6528. this.dialogVisibleGroup = false;
  6529. this.groupJson = {};
  6530. if (
  6531. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6532. .toolChoose[this.toolIndex].tool != 49
  6533. ) {
  6534. this.addTools(49, this.taskCount, this.toolIndex);
  6535. }
  6536. },
  6537. updateTime(preTime) {
  6538. this.preTime = preTime;
  6539. },
  6540. },
  6541. beforeDestroy() {
  6542. clearTimeout(this.timer);
  6543. this.timer = null;
  6544. clearInterval(this.timer2);
  6545. this.timer2 = null;
  6546. },
  6547. beforeRouteLeave(to, from, next) {
  6548. clearTimeout(this.timer);
  6549. this.timer = null;
  6550. clearInterval(this.timer2);
  6551. this.timer2 = null;
  6552. next();
  6553. },
  6554. created() {
  6555. this.getStudent();
  6556. this.getTeacher();
  6557. this.getClass();
  6558. this.getTemplate();
  6559. // this.selectType();
  6560. this.selectEva();
  6561. this.loading = false;
  6562. this.timer2 = setInterval(() => {
  6563. this.selectEva();
  6564. }, 5000);
  6565. setTimeout(() => {
  6566. this.selectCourseDetail();
  6567. }, 500);
  6568. },
  6569. };
  6570. </script>
  6571. <style scoped>
  6572. @media screen and (max-width: 1280px) {
  6573. .mbCss {
  6574. flex-direction: column !important;
  6575. }
  6576. .pjCss {
  6577. width: 100% !important;
  6578. }
  6579. .evaCss {
  6580. width: 100% !important;
  6581. }
  6582. }
  6583. .dialog_diy>>>.el-dialog__header {
  6584. background: #3c3c3c !important;
  6585. padding: 15px 20px;
  6586. }
  6587. .dialog_diy>>>.el-dialog__title {
  6588. color: #fff;
  6589. }
  6590. .dialog_diy>>>.el-dialog__headerbtn {
  6591. top: 19px;
  6592. }
  6593. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  6594. color: #fff;
  6595. }
  6596. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  6597. color: #fff;
  6598. }
  6599. .dialog_diy>>>.el-dialog__body,
  6600. .dialog_diy>>>.el-dialog__footer {
  6601. background: #fafafa;
  6602. }
  6603. .dialog_diy3>>>.el-dialog__body,
  6604. .dialog_diy3>>>.el-dialog__footer {
  6605. background: #eee !important;
  6606. }
  6607. .dialog_diy3>>>.el-dialog__body {
  6608. padding: 20px 20px;
  6609. }
  6610. .left {
  6611. border-right: 1px solid rgb(60, 94, 143);
  6612. display: flex;
  6613. flex-direction: column;
  6614. align-items: center;
  6615. min-height: 600px;
  6616. width: 385px;
  6617. height: 80%;
  6618. }
  6619. .tips {
  6620. color: rgb(128, 128, 128);
  6621. font-size: 12px;
  6622. width: 270px;
  6623. margin: 40px;
  6624. }
  6625. .pb_content {
  6626. height: 100% !important;
  6627. /* margin: 0 20px 0 20px; */
  6628. }
  6629. .pb_content_body {
  6630. width: 100% !important;
  6631. height: 100%;
  6632. }
  6633. .info_solid {
  6634. width: 270px;
  6635. height: 30px;
  6636. border-left: 1px solid #bdbdbd;
  6637. margin: 10px 0px 10px 30px;
  6638. }
  6639. .info_steps {
  6640. width: 270px;
  6641. font-size: 0.875rem;
  6642. display: flex;
  6643. align-items: center;
  6644. }
  6645. .info_steps span:nth-child(1) {
  6646. width: 30px;
  6647. height: 30px;
  6648. background: rgba(0, 0, 0, 0.38);
  6649. display: block;
  6650. color: #fff;
  6651. border-radius: 40px;
  6652. text-align: center;
  6653. line-height: 30px;
  6654. }
  6655. .steps_active {
  6656. background: #3d67bc !important;
  6657. }
  6658. .info_steps span:nth-child(2) {
  6659. margin-left: 5px;
  6660. }
  6661. .right {
  6662. height: 100%;
  6663. width: 100%;
  6664. display: flex;
  6665. overflow: hidden;
  6666. }
  6667. .basic_box {
  6668. margin: 0 auto;
  6669. position: relative;
  6670. padding: 0 20px 0 20px;
  6671. }
  6672. .basic_box_success {
  6673. width: 100%;
  6674. min-height: 455px;
  6675. padding: 50px 0;
  6676. position: relative;
  6677. text-align: center;
  6678. border-bottom: 1px solid #bfbfbf;
  6679. box-sizing: border-box;
  6680. display: flex;
  6681. align-items: center;
  6682. flex-direction: column;
  6683. justify-content: center;
  6684. }
  6685. .info_title {
  6686. font-size: 1.5em;
  6687. margin-right: 25px;
  6688. /* margin: 20px 30px 20px 30px; */
  6689. }
  6690. .bInfo_title {
  6691. text-align: left;
  6692. margin: 10px 0;
  6693. }
  6694. .small_title {
  6695. font-size: 14px;
  6696. line-height: 40px;
  6697. }
  6698. .chapter_beizhu {
  6699. font-size: 12px;
  6700. font-weight: bold;
  6701. float: right;
  6702. color: rgb(128, 128, 128);
  6703. margin-top: 5px;
  6704. }
  6705. .chapter_uploadBox1 {
  6706. text-align: left;
  6707. background-color: rgb(242, 242, 242);
  6708. width: 100%;
  6709. height: 67px;
  6710. padding: 0px 15px;
  6711. border-radius: 8px;
  6712. overflow: hidden;
  6713. font-size: 16px;
  6714. box-sizing: border-box;
  6715. position: relative;
  6716. }
  6717. .chapter_add {
  6718. width: 100%;
  6719. height: 32px;
  6720. margin-top: 15px;
  6721. cursor: pointer;
  6722. }
  6723. .chapter_add_l {
  6724. margin-left: 5px;
  6725. width: 30px;
  6726. height: 30px;
  6727. float: left;
  6728. border: 1px solid #aaa;
  6729. color: #aaa;
  6730. border-radius: 50%;
  6731. font-size: 25px;
  6732. text-align: center;
  6733. }
  6734. .chapter_add_r {
  6735. font-size: 18px;
  6736. height: 40px;
  6737. line-height: 30px;
  6738. text-indent: 10px;
  6739. color: #aaa;
  6740. }
  6741. .chapter_add_r span {
  6742. font-size: 12px;
  6743. color: rgb(204, 204, 204);
  6744. }
  6745. .chapter_add_input {
  6746. display: none;
  6747. }
  6748. .line {
  6749. width: 85%;
  6750. margin: 0 auto;
  6751. border-top: 1px solid #e5e5e5;
  6752. margin-top: 20px;
  6753. }
  6754. .info_btnBox {
  6755. width: 100%;
  6756. display: flex;
  6757. justify-content: space-evenly;
  6758. margin: 10px 0 10px 0;
  6759. }
  6760. .info_btn,
  6761. .teacherWord {
  6762. color: #fff;
  6763. background-color: #0f7eff;
  6764. padding: 8px 24px;
  6765. font-size: 0.9375rem;
  6766. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  6767. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  6768. min-width: 64px;
  6769. font-weight: 500;
  6770. border-radius: 4px;
  6771. box-sizing: border-box;
  6772. border: none;
  6773. cursor: pointer;
  6774. }
  6775. .teacherWord {
  6776. width: 105px !important;
  6777. text-align: center !important;
  6778. line-height: 36px !important;
  6779. padding: 0 !important;
  6780. font-size: 14px !important;
  6781. margin: 10px 0 !important;
  6782. }
  6783. .wordTeacher {
  6784. display: flex;
  6785. flex-direction: column;
  6786. width: 20%;
  6787. text-align: center;
  6788. font-size: 14px;
  6789. margin: 30px 30px 0 10px;
  6790. background: #fff;
  6791. position: relative;
  6792. border-radius: 5px;
  6793. padding: 25px 0px;
  6794. }
  6795. .wordPic {
  6796. margin: 0 auto;
  6797. width: 60px;
  6798. height: 60px;
  6799. cursor: pointer;
  6800. }
  6801. .deleteWord {
  6802. width: 22px;
  6803. height: 22px;
  6804. position: absolute;
  6805. right: 5px;
  6806. top: -15px;
  6807. cursor: pointer;
  6808. display: none;
  6809. z-index: 999;
  6810. }
  6811. .wordPic>img,
  6812. .deleteWord>img,
  6813. .addToolImg>img {
  6814. width: 100%;
  6815. height: 100%;
  6816. }
  6817. .info_btn:hover {
  6818. background-color: #4f7cd5 !important;
  6819. }
  6820. .cru_selectBox {
  6821. display: flex;
  6822. margin: 24px 0 10px;
  6823. flex-wrap: nowrap;
  6824. white-space: nowrap;
  6825. overflow: auto;
  6826. position: relative;
  6827. height: 47px;
  6828. }
  6829. .cru_selectBox::-webkit-scrollbar {
  6830. /*滚动条整体样式*/
  6831. width: 6px;
  6832. /*高宽分别对应横竖滚动条的尺寸*/
  6833. height: 6px;
  6834. }
  6835. /*定义滚动条轨道 内阴影+圆角*/
  6836. .cru_selectBox::-webkit-scrollbar-track {
  6837. border-radius: 10px;
  6838. background-color: #eee;
  6839. }
  6840. /*定义滑块 内阴影+圆角*/
  6841. .cru_selectBox::-webkit-scrollbar-thumb {
  6842. border-radius: 10px;
  6843. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  6844. background-color: rgba(0, 0, 0, 0.1);
  6845. }
  6846. .cru_line {
  6847. position: absolute;
  6848. bottom: 0px;
  6849. transition: all 0.5s;
  6850. left: 0px;
  6851. width: 125px;
  6852. margin-left: -25px;
  6853. }
  6854. .cru_select {
  6855. font-size: 21px;
  6856. margin-right: 37px;
  6857. margin-left: 5px;
  6858. cursor: pointer;
  6859. color: #a6a6a6;
  6860. }
  6861. .cru_selected {
  6862. color: #0b7fc2 !important;
  6863. }
  6864. .chapter_contentbox {
  6865. display: flex;
  6866. align-items: center;
  6867. margin-top: 15px;
  6868. }
  6869. .chapter_contentbox div:nth-child(1) {
  6870. /* width: 150px; */
  6871. margin: 0px;
  6872. /* font-size: 2em; */
  6873. color: black;
  6874. display: block;
  6875. white-space: nowrap;
  6876. overflow: hidden;
  6877. text-overflow: ellipsis;
  6878. /* font-weight: 600; */
  6879. margin-right: 20px;
  6880. font-size: 18px;
  6881. }
  6882. .chapter_contentbox div:nth-child(2) {
  6883. width: 380px;
  6884. }
  6885. .chapter_contentbox div:nth-child(3),
  6886. .remove {
  6887. background-image: url("../../assets/remove.png");
  6888. cursor: pointer;
  6889. opacity: 0.5;
  6890. width: 40px;
  6891. height: 50px;
  6892. background-repeat: no-repeat;
  6893. background-position: 5px 10px;
  6894. }
  6895. .remove1 {
  6896. background-image: url("../../assets/remove1.png");
  6897. background-repeat: no-repeat;
  6898. background-position: 5px 10px;
  6899. width: 40px;
  6900. height: 50px;
  6901. cursor: pointer;
  6902. }
  6903. .binfo_input {
  6904. font: inherit;
  6905. color: currentColor;
  6906. width: 100%;
  6907. margin: 0;
  6908. /* padding: 15px 14px; */
  6909. padding: 8px 14px;
  6910. display: block;
  6911. min-width: 0;
  6912. outline: none;
  6913. box-sizing: content-box;
  6914. background: none;
  6915. border: 1px solid rgba(0, 0, 0, 0.23);
  6916. border-radius: 4px;
  6917. box-sizing: border-box;
  6918. background: #fff;
  6919. font-size: 18px;
  6920. }
  6921. .binfo_input:focus-visible {
  6922. border: 1px solid rgba(61, 103, 188);
  6923. }
  6924. .time {
  6925. display: flex;
  6926. margin: 35px 0 80px 0;
  6927. }
  6928. .chapter_btnbox {
  6929. width: 160px;
  6930. border-radius: 5px;
  6931. border: 2px dashed gray;
  6932. display: flex;
  6933. padding: 8px 50px;
  6934. align-items: center;
  6935. justify-content: center;
  6936. margin: 30px auto 0;
  6937. cursor: pointer;
  6938. }
  6939. .icon_add {
  6940. position: relative;
  6941. width: 24px;
  6942. padding-top: 20px;
  6943. border-radius: 100%;
  6944. border-width: 2px;
  6945. border-style: solid;
  6946. border-color: gray;
  6947. }
  6948. .icon_add i:nth-child(1) {
  6949. position: absolute;
  6950. left: 50%;
  6951. top: 50%;
  6952. height: 60%;
  6953. transform: translate(-50%, -50%);
  6954. border-width: 1px;
  6955. border-style: solid;
  6956. border-color: inherit;
  6957. }
  6958. .icon_add i:nth-child(2) {
  6959. position: absolute;
  6960. top: 50%;
  6961. left: 50%;
  6962. width: 60%;
  6963. transform: translate(-50%, -50%);
  6964. border-width: 1px;
  6965. border-style: solid;
  6966. border-color: inherit;
  6967. }
  6968. .chapter_btn_w {
  6969. font-size: 0.9375rem;
  6970. font-weight: bold;
  6971. color: gray;
  6972. margin-left: 20px;
  6973. }
  6974. .disUoloadSty>>>.el-icon-plus {
  6975. display: none !important;
  6976. /* 上传按钮隐藏 */
  6977. }
  6978. .imgLeft {
  6979. margin: 15px 0;
  6980. }
  6981. .add_info_box {
  6982. margin: 20px 0;
  6983. }
  6984. .add_info_box button {
  6985. margin: 0 10px 10px 0;
  6986. }
  6987. .add_info_box2 {
  6988. display: flex;
  6989. align-items: center;
  6990. flex-wrap: wrap;
  6991. }
  6992. .add_info_box2::after {
  6993. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  6994. color: red;
  6995. font-size: 14px;
  6996. margin-bottom: 10px;
  6997. }
  6998. .add_chapters_box {
  6999. text-align: left;
  7000. background-color: rgb(232 234 237);
  7001. width: 100%;
  7002. padding: 0px 15px;
  7003. border-radius: 15px;
  7004. font-size: 16px;
  7005. box-sizing: border-box;
  7006. position: relative;
  7007. padding: 0 10px 5px 10px;
  7008. height: 185px;
  7009. overflow-y: auto;
  7010. overflow-x: hidden;
  7011. }
  7012. .homework_box {
  7013. display: flex;
  7014. align-items: flex-start;
  7015. flex-wrap: wrap;
  7016. margin: 15px 0 0 0;
  7017. flex-direction: column;
  7018. align-content: flex-start;
  7019. }
  7020. .course_homework {
  7021. display: flex;
  7022. justify-content: center;
  7023. flex-direction: row;
  7024. align-items: center;
  7025. margin: 0 10px 0 0;
  7026. }
  7027. .course_homework>>>.el-input__inner {
  7028. width: 140px;
  7029. margin-left: 15px;
  7030. }
  7031. .chapter_upload_move {
  7032. position: relative;
  7033. background-color: #fff;
  7034. position: absolute;
  7035. width: 100%;
  7036. top: 0px;
  7037. left: 0px;
  7038. border: 1px solid #eee;
  7039. border-radius: 5px;
  7040. transition: width 2s;
  7041. -moz-transition: width 2s;
  7042. -webkit-transition: width 2s;
  7043. -o-transition: width 2s;
  7044. }
  7045. .chapter_upload_l_i {
  7046. background-image: url("../../assets/icon.png");
  7047. background-position: 3px -165px;
  7048. width: 30px;
  7049. height: 30px;
  7050. margin: 10px auto 0 auto;
  7051. }
  7052. .left_first {
  7053. display: flex;
  7054. flex-direction: column;
  7055. flex-wrap: nowrap;
  7056. }
  7057. .right_first {
  7058. width: 100%;
  7059. height: 100%;
  7060. margin-top: 15px;
  7061. }
  7062. .right_title {
  7063. height: 30px;
  7064. padding: 15px 0 15px 20px;
  7065. border-bottom: 1px solid #f2f2f2;
  7066. font-size: 1.5em;
  7067. font-weight: bold;
  7068. color: #0f7eff;
  7069. margin: 0 auto;
  7070. }
  7071. .people {
  7072. border: 1px solid rgb(229 229 229);
  7073. height: 495px;
  7074. border-radius: 5px;
  7075. width: 100%;
  7076. overflow: auto;
  7077. }
  7078. .people_top {
  7079. display: flex;
  7080. width: 100%;
  7081. /* justify-content: space-between; */
  7082. /* align-items: center; */
  7083. flex-direction: column;
  7084. padding: 10px 25px 0;
  7085. box-sizing: border-box;
  7086. }
  7087. .people_nav,
  7088. .people_top_right {
  7089. /* padding: 20px 0 0 20px; */
  7090. }
  7091. .people_top_right {
  7092. height: 40px;
  7093. margin-bottom: 10px;
  7094. }
  7095. .people_search {
  7096. display: flex;
  7097. position: relative;
  7098. }
  7099. .people_search>>>.el-input__inner {
  7100. /* height: 25px; */
  7101. width: 95%;
  7102. }
  7103. .search_img {
  7104. width: 20px;
  7105. height: 20px;
  7106. position: absolute;
  7107. right: 30px;
  7108. top: 50%;
  7109. transform: translateY(-50%);
  7110. }
  7111. .search_img>img {
  7112. width: 100%;
  7113. height: 100%;
  7114. }
  7115. .people_name {
  7116. display: flex;
  7117. justify-content: flex-start;
  7118. padding: 20px 0 0 25px;
  7119. flex-direction: column;
  7120. flex-wrap: wrap;
  7121. }
  7122. .people_name>>>.el-checkbox {
  7123. width: 100%;
  7124. display: flex;
  7125. align-items: center;
  7126. margin-bottom: 10px;
  7127. }
  7128. .people_name>>>.el-checkbox__label {
  7129. text-overflow: ellipsis;
  7130. overflow: hidden;
  7131. width: 100%;
  7132. }
  7133. .right_img {
  7134. width: 150px;
  7135. height: 150px;
  7136. margin: 0 auto;
  7137. }
  7138. .right_img>img {
  7139. width: 100%;
  7140. height: 100%;
  7141. }
  7142. .number {
  7143. margin-top: 20px;
  7144. color: #4aa6ff;
  7145. text-decoration: underline;
  7146. }
  7147. .success_button {
  7148. display: flex;
  7149. text-align: center;
  7150. margin: 5% 0 auto;
  7151. flex-direction: row;
  7152. justify-content: center;
  7153. }
  7154. .look_course {
  7155. margin-right: 40px;
  7156. background: #3d67bc;
  7157. width: 200px;
  7158. height: 35px;
  7159. line-height: 35px;
  7160. color: #fff;
  7161. text-align: center;
  7162. font-size: 14px;
  7163. border-radius: 5px;
  7164. cursor: pointer;
  7165. }
  7166. .attend_others {
  7167. width: 250px;
  7168. background: #4fb13c;
  7169. height: 35px;
  7170. line-height: 35px;
  7171. color: #fff;
  7172. text-align: center;
  7173. font-size: 14px;
  7174. border-radius: 5px;
  7175. cursor: pointer;
  7176. }
  7177. .dialog_diy2>>>.el-dialog__body {
  7178. text-align: center;
  7179. }
  7180. .write_togother {
  7181. position: absolute;
  7182. right: 45px;
  7183. display: flex;
  7184. top: 5%;
  7185. }
  7186. .write_people {
  7187. font-size: 14px;
  7188. line-height: 50px;
  7189. padding-right: 10px;
  7190. }
  7191. .end_write {
  7192. background: #3d67bc;
  7193. color: #fff;
  7194. width: 100px;
  7195. height: 35px;
  7196. line-height: 35px;
  7197. text-align: center;
  7198. font-size: 14px;
  7199. border-radius: 5px;
  7200. cursor: pointer;
  7201. }
  7202. .chapter_upload {
  7203. height: 50px;
  7204. margin-top: 12px;
  7205. position: relative;
  7206. display: flex;
  7207. align-items: center;
  7208. width: 100%;
  7209. min-height: 50px;
  7210. }
  7211. .chapter_upload_t {
  7212. background-color: #fff;
  7213. position: absolute;
  7214. height: 100%;
  7215. top: 0px;
  7216. left: 0px;
  7217. border-radius: 40px;
  7218. box-sizing: border-box;
  7219. box-shadow: 0 0 3px 3px #dfdfdf;
  7220. }
  7221. .chapter_upload_o {
  7222. width: 100%;
  7223. height: 100%;
  7224. position: relative;
  7225. z-index: 1;
  7226. }
  7227. .chapter_upload_ic {
  7228. height: 30px;
  7229. float: right;
  7230. }
  7231. .chapter_upload_ic_l {
  7232. width: 50px;
  7233. height: 50px;
  7234. float: left;
  7235. }
  7236. .chapter_upload_ic_l div {
  7237. width: 30px;
  7238. height: 35px;
  7239. background: url("../../assets/icon/icon.png");
  7240. }
  7241. .chapter_upload_ic_r {
  7242. width: 50px;
  7243. height: 50px;
  7244. float: left;
  7245. margin-left: 0px;
  7246. display: flex;
  7247. align-items: center;
  7248. }
  7249. .chapter_upload_ic_r div {
  7250. width: 25px;
  7251. height: 25px;
  7252. background-image: url("../../assets/delete.png");
  7253. background-size: 100% 100%;
  7254. }
  7255. .chapter_upload_n {
  7256. display: flex;
  7257. text-indent: 10px;
  7258. text-decoration: none;
  7259. text-overflow: ellipsis;
  7260. white-space: nowrap;
  7261. overflow: hidden;
  7262. width: 55%;
  7263. margin-left: 10px;
  7264. cursor: pointer;
  7265. margin-top: 2px;
  7266. align-items: center;
  7267. }
  7268. .chapter_upload_l_i1 {
  7269. background-image: url("../../assets/icon/video.png");
  7270. width: 28px;
  7271. height: 28px;
  7272. background-size: 100% 100%;
  7273. }
  7274. .chapter_upload_l_i5 {
  7275. background-image: url("../../assets/icon/word.png");
  7276. width: 24px;
  7277. height: 24px;
  7278. background-size: 100% 100%;
  7279. }
  7280. .chapter_upload_l_i8 {
  7281. background-image: url("../../assets/icon/line.png");
  7282. width: 24px;
  7283. height: 24px;
  7284. background-size: 100% 100%;
  7285. }
  7286. .chapter_upload_ud {
  7287. display: flex;
  7288. flex-direction: column;
  7289. margin-left: 5px;
  7290. justify-content: center;
  7291. }
  7292. .chapter_upload_up {
  7293. background-image: url("../../assets/icon/up.png");
  7294. width: 17px;
  7295. height: 15px;
  7296. background-size: 100% 100%;
  7297. cursor: pointer;
  7298. }
  7299. .chapter_upload_down {
  7300. background-image: url("../../assets/icon/down.png");
  7301. width: 17px;
  7302. height: 15px;
  7303. margin: 2px auto 0 auto;
  7304. background-size: 100% 100%;
  7305. cursor: pointer;
  7306. }
  7307. .addWordStyle {
  7308. display: flex;
  7309. flex-direction: row;
  7310. justify-content: flex-start;
  7311. overflow-x: auto;
  7312. white-space: nowrap;
  7313. flex-wrap: wrap;
  7314. }
  7315. /* table 样式 */
  7316. .cont>>>table {
  7317. border-top: 1px solid #ccc;
  7318. border-left: 1px solid #ccc;
  7319. }
  7320. .cont>>>table td,
  7321. .cont>>>table th {
  7322. border-bottom: 1px solid #ccc;
  7323. border-right: 1px solid #ccc;
  7324. /* padding: 20px 5px; */
  7325. padding: 5px 10px;
  7326. max-width: 0px;
  7327. height: 30px;
  7328. vertical-align: baseline;
  7329. }
  7330. .cont>>>table th {
  7331. border-bottom: 2px solid #ccc;
  7332. text-align: center;
  7333. }
  7334. /* blockquote 样式 */
  7335. .cont>>>blockquote {
  7336. display: block;
  7337. border-left: 8px solid #d0e5f2;
  7338. padding: 5px 10px;
  7339. margin: 10px 0;
  7340. line-height: 1.4;
  7341. font-size: 100%;
  7342. background-color: #f1f1f1;
  7343. }
  7344. /* code 样式 */
  7345. .cont>>>code {
  7346. display: inline-block;
  7347. *display: inline;
  7348. *zoom: 1;
  7349. background-color: #f1f1f1;
  7350. border-radius: 3px;
  7351. padding: 3px 5px;
  7352. margin: 0 3px;
  7353. }
  7354. .cont>>>pre code {
  7355. display: block;
  7356. }
  7357. /* ul ol 样式 */
  7358. .cont>>>ul,
  7359. ol {
  7360. margin: 10px 0 10px 20px;
  7361. }
  7362. .wordbox {
  7363. display: flex;
  7364. flex-wrap: wrap;
  7365. cursor: pointer;
  7366. width: 100%;
  7367. }
  7368. .checkword {
  7369. width: 22px;
  7370. height: 22px;
  7371. margin: 10px auto 0;
  7372. cursor: pointer;
  7373. }
  7374. .checkword img {
  7375. width: 100%;
  7376. }
  7377. .stepBg {
  7378. display: flex;
  7379. flex-direction: column;
  7380. justify-content: space-between;
  7381. align-items: center;
  7382. background: #fff;
  7383. width: 300px;
  7384. margin: 0 25px 0 0;
  7385. }
  7386. .stepTop {
  7387. min-width: 300px;
  7388. width: 300px;
  7389. /* border-radius: 10px; */
  7390. display: flex;
  7391. flex-direction: column;
  7392. justify-content: flex-start;
  7393. align-items: center;
  7394. flex-wrap: nowrap;
  7395. background: #fff;
  7396. /* top: 18%; */
  7397. }
  7398. .stepTop>div {
  7399. height: 80px;
  7400. width: 85%;
  7401. cursor: pointer;
  7402. margin: 10px 0;
  7403. border-radius: 10px;
  7404. }
  7405. .first,
  7406. .second,
  7407. .third,
  7408. .four {
  7409. background: #4a83d0;
  7410. height: 90px;
  7411. color: #fff;
  7412. display: flex;
  7413. flex-direction: row;
  7414. align-items: center;
  7415. justify-content: center;
  7416. }
  7417. .first>div:nth-child(1),
  7418. .second>div:nth-child(1),
  7419. .third>div:nth-child(1),
  7420. .four>div:nth-child(1) {
  7421. margin: 5px 10px 0 0;
  7422. width: 2rem;
  7423. }
  7424. .firstNo,
  7425. .secondNo,
  7426. .thirdNo,
  7427. .fourNo {
  7428. background: #e7e7e7;
  7429. color: #adadad;
  7430. display: flex;
  7431. flex-direction: row;
  7432. align-items: center;
  7433. justify-content: center;
  7434. }
  7435. .firstNo>div:nth-child(1),
  7436. .secondNo>div:nth-child(1),
  7437. .thirdNo>div:nth-child(1),
  7438. .fourNo>div:nth-child(1) {
  7439. margin: 5px 10px 0 0;
  7440. width: 2rem;
  7441. }
  7442. .uploadWidth>>>.el-upload {
  7443. width: 60px;
  7444. height: 60px;
  7445. position: relative;
  7446. }
  7447. .addPeople {
  7448. background: #fa6060;
  7449. width: 150px;
  7450. height: 40px;
  7451. color: #fff;
  7452. border-radius: 5px;
  7453. text-align: center;
  7454. line-height: 40px;
  7455. font-size: 14px;
  7456. cursor: pointer;
  7457. margin-top: 20px;
  7458. }
  7459. .kcImg {
  7460. width: 60px;
  7461. margin-left: 10px;
  7462. }
  7463. .zyImg {
  7464. width: 55px;
  7465. margin: 0 10px;
  7466. }
  7467. .deleteZy {
  7468. width: 20px;
  7469. position: absolute;
  7470. top: 5px;
  7471. right: 5px;
  7472. cursor: pointer;
  7473. }
  7474. .kcImg>img,
  7475. .zyImg>img,
  7476. .deleteZy>img {
  7477. width: 100%;
  7478. height: 100%;
  7479. }
  7480. .zyBox {
  7481. display: flex;
  7482. flex-direction: row;
  7483. align-items: center;
  7484. background: #67d37d;
  7485. color: #fff;
  7486. width: 210px;
  7487. margin: 20px 20px 0 0;
  7488. border-radius: 10px;
  7489. height: 70px;
  7490. position: relative;
  7491. }
  7492. .upCss {
  7493. display: flex;
  7494. flex-direction: row;
  7495. justify-content: flex-start;
  7496. }
  7497. .upCss>>>.el-icon-plus {
  7498. position: none !important;
  7499. width: 200px;
  7500. height: 100px;
  7501. display: flex;
  7502. flex-wrap: nowrap;
  7503. flex-direction: column;
  7504. align-items: center;
  7505. justify-content: center;
  7506. border: 1px dashed #ccc;
  7507. min-width: 78px;
  7508. min-height: 100px;
  7509. z-index: 999;
  7510. }
  7511. .upCss>>>.el-upload-list__item-name {
  7512. width: 100px;
  7513. white-space: nowrap;
  7514. overflow: hidden;
  7515. text-overflow: ellipsis;
  7516. }
  7517. .addStageImg {
  7518. min-width: 25px;
  7519. min-height: 25px;
  7520. width: 25px;
  7521. height: 25px;
  7522. cursor: pointer;
  7523. }
  7524. .addHW {
  7525. width: 28px;
  7526. height: 28px;
  7527. cursor: pointer;
  7528. }
  7529. .addStageImg>img,
  7530. .addHW>img {
  7531. width: 100%;
  7532. height: 100%;
  7533. }
  7534. .addNewPP>>>.el-dialog__body {
  7535. padding: 5px 20px;
  7536. }
  7537. .isHeight {
  7538. height: 680px;
  7539. }
  7540. .toolChoose {
  7541. display: flex;
  7542. /* width: 100%; */
  7543. flex-direction: row;
  7544. flex-wrap: wrap;
  7545. }
  7546. .tool {
  7547. display: flex;
  7548. flex-direction: column;
  7549. flex-wrap: nowrap;
  7550. width: fit-content;
  7551. margin: 10px 0 10px 0;
  7552. align-items: center;
  7553. }
  7554. .tool+.tool {
  7555. margin-right: 45px;
  7556. }
  7557. .whiteBIcon {
  7558. width: 80px;
  7559. cursor: pointer;
  7560. display: flex;
  7561. flex-direction: column;
  7562. flex-wrap: nowrap;
  7563. align-items: center;
  7564. }
  7565. .whiteBIcon>img,
  7566. .toolIcon>img,
  7567. .arrow>img {
  7568. width: 100%;
  7569. height: 100%;
  7570. }
  7571. .check img {
  7572. width: 20px;
  7573. height: 20px;
  7574. }
  7575. .whiteBIcon>img {
  7576. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  7577. border-radius: 15px;
  7578. }
  7579. .check {
  7580. /* width: 20px;
  7581. height: 20px; */
  7582. cursor: pointer;
  7583. margin: 10px 0;
  7584. }
  7585. .checkDiv {
  7586. display: flex;
  7587. align-items: center;
  7588. }
  7589. .checkDiv span {
  7590. margin-left: 5px;
  7591. color: #858585;
  7592. }
  7593. .customWidth>>>.el-dialog {
  7594. min-width: 500px !important;
  7595. }
  7596. .a_addBox {
  7597. margin: 10px 0;
  7598. background: #fff;
  7599. padding: 15px;
  7600. max-height: 600px;
  7601. overflow: auto;
  7602. }
  7603. .a_add_box {
  7604. border-bottom: 2px solid #eee;
  7605. padding-bottom: 25px;
  7606. }
  7607. .a_add_head {
  7608. display: flex;
  7609. align-items: center;
  7610. justify-content: space-between;
  7611. margin: 10px 0 0 0;
  7612. font-size: 18px;
  7613. }
  7614. .a_add_checkType {
  7615. margin-top: 10px;
  7616. display: flex;
  7617. font-size: 16px;
  7618. }
  7619. .a_add_checkType span {
  7620. box-sizing: border-box;
  7621. padding: 0 0 5px 0;
  7622. cursor: pointer;
  7623. }
  7624. .a_add_checkType span+span {
  7625. margin-left: 10px;
  7626. }
  7627. .a_add_checkType .active {
  7628. border-bottom: 2px solid #409eff;
  7629. color: #409eff;
  7630. }
  7631. .a_add_head .a_add_head_input {
  7632. width: 300px;
  7633. }
  7634. .a_add_head .a_add_head_div {
  7635. display: flex;
  7636. align-items: center;
  7637. justify-content: space-between;
  7638. }
  7639. .a_add_body {
  7640. display: flex;
  7641. /* align-items: center; */
  7642. align-items: flex-end;
  7643. }
  7644. .a_add_input {
  7645. display: flex;
  7646. align-items: center;
  7647. flex-wrap: wrap;
  7648. }
  7649. .a_add_input_choice {
  7650. flex-direction: column;
  7651. margin-right: 10px;
  7652. }
  7653. .a_add_input_choice>>>.el-radio {
  7654. display: flex;
  7655. align-items: center;
  7656. flex-direction: row-reverse;
  7657. margin: 30px 0 0 0;
  7658. }
  7659. .a_add_input_choice>>>.el-checkbox {
  7660. display: flex;
  7661. align-items: center;
  7662. flex-direction: row-reverse;
  7663. margin: 30px 0 0 0;
  7664. }
  7665. .width100 {
  7666. width: 100%;
  7667. }
  7668. .a_add_input .a_add_persent {
  7669. width: 100%;
  7670. }
  7671. .a_add_persent_div {
  7672. width: 100%;
  7673. display: flex;
  7674. align-items: center;
  7675. }
  7676. .a_add_persent_div span {
  7677. margin: 5px 0;
  7678. }
  7679. .a_add_persent_div span:nth-child(1) {
  7680. width: 30%;
  7681. }
  7682. .a_add_persent_div span:nth-child(2) {
  7683. width: 7%;
  7684. }
  7685. .a_add_persent_div span:nth-child(3) {
  7686. width: 40%;
  7687. }
  7688. .a_add_body_div {
  7689. display: flex;
  7690. align-items: center;
  7691. justify-content: center;
  7692. /* flex-direction: column; */
  7693. }
  7694. .all_choose {
  7695. display: flex;
  7696. flex-direction: row;
  7697. align-items: flex-start;
  7698. width: 100%;
  7699. }
  7700. .all_choose>span {
  7701. width: 100px;
  7702. display: block;
  7703. letter-spacing: 14px;
  7704. white-space: nowrap;
  7705. overflow: hidden;
  7706. text-overflow: ellipsis;
  7707. }
  7708. .all_choose>>>.el-checkbox-group {
  7709. display: flex;
  7710. flex-direction: row;
  7711. width: 100%;
  7712. flex-wrap: wrap;
  7713. align-content: center;
  7714. justify-content: flex-start;
  7715. align-items: center;
  7716. margin-top: 3px;
  7717. }
  7718. .all_choose>.el-checkbox-group>>>.el-checkbox {
  7719. margin-bottom: 10px;
  7720. display: flex;
  7721. flex-direction: row;
  7722. align-items: center;
  7723. }
  7724. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  7725. min-width: 80px;
  7726. overflow: hidden;
  7727. width: 80px;
  7728. text-overflow: ellipsis;
  7729. white-space: nowrap;
  7730. }
  7731. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  7732. width: auto;
  7733. }
  7734. .choose>div:nth-child(3)>span {
  7735. /* letter-spacing: 0 !important; */
  7736. }
  7737. .choose {
  7738. display: flex;
  7739. flex-direction: column;
  7740. flex-wrap: nowrap;
  7741. height: 100%;
  7742. justify-content: space-evenly;
  7743. align-items: flex-start;
  7744. }
  7745. .both {
  7746. display: flex;
  7747. flex-direction: row;
  7748. flex-wrap: wrap;
  7749. width: 100%;
  7750. align-items: center;
  7751. justify-content: flex-start;
  7752. margin: 15px 0;
  7753. }
  7754. .notice>>>.el-dialog {
  7755. width: 500px !important;
  7756. text-align: center;
  7757. }
  7758. .notice>>>.el-button {
  7759. margin-top: 20px;
  7760. }
  7761. .whiteBg {
  7762. background: #fff;
  7763. border-radius: 10px;
  7764. }
  7765. .chooseWho {
  7766. display: flex;
  7767. width: 380px;
  7768. flex-direction: row;
  7769. flex-wrap: nowrap;
  7770. justify-content: space-between;
  7771. padding-bottom: 10px;
  7772. }
  7773. .chooseWho>div {
  7774. cursor: pointer;
  7775. padding-bottom: 10px;
  7776. font-weight: bold;
  7777. }
  7778. .isChooseActive {
  7779. color: #3e88f4;
  7780. border-bottom: 2px solid #2f80f3;
  7781. }
  7782. .toolSort {
  7783. display: flex;
  7784. flex-direction: row;
  7785. flex-wrap: wrap;
  7786. justify-content: flex-start;
  7787. align-items: flex-start;
  7788. }
  7789. .toolSort>div {
  7790. margin-right: 45px;
  7791. }
  7792. .tools {
  7793. width: 100%;
  7794. display: flex;
  7795. flex-direction: column;
  7796. flex-wrap: nowrap;
  7797. align-items: flex-start;
  7798. }
  7799. .leftTools,
  7800. .rightTools {
  7801. width: 50%;
  7802. }
  7803. .rightTools {
  7804. display: flex;
  7805. flex-direction: row;
  7806. flex-wrap: nowrap;
  7807. justify-content: space-around;
  7808. }
  7809. .firstToolList {
  7810. display: flex;
  7811. flex-direction: column;
  7812. flex-wrap: nowrap;
  7813. align-items: center;
  7814. }
  7815. .iconList {
  7816. display: flex;
  7817. flex-direction: row;
  7818. flex-wrap: wrap;
  7819. justify-content: flex-start;
  7820. align-items: center;
  7821. margin: 20px 0 5px 0;
  7822. width: 240px;
  7823. min-width: 240px;
  7824. }
  7825. .iconTool {
  7826. display: flex;
  7827. flex-direction: column;
  7828. flex-wrap: nowrap;
  7829. align-items: center;
  7830. justify-content: flex-start;
  7831. margin: 15px 10px;
  7832. }
  7833. .toolIcon {
  7834. width: 50px;
  7835. }
  7836. .taskBorder {
  7837. border: 1px solid #e1e1e1;
  7838. border-radius: 10px;
  7839. margin-top: 20px;
  7840. min-height: 1160px;
  7841. position: relative;
  7842. background: #fbfbfb;
  7843. }
  7844. .smallTaskBorder {
  7845. height: 170px;
  7846. min-height: 170px !important;
  7847. overflow: hidden;
  7848. }
  7849. .taskBorder>div {
  7850. padding: 30px 0 10px 30px;
  7851. }
  7852. .addTaskBorder {
  7853. border: 2px solid #e1e1e1;
  7854. border-radius: 10px;
  7855. margin-top: 25px;
  7856. cursor: pointer;
  7857. }
  7858. .addTaskBorder>div {
  7859. margin: 0 auto;
  7860. display: flex;
  7861. align-items: center;
  7862. justify-content: center;
  7863. }
  7864. .addTaskBorder>div>img {
  7865. width: 100px;
  7866. }
  7867. .addTaskBorder>div>span {
  7868. font-size: 23px;
  7869. color: #dbdbdb;
  7870. }
  7871. .funBlock {
  7872. display: flex;
  7873. padding: 15px 0;
  7874. flex-direction: row;
  7875. justify-content: flex-end;
  7876. align-items: center;
  7877. position: absolute;
  7878. right: 15px;
  7879. bottom: 35px;
  7880. }
  7881. .fold {
  7882. display: flex;
  7883. margin: 0 10px;
  7884. flex-direction: row;
  7885. align-items: center;
  7886. cursor: pointer;
  7887. }
  7888. .arrow {
  7889. width: 15px;
  7890. height: 15px;
  7891. margin-left: 10px;
  7892. }
  7893. .addToolFun {
  7894. display: flex;
  7895. width: 150px;
  7896. flex-direction: row;
  7897. align-items: center;
  7898. justify-content: center;
  7899. border: 1px dashed;
  7900. border-radius: 5px;
  7901. height: 50px;
  7902. margin: 35px auto 0;
  7903. cursor: pointer;
  7904. }
  7905. .addToolImg {
  7906. width: 30px;
  7907. height: 30px;
  7908. margin-right: 20px;
  7909. }
  7910. .addToolsDia>>>.el-dialog__body {
  7911. padding: 20px;
  7912. }
  7913. .addToolsDia>>>.el-dialog__body>.toolChoose {
  7914. padding: 0;
  7915. }
  7916. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  7917. padding: 0;
  7918. border-bottom: none;
  7919. margin-bottom: 0;
  7920. }
  7921. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  7922. width: 100%;
  7923. }
  7924. .lineCss>>>.el-form-item__label {
  7925. width: auto !important;
  7926. }
  7927. .lineCss>>>.el-form-item__content {
  7928. margin-left: 50px !important;
  7929. }
  7930. .newSteps {
  7931. display: flex;
  7932. width: 100% !important;
  7933. height: 80px;
  7934. cursor: pointer;
  7935. margin: 10px 0;
  7936. border-radius: 10px;
  7937. flex-direction: row;
  7938. align-content: center;
  7939. justify-content: center;
  7940. align-items: center;
  7941. margin: 0 !important;
  7942. }
  7943. /* 评价样式 */
  7944. .elist_css {
  7945. padding-bottom: 60px !important;
  7946. }
  7947. .elist_title {
  7948. margin-bottom: 10px;
  7949. }
  7950. .elist_input {}
  7951. .elist_input_box {
  7952. display: flex;
  7953. align-items: center;
  7954. flex-wrap: wrap;
  7955. }
  7956. .elist_input_box+.elist_input_box {
  7957. margin-top: 30px;
  7958. }
  7959. .elist_input .elist_input_box input {
  7960. font: inherit;
  7961. color: currentColor;
  7962. /* width: 200px; */
  7963. max-width: 200px;
  7964. padding: 8px 14px;
  7965. display: block;
  7966. min-width: 0;
  7967. outline: none;
  7968. border: 1px solid rgba(0, 0, 0, 0.23);
  7969. border-radius: 4px;
  7970. box-sizing: border-box;
  7971. background: #fff;
  7972. margin: 0 20px 0 0;
  7973. }
  7974. .elist_input .elist_input_box span {
  7975. height: 36px;
  7976. line-height: 36px;
  7977. color: rgb(82, 82, 82);
  7978. min-width: 80px;
  7979. }
  7980. .elist_input .elist_input_box .remove {
  7981. height: 20px;
  7982. width: 20px;
  7983. background-size: 100% 100%;
  7984. background-position: unset;
  7985. margin-left: 5px;
  7986. }
  7987. .elist_input_box>>>.el-rate {
  7988. display: flex;
  7989. height: 36px;
  7990. align-items: center;
  7991. }
  7992. .elist_input_box .elist_inptu_text {
  7993. width: 100%;
  7994. display: flex;
  7995. align-items: center;
  7996. margin-top: 10px;
  7997. }
  7998. .elist_input_box .elist_inptu_text input {
  7999. /* width: 500px; */
  8000. width: 100%;
  8001. max-width: unset;
  8002. }
  8003. .elist_input_box>>>.el-rate__icon {
  8004. font-size: 24px;
  8005. }
  8006. .elist_btn {
  8007. margin-top: 10px;
  8008. }
  8009. .lineTitle {
  8010. margin-top: 15px;
  8011. width: 110px;
  8012. }
  8013. .courseTop {
  8014. display: flex;
  8015. flex-direction: row;
  8016. justify-content: flex-start;
  8017. align-items: center;
  8018. /* width: 100%; */
  8019. width: calc(100% - 20px);
  8020. /* background: rgb(255, 255, 255); */
  8021. /* border-radius: 10px; */
  8022. padding: 20px 0;
  8023. }
  8024. .stepsNav {
  8025. display: flex;
  8026. flex-direction: row;
  8027. justify-content: flex-start;
  8028. align-items: center;
  8029. }
  8030. .stepsWord {
  8031. font-size: 18px;
  8032. color: #fff;
  8033. font-weight: bold;
  8034. margin-left: auto;
  8035. background: rgb(15, 126, 255);
  8036. border-radius: 5px;
  8037. padding: 3px 25px;
  8038. box-sizing: border-box;
  8039. }
  8040. .rightBox {
  8041. width: calc(100% - 20px);
  8042. background: rgb(255, 255, 255);
  8043. border-radius: 10px;
  8044. overflow: auto;
  8045. height: calc(100% - 130px);
  8046. position: relative;
  8047. }
  8048. .e_add_top {
  8049. display: flex;
  8050. justify-content: space-between;
  8051. padding: 20px 20px 0 20px;
  8052. border-radius: 3px;
  8053. background: #fff;
  8054. }
  8055. .e_add_title2 {
  8056. display: flex;
  8057. align-items: center;
  8058. }
  8059. .e_add_title2 span {
  8060. width: 40px;
  8061. }
  8062. .e_add_title {
  8063. display: flex;
  8064. align-items: center;
  8065. color: #b8b8b8;
  8066. font-size: 18px;
  8067. position: relative;
  8068. height: 40px;
  8069. }
  8070. .e_add_title span {
  8071. margin-right: 10px;
  8072. }
  8073. .e_add_title .el_input {
  8074. width: 300px;
  8075. }
  8076. .e_add_title>>>.el-input__inner {
  8077. width: 400px;
  8078. }
  8079. .e_add_btn {}
  8080. .e_add_content {
  8081. display: flex;
  8082. width: 100%;
  8083. }
  8084. .e_add_list {
  8085. background: #fff;
  8086. height: 500px;
  8087. width: 210px;
  8088. position: relative;
  8089. margin: 15px 5px 0 0;
  8090. flex-shrink: 0;
  8091. display: flex;
  8092. flex-direction: column;
  8093. }
  8094. .e_add_list_title {
  8095. font-size: 20px;
  8096. width: 100%;
  8097. box-sizing: border-box;
  8098. padding: 15px 40px;
  8099. text-align: center;
  8100. border-bottom: 1px solid #eaeaea;
  8101. position: relative;
  8102. display: flex;
  8103. align-items: center;
  8104. justify-content: center;
  8105. height: 57px;
  8106. background: #f6f6f6;
  8107. }
  8108. .e_add_list_title span {
  8109. overflow: hidden;
  8110. white-space: nowrap;
  8111. text-overflow: ellipsis;
  8112. }
  8113. .e_add_list_title img {
  8114. position: absolute;
  8115. right: 15px;
  8116. width: 25px;
  8117. cursor: pointer;
  8118. top: 50%;
  8119. transform: translateY(-50%);
  8120. }
  8121. .e_add_list_body {
  8122. height: calc(100% - 187px);
  8123. overflow: auto;
  8124. }
  8125. .e_add_list_child {
  8126. width: 100%;
  8127. display: flex;
  8128. align-items: center;
  8129. justify-content: center;
  8130. position: relative;
  8131. box-sizing: border-box;
  8132. padding: 15px 40px;
  8133. text-align: center;
  8134. }
  8135. .e_add_list_child span {
  8136. overflow: hidden;
  8137. white-space: nowrap;
  8138. text-overflow: ellipsis;
  8139. cursor: pointer;
  8140. }
  8141. .e_add_list_child img {
  8142. position: absolute;
  8143. right: 10px;
  8144. width: 21px;
  8145. cursor: pointer;
  8146. top: 50%;
  8147. transform: translateY(-50%);
  8148. }
  8149. .e_add_list_child+.e_add_list_child {
  8150. border-top: 1px solid #eaeaea;
  8151. }
  8152. .e_add_list_child .active {
  8153. color: #409eff;
  8154. }
  8155. .e_add_list_btn {
  8156. position: absolute;
  8157. bottom: 0;
  8158. height: 50px;
  8159. background: rgb(120, 120, 254);
  8160. width: 100%;
  8161. color: #fff;
  8162. font-size: 16px;
  8163. text-align: center;
  8164. line-height: 50px;
  8165. cursor: pointer;
  8166. }
  8167. .e_add_list_detail {
  8168. position: absolute;
  8169. bottom: 0;
  8170. height: 130px;
  8171. background: rgb(120, 120, 254);
  8172. width: 100%;
  8173. color: #fff;
  8174. font-size: 16px;
  8175. display: flex;
  8176. align-items: center;
  8177. justify-content: center;
  8178. }
  8179. .e_add_list_detail textarea {
  8180. height: 90%;
  8181. width: 95%;
  8182. border: none;
  8183. resize: none;
  8184. outline: none;
  8185. padding: 5px;
  8186. box-sizing: border-box;
  8187. }
  8188. .e_add_list_pbox {
  8189. width: 100%;
  8190. }
  8191. .e_add_list_pbox_title {
  8192. height: 50px;
  8193. background: #fff;
  8194. display: flex;
  8195. align-items: center;
  8196. width: 100%;
  8197. box-sizing: border-box;
  8198. padding: 0 20px;
  8199. flex-direction: row;
  8200. flex-wrap: wrap;
  8201. }
  8202. .type_title {
  8203. font-size: 18px;
  8204. font-weight: 700;
  8205. }
  8206. .type_content {
  8207. font-size: 16px;
  8208. margin-left: 30px;
  8209. }
  8210. .type_content span+span {
  8211. margin-left: 20px;
  8212. }
  8213. .type_content span {
  8214. cursor: pointer;
  8215. padding-bottom: 5px;
  8216. box-sizing: border-box;
  8217. }
  8218. .type_content .active {
  8219. color: #409eff;
  8220. border-bottom: 2px solid #409eff;
  8221. }
  8222. .e_add_list_pbox_content {
  8223. height: calc(100% - 50px);
  8224. display: flex;
  8225. align-items: center;
  8226. width: 100%;
  8227. background: #fff;
  8228. }
  8229. .mbCss {
  8230. width: 100%;
  8231. display: flex;
  8232. flex-direction: row;
  8233. flex-wrap: nowrap;
  8234. align-content: center;
  8235. align-items: flex-start;
  8236. justify-content: flex-start;
  8237. }
  8238. .pjCss {
  8239. /* width: 42%; */
  8240. width: calc(100% - 55%);
  8241. display: flex;
  8242. flex-direction: column;
  8243. flex-wrap: nowrap;
  8244. align-items: flex-start;
  8245. margin-top: 1.5%;
  8246. }
  8247. .e_box {
  8248. display: flex;
  8249. flex-wrap: wrap;
  8250. max-height: 500px;
  8251. align-items: flex-start;
  8252. overflow: auto;
  8253. }
  8254. .e_card {
  8255. border: 1px solid #ccc;
  8256. background: #fff;
  8257. margin-right: 20px;
  8258. width: 270px;
  8259. display: flex;
  8260. flex-direction: column;
  8261. align-items: center;
  8262. border-radius: 5px;
  8263. margin-top: 10px;
  8264. text-align: center;
  8265. }
  8266. .e_card_picture {
  8267. margin: 10px 0;
  8268. }
  8269. .e_card_picture>img {
  8270. width: 50px;
  8271. }
  8272. .e_card_name {
  8273. width: 100%;
  8274. padding: 0 10px;
  8275. box-sizing: border-box;
  8276. margin-bottom: 10px;
  8277. overflow: hidden;
  8278. text-overflow: ellipsis;
  8279. white-space: nowrap;
  8280. }
  8281. .e_card_time {
  8282. width: 100%;
  8283. padding: 0 10px;
  8284. box-sizing: border-box;
  8285. font-size: 15px;
  8286. color: #c3c3c3;
  8287. margin-bottom: 10px;
  8288. }
  8289. .e_card_btn {
  8290. height: 40px;
  8291. display: flex;
  8292. align-items: center;
  8293. width: 100%;
  8294. background: rgb(244, 244, 244);
  8295. }
  8296. .e_card_btn:hover {
  8297. background: rgb(221 221 221);
  8298. }
  8299. .e_card_btn span {
  8300. flex: 1 1 auto;
  8301. text-align: center;
  8302. cursor: pointer;
  8303. }
  8304. .addEva {
  8305. border: 1px solid #ccc;
  8306. background: #fff;
  8307. margin-right: 20px;
  8308. width: 270px;
  8309. height: 149px;
  8310. display: flex;
  8311. flex-direction: column;
  8312. align-items: center;
  8313. border-radius: 5px;
  8314. margin-top: 10px;
  8315. text-align: center;
  8316. cursor: pointer;
  8317. justify-content: center;
  8318. }
  8319. .addEva>img {
  8320. width: 50px;
  8321. object-fit: cover;
  8322. }
  8323. .uploadFm {
  8324. border: 1px dashed #ccc;
  8325. width: 202px;
  8326. height: 102px;
  8327. position: relative;
  8328. cursor: pointer;
  8329. }
  8330. .uploadFm>img {
  8331. position: absolute;
  8332. top: 25px;
  8333. left: 35%;
  8334. width: 50px;
  8335. }
  8336. .fileCss {
  8337. width: 100%;
  8338. display: flex;
  8339. flex-direction: row;
  8340. flex-wrap: nowrap;
  8341. justify-content: space-around;
  8342. align-items: center;
  8343. padding-top: 15px;
  8344. }
  8345. .sysPicBox {
  8346. display: flex;
  8347. flex-direction: row;
  8348. flex-wrap: wrap;
  8349. align-content: flex-start;
  8350. height: 435px;
  8351. overflow: auto;
  8352. }
  8353. .sysPic {
  8354. width: 200px;
  8355. height: 115px;
  8356. margin: 0 20px 20px 0;
  8357. cursor: pointer;
  8358. }
  8359. .sysPic>img,
  8360. .isSysPic>img,
  8361. .deletePic>img {
  8362. width: 100%;
  8363. height: 100%;
  8364. object-fit: cover;
  8365. }
  8366. .isSysPic {
  8367. width: 200px;
  8368. height: 115px;
  8369. position: relative;
  8370. }
  8371. .deletePic {
  8372. width: 20px;
  8373. height: 20px;
  8374. position: absolute;
  8375. top: 0;
  8376. right: 0;
  8377. cursor: pointer;
  8378. }
  8379. .select_box1 {}
  8380. .select_box1_img {
  8381. background: #fff;
  8382. border-radius: 5px;
  8383. padding: 15px;
  8384. box-sizing: border-box;
  8385. margin-bottom: 20px;
  8386. }
  8387. .select_box1_title {
  8388. padding: 0 0 15px 0;
  8389. border-bottom: 1px solid #eee;
  8390. margin-bottom: 15px;
  8391. }
  8392. .select_box1_title span:nth-child(1) {
  8393. font-size: 16px;
  8394. margin-right: 20px;
  8395. color: #000;
  8396. }
  8397. .select_box1_title span:nth-child(2) {
  8398. font-size: 14px;
  8399. color: rgb(112, 112, 112);
  8400. }
  8401. .select_box1_add_img {}
  8402. .select_box1_select {
  8403. background: #fff;
  8404. border-radius: 5px;
  8405. padding: 15px;
  8406. box-sizing: border-box;
  8407. }
  8408. .select_box2 {}
  8409. .select_box2_title {
  8410. background: #fff;
  8411. border-radius: 5px;
  8412. padding: 5px 10px;
  8413. box-sizing: border-box;
  8414. margin-bottom: 10px;
  8415. }
  8416. .select_box2_box {
  8417. display: flex;
  8418. height: 500px;
  8419. }
  8420. .select_box2_img {
  8421. width: calc(100% - 310px);
  8422. height: 100%;
  8423. overflow: auto;
  8424. background: #fff;
  8425. border-radius: 5px;
  8426. }
  8427. .select_box2_img img {
  8428. width: 100%;
  8429. }
  8430. .select_box2_answer {
  8431. background: #fff;
  8432. margin-left: 10px;
  8433. border-radius: 5px;
  8434. width: 300px;
  8435. overflow: auto;
  8436. height: 100%;
  8437. display: flex;
  8438. flex-direction: column;
  8439. align-items: center;
  8440. padding-top: 10px;
  8441. box-sizing: border-box;
  8442. }
  8443. .select_box2_answer_box {
  8444. margin: 0 0 10px 0;
  8445. width: 85%;
  8446. }
  8447. .rate_textarea {
  8448. font: inherit;
  8449. color: currentColor;
  8450. width: 100%;
  8451. padding: 8px 14px;
  8452. display: block;
  8453. min-width: 0;
  8454. outline: none;
  8455. border: 1px solid rgba(0, 0, 0, 0.23);
  8456. border-radius: 4px;
  8457. box-sizing: border-box;
  8458. background: #fff;
  8459. margin: 0 20px 0 0;
  8460. resize: none;
  8461. }
  8462. .select_answer_title {
  8463. text-align: left;
  8464. width: 85%;
  8465. margin-bottom: 10px;
  8466. font-size: 18px;
  8467. color: #8e8e8e;
  8468. }
  8469. .mask {
  8470. background-color: rgb(0 0 0 / 30%);
  8471. /* position: fixed; */
  8472. position: absolute;
  8473. top: 0;
  8474. left: 0;
  8475. width: 100%;
  8476. height: 100%;
  8477. z-index: 90;
  8478. display: flex;
  8479. align-items: center;
  8480. justify-content: center;
  8481. }
  8482. .progressBox {
  8483. width: 300px;
  8484. height: 150px;
  8485. background: #fff;
  8486. border-radius: 10px;
  8487. box-shadow: 0 0 6px 1px #bfbfbf;
  8488. display: flex;
  8489. align-items: center;
  8490. justify-content: center;
  8491. flex-direction: column;
  8492. position: relative;
  8493. color: #6c6c6c;
  8494. }
  8495. .progressBox>>>.el-progress-bar__outer {
  8496. background-color: #d1dfff !important;
  8497. }
  8498. .progressBox .lbox {
  8499. height: 50px;
  8500. font-size: 19px;
  8501. display: flex;
  8502. align-items: center;
  8503. color: #747474;
  8504. }
  8505. .progressBox .lbox img {
  8506. width: 40px;
  8507. margin-right: 20px;
  8508. }
  8509. .closeCss {
  8510. position: absolute;
  8511. top: 8px;
  8512. right: 8px;
  8513. cursor: pointer;
  8514. width: 20px;
  8515. height: 20px;
  8516. }
  8517. .closeCss>img {
  8518. width: 100%;
  8519. height: 100%;
  8520. }
  8521. .updateTips::after {
  8522. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  8523. font-size: 14px;
  8524. margin-left: 20px;
  8525. font-weight: 400;
  8526. color: #ff3a3a;
  8527. }
  8528. .updateMask {
  8529. width: 100%;
  8530. z-index: 3;
  8531. top: 0;
  8532. position: absolute;
  8533. /* background-color: rgba(0,0,0,.3); */
  8534. }
  8535. .t_j_box {
  8536. display: flex;
  8537. }
  8538. .t_j_box span:nth-child(1) {
  8539. width: 15%;
  8540. overflow: hidden;
  8541. margin-right: 10px;
  8542. text-overflow: ellipsis;
  8543. white-space: nowrap;
  8544. }
  8545. .t_j_box span:nth-child(2) {
  8546. width: 30%;
  8547. overflow: hidden;
  8548. text-overflow: ellipsis;
  8549. margin-right: 10px;
  8550. }
  8551. .t_j_box span:nth-child(3) {
  8552. max-width: calc(55% - 20px);
  8553. overflow: hidden;
  8554. text-overflow: ellipsis;
  8555. }
  8556. .sentenBox {
  8557. background: #fff;
  8558. height: 600px;
  8559. overflow: auto;
  8560. background-image: url("../../assets/icon/conSentences/csBg.png");
  8561. background-position: 102%;
  8562. background-repeat: no-repeat;
  8563. background-size: 60%;
  8564. }
  8565. .addSen {
  8566. background: #409efe;
  8567. width: 90px;
  8568. color: #fff;
  8569. height: 35px;
  8570. text-align: center;
  8571. line-height: 35px;
  8572. border-radius: 5px;
  8573. float: right;
  8574. margin: 10px 20px 0 0;
  8575. cursor: pointer;
  8576. }
  8577. .sentenTop {
  8578. display: flex;
  8579. flex-direction: row;
  8580. flex-wrap: nowrap;
  8581. align-items: center;
  8582. }
  8583. .sentenTop>div:nth-child(2) {
  8584. width: 300px;
  8585. margin: 0 15px;
  8586. }
  8587. .sentenTop>div:nth-child(3) {
  8588. background: #409efe;
  8589. color: #fff;
  8590. width: 65px;
  8591. height: 35px;
  8592. text-align: center;
  8593. line-height: 35px;
  8594. border-radius: 5px;
  8595. cursor: pointer;
  8596. }
  8597. .cardList {
  8598. padding: 30px 0 20px 0;
  8599. display: flex;
  8600. flex-direction: row;
  8601. flex-wrap: wrap;
  8602. align-items: center;
  8603. box-sizing: border-box;
  8604. border-bottom: 1px solid #f4f4f4;
  8605. width: 98%;
  8606. margin: 0 auto;
  8607. }
  8608. .cardBox {
  8609. display: flex;
  8610. flex-direction: row;
  8611. flex-wrap: wrap;
  8612. align-items: center;
  8613. align-content: center;
  8614. }
  8615. .isCard,
  8616. .isCard1 {
  8617. width: 140px;
  8618. height: 65px;
  8619. text-align: center;
  8620. line-height: 65px;
  8621. font-size: 20px;
  8622. cursor: pointer;
  8623. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  8624. background-size: cover;
  8625. position: relative;
  8626. z-index: 99;
  8627. }
  8628. .isCard1 {
  8629. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  8630. }
  8631. .isCard:hover .deleteWord {
  8632. display: block;
  8633. }
  8634. .isCard>div:nth-child(1),
  8635. .isCard1>div:nth-child(1) {
  8636. white-space: nowrap;
  8637. overflow: hidden;
  8638. text-overflow: ellipsis;
  8639. width: 80%;
  8640. margin: 0 auto;
  8641. }
  8642. .card {
  8643. width: 140px;
  8644. height: 65px;
  8645. }
  8646. .card>img {
  8647. width: 100%;
  8648. height: 100%;
  8649. }
  8650. .rightCardBox {
  8651. margin: 10px 0 0 10px;
  8652. }
  8653. .rightCardBox>div:nth-child(1) {
  8654. margin-bottom: 10px;
  8655. }
  8656. .cardCss {
  8657. display: flex;
  8658. flex-direction: column;
  8659. flex-wrap: nowrap;
  8660. align-items: center;
  8661. border-bottom: 3px solid #b4c3d3;
  8662. padding: 0 0 5px 0;
  8663. margin-right: 10px;
  8664. }
  8665. .cardCss>div:nth-child(2) {
  8666. background: #5b7b9d;
  8667. color: #fff;
  8668. width: 20px;
  8669. height: 20px;
  8670. border-radius: 50%;
  8671. text-align: center;
  8672. line-height: 20px;
  8673. }
  8674. .sentenTopBox {
  8675. display: flex;
  8676. flex-direction: row;
  8677. flex-wrap: nowrap;
  8678. align-items: center;
  8679. justify-content: space-between;
  8680. padding: 55px 0 0 20px;
  8681. box-sizing: border-box;
  8682. width: 85%;
  8683. }
  8684. .stepsBottom {
  8685. width: 85%;
  8686. margin-bottom: 20px;
  8687. box-shadow: 0 0 10px 10px #f7f7f7;
  8688. background: #f7f7f7;
  8689. border-radius: 10px;
  8690. overflow: hidden;
  8691. }
  8692. .navTop {
  8693. background: #53749b;
  8694. color: #fff;
  8695. height: 40px;
  8696. line-height: 40px;
  8697. padding-left: 15px;
  8698. font-size: 18px;
  8699. }
  8700. .navBottom {
  8701. background: #6b91b7;
  8702. height: 180px;
  8703. overflow: auto;
  8704. }
  8705. .navTask {
  8706. display: flex;
  8707. flex-direction: row;
  8708. flex-wrap: nowrap;
  8709. align-items: center;
  8710. padding: 5px 5px 5px 0;
  8711. cursor: pointer;
  8712. background: #ffffff;
  8713. width: 95%;
  8714. margin: 10px auto;
  8715. box-sizing: border-box;
  8716. border-radius: 5px;
  8717. }
  8718. .isNavTask {
  8719. /* background: #7e9ebd; */
  8720. }
  8721. .navTask>div:nth-child(1) {
  8722. background: #468fe4;
  8723. color: #fff;
  8724. width: 65px;
  8725. height: 25px;
  8726. line-height: 25px;
  8727. text-align: center;
  8728. border-radius: 5px;
  8729. margin: 0 10px 0 5px;
  8730. font-size: 14px;
  8731. }
  8732. .navTask>div:nth-child(2) {
  8733. /* color: #fff; */
  8734. /* max-width: 130px; */
  8735. width: 130px;
  8736. white-space: nowrap;
  8737. overflow: hidden;
  8738. text-overflow: ellipsis;
  8739. font-size: 15px;
  8740. }
  8741. .groupBox {}
  8742. .groupContent+.groupContent {
  8743. margin-top: 30px;
  8744. }
  8745. .groupTitle {
  8746. font-size: 24px;
  8747. color: rgb(80, 80, 80);
  8748. margin-bottom: 20px;
  8749. }
  8750. .groupName {
  8751. display: flex;
  8752. align-items: center;
  8753. }
  8754. .groupn {
  8755. font-size: 15px;
  8756. margin-right: 10px;
  8757. }
  8758. .groupName+.groupName {
  8759. margin-top: 15px;
  8760. }
  8761. .groupBtn {
  8762. margin-left: 10px;
  8763. }
  8764. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  8765. text-align: left;
  8766. }
  8767. .radioBox>div {
  8768. margin: 10px 0 0 10px;
  8769. }
  8770. .radioBox>>>.el-radio__input,
  8771. .radioBox>>>.el-checkbox__inner {
  8772. margin-left: 10px;
  8773. }
  8774. .radioBox>>>.el-radio__label,
  8775. .radioBox>>>.el-checkbox__label {
  8776. display: flex;
  8777. align-items: center;
  8778. }
  8779. .inImg {
  8780. width: 50px;
  8781. }
  8782. .inImg>img {
  8783. width: 100%;
  8784. height: 100%;
  8785. object-fit: cover;
  8786. }
  8787. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  8788. height: auto;
  8789. }
  8790. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  8791. width: 200px;
  8792. height: 100px;
  8793. object-fit: contain;
  8794. background: unset;
  8795. }
  8796. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  8797. display: none;
  8798. }
  8799. .tcMember+.tcMember::before {
  8800. content: "、";
  8801. }
  8802. .xzUpImg {
  8803. width: 25px;
  8804. height: 25px;
  8805. cursor: pointer;
  8806. }
  8807. .xzUpImg>img {
  8808. width: 100%;
  8809. height: 100%;
  8810. }
  8811. .closeCss {
  8812. position: absolute;
  8813. top: 8px;
  8814. right: 8px;
  8815. cursor: pointer;
  8816. width: 20px;
  8817. height: 20px;
  8818. }
  8819. .closeCss>img {
  8820. width: 100%;
  8821. height: 100%;
  8822. }
  8823. .moveBtn {
  8824. display: flex;
  8825. flex-direction: column;
  8826. align-items: flex-end;
  8827. width: 40px;
  8828. }
  8829. .timuUpImg {
  8830. display: flex;
  8831. flex-direction: row;
  8832. align-items: center;
  8833. }
  8834. .timuUpImg>div:nth-child(1) {
  8835. margin-right: 10px;
  8836. }
  8837. .timuImgBox {
  8838. margin: 10px 0;
  8839. display: flex;
  8840. flex-direction: column;
  8841. flex-wrap: wrap;
  8842. align-items: flex-start;
  8843. }
  8844. .timuImg {
  8845. width: auto;
  8846. margin: 5px 0;
  8847. cursor: pointer;
  8848. position: relative;
  8849. }
  8850. .timuImg:hover .deleteWord {
  8851. display: block;
  8852. }
  8853. .deleteWord {
  8854. width: 25px;
  8855. height: 25px;
  8856. position: absolute;
  8857. right: -5px;
  8858. top: -5px;
  8859. cursor: pointer;
  8860. display: none;
  8861. }
  8862. .timuImg>img,
  8863. .deleteWord>img {
  8864. width: 100%;
  8865. height: 100%;
  8866. object-fit: cover;
  8867. }
  8868. .e_add_delete {
  8869. cursor: pointer;
  8870. }
  8871. .pType_box{
  8872. margin-top: 30px;
  8873. }
  8874. </style>